skysight-inc/HackerNews huggingface dataset:
The single most important skill I have ever learned is how to take care of myself.

When you feel like shit, you won't want to do anything.

When you lose your health, you won't be able to do anything.

(I've been a professional programmer out of college for over 30 years and I feel like I'm still 25, doing my best work ever.)

I remember the exact moment in college I was made aware of the critical need to do this. I was eating a PB&J on white bread in our kitchen when one of my fraternity brothers (a jock and a health nut) saw me and yelled, "Save your life! Save your life!"

"What the hell are you talking about?" I asked him.

"Don't eat white bread. Read 'The Save Your Life Diet'"

So I read the book and have never looked back. I have read many other health related books since then, but it's not their contents that made the difference, it's the mindset I developed that has.

College is the time when this appears to make the least sense. You can eat or drink almost anything, go without exercise, and develop bad habits and still feel fine. But it really is the best time to lay the framework for a lifetime of good health. It's the time when you'll be able to experiment and learn the most about yourself and what works and what doesn't. And make no mistake about it: this is stuff you must learn and practice; it does not come naturally.

I have and I'm so glad that I did. I have watched so many of my contemporaries gain hundreds of pounds and accept a lifetime of ailments as inevitable, while gradually retiring to the sofa. It doesn't have to be this way! Learn how to take care of yourself now or all the "skills" in the world won't matter when you most need them in the future.

Specifically:

- Learn how to eat.
- Establish your best lifetime exercise habits.
- Learn what to avoid (or accept in small doses).
- Adopt a healthy mindset.
- Learn to embrace fresh air & water & good sleep
- Most of all, do all of the above no matter what anyone else says or does.

I'm so glad I ate that PB&J on white bread at that moment in that place. Who knows what sofa I'd be sitting on with my TV & junk food & prescription meds instead of doing great work and hanging out with you guys here.
Top ThePBXBlog.com Articles of 2012
Tesla Expands 480-Volt Supercharger Network to U.S. East Coast
Since I cannot edit this post:

After lots of discussions in Campfire, we're working through all these conceptual issues as a team, and steps are being taken so that EVERYONE is happy with what happens with regards to this feature.
"Many of the Ruby version switchers work with '#!/usr/bin/env ruby', but rbenv won't in certain circumstances, so an optimization for it has been built into the framework now."

Incorrect. It is support for an enhancement that rbenv provides.

You often want to invoke an application binstub from another program such as cron, and you want to use the per-project Ruby version specified in the application's root directory. Other version managers require you to spawn a subshell and load the version manager into the shell or otherwise set up the per-project Ruby version environment, then `cd` into the application directory, and finally run the binstub.

rbenv requires an environment set-up step too—set `RBENV_DIR` to the application root—but provides a wrapper that eliminates the need for such gymnastics. When you change a binstub's shebang to `#!/usr/bin/env ruby-local-exec` rbenv automatically searches up the binstub's directory tree to find the right Ruby version.
The Way Things Work (the book) is amazing; the new version also includes chapters on computers and electronics. Not sure about that dated "multimedia experience," but the book itself definitely holds up fantastically well.
Its cool to see the OS starting to be configured specifically around certain applications rather than the other way around.

How soon until apps live in their own specific OS environments on USB sticks and my "main OS" is just a hypervisor to run them? The return of the cartridge. Everything old is new again.
For things like APIs, Rails has https://github.com/rails-api/rails-api, an excellent project.
"When someone says it's about the money, it's never about the money."
Calxeda finds a new market in storage
Rails is "heavy" because it does a lot of things that you'll end up having to recode by hand with any other "lighter" solution.
I’m a Tech Writer Thanks to This Calvin and Hobbes Comic Strip
Thank you for clarifying the exact circumstances, Sam. I don't use rbenv, I was going by discussions on the ticket and in Campfire. I was referring to that difference in the binstub, but maybe should have been more clear that that's a conflict with the enhancement and not the base features of rbenv.
The Shocking Truth About Wireless Coverage Maps
When I worked out the value of each visitor (on average) I thought about using AdWords. I really don't know much about it, so it will be a new area to pursue.

