skysight-inc/HackerNews huggingface dataset:
"How many Europeans use Google? 90%. That's democracy: the people of Europe gets what it wants."

No, that's not democracy, that's a free market. There's a big difference: democracy is about electing representatives to pursue your preferred policy goals. These goals may or may not support personal or economic freedom. One might want to use a service on the free market and at the same time want their elected representatives to constrain its competitive strength to enable local competition. Mainly this should be done in the interest of consumers or it gets too distortionary. I'm not claiming Google harms consumers, I'm just saying that (for example) Google has massive negative implications on privacy which are concerning.

"Now pass a "democratic" law to ban Dropbox because it's not hosted in France, and all we're left with is the opposite of democracy. "

Actually, no. What you're left with is a democratically elected government that is closing their trade market somewhat in favor of other interests.

Note, nowhere did I suggest it was a good idea to ban a company from trading with a country. That would be a bad policy unless there was a very strong reason and popular support. Constraining behavior, on the other hand, might or might not be a bad policy. Hard to know.

"It's just a matter of performance... until the law comes into play, in less than democratic ways, to cut competition."

I agree the free market and free enterprise is all about performance and results, and the law doesn't care about such things. But that's why democracy exists - sometimes efficiency and performance is NOT what the populace wants. They want change and competition to be slowed by laws and regulations. People do not respond to change as quickly as the markets sometimes want them to.

All of this are just policy differences between laissez-faire free market and more socialist policies. They have their tradeoffs but are both legitimate (one is not more "democratic" than the other).
From current production code:

class VendorOrderShipmentResource():
...

def post(...):
...

for item in data.order_items:
...

if not shipment_qty:
abort(400, message='All order_items must have a quantity_to_ship.')

That line goes out to col 86. I realize that it's possible to break it like this (#1):

abort(
400, message='All order_items must have a quantity_to_ship.')

