skysight-inc/HackerNews huggingface dataset:
Your last sentence is certainly true, but the difference is being able to choose what is worth doing and being fully invested in the outcome.
Dane here... we look at Sweden and sigh. The once prosperous and sensible country seems to have lost it. It's all about being "good" for other peoples money and it seems like there's a sort of self-hatred amongst ethnic Swedes. If you want to see the pinnacle of multiculturalism, feast your eyes on Sweden. I'll give it 10-20 years and then I think we will have a thorough breakdown in Swedish.
Streams are an API built on top of the Spliterator[1] abstraction, which basically gives a collection the option of partitioning an iterator into two, allowing parallel traversal of both partitions and thus parallelization via fork/join. Clojure already does something very similar with reducers[2], which are pretty much the same as Java streams, but implementing the reducer protocol to employ spliterators should be rather simple.

[1]: https://docs.oracle.com/javase/8/docs/api/java/util/Splitera...

[2]: http://clojure.org/reducers
Even if checked bags are free, I prefer a carry-on when possible to avoid having to wait for my bags to show up and the possibility of them being lost.
for many of those, they're not apps they're websites. Apps are for repeat use of aomething more complicated than reading documents. Usually websites with a lot of JavaScript are better off as apps.

LinkedIn I have an app, and it's usually better than the website except for some features they maddeningly haven't carried over. Dice too. The rest I would use a website.

This isn't contradictory to my point that apps are the future of how we interact with the web. In effect apps are about a proliferation of user agents - rather than a single hugely popular type of user agent (the browser) and a handful of busy singular agents (the crawler). I am not saying the Web is going away, I'm saying HTML browsers are becoming relatively less important. They're not going away they're just not where the money and growth is.
no ;/
As of 2014, about 55% are from other South-East Asian countries. But the government has a policy of maintaining a stable "ethnic mix" which means that there are now a lot of mainland Chinese. And while I'm also Chinese by ethnicity, you can ask other ethnic Chinese from Hong Kong, Taiwan or Malaysia what they think about the nouveau riche from China. :)

Source: http://www.nptd.gov.sg/portals/0/homepage/highlights/populat...
Accident hurts – safety doesn´t
BeeSafe is a new generation safety mobile app, which helps women and everybody who feels unSafe. BeeSafe is monitoring user’s activity by action timer and set of triggers and it calls for help automatically in dangerous situations. It sends current location along with audio / video record to predefined friends, police or security services and who will help.

Users can add contacts, who will be notified if the user should be in danger. Contacts are being notified based on their location and how fast they can help you. Contacts receive notifications via sms, email, phone calls and also push notifications BeeSafe app.

Notifications will contain the alarm status and a map along with user's track and current location. It might contain additional information about the user, audio and video recordings.

www.beesafe.me
Which has always been one of the downsides of Cali life, your local tax bracket and your federal tax bracket are not on the same program.
The bigger cost to the airline is opportunity cost - they use leftover space in the cargo hold to carry packages, which is more lucrative than your checked bags.
Here [1] is Osha's page on solar safety issues. Here [2] (pdf) is a manual going over solar installation safety issues. You'll note they go well beyond falls, though you have a point that the page in question mentions roof installations.

