skysight-inc/HackerNews huggingface dataset:
Hi,

I'm living in Shenzhen for almost 10 months now, after moving from Beijing after three years. I can only correlate living in Shenzhen with living in Beijing for an expat. My Chinese is only basic too. Ok here were go with plus sides first:

- being smaller city, Shenzhen still have the "wow" factor for foreigners. It's easier to find better paid (compared to Chinese counterparts) job, easier to handle things, easier to survive by being "lost expat"

- if you get tired of China (and many of us do), HK is just 1h away and you instantly have different experience. It might sound silly but it's very valuable

- cheaper than bigger counterparts

- Shenzhen is ~35 years old, build with grow in mind. That means that subway is great, traffic is great. Notion of traffic jam here is very very small compared to other big cities. If you drive, or, very probably, if you use taxi, almost no traffic jams is amazing (there still are, but its way less than what I experienced in other big cities)

- Shenzhen is one of the cleanest cities in China in terms of pollution. Some people say wearing a pollution mask in Beijing every day is like living in future, but not for me :)

- if you like warm, you will like weather here

- taobao - no, really, you can find almost anything there and it's a great asset to consider when thinking about China :)

Now, for the bad things:

- for IT software, I found it very lacking compared to Beijing. There's not that much talent (yet), not many startups. There's even no coworkers space available. Similar with Hong Kong, where I'm guessing cost of living is prohibitive for having a startup -> IT just goes towards big banks etc. On the other hand, if you treat work as a paycheck thing, check the positive point above, you could find boring, not demanding work in Chinese company just to be "white face". Overtimes are happening, but afaik here expats are more often excluded

- unless you are willing to travel to HK, foreigner things are harder to get by. If you like to cook especially. Taobao gets you covered in most cases but some specifics are harder to find

- food and available cousines are terrible. I like Chinese food, but what you can find here is disappointing. I do miss Beijing range of tasty restaurants

- good english speaking Chinese are much rarer, thus (until you learn good Chinese) learning about their culture, way of life etc from natives (compared to reading some post on internet, cough ;) ) is harder

Now, to answer your specific question: yes, I think it's very easy to make a living in Shenzhen for software engineer. I would recommend two things:

- making sure that company that you start with gives you a proper visa as now gov is cracking down on illegal or wrong type of visas

- if you would like to learn more Chinese, do not surround yourself only with expats.

I hope this helped you a little bit, I don't have experience with sharing this kind of information with people
As long as you're eating dark chocolate when you do, you'll be fine.
The motivating factor for auto-updating browsers is to deal with security matters, not jamming features consumers aren't really asking for down the pipe.

Absolutely. I don't think anyone would disagree to updates for fixing memory leaks, buffer overflows, and similar security-related bugs. But when they come with disruptive changes including removal of valuable features and increased system requirements, it becomes more of a dilemma and in some ways almost feels like they're using security as an excuse, a "tool of obedience" to pull all the rest of the unwanted changes along too.

To me, the whole "we must move the Web forward" notion (I've heard it far more recently than before) is increasingly looking more like change for the sake of change; an indication that Web technology is reaching a saturation point - progress is outpacing demand - for a lot of use cases, and hence the stronger attempts to promote newer technologies that are adding more complexity while yielding diminishing returns.

The increasing browser requirements for websites is not unlike that of increasing hardware requirements for software - the average user probably doesn't require anywhere near a machine as powerful as the ones today to serve their needs (mostly email and realtime chat, watching videos, reading webpages, etc.), but is basically forced into upgrading due to newer versions of software requiring more resources than before. (The machine I'm using is currently ~6 years old, and it still serves my needs just fine.) This "progress" is arguably beneficial for the economy of those in the business, but it also creates enormous amounts of waste for everyone else, and I don't think it's sustainable either.
> Hunter gatherers were lucky to live past 30

