Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jzwinck
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
91 ms
·
871.
▲
by
jzwinck
12y ago
How about a browser plugin that lets you pay a few cents here and there to hide ads? You could whitelist the sites you care about (no need to pay off every random blog), and give them a sort of "budget" (unknown to the site). Th
872.
▲
by
jzwinck
12y ago
Amazing writing, I couldn't put it down. Don't miss the Amtrak Tips page linked at the bottom. For anyone fascinated by rail travel, I can recommend the train from Bulawayo to Victoria Falls (Zimbabwe). It's definitely like
873.
▲
by
jzwinck
12y ago
I am well aware of why an empty __init__.py is necessary. It is less clear why one must add license boilerplate to such a file: https://github.com/reddit/reddit/blob/master/r2/r2/config/__
874.
▲
by
jzwinck
12y ago
What causes people to need to sprinkle license boilerplate everywhere, including in files which are otherwise completely empty (like r2/r2/config/__init__.py), and then to have to update them every year? See this commit:
875.
▲
by
jzwinck
12y ago
Ubuntu has done this for many years: $ gem install dummystuff The program 'gem' can be found in the following packages: * rubygems1.8 * rubygems1.9.1 Ask your administrator to install one of them It'
876.
▲
by
jzwinck
12y ago
GCC generates LEA even for a regular addition, even with -O3 and -march=native on a modern Intel x86-64 system. A simple addition of int64_t gives you: leaq (%rdi,%rsi), %rax Whereas subtracting the tag gives you:
877.
▲
by
jzwinck
12y ago
On amd64, a pointer must have the top 17 bits all the same, or else it is not a valid pointer. On Windows and Linux, user space is the "lower half" which means bits 47 to 63 must all be zero for a value to be a pointer. This giv
878.
▲
by
jzwinck
12y ago
"By default, there is no exponential and mind blowing executable size increase." I'm sorry but that's not really true. If you compile with debugging information included (with or without optimization), GCC will give you
879.
▲
by
jzwinck
12y ago
I agree with you on the third normal form, but let's consider the fifth too. In TFA the example is agents working for car makers. Let's use a more realistic example: agents working for car dealers. So Frank sells cars for Festiv
880.
▲
by
jzwinck
12y ago
You should read about Milton Keynes and its Redways: http://en.wikipedia.org/wiki/Milton_Keynes_redway_system - segregated ways for bicycles and pedestrians integrated into a planned city built some 40 years ago.
881.
▲
by
jzwinck
12y ago
Actually this is one of the only times the candidate could credibly say, "Gee, I don't know, I've never had a full-time job and am still calibrating my expectations, maybe you can help me here?" After the first job, sub
882.
▲
by
jzwinck
12y ago
The towers have been repurposed once and the same can be done again. Use them for BASE jumping as one in the article already is. But think of the network equipment--how many advancements in the Ethernet, TCP, and UDP that we all know and l
883.
▲
by
jzwinck
12y ago
The LED "bulbs" I had were dimmable, socket type MR8. The thing is, they still flickered. I think it was something about the dimmer switch itself being unhappy--the flickering was not constant, but it was impossible to stop comp
884.
▲
by
jzwinck
12y ago
I'm all for decreasing energy consumption, but the last two flats I've rented have come as-built-new with dimmer switches which do not work with newfangled fixtures. One was a set of many small ceiling fixtures for which only LED
885.
▲
by
jzwinck
12y ago
This might be more accurately titled "The Craft of Making Text Editors." It is mostly not about Emacs, rather about more abstract ideas around user interface (see the quaint Joystick section) and text editing: > This model is
886.
▲
by
jzwinck
12y ago
h5r has been removed from CRAN "due to licensing problems"[1]. ncdf4 and rgdal use totally different formats. rhdf5 may not be the best library, but it seems to be the only library. I don't think R support for HDF5 is "
887.
▲
by
jzwinck
12y ago
Here's my favorite way to get factors in your R program without wanting them: load an HDF5 file. Python's excellent h5py module and the official HDF5 tools like "h5dump" understand that a dataset is boolean if it has the
888.
▲
by
jzwinck
12y ago
Thanks for posting the link to your book--it's interesting reading. There seems to be a fairly common error within: > One 1992 telephone survey estimated that American civilians use guns in self-defense up to 2.5 million times every
889.
▲
by
jzwinck
12y ago
The good news: there is a simple rule you can use instead of understanding all this. The simple rule? Write simple code. Don't write multiple assignments in a single statement. Don't overuse the ternary operator (?:). Don'
890.
▲
by
jzwinck
12y ago
I agree about information density of the slides. There are some potential solutions: (1) Write most of what you would say as notes on each slide. Some presenters do this to help them get through a presentation anyway; you can do it to hel
891.
▲
by
jzwinck
12y ago
I got a bit out of them, but even as a veteran C++11 user I found quite a few pieces lacking in motivation (i.e. I could read the text but not grasp the reason for its existence). And your slide with "I actually wrote this code"
892.
▲
by
jzwinck
12y ago
The very first digital SLRs were made the same way: by replacing the film transport of a traditional camera with a digital back. Kodak did this with many camera models from Nikon and later Canon, all of them branded Kodak DCS [1]. The DCS
893.
▲
by
jzwinck
12y ago
I used POSIX message queues in production once. They worked fine, as a replacement for TCP when on the same machine, with reduced latency (roughly 75%). But eventually I switched to Unix Domain Sockets which offered similar good performan
894.
▲
by
jzwinck
12y ago
Today I discovered ffs(3) is part of glibc. It's a family member of the GCC extensions __builtin_clz(), _ctz(), and _ffs(), for finding the first set bit in a word (dword, qword, multiple widths exist). See: http://en.wiki
895.
▲
man ffs
(linux.die.net)
2 points
by
jzwinck
12y ago
|
1 comments
896.
▲
by
jzwinck
12y ago
On the Concorde, the APU did not exist. On both contemporary and modern planes, the APU is the Auxiliary Power Unit, which is a fancy way of saying electric generator. Basically a moderate-size internal combustion engine (relative to the
897.
▲
How can I test for how many significant figures a float has in C++?
(stackoverflow.com)
2 points
by
jzwinck
12y ago
|
0 comments
898.
▲
by
jzwinck
12y ago
I've encountered another approach in NYC which I haven't seen mentioned here. Some higher-end restaurants require a credit card number (over the phone, maybe online is possible too) which they tell you they will charge e.g. $25 p
899.
▲
by
jzwinck
12y ago
Such code would also fail if passed to tools like lint, and would result in warnings or worse when loaded in IDEs. The incredible C toolchain built over the decades is one of C's biggest advantages; friendly-c cannot afford to lose ev
900.
▲
by
jzwinck
12y ago
Look at Google's Python Style Guide: http://google-styleguide.googlecode.com/svn/trunk/pyguide.ht... There is almost nothing in there that sounds like a landmine. Rather, some general guidance about "do
More ›