But also keep in mind that solar also causes mining deaths (sand quarries are not without accidents just because they're not deep mines; but of course nuclear has related mining accidents too) as well as work with hazardous chemicals during production of the cells. There are also related fire risks. Not huge, but they are there, and given sufficiently deployed capacity it adds up.

Also keep in mind that solar is not nearly all photovoltaics. Here's an article about a lethal accident at a concentrating solar power plant in South Africa [3], though generally we will likely see fewer deaths per kwh for large plants. But even fields full of solar panels involves plenty of construction work and electrical work that can kill.

Basically, anything labour intensive, no matter what, will have a death toll. Even hiring a bunch of people to sit around and do nothing all day will have a death toll from accidents one way or another. As such, all else being equal (and of course they never are), the least labour intensive alternative will win out. Similarly, all else beiny equal, the larger / more electrical installations you add the more fires etc. you will have.

Since all things are not equal, it gets complicated, but it doesn't help to pretend that these alternatives does not have risks.

> Leave rooftop solar installation to those who build new homes or repair the roof, so there's no additional risk from climbing around in high places.

They're not immune to death just because they have experience, and there will always be additional risk because it means more time is spent climbing around in high places. There's been plenty of professional installers and construction workers falling to their deaths too. The pages I referenced are targeted at professionals, for a reason.

[1] https://www.osha.gov/dep/greenjobs/solar.html
[2] http://www.coshnetwork.org/sites/default/files/OSEIA_Solar_S...
[3] http://www.csp-world.com/news/20141104/001395/two-killed-and...
Ten-hive :D
Are you sure that an European equivalent of white-flight hasn't happened? People who are less likely to like living with immigrants are likely to move to suburbs or not move to the cities in the first place.

Enclaves are caused by "tipping" in a Schelling check-board model. It would be interesting to check the data to this type of model.
I was hoping for a nice pie chart on http://www.budget.gov.ie/Budgets/2015/2015.aspx , but no. Can't seem to find one on the internet. If Ireland is similar enough to the UK, then a large chunk of it will be on pensions.
Ran the script. Hit Ctrl-D instead of sudo halt and it hung, had to kill the proc from another shell.

But, compiled clean, test vm started fast. Will look at again.
Crumbling is not the same as crumbled. There is an increasing problem with maintenance that has been neglected over the years and they have been plagued by some embarrassing and high profiled delays over the past year or two. They've also been a bit slow with replacing some trains, but on the whole it still works well enough.

Better than the Italians, not as good as the Japanese basically.
Or not really Shengen. But as EU citizen I don't really care. Bulgaria has 10% flat rate. Cheap cost of living also.

You have to learn the Cyrillic alphabet on top of learning a Slavic language though! I tease, I tease.

Isn't Bulgaria due to join the Schengen area pretty soon? Inside the next couple of years, at least?
Now, to be clear, it is my opinion that modest immigration is healthy for society and beneficial for trade, cultural development and so forth. Protectionism as a concept is counter-productive, while free trade and the ability for skilled labor to go where they’re in demand is beneficial for everyone.

Having said that, what Sweden is doing is something completely different. The once homogenous population has been forever altered by a rapid and massive addition of people from vastly different cultures and value-systems.

tl;dr: Protectionism is bad. Sweden should be protectionist and homogenous.

... if the rest of the article is like this I'm not sure of the value of it.
Airlines absolutely created this problem themselves. Aircrafts are designed to carry large bags in the hold, and small bags in the cabin.

But airlines decided to actively discourage people from checking bags with ever more insane checked bag fees (e.g. $25 on a $100 ticket!) and even worse if you try to take a bag that is clearly too big onboard, they waive the fee at the gate which "punishes" the people responsible enough to check.

Honestly the entire system seems silly to me.
But that's how all posts like these go, HN loves to upvote them for some reason but they all boil down to "I'm quitting because I have enough money to do it".
Fwiw, some foreign-born numbers: 15% of the Swedish population is foreign-born. Of those, about 1/3 were born in another EU country, who are immigrants but not really what the current controversy is about (the largest single foreign-born group in Sweden are from Finland, constituting about 1.5% of the population). The remaining 10%, born outside the EU, are what "immigration politics" is mainly talking about. (The comparable figure for Denmark is a bit lower; around 5-6% of the population are born outside the EU.)
Point taken - and I appreciated it a great deal when they decided to make ShowHN official and suggest rules that would support the OP.
I’m just thoroughly exhausted. I have so much I want to do, yet I’m selling half of my waking hours every weekday to someone else, for the sake of cleaning up their legacy messes. By the end of the day I’m already worn out, and now I have to squeeze in whatever I wanted to do alongside relaxing and doing chores and maintaining this fleshsack. Weekends are nice, but become a mad dash to get fifty things done, meaning none of them get done.

And then add kids to the equation! I left my full-time job for part-time contracting (ahem consulting!) just over a year ago. I work about 60% of the hours that I previously did, make about 80% of what I did, and spend the rest of the time with the family and catching up on "life". Not sure if it's a longterm solution, but I'm enjoying watching my family grow.
Yep, that's exactly my strategy!

However, this works opposite by not hiding in the mass. The thief hides in the mass, as bikes themselves don't flee the scene when a thief is in sight. So the trick is to find a good place for my bike. As I have a fragile racing bike (old and cheap but technically in good condition), those massive outdoors parking systems are not good places. People pull and push to get their bikes out, and a racing bike wouldn't survive that for long. So I find places where my bike is safe.

It's always fun to see that I park my bike in an empty spot, and after an hour or so the space if filled with other bikes.
Everyone has their own view and cling to their reality with confirmation bias and cherry picking. The optimists say we'll work out any problems, this is a transition period, the complainers are exaggerating and "everything's fine where I live" The pessimists will say things are only getting worse and that the optimists are ignoring real problems.

I live in Stockholm and try very hard to have a nuanced view. Unfortunately, more and more, I see the pessimists view. It isn't as bad as the worst pessimists are saying, but it's also far from as good as the optimists are claiming. Sweden is a 2/3 parts tenderizing frog that's ignoring that the temperature is rising and 1/3 that's boiling.

If we see past the actual issues, which are complex and multifaceted, there's a number of trends in Sweden that's deeply disturbing

1) The level of discourse is only getting worse and more polarized. Populism, emotions and who can make most noise wins over any rational nuanced debate.

