skysight-inc/HackerNews huggingface dataset:
I do understand the difficulty of testing private code in tools like jasmine when you use private variables based on publicly unreachable scopes. When I have to do this, I add a debug object with references to the code. Generally, this code should affect publicly accessible methods and those are more important to test. If they fail, decent in-browser tools like breakpoints and watch lists should reveal the error.

I'm not completely ready to call this an anti-pattern. There's no reason to expose local methods of an Object to the parent scope if they aren't needed. I'm sure that in some cases this could cause the memory footprint of an Object to be larger than desired by preventing garbage collection. Anyway, I would have factored your code more like this:

var PseudoClass = function(_args){
// guarantee that "this" is what we expect
if( this === window ){ // use global for non-browser implementations
return new PseudoClass(_args);
}
// private variables are local
var private = function() {;
this.value = 2;
};
// public variables are on prototype
this.constructor.prototype.value = 1; // I'd prolly use a local var and a getter for this
this.constructor.prototype.public = function(){
private.call(this); // force scope for private methods
};
// testing access (only added when necessary)
this.constructor.prototype.privateMembers = {
"private":function(){ private.call(this) }
};
};

There's no "self" here, but there are two pieces of insurance around scope.
First is the condition that forces the "new" keyword. (This could be written to test against instanceof the function name, but generally problems occur when users forget new, not when they force the scope to be wrong. Last I checked, this is how jQuery tests it too.)
Second is calling the private methods with the call() method of the function, allowing us to keep the scope from defaulting to global/window. Sure, you are forced to put these in to avoid errors, but this is programming. If you would like it to throw an error when this === window within private(), just add it. I didn't because a) I'm lazy and b) once the PseudoClass private methods are all called, I would end up removing the un-thrown errors and the privateMembers property before compressing for staging/production to keep size down.

Using a variable like "self" is quite clear in this context and I've seen it done thousands of times. I just wanted to show that using "this" is still possible.

Javascript is a funny language. I often find myself wondering if this was the intended structure of the language as it takes advantage of many of the key elements (closure scopes & prototype) while abstractly appearing like simple Java (or C#). Sure in a perfect world, the wrangling of "this" wouldn't need to be done. I'd say the unpredictable value of "this" in different contexts is the biggest fail of Javascript. I programmed ActionScript (including AS1) for many years and this (pun intended) is the biggest mindf*ck I've come across when regarding them in comparison (considering they're both based on ECMA script). Hope there was something helpful to you in this.
Often, geolocation is no better than to the regional ISP.
Pure Leverage Review - Leverage for your Dubalu Business
In most definitions I've seen of it, it is. In fact, it's a natural number.
Looks to me like a retail shop for baby supplies. Unless that lady is picking out diapers and a brightly colored uniform for their new employee. :-)
In a criminal charge for something like battery, a lot of the usual legal maneuvering isn't available. There's no mediation, no settlements, no forum shopping jurisdictions, no expert witnesses. All you've got is a prosecutor who is trying to make an example out of you and police with evidence showing you did it. Ultimately, you're going to get the punishment the judge and the jury think you should get.

Now, that doesn't mean you're going to get the same punishment as the poor black guy, but that's not because it helps to be rich, but because it hurts to be poor or black. Juries don't give poor black guys the benefit of the doubt, they have trouble empathizing with people of a different race, their character witnesses don't come across as sympathetic, etc.
Image interpolation with the fast Fourier transform
I'm routinely amazed at the number of sites which don't perform any sort of email address validation. My wife has a rather common name and a straightforward firstname.lastname gmail address.

As a result, she's continuously peppered with all sorts of notices and confirmations intended for one of her many namesakes as well as the occasional, amusing accusation of having "stolen" the address she has used since summer '04.
Petman prototype
Kamaal, this is not true. Your name (often an indicator of caste) alone influences how likely you are to be hired. And not everyone knows that.

http://www.jstor.org/stable/40276548
We have K-12 civics courses?
No that was after we sold it.
>are completely fine with spoilt rich brats driving circles around them while honking away.

