skysight-inc/HackerNews huggingface dataset:
Hi Patrick!! Big fan!! cough

I am indeed very much aware I am running on unreliable hardware. My evaluation of my productivity comes from reviewing things done in micro and macro scale, as well as feedback from people around me. Seeing my HN history from PhD years to Startup years is night and day. I've even installed RescueTime to get a better idea of how I spend my time. I try to get as much external data as possible, always happy to apply any other (sensible) metric you (or others) can suggest.

But keep in mind these same considerations hold for everyone claiming they're super-productive in 40 hours a week.
This is cool, but I like jashkenas' version in the comments here better.

As much as anything, this is because I maintain a reflexive aversion to touching `Object.prototype`.

If you're disciplined about avoiding this you can use `for ... in` loops without having to dick around with testing whether the properties are actually directly on your object every time, or writing a wrapper that takes a callback.
There are so many steps in between walking 20 minutes a day and running 5 miles a day. Like, for example, I'm sure adding a 7 minute workout to your daily 20 minutes would do a world of good over the long run.

https://news.ycombinator.com/item?id=5704485
UK health care is disgrace. Patients dying by starvation in hospitals corridors. Waiting period for some operations is months. Even simple xray took 6 hours of waiting at emergency. My polish friends in case of problems head to airport, not British hospital (insurance would cover it).

Also SS wolfs are on hunt and it is serious risk to bring children to UK doctor. GP broke hand to Slovak baby during vaccination, parents took it to hospital, where doctors called social services. Couple had to run from country to keep baby.

Also France with exceent health system is just few kilometers away.
I studied anthropology as an undergrad and learned that hunter gathers actually eat very little meat, so that link seems incorrect about eating lots of meat. Animal protein was/is at best something like 30% of their diet. A lot of us have had agriculturally active ancestors for many, many generations. I don't doubt that many modern diets are completely unhealthy, but this paleo diet stuff seems a bit silly. Although if the evidence is contrary to what I think, I'll be convinced. I'm not yet though. It just strikes me as the latest fad.
this, let's implement inheritance movement nonsense is crufts of Java and C++. (and only C++ can be forgiven, for performance reasons.)

Python has proven that a successful dynamic language should have duck-typing, via what called late-binding. you perform lookups on a live object. And this makes even more sense for javascript, which intentionally violates whole notion of typing.

In python, yes, there are such things like 'abstract base classes', but they're mostly for convenience, not forced like interfaces in Java. which means no one write codes like:

If not isinstance(obj, JavaicMentalMasturbationBase):
raise TypeError, "rogue object does not follow holy Javaland commandments: %r" %obj

instead, they exist that a framework provider can tell developers, on what are the possible objects that can be fed to their framework. e.g) to use our SessionInterface, your custom session has to provide get_session and save_sesion methods.

It seems like Branden Eich's original intention has came to fruition - create a sub-par language and name it after Java. sub-sub-par developers from Java will like the language, it even has closures! But I think he didn't expected Java idiots to force their idioms and harm the whole ecosystem - usually, enterprisey code monkeys were very silent in their cubicles.
How about a \0? :)
If this isn't obvious to your use case, there is no business reason for trying a new programming language and you are doing the whole business a disservice. I should never have to sell a new language or technology. If it's something the business needs, the uses will be obvious.
Delta Proofreader – share a diff of your text editting
Yes, this is the highest form of trolling. When all you do is ask a question. Where the unspoken answer undercuts some prevailing narrative.
http://running.competitor.com/2012/06/news/how-much-running-...

"Repeated extreme exercise or long-distance racing can cause a buildup of scar tissue on the heart, which can lead to the development of patchy myocardial fibrosis in up to 12% of marathon runners. The effects of “chronic exercise” can also include premature aging of the heart, stiffening of the heart muscles, and an increase in arrhythmias and atrial fibrillation."

"A 15-year observational study of 52,000 adults found that the highest degree of survival and health was found from running less than 20 miles per week, in runs of 30 to 45 minutes over three or four days, at about an 8:30 to 10:00 pace. The benefits decrease at amounts greater than that."

