skysight-inc/HackerNews huggingface dataset:
I often notice people assume evolution to be "wise" and "nice" when searching for evolutionary explanations, which it is neither.

Evolutionarily speaking, just because something has evolved does not mean it happened for a purpose, or is useful at all.

Pathological anxiety and depression may actually be purely disadvantageous mutations which nevertheless still passed evolution filters because they are not disadvantageous enough to wipe out 100% of their carriers.

Or they may have a much uglier purpose than you have assumed, for example, to force weak individuals (in)voluntarily withdraw from consuming resources useful to others, or even to kill themselves completely, which might be "wise" during foraging times but is nothing but useless breakage in civilized age.
The building blocks of SQL
SoundCloud Go isn’t available in your country yet. Cool brah.

Tell me again why this is better than already established, well functioning and cheaper music streaming services?
It's a choice between opt-in and opt-out; sometimes you don't want the framework styles applied and you need a way to control that. The drawback to opt-out is that you may not control the markup where the styles shouldn't apply.
Debugging an Annotation Processor in any Java Project
The main thing most programmers overestimate is their own working memory i.e the number of things you are retaining when writing a piece of code.

Problem is: working memory is short term. After a few days, you revisit that code and you realize how much it costs to load it all in your head again.

Basically, we need code reviews of code we wrote last week as opposed to code we wrote yesterday.
It didn't work with how I normally write B either (drawing downwards from the top-left corner), but I did find a method that worked: start at the bottom-left corner, move up to the top, then draw a "3"
So if you had to do this again, would you have taken VC?
It seems fairly over-opinionated for the framework to declare every button as exactly the same. What if a developer needs one orange square button and one normal, greyish-silver boostrap button. If every class is automatically applied to each button, you're going to need to override the styling for that specific orange, square button.
Between 1970 and 2000 there was also a massive expansion of the global workforce. Both in absolute numbers and in the percentage of the planet that was participating in global markets.

In many countries, women started working a lot more in that period. Other countries entered the global market (notably hundreds of millions of Indians and Chinese).

People talk about the rise of Africa being the next cheap source of labor, but that is a smaller number of people that is less uniformly educated than the above cohorts.

I don't think it is really all that strange that wages stagnated where they started out the highest. Maybe we in the US are actually on track for things to get better rather than worse.
In the 30s, business opposition to FDR and the New Deal programs ushered forth a wave of propaganda inciting distrust in government control of the economy while promoting the ability of American industry to raise living standards.

As a result, the Roosevelt Administration countered with a series of public service films informing the public of subversive private propaganda and demonstrating ways to detect hidden or covert biases.

At first I laughed when I heard about this. I couldn't imagine anyone putting that much effort into analyzing news. But using AI? You might be on to something...
>> "If they put themselves exclusively behind another service"

I'm not seeing anything about this that's exclusive. It's just another service they can also have their music on but now they can make some money from it instead of nothing.
Would it be legal to write a Twitter bot that detects mentions of pay-walled academic papers and responds with a SciHub link?

This seems like it would be a good way of promoting the service to the wider masses.
In modern type systems (Haskell, etc.) you can define a new type that wraps an existing type with zero runtime cost. In Haskell you could write

newtype UnsafeString = Unsafe String

(UnsafeString is the name of the type. Unsafe is the constructor you use to create an UnsafeString from the String).

With this and other techniques you can lift these characteristics of you data into the type system, which is IME much more useful than using hungarian notation.
I know nothing about corporate law, thanks for the info.
Scam+Alert:+Vanilla+Reload+Instagram+-+Free+Scan+Your+Business+Listings+Inside
This leads to the question what 'productive' really means. If a productive programmer writes a lot of code that isn't maintainable at all, can you really call that person productive? Maybe... but the poor sob tasked with maintaining the code later, will certainly not be called productive.

Maybe productivity should not be regarded isolated from other metrics and/or certain style-considerations.
Reminds me of this gem: https://www.youtube.com/watch?v=BKorP55Aqvg
My guess is this just spawns a mass migration away from Java altogether.

