skysight-inc/HackerNews huggingface dataset:
It's a fine example. Are you saying that 3 case statements is too many?

Why optimize the code to support cases that don't actually exist yet?

Or even better, why optimize the code in ignorance to how it will need to be optimized in 2 years?
Social experiments
if bored, please watch!! we need as many views as possible! Please and thank you!
It may not be crucial for programming, but I'd say it's more crucial than Linear Algebra for finishing the degree at all, since there are CS subjects that you just can't really take unless you learn the logicish stuff.

I can't imagine not taking calculus either... How do you comfortably take the logarithm of an inequality without it?

This whole idea seems so ridiculously impossible to me...
> but it still can't brute force faster than ~8 tries per second on a 5S

Yes you can. You image the phone and brute force in parallel.

Edit: thanks for letting me know this information is wrong!
I think Code Academy's front page is too much like baby-talking to an adult. It starts "People write programs to make computers do things." then they tell you to try using your computer to add numbers as if that's impressive. Is the layperson supposed to be surprised that his computer can work as a calculator? The entire front page is extremely condescending.

Obviously it's worked for them this far, so it must be somewhat enticing to a certain demographic, but I think there's room for less condescension.
What about the Google Nexus line? They're neither very expensive devices nor crappy and underpowered. The entire Nexus line has proven that there's a demand for decent hardware at a non top-end price out there. It's especially important when it comes to being "allowed" to flash whatever ROM you like or unlock your bootloader, plus the pure AOSP experience means that updates aren't delayed by vendors or carriers.

For sure, Samsung are providing top-end Android devices, but the Nexus 5 is competitive with all the Galaxy S type handsets currently out there, plus the iPhone 5/5S too, and at a fraction of the price.
Use AWS OpsWorks. It allows you to setup time based instances easily.
What? It was so much better when we used ip addresses in e-mail addresses?
Just found some more details on https://github.com/sladeware/groningen/wiki/Design that explain it.
Ah. So what isn't Haskell good for?
I did the CSS Buttons project earlier this week and had the same issue you described. After checking the Q&A Forum, I realized I needed to include the stylesheet. That fixed the issue. I don't think this is a bug with that project.
Patents don't really work in software because a patent is supposed to be a temporary monopoly on a method of implementing something, and in software there's always more than one way to implement something. A patent on, for example, "enabling the user to buy something with one click" is far too broad - it covers any implementation on a relatively trivial idea. That's the fundamental problem with patents today - at some point they switched from being protection of a process for making something to "idea copyright". Now, the broader you can make your patent the more money you'll reap from it.

Patenting an algorithm, if it's truly non-obvious and hasn't been done before is fine in my opinion. The R&D dollars should still be spent, but spent on things that move humanity forward and not nonsense like buying a monopoly on "a process people have done for decades, but on a computer!"
How do you guys feel about the "Container-as-a-Service" providers (Orchard, Stackdock, Tutum) in relation to Elastic Beanstalk for Docker? IMHO AWS's solution appears complex and lacking compared to this: http://ow.ly/w63M6
I don't think that there's anything wrong with writing code itself, but perhaps apply it in a different context, e.g. robotics or computer vision, to actually make a contribution.
Wow, wtf? Why are you guys downvoting jschmitz28? Of course a local liquor store is a drug dealer. You do realize the USA is not the only country in the world right, and that the USA is leading the world in cannabis legalization variously across different jurisdictions in the USA? Which drugs fall in the illegal set and which fall in the legal set depends on jurisdiction. Just because your mom and pop told you that drugs were bad, doesn't mean your mom and pop were expert ontologists / semanticists. "Drugs" includes alcohol and MDMA and cannabis. "Illegal drugs" depends on jurisdiction. I'm surprised computer programmers are having trouble with this.
Designer Duds Losing Our Seat at the Table
I don't think owners/shareholders of a business care much about which cloud service the business uses. It is extremely unlike for them to force the business to change cloud service just for this kind of reasons.
GOOG split in early April to create a third class of shares (Class C) that allows the founders to maintain control the company through their shares (Class B) for the foreseeable future. They had issued so many Class A shares, their 10:1 voting rights were becoming diminished.

Neither company cares about the comparison.
I code as a catalyst to be creative in a technical enclave where I constantly learn new things people are willing to pay for.

I am sorry but I will not stop this. At least not at the moment. I don't think any of this is cool. This activity is my personal escape from "fluff" while still being able to subsist in a society driven by it.
I like Hutton's book, it seems simple and elegant without the flair of LYAH (which is good too, don't get me wrong). I picked up the newer Beginning Haskell and it seems decent as well; it has a lot of material akin to Real World Haskell.
Maybe not, considering the rest of the top 10:

Rounding out the top ten finishers after Kejriwal and Modi were singer Katy Perry, singer Justin Bieber, actor Laverne Cox, actor Benedict Cumberbatch, singer Beyoncé, actor Jared Leto, actor Lupita Nyong’o, singer Lady Gaga and music duo Daft Punk.

More like there are a large number of Indians and people there still think Time is a serious news publication, whereas in the US it is not taken seriously.
7 things you can do right now to protect your vision
Provisioning a Unix server is not programming. Programming, according to the dictionary is "The action or process of writing computer programs."

Deploying computer programs is, strictly speaking, separate from writing computer programs. With that said, it's certainly a skill that could be better covered by introductory texts.

Let's not get loose with our terminology though.
Grand St emails have really interesting stuff. They have things you don't often come across in the real world. Congrats to Amanda and team!
UX: How Pocket Onboards New Users
Teeth falling out is more a consequence of smoking its hydrochloride. The vapor condenses to hydrochloric acid which has a predictable effect on teeth.
http://www.w3.org/TR/1998/NOTE-HTMLThreading-0105

("but XSLT" does not meet the standard of non-obviousness to a person of normal skill in the art)
Forget Silicon Valley, meet Silicon Bali
OpenBSD has to be commended for executing on a simple idea
that sadly few developers ever adopt:

You can make software more valuable by taking things out.
I suspected that might have been the case but I haven't played around with reflection enough personally.

