skysight-inc/HackerNews huggingface dataset:
STACK4 and the D programming language
If you're using the mouse, not having focus follows mouse means you have to click twice to activate something in a window without focus, which from my point of view as someone who uses focus-follows-mouse, is pointless and irksome.

When I'm not using the mouse, I change the focus with the keyboard (In my setup, focus follows mouse only when the mouse moves).
A push to abolish ridiculous SF laws
Math. Some people try for years and year, and I mean really really try and still can't grasp basic math skills. They have to be hand held through high school to get a D and have to repeat courses many times. I have seen it.

I have helped many people with math, these people were putting in the effort, real effort. They were practicing extra, getting help from the teacher, from me (I was just helping friends), reading the book, staying after school, etc, etc. I have never seen someone try so hard at someone and just not get it. Something never clicked in their head. I would explain the concepts 2,3,4,5,6 times. Nothing seemed to help. These people really wanted to do well in school and were honor students in most subjects beyond math.

One of my friends who had this problem was absolutely brilliant in other ways that I wasn't. One day she picked up a guitar and randomly tough herself how to play it without any formal instruction. I tried for years to learn how to play an instrument as a child, and I just couldn't. It seemed it just didn't click in my head, same as math ability didn't click in hers.

Besides define "able-bodied" and "sound mind," you cannot. Does the person with a learning disability get a pass from those requirements? I say they do not, those are stupid requirements, and it just goes to show you that you already admit we are all different with different abilities from the get go.

Do you think this kid can get a PhD in math, then say, come up with an advanced cryptography algorithm?

http://www.youtube.com/watch?v=QM8iJTiQIEM
Internet fridges: the zombie idea that will never, ever happen
Yep, he originally threw out all names that appeared on both lists, while he's now arbitrarily assigning them to the winners' set. Not sure about the reasoning behind the change, but there it is. The quoted line computed new winning and losing sets that excluded all commonalities.
Moreso, giving money to people who have a core work ethic (ingrained as military veterans) but need a boost is quite different from giving money to people who have always been just given money their whole lives (Nth-generation welfare recipients) and have no work ethic.
"This is just a standard high-end laptop. Disappointing."

Well, a high end laptop with a low resolution screen...
Considering the effectiveness of torturing (and whether "they" lie about it) kind of blunts the argument against torture tout court. Other than that, I thoroughly enjoyed the article.
Oldest decimal multiplication table discovered
Leave DO. Go to goip.com, publish whatever you want. Its Netherlands.

To those who say the guy is jerk and his blog does not deserve the publicity. This is typical orwellian situation with some animals more equal than others. DO hosts a lot of things and does not police them, but this one was voluntary attempt of editorial control (censorship) and it is not acceptable from infrastructure provider.
As it seems, DO is not behaving ethically (nor does the guy).
Seriously? I don't see how it could even be interpreted as sarcastic. Those clothes do not look like clothing that is worn by carpenters in my country, and they also do not look practical. Why would you want to be sawing wood and carpentering in bell bottom pants and a floppy hat, for example? The outfit is obviously not entirely directly related to sawing and hammering, unless they saw or hammer with walking sticks in Germany. I don't know, so I asked... Is this site not for discussing things? I apologize for not knowing everything about the culture in your country.
Thank you. It's nice to see an empirical discussion of this subject. I'll have a look at some of the cited sources too.
More of the Same Can Be a Whole New Thing
I was debating getting this laptop or a Thinkpad T440s and a Chromebook Pixel. For me the Pixel just doesn't have the storage capacity I want, and the T440s isn't quite as portable.

I've made a deal with myself to get this once I've paid my loans off. C'mon, baby, just two months..
It's wonderful, but the absurd thing is the whole protective start-up culture that thinks this is crazy. The truth is that people ought to not trust businesses whose main function is to lock you in with trade secrets and other anti-competitive measures.

