skysight-inc/HackerNews huggingface dataset:
If the positions are marked like the numbers of the clock: "0 1 2 ... 11"

Then with n = 5, the bags are placed like:
"0 5 10 15 20 25 30 ..."
which modulo 12 becomes:
"0 5 10 (15-12) (20-12) (25-2*12) 6 ..."
=
"0 5 10 3 8 1 6 ..."

As 5 and 12 have no common divisors, all positions will be occupied.

Cheers
Babies body found in german border town
You can get 1G in Minneapolis for $65. But it's only in a few neighborhoods so far - sadly not mine. :(
That would be Dotty[1]. It's the same language as Scala but with union and intersection types, and some extraneous features stripped out (e.g. procedure syntax, XML, and `for some` types).

Under the hood it's a complete overhaul, based on the DOT calculus[2][3]. Already compile times are faster than current Scala (without any optimizations applied), and tooling will improve as well (Dotty fuses current Scala's type parameter and type member implementation into one, thus less work for IDE presentation compilers to do, for example).

Implicits aren't going anywhere, thankfully, how else could Spark et al offer such wonderful DSLs ;-)

[1] https://github.com/lampepfl/dotty
[2] http://www.cs.uwm.edu/%7Eboyland/fool2012/papers/fool2012_su...
[3] http://arxiv.org/pdf/1510.05216v1
Insofar as representative democracy is concerned, it has always fundamentally incurred the inefficiencies caused by the principal-agent problem and diseconomies of scale. This might have been a reasonable trade-off before the advent of modern communication infrastructure, but the model is highly anachronistic by now. The fact that electoral districts operate under a majoritarian basis ensuring party dichotomy per Duverger's law then only makes the case even worse.
> that only supports 15.

it supports somewhere between 15 and 16, actually. There are 52 bits of precision in a double's mantissa[1]. This gives you log_10(2^52) = 52*log(2)/log(10) ~ 15.654 digits of precision, that is, the 16th decimal place is accurate about 65% of the time.

You can also exactly represent in decimal the binary value stored, because as long as you have 52 decimal places, you have enough 2's in the denominator for all of the bits that you can represent (each 10 in the denominator pairs up with each 2 from each bit).

--

[1] Plus an implicit bit, but not in the fractional part of the mantissa.
By the same logic SVN is a simplified Git
The Apollo Guidance Computer
Excessive amounts past what is needed for local heat and electricity. North Dakota did recently pass legislation requiring more efficient/environmentally friendly storage/processing/usage of natural gas that would've previously been flared, regardless of how economically viable it is.

EDIT: I'm mistaken. North Dakota gave the industry an extra 10 months to meet these requirements.

http://www.reuters.com/article/2015/09/24/us-north-dakota-fl...

> Governor Jack Dalrymple and the two other members of the North Dakota Industrial Commission (NDIC) voted unanimously to change the date when companies must capture 85 percent of natural gas produced from their wells to Nov. 1, 2016.

Classy North Dakota.
Yeah but policing is expensive, being tough on crime is popular (but mostly only with white republicans) and lowering or eliminating taxes is sacrosanct to republicans. Perfect combination for these kind of abuses.

As long as the victimized populaces doesn't vote for the politicians in power or is otherwise disenfranchised and poor, it's a great plan /s.
Get out there and join political organizations. Another website just isn't going to change things.
Well that doesn't bode well. I've personally never learned anything from a hangover.
1Password for Teams – Security White Paper [pdf]
I wasn't sure how to answer this yesterday. I never experienced Apple's "better days" as I've been developing in Windows for the last 20 years. Apple's current days, well, they seem pretty good for my needs, but I wasn't paying attention during the times you're talking about.

I suppose when I need real control I would look to, say, OpenBSD instead, which I prefer to use remotely from a very pleasant and very predictable - but not super-powerful - Apple machine. Our needs, I'm sure, are not the same.
You should give RethinkDB a look... it has a great ops interface, and now that it has automatic failover, is probably my first pick... I wanted to like Arango, but they tend to lag behind in node support.