Unfortunately selling with Gumroad I can't track conversions effectively, so that may make page optimization more difficult.

I'll give it a try soon and report back the results (on my blog).
Seven Science Organizations Say VideoGames Cause Violence
Play trivia for Bitcoin
I think most Americans would break the European continent into "Europe" (aka continental W. Europe), the UK, East Europe, and Russia.

I think you're over generalizing now in thinking that most Americans know any other nations exist outside of America!

I don't think I have ever met anyone though that doesn't think of the UK as part of Europe. Note there is a very clear distinction between Europe and the European Union. UK is part of both, we are not part of the Euro$ experiment though. See, difficult to generalize already!
I just wanted to add a plug for a good physics class. A solid grounding in physics will help you think about any phenomena you encounter throughout your life.

I have been teaching middle school and high school math and science for 15 years. I have been asked all kinds of questions, high-level and low-level questions. I have been asked many questions that I could not answer; but I have been able to give every student a good idea how to start thinking about their question in a way that would lead them to a fundamentally correct answer.

Disclaimer: I was a physics major in college.
you are right about sorted() but I was thinking it could be useful if you don't have sorted arrays but need similar functionality and arrays are not too big so you don't need an iterator but I was really amazed with heapq.merge()

I appreciate your comment
On a similar note, if you just want to open a new Finder window to the current working directory (instead of using an existing Finder window), just use

open .

The 'open' command has tons of uses (open a file with a specific application, reveal a file in Finder, open a URL in the user's browser, etc.) and I recommend reading its man page.
Surface similarities are a poor measure of homogeneity.
The Chinese military will trust it and Chinese consumers will be coerced into using it just like all the other homegrown standards.
Gumroad doesn't give you meaningful metrics? Can someone recommend a competitor that does?
I would guess that JS runs on more platforms than the JVM, especially including WinRT and iOS.
"You’ll be able to download network (Showtime, HBO, NFL, etc.) branded apps which will display enhanced content as you’re watching your favorite show or team."

we'll see more of this i'm sure, but this has already been happening at a pretty large scale over the past year. there are already a small handful of SAAS businesses dedicated to providing this type of content to developers. NFL is not a network, but still an interesting point in that networks may not be the only ones entering the arena.
Because it's unheard of for fanatics to use, say, bombs?
Ask HN: Should you follow a large group of not so smart rich money?
The industry is going towards a direction that you know is a bad idea. A lot of money is being poured into so-and-so technology that you know is going to bite back - badly. However, everyone else is going that way and that's where the jobs are heading and where "investors" are 'spending' a lot of money there and the tech kool-aid is gushing out.

Would it be better for your career to follow them or to spend more time in an area where you believe is the future but nobody is spending any money there?
Windows RT ported to HTC HD2
How do you get your mail? HTTP? Telnet?
nodeJS is becoming a tool that is really necessary in
frontend development you often need a buildstep before
deploying code on the server ( minif , concat , ... )

Certainly there are minifiers like Uglify that are Node.js packages, but I wouldn't go so far as to claim that Node.js is now "necessary" for frontend development. I'd bet an awful lot that YUI Compressor, Google Closure Compiler, even things like jsmin.c are being used much more than similar Node.js-based tools.
Women in Tech - A Practical Need
The battle is not only between Backbone and Angular, there is place for more innovation. I prefer Angular approach (As you say: "Less code to write means less code to test means less code to debug means less code to maintain. It also means a lesser page-weight at the end of the day." ), but we are putting our passion to create a framework for complex applications (something in line with Angular but with better features) While still beta, we already have models that are doing type checking, better/maintainable code, correctness against asynchronous effects caused partially by the declarative style we love and simplify the code so much,etc: https://github.com/salboaie/shape/

I believe that Angular is still at the level of creating nice sites but not for big applications. We are trying to compensate JS weaknesses with features for big enterprise applications (boring CRUDs, sloppy and not so motivated developers for working on bigger enterprise applications).

We need all possible help from other programmers with code, tests, real life prototypes, help from native English speakers to create good documentation, to get infected with our passion and to speak about the framework to other developers, etc.

I know that it is a hard battle but it is a pleasure to work for such ideas anyway.
Actually, no idea why I grabbed onto morphine in that discussion.

Our protocols call for vecuronium, atropine, etomidate, succinylcholine. However, we do also use fentanyl if indicated to deal with tachycardia and ICP.

One other thing I noted in the original article was bemoaning the lack of pulse oximetry, "to assess if patient was exchanging oxygen". Treat the patient, not the number. If your patient is in respiratory distress but has 100% SpO2, treat the distress. If your patient appears /comfortable/ and /normal/ at 90%, go with what seems appropriate to their case.

(In fact, our MPD excludes Pulse Oximetry and Blood Glucose from BLS protocols on the grounds of 'treat the patient' - though my opinion tends to differ on the latter).
Venture capital didn't build that
"Apple has long had a small hold on the watch market thanks to its iPod nano, which is easily attached to a wrist band turning it into a full-functioning watch."

Err, for small, you mean 'infinitesimal'. I don't think I've seen anyone, ever, wearing a nano as a watch.
Would it not be so much easier to simply show images with some steganographic message ("I was displayed in SnapChat") in it, and just check for this rather than checking for "Screenshot-looking" pics?

Just sayin'
Overdosed on NyQuil? How much NyQuil did he take?

I have no idea how big a typical bottle of NyQuil is, but assuming it's somewhere in the ballpark of 10oz (we'll call it 300ml to make the math easy). NyQuil has 325mg/15ml, so our hypothetical 10oz bottle has ~6,500mg in it. That's certainly a respectable dose of Tylenol, but it's not likely to be fatal in a couple hours for an average sized adult...
If we have memory dump it is easy to find the key. Nothing new.