Obviously the only real risk to their business would be if someone else completely outdoes them, like does everything they do and better with their codebase. Simple clones are competition. Yes, competition makes things harder. But isn't competition what all these capitalists say is the answer to things anyway?? These guys are among the few non-hypocrites.
tdumitrescu "auto-scaling" is exactly what Unicorn gives you. You can scale up or down a running pack of worker processes by sending signals (kill -USRX) to the supervisor.

The sad news is, I've gotten some feedback that I believe may be true - self-daemonizing processes is a bad practice and that we should let the OS handle daemonization. And this kind of autoscaling is a bad practice in of itself because of it. This is why I've started to deprecate this feature (passively by just including a notice for now).

The question between number of processes and number of threads is excellent. It is mostly based on the workload - and the good news is that it's all scientific. You first need to understand the peak job run time (always try to upper-bound your jobs with timeouts) which can be had by some trial runs.

If it takes 200ms per job (I/O bound), it means each thread can do 5 units of work per second. If you need 1000 jobs/sec - you need around 200 at worst of these little guys to do work. Now, you can divide those into 4 processes on a dual-core machine (2 per core is a good rule of thumb). You end up with 50 threads per worker which is pretty relaxed.

The punchline is - if you need 1000req/s - with Sneakers the question isn't "can the broker support 1000req/s" anymore, because RabbitMQ should virtually look down and laugh at those numbers :).
Cookies vs Tokens. Getting auth right with Angular.JS
Actually, because of network effects HN could quite well have better discussions than other sites despite having a moderation policy that's worse than them, so the quality of discussion here isn't evidence they're doing it right. Since most of the users who foster good discussions are on HN, the discussions here will inevitably be better than competing sites, meaning new users will join this site and not other sites. There's a kind of self-reinforcing cycle where everyone often ends up on sites that are, frankly, awful in one or more ways.

(For example, remember Groklaw? That was one of them - the site owner shadowbanned anyone who made good arguments and presented strong new evidence, both when they contradicted her and when they agreed with her, in order to make herself stand out more when she did the same. She also shadowbanned anyone who remarked on these disappearances, so most regulars had no way of realising this was happening. As far as ordinary end users could tell she was just so much better than anyone else that she was indispensable to the fight against SCO. Since all detailed discussion of the SCO lawsuit was on her site, nearly everyone who wanted to discuss the details did so there too and there was no way anyone could establish an alternative.)
There is an awful lot of programming/etc that doesn't ever really even touch on violence (while still being fictional). A good portion of adolescent dramas do 'violence is bad' episodes (where some character feels bad for punching someone or something).

Action/adventure stuff definitely reaches for the gun pretty quickly.
I thought the same thing.. Google bought them, then shut them down the next year. Citing bringing the Q&A features over to Google+.
I always make my terminals and windows full screen height in my 1600x1200 monitor and in my old 1920x1200 laptop. And on the desktop, I also have a vertical (1200x1600) monitor, typically used for documentation. Vertical space has always been the most important for reading text, that's why books typically come in portrait form...
could use a 15" brother with a bigger screen -> lets you see more lines of code and run side-by-side editors more efficiently.
Build Real-Time Graphs with D3.js
Very inspiring post. Almost thou persuadest me to go indie :).

I am glad you covered all the angles, including family, which is very important to me too. Good luck with 2014!
JS is on, the only plugins I use in Chrome are AdBlock and Disconnect.

Once I get to the 3rd slide it starts to appear on the page. When I go forward or backward on the slides/pages the jumbled content is still stuck on my screen overlaying the content I should be seeing.
As far as I can tell, it's basically a modernised version of Yahoo Answers.
Oh come on, that's trivial

public interface Maybe<T> {
boolean hasValue();
}

public final class Just<T> implements Maybe<T> {
public final T value;
public Just(T value) {
this.value = value;
}
public boolean hasValue() { return true; }
}

public final class Nothing<T> implements Maybe<T> {
public boolean hasValue() { return false; }
}