or this (#2):

abort(
400,
message='All order_items must have a quantity_to_ship.'
)

or this (#3):

msg = 'All order_items must have a quantity_to_ship.'
abort(400, message=msg)

or this (#4):

abort(400, message='All order_items must have a '
'quantity_to_ship')

I'm not really a fan of any of those:

1. I'm not a fan of this one, in this case at least, because it "looks weird" due to the mismatch between the length of the function name, and the length of the next line. Also, I'm not a fan of "hiding" the closing parenthesis at the end of the line, rather than putting it on new line at the original indent level (like #2).

2. I'm not really a fan of this because the first argument and the function name are so much shorter than the message argument, that it looks really lopsided.

3. I'm not a fan of this because it seems stupid to create a new variable just to use it on the next line (and never again).

4. I'm not really a fan of breaking strings up this way, but sometimes I'm forced to. Breaking strings up this way tends to be really fragile when you want to modify them, and might need to reflow the entire wrap.

Personally, I'm just a fan of increasing line length to ~100. The number of things that go over 100 columns (in practice) is much smaller than the number of things that go over 80 columns.
... and in that situation, a headline suggesting the crisis is over ("Call off the Bee-pocalypse") would be misleading. Especially since the all indications show the problem continues to get worse.
Right, I can fit 2x100 cols, or 3x80 cols + a project view. So I can see my code, its tests, and either the shell (i.e. test results, ipython, debugger, tail -f logfile) or a web browser for documentation.

Is that junk?

How many of your lines require that 100 columns, in your average code?

Of course, this can just descend into a pissing contest. The point isn't who-has-the-most-windows, but that the logic of 80cols has a practical point, and programmers who continue with the default have reasons that aren't just about teletype or not moving with the times.
Agreed. Wish I could limit cap the monthly amount spent.
When there will be multiple shorter passwords that hash to the same value, is there a point to a 20mb pass?
If this site wants to be effective, it should link to more than just a video. Don't make me sit and watch a video to get the most important ideas. Summarize them at least!

The reason people disable SELinux is that it leads to obscure hard to diagnose problems with equally obscure hard to research solutions. It has a reputation as a poorly documented, overly complex time sink.

Its benefits are also a bit unclear. I know it "improves security" but some specifics are needed -- how, why, and what exactly does it do? What's an example of an attack that would succeed without SELinux and fail with it? Benefits should also be stated -- and with concrete examples and concrete use cases. There is way too much hand-wavey cargo cult "because security!" BS in infosec/netsec.

By contrast, consider a security improvement like ASLR. Its benefits are easy to understand (if you know how stuff works under the hood), and it's very easy to enable and generally causes no problems. ASLR is a good example of a transparent, easy to use, and clearly beneficial security feature.
If the monarch butterfly goes extinct like the passenger pigeon, that's irrevocable. And evidence is mounting that we are at the edge of an man made extinction event, and by evidence I mean the number of species that go extinct per year. I don't think the big concern here is hyperbole, but rather the papering of it over, on which point we agree.
Those are great suggestions, but may point is more that "too much on one line" isn't necessarily better than "too little over too many lines." It can be hard to get a good overview of what is happening when you've got to resort to splitting one significant token per line.

In other words, I try to use vertical space for higher-level work than horizontal space, and when you have to fit both into vertical space, you lose some clarity in high-level in order to gain it in low-level.
It's not supported.
If Amazon (and my coworker in a 3 person dev shop) can automate the scanning of common API key patterns as a pre-commit filter, I wonder why Github itself doesn't flag for this sort of thing before publishing.
Yeah, this is the way to go. For when I have to use the AWS console, I use separate Chrome profiles for each of my environments, so I don't even have cookies, saved passwords, etc. that might relate to other accounts. (I also use separate Chrome themes in each environment and use a CSS manipulator such that my prod console is in a bright-freaking-red Chrome window with a red background. Blue for test, green for dev.)

For my own AWS accounts, I use a read-only account in the profile and, on the very rare occasion I want to get clicky rather than use awscli to frob something, I'll log out and log back in as my writable-to-IAM user. I have a third user that only has IAM read/write privileges if I have to deal with that service. (I haven't sold my clients on this approach, though.)
Like me. And I would like to help but I know almost nothing about penetration testing. :(
BCrypt has a character limit of 72.
50 years in the Warzaw pact?
Universal education is not the same as universality in education. If the aim is to identify the 0.1% it does not matter if the universal education is rather spotty in quality since the highly intelligent will manage to succeed no matter how poor the educational environment.

If you want to be really clever you just give those smart kids who had a bad school environment bonus marks at the university entrance stage and give full scholarships - say just like the elite universities do right now.

I should mention the aim of the rich is not to maximise production, but their share and status. It does not matter if the pie is smaller as long as the size of your slice is larger.
That looks like a pyramidal scheme...
Utter leftist nonsense. Reagan was responsible for the biggest and longest economic boom since World War 2, he freed millions of people from the miserable tyranny of communism. His tax cuts and deregulation revitalized the American economy. By winning the cold war through strength, he allowed Clinton (forced by strong Republican leaders in Congress) to demilitarize and reap the cost savings which balanced the budget.

The decline in wages has nothing to do with him, it has everything with productivity gains through technology and by loss of bargaining power through illegal immigration and by "free" trade agreements like NAFTA - passed by Clinton - which were pure crony capitalism purposely designed to chop the legs out from underneath the American worker. This, combined with out of control government spending - which funnels money printed out of thin air through Wall Street is what caused the conditions described.
> You could just pay for GitHub to get private repos. If it's something this important to you, it's probably worth a few bucks a month.

Github doesn't have a personal tier big enough for my private repos. (And I'd host my own before paying $50/month.)

I do pay Bitbucket, though, because I have a consistent and small-enough group of collaborators that it makes sense.
Are the ruling classes more clever, or has technology and globalization allowed average cleverness to be more impactful than in the past?
Show HN: Reddit and blockchain and webrtc
My attempt to create a decentralised reddit using a merkle-dag and webrtc. Advice would be much appreciated. https://memesfortheparanoid.com
If you look around (or spend a few minutes writing one), you can use a scram switch that goes off of AWS billing alerts.
That's, uh, what we've been doing since the early 1980s, at least ideologically speaking.
Wow, this sounds wonderful and scary at the same time. This would be an excellent attack vector for running mosquito [0], if you can find the relevant exploits.

[0]: https://github.com/koto/mosquito
Geoffrey K. Pullum: 50 Years of Stupid Grammar Advice [1]

[1] http://chronicle.com/article/50-Years-of-Stupid-Grammar/2549...
Well, no. "Code" does power all of the aforementioned, but only on a technicality. The code itself is ephemeral and possibly often domain-specific. The real importance is knowing the algorithms, data structures and the interface, protocols and standards of the platform you are targeting, or the details of the problem you are solving. Coding itself is grunt work. One must have a specification of what they want to do for it to be of any use.

As such, everyone coding has no meaning.

Further, if everyone coding means that they too can cargo cult slogans about how the goto statement is the devil incarnate and will have you assaulted by a raptor, then perhaps one should rethink whether it's worthwhile. Now, if one can get people to consider that a goto might be useful for breaking out of a nested loop in some languages, or that goto/jmp is the most primal control flow from which other mechanisms are derived, then you have a case. Otherwise, more ninja rockstar 10xers aren't of large use.
Well for starters most licenses will define the meaning of the terms in question. You should define exactly what is a patch file (such as format and what it contains). Potentially a patch file could include whole files.

Here is a hypothetical situation: what would you say if I included your entire program in a patch file. If you are saying patch files that contain your code are ok to distribute - but I'm sure you are going to say that's not ok. But why not? Your license says I can distribute patches - it just so happens this patch file contains every file in your program.

The question here is how much patch file is too much? Is there a limit?

A better idea would be to require your sign off on every patch. Or only allow patch files to be uploaded to a forum that is accessible to enterprise only customers (vBulletin has a similar setup).
Multiple AWS dashboards is actually really easy with multiple Chrome profiles (not that I go to them often, there are APIs for a reason) and tends to encourage much better, much more isolated application design. I've worked in environments with a single account and in environments with multiple accounts and I can't imagine going backwards.
That example is pretty trivial, but I'd hate to read code where every other logical line is broken up into multiple. It breaks up the flow of the code and makes it much harder to read, especially with how the indentation constantly changes (which is especially important in a language like Python, because I've trained my eyes to the special meaning of whitespace, so seeing non-significant indentation adds additional noise).
To quote the Zen of Python:

Flat is better than nested.

Too many levels of nesting is definitely a code smell. Often it's better to pull those helper functions out, and/or create function or method factory functions at a higher level of organization.
The data you point to shows government spending as a share of GDP peaking in FY 2009, dropping through FY 2014, rising slighting to FY 2016, and with a projected sharp bend upward beginning in FY 2018.

The only recent period of a significant runup in government spending (federal or overall) as a percent of GDP was approximately the second term of the most recent Bush Administration, and the only periods with any sustained growth in that measure since the 1970s are about from the middle of the Carter Administration through Reagan's first term and then again both terms of the second Bush Administration (as noted, with a particularly rapid rise in the second term.) Even with the projected increase in the out years, the projected 2020 spending level as a percent GDP isn't that much ahead of 1970.
I note that large social safety nets exist in extremly heterogenous societies like Switzerland, Canada, and Australia.

And among middle-of-the-road diversity nations it seems to be aminly the anglosphere that feels it is difficult.
> Safari and Firefox is typically called the new IE because they are lagging behind the times.

That's a reasonable criticism of Safari, which is updated infrequently and is lagging on all sorts of web standards, but not for Firefox.
I like to talk about the problem with other engineers. It sometimes feels like you learn everything the hard way but it usually turns out that's how it is for everyone.
Thank you.

Why is 3 stupid? That would be my preference. It is clear, simple and gets compiled away (in many cases). I alias in variables frequently, to make things more explicit. For example, I might write

iterations = 300
for _ in range(iterations):
...

which makes it less likely I'll end up repeating things or copy and pasting when new cases come up, e.g.

if not shipment_qty:
abort(400, message)
elif shipment_qty < 0:
abort(400, message)

What happens in your case if you come back and edit the message and add a few characters, exceeding your longer line length?

When I'm forced to break a string it is usually an indication that I need a better way of defining text than inline in expressions in code.
but not before becoming wealthy middle-aged people.
Palmer Luckey: Making Virtual Reality a Reality
The velocity of money is too low.

When money flows through many hands quickly, prosperity is the result.

When money stagnates and accumulates in deep pools, the economy suffers.

Reducing the number of people being employed reduces the speed of money. That's been happening.

Increasing wealth disparity reduces the speed of money. That's been happening.

Government spending increases the speed of money, but money spent on projects that end up with high concentrations of wealth (stadiums, military) are not as useful as projects that enable further speed increases (transportation, infrastructure, sanitation, urban renewal).
At Zalando we have an account per team, and have been releasing a bunch of tooling to help do this securely.[1] It's not completely easy (e.g., account creation at Amazon can not be automated), but the security aspects are really nice, and it lets us give teams more or less full access to just their account.

[1] https://stups.io
MaidSafe (http://maidsafe.net) and Skylight (https://skylight.io) are both written in Rust, Maidsafe having recently moved to it from C++.
http://www.hackthissite.org/ lists "hack project euler" as the final challenge
https://github.com/redecentralize/alternative-internet/blob/...

https://github.com/digital-dreamer/blockchain-programming/wi...
> I like how the charts run to 2020 to hide the massive ramp up in the last few years.

From the data there, spending as a share of GDP peaked in FY 2009, bottomed in FY 2014, and rose slightly from that trough through FY 2016. Extending it to the projected FY 2020 levels provides a bigger ramp up than recent years, since the 2018-2020 ramp up is the fastest one since the FY 2009 peak.

The only massive ramp up in recent years was the one leading up to the 2009 peak.
On the other hand, you might not want to be hashing a 20meg password. It is fast on my computer but it's fair to limit at something more reasonable.

$ python -c 'print "8 bytes\n" * (20 * 1024 * 1024 / 8)' > 20meg.txt; time shasum -a 512 20meg.txt
59cb7f88ad8d6229e6d3a74ee422dff57e17f168c6e6fa44ef32c3f07a73a6e455d8b55c1265d5212b9ed5475b6d9364286645200dada59aa16905a9ce748561 20meg.txt

real	0m0.289s
user	0m0.284s
sys	0m0.004s

$ python -c 'print "8 bytes\n" * (16 / 8)' > 16byte.txt; time shasum -a 512 16byte.txt
b6043d3a520424d5ec17dc0c23ba3b591d74517e2b9faa0df2d69d13c89a5f372d6dc35f95836687ee05be18433277e1c4b67393eb2771b475d655a832b16654 16byte.txt

real	0m0.045s
user	0m0.040s
sys	0m0.004s
> In his philosophy classes, arguments rested on logic and evidence; in his religion classes, “you could use a story to make an argument.”

An interesting excerpt that says a lot about the mindset that goes into his argument.

The core observation, I suppose, is that this is what's really pushing popular beliefs about diet, far more than logical argument. It makes sense to me, especially considering the character of opposition to gluten and GMOs.
> If we allowed a large automaker to go bankrupt, we probably would have lost the supply chain and many supporting industries which would be gone (from the US) forever.

That's what people thought about textiles and apparel. Neither turned out to be true. Textile mills are coming back to the East Coast (http://www.nytimes.com/2015/08/03/business/chinese-textile-m...) and the number of apparel manufacturing jobs in the Los Angeles County has stabilized in the past several years.
Creating too bigger to fail out of already too big to fail industries does nothing except throw good money after bad, and increase systemic risk for an even worse repetition of a failure.

Not to mention the fact that continuously proceeding with such bailouts is simply unsustainable. The problem lies in our modern inability to stomach losses and handle austerity. It's something no one rightfully wants, but when market failures or financial crises occur, it's for a reason. You're witnessing a natural repricing mechanism at work and no one is disagreeing a lot of destruction can be a by product. But I don't buy your narrative that unless we saved those industries in the US they would have permanently moved elsewhere.

The economy is like an organism, not a washing-machine. The most optimal repairing mechanism is itself.
Sorry, I know that putting code up is an invitation for people to pick at the wrong feature, so I realised I was being churlish.

But I think these things do have to be addressed with examples. There are few people willing to put an actual example up that a) is frequent enough to mean that 80cols can't be easily used (note, not 'preferred', we're talking about a standard, plenty of people 'prefer' 80 cols) and b) is pythonic enough that it isn't better written in more explicit steps.
Can you back this up with numbers or is that just your reckons?
this actually works. i've gotten laid this way. women are human, they want to get drunk and fuck.

