skysight-inc/HackerNews huggingface dataset:
Thanks for the compliment. As others have pointed out, this isn't an idea of my own creation - others (e.g., SQLAlchemy) have taken similar approaches in other APIs. I'm just exploiting a pattern that I've seen used to good effect elsewhere.
The human brain is not good at arithmetic. It is an outdated topic to be including in a modern curriculum.
yea oh-my-zsh isn't that slow, most people who think it is slow either have it misconfigured or have a really, really slow system
> When a student answers that 7/12 is 1.5 and doesn't immediately see why this couldn't possibly be true you know that the problem is rote learning of algorithms.

This doesn't seem right. What algorithm did you learn in school that would produce 1.5 from 7/12?
According to the Wikipedia article you linked to, 3787 deaths are confirmed as resulting from the incident and 16000 deaths are claimed in total. The page does not support the assertion that the disaster was responsible for 20000 deaths.

From the same page: "In 1994, UCC sold its stake in UCIL to Eveready Industries India Limited... Eveready Industries India, Limited, ended cleanup on the site in 1998, when it terminated its 99-year lease and turned over control of the site to the state government of Madhya Pradesh. Dow Chemical Company Purchased UCC in 2001, seventeen years after the disaster."

Dow Chemical did not own Union Carbide at the time of the incident. Additionally, EIIL had assumed, and shed, liability for the cleanup prior to Dow Chemical's acquisition of UCC. Dow Chemical is absolutely responsible for damaging the environment in various ways; however, constructing narratives to implicate the company in the Bhopal Disaster is disingenuous.
The spacing and margins are all manually specified (or, in the case of the example, aren't specified at all, so they default to 0). If you cared to do so, this spacing could be manually adjusted.

Under the hood, it's 100% native widgets (i.e., on OSX, the code is actually instantiating an NSButton, adding it to an NSView, set as content on an NSWindow; on Ubuntu, it uses Gtk.Button etc), so the look and feel of the widgets themselves are exactly as the platform dictates.
An early user of Google Earth, I still remember being blown away completely when I first saw it (repeatedly wondering and debating with friends: how did they do that!?). Since then, I have always wondered when and if those images were updated? Could this project be used to get a real-time stream of 'earth from above' one day, for everyone to see? This project is quite amazing - thank you for sharing this.

Sweet words indeed from the post: we’re on a mission to image the whole world, every day and provide universal access to it...fresh and frequently updated, global imagery..

A very random thought: what if one day we have cameras streaming real-time pictures, and what if they could be turned the 'other way', would it be possible to see space in real-time?
Every three hours is 8 times / day, so 4.0 hours / year.
Project author here; let me confirm that Toga only uses GTK+ under Ubuntu/Linux. On OS/X, it uses Cocoa. I've just clarified the text in that section of the website. Thanks for the heads up.
When I studied physics as an undergrad, I was made to take a course in experimental particle physics (in Germany they call this "Phenomenology", not in English to my knowledge). I complained that I wanted to study the fundamental laws of physics, not how they were tested. They university advisor replied that in order to understand how the world works, first we have to know what it looks like.

This is basically my view on this matter. We can only take for granted the existence of the objective universe. Everything else must be derived from experiment, including concepts that seem fundamental like time or causality.

One interesting thing about causality is that the fact that the macroscopic world obeys cause-and-effect laws is usually attributed to the second law of thermodynamics. But where does the second law of thermodynamics come from? I've heard it stated (can't say if this is universally held by physicists) that the second law of thermodynamics holds because the initial state of the universe had very low entropy, while the final state of the universe will have very high entropy. That is the second law of thermodynamics is "caused" by both the initial and final states of the universe. So causality and time are something that we don't fully understand yet.
Water in SoCal _is_ very expensive. The problem is that by the time you make it expensive enough for the country club set to need to conserve, the rest of us can't afford to flush the toilet. There are solutions, but billionaires with green lawns while low-income workers are loosing service just doesn't work.
Enter Pyongyang
I'll completely agree. This is a project that has been built in the last 6 months of my spare time from all my other projects, and most of that time has been spent getting things to a point where they work. The APIs aren't yet stable enough to warrant me spending a bunch of time formalising them, but I absolutely want to document them as soon as the ground stops moving :-)
In contracting the company or person hiring you generally knows very little about programming and even less about yourself. You have the information advantage, you usually price the job, and you know how hard you're going to work and how long these sorts of jobs usually take you. It makes sense in that context for you to carry the risk if you choose to be paid by deliverable.