You can even get rid of hasValue (but then you need to pay for instanceof each time); or of the Nothing class and make Maybe a class. You may ask what the value of Just.value is before the constructor runs - the value is a machine null and if you somehow manage to access it before the ctor runs, that's a NullPointerException; or what writing "Type varname;" in a function would do - that would be perfectly legal, but you won't be allowed to use it if the compiler can't prove you've initialised it first (which it does right now).
There's the core problem: those pushing the "just give 'em money" idea always focus on forcing others to give money ... they won't proactively act on their own opinions by giving away large sums of their own money.
No offense intended, but this is a pretty useless title.

I'm sure the name is cute and easy to remember, but if there's no other info, gives me little reason to give it a second thought. (My first thought was it was some sort of a social network surrounding Candy Crush)
How to be a mentor
I agree that a numpad isn't really necessary. The keys I miss on a laptop keyboard are:

- Home, end, pgup, pgdown

- Delete

- Function keys that are just F-keys, not volume/brightness controls that act as F-keys when you press a 'function' modifier key.
The awkward, redundant writing really doesn't help.

I think I understand what it does, I'm just not quite sure why. Their example use case of "what is this?" with a picture is handled pretty well by Twitter or Reddit if the object is at all interesting or unusual.
Pretty cool, animating within the screens could make it really come alive.

P.S: 2/4 comments are about the thecodeplayer site and not the real content of this submission. I've seen it happen on other posts. I get that most of us here are developer but seriously... Just focus for a second on what matters.
[Show NH] Weber-0.0.5 ror-like web framework for ElixirLang
You said that $3,600 was nothing. I explained its relation to $15,000 and $100,000, two numbers you apparently thought were significant, and how an extra $3,600 per year can turn into those numbers.

You also quoted savings amounts in response to someone talking about income, so I explained that poverty is usually measured by income.

I am not saying anything beyond explaining those things to you.
I'm glad she's dead

Hate on a dead person, for real? You must be great fun at parties. I wish the dead would be remembered for the good they brought, but almost a year later she's still much misunderstood.
The press release itself even says "1.2GHz dual-core ARM-based processor"
I guess it's a search engine powered by social network. That's it.
This would be an example of an analogue simulation. You first need to prove that the behavior of the physical analogue is also a solution to the original problem. The classic example is solving Poisson's equation, which gives (among other things) the electric field in a space containing charges, by measuring the deformation of an elastic sheet.
Good point. Also Canadian lawyers fresh out of law school go through a one year journeyman program -- it's called "articling." http://www.lsuc.on.ca/articling/

If you poke around, I bet that more professions than you initially suspect have formal or informal apprenticeship or training programs. I've hired reporters who have previously gone through internships or entry-level jobs, which served that purpose. In California, for instance, the state requires that licensed contractors have "at least four full years of experience at a journey level": http://www.cslb.ca.gov/applicants/ContractorsLicense/ExamApp...

The term journeyman is still used in the U.S. to describe plumbers, electricians, etc. as well.
A Makeover for Maps
Fab's embattled CEO issues lengthy mea culpa: 'Startups are hard'
The reviewer mentions they're reviewing the November 2013 Haswell Refresh. My work laptop is the Feb 2013 1080p version, and as an Apple fan I must say I'm very impressed with the quality of this machine... and the 1080p screen is really fantastic.
I've never seen a laptop actually get 9 hours. Even a Netbook or Air won't last much past 6. I think people tend to exaggerate. If you say 9 hours, I'd believe 4.5 hours.

I mean if I left it to idle for 9 hours yeah it would last at full charge, actually using it....nah. I don't think I've ever seen a laptop work at it's advertised battery life.

It's thickest point is where the fans are, its about a thin as an air where the battery is.

In either case, a Macbook Pro doesn't get any better, I've not seen any laptops that get anything past 6 hours without having a low power Atom or ARM based chip in it.
Somewhat related - I always thought the werther effect was interesting. People seem to romanticize aspects of suicide.

