skysight-inc/HackerNews huggingface dataset:
You haven't managed to disagree with me here, because my point accommodates the fact that Google might cooperate with the USG.
I don't see any purpose in this other than to either look for open source applications to exploit in the wild or to just pick on a really easy target to make us all feel superior.

You could do a similar search for common anti-patterns in almost every language you can think of, so this is not specific to PHP, just perhaps a bit more common due to the low-bar for picking up PHP.

A useful aim of this sort of post to me is to underline that people should not do this in a script exposed to the internet, and if people read comments on searches like this, they'll find out why. I don't think it's appropriate to use variables in query strings even for learners as it's teaching bad habits - I have personally seen scripts go into production based on bad examples at a former place of work (in perl, not php), allowing spammers to use a contact form. You can guarantee that for each of these common vulnerabilities there are scripts in the wild scanning websites and trying to exploit them.

A surprising number of people still do make mistakes like this, so it does more good than harm to point that out I think, and certainly doesn't make me feel superior, it makes me wonder which vulnerabilities I've missed in my own code.
""(in reference to the tribal organization of Native American tribes, where in fact there was exactly one Chief who was the final arbiter)""

AFAIK absolutely false. It is also a gross generalization about a diverse group of people with differing sociopolitical structures.

I would suggest reading "Empire of the Summer Moon" for an example of a famous and incredibly egalitarian American construct, or just read about Iroquois political structures via Googling, for two examples.

http://www.cokesbury.com/forms/ProductDetail.aspx?pid=939760...

http://en.wikipedia.org/wiki/Iroquois
Zeiss f/0.7: You Can Now Rent Two of the Largest Aperture Lenses Ever Made
Al Capone was arrested, tried, and jailed for tax evasion rather than all of the much more series crimes he committed. This approach to law enforcement has been going on for long time now, sometimes with good outcomes. I think the problem now is that (a) it's gotten much easier, (b) because it's easy it's being used more often for less serious crimes, and (c) it's being used to protect the power of the powerful rather than to protect the populace.
/*author: Gauss */
var n = 1000000000;
var sum = n*(n+1)/2;
Or perhaps timing was a factor if they succeeded after. Timing plays a huge role in success.
>So freaking expensive.

It seems someone hasn't visited their local asian food market ;)
Lab grown ivory could be a big win? Or maybe lab grown amergris?
I don't think it would be that interesting - and I don't think we need to rediscover the fact that some languages use IEEE754 as the default number type over and over again
Hey, just in the interest of thwarting a false equivalence: I haven't called you names. You have called me names, on this very thread. I'm not super offended and would still buy you a beer in person, but let's all be clear that we're not supposed to be doing that on HN.
Just like tables for layout (CSS grids) came back a few years ago.
3D is just one shortcut to affordance. It is not the only way to lead a user to action.
Nuts and beans are both high in protein; quinoa is a complete protein (as is soy) by itself.

I get most of my protein from tofu, honestly. It isn't as protein-dense as beef, though.
Back up. First time I've ever needed more than one dyno :)

Interesting that you'd like to rent more arcane gear; almost everything that has rented has just been "nice camera" or "nice lens".
A => B doesn't mean B => A. "If it's considered sci-fi, it's probably transformative enough" does not follow from his words.
Haskell

foldl' (+) 0 [1..1000000000]

You could use sum, but that will eat up a lot of RAM because of the laziness.

EDIT: For the fun of it, I decided to do the same in a slightly more esoteric language, so here's a Prolog version (given that your stack is big enough)

rangesum(0,0).
rangesum(N,X) :- M is N - 1, rangesum(M,Y), X is Y + N.

?- rangesum(1000000000, X), write(X).
Making Contact with Trivium
32-bit or 64-bit won't matter for Node.js. The Number type in JS is specifically defined as using the 64-bit floating point format as defined by IEEE 754, except that all NaNs are coerced to a single value. In terms of the abstraction, there is never a cast when the value overflows; it should just always be considered a double. Under the hood, there may be differences in how the number is actually being treated.
Sorry, I wasn't trying to be offensive or indict the author. I also wasn't disagreeing with him.

