Better HN
topnewbestaskshowjobs
Log inSign up

sghodas

111 karma · joined Sep 10, 2013 (13y ago) · 30 submissions

Submissions

comment 10y ago · link · parent

The 1-indexed arrays can sometimes be nice, but I've run into bugs so many times when translating the code into a language with 0-indexed arrays.

comment 10y ago · link · parent

Not 100% sure, but I think the access to contacts is so that you can split ride fares with other people.

comment 10y ago · link · parent

Yes, they're both text editors, but they're completely different classes of text editors. MS Word is also a text editor, but it would be ridiculous to fault it for not having a CLI. It's nice that Emacs and Vim have GUI modes, but I doubt they're the primary way users use those editors. Emacs/Vim and VS Code/Sublime/Atom fulfill different needs and preferences.

I'm curious about your answer to this: would you argue that MS should combine Word and VS Code into one text editor?

comment 10y ago · link · parent

You're asking for VS Code to be a completely different product. VS Code is a GUI text editor like Sublime and Atom. There's no reason for it to run in a terminal. Vim and Emacs are classical CLI based text editors. Are you asking for an alternative to those?

comment 10y ago · link · parent

You're still missing the point. Users who know little to nothing about the law NC passed will be made aware of the issue. Some of those people will take action against the lawmakers and/or people that support the law. Overall awareness of the issue will rise and hopefully cause a real discussion.

comment 10y ago · link · parent

Really? I haven't found that to be the case. Everything that I've set to specific privacy groups (me only, friends, etc) has stayed the same.

comment 10y ago · link · parent

Technically it's not holography, but using the term is the simplest way to convey the idea to the average person. What would you suggest calling it instead?

comment 10y ago · link · parent

That's also true for most major breakthroughs like this one.

comment 10y ago · link · parent

That's exactly the problem the parent comment suggests we focus on fixing. Once a library is published, npm shouldn't allow anyone to use that name even if the library is pulled.

comment 10y ago · link · parent

I think you're seriously overstating the issues with Xcode. There are bugs and annoyances, but things have gotten better over the years. It's not as great as Visual Studio, but it's far from horrible. Remember, we live in a world with Eclipse.

comment 10y ago · link · parent

I'm studying for these boards right now, and these equations do show up. However, it's not the curriculum (at least not at my school) pushing the rote memorization of drugs, side effects, contraindications, microbes, etc. It's the board exams. A huge component of the exams is raw memorization of random facts that have no relation to anything (did you know rifampin makes your tears turn orange?). Unfortunately, there seems to be no incentive for the board examiners to change their exam.

comment 10y ago · link · parent

That's not how type 2 works. The resistance is developed for unknown reasons and it continues to build over time. For a while, your body can compensate by producing more insulin to overcome the insulin resistance of your cells. You don't become symptomatic until your cells are almost completely insulin resistant. Your pancreas will continue to make insulin at crazy high rates, but eventually the cells that make insulin will die off (presumably from hyperactivity). This is the point at which type 2 diabetics need insulin.

As far as cutting sugar out of your blood - you can't. Your body tries to maintain 80-110 mg/dL of sugar in your blood. You NEED sugar. It's energy. In fact, sugar is the ONLY energy source your brain can use. The problem is when you're a diabetic, your body's cells can't take that sugar out of the blood to use it for energy. That's when you try to minimize your sugar intake, because if you don't, you can do irreversible damage to your nerves and vasculature.

comment 10y ago · link · parent

I saw this posted a couple years ago, but it was a great guide to starting out with git: http://pcottle.github.io/learnGitBranching/

comment 10y ago · link · parent

Hell, I'm only in my second year of med school in the US, and I wouldn't recommend young people go into this profession.

comment 10y ago · link · parent

You'd rather share your phone number or home address than your email address?

comment 10y ago · link · parent

There's an interesting (although controversial) correlation between legalized abortion and decline in crime for that time period. https://en.wikipedia.org/wiki/Legalized_abortion_and_crime_e...

comment 11y ago · link · parent

The positive predictive value for the prostate-specific antigen test for prostate cancer is only 30%. This means that only 30% of people who test positive for elevated levels of prostate-specific antigen actually have prostate cancer. This is an intrinsic problem with testing for prostate-specific antigen not with Theranos' testing.

comment 11y ago · link · parent

You're right - there's no one size fits all solution. I'm glad that phones have gotten bigger because they fit my use cases, and based on their popularity I'm definitely not alone. I am surprised that 4" phones have been lost - especially by Apple. Despite the low sales of the 5c, I figured we'd still see a 6c to satisfy those not wanting a bigger phone. It seems like a decent number of people are refusing to upgrade to a newer iPhone, and I'm not aware of any good, modern Android phones at 4" for these people to switch to.

comment 11y ago · link · parent

I have the 6s+, and yeah I can't use it with one hand, but I'm okay with that because I love having the bigger screen so much more. I can see a lot more while typing, watching videos is a better experience, and I've noticed myself using the bigger phone (I used to have a 5s) in new ways a lot more.

Before, I would avoid doing some tasks on my phone like taking more than a few lines of notes. The bigger screen feels less cramped and I don't feel annoyed while using it. In fact I wrote this comment out on my phone. I've never done that with any of the smaller phones I've had.

comment 11y ago · link · parent

I skimmed that study, but it looks like all the samples they tested came from the same guy, and they didn't actually test putting people in MRIs.

comment 11y ago · link · parent

Joshua Foer (author of Moonwalking with Einstein) has a great TED talk too. https://www.youtube.com/watch?v=U6PoUg7jXsA

comment 12y ago · link · parent

For some reason the article didn't link to the actual Medium post: https://medium.com/@cshirky/why-i-just-asked-my-students-to-...

comment 12y ago · link · parent

The article directly addresses your exact point immediately after that example:

"Readers can't be shown everything that happens to a character, or novels would be 800 pages and cover 15 minutes in the protagonist's life. Sometimes adverbs help to move the story along through summary or time compression. But for young writers, learning to do without them is a good first practice."

comment 12y ago · link · parent

According to the linked article, Air France and some other foreign airlines were the only ones to avoid Ukraine.

comment 12y ago · link · parent

Sweet! Love the use of unicode strings for suits.

comment 12y ago · link · parent

There's a plugin called XVim for Xcode that provides the best of both worlds IMO.

https://github.com/JugglerShu/XVim

comment 12y ago · link · parent

That's a good point. It doesn't appear to be particularly dangerous at low levels - just unpleasant.

comment 12y ago · link · parent

Its solubility maxes out at 3%. ~5000 gallons in a river is hardly enough to get to those levels. The news is reporting that the concentration is about 3ppm. 3ppm of 4-methylcyclohexane methanol is about 0.021g of the chemical in 1L of water. The lowest LD50 for ingesting the chemical I've found is 800mg/kg. This means you'd have to drink 3086L of water for it to be lethal. The LD50 for skin contact is at least double the ingestion LD50.

That being said, I'm not going to take the risk, and I've only used water out of water bottles since this started.

comment 12y ago · link · parent

Actually, it's not very water soluble at all. It's a large cyclohexane that's relatively non-polar (the first comment in that reddit link agrees). Approximately 5000 gallons of the chemical spilled into the river, so there likely isn't very much of the chemical mixed in with the water. Most likely not enough to seriously harm anyone.

30.

· discuss