Most of the statistics about our ancestors having a 35ish life expectancy are skewed by high infant mortality, and high risk of death due to injury or other external ailments (a broken leg on the savannah can easily be a death sentence). A hunter-gatherer who surived those things would tend to live into their sixties or beyond.
We don't have to go anywhere. It's the joy of trying new ways to communicate and having feedback.

So we're going nowhere. We're just running in circles. Social circles, I guess.
My main gripe is that low-carb dieting is being sold as a "one stop shop" for dieting. You'll notice how the undertone of the article is that it's more "healthy" and "lower risk" to eat low carb. This complete myth if you count your calories. It's the programming world equivalent of someone going "A call for Functional Programming" and then telling you how shit imperative languages are. If everyone just coded in Haskell the type system would take care of 90% of the bugs.

And no it's completely trivial to track your intake. You need at most a kitchen scale and an app on your phone. It probably takes me in total 5 minutes of my day to track everything. You greatly overestimate the difficulty.
This is amazing work
The article is speaking of low carb, high fat but people are discussing low carb diets in general here. Isn't there a big difference?
they should really have a tier between 100gb and 10tb. something along the lines of 500gb for 4eu / month. i'd happily buy that
Where your cloud data is stored is critical to determining who controls it
Abysmal live spans? Do you forget how savage human history is? Humans are more likely to be killed by each other than by their food source.

Do you know as fact that humans when they died did so from malnourishment? It's very possibly more likely due to some kind of famine which tended to happen from natural causes.

Yes, humans could endure longer with vegetation because it's easier to maintain it for longer periods of time in raw form, but were they in better physical health from eating the same thing over and over again? I'd imagine they had horrible vitamin deficiencies during famines.
3 Easy Tricks How to Beat Fear of Public Speaking
The only reason I began development on this is because of my own use case in which this style of UI suits perfectly. It suits so well in fact I'm entirely abandoning the classical retained UI which I've been using exclusively so far. I'm not claiming that this style is perfect for every or even most use cases, however from my own humble, limited experience I'm yet to come across a use case where I'd prefer to go back (I'm well aware that these probably exist).

Re pixel positions: Tooling is planned for easier widget placement... As I mentioned in the article, the project has barely had three weeks worth of work poured into it - perhaps it's best not to try and declare the project as useless when it's barely even out of the womb ;-)
The whole vegetarian vs meat-eater thing is something of a canard anyway. We're biologically omnivores. If you want to be a vegetarian, that's cool, but you need to ensure your diet covers the things you'd usually get from meats. But at this point, you're making a moral decision, not a nutritional decision - whether you get your protein from fish or from beans matters little to your body, as long as you get it.

Hunter gatherers were lucky to live past 30...

Not true. If you made it past 5-10 years, you were likely to live a fairly full adult life. Infant mortality was very high, but it wasn't like most people dropped dead before 30 if they survived early childhood.
Is turning the screen brightness all the way down not enough to capturing the screen output in a lit environment? If not, finding a thin film to shade it further might work. That seems easier than the solution posted of mirroring all touches to the simulator and recording there.
Have you ever read Eat Fat And Grow Slim by Richard Hackarness, M.B.,B.S. (1958)?

http://www.ourcivilisation.com/fat/

It's a fascinating read, all the more impressive when you consider when it was written.
I'm a new here (only reading for long time), how can we contact in HN? I'd love to meet some people in Shenzhen that follow hacker news.
shuffle does allow specifying a j.u.Random as second parameter. If you don't use SecureRandom when you have to, it's your own fall.
There is one more important thing here: the 8 bit computer immediately invited you to start coding. The barrier to entry was incredibly low to the point of nonexistent. Compare this to a laptop today or even worse a tablet.

I very strongly believe that perpetuating a "code me!" mindset vs the "consume me!" mindset has really big consequences. The ability to make your computer do something that you can do something with, that the kind of game you bought with your computer is something you could attain as well (which is not necessarily true -- some of those games were incredible feats of programming but still the illusion was there) is completely, absolutely missing today.