if you don't believe it, it's probably because you've been raised/brainwashed with false beliefs about women and have a set of skewed expectations.
You should check out a modern Smalltalk environment like Pharo so as to find this interactivity taken to its ultimate conclusion (relative to what we have).
Researchers Teach Robots to Avoid Childhood Bullies
This is not an either or question :)

The ruling class is both much clever than the past and technology and globalization has allowed their cleverness to result in more control.

In regards the level of control I am most impressed at how subtly it is used. To be able to shift the the share of production from 75% masses / 25% rich to 50% masses / 50% rich in 40 years with barely a peep is truly breathtaking. They have even been able to convince a large section of the population that this is all the fault of people with brown skin.
A simple and robust in-app notification system for iOS written in Swift by Imgur
Show HN: Appellita - Brand Name Generation and Validation Tools for your Startup
> (also excludes Amazon and Walmart)

What value is this again? That seems like the majority of the market right there.
What would stop any of such highly intelligent from eventually co opting the structures of today and doing something short term orthogonal (maybe even beneficial to the "share and status"), long term oppositional to some of those in power, if say, they reject to continue attending an ivy/elite league university after they attend for a couple of years after getting a scholarship, and realize that they can pursue "other interests" with such forces of coercion in mind?
Am I blind or are there no sources for the binaries?
Benzos work wonders.
"Beyond the prevailing code standards, yet another proposal for doing things my way instead of the standard way"
Right, but again, can you see you've just gone abstract and handwavey. I'd also hate to read code where every other line is broken midway through an expression. Can you give an example of code that 80cols would force that on, which doesn't have deeper issues of clarity and structure?