I was only trying to add my lens of commentary. It wasn't to say that the author wasn't already taking this under advisement, but only to add my additional perspective.

Sorry if my diction led you to believe otherwise :(.
Hey! Where's the Micro Four Thirds gear? I'm being oppressed!

I keep slavering over reviews of the Olympus 75 mm f/1.8 and wondering where i can get 650 quid from in a hurry. And then trying to distract myself by trying to decide which of the four decent wide-angle primes i should get. It's not that i want you to take all my money. But basically, take all my money.
Might be worth keeping in mind that the State Department has a significant interest in TOR's continued existence, contributing roughly 60% of the TOR Foundation's annual income. Unsurprising, because TOR is a powerful tool for activists, journalists, and intelligence sources in the Middle East.

Doesn't mean the US doesn't want to weaken TOR, but it might not be that simple.

https://www.torproject.org/about/financials.html.en
If I rent to someone will you sell me insurance on the item in case they damage/thieve the camera?

Edit: Can you add Boston too :D
I assume he has three groups:

1. Employees paid less than the average
2. Employees paid equal to or more than the average
3. Management.

Reactions are:

1. Unhappy: Being paid less than average
2. Happy: Being paid more than average
3. Unhappy: Half of their employees now know they are being paid less and are unhappy.
They were advertised, but only the S4 and Note2 had BLE that came close to working...

though "Close to working" is as good as I can say for my wife's Note2... it was extremely flakey and loses connection all the time.
Moto X review
I designed the page based on a couple of popular HN guides:

http://news.ycombinator.com/item?id=6156354

http://muddylemon.com/2012/03/creating-effective-landing-pag...

There's a third one. Can't find it now.

I decided to try to be as brief as possible, front-load the quotes and back-load the details.
JavaScript turned out poorly because the first version was quickly thrown together (within 10 days, supposedly) by a single person.

Furthermore, this person didn't care about tooling and he also didn't have any clue about optimizing virtual machines.

Anyhow, any language or piece of technology needs to reach a certain state of maturity before it can be standardized. Once you standardized something, things are pretty much set in stone.
Peppy CSS3 Selector Engine
So you recommend letting people starve to death.
If we had a vi-versus-emacs debate, most people would know not to state their views too strongly. Or even if someone did, other people would refuse to take the bait.

With politics, there seems to be no such restraint.
"I believe that my previous two ventures failed mainly because of the founding team (which I’m included in). How do I know? Because companies with almost identical products and value propositions succeeded afterwards."

This is a dramatic and flawed oversimplification. There's no one reason why one company fails while another succeeds. The founding team may be part of the issue here, but I almost guarantee that there were probably plenty of other things going on than just that.
Sorry but this is just bullshit. More science will continue making overpopulation WORSE and EVEN LESS HEALTHY. The last great example of this, the Rockefeller foundation making the 'green revolution' of cheap, unhealthy, and unsustainable mass carbohydrate production[1]. Read 'Wheat Belly'.

Why can't these billionaires ever use some right brain thinking? Stop _fucking_ with our food. The more 'efficient' you have to be, the more vulnerable the entire system is to shocks.

You want to end animal cruelty, stop having more than two kids. Period.

[1] http://en.wikipedia.org/wiki/Norman_Borlaug
Did you intend to demonstrate a very common off-by-one error in Python?
Comment of the day:
"If you cannot increase his quota, at least give him a job...".
Right, because hiring someone is probably much easier than changing a number in some database.
There's some indication that this has something to do with facets, but the github.io docs link appears broken.

From Wikipedia, it looks like "Miller Columns" are the OSX Finder (et al) style: http://en.wikipedia.org/wiki/Miller_columns
I'm not sure the point you were making was entirely clear. Having read the article, and your replies, I don't see how the original poster misread the article.

It's entirely possible that I don't understand the situation. Could you rephrase the reason you believe the original poster was wrong? i.e. That the evidence trail is public.
Could this be the result of the intersection of "golang" and words in spoken languages?
The Snowden leaks indicate that assuming your data is safe and secure from warrantless access while residing blissfully in plain text on the cloud servers of the PRISM list member companies is at best a hopelessly naive expectation. That applies particularly if you are a "non US person reasonably believed to be outside the US", which means that you're considered to be fair game for any and all exfiltration schemes.
Chicken is one of the blandest of the birds. That's why it has to be deep fried, covered in spices and roasted, or marinated/mixed with a bunch of sauce to taste good.

Chicken meat simply doesn't have the ability to be enjoyed on it's own like beef. Eggs on the other hand...
No SoCal?

Was thinking of renting some gear to try it out before buying. (Might be a cool ad strategy you could eventually work with brands, kind of a try-before-buy approach.)
Has anyone done tests to see how the radioactive water and other contaminants have affected the pacific as a whole? how about the fish stock near japan?

http://www.grida.no/images/series/vg-climate/large/32.jpg
Hasn't it always been perfectly clear that ~all Tor exit nodes are owned by intelligence agencies? You only need a relatively small fraction of the exit nodes to pwn the entire system.
The error page it shows if my browser is not supported blocks use of the back button. Definitely recommend fixing that, as trapping users on an error page is a bad move.
Ask HN: Best way of marketing iOS apps?
My friend and I are developing an iPhone app and were curious, for those of you who have submitted to the App Store, what methods of marketing have you tried? What's worked and what hasn't? If it helps, it's a basic camera app aimed towards the "hip teenager" demographic that uses Instagram, Twitter, Facebook, etc. Thanks!
3X entrepreneur founds Causora to reward generosity with massages
Not sure why you're mentioning this as it's in the SO question:

"The correct answer can be calculated using

1 + 2 + ... + n = n(n+1)/2"
Congrats to Vlad and team! I haven't been this excited about a startup in a long time. Webflow has re-invented responsive web design.
Apple and the blogosphere
Right with you, I bought a Panasonic GH1 a few years ago because you could hack the firmware and get a video (at least in good light) that rivaled the MKII but at half the cost
> Even if its not, you can still use the resources used to produce that feed to produce human food instead.

If the resources required to produce (or harvest) the cow-food is more than producing synthetic meat: sure.

> And feeding cows waste has its own environmental problems, as it tends to play hob with their digestive systems and make them release considerably more greenhouse gasses.

Waste? How about plain grass? Or growing crops that are not human edible, since the conditions of the farm or land does not allow you to produce human edible crops? Of course those crops would still have to be easily digestible for the cows.
love the concept. a couple of comments:

1. I would love to post my gear there (I have a bunch of high-end Canon L lenses), but there's no faq or anything about how I'm protected in case my equipment gets dropped by the person I rent to. What happens, for example, if my equipment gets stolen?

2. How do I get paid? Is it a bank deposit? Cash? Bitcoins?

If you want more listings, you should make the process of lending easy and safe.
If it's a third party module, what do you care... plenty of 3rd party modules are written as wrappers to libraries in C. Probably in your language of choice even. This includes .Net and Java.
I interpreted it as meaning that btipling does not like such information collection but as long as they're doing it, any criminals they catch should still be prosecuted anyway. I think this is a terrible idea, but there seem to be many out there who do not consider the consequences and think that people should be put in prison regardless of any potential police actions that got them there.
True, I couldnt agree more
This looks good, though am curious as to how this compares to Adobe Edge Reflow? http://html.adobe.com/edge/reflow/
It's not right. You should add one to the bound because "range" uses half-open intervals. Also, it only works in Python 3; in Python 2, it creates a list of a 1000000000 integers, so you should use "xrange" instead.
Again: the "evidence" gleaned from tip-offs from unlawful surveillance can't be introduced into court in any fashion; for instance, it can't be the stated cause of a search, which must still be justified from first-principles by some defensible claim of probable cause.

It's a shadow, secret set of facts, but it isn't evidence and can't be used as such.

And, to be clear: I think the program is bad news and don't support it. But my reasons are probably different from those of many other HN readers, and have more to do with precedent (I think if we're going to do extensive foreign SIGINT --- and, sorry, we just are going to do that --- we should at least firewall it off from domestic law enforcement).
New Proposal Could Singlehandedly Cripple Free Speech Online
Completely baffling to me — where's the live demo?
I think in this case it does. Can you think of anything sci-fi that would NOT be transformative enough?
Why You Don't A/B Test, and How You Can Start This August
> its decay is via a weak beta particle emission, about the only way it could hurt you is if you ingested a lot of it