2) The quality of politicians are becoming more corrupt and separated from their voters, while resorting to pandering to whatever gives them votes, money and power. It's frightening to see the lack of competence in any party right now.

3) A naive sense of security and refusal of many Swedes to believe things are getting worse and that we are facing real problems. We don't seem to value what we always had and can't conceive we'll ever lose it. Even though education, pensions and care is going down the drain and crime rates rapidly rising.

Someone will twist or focus on some minor facet to state that's not the case at all. Everyone will like and tweet that article clinging to the feeling that we're still great.

4) Inability to treat root causes rather than symptoms.

5) A toxic media climate dominated by "feel good" articles and vicious attacks on any dissidents.

6) Exaggerating and focusing on the wrong topics. We can have a turbulent feminist debate in all the newspapers about manspreading in the subway, while ignoring issues like cultural violence against women, because it isn't "political correct" to even discuss that topic.

Sweden's problems are not only Sweden's... but symptomatic of the problems we're facing in general in Europe and the world: Inability to deal with rampant complexity and globalization, a financial system predicated on unsustainable expansion, booming population and third-world poverty meeting first world abundance.

We just want to feel like good people in a world where it's more and more everyone for themselves... Just saying all this makes me depressed, think I'll go back to believing we're awesome.
There's very little in the JavaScript world that can't be made to work with ClojureScript. That said it could be made easier and official support for CommonJS and RequireJS is underway thanks to Maria Neise's Google Summer of Code work.
And now the last question, how far can you take that logic? What happens at 1,000,000 (one million file names generated) when there are no more characters left to remove from the left side?

Segmentation fault?
Why is it a good idea to store it concentrated in tanks, rather than just diluting it out in the ocean?

It has nothing to do with technical issues. Imagine the public reaction.
I have trouble believing this without more detail. I'm an older millennial and have a very similar situation to what you're describing (good university, tech industry, run my own business), but I can say with great confidence that I can buy a house.

