Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
efaref
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
271.
▲
by
efaref
11y ago
You're right to be unsure of (1); it is often claimed and simply isn't true. Of the top thirty jobs in the United States, 29 existed in some form or another 300 years ago. Only number thirty (computer programmer) is new. I'
272.
▲
by
efaref
11y ago
I thought punchcards were 80x1. This is a stack of 40 cards.
273.
▲
by
efaref
11y ago
If you try to please everyone, you'll please no-one. Most people, certainly most Apple customers, don't care that the battery is not replaceable. In fact, it works in their favour as they can use the failing battery as justifica
274.
▲
by
efaref
11y ago
It's also a massive producer of greenhouse gasses. https://www.newscientist.com/article/dn7046-hydroelectric-po...
275.
▲
by
efaref
11y ago
> ... I have extra layer of shell ... Fix that by running: $ exec /bin/bash -l instead.
276.
▲
by
efaref
11y ago
> In a language that lacks maybes, but has nulls, what is the equivalent of the type Maybe (Maybe Int)? int ** > Even ignoring the lack of composability, flatMap is an operation on a broad category of which Maybe is one examp
277.
▲
by
efaref
11y ago
With nicer syntax, nulls are equivalent to Maybe types. Recent C# for example has the ?. and ?? operators, which are flatMap and orElse.
278.
▲
by
efaref
11y ago
Interesting. The bug in the proof is in the assumption that ints contain any integer and addition operates the same in normal mathematics, when in fact they're the set of values in [INT_MIN, INT_MAX] and addition has overflow behaviou
279.
▲
by
efaref
11y ago
Scams like this absolutely do happen, with potentially deadly consequences. http://www.bbc.co.uk/news/uk-29459896
280.
▲
by
efaref
11y ago
So it boils down to "I'm incapable of controlling how I react to you, so I want you to control how you react to {me, other people}." It's just selfish and rude, and yet Linus is called that when when calls these people o
281.
▲
by
efaref
11y ago
Interesting that the two operators that aren't associative are the two that you don't typically write as operators in mathematics.
282.
▲
by
efaref
11y ago
It sounds like old-style BASIC exception handling. ON ACCIDENT GOTO EMERGENCYROOM
283.
▲
by
efaref
11y ago
Hmmm... http://imgur.com/WyjSpBK I'm probably an outlier.
284.
▲
by
efaref
11y ago
Rather than two pointers I would probably have pointer + len. Storing the length of your arbitrary memory block is no bad thing, imo. In any case, having a sensible copy constructor on the memory_block (and any necessary associated data) w
285.
▲
by
efaref
11y ago
The number of errors there is frightening. I only noticed the use of void-pointer arithmetic and lack of alignment processing. I would say the code doesn't go far enough. Instead of using `std::unique_ptr<char[]>`, it should de
286.
▲
by
efaref
11y ago
I would hardly call protocols like [SIP]( https://www.ietf.org/rfc/rfc3261.txt ) and [RTP]( https://www.ietf.org/rfc/rfc3550.txt ) "custom". There are many more standard protocols out there
287.
▲
by
efaref
11y ago
But you only have to spend those 20 hours once.
288.
▲
by
efaref
11y ago
Agree. The risk of having to run back to mummy and daddy with their tail between their legs is no risk at all. I could be quite entrepreneurial if I didn't also have to pay for my apartment and food every month without fail.
289.
▲
by
efaref
11y ago
Indeed, it was an important security feature. I think Bill is just saying that they should've got PC manfacturers to add a "Log On" key to the keyboard which they could've caught in the OS in the same way as Ctrl+Alt+De
290.
▲
by
efaref
11y ago
Does that mean mad science is about 'why not'? :)
291.
▲
by
efaref
11y ago
> If you invent a new need for people and fill it with a toy, that would be marketing. Surely marketing is creating markets. You have a thing, and you make people want to buy it, thus creating a market. Marketing.
292.
▲
by
efaref
11y ago
"Computer science" courses are mostly misnamed. The research faculties they're located in are usually scientific (in that they concern research into computability and computation), however what undergraduate students mostly
293.
▲
by
efaref
11y ago
It's missing the engineer frame where he has the box open and the apparatus in pieces.
294.
▲
by
efaref
11y ago
Surely that's 1 bit overhead per element or element slot (where if you're aiming for 50% occupancy means at least 2 bits per element). Or are these magic bits where zeroes are free?
295.
▲
by
efaref
11y ago
The quality of their code looks pretty terrible too. For starters, just look at their genMakefiles script (something of a WTF itself - y u no configure?): https://github.com/hackeron/live555/blob/master/
296.
▲
by
efaref
11y ago
Reading a file is not even atomic - you can race with concurrent writes. The only safe way to update a config file of a running service is with POSIX atomic rename, and most editors don't do that by default.
297.
▲
by
efaref
11y ago
I assume the next version of systemd will include git. Actually, it's not that bad an idea: cd /home/efaref/config/servername vim blahd.service git commit -m "Update blahd service file to increase
298.
▲
by
efaref
11y ago
He's using integers as sets of (small) integers, int Possibles = Block[BlockIndex] & Row[RowIndex] & Col[ColIndex]; while (Possibles) { int valbit = Possibles & (-Possibles); // Lowest 1 bit in P
299.
▲
by
efaref
11y ago
Apparently being better than the competition is anti-competitive.
300.
▲
by
efaref
11y ago
And okayed by Valve.
More ›