skysight-inc/HackerNews huggingface dataset:
I had a bug along these lines in a C# application that was pretty fun to troubleshoot, because it only occurred when the runtime gave a particular float extra precision (by letting it live in full-size x87 registers).

I was using an unmodified version of one of those standard 'triangulation by ear clipping' algorithms, transliterated directly into C#, using floats. In practice, it did exactly what I wanted and I wasn't using it much, so I never put much thought to it. Then it started going into an infinite loop in some cases. Troublesome.

So, I'd get it to go into an infinite loop, I'd attach the debugger, and... it'd leave the infinite loop. What?

Hm, identify the arguments that produce the infinite loop (good ol' printf debugging!) and reproduce those in an isolated test case. Great, test case enters an infinite loop, let's attach the debugger... hey, what? It's not failing anymore.

As it turns out, the default behavior for attaching a debugger to a .NET executable includes having the JIT deoptimize some of your method bodies in order to make breakpoints and local variables easier to work with (in their wisdom, MS did include an option to turn this off) - so any time I ran the test case under a debugger, it passed, because deoptimizing the method had caused the floating point math to flush to 32-bit float representation more often, truncating the additional precision. The infinite loop ended up being caused by that additional precision!

Best of all, the other platform I was writing the code for at the time (PowerPC) didn't exhibit the bug, because its floating-point implementation doesn't add additional precision.
Good question. If the user isn't on a mobile device then it could be easier for a number of reasons:

1) It's not their machine, or they're not signed in for automatic syncing, so getting a link on their device that takes them straight to the app store listing is easier.

2) I very rarely let a link to the app store open up iTunes on my laptop so again an SMS message is quicker to getting it on my device.

3) With the above points you could just say, "search for the app on the store", but in lots of cases (from an iOS point of view) it can be difficult to find the app.
I'm confused about the table in the middle of the article. If rice and corn have the same amount of kcal per 100g (365), and rice has a higher yield per acre than corn (7700lbs vs. 6900lbs), how does rice have a lower Calories per acre number? Is there another conversion I'm not seeing?
> If they'd been real jerks they could have sued him for infringement despite his taking it back down when they asked.

That is a good point. I know we all want to get out the pitchforks and torches, but they may have a legit reason for needing him to take the project down. I can say that I could not open source ANYTHING that was remotely related to work right now, and my current employer has no say in the matter.