https://en.wikipedia.org/wiki/Copycat_suicide
Goggles?
Always "stumbled upon" or "came across" some idea. Never "spent years of rigorous market research" or "cross pollinated a bunch of existing ideas."
HN guidelines dictate that a post take its title from the linked article. And given that the linked article in this case was a blog post on the website for the app in question, it does make a little sense, doesn't it?
", but localizing a region of interest is usually the hard job for me."

On buildings, building numbers tend to stand out dramatically from surroundings. Otherwise, they'd be useless as building numbers :)
Network routing is directed flow; water flow is undirected, so backflow is possible. The dangers of analogy....
Money is not wealth, money is the representation of wealth. Creating more currency does not increase the value available within an economy. Creating more money without creating more value for it to represent just results in inflation.

A gallon of gas is (all else equal) worth about 20 minutes of mundane labor. Printing more money and legislating the gas station attendant's pay to $60/hour will just result in gas costing $20/gallon.
Wow. You present a severely wrong number, with a citation to back it up that actually shows it's wrong, and when someone calls you on it you accuse them of a desperate attempt to deny the facts?

(I will remark that no one demanded that you compute 10.4/(46.2-14) for them. You just made that up.)
Sorry, I wasn't the one who hellbanned the comment. It could be interpreted as ridiculing, however I thought it may have been genuine interest (as it was) and so I asked. It may just be a effect of generation reddit that short questions like yours can be read as being targeted as ridiculing.

That said, the clothing is very traditional but still being worn by modern carpenters. I have a friend who does the job, and he always wears those clothes for work. Usually, without the hat and the stick, those are mostly added only for the waltz, however only based on my limited knowledge, I've never been a carpenter here.
From the video it seems like it's a social network for questions.

Sorry for the negativity, but I can't see how this would work. It suffers from the same problem as every social network does, people need to be on it. If I want to get responses from my friends instead of just googling it, I go to my biggest social network Facebook to get those. I just don't see any value in this, it doesn't solve a problem any better than the current alternatives do.
SONIC screwdriver! ;)
Yeah, Dustin Moskovitz's concise explanation: "1-3 were accounts used to test registration. Evidently it only took Mark 3 tries to clear the bugs."

Source: https://www.quora.com/Facebook-Company-History/The-first-use...
Again, it is true that drift exists, but you're mischaracterizing, from [0]:
"these errors accumulate roughly proportionally to the time since the initial position was input. Therefore the position must be periodically corrected by input from some other type of navigation system."
[0]http://en.wikipedia.org/wiki/Inertial_navigation_system#Erro...
You can directly model the flow of water through pipe networks computationally, the same way any chemical engineer would.

FWIW, as someone who designs massively parallel/distributed algorithms and went to school for chemical engineering, the conceptual model I use to design the aggregate behavior of complex networks are complex continuous flow chemical processes. All of the back pressure, flow overhead, reaction rates, equilibria, etc constructs are directly analogous to moving bits and doing computation in complex, distributed, heterogeneous computing systems. I think it is particularly effective for reasoning about distributed systems because chemical processes have no real concept of a global clock or shared state but still robustly and efficiently produce the desired output. It teaches you to reason about constructing optimal and robust global behaviors from subprocesses that only have local visibility and no explicit coordination between processes.
I'm thinking I'll give it another year before I sell. Only more companies are going to jump on the bandwagon, which means more money pouring into bitcoin and upping the value.

Obviously, nothing is certain, but I think altcoins have some serious growth potential over the next few years as they gain mainstream adoption.
I'll give it a spin.
int& toref(int* ptr) {
return *ptr;
}
//snip
int& i = toref(0);
i = 5; // segfault

One thing I kind of appreciate at times about C++ (or at least about certain implementations) is the fact you can call methods on null pointers and you can check in the method if it's called on a null pointer. I.e.

class A {
public:
int foo() {
return this == null ? 1 : 2;
}
};

//....
A* a = 0;
std::cout << a->foo();

Which allows you to make classes that work just fine even if you use a null pointer.
Ubuntu developer builds Pirate Bay torrent search into Unity Dash
Please Don't Ruin Haiku [OS]
> it would be vastly cheaper to adopt FDR's employer of last resort policy