It's not a trick question. I've written millions of lines of code over 20 years, and I've been renowned for using overly long names (compared to most Python coders), but I've not found that issue. Some breaks, yes, but never 'every other line', or even nearly that.
Searching for "What happened to the dinosaurs" returns in the answer box the text "Google is Wrong About What Happened to the Dinosaurs", which is a cute instance of the Liar's Paradox: http://en.wikipedia.org/wiki/Liar_paradox
someone tell these guys that

http://www.theguardian.com/commentisfree/2015/aug/06/why-lap...
close popup, tell them you're not a bot and the tracking cookie belongs to someone human. Ka-ching.
close tab without clicking anywhere, you don't tell them that, and they can't really discriminate the user from a bot, and their 'effort' a tracking you failed (or at least, is less reliable)
This split is why I am not sold on why the rich or ruling classes are more clever than any other point in time, and not simply enabled by technology. I would like to see evidence of increased cleverness over time divorced from technological enabling.
Ask HN: Open source windows application management
I'm doing work for a school system that is very low budget. They have Windiws 7 deployed however no application/patch mgmt. does anyone know of an open source or free app that is like system center but is open source?
How to down-vote a comment ?
Point noted and accepted. It seems I haven't even graduated and am already becoming insular and elitist. Need to do some self-realization.
If Microsoft added these utilities to Windows and included a decent shell it would go a long way to getting developer mind share back from Apple.