Nick seemed to be sad, and disheartened, but not upset at his company and I think he is in the most informed person we have here, so lets take his advice and not form a mob.
Are Google's driverless car just a way to show more ads? Instead of driving a car you could be watching an ad.
10x has 11 x's in the logo. So, it also has Spinal Tap vibes too.
Using Require.js in an ASP.NET MVC application
That's WAY overpriced. I live a good part of my life on the stuff (swallowing problems arising from Parkinsonism) and at local pharmacies it's regularly on sale for $9 for a six-pack (bottles, not cans—they're almost always more expensive in cans, and the cans and bottles are the same size), or $36 for 24. But that's if you buy the Abbot-branded stuff; most of the large pharmacy chains sell a house-brand version for a little less ($7/six-pack, or $28/24, in Toronto is not unusual for Shoppers' Life Brand, and there's a President's Choice version in the Loblaws chain as well). Note that there are three versions: regular (intended as a top-up supplement for people who are eating, just not well), "plus calories" (mostly more fat), and "plus protein", each of which is aimed at people with different requirements.

And no, it's not an adequate diet replacement for the average case. If you really don't like food and consider it an inconvenience, maybe—but that ain't normal. And it's not just a matter of getting used to it (goodness knows I've had enough of the stuff); normal people actually enjoy the tastes and textures of good food.
Sorry Apple, Samsung Is Making A Smartwatch Too
While this may seem like a joke when referring to this size of code, some people actually write this way:

http://nsl.com/papers/origins.htm

(Arthur Whitney's initial implementation of "J")
Genetic artworks with Paintatron
I am curious... why do you find sqlite similar to FoxPro? I thought the inner engines were quite different
Ah. I stand corrected. I @synthesize because I always want foo and not _foo.
Let me see if I get it:

Someone exposes code, FOS'ing it (apparently MIT), here comes "the internets", it likes what it sees, exposes to both forks and HN positive comments, along comes employee's manager and cuts the story short, IP issues and whatnot (for JS, really?!)...

The internets will either rename it; rewrite it, use it anyways and ignore the anonymous business, maybe keep the Nick name either associated/thanked or a part of it anyways...

Now the company can either get ready to start some bound-to-loose IP fight over this, which I'm sure has a great ca-ching sound on some poor manager's brain; along with zero chances. Or the business can capitalize on the positive feedback, maybe become a part of a greater good.

I don't get what's so complicated
What a great lesson Nick has been offered by working there. He got the opportunity to learn what kind of employers aren't worth HIS time at a young age.
The infections by state chart would be more interesting if it was per capita.
For what it's worth, I use one of those ThinkPad external keyboards with my Mac. It's a great solution for those of us who can't work without TrackPoints.
http://en.wikipedia.org/wiki/FoxPro

http://en.wikipedia.org/wiki/Visual_FoxPro

It had a lot of fans back in the day.
I find this fascinating. How does chameleon infect its victims? Anyone have further reading? Botnets seem incredibly interesting.
This is fairly well-known as 'structuring' or 'smurfing'[1]

[1] https://en.wikipedia.org/wiki/Structuring
The Industrial Revolution didn't happen in China in the 19th century because of the abundance of cheap labor...

http://www.voxeu.org/article/why-china-missed-industrial-rev...

"Whereas entrepreneurs in Europe were very eager to develop new technologies that increased labour productivity via the capital-labour ratio, Chinese businesses barely had any incentive to do so. "
can u provide a download link for chartjs please?
Firefox 19.0.2 on Win8 here.

Google looks totally reasonable without images. The field is visible, even when out of focus.
Why have they ditched the "big delete key" redesigned keyboard they were touting a couple years ago?
If an application uses floats in lieu of doubles might that be evidence that accuracy is not at a premium?
> Let me explain. My company's employee manual had a clause stating (and I paraphrase here) that any intellectual property (patentable invention, copyrightable materials, etc) created by the employee was owned by the employer.

Is that the same manual that starts with the statement: Nothing in here should be construed as a contract?
For all those that downloaded chartjs, can anyone of you provide a download link please?
Great post, but I think that Startup Chile was the first accelerator program to guarantee a Visa, though whether that counts as a top-tier program is subject to debate. Whatever the case, it's great to see the UK leading the US here.
Do you get 10 traffic tickets a year? How much should we fine a 12 year old script kiddie if they were to do the same thing? AT&T is to blame here for not taking even the smallest measure to secure their data.
But why were these features disabled? To control a market they can't own?
If you accidentally find out you have access to someone else's private data that you aren't supposed to have access to, there is a big distinction between your next step being

1. walking away, maybe telling someone

2. sucking up as much private data as you can
If they blow you off, they're telling you they don't want to hear bad news. How to react at that point is a matter of judgment; I've personally found telling people things they don't want to hear is tiring enough that nowadays I save it for emergencies, so in this kind of case I just drop the pointed questions, and nod and smile and say something pleasant that's vague enough not to be untrue.
I think you should tell them, but not in those words. Carefully explain your objections. At worst it will be a good filter for teams that don't have the necessary commitment to carry through on their idea. If they are smart, they'll consider what you say, see what applies, and make any modifications that seem justified. If they quit, it's better they give up early in the process, because there will much more discouraging things hitting them down the line, and if they can't handle a few reasonable objections, they aren't going to make it even with a good idea.
> Eating fewer grain products is not synonymous with popular diets like low-carb or gluten-free. It needn’t be borne by commitment to a food movement like paleo.

Sure, it doesn't need to be related to the Paleo diet, but that's still where it all stems from. It's the same as any other fad diet or pseudoscience: Come up with some reasonable-sounding claims that take advantage of poor scientific awareness (e.g. 10,000 years isn't enough time for humans to adapt to eating grains, so we should eat like cave men instead), then make millions of dollars promoting your diet and selling books to your unquestioning followers.

There's a common sentiment among Paleo zealots that they finally need to distance themselves from the irrational underpinnings that started the whole fad (see here[1] for a FAQ by the 'Paleo diet' inventor). The problem arises when they go searching for scientific evidence to support their grain bashing, and then we end up with statements like this:

> It can stem from the simple proposition that fruits and vegetables are generally healthier to eat than grains. That’s an argument I’ll cover more deeply in later posts.

Oh, how convenient. Save the crux of the argument for another time. We'll all be patiently holding our breath.

[1] http://thepaleodiet.com/paleo-diet-faq/
Didn't Expect anywhere near that sort of reaction though

I read that as reaction to the project by the public (i.e., tons of page views), not as the reaction of his employer. It's quite possible that his company was quite friendly about the issue.

While it's unfortunate to lose an open-source project, there is not enough information to know whether Nick or his employer is the overstepping their bounds.
.cz
Disclaimer: You should probably not actually use or fork this, due to https://news.ycombinator.com/item?id=5400004

This is mainly for people like me who missed it the first time around and were curious about it.

Github repo: https://github.com/danielsamuels/chart-js
What's your data usage policy? Why you need users' personal data? TIA
#PS10: Meet the 10 Best Startups in Latin America
How my new blog got 50.000 views in one week
The problem with this idea long-term is that the body will 'plateau' and what may happen is decreased immunity and inability to adapt to natural seasonal and/or drastic weather changes. The body is not so simple as to be relegated to some normalizing diet. Food is as much about energetics than just protein/carbs/calories.
If something is free, you're not the customer, you're the product being sold.

I'm consistently amazed by people who are surprised when a free product either (1) switches to a paid model, (2) has service issues or (3) goes under.
Don't look at whether its acceptable or not, look at the implications. If those names were to be publicly released, the MIT employees would not exactly be safe. In fact, I would be pretty scared for them myself. Given all the emotion in the aftermath of the suicide, it's not fair to put those people in danger. Mr. Reif couldn't have said this better: "But I believe that openness must be balanced with reasonable concern for privacy and safety"

What is important, however, is that those people are self-accountable. And they realize their own faults and look to improve in the future. You might say this is awfully altruistic, but it is better to hold the employees accountable in this regards instead of jeopardizing their personal privacy and safety.
Yes. That was my point (atomic vs. automatic).
Stacksort: sort stackoverflow functions
Awesomeness is awesome.
He is walking a tightrope. And protecting the privacy of those that are not deemed culpable in some way is understandable.
However to be consistent with his previous acceptance of MIT holding some responsibility, he probably should:
(1) release the redacted documents now.
(2) perhaps not refer to this as the "Aaron Swartz situation" or state that "In the time since Aaron Swartz's suicide, we have seen........ ", as this wording is less accepting of some responsibility and really is putting the full burden of the backlash on Aaron. (he could perhaps say "our handling of the Aaron Swartz situation".)

It would appear that regardless of what MIT does, it would be up to the court when and how to release the un-redacted version.

....and MIT, for Fks sake, get your Network security together, that is really not a great reflection on your reputation as world class engineering org.
Is the comparison valid to say botnets are the bacteria of the Internet?
Yep. Encouraging employees to be proud of their jobs/company and giving them a reason to do so is nice. Free fitness classes is an awesome perk.
Sounds a bit creepy but I guess I'm simply not used to it.

In the UK we are close to that but not quite yet.
The Mismeasure of Man is notoriously awful trash. It's amazing that anyone would recommend it as a reference or guide to the subject when its poor quality is so widely recognized by actual experts in the field.

Nobody believes that IQ expresses everything about our mental functioning. It is instead a useful and reliable way of measuring important aspects of cognitive ability.
THE NEW RULES OF THE HYPERSOCIAL, DATA-DRIVEN AGE OF TELEVISION
No , that is the first foray of Skynet .. much more interesting than ads.. and provably the single handed elimination of human drivers from taxi services ;-).
Of course there are already talent agents for contracts and have been for years--maybe not so much short-run freelancers but plenty of businesses place contractors for six-month+ terms.

Most don't bill themselves as only for the 10xers--and for good reason--your supply of exceptional talent will quickly run out. Few 10xers get paid ten times of a 1Xer. (I bet you'd bill more with 50 1xers than 5 10Xers.) It could be that a boutique agency will get enough traction and recognition to draw enough 10xers to be crazy successful--it will be interesting to watch.

But coming from the side of someone looking for good developers I'm all for a little innovation in the recruitment and employment space.
And if you're going to be obsessed about something, there are far worse things than fitness.
I don't understand why he can't just modify the driver if he's going to go through all that trouble. Also, NVidia does support 3 monitors under Linux which was the point of this hack so this is confusing on many levels!
At Strata (O'Reilly's BigData conference), there was an entire session track dedicated to fraud prevention and legal movement on this type of stuff. Although, you will never be able to stop this (unless you stop people from being driven by money) the data community is taking this kind of detection very seriously. Every business, if it get large enough, is going to care about this type of fraud, if only to pay it some amount of lip service

I saw a presentation. From a data scientist at bitly. She showed that spammer links have a distinctive traffic shape (constant over time) while real links have a totally different one (initial peak followed by logarithmic drop to zero). Similar patterns exist in advertising campaigns. 6MM/month seems like a lot of breakage that someone is fine cutting that check.
As much as the HN crowd might rail against walled gardens (most notably iOS) and managed platforms like ChromeOS, every time I read one of these posts I think that for the vast majority of people, it's the best thing for them.

Botnets typically don't spread in a sophisticated way. Most of the time it's spam emails or dodgy ads with "hey! install this random .exe file and you can have emoticons in Outlook!"

I think Chrome has shown us the advantages of an automatically updated browser. The future in personal computing I think lies squarely in an automatically updated (even managed) sandboxed environment.

This isn't to say that's right for everyone of course.

But how much fraud, extortion, DDoSing, identity theft, invasion of privacy (eg ratting), etc do people need to put up with before they demand a better way?

EDIT: to address two points:

1. Side-loading is orthogonal to the issue of a sandboxed managed environment. I agree users should be able to side-load. Most won't know how and won't care and that's a Good Thing [tm];

2. Sure the central server can get compromised but the thing is botnets rarely spread in a sophisticated fashion. It's all social. The Facebooks, Apples and Googles of the world have far more experience and a far better track record in dealing with these kinds of threats.
I'm on Keto now. The biggest change that I noticed while being on Keto is that I eat a lot less and I get fuller on smaller portion sizes.

Typical breakfast is 3 pieces of bacon (yummy) with peanut butter. Large cup of coffe with 1~2 tablespoons of coconut oil.

Lunch is a small $3.50 salad at the salad bar.

Dinner is typically cheese and deli meat with more peanut butter.

I drink about 60 oz. of water a day plus 2 large coffees.

I'm only tired because I'm staying up late and not getting good night of sleep. Hopefully ASMR will help with that.
When to use MySQL, MySQLi, or PDO in PHP..
> Food production has been optimized throughout the entirety of human existence. But it has been optimized to solve a problem most people reading this article no longer experience. Society no longer needs more food; it needs healthier food.

There is an argument that "most people reading this article" shouldn't be taken in isolation from the rest of the world. The market for food is global. And there is (according to the UN) a worldwide food shortage[1]. Certainly, (inflation-adjusted) food prices now way higher than at any point between 1990 and 2007 (though down from peaks in 2008 & 2011)[2].

If demand from first world countries shifts to lower-calorie-per-unit-area foodstuffs, eventually the global cost of a calorie's worth of food will increase, exacerbating any food shortage. (Whether that is a good reason not to move away from grains is a matter for debate -- see the endlessly rehashed arguments whenever someone brings up food shortages as a reason to be a vegetarian).

[1] http://www.guardian.co.uk/global-development/2012/oct/14/un-...

[2] http://www.fao.org/worldfoodsituation/wfs-home/foodpricesind...
I'm in the UK. I change my sheets every week. I did this even when I didn't live with my girlfriend.
Just trying Ultra-Lean startup with Codeely
Pretty sure you'll be able to find a new employer with Chart.js under your belt.
Using the assumption that there is never just one cockroach, what is a good multiplier to arrive at total-fraudulent dollars-per-month?
Paying them yourself isn't enough when it comes to file lockers. Their goal is to get not only the original uploaders paying to keep their files online, but also some percentage of downloaders as well. That's why sites like this have countdown timers, bandwidth limits and waiting periods. They're hoping that people will get so sick of the bullshit trying to download your files that they'll spring for a premium subscription.

This is why they've had such an interesting relationship with copyright infringement. Obviously, they want to avoid getting shut down - but people uploading TV shows, games, music, movies, etc on places like DDL forums drive so much traffic and so many premium memberships that their business model almost depends on them.

Some of them even pay dividends to the popular uploaders, as a thank you for driving traffic. This drives an entire underground economy, where people upload copyrighted content to file lockers, then use the payments from the file locker service to buy more content to upload.

Edit: One example of this kind of underground economy is in the anime fansubbing community. You've got people who want to widely distribute 200-500mb files (generally) that are... not entirely free of copyright, to say the least. Hosting the files yourself would be a pain, as you'd get takedown notices AND have to pay for servers and bandwidth. However, you can upload your episodes to a couple file locker services and post the links on your site. You'll get a kickback from the file lockers for driving traffic, and if they get taken down, you can just reupload them, possibly even at the same site. The fansub groups say they use the money to pay for hosting and buy Blu-rays to rip and release, but I'm sure some of them pocket some as a salary too.
Media queries & Drupal
Yeah, Startup Chile is a great program but I don't think it's in the same league as TechStars, YCom, 500 startups & Angelpad.
The New York Times experiments with more structured online comments
Still on the front page:

11.	Show HN: XKCD-inspired StackSort (github.com)
848 points by gkoberger 20 hours ago | flag | 187 comments

https://news.ycombinator.com/item?id=5395463

I know I've been guilty of submitting duplicates, so I'm not complaining, just pointing out that the discussion is already happening on this one.
I don't think many home users are using Outlook.
I've updated the pledge - I'm now asking major browsers to warn users if a link is changed to another domain from what it originally was.
Botnets are inherently malicious. This is obviously not true of bacteria. But in a way they are similar I suppose. I don't think its a very fruitful analogy either way.
Runa Capital led $2 million investment in BackupAgent
You sir are a god amongst men.
Building On Big Data | [How] BuildDirect is transforming e-commerce.
This is an irrelevant statement because taking photos of someone through their window is not a crime, the act of trespassing on their property to do so is.

So really the proper analogy is that if you've got your windows wide open and are dancing in front of them naked when some perv takes a photo from the road there's really not any legal recourse for you.
so... if I have this cloned can I still use it?