Defenses are - never sleep the damn thing or hibernate just power off. And make sure you do not have any DMA ports on the PC. And finally - hope you live in a country where the cops are not proficient in thermorectal cryptoanalisys.
Why Solar Installations Cost More in the U.S. than in Germany
Prior to founding http://www.getgumball.com/, I was impartial to most calls for more women in technology. Now I'm pretty convinced.
America/Americas is the entire land mass containing all North American countries and South American countries. It's just also slang for "The United States of America".
Well, yes. It's very likely that my TV's menu system is some variant of JavaScript.

But the important things support the JVM.
Better article, and current discussion, here: http://news.ycombinator.com/item?id=4970846
Personally, I think that this has less to do with having a transparent than it does with personal privacy. I think that the latter trumps the former. Government is supposed to be open because everybody funds it through taxes. A private individual should have the freedom to remain private if they so choose.
> we're planning to add lightning-fast searching

I don't see the point of discussing a mail client that doesn't have fast full-text search that scales to a million messages. If it wasn't designed in from the beginning, why should we have any confidence that it will actually work, when so many still fail to deliver? I use Gmail and Notmuch, both of which I think are best in class, yet are still only barely fast enough.
ESL is a good book, but it should be mentioned that it is a significantly more difficult read than the other suggestions. Not at all an introductory-level text on ML.
My school's exchange server also listens for IMAP connections. It worked fine for me.
Show HN: I learned to code in 2012 & built this Code Year clone
Dopamine Not About Pleasure (Anymore)
I also fail to see how people feel they [...]

This is the kind of thinking I was referencing. You don't see it because you're not in their shoes, that doesn't mean it doesn't exist. It's fine and all that people do disagree, that's just the context for my post.