Not knowing when Oracle might decide to shake down your business is a massive incentive to use anything else.
I disagree. On here, with low karma, you're a second-class citizen. You have much less ability to suppress opinions; you can only upvote, not downvote, so you can't target someone specifically. Hoping to drown them out by upvoting everything else isn't the same; only posts that are actually downvoted get turned to gray here. So because of this mechanism, this place ends up being exactly what you complain about: "an echo chamber of parrots".
Imagine deriving a C# class in PHP and then deriving it back in C# and then using it in PHP!
Beijing Seeks to Tighten Reins on Websites in China
>They were started by local people for local reasons, often with westerners cheering on from the side lines or occasionally providing a bit of air support as in Libya, but mainly keeping out of it.

"A bit of air support" is a strange characterization for destroying the Libyan government's entire tank fleet in the middle of an Islamist uprising. "Mainly keeping out of it" is a strange characterization for supporting a coup in Egypt that toppled a democratically elected government. Also, we never, ever, ever, ever talk about Bahrain, where the US supplied arms through Saudi Arabia against the uprisings and:
>By 2014, 5,000 Saudi and Emirati forces and almost 7000 American forces were positioned "less than 10 miles from the Pearl Roundabout, the center of the country’s protest movement."

We have surrounded the middle east with armies for more than a generation and armed the worst governments in the area. "Mainly keeping out of it" is a gross mischaracterization of what we do there.
Conceptually speaking, having two nodes is not high availability, it is failover / fault tolerance. High availability is generally N + 2 where N is >= 1.

This is a better explanation than I would write on this:

https://www.quora.com/What-is-the-difference-between-a-highl...
Ask HN: Whats a mobile app you wish you had?
Hey guys, just a mobile dev here looking to work on a fun side project. The title says it all, whats an app you wish you had on your phone?
A company I used to work for built online shopping carts. We were building one for an industrial company who's inventory system ran on an AS/400, and we were doing an integration. I had ZERO familiarity with IBM mainframes at the time and presumed (wrongly) that it ran some flavor of UNIX. I was to work with their lead developer to get the integration going. He was maybe late 50s, I never met him face to face, only over the phone. I suggest that they build a "simple JSON or XML API" for us to connect to. This makes their lead very uncomfortable. He does NOT want to put the machine on the public facing Internet (reasonable enough) and has never worked with XML or JSON. He instead wants to set up a system where hourly it would email us CSV diffs. Maintaining data working from diffs sounded like a nightmare to me, plus I'd never programmaticly worked with receiving emails. Whole thing sounded iffy. Plus understanding their data model it would not be shoved into CSV without a fight. After a bunch of back and forth (weeks) we work out a system where the server would upload a combination of CSV and XML to an FTP share we controlled and I could reprocess the data hourly. It actually worked reasonably well. I'm curious if it's still in operation, I've long forgotten the name of the company we built this for, there were just so many.
>> "If soundcloud has mended their ways with regard to allowing takedowns etc by third parties, this hasn't really been communicated all that well."

I had my first take down a few months ago after using the service since it launched. I got 1 strike. A few weeks ago I had another take down but there was no 'strike' mention this time. I'm not sure if this was because Universal requested the first takedown and the second one was automatically caught by SoundCloud's system but it may be that when the second one occurred these deals were finalised so they've stopped the '3 strikes' nonsense.
Also, helping a handful of calculator companies maintain a monopoly on the graphing calculator market.
Moving to Java generics took me a while mostly because of type erasure. In C++, I'm used to being able to use the type in a generic class or function, which kept biting me in Java.
Ask HN: Most successful SaaS pricing structure you've found?
Details like how much more revenue a product can bring by charging 99cents instead of $1 fascinate me,and I'm curious to see how that translates to the SaaS world. Thanks!
Runtimes like ruby and python are quite commonly found in the default installation of many distributions (and OSX, IIRC). Java is not.
Essential Terms for Your DevOps Vocabulary
How do you reverse burnout?
I've been working 50+ hours a week for the last six months. Between my "9-5" freelancing for a full-time client, and my evening personal projects, I pretty much spend 7am-10pm concentrating and mentally engaged. For the last couple of weeks I'm having a hard time caring about the client's project.