I happen to like MongoDB, warts and all.. that said, I would choose other options over it, depending on the need.
git, tar, make, and gcc (or clang/llvm) Probably still work.
Snapdeal Replies to Flipkart Lite with Snap-Lite
You are correct about Iraq.

With respect to Libya, memories seem suspiciously short. For a long time Obama was uninterested in Libyan regime change. (I suspect because the generals were so sure it would be easy, which set off alarm bells, but none of that was ever made public.) For personal reasons that no one could discern, "French celebrity philosopher" Bernard-Henri Lévy was rabidly pro-war, and lobbied constantly for it. For reasons that probably make sense if one is French, both the French public and Nicolas Sarkozy found his case convincing enough to take the lead and let the USA "follow". (That lasted about a week, because France, but whatever.)
The money isn't "charged." The case is just styled as In re $35.00 of US Currency because the case is about the ownership status of the property, not about any specific person. The money doesn't have to "prove itself innocent." The legitimate owner just needs to rebut the government's argument that it was illegally obtained.
There's lots of ways to read the numbers. Total murders is about the same as the high in the 60s, ~14k, but instead of 200 million people, we have well over 300 million[1]. That's over a 33% drop in per-capita murders.

1: http://www.disastercenter.com/crime/uscrime.htm
AFAIK the solution to make it easier to get access to credit was the one favored by the conservatives, leaving the market to settle pricing and allocation of resources, and thus (hopefully) remove the need to have public universities and social housing.
On the other hand, I wouldn't pay to build a road 10m long from my front door if I couldn't count on 100,000 of my neighbors to do the same so that I could get to work. And if I work for Ford, I'm not going to buy an iPad if I don't think that Apple engineer is going to turn around and buy a car.
I suspect the App Store comes with the OS, not from the MAS. Same situation as Messages, Calendar, Safari, etc.
I doubt the sheep are that ferocious.
Check out Sensei's Library Go wiki, Nick Sibicky on YouTube, and Janice Kim's "Learn to Play Go" series of books, IMO.

Also, the "Hikaro no Go" anime series is absolutely wonderful, and that takes Hikaro from a young and completely new to Go kid through to being a professional, with short instructional videos for kids after each episode.
Can CRISPR Avoid the Monsanto Problem?
Isn't the money innocent until proven guilty?
Apple to Shut Down Beats Music on November 30
Ugh, so much misinformation. Having lurked here for a while HN seems to think civil forfeiture is the boogie man. To clarify a few things, at least on the county level:

1) There are always drugs when property is seized this way. I review every single civil forfeiture in a rather large county, and the affidavits officers submit read something like: "I stopped Bob after an informant purchased a large amount of heroin from Bob, Bob had syringes, heroin, weed, a scale for weighing drugs etc... on his person, and a rolled up wade of bills". The money is then seized as proceeds of prohibited conduct.

2) IT IS NOT DIFFICULT TO CONTEST A CIVIL FORFEITURE. The defendant is given a single piece of paper, that is insanely easy to understand, and simply has to sign the paper saying the forfeited property is not proceeds of a crime. They then have to appear in court, before a judge, and demonstrate this fact. The bar is not high, but I have never once seen this happen.

3) The money does not all go directly to the seizing agency. Much of it goes towards drugs programs, oversight for civil forfeitures, and other programs. See, for example: http://www.oregonlaws.org/ors/131A.360

Perhaps at the federal level things work very differently and the process is abused, but every time I see these articles it really feels like an anomaly of a story is used to paint an entire program as being demonic, with little to no data to back up the conclusion.

edited for clarity, the statutory language is "prohibited conduct" not "criminal activity"
Strictly speaking, the 2.95 is right; but there is justification in rounding it up to 3. There is much less justification for rounding up 2.0 to 3.
Bullshit. I am sure the ~100k mercenaries in Iraq did a great job of stopping al Queada.

In fact mercenaries seem to encourage terrorism because they tend to be responsible for abuses and unlawful killings on foreign soil. Mercenaries were responsible for a lot of the abuses that happened in Iraq.

