skysight-inc/HackerNews huggingface dataset:
Well said. Domination isn't the right word; perhaps "importance to" rather than "domination of".
All I'm hearing is anecdotes, which is fine if there's no data, but when it doesn't jive with what other data says, I'm not really going to trust the anecdotes over what the data says.
In order to live in those cities you do need a household income of $200K+. But that is not middle class. In such cities the statistical middle class would be $50-75K, but as a percentage of the population it would be a small (and increasingly smaller) group... Which is the crux of the problem.

Nationwide the middle class is more like $40-50K (household income).

If your household (how many earners it is comprised of) is over $100K in annual earnings then you're in the top quartile (25%!) of the entire country in income, and decidedly not "middle class" (though, depending on where you live, you may or may not have enough to afford a home, much less a boat, a beach bungalow, eating out, going to the bars, etc.). Keep in mind that a lot of these cities are okay for singles, but once those singles get married and have kids they rapidly discover they can't afford the big city anymore and have to leave.
Err, why would you allow for the user to enter arbitrary format strings in the first place?

Might as well write "be careful about eval of arbitrary user provided strings".
Show HN: JournalJerk – In 2017, keep a journal—or else
Popularity may suggest that it is not a bad idea.
If you have hundreds of tabs open, unused tabs etc, I would suspect that you'd have more to gain by fixing whatever is wrong with your work methodology than by downloading extensions. Food for thought.
I do love writing python, but it's pretty shocking when I find out you can write something like `event.__init__.__globals__[CONFIG][SECRET_KEY]`. That language just does not care about privacy or information hiding at all, I guess.
This is the problem with socialists. They can never understand the unintended side-effects of their policies.
They're super smart for funding high speed rail at the federal level.

High speed rail is the solution, not a pipe dream, the issue in the USA from what I've observed is that we don't fund it at the federal level.
This seems overcomplicated. Theoretical computer science papers just write the algorithm in words, using widely accepted mathematical notation wherever they can (e.g. sigma for sums, set notation, and so on).
if (something) {
blah();
goto fail;
}

^^^ that part works

if (something) blah(); goto fail;

^^^ that part is written in a misleading way and doesn't do what it seems to do on first glance.

It is unfortunate that the problematic line contained a jump, because "#gotofail" seems to convey "GOTO considered harmful", while it's something completely unrelated. Ironic, really, given the actual meaning of "human looks at a block of text and misparses it."
In many of our lifetimes, see the Oil crisis in the 1970s when the ME embargoed the west. Go read up on that, it worked out well for the west and bad for the ME. People were pissed about having to wait in line for gas...for awhile...and carter lost re-election, but there were no angry people in the streets.

So ya, we do toughen up, and no, china doesn't have much leverage over the west at all, even less than the Middle East.
I've found that the solution is somewhat in middle. Burying your head in the sand and pretending everything is grand just makes you ignorant. On the other hand, consuming news everyday is a depressing affair that can warp your worldview in the opposite direction. Personally, I just consume national and international news once a week through more traditional magazines and journals. This usually means I get full reporting on events after they have unfolded and I avoid the hearsay and rumours that cable news loves. The analysis is usually top notch as well.

I consume local news daily as local issues tend to affect me more directly, but I don't find it nearly as bad as the internet's daily quest to find the most gruesome national or international news story to spew everywhere. Also avoiding news subreddits and comments sections is key. I like Hacker News because the dialogue is usually pretty good and it's mostly about industry news.
I'm not so sure. Nowadays they can focus their energies on profitable activities like ransomware or adware. If you're going to break the law to cause grief anyway, why not make some money while you're at it?
Yes yes yes. I seemed to me that the article defined "hot" cities as ones with expensive housing, which prevented it from looking at hot cities with less housing problems. Pittsburgh and Columbus come to mind as two cities with growing creative/professional industries where the middle class can afford to live.