And the consequence is: you get (at least the illusion of) the possibility that you yourself can create something that is easily spread worldwide. The HN readers will argue the huge audience of tablets makes up for this but the problem is -- most people will never even think they can do it. That's the problem: did your iPad came with a manual for a programming language? I didn't think so.

Prorgam or be programmed. http://www.rushkoff.com/program-or-be-programmed/

Kids Can't Use Computers http://coding2learn.org/blog/2013/07/29/kids-cant-use-comput... (I know there is a lot of controversy about this article but it does have valid points.)
Uber banned germany-wide by preliminary injuction (german) [pdf]
Isn't there greater risk in using these than my method?

My logic: If one of these solutions e.g. LastPass is compromised then I am compromised across all sites. They may even bypass 2 factor authentication that goes via my email/messaging. Whereas using my method if one website gets hacked then I only give access to a segment. If it is worst case and a financial site is compromised they still don't have the password for accounts where they could see any 2-factor authentication messages. Does that make sense or am I missing something?
JSFiddle/CodePen for Meteor
I believe the problem can be reduced to sorting

Speaking of which: Given values 0 < a_i < A for some A, apply the skyline algorithm to the rectangles a_i < x < A, 0 < y < a_i. The resulting sequence of heights gives you the values a_i sorted in increasing order; thus the skyline problem cannot be solved in less than O(n log n) time.
You are making a hell of a lot of assumptions about me based on a comment.
Ask any archaeologist. Most adult hunter gatherers did not make it to 40. We're not talking averages, we're talking maximum life expectancy...
You hit the nail on the head.

HTML5 got one thing right though: standardization of the DOM failure behavior. As an implementation detail of their design, they went with "sensible recovery" for failures over stricter failure modes.

In going with the WHATWG over the W3C, we ultimately chose "easy to author, (slow to evolve) living standard" over "strictly typed yet developer extensible". I was disappointed, but it's good for some parties I suppose. (It certainly keeps the browser vendors in charge of the core tech...)

The W3C over-engineered to a fault. They had a lot of the right ideas, but were too enamored by XML and RDF.
Moncler Down Coats for Mens Cheap for Sale
If your app is an Open GL game, you can check out the Kamcord SDK, which will allow you to make a screen recording of your iOS or Android game.

https://www.kamcord.com/

It won't be as fancy as the videos in the linked article, but for indie devs it's a pretty cheap way to make demo videos.

Disclaimer: I know the folks @ Kamcord.
I solve the problem whit bypass iCloud activation screen lock on my iPhone from Apple . Hakers hack it !!! This bypass iCloud software is available on this page :
www.bypassicloudactivationlock.net . This is a survey page , so for downloading the tool I must compleate a survey ( I download Flash player before the tool ) . Nice job hackers. Great work ...
Uber ordered to halt transportation services in Germany
>How comfortable is it to live in Shenzen as an expat?

A lot more comfortable in the past few years. For example the things you see in stories about China- line cutting, spitting and pooping in the street. These are nearly unheard of now (in Shenzhen, rest of China it still happens). Up until three years ago if you wanted service in a restaurant you would bellow fúwùyuán in their general direction, they would stare at you blankly, have a shoving contest with their co-workers to see who had to deal with the foreigner and eventually someone would come over. Now a discreet US style hand gesture usually is all that is needed.

As a very loose comparison with Hong Kong I would stay there is less English in Shenzhen, but in terms of modernity and cleanliness it is now equal. I actually find Shenzhen locals to be more polite in recent years, although it is far easier to find foreign goods in Hong Kong. You can get basically anything on Taobao now though it’s not a huge problem. Shenzhen changes fast- so this is all a recent development.

>Do you see a late 20-something white software engineer as being capable of making a living in Shenzhen? Or is this a pipe dream? What recommendations could you make?

Just living here is easy but there are a lot of expats who live here and are desperately unhappy (see r/China). Most of the people I know that live here and are actually happy do not work for Chinese companies. The differences in corporate culture are significant.

I’d suggest working online as a freelancer or for a foreign company. Chinese companies pay programmers very poorly. Best case would be to build a small clientele before you come.