And I how you get to the parallel between the TSA and merceneries is beyond me. The TSA are government employees strictly subject to the law and with very limited powers. What in the world do they have to do with mercenaries?
Which makes zero practical sense. Weapons are pretty boring without drugs and sex objects added to the mix.

Edit: Never mind. That wasn't the full list. Weapons and Munitions are at the bottom. So a universal ban on fun.
This is a common but fundamentally wrong view of floating-point numbers. You are not "making shit up" by printing more that 15 digits of a floating-point number. Floats, doubles, etc. have precise values. As I said in another comment, the double represented by the literal `0.1` is precisely 0.1000000000000000055511151231257827021181583404541015625; similarly, `0.2` is precisely 0.200000000000000011102230246251565404236316680908203125 and `0.3` is precisely 0.299999999999999988897769753748434595763683319091796875. From these exact values, you can see why `0.1 + 0.2 != 0.3` – the left hand side is greater than 0.3 while the right hand side is smaller than 0.3. Printing only 15 digits is not doing programmers any favors: even though `0.1 + 0.2` will print as "0.3", that just makes the lie even worse – they will be even more confused when `0.1 + 0.2 != 0.3` even though both values print identically.
Live Stream from the Machine Learning Conference: CMU, Quora, Netflix, Google
Getting Ready for Holiday Shopping Season in the Way Santa Would Do It
Couldn't agree more. You wrote the comment I wanted to write but hadn't got round to starting on. The only thing I'd add is that whether in traditional or digital, an awful lot of guesswork is needed to even know how well something performed, yet alone how something will perform in the future.
To me it seems unclear that the threat of this sort violence from gun owners has actually been a significant consideration or relevance for many decades, despite the mythology surrounding it. As opposed to the demonstrably effective threat of organized political action by gun right advocates, say.
Worth mentioning that Elastic.co has a commercial product called Watcher [1] which I think is a really nice way for making an automated alert system. The downside is being a commercial product I can't use Watcher and would have to implement one myself.

I am still deciding between ES, a relational database and Cassandra for time series data. We use graphite now and are happy with it, but I think having a single database handling logs, events and metrics data would be much more ideal. Having logs already in ES does make ES a better choice.

[1]: https://www.elastic.co/guide/en/watcher/current/index.html
I guess it a good thing hardly anyone uses the Mac App Store.
Link didn't work for me, but I suspect Lift has been dead for a while. It was fine for the time, but if you want a full framework Play is pretty much better in every way, and if you want a light framework you have Akka-HTTP and others..
These are not Mac App Store apps.
Road speeds need to be re-evaluated every 5 years. They take into account the speeds of traffic that are currently flowing on the road.
> [...] smugness [...] talking-down-to-ness

I read the entire thing and I didn't get the impression of either. In fact it even said they didn't know for sure how the passive system works but that this is one theory and then explain it.

Seemed like a good read overall and I didn't feel talked down to or anything.
The flip side of that argument is that the top xx% people and organizations have accumulated so much wealth that they really don't know how to allocate it sanely. As soon as some channel opens to receive it (government or private), money starts flooding in, eroding the integrity of that investment channel - and stupid investments inevitably get made. Meanwhile, people can't afford houses or pay for college because the price of their labor is being systematically minimized to increase shareholder value, and the world and national economy as a whole are showing a low-growth stagnation.

The question is often asked, what intrinsic reason is there to worry about income inequality? One reason is that when wealth is more evenly spread, the millions of micro-allocation decisions by many people help power a very efficient engine of capitalism. However, if the wealth is unevenly spread, then we have much fewer parties making very heavyweight allocation decisions, and many much smaller allocations being made by everyone else. Under that scenario, the engine of capitalism starts to drop in efficiency because it's choking on too high a amount of misrouted investments in some areas, and not enough in others.
elected leaders