"Originally, it appeared the race-related damage was less severe in people who trained over 45 miles per week, but O’Keefe says that doesn’t prove to always be true."

As with most things, it appears that exercise is neither a panacea nor an unqualified good thing, but no doubt under-exercise is more prevalent than over-exercise...
Another issue is the lack of information. Most consumers in the healthcare industry rely on others (doctors, hospitals, pharmacists) to tell them what they need and the people giving advice having conflicting motives (helping the patient, making money).
And, if so, can we run arbitrary programs on it?
NTP ATTACKS: Welcome to The Hockey Stick Era
Was Y Combinator Worth It?
The thing a lot of people don't realize, I think, is that short bursts of intensity can yield a lot- and you DON'T need to be too obsessive about it. Just lift heavy stuff, and do stuff that gets your heart rate elevated for a few minutes- sprints, etc.

You don't need to micromanage everything. Some intense workouts here and there give you the energy you'll have to micromanage the stuff that you WANT to micromanage.
That's actually an interesting problem at work. How do you actually distance yourself from the project?
Only if working more hours means making more money. In my experience that simply isn't true. Your output at 80 hours isn't double. After a couple of weeks of that it's probably actually worse.
I hope you do realize that the errors are much harder to interpret for the non-native speakers? Where the native speaker understands, that the writer simply mixed up two words, the non-native speaker wastes a lot of time trying to parse the sentence without correcting the error. I've seen it happen many times with my colleagues.
I find that really strange as well. I haven't seen a Node library that uses exceptions for flow control before this, I wonder why they decided to start here.
Thanks for that! I'm building a small script which may evolve in a service and I was retrieving IP addresses using curl, this is way more clean. Thanks!
> Look at the greatest companies that have come out of Silicon Valley over the last several decades,

Facebook started on PHP and Google on C++.

The software innovations that these companies brought to the world didn't happen in the start up phase but years later, once they had grown sufficiently big that they had resources to devote to R&D in an effort to streamline and optimize their existing infrastructure.

I talk to a lot of startups on a daily basis, most of them are either built on Java or Ruby on Rails. I don't see any of them building their v1 with Clojure, Kotlin, Ceylon, Idris or Ermine or any technology created in the past five years.
I used to take long walks with my cigarettes sometimes. And I knew guys in the army who'd chug cigarettes before and after running.
http://running.competitor.com/2012/06/news/how-much-running-....

"A 15-year observational study of 52,000 adults found that the highest degree of survival and health was found from running less than 20 miles per week, in runs of 30 to 45 minutes over three or four days, at about an 8:30 to 10:00 pace. The benefits decrease at amounts greater than that."
This is getting to the point. The question I had at the end of the article was, would her father have survived if he had stayed in New York to be treated?

But I think that chart is ranking cancer deaths per 100,000 people in the general population. Death rate of people who have been diagnosed with cancer would be much more informative.
Be one with Flappy Bird: The science of 'flow' in game design
This false dichotomy is seriously getting annoying. If 60 hours is sustainable for you, do it. If only 30 hours is sustainable for you, do that instead. But stop imposing onto others what is right or wrong when there are so many factors at play.

Some of my most productive memories are summers studying and working for 12 hours a day, 6 days a week (= 72 hours). I didn't get tired, burned out, or anything. Another summer had me working at a company making "apps" for 40 hours a week, and it fucking drained me... despite taking far less intelligence and brain effort. I suppose that's not true, the brain effort was constantly justifying why I wasn't quitting haha.

Regarding friends/partners/etc. If the amount of hours you want to work isn't compatible with your partner's expectations... get a new partner. Seriously. Your priorities aren't aligned. I don't know what I'd do if my partner expected me to be home for dinner at 6pm on weeknights... Oh wait I do, I'd get a new partner, which I did. Now everyone involved (myself, previous partner, new partner) are very happy.

Finally regarding productivity vs. hours put in. Again, this is completely irrelevant if you're following the right metrics - results. Long hours obviously don't make sense if they're making you too tired to deliver results. If you're delivering but not in a sustainable way, well, you need to calibrate and lower expectations so you don't under deliver.