Shame :(
We are using Elixir at Quark, it's not actually in production yet though. It will be sometime later this year.
I get it that there is an infrastructure cost but shorter turnarounds seem to have worked for Southwest: http://www.cnbc.com/id/43768488

A 15 minutes reduction each way on a busy route might allow the company to run an extra leg or two.
In case it's useful to anyone, if you want something that costs $25 instead of a few hundred, Airfoil by RogueAmoeba[1] is great. It's just software: you basically need to leave an iOS/Android device next to your amplifier, and you can stream to it from other devices. I use it for music; AFAIK there would be a lag between image and sound for a video source.

[1] https://www.rogueamoeba.com/airfoil/speakers.php
What a fascinating article. I think everyone in my age group should read this as a lot of people don't really know the history behind asbestos & why it's so bad. It's just not discussed.
API for Twitter hashtag analysis now released to public
If that works, then something is incredibly broken...

The encryption key, just some random 256-bits, is protected by the rate-limited HSM, which can be unlocked by the passcode. Imaging the flash of another phone with the ciphertext is futile, because that other phone has neither the same key or passcode hash in it's HSM. A different HSM wouldn't be able to decrypt the ciphertext even given the correct passcode.

The whole point of the HSM is that pulling the key or the passcode hash out of it should be quite difficult... certainly not as easy as imaging the phone!
Why doesn't this run afoul of the enablement requirement?
Apple claims that the KDF uses salt fabricated into secure conclave in the CPU. You cannot realistically bruteforce password outside the device since you don't know high-entropy salt. So you have to type in pin code by hand and have your phone erased after N times.
Are we discussing control of email, or aesthetics of email?

If you want to use names instead of numbers, then you
can do that. You and your recipient must use the same
DNS root.
I disagree, I don't think the style was informal, I think it was simply poorly written. There is a difference between the two. The blogger never purported to be a good writer, so I don't fault him for it and I was able to get the gist of what he wanted to say, but it wasn't well written..
Add the -quiet option to mplayer.
What carriers is it incompatible with?
Right; that's the difference between Apple's hardware and (almost all) Android phones right now -- a dedicated hardware security element. Blackberry has this, too. Old Windows Phone didn't; I'm not sure if WP8 does. It was broken pre-iPad 2/iPhone 4S, though.
Spring cleanup of Perl: Let's delete 10,000 files from CPAN
"Streaming is downloading"

What was the point of this? Is your reading comprehension so poor that you didn't understand "download" to mean "download in full before playback" in this context? Or are you just trying to score pedant points?
I just emailed Erik about adding it to the list.
> You say "enlightenment values as values of enlightenment government" but what you mean is the values of government in the period of the start of the enlightenment movement. But as we all know, the process of replacing faith with reason was not something that was decided upon and implemented.

I think you need to go back to the history books. That's pretty much what happened during the French revolution. Religion wasn't the only factor, of course, there was nobility + state versus poor + merchants class warfare involved. But religion was seen, in France, to be solidly on the wrong side, with "laicite" as the result.

Problem is that they proceeded to place lots of people with no affection whatsoever to the religion, or the nation, or anything outside of themselves really, in control of the state. They literally threw out the existing people (usually after separating head and body of the individuals concerned), and replaced them near-wholesale. The result, as we all should know, but don't, was a monstrous, valueless, cruel and unlivable state, very quickly resulting in another revolution (generally referred to as "stage 2" or "stage 3" of the french revolution itself), which brought Napoleon to power, who was very much part of the wrong side in the previous stage of the revolution. People were clamoring for religion, values and the like because the valueless, morale-less bureaucrats behavior.

I think the enlightenment, if you look at actual history is very much a lesson in both how a religious based society doesn't work, and a religion-less society doesn't work either. Not that these lessons apply directly today, but I do think it's fair to say that France demonstrated very clearly to everyone that you can't live dominated by a religion, but you can't live without religion either.

You probably think that this "anti-religion" movement is something new, but I think once you study history, you'll find yourself to be on the very moderate anti-religious side of this argument (compared to the beginning of the 19th century). I think you'll also read about what happened when policies like the ones you're suggesting are actually implemented, and I think you'll agree that "enlightened" is certainly not universally better than what you'd probably call "stuck in the middle ages". Read about the rash of revolutions in Europe, how religion was involved, and what happened.
> The crux of his argument is this:

That's not the crux of his argument whatsoever, it's just a random statement being held up as a straw man.

> Income tax is the same tax paid on the same money, twice.

Except it's capital gains, intentionally taxed at a lower rate than income. The first tax is levied on corporate income, the second tax is capital gains which is taxed on the individual level. Different tax bases necessitate different tax treatment.

> Compare how corporate income tax works to how sales tax works. If you're a business you don't pay sales tax on your raw materials, you only collect it once on the finished product.

That's only true in the US. The majority of G20 countries that don't have capital gains + corporate income tax use a VAT to achieve the same ends.

Look at effective tax rates for individuals and corporations based in the US. We're one if the lowest taxed countries in the 1st world.
The problem with "patenting an algorithm" is that it's "not allowed" by the rules of patents. You cannot patent laws of nature, like math (not that that stopped everyone [0]). Algorithms are purely mathematical constructs. The idea that someone "owns" something just because they discovered it, not invented it, is scary.

Of course, I'll give you that algorithms sort of feels like a gray area. Even though they're pure math, they also sometimes feel like inventions to me.

[0]: http://www.amazon.com/Math-You-Cant-Use-Copyright/dp/0815749...
Sheriff ran air surveillance over Compton without telling residents
I hope you guys continue with this series and make the next one more in-depth. I am very curious how everything work, especially the fees.
Apple resets the clock as investors await next big thing
Ask HN: What do you measure in Google Analytics?
Many of you use Google Analytics, there is so much data and a ton of parameters. I'm very keen to know what are the important metrics, though they might be different for each businesses. I would love to hear from a)eCommerce/online biz b) SaaS/B2B business c)Online portal(news/magazine etc.) what are the key metrics you measure?
Exactly. They have incentive in accepting any possible ridiculous patent (money) and they do not take any legal risks accepting these bogus patents (can you sue them if you can prove the patent was bogus ? short answer: NO). Why on earth would they become "ethical" and "good" (and other kind of nonsensical adjectives) and refuse the money people want to give them ? It's like asking a prostitute not to accept money based on a client reputation.
The value of ~0 in C
Cool. You can do it also with `vlc` and the `-V aa` (ascii) or `-V caca` (colored ascii) video output in the console.

Can play any videos or stream the webcam:

vlc -V aa file.avi
vlc -V aa v4l2:///dev/video0
I too was in finance. Had to write ACH processing for loan payments and collection. No fun. However, there are plenty of docs from the Fed. No test systems tho :(. I think I'll go look for some of my old ACH code just for fun.
The Apple encryption specification claims to use a combination of:

A)The encryption key burned into the chip's internal HSM

B)A randomly generated encryption key in effaceable storage

C)The user's passcode