Well, it is water contamination they're talking about. People have the tendency to ingest large amounts of water.

Of course, as you say, knowing the concentration is vital to understanding the risk posed. You could drink gallons of water laced with a gamma emitter if the concentration were low enough (well, not gallons. You'd get water intoxication ;).
Probably should've used xrange as well. In the 2.x series, Python's range function returns an actual list.

I believe in 3.x range has been replaced with xrange.
Nice writeup! I'm using angular now on a work project for the first time.

My observation here is the same as what I've had for many "look how easy it is!" frameworks: A lot of frameworks sport "look how easy it is!" syntax, but using the easy/short syntax actually isn't adequate in some (sometimes most) circumstances, and often it isn't even "recommended."
So you start using the longer, more explicit syntax, and all those short/sweet syntax features are out the window.

For example, the easy-to-read {{obj.prop}} data-binding syntax is basically dis-recommended here with three workarounds given (use ng-cloak, declare databindings on element attributes, externalize & `include` the offending markup). Once you have 3 different workarounds for what's basically the most fundamental framework feature, I can't help but wonder "why offer this short/sweet/brittle syntax in the first place? Most 'power users' can't really use it." The dep injection one in particular- basically any shop worth its salt is going to use a minifier on big JS applications- none of them (us) can use the short dep injection syntax. Why even teach it/include it at all?

I guess it gets people up & running faster, but eventually you have to deal with these pitfalls.
that nytimes link showed that vegan breast milk isn't adequate
I completely understand the technical distinction, however I find the argument hypertechnical and completely violating the spirit of the law.

Honestly seems like the whole point of SOD is to get around the poison fruit guideline.
There is nothing there about a demographic group not descended from Europeans, so if that link is an attempt to reply, it fails.
Yes, although I imagine there are devices that are RAM limited.

I have enough ram not to be ram limited, but for example per my "running" tab, tunein radio pro burns up about 20 megs continuously. No idea why and I don't think I'm getting 20 megs worth of battery draining "anything" out of it. Too bad, because when I'm actually using it, its an awesome app. Google Goggles burns a bit less than 6 megs continuously, even if you're not using it, to do... what exactly?

This all costs battery, if nothing else. I'd rather have an extra hour of runtime rather than goggles and tunein starting up slightly faster when I use them.

There should be a configurable android setting where "piggish" apps can ask to start a battery sucking and ram sucking 24x7x365 service, but this specific app is simply not allowed to do so because its a pig-app.
It's possible, but so far there's no substantial evidence that it's true. And people have been watching out for it.
Any site viewed over plain HTTP is susceptible to content injection by ISPs, public wifi providers, employers, etc, basically anyone between you and the server. At best it's annoying, at worst it's a security hazard.

And as someone else mentioned, the session cookie is still transmitted in plaintext, which effectively compromises your Feedly account.
This isn't a problem with plant-based protein sources, its a problem with commercially-processed packaged foods. You can get high-protein non-meat protein sources that aren't as heavily processed (e.g., gluten powder, tofu, quinoa, etc.) and prepare them yourself to control sodium levels.
A Strategic Approach to IT Budgeting (March 2012)
Same here. I've got the feeling Apple is very arrogant. They seem to think all developers just love Apple whatever they do.
But my trust in Apple is gone.

Fortunately this year there will be a lot more to choose from: Android, Windows, Firefox OS, Ubuntu, Sailfish. And even some 'open' phones. I'm seeing a lot of companies stepping away from Apple these days. Too expensive when there are good alternatives.

And when you are writing company apps market share of an OS isn't an issue.
Is this mature enough to run dosbox in wine compiled for OS X? I want to know how deep this rabbit hole can go.
The only reason soy 'burgers' or 'dogs' exist is so that your vegetarian buddy doesn't have to feel left out at a cookout. They're full of sodium and preservatives and processed which is everything healthy people tell you to avoid. Not to mention if you put them in a bun with ketchup and mayo...

Besides, there are a hundred vegetarian dishes I'd be glad to eat before I'd want to eat a fake hotdog.
huh, the title of my post changed and it lost 7 points? random changes like this seem common on HN, interested in why

the original title was "Independent reasearch claims NSA behind Tor Browser exploit, owns 65.222.202.53" -- which I think is completely reasonable and accurate
They don't need a false flag attack. Just the threat of an attack.

"We are at war with Eastasia. We've always been at war with Eastasia."
Buy your way into the top lists with augmented downloads and ratings. Because that is what the competition is doing.
The Top 10 Things You Didn’t Know About Apple
The ideal outcome for the USG is that TOR provides anonymity to its users from everyone on the planet except the USG. Then people who do things they like can be protected while people who do things they don't like can be punished.
Only Apple can get away with something like this.
"Hey guys sorry we where down for days but now everything is fine again enjoy"

No aftermath report.
No details on anything.
Why did both the headline and the source article on this get changed? It was initially a link to Yahoo News and is now the Chicago Tribune.
Think I've got access to everything but the bug tracker, which I reported to Apple.
It's extremely difficult to do such a study because the entire system is just so complex and there's no way to control for many of the variables.

There have, however, been limited studies about bioaccumulation of tritium in phytoplankton and how it can move up the food chain [1]. As another poster said, tritium decays by beta radiation which isn't necessarily harmful but if it accumulates in the food chain, it might be dangerous (just like heavy metals and fish, for example). Tritium's half life is about 12 years so its not inconceivable.

It's a different environment but you can probably draw some conclusions about the impact/spread of radioactive particles by looking at Chernobyl.

Edit: [1] http://www.ncbi.nlm.nih.gov/pubmed/22863967
I don't use any protein supplements but I've heard good things about Vega's products http://myvega.com/
This is a serious question: Can someone explain, why this takes Apple - who have "unlimited" resources - this long to fix?
I agree, it really seems like they're trying to come as close to the line as they can without obviously crossing it, and I think it's clear they did cross it.

Also, I don't see any virtue to secrecy in this case; unlike organized Al Qaeda terrorism prevention or foreign hostile adversaries or counterproliferation, the tactics we're using in the "war on drugs" are a public policy matter that benefit from public discussion.
I've heard this before and never understood why. Why?
There's a reason why there are practically no vegan power athletes. I was vegan for nearly ten years and I regret it immensely as I now see how badly it set me back.

That said, you're right, with a properly-designed diet you can be healthy and happy. I don't believe you can ever be athletically optimal, however (aside from perhaps pure cardio sports).
Can't have people knowing why an article is relevant, now can we?
These deps are only for installing from source (due to third-party packages using different SCMs).
>Are you sure it's IQ, or as another user suggested, some kind of mass hysteria?

What's sort of mass hysteria has been suggested?

>The mainstream news exploded with the whole NSA thing, and then HN did too. Is that a function of IQ?

My IQ reference was about the general decline in HN/Reddit comment quality, not about concern with the NSA on HN/Redditm which I think is a healthy thing. Being interested in the fact that someone is collecting one's private communication is a rational security concern.
That's funny. I clicked it too. It just does a goog--^H^H^H^H NO CARRIER
Hacking attack on Tor allegedly linked to SAIC and NSA
Android Crushing iPad in Tablet Sales
Is it just me who gets annoyed when he goes to a github page and all there is there is a download link with no explanation?
VerbalExpressions - JavaScript Regular Expressions made easy
I was looking for this info as well and I found some answers in the terms + services.

1) You can redeem up to $5000 for your equipment. Basically their credit card will be on file and if something happens you can claim it.

I couldn't find anything on the payout sides of things.
Right, it's sad that's what it's come down to these days. Any tips if we don't have a large budget for that?