Whereas, if you're a trucker, you don't know any more than the company does about whether the gods of traffic are going to take a dump on you that day - and there's not a whole bunch you can do about it. In that context it doesn't seem to me to make much sense to pay on that sort of basis.

The point of paying with a target is - at least when you're not trying to screw people out of money - to tie reward to the risks that they can control. If they can't control the risk, it becomes little more than a way of concealing from people what the take-home is going to be.
It's articles like this that remind me the tools I take for granted like BGP, traceroute, and viewing the structure of the Internet at a fundamental level, are a complete mystery to most people outside the industry. Yet everyone depends on the end product every day.

Little bit humbling.
Even that article puts a minimum of 10 years before automated trucks get on the roads. So, we're talking about truck drivers because it's not acceptable to forget about them for a decade "because they'll be gone someday."
Teenage Mutant Ninja Turtles 2014 Full Movies HD [Official]
Thanks for the kind words.

Yes, the project is very early stage - I've been tinkering for 6 months in my spare time (and it's not like I had a whole lot of that to start with). Getting cross platform on 4 platforms has, as you might expect, taken a bit of effort.

I started down this path because the existing options didn't satisfy me. When my initial couple of weeks of tinkering proved that it was possible to get widgets without binary dependencies, that gave me the momentum to get to the point that I've publicly announced. There's plenty left to do, but I've got high hopes.
Project author here; Thanks for the heads up - I haven't come across Enaml before. I'll take a look.
Theft from HGVs isn't hugely rare. People will cut right through the side of them. I think it was on the order of £25-30 million a year in the UK, last I checked (2010-ish)

And then there's the value of the fuel in the vehicle.
But then again it is rather interdependent. Why would they want to pay more if they get enough people knocking on their door.

In other words for everyone saying "hell no" there is another that say "ok, i have no choice, i'll take it" well the business moves on.

I have also heard some East Europeans (Polish for ex) drivers come here (not sure on what kind of visa) and they are willing to work for much less, then send money home. Same patterns as farm workers from Latin America working here.
The article doesn't directly mention network partitions and split-brain syndrome. Luckily there is Aphyr's Jepsen series [1] with both theory and practice.

[1] http://aphyr.com/tags/Jepsen
also, LOTS of broken English in the instructions. needs a lot of refinement
Hi HN!

This is a small hack that I created over the weekend. I learnt about the Monte Carlo method while doing Princeton's Functional Programming course[0] in OCaml[1] as one of the assignment problems. To get the first four digits consistently, I ran around 200,000 - 400,000 simulations - not quite possible in the browser!

[0] - http://www.cs.princeton.edu/~dpw/courses/cos326-12/

[1] - https://github.com/prakhar1989/ocaml-experiments/blob/master...
Looks active to me: the repo owner actively participates in bugs/PR opened days or hours ago.
As for the article, I started it in May, forgot about it, then released it today. Hence the May 2014 date.
How To: Objective C Initializer Patterns
Sounds like you're on Windows. Unfortunately, Windows support is pretty primitive at this point (reflecting my own priorities - OSX, Unix and mobile support is a more pressing concern). I'll update the homepage and docs to better reflect the current project status.

Longer term, I definitely want to support Windows to the same level as other platforms; any assistance on this front would be gratefully accepted.
JavaScript and V8 TurboFan
Couldn't they simply charge a normal rate for the first 50 or so gallons, and then a "drought rate" for anything beyond that?
Palm Springs area water does not come from the same place as SD/LA etc..