There's your problem. Why are you electing people? That's completely backwards. Electing people is allocating labor and incurring production costs without evaluating demand signals. It is ideas that must be debated and voted on, and have people fill in to execute them. Only by having information on what policy is desired will you able to properly apportion the production costs and allocate the representative labor in fulfilling said policy. Otherwise you suffer from principal-agent problems in having to trust proxies to execute their ideas, with the proxies you are capable of electing being highly limited in their ideological diversity by result of optimizing for the wrong information.
I'm concerned about wealthy people having a disproportionate influence on the living conditions and choices available to poor people, and a disproportionate influence on the productive output of society as a whole. The more unequal a society the stronger the incentive to produce things that rich people want rather than things that poor people need
Nginx as Database Load Balancer for MySQL or MariaDB Galera Cluster
"Proof" by evidence is an inherently statistical process. E.g. cops find a DNA match between a suspect and skin cells found under a murder victim's fingernails under circumstances where it is clear she tried to fight off her attacker. Does that "prove" guilt? No, it proves that under similar circumstances, guilty is highly likely. The problem is not that the justice system is statistical. That's unavoidable. The problem is the unfortunate confluence of the low standard of proof ("more likely than not" versus "beyond a reasonable doubt") combined with the high ratio of illegal versus legal reasons for carrying large amounts of cash (i.e. a high prior odds ratio).
Online slot of the year 2015 (Vote Here)
In fact, it's not using the default favicon, it's dedicated. It uses a specific SVG file with a specified color when the tab is active.

<link rel="mask-icon" href="website_icon.svg" color="red">

Ref: https://developer.apple.com/library/prerelease/ios/documenta...
I hate feeling completely powerless in these kinds of situations. All I can do short of flying to Syria and taking up arms against such tyranny is upvoting this post. Absolutely pathetic.

Update: The least we can do:

http://www.amnestyusa.org/get-involved/take-action-now/syria...
The oversight of civil forfeiture is financed by civil forfeiture? Is that true? Sounds like a serious conflict of interest.
But they can. Many languages have decimal and rational types.
Bummer - I was about to invent a gun that can be used as a dildo to invite a second-amendment challenge to their list. :(
Good point! I absolutely agree with you, and it's very likely I've misread the parent post. It's just that sometimes I hear people at my workplace conflate "the simplest way" with "the way I'm more familiar with, coming from Java".
For that you'd need a Rational.
Thanks! It's the asp.net web api stuff I've already looked at. Very good. Nice to know the open alternative I'll check that out too.
I initially thought of Gumroad too. Interestingly I don't see software or digital goods to be on Sello's list of prohibited goods.
I like mongo's interface (most of the time)... but when you get to more interesting queries, it gets far more weird than even SQL... I wrote an early node API almost mirroring the JSON query interface (was easy enough to do filtering on sensitive fields), and it worked really well.

That said, it was really clunky dealing with ordering as JSON doesn't guarantee serialization order (sort fields), and that was cumbersome to work around iirc...

Today RethinkDB would be my first choice for a similar solution... better ops interfaces with replication + failover. Instead of having to do a replica of a sharded system in mongo for distribution with redundancy. Also, while the query interface is a little more complicated to get started with, when your queries get more interesting, it's not nearly as messy as mongo gets.
Pagekite might work: https://pagekite.net/
With regards to point 2, at the federal level things do seem to work very differently. Here is a flowchart outlining the steps you would have to take to reclaim your assets from federal forfeiture:

https://reason.com/assets/mc/2015_06/forfeitchart.jpg

Regarding point 3, part of the problem, too, is that the federal government engages in sharing programs with local agencies. So if most of the money from a local-level forfeiture does not go back to the agency, the agency has a strong incentive to bring the feds into it because then they will keep a considerably larger fraction of the proceeds.
FYI: This is my event. Free content / shameless plug.
Ask HN: Learning Ruby on Rails in 2015
RoR seems like a good fit for many usecases and I would like to learn it. I have _some_ experience with programming webapps with django and node, but not very much. So I ask you experienced web developers, what is the best way to learn RoR to a professional level today?
> it happened only once, but I saw 5+6 result in 13

That's not the result of standard floating point arithmetic. I don't know what it is, but it's not that.
Great question!

We spoke to Jon Harrison about this (the scientist we interviewed who studies insect growth & respiration). He says that the truth of the matter is we don't know the answer, it's still a hypothesis that the way insects breathe keep them small. There are other competing explanations, like that it's insect's exoskeletons that constrain their size, or ecological arguments (fewer predators means they can grow bigger). Also spiders don't use trachea to breathe but are also small.

One piece of evidence favoring the oxygen hypothesis is research that shows that the fossil record on giant insect size correlates with the oxygen levels in the past, all the way up until birds evolved (and wiped out the ecological niche for giant flying insects!)

http://blogs.discovermagazine.com/notrocketscience/2012/06/0...

And I'm told there's some more interesting work along these lines that's yet to be published.. so hopefully we should know more soon.

Lastly, there's all kinds of experimental work on breeding insects in high oxygen environments, but the results so far aren't universal.. some kinds of insects grow bigger, other's don't. The idea being that oxygen can help the insect grow but can also do damage to cells (in a way similar to aging), so you may need a long while to evolve and adapt to higher oxygen levels.
Not entirely. I would have to search hard to find the exact information, but it is primarily funded by the general fund. This is all at the state/county level though; I have no familiarity with federal civil forfeiture.
Viral news site Digg Raises $4M
I was thinking the same thing... but then I don't know that the current Ukrainian government has requested military assistance, have they?
Putin’s Doomsday Machine
Many people throw hospital security into the pile of "well, lots of people don't care about infosec!" In my opinion, this stance is incorrect.

I've performed security assessments against many different industries, including banks, large enterprise, barely-funded startups, nuclear power facilities, law firms, hospitals, and more. In each of these fields, you see the "good guys" and the "bad guys" in terms of IT security strength. In hospitals, though, the whole field is terrible. The best of the best -- high-tech facilities that actually care about security -- are still doing terribly compared to the average large enterprise.

Health records are becoming more valuable, and not just because of blackmail. Insurance fraud and identity theft are feasible if you've stolen someone's health records, and the information stored within is only getting broader.

Hospitals wouldn't let their medical tech slip this far. They shouldn't let their security slip, either.
> The food you proposed as an alternative would result in pretty bad malnutrition, so it isn't really an alternative.

That's kind of the point, and exactly the problem. It's cheaper to eat unhealthy food.

> Finally, note I didn't say healthy food was cheaper than unhealthy food, only that healthy food is completely affordable.

Well, you were replying to a comment that started with "To the best of my knowledge, healthy food is in fact more expensive.", and your comment made it seem as if you disagreed with that premise.

It is certainly true that you can eat healthily on a pretty small budget. The USDA even published guides on this. They have a low-cost and a moderate-cost (which is probably still low-cost relative to many peoples' budgets) plan.

A big issue often left out of these discussions is that it is also very time consuming to eat healthily if you don't have lots of money to spend. If you have the time to cook from scratch, you can make healthy food cheaply. Finding time to cook from scratch is difficult for a lot of people, though, especially people working multiple jobs, or single parents raising kids and also working. If you're starting with raw veggies and dry beans, you're realistically looking at an hour or more of prep and cook time, plus cleanup. If you stop at McDonalds, you're looking at 5 minutes. :\

Another big issue is that a lot of people are honestly pretty bad cooks. It's hard to convince your kids to eat healthy food if you consistently make it taste bad, which is exceedingly likely if you're trying to cook "healthy" by cutting out most salt and fat. Hooray for dry baked chicken breasts and steamed vegetables.

All of this adds up. It's not just monetary cost, but when you factor all of this (and more) in, there are a lot of factors pushing people, especially poor people, toward unhealthy foods that are easy, fast, tasty, and pretty cheap.
This was one of my largest barriers in learning Scala. It seems that one needs to learn Java first because you're going to have to understand how it and Scala interact at some point.
Ukraine itself didn't learn from what happened to Poland in 1939. We had treaties that said we're to be aided by France and the UK...
Russia is developing a massive nuclear torpedo
I do like the access-granted DSL. It seems to address some of CanCan's problems on larger more complex projects. Also... if you prefer a more OO style, I wrote a 50 line authorization lib that has proved workable on some of my larger projects. https://github.com/hopsoft/perm