Each passcode attempt is protected by 250,000 rounds of some key stretching function (can't remember what exactly) using the device's internal crypto acceleration hardware.

To successfully parallelize an attack on an iPhone's passcode, you would have to A) get the key out of effaceable storage (can probably be done with a root 0day) and B) extract the HSM's burned-in crypto key (would require a decapping or maybe differential power analysis).

And even then, you're still stuck with a few hundred thousand rounds of hashing per try, which is pretty brutal.
That fixed it. Thanks.
VisualSFM: Free photogrammetry tool builds point-cloud data from photos
Asbestos dust is certainly a terrible thing to breathe in, but I think there's a lot of over-hype on the dangers of asbestos. I worked closely with contractors last year, and they all said the same thing, that asbestos fears were largely overblown.

The government and real estate agents treat it as if it's nuclear waste, but being around asbestos isn't guaranteed to give you lung cancer. It's only when you create a dust from it by grinding it, and if it gets airborne. There are main mitigation techniques that can control asbestos pretty easily. Having it in your house isn't terrible as long as you deal with it properly.
Rumps – Uncomplicated OS X Python status bar apps
Facebook Leaves Mobile Concerns in Dust With Surge in Revenue
One docker / VM is not a Docker restriction - more a restriction of this AWS offering.

Was one port exposed a legacy restriction on Docker?

It's not the case now - you can expose many ports to the OS, and then map them as you wish.

This is actually a massive benefit. We might deploy 10 containers to one box all exposing SSH port on 22 and HTTP port on 80, but then at runtime choose which port the OS exposes and map 10 different ports onto 22/80 in the containers.

The real value I find of Docker in production is the deployments - fast, repeatable, easy to rollback. Once they're on a box, it's much of a muchness once you've mapped the ports.
There are no software patents in Europe. I've seen nothing to suggest that European software companies are less competitive. In my daily work as a developer I've not once heard anyone talk about the competition 'stealing our ideas'.

The reason I think software patents are a net negative is that it's the sum of the parts that make a software product valuable. Patenting some of the algorithms used to develop this software product is not going to protect you from the competition in any meaningful way.

Contrast this with pharma where the end-product is simple, often a single easily reproduced compound.
>Having an internal QA team is not a practical solution if you want to deploy your application frequently.

By having testers who are not connected to your company nor care about its success, you overlook a crucial feature of having in-house QA. It doesn't have to mean weeks of non-stop manual regression testing. It means having a team working in tandem with developers to create unit, functional, and integration tests for rapid deployments.

I've used mechanical turk and similar services for data entry and other repetitive tasks, and it can be useful. But quality, usability testing, and sanity checking are the last areas I would consider handing over a mechanical turk service.

The notion that "In-house QA is killing your business" is one of the most laughable tech articles I've read all year. The hyperbole from Rainforest is over the top.
Seems really odd using "Never Settle" given how much AMD has been pushing that slogan for their GPUs.
Sounds like you might be a perfect candidate for CoreOS. fleet allows for single-purpose containers to move around a cluster. It supports all of the platforms that you mentioned (AWS, Openstack, KVM and bare metal).
You don't think convincing the FCC to rule that ISPs fall under common carriers is enough?
I read patents as patients. It's weird how verb selection biases our reading of the object, falsely triggering our intrinsic capabilities for auto correction.
The problem is that the layman doesn't know / have the capability to detect asbestos or properly control it. Fissionable material can be safe if you properly control it, but we don't let people play around with that.

The other problem is that it's easy to accidently make dust out of otherwise 'safe' asbestos, at which point it's too late. For example, hit and break a wall for whatever reason (put a hole in an internal wall, fallen branch hitting a roof), or drop some sort of heat-resistant cooking device that breaks when it hits the floor. It's one of those things where even if you do know of the risks, the possiblity of it being accidently realised is significant.

I fully acknowledge that some of the material properties of asbestos are truly amazing - its heat resistence is incredible and we'd be well served finding a safe equivalent - but on balance it is simply not enough to justify its use in applications where the layman can be exposed to it.
Docker is massively more lightweight than shipping AMIs.

- We build hundreds if not thousands of docker images a day after each CI commit. Thats not viable with virtual machines or AMIs.

- Docker has the union file system, so pushes and pulls of Docker images after each CI build are tiny;

- Docker is more platform independent whereas AMIs are very EC2 specific. No other cloud provider have anything as sophisiticated as AMI;

- Rollbacks are instant with Docker;

Docker can also be used in conjunction with autoscaling and resilience. We have 10+ containers on a box, but still replicate this 5 or 6 times and will possibly add EC2 AutoScaling in future. Cloud and Docker are complementary not an alternative in my opinion.
Show HN: SoundCloud Instant source code
Why Alternative App Stores Matter
I hear what you are saying but it wasn't just the chance encounter. I still had to interview, knock their socks off (actually fixed a live bug in the interview) and be a good team player. I believe you make luck happen by being open to chance and being prepared.