IIRC, most of the drinking water comes from the local groundwater, and nearly all of the ag water comes from the Colorado like in the Imperial Valley
Google Page Rank in C#
Nice visualization. After playing with it for a while, the number never really converged to Pi. The value even reached 3.135 after 10000 iterations.
Do you have any measure how "stable" this method is? Or how many iterations are needed to be relatively certain that the first n digits won't change anymore?
I'm a .NET developer working on contract, predominantly in the insurance industry. I do some client support and business analysis as well.

If I had more free time I'd learn node.is and properly get to grips with JS client side frameworks like Angular and Ember.

Computer Science BSc is my academic background.
Writing out full solution of all the exercise might be another textbooks.
Math textbooks even left proof of theorems as an exercise to the reader.
I tried the OCaml version which was much much faster than JS. Had to run around 100,000+ simulations to get 3.14xxx consistently. This is a really simple algorithm so I'd suggest giving it a shot in a your favorite language to see how fast it converges.
RSA is actually one of the easiest algorithm to protect from side-channel attacks (though nothing gives you 100% protection), thanks to the various kinds of blindings you can immediately apply.

Blinding techniques are not constant-time, but what you really want in the end is to reduce the Signal-to-Noise ratio on the radiated energy.

For ECC it is more difficult, and it becomes very hard for most symmetric ciphers.
That would be a valid cause for careful exploration. Instead, what we have is an outright ban and consistent propaganda that "drugs are bad, mmkay?"

The logical next step to "we don't know" is "let's find out", not "EVIL! DON'T TOUCH! GO TO JAIL OTHERWISE!"

I think calling the governments of the world "evil" in that respect is very over-simplistic, but it's definitely fair to call them irrational and wrong.

Also, this "governments are implied to be evil" reading may be in your own mind - Amber doesn't make that statement, and I didn't get that from the article.
Recordit: Record Windows/OS X Screen and Save as High Quality GIFs
Some other good ones are http://www.badscience.net/ and http://www.statisticsdonewrong.com/index.html (I suppose both of those links are relevant versus the awfulness in this Atlantic article.)
I've been looking at MIT's Distributed Systems class which uses Go (posted here about a year ago).

Original Link: http://css.csail.mit.edu/6.824/2014/labs/lab-1.html

HN comments: https://news.ycombinator.com/item?id=5192650
Which is why prostitution needs to be legalised and regulated and people need to stop stigmatising it. It becomes much less of a problem when the people involved know they have rights and can safely go to the authorities if they need help.
Thanks for the promotion :-)

Of those tools, the test runner (cricket) is the most mature; the debugger isn't much more than a proof of concept. Those tools are also based in Tkinter at the moment; I started Toga because I've started to hit the limits of Tkinter.

The intention is to port the other PyBee tools to Toga as soon as they get mature enough.
Not yet. Android support is on the todo list once I've processed all the feedback that has come as a result of the initial release.
Given that the project was announced publicly 1 week ago, I wouldn't expect to see it in Debian (testing or otherwise) for a little while.
I remember a "conserve water!" flyer that was set on the tabletops in the UCSC dining hall. It helpfully pointed out that, since California was experiencing a drought that year, we shouldn't be using so much water.

It also gave the actual rainfall statistics for the current and past year (approximated but basically accurate in my memory): that year, we'd received 20% of the average annual rainfall. The year before, 210%.

This basically convinced me that emoting about california droughts is just something people do because it makes them feel good.
You have some really tall friends: 7feet,10inches would be uber-tall - 239cm.
To convert I use some baselines 5'7 is 170, 6' is 183, then adding/subtracting inches to fit.
I ran a little comparison with both Oh-my-zsh and Prezto with roughly the same plugins: http://i.imgur.com/cDSRZuO.png. There's almost a 0.4s difference. In practice it makes for a noticeable 0.5-1s difference (with all the other stuff I have in my .zshrc).
Small remark: The constant you are calculuating is usually denoted as a lower case pi, not upper case.
I notice that it seems to overshoot more than it undershoots. Any idea why this is?
This would ultimately end up in a dispute between Amazon and a major talent agency over pricing. More than 900 prominent porn stars would take out a $100,000 full-page ad in the New York Times to raise awareness of how they are being financially disadvantaged by Amazon's actions in the ongoing dispute.
The death toll numbers vary with which source you cite. I was being conservative with 20,000. The ~4K number is of course those who dies immediately after the leak, many have perished due to long term effects and still continue to do so. It hasnt stopped.