In fact, I own a condominium already which I lease for passive income. I've also invested heavily into some other real estate holdings. I do this while paying off student loans, saving for a wedding, and starting a startup where I made very little for over half a year (1.5 years ago). Perhaps, I stumbled upon some large sums of money without realizing it but I also know I don't buy any video games, I don't go to concerts, I don't go on lavish vacations, I don't buy coffee in the morning or really party on the weekends. I challenge myself to spend where it's necessary and on very few indulgences, though obviously I do every once and awhile. I cook at home, I refrain from feeling obligated to have a drink in my hand when out, and I take vacations to see my family via middle of the night trains.

The average software engineering salary is easily into the 6 figures but there are people doing well making half of that. I don't buy that you have this oppressive force dragging you down and I would be inclined to say that most people in my generation and onward think $40 bottomless brunches, multiple $15 cocktails on the weekend, a week long vacation to the Bahamas, etc. are normal, in the same way people think that a college degree guarantees a job. The harsh reality is that Millennials take too much for granted and life has always required people to make sacrifices.

I don't know your particular situation, but head over to http://www.reddit.com/r/personalfinance and you'll probably discover a few changes you could make to your lifestyle.
Thanks. I think that some backwards compatibility can be handled by more code and not necessarily more layers of abstraction, but I get your point.

It seems like there are lots of layers in Linux distributions because of the Unix philosophy. For example, to put a window on a screen, aren't the layers something like this:

App -> window manager -> desktop environment -> X -> graphics driver (-> hardware)

Is that a good approximation? What does that look like on e.g. Windows and Mac OS?

Is the situation on Linux similar for audio? From my armchair, my impression is that audio on Linux is/was... complicated.
I think there's some other secret sauce happening in there, especially since making the process parallelized is as easy as changing .stream to .parallelStream.
Hemingway eventually developed a tendency to self-parody. Jonathan Yardley, who used to review for the Washington Post, said that "Bad Hemingway" contests were pointless, for Papa had long ago retired the prize. And he was not well served by his mid-century admirers, who couldn't always tell the good from the bad. (The same happened to D.H. Lawrence, I think) One can find oneself reading the earlier, better Hemingway by light of the later, which is unfortunate.

I haven't read much in years, but some time ago, I opened A Farewell to Arms, and I must say that the first few pages are beautifully written.
You know what sucks. As an American I'd still have to pay American income taxes.

Agreed, it always feels scandalous to me whenever I hear this fact.

No idea how it works in practise. I known plenty of Americans who have settled in Poland for a good portion of their lives, so it must be possible to overcome the burden.

Maybe it's one of those things where, as long as you can afford to pay a good accountant (and you really should be able to afford it in Poland), they take the pain away for you?
> There’s just one problem – now we’ve made the function asynchronous, how do we know when it has finished?

The most obvious thing is just to call out to a (semi-) global:

function quicksort(arr, cb) {
var thread_balance = 1;
function thread(start, end) {
if (not trivially solved) {
partition_stuff;
thread_balance += 1;
setImmediate(...);
setImmediate(...);
} else {
thread_balance -= 1; // this thread is done.
if (thread_balance === 0) {
cb(arr);
}
}
}
thread(0, arr.length);
}

This is why concurrent datatypes are often interested in simple registers that you can only increment/decrement, they are still super-helpful for coordinating when a workload is complete.

Taking this a little further, we can wrap setInterval in a Promises library which gives you back a promise for the sorted halves of the array; the thread(start, end) promise resolves with the [start..end-1] indices being sorted, and in the nontrivial case returns Promise.all([thread(start, pivot - 1), thread(pivot, end)]) (the promise-library's merge of the two promises to complete the work). Same idea really.
That is absolutely correct. But Switzerland has a different kind of immigration - its mostly highly skilled workers, working in IT or as doctors, and some lower skilled labour in the hospitality industry. The total amount is very high though (20%+), which makes people uncomfortable - and understandably so.

The situation in Sweden is a bit different though. Many of them are people that have no chance of finding a job in the Swedish market, which leads to crime, ghettos and separated societies. Its essentially mis-managed on a political level. This will only lead to resentment, the rise of right-wing parties and social problems. I don't think this is a desirable outcome for either the immigrants nor for Sweden as a society.
And if you're Google, you built a large office and hired thousands of people, you're not going to leave anytime soon

Plenty of people have said that about other employers in the past and come into work one day to find the doors locked.
If you like good, somewhat hard to find guitar, try to pick up George van Epps' "Mellow Guitar."
This will be the time to get someone to extract energy (or just the tritium, it has a lot of uses) from that.
Search Instagram – FindGram.com
There are 2 more angles to that...

1) more checked bags means less passengers wasting time fighting for non-existent overhead bin space. Less hassling with flight attendants. More efficient loading; planes have a better chance of pulling away from the gate on time. What cost savings there are to a more hassle-free boarding process, I wouldn't know how to quantify.