In short, people should optimize for long-term productivity appropriate to their goals. This, combined with your unique physiology and work circumstances, will dictate how many hours you should work. Oh and definitely exercise every week.
If you really want to figure it out you have to go back to WWII when wage controls were implemented. Employers had little way to compete for talent so for some reason the IRS said that various benefits like health insurance weren't taxable. Now your insurance changes with your job, rather than by your decision.

Imagine how often car insurance companies would try and deny claims and generally be shitty if their customers were locked in and couldn't switch unless they changed jobs.

I think that's one of the biggest problems with healthcare right now. The employer is the "customer" not the employees, so fuck 'em!
Startups suck or rock the way survivalist training sucks or rocks. If it's for you, you'll love it. If it's not, you'll hate it.
Not necessarily.

Let's apply that to the Herpes Virus known to be risk factor for cervical cancer. There is a greater than 1% you catch the disease.

But, the risk you die from it is lower, maybe in 10,000? (Even the people who research it probably would have a hard time giving an estimate within an order of magnitude).

So would a parent give it to their child at 1 in a million? Assuming every child is given this vaccine 10M+, there would be around a dozen known fatalities. Both parents and FDA would probably have big problems with this.

(Disclaimer: this a hypothetical using a known condition but with made up facts. I take no position on "the vaccine debate" here.)
grep -r meaning
That works, only if that company want to hire the best, instead of cheap.

I have build a career of be the "contrarian" in tech (Use Fox instead of VB, use .NET instead of Java, use Delphi instead of C++, use python instead of PHP, etc), and despite the argument here, is harder to sell. And that include the fact that the managers I have meet truly imagine that I'm the "Best of the best of the best!"

And that mean, no business. ROI be dammed, cheap sell better
I respect you and your work ethic, even if it isn't for me. I do have one thing I'd like to add a general comment on, even if it doesn't pertain to you:

> I don't force my team to do the same (and they don't).

For anyone who does work at all hours, before and after the traditional workday, I would just kindly remind you to be cognizant of the messages you send to your team if you're firing off emails and sending other work products every other night at 10pm and every morning at 5am. While you don't mind doing it for yourself, and externally you tell everyone you don't expect the same, it does begin to put informal social pressure on everyone else. This is particularly true if one or more employees start responding/emulating those odd-hour communications, out of drive or a sense of unspoken obligation, which pushes everyone else into a "I do this but you don't have to [but really you should wink wink]" situation. Even if people don't match behavior, it can lead to stress.

In short: be aware of the pressure your behavior can send irrespective of your words, in light of your position of authority.
Yeah, well those exercises are not at all appealing to me. Jumping jacks are not for overweight people. Crunches injure your back, etc. In fact, half these exercises look like they risk injury or look like they hurt something in the long run. If walking isn't good enough, I'm ok with that, but that's all I'm going to do.

I imagine most people here are in their young twenties and don't understand what happens to bodies when they get older. There's just no way any of these activities are realistic. Calorie moderation and walking should be good enough.
Another aspect to exercise is the mental health aspect. I find that 60 minutes of cardiovascular activity clears my mind and I often come up with inspirations to a problem I am working on after working out. I think regular exercise helps maintain mental acuity and balance.
You guys have drunk the Kool-aid.

Make it about snowmen. Forget that the program has stopped ZERO attacks. Forget that the opportunity for abuse is off the charts. Forget that our government is completely off the rails on this issue.
> Many Google services employ commenting/voting/rating etc, handling these in different, separate siloed systems makes no sense.

Why doesn't that make sense? Is a YouTube user naturally a Google Drive user? A Gmail user naturally a Blogger user? This seems to only make sense to Google, and not their users.

I don't know how much overlap there was between YouTube users and Google account users, but Google merged the two simply to boost the profile of Google+. People who wanted to comment on YouTube videos with their Google+ pals and their real identities were already doing that -- on Google+. The forcing of Google+ on YouTube offered no discernible benefit to YouTube users that could not have been offered while maintaining YouTube as a distinct social network.