(Although housing in the epicenter of these cities' tech boomlets can be absurd compared to the rest of the city. This new construction in Pittsburgh's East End - http://www.zillow.com/b/bakery-living-pittsburgh-pa-63CwP3/ - charges the same for 1 bed that I paid for a 3-bedroom townhouse in a solid neighborhood ~1 mile away 2 years ago.)
72% of the miles traveled by Amtrak trains are on tracks owned by other railroads. For example, Amtrak uses BNSF rail (your example) and pays for BNSF rail. That amounts to about 6.8 million train miles for BNSF rail alone.

https://www.amtrak.com/national-facts

Amtrak then overpays for this use which amounts to a government subsidy.

http://www.eenews.net/stories/1060015115

We subsidize rail (freight+passenger) just as we subsidize airlines. Let's just be honest about it.

BTW, your notion of the FRA over-regulating for unions is similarly malarkey. And envy of the world? Dunno if you've been to Europe (which is heavily regulated).
For me:

HTTPS Everywhere: https://chrome.google.com/webstore/detail/https-everywhere/g...

uMatrix: https://chrome.google.com/webstore/detail/umatrix/ogfcmafjal...
We used to do $240k a year in technical workshops, sold nearly $300k of ebooks, and have a million-dollar-a-year business… 3/4 of which is SaaS, not 30x500. And no, we don't have "multiple staff members." Freckle is run primarily by 1.5 people and it grows every year automatically, and grows very well every time we actually try to grow it.

And sure, we could make a lot more consulting too, especially since I have proven product chops. But who wants to deal with clients all day? All that negotiating and educating and meeting and trying to persuade them not to screw up their own projects, all their politicking, the invoicing and paperwork and phone calls and email change requests… no thank you.

I spent about 5 hours a month on Freckle, which is why it's not a multi-million-dollar business. But $700k/yr with 1 full-time employee works beautifully for me.

Try to beat that for an hourly rate with your consulting business.
Hakcing Number26 online bank (ccc.de slides and video)
Surely it can't compete on costs but on speed. It's a compromise between air and sea that has found its use. In terms of economic value: At least Deutsche Bahn claims that that route is one of their few profit pools [0]

[0] https://www.google.de/amp/s/amp.welt.de/amp/wirtschaft/artic...
I'm not obligated to provide a "source." It's called an opinion. If one seeks merely a "fresh start," then just move somewhere else in the USA. If frustrated with the government, politics, culture of the USA, then move to Europe or some other country.
Also, I'm not "extremely abrasive" if you "disagree" with me. When people are jerks, I feel absolutely no compunction reflecting what they put out.
My favourite member of the Logic Programming family of languages would be http://picat-lang.org/ . As far as implementations of Prolog go, http://www.swi-prolog.org/ is a good implementation to go with (It's mature, has a good ecosystem, and good documentation).
The article specifies the middle class as making between $50,000 and $125,000 in household income.
They would have to cut off trade to much of the west as well, otherwise exports would simply be redirected. They could do USA did with Iran, and refuse to trade with anyone hat trades with the USA, but that is a losing proposition for them.

Basically, china cuti off trade with the USA would be a North Korea style action.
France catching up to the US HAHAHAHAHAHA

You realise that "workers rights" is not given by a single data point, yeah? Even if in this specific case the US has it right, saying that "France is catching up to the US" is ludicrous.
A couple years ago, I played around with the idea of a "shorthand" for algorithms, specifically for whiteboard interviews.

https://github.com/michaelchisari/scrwl

It was based on shorthand writing systems that emphasize a minimal amount of strokes, and the ability to continue strokes into each other.
Actually on Intel CPUs ALU operations take 1/3 of a cycle and the processor can schedule them back to back.
Show HN: Send a Custom Postcard to Anywhere, from Your Phone, for $2.99
>We've grown accustomed to overporting our post-war suburban archetype of what a "middle class" family "deserves," i.e. lots of bedrooms, garages and lawn space, while diminishing previously (and still!) common practices like having roommates when young, not owning a car, et cetera.

"People's lives are too good, we need to make them worse."

What's your angle? What do you gain from advocating against mobility and personal space? Are you upset because you didn't have these things, and don't want "undeserving" people to have them? Or do you just want us all to live in worse conditions for the fun of it? I genuinely can't understand what moves someone to push for "people should not have their own bedrooms or time-efficient commutes."
Out of millions of CVEs, one is plausibly related to this coding style. I don't think that's a strong argument for using the more verbose style. If we saw this all the time it might be a different matter.

I think it is a strong argument for compilers' -Wall to detect misindented statements directly following unbracketed conditional expressions, though.
One idea is that by investing a larger amount of money while living in an expensive area, later moving to a less expensive area (perhaps upon retirement, etc) will leave you with more assets to work with than if you had stayed working in the less expensive area the whole time (and investing a great deal less due to lower wages).
When we were doing QE, everyone else was as well, so the dollar didn't fall much, but is still worth less. It was probably the right course of action, however, as it was managed well.
May or may not. Given that popularity breeds more popularity, all it actually says is that it was popular enough, sometime in the past, to start a runaway process (I don't really want to start a flame war of "look at those popular yet fairly horrible things/languages/whatevers")
"Customize the look of your blog by editing these templates."
What are you talking about. I make 60k a year in NYC. I manage to make it between paychecks, and save a little each month.
The part you missed was: "at any sort of scale."

I'm pretty sure you would encounter ever-increasing levels of countermeasures as you tried more and more tricks at scale.
I'm working on HoverBot with a friend at a different university, but I did all the design and prototyping work on this quadcopter over the course of 2-3 months.
Oh the memories!
Yes, it competes on speed. There were articles in the Chinese press trying to play this up, but there haven't been many takers as of then according to those articles.
It's not just housing policy that's gone wrong, it's transit policy. We haven't built good public transit in our cities, and now that cars are filling all available roads, even houses far away from cities are too expensive for how long commutes are.

We wish we had a train system in many cities that allowed the middle class to live 40-60 minutes away from their jobs.

Ultimately however the main problem is wealth inequality. If median income had increased with GDP since 1980, instead of all gains going to the 0.01%, you would be able to afford to live in the suburbs of San Diego.
The country that had twelve rail accidents in 2016, the envy of the world?

The USA isn't the envy of the world for anything these days. Only Americans think that. Nobody envies you for anything, not even Silicon Valley, with the housing crisis and poverty surrounding it.
In L.A. there is no place with housing at that price, even dangerous neighborhoods with horrible schools. Even the "good" neighborhoods have pretty bad schools.
Agreed! I've gone 1000 miles by Chinese high speed rail in 6 hours with 6 stops. Super smooth and convenient.
Looks like he's got another potential gem here: http://canonical.org/~kragen/memory-models/
LastPass is known to have... "problems".
So what is your bottom number? Don't trust data from the central government, they aren't known for being very honest with their numbers.
Python's general mentality can be summed as "We are all consenting adults here". If you want to access some part of program or data, you generally can, but the burden of not breaking anything while messing with internals is on you.

This is a great power, but also can become an unlimited source of bugs.
Well, big cities (using this term very generally) don't have to be. All you have to do, as you pointed out, is to improve the infrastructure of growth. Oh and recreate the unique cultural and economic conditions. Oh and you also have to do that for every city in the world.

It's just unrealistic. The pragmatic thing to do is just make one move and move out of the big city. You can lead a nice life in many places. Move to Alabama or something.

I can't afford a big city and I have a great life where I live. I visit those big cities when I want instead of dealing with the hour commute and sky-high prices.
Hopefully deep learning gives us some sort of building blocks for a general intelligence. It's too early to tell so far whether we're getting warmer or colder.

One thing that is for sure though is that once we have artificial general intelligence, everything changes infinitely forever.
It's not a vector operation, even though it's written in a fashion similar to it. However, it can be implemented in a very interesting fashion.

Consider when c0, c3 and c6 are true, and the rest are false. Then the end result is this:

offsets_l[num_l + 0] = i + 0;
offsets_l[num_l + 1] = i + 3;
offsets_l[num_l + 2] = i + 6;
num_l += 3;

On a little-endian machine we could write this as following (assuming there is space after offsets_l):

*(uint64_t*) (offsets_l + num_l) = (i + 0) + ((i + 3) << 8) + ((i + 6) << 16);

Which is equivalent to:

*(uint64_t*) (offsets_l + num_l) = (i + 0) + (i + 3)*256 + (i + 6)*65536;

And if we regroup the parenthesis and add common factors:

*(uint64_t*) (offsets_l + num_l) = 65793 * i + 393984;

If we precalculate these magic constants for each combination of c0..7 we get a 256-element lookup table, and code that looks like this:

int idx = c0 | c1 << 1 | c2 << 2 | c3 << 3 | c4 << 4 | c5 << 5 | c6 << 6 | c7 << 7;
*(uint64_t*) (offsets_l + num_l) = muls[idx] * i + adders[idx];
num_l += popcnt[idx];

Sadly, it turns out that this approach isn't faster. It's cool nonetheless.
Ottawa? More of a town with lots of suburbs than a real city but dirt cheap compared to Toronto or Vancouver. I would say that it is even cheaper than Montreal.

I'm not sure about the music scene but there are a wide variety of both English and French language theatre companies. NAC, GCTC, La Nouvelle Scene, etc. I'm sure the situation is similar for Opera and Ballet.
I understand the sentiment that news is often very depressing but I strongly disagree with the suggestion we should stop reading it.

Don't rely on social media for your news. Pick your news sources carefully, read more than one source too. Consider listening to radio if you want to avoid emotive images or screaming headlines. But don't stop reading (or listening to) the news. The Internet makes it possible to read or listen to English language news from sources from around the world. If you are dissatisfied with news in your region or country, go and explore those other sources.

And I disagree that you can't do anything about events in the news. Millions of people donate or give money to charity or fundraising campaigns as a result of events in the news. Life isn't comfortable for millions of people around the world, but why insulate yourself from what's happening around you? I can't even begin to imagine what the world would be like if we all stopped reading the news. Knowing what's happening around the world (and your own back yard) has spurred so many people to take action big and small.

And even if you think "I'm never going to take action, there's nothing I can do", you can still form an opinion - that might be an important thing when it comes to election day and you have to decide who you vote for. Not being interested in the news is exactly how politicians slip legislation under the nose of the electorate.

If you find reading the news depressing, read this for an inspiring story of how a Design & Technology student was spurred into action after watching a harrowing news report on Syria:

http://www.bbc.co.uk/news/technology-29900968
Been ORing the first three characters of every to-match string. No one has beaten me in 15 games.
Do you mind sharing what area you live in specifically? I've been seeing a lot of software jobs in SLC and I'm curious.
But users will just update to the latest version if a few days, and then the juvenile fun will be over.
Why not end of 2016?
I'd tweak your statement to be "Those of the middle class who were not lucky enough to have purchased an affordable home yet." There are many who lucked out on timing and now have a nice house at a more previously affordable price. As usual, it is the younger generation that gets left holding the bag.
Not just anecdotally...

In 1973 average house size was ~1500 sq ft. In 2010 it's ~2200 sq ft.

https://www.census.gov/const/C25Ann/sftotalmedavgsqft.pdf
New York City is not a place to raise a family. Move somewhere else. Period. You can raise a family and go to some of the best schools in the country in places like Wisconsin, Minnesota, Ohio, etc....
I know plenty of people in their 20s that thought they were too healthy to need medical insurance, until something happened and they had to have their appendix taken out and now have $50k plus in medical debt.
I was comparing parameter counts to synapse counts, not neuron counts.
One theory is that China spends heavily now to build up the infrastructure while the labor cost is cheap. Once labor cost has reached certain level, these kinds of projects will be prohibitively expensive, just like in Japan or in U.S.
So funny anecdote, I once asked a candidate which programming languages he knew and he replied "All of them, BASIC, FORTRAN, and COBOL." :-)

More seriously though the point in the article is solid, all computers have broadly similar architectures and the number of concepts needed to express computation on those architectures is finite, so starting with a language in each "category" of expression and and then adding additional languages in each category can quickly teach you the essence of computing. At that point a new language can be quickly picked up and mastered once you've mapped the essential concepts to the idioms of the new language.
Startups Aren't Meant to be Sexy - Let's be Better in 2017
There are plenty of Middle Class families living in Cities. But they have to look like "poor people" to the Government and work off the books.
In Beijing they dealt with this problem by disallowing foreign investment in real estate except for personal use. Seems like a huge chunk of properties in L.A. are being purchased as investments by Chinese and other foreign entities, without ever physically visiting the house, which is at least as much of a problem as those you list.
No, Rust does not have the ability to access any variable in the program via a format string. Rust has this:

format!("{argument}", argument = "test"); // => "test"

That's just named arguments to the format. Also, that's a macro; it's expanded at compile time.

Python's approach is lame. It should have used something with a limited list of named arguments, or maybe a dict.
Yeah, but an agnostic would still answer no to that question.
Difficult for politicians to implement a policy that a big part of their voter base doesn't want. Sucks but that's the reality.
Keep Disabling Exceptions
Germany in 1939 = China in 2017
I live in SF, and am flabbergasted at the number of 1- or 2- floor single-family homes. A city the size of SF (46 sq mi) and population (850K+ and growing) simply can't afford so many SFHs.

I was in Barcelona recently (yay NIPS!) and Barcelona is smaller than SF (36 sq mi) and has nearly twice the population! Everywhere you see are 6-floor buildings, with the bottom reserved for shops and people living above them. It is so walkable, with great (and reliable) public transportation. We kept thinking: why can't SF be more like BCN?
Ok, changed back from https://vincedes3.com/crash-message-app-iphone/.
Do you have kids? Because this glib reaction signals that you don't because the schools in most expensive areas are terrible too.
But we already have the standard of living you describe at our income levels; the problem is, urbanization is taking it away.
Old style format strings are perfectly safe for arbitrary user input and commonly used as such.
Internationalization, usually. Word order differs between languages, and this kind of format allows reordering the inserted values.
> pension

If you move to Europe, build up a pension, and then move back to the U.S., you should be able extract the money from that pension (according to the conditions), regardless of where you reside in there future.

> taxes

You are obliged to report all of your foreign earnings to the IRS as well as all of your foreign bank account status each year. You are taxed on your income both in the local country and in the US :-/, but the US amount is only on income above a certain threshold. Maybe someone can correct me but I think the current amount is somewhere around $90k USD. Like my parent poster said, there are deductions, so find a good tax adviser that is familiar with both local and US tax laws.
Indeed, I was going to say the same thing. Fravia+ was where I had read about Orc+ if I remember the name correctly, who had a series of tutorials on how to crack games. I think I downloaded his entire site back in the day, I wonder where in my terabytes of junk data I have it.
Distilled: another JavaScript testing library
The techniques of Fravia transcend the limitations of search engines. The mind is the limit, not the api.
I like how old tech limitations acted as a natural weighting. Now with everything possible all the time we somehow loss an important source of information.
I live in L.A. and as far as I'm concerned, yes they (we) are being priced out. You can live an hour away from your job or in a dangerous neighborhood, but that doesn't really mean the city is affordable.
That's unfortunately not comparable to a citizenship. With the L-1 visa you get to work for this one company only - and changing jobs is usually essential to building a good career in tech.
Happy New Year – This Chinese Rooster Certainly Looks Like President Trump
Pivotal Web Services[0] uses Cloud Foundry, allowing you to specify any instance size you want, to the megabyte.

(The pricing page[1] is deliberately simplified, but you really can specify to the megabyte what you want).

[0] http://run.pivotal.io/

[1] http://run.pivotal.io/pricing/

Disclosure: I work for Pivotal.
By looking at their economies I can say with certainty that Japan and the EU are nowhere close to imposing trade tariffs on anyone, they can't afford to. Maybe the US is willing to play these games hoping it would win some (geo-)political points, but at the end of the day is a lose-lose situation for all those involved.