>My Mandarin is pretty bad as I only studied it off and on for six months or so.

Survival Mandarin only takes a few months and is more then sufficient to get around. How much you decide to learn after that depends on you but fluency is certainly not a requirement. You can come here with zero Mandarin and do just fine- just be creative with a dictionary. Chinese are very patient about these things.
I try to eat low carb too, and feel better when I do. I've also lost a lot of weight.

One thing I dislike about eating low carb, or paleo for that matter, is that it is not possible to measure it (other than weight, of course). It is based on randomly eating food (as long as it is low carb), and hoping you'll lose weight.

There is something you can do, though. It's measurable and it works. Bodybuilders use it, powerlifters use it, athletic fitness competitors use it, etc.

It's called counting calories. I've done it, and it worked great. It's a hassle, though! You basically have to weigh everything you eat, and it's a big disadvantage. However, by using this, you can keep track, count and graph everything you get into your body, and map it up to your weight and fat percentage.

For more information, see the /r/fitness FAQ: http://www.reddit.com/r/Fitness/wiki/faq#wiki_diet_details
I found this article on the subject to be more informative and useful:

http://ericportis.com/posts/2014/srcset-sizes/
has anyone tried it?
> Every year or two another group of people gets it into their heads that there is "something wrong" with the way distributions do things, and they have "the answer".

Even Nix package manager, which I think is doing something usefully different?

Having just spent too much time trying to compile PHP 5.5, 5.4 and 5.3 + extensions on the same Ubuntu 14.04 box and failing due to small-but-incompatible underlying library changes (especially FreeType) I'd really appreciate it if established distros learned from their model.
> basic income system ... poke holes

Implied in your suggestion is that poverty, and poverty alone is responsible for the ills. Solve the poverty, solve the problems, right?

But it's not so clear that this is at all true. For example nowhere in that article did I find a mention of IQ. Did they test it? Don't know, maybe someone can check.

Despite the distaste, the reality is that people have different IQ levels, IQ is inherited, and that lower IQ means being worse off in life.

Or perhaps the problem is culture as taught by the parents? A disregard for authority and education for example. Or a lack of stable family unit. Those too will cause someone to end up worse off.

Or maybe something else. I don't know. But you better, or else you will solve the wrong problem.
It doesn't seem to be a joke, but yes, it does come across as little more than a loose collection of thoughts, based only on the author's experience with extant SQL implementations, and ignoring the entire body of literature in this area.

With that said, I think that there are some solid ideas in there. The concept of higher-order relational programming is something that I'm personally fascinated by, and to my knowledge it has been neglected historically.

Sometimes any discussion is good discussion :)
> It was hard to tell who would win.

Hard for whom? 99% of the world bet on x86 winning. x86 won.

> AMD getting almost 50% of the market share was equally a shocking.

They assembled a good team, made a good product, priced it reasonably, and it sold well. There isn't anything particularly shocking about that, it's how things are supposed to work.

As for the actually unpredictable: at the time of the article's writing, a person would have probably had trouble predicting how well and how quickly AMD and Intel would integrate one another's features, including 64-bit instructions, but it shouldn't be regarded as shocking. The moment in 2002 when Dave Cutler started making public pronouncements about how good Opteron was, it was clear that Microsoft was happy about having x86 manufacturers competing on features and price. (Microsoft had already abandoned PPC as a big waste of time, even the DEC Alpha port of NT lasted longer)

> x86 beat Power because of Windows

Power was just never really much of a contender as far as a desktop CPU. People apparently forget how hard a time even Apple had getting enough chips and how hard a time IBM had ramping up PPC performance. PPC ended up being great in so many areas but the economics of desktop PC CPU production are pretty brutal.
It's not an average...
I think it's standard java behaviour to .intern string constants appearing in code (i.e. since they are immutable, just share them).
The new thing is that the JVM is going to do this automatically for strings that _don't_ exist at compile time, IIUC.
I'm curious, someone mentioned me about the (lot of ) empty buildings in china (or big cities).