As a Google+ user, the utter disregard towards YouTube and its distinct identity severely annoyed me.
>Of course, not everyone wants to see the web-application model become too powerful...

That's funny, since when the iPhone first came out, Apple claimed there wasn't gonna be a native SDK, and developers would just write all their apps in HTML.
Honestly, I think you can rarely make a convincing case based on technical merit or productivity promises alone. There are often good reasons to be conservative about technology choices.

I would try it from a different angle. If the organization wants people who are able to come up with fresh ideas, these will not be the same people who are content with using only very mature technologies. If the organization wants to cultivate an innovation mindset and be attractive for innovative people there needs to be space for experimentation. Who knows what comes of it.

Maybe that's the point where you get fired. If you were hired by an insurance company to maintain their 2002 style J2EE monster that's what's going to happen.
i use Fastmail it's really powerful and great webmail with mobile support.
Haven't noticed this recently but I did when I had a slower internet connection. But yeah, I was still on broadband when I was noticing the blank page problem.
a good enough simulation is indistinguishable from the real thing. So that question doesn't actually parse for me.
That seems reasonable, but running causes shin and knee injuries. I cannot run without injuring myself. When I did run I ran maybe a few times a week, at reasonable rates for reasonable distances, even using a couch-to-runner guide. My shins ended up hurting so bad for months afterward. Overweight people cannot run.

Also I love running, I just cannot do it. It always results in long term pain.
This seems like such faulty and backwards reasoning to me.

The experiment of detecting anomalies at the subatomic level is very interesting and that work should continue.

But, why must we say such anomalies lead to "we are living in a simulation"?

This seems like a fallacy of logic from reasoning backwards from the effect to the cause, with absolutely no connection between the two.

(Maybe people just want to hop on the "everything is a computer" bandwagon for marketing/publicity; it is tiring. At it's worst, it makes future tech assertions look kookish)
That article is so much fluff, and doesn't really say much in the way of hard science.

What he's referring to are Quantum Chromodynamics simulations, which in very general terms were born out of a desire to simulate the sub-atomic interaction of the nucleus of various elements, mapping nuclear reactions for weapons like the hydrogen bomb, when live fire tests were banned by international treaties.

https://en.wikipedia.org/wiki/Lattice_QCD

Numerical lattice Quantum Chromodynamic (QCD) calculations
using Monte Carlo methods can be extremely computationally
intensive, requiring the use of the largest available
supercomputers.

It's nice to contemplate the philosophical implications of being able to simulate the stimulated emissions of high-energy gamma ray emissions with high reliability and resolution inside a computer, but where's the meat of the article? It's just eleven paragraphs of "what if?"
Unless the question is to ask whether the universe is a poorly written simulation with edge cases that differ from the real thing. In that case, the question is very interesting.
But it does say some about where we should be focusing our marginal effort in terms of encouraging/discouraging behaviors for optimal public health. How much of a difference we can make in each is the other piece missing, but that would involve looking at specific proposed interventions.
There are plenty of jobs that ask for 40 hours and pay 120k, and they don't have that much more status. (I'm not saying they're common, but they're not that rare either.) If you're talking 300k+ for that 80/week, then it might be worth it at that point, if you can get the job.
Maybe we stuck in a strange loop?
I built the pgscript version of the some upsert example and use it as a stored function. I'm no pgsql pro, so sorry if this is total shit. Works for what I needed. This is controlling a list of access rules to different services for doling out access on the controller level globally, or down to an individual action inside that controller. If I rewrote this on newer PG, I'd store the permissions text as a JSON datatype.

CREATE OR REPLACE FUNCTION merge_privileges(key integer, data_controller text, data_permissions text)
RETURNS void AS
$BODY$
BEGIN
LOOP
-- first try to update the key
UPDATE privileges SET controller = data_controller, permissions = data_permissions WHERE user_id = key AND controller = data_controller;
IF found THEN
RETURN;
END IF;
-- not there, so try to insert the key
-- if someone else inserts the same key concurrently,
-- we could get a unique-key failure
BEGIN
INSERT INTO privileges(user_id, controller, permissions) VALUES (key, data_controller, data_permissions);
RETURN;
EXCEPTION WHEN unique_violation THEN
-- do nothing, and loop to try the UPDATE again
END;
END LOOP;
END;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
Nope, that's exactly what I use when I really need it, generalized to simple table/PK schemes.[1]