I find it quite hard to believe that most (or any) girls would be fine with anyone driving circles around them and honking. All women I know from Delhi are quite sick of eve teasing and don't really give a shit whether the guilty person is poor or rich.
this is pretty damn awesome
Asian Americans Will Be Most Powerful Ethnic Group in America Soon
You might try TopCoder algorithm competitions? (Especially the practice rooms with previous problems). Many of the problems are kind of interesting, but everything is expected to be solved within a limited amount of time, so you won't spend a lot of time on it. (TopCoder algorithm competitions are graded on correct output, within a limited execution time)
Wish this had a legend. Obviously the box sizes and positioning mean something.

What I can see makes me a bit curious.

- Frontend Web boxes are "big", where the (some) of the backend App boxes are small. I'd have though it would be the reverse -- frontend horizontally scaled first, backend vertically scaled first.

- Sometimes they use Zones ABC, sometimes AB. This is cool, but a lot of the "front" infrastructure is AB (including www), so not sure what advantage having ABC on backend pieces are. These are obviously super-critical for some special reason? I guess they also might be pieces that are-not/only-partially replicated to the secondary site.

- The failover US-West site is using Asgard along with Puppet, but the primary US-East one isn't. I guess this is for managing failure scenarios?

- Prodigious use of a lot of AWS services. Including internal ELBs all over the place. SQL Server and PostgreSQL sneak in a few places.

- Couldn't find the CDN!