At this point I'm almost ready to go find a job working for a single company who will make all the decisions and just delegate to me "code this."

So what do you do to reverse (or prevent) burnout?
Great to see a Kenyan founder! So inspiring!
But most human variations are recent! We've changed more in the last 50,000 years than the previous 1M years. I'd say, instead of a real purpose, any 'breakages' are likely coincidental to some other, more advantageous adaptation. Getting smaller and more calorie-efficient (to suit the village/town/city/urban environment) may mean biochemical changes that change our mental state. Not because we 'need' that mental state, but because its better for the clan if more of us fit closer together.

So many adaptations are sledgehammers for a smaller problem. Evolution doesn't plan; it just diddles around until something (sort of) works. And our bodies are the unfortunate result!
Robots are coming for your job
We HAVE picked a side, it's Saudi Arabia. We sell them billions of dollars in arms every year, support them in every conflict they undertake (we are currently helping them bomb the shit out of Yemen), we have contained Iran behind sanctions for a generation. The idea that the US is a neutral actor in this fight and not a huge source of military power dictating events is, frankly, a horrific lie.
Capitalism isn't inherently short-term oriented. This has more to do with the incentives in & the regulatory framework of the system (consider requirements for quarterly reporting & the whole expectations game that has risen from that requirement.)
Reminds me of Hiccup's syntax: https://github.com/weavejester/hiccup
<300k gets you 500sqft bachelor pad. Rent is about 1500$ for bachelor, goes up to 2k for 1bed+den. I think the 30 rent rule is a great benchmark for living affordability, renting a 1bd+den is around 1700$ for downtown in a decent building.. with utility, internet etc .. make that 1800$.. ((1700+100)*12)/0.3 = 72k a year. If you're making that dt toronto, you're doing okay.
> A corporation can own property, pay taxes, sue, be sued and as a legal person

But it can't go to jail, and fines that are levied for wrongful behavior are often less than the profits obtained from said behavior and come about through settlements with no admission of wrongdoing, and without any executives being held responsible.
Why Trump’s candidacy as not an anomaly
Indeed, but unfortunately everything has been set up to provide a strong motive to hoard rather than spend cash.

The thing is, when you hoard wealth as numbers on a balance sheet rather than spending it, you are actually destroying that wealth. Money which is not in motion is not money.

I find it absolutely insane that we take the excess, the bounty, the benefit of the efforts of centuries of technological and industrial progress, and rather than enjoying those benefits, convert them into numbers in a ledger that one can look at and go "uh huh", which provide no benefit to man nor beast.

It's the biggest scam ever pulled, and we all willingly engage in it. Marx pointed it out as "the accumulation and destruction of crystallised labour-time by the owners of the means of production" (I paraphrase) in Kapital - and absolutely bingo has changed since then.

UBI is in my mind the way to go - tax the ever living hell out of cash reserves, which would promote re-investment and the use of cash - and use the proceeds from that tax to pay a UBI.
Almost every cloud subscription company already does this.
>> "The actual offering left aside, the naming is quite unfortunate."

It seems good to me. One of the major features is offline listening to you can now listen 'on the go'. Am I missing something?
Progressive Enhancement Makes Me Sad
> Corporations are legal persons. Only persons can be parties to legal actions.

True, only due to bad precedent. "Should they be?" is a question we the people should have had a chance to argue and debate. Instead, it was by a judicial fiat that made a new type of citizenry. And honestly, they are pretty fucked up, with requiring their primary focus to be "Make money at all costs". A human with a similar 'ethics' would be called a sociopath.

Better yet, I'll believe corporations are legal people when Texas executes one.