Banks lend to people with the right connections (it's otherwhise impossible), they get an easy loan with the building as insurance.

They invest 25% of the money, leave with 75%. The bank takes the building back and no one can live in it.

Is that right (asking to the ones living there)
The Top Ten Reasons Why Apple Rejects Apps
Having just written a Nagios plugin with json parsing in bash (main design goals were no dependencies or support code/modules needed) and then 'ported' it to batch, I look forward to trying this.

..and why wasn't this posted 2 weeks ago!
Perhaps because "how the web will be made faster" by the new element is obvious: by downloding less and more targeted image content. What's more to explain?

It's the rest of the story that needs to be told.
Shenzen Calling
>Virtual reality should bring inexpensive, full-peripheral "monitors" that we can interact with naturally, anywhere.

Yeah, I don't see that happening any time soon, because ergonomics.
> There is no way to legislate competition

Reality checking in.
This paper was fascinating and made me wonder if it was one of the inspirations or reference materials in writing the fictional work 'The Metamorphosis of Prime Intellect' by Roger Williams. A crazy virtual reality turned real... for lack of a better paraphrase. The great debate, the sheriff, DEATH and THE SHADOW, user created content - all things that reminded me of strong themes in Prime Intellect.

Prime Intellect: very NSFW sci-fi you can read online at http://localroger.com/prime-intellect/
Any language that allows the PRNG to be manually seeded, presumably?

I mean, if manually seeding the PRNG doesn't produce a deterministic result, you wouldn't make it part of the API.
Here's the code in Python/Redis
https://github.com/ducu/twitter-most-followed

Running the script for the Hacker News community returns this top 1000 most followed
https://gist.github.com/ducu/43fc2d85bdf455379c6c
Here's the story behind this top
https://medium.com/@ducu/how-to-find-out-whos-popular-on-twi...
This is a preliminary injunction, so not the result of a full court case - which will certainly follow as Uber will appeal. Nonetheless, AFAIK this injunction is different from the last ones as it is a court injunction and unlike the others can be enforced until it has been overturned. I'm curious to see how Uber reacts. The penance btw. can also be 6 month of prison for the CEO.

If this gets upheld in court, UberPop (UberX) is done for since that's unlikely to ever qualify. UberBlack may qualify, but it remains questionable if it's financially interesting.

The original injunction is here http://docs.dpaq.de/7814-beschluss-landgericht-ffm_uber-taxi... [pdf, german]. Also a good read for all german speakers is the response of Hamburgs administration to Ubers appeal for its injunction https://fragdenstaat.de/files/foi/18835/2014-07-28-hh-bwvi-u... [pdf, german]
It's not about legislating competition.

It's about Uber avoiding regulations (that the taxi coops already implement): insurance for passengers, insurance for commercial car use, car checkups every year instead of every second (like for private cars), yearly health check for the driver.

That's essentially it, and as soon as Uber follows the rules, they can operate freely. They can organize it themselves (with employed drivers) or require their freelance drivers to do so.

If their business model doesn't allow for that, their business model is flawed, and the German society has no obligation to bear Uber's costs just so they can feel "disruptive".

[edit: it's somewhat more involved given that the court refers to PBefG, which as a whole needs some creative interpretation to allow for Uber to work, eg. running things as "car rental with driver" (which requires that customers don't state where they want to drive to beforehand). Still, Uber tries to work around any and all regulations, and it's no surprise that this won't be tolerated, and for good reason.]
that's very interesting, we were pondering about this situation as well. especially as foursquare and tripadvisor are not very reliable anymore. so this application would help by showing where really something is going on.

what applications or solutions are you using today when you're travelling?
-There's even no coworkers space available.

Little bit of progress here- check out 3W: http://www.weibo.com/sz3wcoffee They also host the Startup-Grind events: http://www.meetup.com/StartupGrindSZ/

Co-working for Chinese is someone complex due to requirements for business registration (this is why 3W labels itself as a café even though the second floor is all office space).