- Looks like staging and testing are a complete replica (hard to tell, the resolution isn't quite there). They're big though. This is fine, but raises the question why the secondary site is just a part replica? If you provision the lot to stage, you'd figure you'd run the secondary the same way?

- The Data Warehouse runs on the secondary site, but it only accessed from the primary. Interesting. Wonder why they just didn't put it on the primary?
This is a common pattern with all articles about India. The west really likes to talk about how shitty conditions are here. The theme is to take a one-off incident and then exaggerate and generalize it so much that it must look like the norm. Then talk about about evil rich, selfish middle class and super poor farmers.

And then yes your usual dowry, caste system issues thrown here and there.

And those who leave India to settle else where too, find these topics indulging. It gives all them all the reasons in the world why they were right to leave the country.
You just weren't born yet.
Looking at Choice Criteria slide one might ask: why not Erlang?
Since we already have a track-record of the government granting retroactive immunity for illegal acts by ISPs, why do we need CISPA at all?

Why not just have the Feds or whoever call up Google and say "Look, this is really important information, as I'm sure you agree, so let's solve the problem, and if any technicalities were violated along the way, we'll get them excused by the overwhelming benefit of your actions" ?
Interestingly, there is a notion of knowledge complexity the includes zero knowledge:

http://groups.csail.mit.edu/cis/pubs/shafi/1985-stoc.pdf
WFM, Ubuntu 12.04 + chromium 25.0.1364.160
Not sure if there is a connection, but I think that means "sister" in Singhalese
Makes sense. Zynga makes so much money from their "whales", the people who spend way more than the general users, that they even design for them to a degree. It could make sense for Facebook to design a product for their power users.
You can be charged with a crime under existing law, and CISPA can be used to collect evidence for that charge.
Show HN: vim-multiple-cursors - True Sublime Text style multiple selection
Gulp. I'm guilty of this. An iOS component I shared became quite popular.

Now I don't even do iOS development anymore, Xcode is out of date, I haven't even used ARC. Whenever people poke me, saying that the issues and PRs are piling up, I tell them my situation and ask what they suggest I do. Surprisingly, my responses get no response.

Perhaps I should just add some of the past contributors to the commit access list.
Jeff Bezos on being customer driven
I attended school in USA grades 7 - 11 and I did not have a civics class. Is civics part of the standard curriculum?
Don't forget to upvote if you feel it deserves being seen by more people. :)
don't just post every story on the WSJ highlight ticker.
Hmm... I spent 12 years building my business and you tell me I wasn't passionate. We actually did beat Google but in the enterprise space.

The best way to take on Google is to render web search obsolete (the same way Microsoft is becoming irrelevant because the PC is becoming irrelevant), not by trying to match with limited resources and knowledge what they do very very well with enormous resources and know-how. Thinking otherwise is not being passionate, it's being presumptuous.
What about attending a new University with an empty slate?
Ask HN: What are the current, best, alternatives to Quicken?
Quicken has grown ever more annoying but I haven't found a good, works well, reasonably priced (or OSS) replacement. What are the better alternatives to Quicken? (link goes to example of annoyance: http://i.imgur.com/m6g5qDJ.jpg)
Change is already happening. One of the best examples I can cite is the Madurai based chef-turned social worker, Narayanan Krishnan. He quit his 5-star hotel chef job to feed the poor. He was one of the CNN Heroes in 2010.

http://edition.cnn.com/SPECIALS/cnn.heroes/archive10/naryana...

http://en.wikipedia.org/wiki/Narayanan_Krishnan
I don't work for NB, but I think you could probably get an add-in board/USB solution for audio input. It's based on a Beagle Bone (ARM/Linux). It might even accept Arduino shields?
http://bitcoin.clarkmoody.com/

http://bitcoin-otc.com/vieworderbook.php?type=SELL&nick=...
I would like to hear more about your project.
Couldn't you just use Google or Bing to serve ads?
I think there may have been an element of sarcasm in the GP.
Really enjoyed the material, thanks for writing it. Hopefully the community can keep it fresh and relevant as the tech evolves, since it's on Github. It seems to have worked really well for Addy Osmani's Backbone Fundamentals, I'm sure we can do the same for your book as well.
Well, not exactly, right? I mean, they don't contribute to liquidity, but the difference is that hoarded bitcoins might, at some point in the future, be traded. So it has to be considered when assessing the risk of bitcoins as an investment.
Any chance you could at least outline what you think the biggest changes in the past year and a half have been, for those of us who read the book? What are the things you would have written about differently?
No, Indian society does not label children anything other than children at birth. It is a label gratuitously applied by the author, likely as a short-hand to indicate poorer section of society. People from these self-identified sections have reached the highest post in the country - from writer of the constitution to president, to various positions in the political spectrum. There is a problem of equal access to education, yes. But
a) this problem exists all over the world - consider school districts in the US and
b) is more acute in India due to large, distributed population against a largely agrarian/human labor based economy. Active discrimination is a much smaller factor.
You can update and improve software after the initial launch. Who knew!
A clear example of Betteridge's law of headlines: http://en.wikipedia.org/wiki/Betteridge%27s_law_of_headlines.

It's no for the simple reason that eventually entropy gets everything. So even with some radical life extension, eventually something will get him even if it takes the heat death of the universe.

More specifically, I also doubt he'll live much beyond the standard 80-100 years or so that a health human gets. He's looking for radical life extension or downloading his consciousness into a computer. I haven't heard of either of these things being done in animals. On the assumption that it will take 15-20 years from initially doing it on simple animals to being ready for humans, I think Kurzweil simply doesn't have enough time left.
> I wonder if someone can come up with a proper paid competitor to gmail, it would be something I would be interested in. What are the current alternatives?