At first I wanted to try and do it within PL/pgSQL (e.g., from your SO link), but I couldn't figure out how to generalize it like I could with my the UPDATE ... INSERT WHERE. (I haven't really studied PL/pgSQL too hard yet.)

[1] - https://github.com/BurntSushi/nfldb/blob/master/nfldb/db.py#...
Just use Twitter's own API keys.
Same as with anything else in life, really. Take fitness for example- I hear guys bragging about how hard their routine is, how they train every day till exhaustion. That doesn't necessarily mean anything. Trying to constantly be busy with something is a form of laziness if you think about it. It means not doing the things that really make the difference- those annoying ones, the ones we always leave for later.
It is fallacious to say 'just because our ancestors lived that way, it is good'. There is seldom sufficient evidence to back up such claims. Paleo diets [1] are not necessarily good. Nor are paleo-lifestyles [2]. Even several claims of paleo-enthusiasts like Christopher McDougal ('Born to Run') and Jared Diamond are disputed and contradicted by research [3].

A posteriori, there may be 'evolutionary'-type reasons for say, our body's over-eagerness to eat sugary stuff [4]. That doesn't mean that you can attribute everything to evolution without sufficient evidence.

The truth is what it is: lack of exercise and poor diet both contribute to increased risk of diseases. You can appeal to 'our ancestors' lifestyle' as reliably as you can appeal to say, the benefits of 'biblical diet'. Both are identically fallacious.

(As an aside, there are several comments on different posts in HN that wrongly apply evolutionary principles to everything from coding practices to behavioral traits [5]!)

[1] http://www.scientificamerican.com/article/why-paleo-diet-hal...

[2] http://well.blogs.nytimes.com/2013/06/05/is-barefoot-style-r...
[3]http://www.theguardian.com/books/2013/jan/09/history-society
[4]http://www.nytimes.com/2012/06/06/opinion/evolutions-sweet-t...
[5]https://news.ycombinator.com/item?id=7050286
>>> 42
Ask HN: How do you search for a new job?
What are the smartest, most efficient ways to search and seek-out the ideal job?

To gather some broad percentages, I've created a quick (multiple-choice) survey. If you have a method not covered, please comment.

https://docs.google.com/forms/d/1fLn27cxee-icREdk3UrMhV4hFp8aMx1oyZuH5qMuRmE/viewform
Take a look at the technologies that were used to bootstrap all these startups:

- Google: C++

- Microsoft: assembly

- Apple: assembly

- eBay/PayPal: Java/C++

Like I said, there is simply no room in the early years of a start up to experiment with recent technology. I'd go further and claim that it's actually critical to use older, established technology to get your startup off the ground so you can focus on your idea without being hampered by technological glitches.
Clickable link: https://docs.google.com/forms/d/1fLn27cxee-icREdk3UrMhV4hFp8...
You have no idea why I gave the example I did, do you?
Startup Management 101
And then you lose the private key...
MtGox team can easily do arbitrage trading. They can buy a lot of bitcoins for half price at mtgox market, transfer them to bitstamp and sell (they admins, they have options to do it by hand). In a few minutes they can earn 100% from arbitrage trading.
I gotta wonder, is anybody at Microsoft really surprised that their decision to completely rework all of their 25-year standards of how their OS works has side effects of varying levels of bad in a huge number of relatively obscure use cases? This sounds like such a textbook example of why you don't do that.

I'm still running Windows 7 on my desktop PC. It has a mouse and keyboard. I have no intention of ever getting any kind of touchscreen, pen tablet, touchpad, or other alternative input device for it. I'll show some enthusiasm for upgrading when they make the mouse and keyboard first-class citizens again, instead of treating them like an afterthought in an attempt to get some traction on tablets.