Secondly, Patently false. https://en.wikipedia.org/wiki/Civil_forfeiture_in_the_United...

United States v. 12 200-ft. Reels of Film

United States v. $124,700 in U.S. Currency

United States v. Approximately 64,695 Pounds of Shark Fins

United States v. Article Consisting of 50,000 Cardboard Boxes More or Less, Each Containing One Pair of Clacker Balls

United States v. Forty Barrels & Twenty Kegs of Coca-Cola

You want more?
While I like SoundCloud a lot, what the hell have they been up to for the last few years? From where I'm sitting Spotify, Apple Music and many more out-innovated them and SoundCloud did... well, nothing.
Link 404's.
I like to break lines and use indentation to line up repeated text, so you can see there is repetition, and so the parts that are different are obvious. A simple example:

if ((mouse.x == 0) &&
(mouse.y == 0)) {

scores more points than:

if ((mouse.x == 0) && (mouse.y == 0)) {
The last line was a leftover from a draft and should be ignored...
Thanks! I'll take some time this evening to make it a bit better at picking out the K.
FreePulse Patient Monitor a low-cost patient monitor for use in developing world
Newbie complaint. Stick around for a little while, get a little karma, and become a full citizen. This isn't some echo chamber just because newbies can't drive the conversation. Just the opposite.
Companies tend to not think in the long term - they are encouraged by investors, lenders and the market to think in very short planning horizons.

A recent experience when trying to get a personal mortgage as a company director underscored this:

"Your profits are down! Your business must be failing!!"

"No, we opted to re-invest some of the substantial amount of cash we're sitting on, and therefore took a hit to profitability this year so as to be more profitable in the future."

"So your business is failing?"

Consider this at a grand scale and you understand the incentives within which corporations operate. Everything is about the quarterly earnings report.
Hey there - It's a huge catalog of tracks which contains all content from both emerging and established creators. The full details of which can be found on https://blog.soundcloud.com/
"I really think other judges should follow the example he set and at least develop a core understanding in a similar fashion."

Many judges probably do, every day, in lots of technically specialized fields, and we're just not paying attention because we're not experts in those fields, either.

Shouldn't assume our field is so much harder for judges to understand than medical, scientific, and other specialized fields judges need to weigh in on.
Brilliant!

"SOMETHING MAGIC HAPPENS WHEN YOU PUT A MARKETING GURU IN THE SAME ROOM WITH A PSYCHOLOGIST, A NOVICE CALLIGRAPHER, AND SEVERAL FAILED MUSICIANS.

At Blandly we believe that you need a rich set of perspectives to build the perfect bland. That’s why we’ve incubated a company culture that grows unique bland outcomes. We are an eclectic team of avid outdoorswomen, comic book collectors, whiskey nerds, fixed-gear bicycle aficionados, Rosicrucianists, and bacon lovers.

We are best friends. We play table tennis together every day after work. We borrow each other’s clothes. No one is ever sad.

CREATIVITY: IT DOESN’T JUST HAPPEN.™"
Your workers will be more invested if they can comfortably afford the product, though. Obviously this depends on the market.
I spend a lot of energy discussing this at work, and mostly that has been "continue talking while people look at you like you have two heads"

It feels like maybe people are almost ready to listen now. I don't know how this relates to the number of libraries we use now, or the StackOverflow culture, but I have my suspicions that they are related. Maybe we should start talking about Library Fatigue...
previous

https://news.ycombinator.com/item?id=11381146
What on Earth are you talking about? From Google's own developer reference[1]:

> Android provides a rich application framework that allows you to build innovative apps and games for mobile devices in a Java language environment.

In order to compile for Android, you use JACK, the Java Android Compiler Kit.[2] I could go on. Google uses the name Java all the time in reference to the language used for Android.

Google didn't base a language off Java. Android uses Java-the-language, unmodified (and an outdated one at that). It uses some existing Java APIs as well, and keeps the same names, which is why the official Android API reference[3] has the word Java appearing more times in it than a history of Indonesia.

[1] http://developer.android.com/guide/index.html
[2] https://source.android.com/source/jack.html
[3] http://developer.android.com/reference/java/lang/package-sum...
More or less. There was a minor parser combinator arms race in the Rust community a few months ago using http parsing as the benchmark and my takeaway (only half paid attention, I haven't needed to write a parser) was that they got to roughly as fast as handwritten C parsers. Example:

https://github.com/Geal/nom_benchmarks/tree/master/http

This hasn't translated into actual use in the Rust HTTP libs with hyper and rotor-http using their own handwritten parsers but I still think it might.
I would argue that there is _effectively_ lack of competition in the airline industry, (at least in the US):

- there are ~ 6 major airlines for a country of 320 million people. In Europe, there are many more (all the national carriers, plus lots of low-cost airlines)

- where are the low-cost carriers (like EasyJet or RyanAir)?
JetBlue or SouthWest are not really low cost, they just have marginally better service than the old guard.

- customers are treated like dirt. Not just the ever-smaller seats and lack of any free food on domestic flights. It is even worse than that - they can change the agreed-on contract at any time, example: I paid extra $$ for a non-stop ticket LAX-BOS in June. A few days ago, I received an email form the airline apologizing for changing my ticket to a non-direct flight (which will take 3-4 hours longer), but there is no mention of any refund whatsoever.
That might be legal but in my opinion not ethical.
What is a Good Neighbor?
Happiness can trivially be due to things beyond our understanding, so challenging that emotion can make one conclude that one has no good reason to be happy. Unfortunately, I don't think this works very well with emotions like anxiety or depression.
It is tricky to relate high profits to low competition. Sometimes both can happen together.

The histogram on the article shows IT/Technology and Finance as being 2 sectors with high profits, but these are sectors with a fierce, cut-throat level of competition.

Also, as Peter Thiel argued, healthy profits are vital to finance innovation.
Cyberknife Sigulda centre
Just want to throw Google Play Music into the mix (pun intended!) as I have been using it exclusively for the past few months.

It is excellent and I cannot recommend it enough, and it is available in Canada (unlike SoundCloud Go).
Doesn't mean that "first necessary step" is no longer necessary or even a good idea. It just means that original assumption no longer holds.
Why would anybody downvote? While I only care for Pusha T out of that list, it doesn't seem out of the ordinary. Not a lot of rap fans on HN I see :/
Gory details: https://github.com/kubernetes/kubernetes/issues/8132
If the chanting bothers us, we shouldn't have deposed Mosaddegh.
Disconnect. Get on a plane, no laptop, no work, no phone.

My last one was last-minute, 5 days in Hawaii using Hotwire and AirBNB and the whole deal cost me $900, including food.

Three to four days usually works for me. That said, I'm due. Thanks for the heads up :)

Oh yeah, and I float .. http://thefloatspot.com/ .. It's unreal. You should try it if you can.
Do something different.

You're working too much, and some of it is under your control. Stop working on your personal projects for a bit. This gives you time to rest, and think clearly.

Do different work. If that means taking a job, as you mention, then fine, do that for awhile. A compromise would be to work for a contracting agency; there are full-timish yet time-limited jobs, so you can let someone else tell you what to code, yet can still leave the job without any social disapproval. Or just work for a company for awhile.

When you're in a rut, get out of the rut. Do something different, whatever that means to you.
Well yeah. The defaults should be defaults, and if you want to change them you override them. No?
I love that Asana missed the opportunity that Slack captured.
Get aerobic execise, enough to make you sweat, at least half an hour a day, ideally more like two hours. If you like to bike, run or something like that, great, otherwise use the cardio at the gym.

If you are feeling unexplained pains, consider starting an SNRI antidepressant such as Effexor, otherwise consider a plain SSRI. This provides an armoring effect against stress without interfering with the natural process of maturation.

Take a vacation.

Put your side projects on the shelf for a while or hire somebody else to do them while you bring your current engagement to an honorable conclusion if that is at all possible.