If you only do webmail, nobody else really compares. If you're OK with a native client and IMAP/POP, then Rackspace Mail is #1. 100% uptime SLA, good spam filtering, 24/7/365 phone/online support, big 25GB mailboxes, and just $2 per user.
We are waiting for 1.2.0 Vagrant release to make use of the librarian plugin. Vagrant self-installer will solve Windows issue. It contains several tiny bugs atm unfortunately :(
A recruiting slogan, and an intstruction to new hires. What does it mean to "not mean" something that your employees believe and live by?
Why Google and I get along just fine.
You simply calculate the equivalent cash value of the benefits and the equity and add them to salary. Then, you adjust the individual benefits upwards by a coefficient if you want them and can't get them elsewhere, and downwards if you don't want them as much as they're worth. For example, if my child had rare cancer, I would place a premium on having an unusually superb group insurance policy, even if the company didn't match much of the premium. On the other hand, I might count gym comp as $0 instead of $600/year if I am find with my home workout, or count free drinks as only worth a couple hundred a year if I would have been fine with water otherwise.
I would really be interested in know a) if I had a copy of the Puppet scripts how long would it take get this server configuration up and running and b) how much would the AWS costs be per month?
The perceived hypocrisy vanishes once you remember that not everyone else on HN is the same person. (And as to your actual point: zero-knowledge proofs are interesting, and that's all the excuse that an interesting topic ever needs.)
Airbnb for Airbnbs.
The most surprising thing about this is that test and staging are 1:1 duplicates of production. At the companies I've worked at dealing in scale, that has never been the case.

"Oh, you run 10 servers and 2 load balancers across these 2 sub-systems? Here's 2 servers and a toy whistle for staging."

But then again, I suppose that's what you get when you can dump hundreds of millions of dollars on a problem over a couple years.
Works for me just fine on FF 20.0.1.
Ah, yes. We use a dieter [1] for our asset pipeline, and it supports minification using Google closure compiler. Unfortunately, this breaks Twitter Bootstrap.

I did some measurement and I think we can save 19% through minification using uglify (once you included gzipping). That means its not currently worth the few hours of making it work and verifying that it doesn't break anything (versus other ways we can spend our time). Probably.

[1] https://github.com/edgecase/dieter
Calvanism
"Easy is not easy enough." Uh huh. Talk sexy to me baby. So now I've gotta buy a bitcoin exchange too?
I tried to figure out what software this was from, but I gave up. I did find that Wikipedia has a nice list of network diagram software here http://en.wikipedia.org/wiki/Comparison_of_network_diagram_s...

I'd love to describe a network in (something like) graphviz dot notation and get a diagram that looks like this out the other end. Usually I wind up just using Visio and doing it by hand because work pays for it anyway, and it's actually very nice.
No it would not be reasonably good compared to Google. It wouldn't even match what AltaVista used to be (given the relevance algorithms used in these products).
Not it you want to compete with them in the search space (and subsequently search advertising space). It creates something of a channel conflict for them :-) Eventually to actually succeed at it you need your revenue not to be controlled by your competitor.
Champion Men's Long Mesh Short with Pockets
Guilt when hiring employees
Hi all,

I have no one to talk to about this so I decided to post here.

Our company is doing quite well so we are hiring more entry level support staffs at around $15/h .

We have resumes flowing in. One thing that bothers me the most is when I see resumes of older applicants applying to entry level positions.

I feel really bad that they shouldn't have to work at entry level position especially if they are much older than me (24). On the other hand, I can't offer someone more than what they can deliver.

I feel less guilt when I offer a $15/job to a 22 year-old than to a 40 year-old.

Is there any way I change my mindset?

edit 1: this post is not meant to look down on people who don't make as much money. In fact, I only worked in minimum waged jobs before I started my company so everyone I'm paying now makes more than I've ever did when I worked for someone.
The reason people say college is irrelevant is precisely because you can cobble together the curriculum yourself. Obviously there are a lot of complicated benefits and costs both ways that people can debate, but it's not obviously silly.
Gives you idea about demographics of HN readers
(Your SUNY undergrad link is the same as your medical school link.)

The tuition indicated for Columbia is the maximum one could pay, which is significantly decreased by financial aid depending on need -- presumably much more so than at SUNY. Columbia's financial aid includes no loans and the average aid award is about $40k (of those with need, so presumably about $20k over all students).