If you want someone to see things your way, build a bridge over the gap in their misunderstanding. DHH's blog post its just preaching to the converted. That's why I asked the context and audience. Saying "Rails is omakase" is a lot like saying "git stores a directed acyclic graph of revisions" or "A monad is just a monoid in the category of endofunctors". Almost nobody gets it unless they already get it, and the behavior he seemed to be complaining about was critcism from the unwashed masses. It just doesn't fit. I asked who gives a fuck because what small sliver of his audience is going to both understand what he is trying to express AND take anything new away from the post?

My initial read was wrong, because (to stretch his abused metaphor) he is actually talking about the fact his chefs and regular customers really seem to think 2 tsp of spice in the soup would be better than the 1 tsp he is insistent on using. Which makes his post make even less sense. He could have have ditched the flowery prose, meandering critcisms of criticism and just said "This is important to me, I'm pulling rank."
I think the difference is more that with FOIA-style public lists, that people who will misuse your data can look you up directly, whereas the clerk at the DMV actually is a total stranger who if anything cares about you personally even less than a total stranger might.
The people who steal guns have never before had an easy menu from which to choose.

Many gun thefts are crimes of opportunity/passion like you say, but not all. Most violent offenders don't steal the guns they use to commit crimes they buy them from the black market. Promoting a black market opportunity is a very dumb policy.

An old (circa 1997) U.S. Department of Justice survey of prison inmates possessing a firearm during the offense that put them in jail showed that only 14% bought their gun from a retail store, pawn shop, flea market, or gun show. 40% acquired their firearms from family or friends. [0] The remainder were stolen or purchased on the black market. I can't say whether recent trends are any different, it's not my area of interest anymore.

The FBI compiles data on the theft of guns through the Stolen Gun File of the NCIC database [1]. I haven't had access in a long time but when I was doing research many years ago I found that between 1992 and 2002, around 1.7 million firearms were taken, representing a rate of 16.8 stolen firearms for every one thousand households. Of those stolen weapons, 687,857 were later recovered by authorities or by "guns for x" amnesty turn-in programs as of 2002. So that means more than one million of those stolen firearms were unaccounted for as of 2002.

[0]: Caroline Wolf Harlow, Firearm Use by Offenders, Bureau of Justice Statistics, November 2001 (sorry no link available that I know of)

[1]: http://www.fbi.gov/about-us/cjis/ncic/ncic_files
Gumroad gives awesome metrics and stats, they even track the source of each sale. The downside for me is that almost every sale is through my site, so the referrer is always the same (nathanbarry.com).

Since the entire purchase happens in a secure iFrame I have no way of knowing on my site when the transaction completes. So I can't use Visual Website Optimizer or Google Analytics to track the conversion.

I hear they are working on this... Otherwise they are wonderful.
If you want results in next 3 months then I suggest python.

I suspect Haskell will become a lot more popular in the long run though. (Maybe in 5 years time).

So go python. :)
Seems misleading to call this "ShotBlocker" when it doesn't actually block anything.
Said the man who was a fierce proponent of the Vietnam war without setting foot there.
It's as if someone talked about investing in the US, and someone felt obliged to blog about the differences between Illinois and New York and rural Idaho, Mississippi, Alabama and South Dakota.

I think he covered that point pretty well to be honest, you know, in the paragraph that starts off:

You may say, "Well, this is like the US with its different states." I would disagree because, while there is certainly a noticable difference between, say, New York City and a rural Mississippian town...

I agree that for generalized investment purposes you can most likely leave off former USSR states, but the genralisation that UK isn't part of the Europe talk is a little crazy. Either way, you'd be a fool to do any kind of business solely relying on some internet blog post.
I don't find it controversial when a company's management gives editorial directives to its employees. I expect CNN and CBS do the same thing even if we don't have copies of the memos. Certainly it's not difficult to detect an editorial slant in their news coverage.

Why didn't CBS fire Dan Rather immediately when Rathergate came to light? It's hard for me to imagine Fox easing out someone slowly after they'd left its reputation in taters.

>However terrible CNN and CBS may be (take for example their outright cheerleading for the second iraq war), they remain organisations devoted to covering the news.