The employer of last resort policy is perhaps a useful emergency policy for dealing with mass unemployment in an industrial-era economy, but its a rather bad long-term policy because make-work inhibits, rather than enables, risk-taking, entrepreneurship, and skill realignment, and it has serious limitations in an increasingly post-industrial economy.

Progressive automation means that era of wage labor is waning -- what we need is a transition to an economy of microcapital, and viewing a substantial share of taxation as being rents on the commons that are redistributed equally to the citizenry is probably the best way to get there. Pointless make-work wage-labor for a growing undercapitalized underclass while the overclass lives on larger and more concentrated capital stocks is not a good alternative.
> Am I the only one who sees Digital Ocean as acting ethically here?

Yes. Digital Ocean is just providing his VPS. Why should they be involved at all? If i say something about Scientology are they going to kill my VPS because they happen to like Scientology? What if i criticize anti-vaccination supporters?
This entire "lazy" argument misses the biggest point: your definition of "work" is worthless. Someone reading interesting books and having meaningful discussions with friends and being there for their families and loved ones… people healthy and happy enough add good to the world without doing bullshit labor. A huge portion of "work" today has no need to be done at all.

Your argument amounts to: But, with a guaranteed income, people might refuse to do wage labor and would just live in the world going about their day following their interests instead of mindlessly processing meaningless bureaucratic forms in some office!

Indeed they might! There's a lot of work happening that need not happen. There's a TON of value coming from things you do not call "work." And your suggestion that having health and food and shelter should be dependent upon doing some miserable useless "work" is fundamentally corrupt perspective.
So, let's be clear:

1. The blogger signed up with DO and agreed to some TOS that prohibit certain types of activities.

2. He then, by his own admission, lurks in a chatroom.

3. He asks a Googler a question but does not disclose what he intends to do with it. By his own admission, he had no plans to write a piece.

4. He takes the Googler's comments, contorts them, and constructs a poorly written screed in which he, amongst various other calumnies against good taste, investigates the home address of the Googler and uses that to add dramatic effect to his hit piece.

5. The hoster -- whose TOS he explicitly agreed with at the start -- asks him politely to edit his piece to comply with the agreement. They seem to only require him to remove the personal identifying information.

6. Despite the fact that removing the name of the person would not really diminish the albeit half-baked and poorly thought out idea that the author is trying to get promote, he acts as though he is the one that should feel aggrieved and outraged for removing the Googler's name.

7. By doing so, he reveals his true intent. He isn't interested in making a point about Google; he is interested primarily in presenting the said Googler in a negative light and personally maligning him or inciting others to malign him.

Or, the shorter version, the blog author is an odious and obnoxious attention-whore and troll who is trying to build a reputation by demolishing the reputation of an innocent engineer; and then who is so blinded by his desire to get attention that he doesn't realise that he looks like an ignorant jackass by whinging and whining that DO are asking him to simply adhere to the TOS that he himself agreed to.
This is why I always need a numpad as well!
>All the more vocal people tell you is that they're... more vocal. Where is the evidence that the more vocal people are correlated with systematically being wrong in a predictable and correctable way?

I'm sorry, if you want a verifiable proof with papers and references I don't have one for you. A lot of things in life don't have such proofs.

But my empirical experience has been that tons of people with no idea what they are doing are ranting on blogs and tutorials and such, where hardcore programmers I know are silently getting far more impressive shit done.

Let's say this: how many of the iOS, the Android or the Windows Phone teams blog, vs those working on the respective platform?

>And how do you do that when they are silent?

Watch them work, work with them or fucking talk to them. That they don't write blog posts like superstar primadonnas and that they don't give talks at conferences and rant on HN doesn't mean that they are impossible to find or unable to speak when found.
Sony announces PlayStation Now, its cloud gaming initative
I think maybe he was referring to the company/app name - not the title of the blog post or this submission to HN.