In addition to Columbia being considered a much better school than SUNY, for many students it may actually be cheaper to go to Columbia ... if they can get in.
`z` is good. `autojmp` is similar. Also try `cetus` ( `gem install cetus`) and `zfm` (written in zsh, https://github.com/rkumar/zfm).
Everyone on Earth will be connected.
Mozilla TowTruck – real-time collaboration on any site
I assume it's either a man or a misogynistic lesbian; there are several references to watching porn from a male perspective, that the writer finds women attractive, and the writing style is masculine.

I've never bothered to check before but a cursory google shows no real evidence either way, though most others think it's a man as well.

Or if you're referring to me and saying I drew an erroneous conclusion, I didn't draw any conclusions at all, save about the last psychiatrist.
They may even omit the 'please'.
This slide deck really should be embarassing, because it screams "we aren't very good at this engineering thing."

So, you spent 15 minutes and picked the choice that seemed "coolest" to your team, eh? And your team had never heard of Erlang, it wasn't even in the running, eh? And you started out using ruby, for a Cloud platform? Three strikes, right there.

It's possible to make the case that go is a better choice than erlang. While go doesn't handle concurrency as well, and is a few years, rather than a few decades old, it does have an easier syntax if you're staffed with Jr engineers.

But seriously, how can we take you seriously as a company if reliability is not a consideration? If the fact that erlang, the only language which has been doing concurrency right for 20 years, with a stellar record, is never considered?

This just reinforces the impression that bay area companies are a bunch of lightweights who are not capable of solid engineering, but who succeed because a bunch of VCs put a bunch of money into them, and their biz dev guys make enough noise that it looks like traction and then they get bought by a bigger company that needs to "get in on this new technology".

Picking go is ok. Calling yourself a next-generation cloud platform without having any concern about the key factors that a responsible business needs to offer to their customers, makes you look like clowns.
+1. I'd be so interested in hearing your answer as well.
Texas public school, we studied government in the 12th year.
EG: You had nobody qualified to make such a decision, and consequently, nobody qualified to produce what you claim to be building. The only reason to talk about node is because it's "hot". Ruby is "hot" too. Erlang, boring, but it actually does what you're trying to do.

Well, I guess if your business model is replicating OTP, then you need to choose a platform without OTP so your engineers have something to do, right?
I dont really see why. You can always play Bing against Google and trying to compete in both markets when you haven't made a dent in the first one doesn't seem reasonable.

When we switched to their ads our revenue increased 10x which made us super profitable (we were primarily a federated engine like DDG though).
Dreams, imagination, discovery.
I kind of wish that on Github, there was a default "untested" branch bit that defaulted to on.

On the back end, this would aggregate all the commits applied from a head, and allow the maintainer and contributors to know beforehand if their stuff applied cleanly.

Eventually, if the project is abandoned, this untested "uberpatch" would end up being the defacto main branch.

There are probably very many horrible problems with this idea...
> This is Satoshi we're talking about

I'm used to cult of personality on HN, but cult of anonymity is a novel thing! Who is Satoshi, and why do you put so much trust in them? What if I told you that "Satoshi" was brilliant quant working on Wall St., who came up with a scheme to invent an asset, give it incredible unreasonable value, then cash out for that value in USD, all while spinning a clever narrative about decentralized cryptocurrency for a new world?
Very interesting read.

I have only written a small amount of Go, I have been through tour.golang.org, just waiting for the right project for me to use it on.

Currently whenever a new project comes along I reach for C or Perl, hoping to find a niche between them for Go.
Remote sensing..
http://cryptogasm.com/webcams/webcam.php?id=7283
Go is not some side-project started by a mid-level engineer. This is Rob Pike and Ken Thompson we're talking about. They're demi-gods, even at Google.
nice illustration of a practical use for the graph search. definitely chilling though. Very much reminds me of the Sight short film: http://vimeo.com/46304267
Any chance you'll release the ORM?
I think I tend to be rather obsessive about answering, replying and the occasional PR I tend to be really excited about. However I almost always want to tweak the PRs and I don't always have time. I have been guilty of letting some go for a few months, but I did acknowledge and discuss them right away.
Does Leaning In Actually Work For Women At The Starting Line?
A similar thing happened to me with youtube-dl. I handed the project over and gave commit access to a couple of contributors who are now doing an excellent job at keeping the program up to date.

Not long ago, this story was discussed here and makes a similar recommendation:

http://felixge.de/2013/03/11/the-pull-request-hack.html
An API Style which brings together resource and service orientation