2) Passengers will bring carryons knowing ahead of time there will be no bin space and it will have to be checked at the jetway. (The ground crew takes the last bags down the stairs and and tosses them into the plane.) These "checked" bags don't pay the fee. Eliminating the checked bag fee removes the incentive for this loophole. However, I wouldn't know how to quantify the savings.
http://www.theguardian.com/environment/climate-consensus-97-...
The routine itself would be copyrighted, but someone should be able to make a clean room reimplementation of the original algorithm, assuming its not protected by patents. (IANAL)
+1 - carry on in the overhead, laptop under the seat infront.

I can fit a weeks worth of clean clothes into a European carry on.
I'm no expert, but didn't the concept of packing everything into your carry on develop because of the fear (rational or not) that your bag would be lost if checked? The exorbitant bag checks fees seem to have arisen in the last 5-10 years seemingly as a result of the 2008 economic crisis and overall crappy business model (cheap fares etc.)
Yeah, don't be confused, this article is racist and xenophobic, in it's most dangerous form, hidden as something else.
Nope. It means a completely different thing.

Java: the elegant simplicity of C++ and the blazing speed of Smalltalk. – Jan Steinman

Basically, they got it all wrong. Erlang got it right.
It would literally take me 546 Days 19 Hours 30 Minutes 40.26 Seconds to download this dataset. I'm sure it reads like horror though.
Having a reputation for losing bags, and also the fact that it takes longer to get your bag from the hold doesn't help either.
If the earth is 509 million square kilometers and the granularity of the data is 25sq km this means we have about 20.3m data points. It implies then on average each point is 540mb. The dataset seems to be broken down by year rather than location though, a UX issue I'd say...
I'd still have to pay American income taxes

On personal income. It sounds like the UK's "IR35" loophole - if you leave the money in the company you don't have to pay tax on that. So you can accumulate capital in the company.
I agree. I'm not sure what happened to Maps, but it feels a lot harder to use than it used to.

Design should include usability. The eye-candy part is just a wrapper.

By that definition, Google certainly doesn't get design.
I develop containers on OS X. I just spin up a linux box in vmware running a docker server listening on TCP.

From my development experience, there's no difference from working directly on a linux box.
That doesn't help the Iranians' lives! Other than getting more money injection by increase of niceness-seeker tourism, hahah.

Joking, if it's like this and is not terribly linked to a religious dogma( which doesn't seem to be, more like a cultural thing), I'm sure there's a 'raison d'être'(I believe natural selection applies to not-directly-biology-linked entities such as societies). Maybe violent fights/discussions are more prevented thanks to Taroof? That's a wild guess ofc.
just shipping as much code as much as possible is the best road to maximize productivity

Just like juggling is a matter of throwing as many balls in the air as fast as possible ("What do you mean they come down again?")
Imessage has strong lock-in factor ,even for people who want to move to android. I'm sure there are other things.
Sometimes it is the loop that brings most overhead to the processing time (imagine big array of ints, and some simple transformations). In such case refactoring would be easy, but anyway...
I hope the article is informative - just count out their refusals three times.
Yes, but only for occasional short-term use. You get used to it pretty quick, so for chronic insomnia it loses effectiveness.