I haven't seen much evidence of that, especially lately when they've used every possible angle after the Connecticut shooting in their full-throated advocacy of gun control.
Apple Macbooks and Computer Illustrations
I don't think you have support for the JVM on ipads , Xbox360 or Windows RT (so surface etc).

JS in theory at least should be supported on anything with a relatively modern browser.
The list is rather short for Germany's allies, with Italy, Japan, Hungary, Romania, Bulgaria and Yugoslavia.

Aside from Finland already mentioned, there is Thailand, Iraq and San Marino, who allied with Germany, but did not sign the Tripartite Pact. San Marino declared war on the Allies in 1940, but the Allies didn't declare back. These four were generally not considered that bad in terms of atrocities.

There were other countries aligned with Germany, though that was the result of being puppet-states.
Have you actually tried running on any of those devices?

I asked about them on a FirefoxOS post last week because I was trying to figure out which device to pick up and a Mozilla rep responded suggesting that I just try the emulator built for Firefox. She said that the builds that run on those devices are actually fairly out of date.

I'd love for somebody in the know or who actually has this up and running to provide some insight.
Probably not what OP was asking, but some of the most important advice a person can get!
An armed society is a scared society. If you think fear is better than freedom, I'm very sorry for you.

Thought experiment: a customer comes to your office to talk about your product. He's wearing a gun on his belt, and no uniform. Are you more or less comfortable telling him that you won't implement the feature that he says he wants?
I may have worded it in a slightly confusing manner. What I meant there is "what good would come from this map? Your whiny neighbors leave you alone and burglars may avoid you" then I meant to spell out the more negative side effects of such a map.
I was working on a project that would have benefitted greatly from being single page, but the SEO requirement kept us away from it. (Going the phantom.js route seems wrong and icky, though Meteor is going that route so my tastes may be wrong.)

There are enough places where things can be handled with jQuery, but it's not nearly as elegant. The question wasn't if we were a single page application, but rather that we had enough in-page interaction that using jQuery was unwieldy. I have ideas that are coalescing on how to handle the in-between stage, but I'm not quite there yet.
when Americans talk about "Europe", they're generally talking about Western Europe, not Eastern, and are excluding the UK too. They almost certainly aren't including Russia.

Likewise, most people across the world seem to use "American" and "U.S. citizen" interchangeably, even though Canada and Brazil, for example, are in the Americas, making Canadians and Brazilians American, as well.
Rand, in the email included in the post you wrote, "They're compensated fairly, IMO, but both deserve the titles they've been aiming for."

That's what led me to that conclusion.
"If I drive 1000 km to the south I crossed at least 4 borders and heard at least as many languages on the way. So the proper comparison would be to compare texas to mexico or any middle american state."

If I drive 1000 km to the southwest, I'm still in Texas... :)
If I wish to drive to the nearest ski resort, I spend most of the drive time getting across the damn state! If I want to hear about 40 different languages, I just go to the nearest shopping mall or to the cafe in the next building.
1. Managing my health. Includes eating healthy. Refer to the post by edw519 in this same thread.

2. I know how to sell. How to really do it under pressure.

3. I know when to stop and smell the flowers.

4. I can take apart/fix anything and put it back / fix it with no issues. From deep fryers to washing machines and back to motherboards. I can fix it.
Even "Western Europe" has a range of very different cultures.
If the cost of receivers comes down sharply, devices might try to use as many networks as possible to get an accurate fix as rapidly as possible. I can definitely see GPS-Beidou-Galileo together.
USB sticks? I'd rather just have everything pulled over the network and cached on my SSD :)
This was my initial impression too, but I got the feeling from the article that the Chinese government probably really don't care if no one else uses it, it's for use by their own military and as a means of "protection" against thew US shutting off GPS services to them - highly critical if they want to build those drones which rely on GPS.

As an aside, how does the US government make money from the GPS? As a consumer, I pay no money, so I can only assume the GPS chip manufacturers pay some sort of royalty fee?