It is irrelevant that Dow did not own UCC then, it owns it now, and not in part, wholly, that comes with liabilities too. Liability does not disappear in the thin air just because some other company buys it out. To vindicate this point, Dow has paid millions for UCC liabilities in US. Dow did not own UCC at that time either.

UCC has ceased to exist and Dow owns all of the assets, and I argue that includes UC all its liabilities liabilities. The gold standard has been that the polluter pays, the polluter was UCC, which is now owned by Dow (which means all property physical and intellectual). EIIL never assumed liabilities, it obtained the lease of the land that had been lent out to UCC by the govt, it did not buy UCC.

If you want to know the facts I would say dig around, if you want to push an predetermined opinion, continue what you are doing. As the owner of UCC, Dow has been summoned by the Indian courts which it has refused to do, so as per Indian law its a fugitive from justice.

http://www.goodreads.com/book/show/183715.Five_Past_Midnight... does a good job, but from your tone it seems you wont be interested much.

> constructing narratives to implicate the company in the Bhopal Disaster is disingenuous.

Thats really cute, what name would you give to profiteering from human disaster by using US sovereignty to shield it from criminal and tort proceedings.
Haha! Thanks for pointing this out.
kPa. Otherwise it'd be Kelvinpascals. And while pressure is often said to be x atmospheres, they usually use bar, which is an SI-derived unit (equal to 10⁵ Pa), which is close enough to the old usage of atmospheres.

There seem to have been two different atmospheres that were pretty close anyway. One being defined as air pressure at sea level, the other being defined as the pressure of 10 meters of water.
Seconded.

It's also humbling to think how such common tools can be used in a new way to get novel and useful insight into global politics by a relatively small group of people.

It reminds me how I'm constantly underestimating how powerful a lever for the mind computers can be.
I don't know what part of California you're in, but here (in the Bay Area), there's this persistent narrative that because farms and industry use a lot of water, it doesn't matter what individuals do.

This, of course, is crap: much of the bay area gets its water from dedicated reservoirs that aren't shared with farms. But it's hard to convince people to make changes when they're cynical about the impact of their behaviors.
Fahrenheit is absolutely bizarre outside US, scaling is so arbitrary it's not funny.
We've seen similar migratory behavior from wolves in the USA. Here's an Oregon wolf that has gone over 1000 miles: http://en.wikipedia.org/wiki/OR-7
A short series of hints would be much more helpful, that's great. Also, at least one of the exercises (I'm thinking of mating with a rook and the king) puts you back to the original starting positions if you make a stalemate move. A bit frustrating to have to go through the beginning all over again.

I haven't played in at least 10 years and so far it's been a nice refresher, and a good looking site as well.
How we could help cure cancer with cryopreserved bone marrow
How Vancouver Became One of North America's Most Family-Friendly Citie
Netflix on Linux with Chrome
iirc, water boils at 95C is around 5000m altitude, no one lives normally there - even La Paz is less than 4000.
- I'm sure most people don't want to die. That's part of what makes life so important. What makes us try to make every moment count. There is so much life someone can live in 65 years. Do we really need more?

"640K ought to be enough for anybody." -Bill Gates

Just like when people found better uses for space, people will find better uses for longer lifelines, given the opportunity. Considering how quickly we advance, how much more informed we are, how much more control we have over our lives, and how much increasingly more there is to do in the world for everyone, it makes sense now more than ever.

Other technologies can furthermore make this even more convenient, and possibly even eliminate the trade-off of having less children. The dynamics currently in place were intended for a different world, and the one of today is changing very rapidly.
Quire – a new collaborative task management
Why You Should Hire People Toughened by Failure, Not Those Coddled by Success
Nice. Similar to PyP from Sony Imageworks:

http://opensource.imageworks.com/?p=pyp

The Pyed Piper Tutorial: http://www.youtube.com/watch?v=eWtVWF0JSJA
That's pretty much it, except 90C sauna is quite decent.
Like the other Imperial units, Fahrenheit is also one designed to be pragmatic -- it is scaled so that most temperatures are two digits. 100°F is approximately body temperature, and 0°F is a temperature about as low as one might expect the weather to naturally exhibit.
Don't forget water glasses in restaurants. You know the drought is serious when they start telling restaurants to only serve water on request. Yeah, that ought to save about 0.0000000001% of the total.
FCC chairman rejects Verizon's throttling defense
Does web programming pay more than embedded or game programming? The salaries that glassdoor shows for web developers don't seem exceptionally high to me. What data are you using?
It's true that some teachers have a special aptitude for the job. However, you can't rely on a few exceptional individuals to fix a system that is deficient by design. You need to change the average teacher. This article pays homage to the exceptional but does not address how to change what is typical.

Compare teacher salaries to average salaries in countries with the highest academic performance on standardized tests. The ratio in such countries (e.g. Canada) is almost always significantly higher than in the U.S.. Educational requirements to hold teaching positions are also typically higher. That's the secret to improving teaching quality on a demographic scale. Pay more, but expect more.
Thanks for the share. Tried this in python using some higher iterations and started getting good numbers around 1E6

Link: http://nbviewer.ipython.org/gist/pnegahdar/eb62475b28d5b394d...
>> This kind of work is just as awesome as all the papers on CPU side-channel attacks (cache, branch prediction, etc) which really seemed to take off around 2005.

Maybe you meant late 90ies, when Kocher (and others) published results on side-channel attacks.

http://www.cryptography.com/public/pdf/TimingAttacks.pdf
http://www.cryptography.com/public/pdf/DPA.pdf
I have always taken the negative criticism of Pyongyang with a pinch of salt. Not that NK is a good country but USA is too notorious with propaganda.

Also, USA told us that Saddam Hussein had WMD and was violating human rights and a threat to the world and all. I guess eliminating Saddam and giving that country to ISIS has made world a better place.
Shameless plug: I have a Java library that does this even more efficiently. It constructs a Levenshtein automaton of a word in linear time and then computes the intersection between a dictionary (stored in a deterministic acyclic minimal finite state automaton) and the Levensthein automaton. It also has other features, such as:

- Perfect hash automata (an automaton that gives a unique hash for every word/sequence).

- String-keyed maps that use a finite state automaton to store keys.

More info:

https://github.com/danieldk/dictomaton

http://search.maven.org/#artifactdetails%7Ceu.danieldk.dicto...
Nah, "soccer fields" is a very common way to reference size/length in various European cultures.
Correlation provides a starting point to investigate causality. To establish causality what you do is develop hypothesis for mechanisms of causality, identify intermediate events that may be observable if the mechanism hypothesis is valid and observe for those events. If these are observed, you have a much higher likelihood of causality. You'll typically do this if the return on investment from establishing causality is high enough since it's much more work - eg. You're trying to get a drug approval from FDA or you're trying to justify a major investment decision.
I was thinking about this. Straightforward parking is easy to automate. With big-rig parking there are a lot of really variable situations around loading bays. Often ramps and poles and dumpsters that could potentially roll around. I think of a lot of suburban shopping complexes in the middle of residential areas where neighborhood kids may be playing in the lot. So yes, I could see parking needing to be human-supervised. Though not necessarily even needing to be by someone in the truck. Perhaps just by someone at the receiving area. Probably an employee of the receiving bay who has a special license. When the truck arrives they have to "authorize" the parking, which acknowledges they inspected the the loading area and will watch the truck perform docking.

Whether there is someone in the truck at all times is a hard prediction. I also think that these trucks will have remote operation override, which was mentioned elsewhere on this thread (even as an alternative to / cultural introduction to / slippery slope for - full automation). Remote operation is the ideal solution for any kind of exception, short of failure of the remote operation system :P