Better HN
topnewbestaskshowjobs
Log inSign up

nmjohn

1,490 karma · joined Feb 18, 2014 (12y ago) · 369 submissions

[ my public key: https://keybase.io/njohnson; my proof: https://keybase.io/njohnson/sigs/PEJkqcblsXsrSziMB_Icwhdl9BHXHsj3pODPfhhTxvY ]
Submissions

comment 11y ago · link · parent

Sometimes - but they ARE metabolized through the same pathway.

Essentially:

    Glucose ->[0] pyruvate ->[1] acetyl-coa -> TCA cycle
vs

    Fatty acids ->[2] acetyl-coa -> TCA cycle
The TCA is cycle is the actual main energy generating step.

Other times fat absolutely is converted to sugar. It all depends on the metabolic needs of the body and one building blocks are available, and what protein "workers" are able to use the ones that are available.

For example, fatty acid synthase converts acetyl coa back to a fatty acid [3].

[0] Glycolysis: http://en.wikipedia.org/wiki/Glycolysis

[1] pyruvate dehydrogenase: http://en.wikipedia.org/wiki/Pyruvate_dehydrogenase

[2] beta oxidation: http://en.wikipedia.org/wiki/Beta_oxidation

[3]: http://en.wikipedia.org/wiki/Fatty_acid_synthase

comment 11y ago · link · parent

You should take a look at stock market returns over the last few years, this year included.

If you purchased shares of a s&p500 index fund at just about any point in history, your net gain will be well over 5% annual growth.

Even if you bought in at the peak of 2007 - the worst time you could have bought in recent history, before the ~35% decline in 2008, if you are still holding on to it today, it's about 6% annual growth.

> by what happened in Japan post 1991 1991 Japan and 2014 United States are no where near similar enough to draw that conclusion. I agree that ZIRP forever is not a good policy - and at some point in the next decade we will feel the results of it, but forecasting three decades of economic stagnation is just silly.

comment 12y ago · link · parent

> ~x.indexOf(…) would be “starts with” rather than “contains”, for negative numbers such as -2 (from ~1) are truthy.

Nope, here's an example you can run it run in your console:

    function contains(needle, haystack) {
      return Boolean(~haystack.indexOf(needle));
    }
    
    var haystack = "The quick brown fox jumps over the lazy dog";
    console.log(contains("The", haystack));
    console.log(contains("dog", haystack));
    console.log(contains("brown fox jumps", haystack));
Here are three potential cases:

    haystack.indexOf('dog') = 40 -> truthy
    ~40 = -41 -> truthy
    
    haystack.indexOf('The') = 0 -> falsey (WRONG)
    ~0 = -1 -> truthy (FIXED)
    
    haystack.indexOf('nope') = -1 -> truthy (WRONG)
    ~-1 = 0 -> falsey (FIXED)

comment 12y ago · link · parent

Which is why I only use it on solo projects.

That being said, ~indexOf is hardly tricky. if(string.indexOf(term)) is far trickier, because if you didn't realize it returning 0 was a positive result, you easily could write it without a -1 check and not notice it during testing if no values had an index of 0. Then months later you would have a hell of a time debugging it because it would look so innocuous.

On the other hand, by including the tilde, you ensure two things: 1.) Future developer knows what it does and has no problems. 2.) Future developer hasn't seen it before and goes straight to google to see what it does - at which point they learn and now will recognize it in the future.

So at the end of the day, by using a ~, it is explicitly clear that indexOf() should not be used directly as a coerced boolean, and it ensures that anyone touching the code will either know or learn why.

comment 12y ago · link · parent

> This is an experimental technology, part of the Harmony (ECMAScript 6) proposal.

It only works in firefox and if I remember correctly, it is no longer part of the latest ECMA 6 spec.

comment 12y ago · link · parent

Learning about bitwise operators (and everything they entail - so binary in general, endianness, etc) was without a doubt the most beneficial thing I've ever done for my programming abilities.

It was a complete eye opener to how computers work on a far more fundamental level than any other aspect of programming had previously revealed to me.

For anyone without a traditional CS educational background, if you don't know much about bitwise operations or binary, I highly recommend sitting down and spending a few hours exploring them - it will make you think about certain aspects of programming in a very different manner, which - at least for me - resulted in writing much better code.

Aside: While the double tilde is handy, I use the single tilde operator far more often in javascript. If you precede an indexOf statement with a tilde, it essentially turns `indexOf` into `contains`.

    if(~someStringOrArray.indexOf(searchTerm))
It works because indexOf returns the index the term is found at, or -1 if it isn't found. This means 0 is actually a successful result, but Boolean(0) = false. But bitwise NOT will clear all of that up:

    ~(-1) = 0 (evaluates as false)
    ~(0) = -1 (evaluates as true)
Edit: I'm not suggesting everyone go off and use ~indexOf all the time - I was simply sharing a related javascript bitwise "trick".

comment 12y ago · link · parent

You can get a dedicated gigabit line for like a grand a month - possibly less - which if you max out 24/7 gets you like 300 terabytes of bandwidth = $0.00333 - and one gigabit line is hardly wholesale.

comment 12y ago · link · parent

> in my opinion Node has way too many issues to run in money-making scenarios.

You can say that about a lot of languages other than node. How many billion dollar companies have their software written in PHP - a language that many people would agree has far more glaring issues than node.

My point, is that I believe your comments miss the larger picture. There is far more involved with deciding which language to build a product with than "which language is best."

I don't disagree with you about Go being a great language - but for most companies, it is not even remotely practical to use. Hiring talented Go developers is hard because there are so few. Their current employees may or may not know Go, what do you do about that? Etc.

comment 12y ago · link · parent

$200/gb of bandwidth is expensive for anybody!

comment 12y ago · link · parent

It's not as nefarious as you think, I didn't dig into deep enough to know why they are using the empty iframe to submit forms to, but the send button submits an ajax POST request

  main.js:460
  $.ajax({
    type : "POST",
    url : pageContext + pathPrefix + "/turnOffiMessage",
    data:data,
    success : function(data, textStatus, jqXHR) {
    ...

comment 12y ago · link · parent

App gives an error on facebook login - I sent a link to a screencast of what happens to the email in your profile.

That being said, why use facebook login? I rarely will use a site which requires a facebook login.

comment 12y ago · link · parent

I think you're going to get a range of answers simply due to the diversity of people and their personalities.

If you crash and burn miserably due to factors that you realistically could and should have known about and been able to control, your VC's probably won't be open to any new ideas from you - keeping in touch and a personal relationship would depend on the people in question and how much they like you as a person.

If you gave it your best and failed for reasons outside your control, or because of things realistically the VC couldn't expect you to predict, it's more likely they would be open to future endeavors.

At the same time though, you are going to have some VC's that if you fail, that's it, end of relationship - many probably have more tact than just deleting your phone number and ignoring you, but in their minds you will become a much lower priority.

Conversely, I've seen some people who just have a great personality that form a legitimate friendship with a VC that no matter how bad that person failed (this instance was quite bad) the VC still loved this person.

tl;dr: People have very different personalities - it's all dependent on the nature of the specific relationships in question.

comment 12y ago · link · parent

I completely agree - but I love the fact that they are transparent about exactly how long they can operate without donations.

comment 12y ago · link · parent

Is a footnote needed for everything? From the author's perspective, I think it was assumed that it is well enough known to not need a citation.

And if someone didn't know it, googling "first ecommerce transaction" brings up multiple hits on the first page confirming it.

comment 12y ago · link · parent

You've likely been downvoted because you misunderstand how it works.

Only idiots are communicating their addresses unencrypted - PGP encryption for addresses is standard. So the only way for your address to be matched to your dark net activity is if a.) the person you are buying from gets busted and b.) the person you're buying from doesn't destroy the address after they ship the package.

comment 12y ago · link · parent

I'm curious what needs can't be met by using a mac.

My desktop machine runs linux - currently it's ubuntu, but it over the last ~6 years it's also been centos, debian, and arch. I love linux.

Two weeks ago a started a new job and got a macbook pro. I love it - and am completely surprised by it.

I have not run into a single thing that I could do on linux I can't do on osx.

comment 12y ago · link · parent

If you want it to change, develop something to change it.

I'm not aware of a single technology with a goal to fundamentally upset any of the things you listed.

Personally, I'm satisfied with javascript development. Is it perfect? No. Are there lots of things that could be done better? Absolutely.

But it frustrates me how many people complain about how much it sucks when there are no projects (with any support) attempting to really change things. If my opinion of javascript is wrong and it really is that bad - I'd think there would be more of a movement to move away from it.

comment 12y ago · link · parent

So you are arguing java and activeX are better than web apps? Because that is the comparison you are responding too.

The 1/100 of a penny worth of electricity that analytic scripts cost you a year is worse than the security nightmare of java applets and activeX? Come on.

comment 12y ago · link · parent

And you can get hit by a bus too - adding 20 years to lifespan is in terms of the aggregate not the individual.

comment 12y ago · link · parent

Depends on the situation.

An anonymous person contacts you - how do you get their key from a public authority? There is no impersonation attack possible in this case.

Someone claiming to be Edward Snowden contacts you today (now that he is longer anonymous) - in this case yes, the author just including their key would not necessarily be secure.

comment 12y ago · link · parent

The guns drawn are the least of my concern [0] - officer safety is important too.

My concern is the fact they are threatening him for wanting his rights maintained and due process followed.

[0]: I'm not saying it's not an issue, just not what I'm focused on in this comment.

comment 12y ago · link · parent

> A group of agents then charged past him into the doorway. Lindquist was briefly handcuffed as they entered the unit, with guns drawn. Agents then told him that if he insisted on a warrant, they would take everything print-related in his shop as a precaution to keep him from printing further counterfeit apparel.

This absolutely infuriates me. I don't care how much of the law he is breaking - you are threatening to take away a man's livelihood because he was making sure due process was being followed. The fact that is remotely legal is absurd. Those agents and their supervisors should be fired.

comment 12y ago · link · parent

> "The fact that they are persisting the key just for the password hint functionality is compromising the security of that product completely."

Ugh. How this gets through the hands of so many talented engineers boggles my mind. It's easy to just blame the project managers, but at some point don't we have a responsibility to say no, this is a terrible idea and completely compromises the premise of the product?

comment 12y ago · link · parent

They aren't always legal - or rather they rarely hold up in the court of law. (USA at least)

What I've been told by my lawyer is basically the only time it will hold up is if you can prove that it was violated and your company was significantly harmed as a result (ex: You took 50 clients with you to the new firm). And the time period was reasonable (ex: 5+ year non-competes are likely never held up as the time period is absolutely unreasonable in almost all cases)

Additionally, it has to be worth it to the company to actually go after the person who violated the agreement - it is civil not criminal.

Which in the end results in a system where they are hardly ever enforced if violated and serve more to scare people from violating them then actually being legally enforceable.

comment 12y ago · link · parent

>It's obviously not the truth. If someone stricken with Ebola makes it into a crowded location, then the chances of several people getting it will be high. This is obvious given the fact that a single Ebola patient infected a trained worker with protective gear. Extrapolate that out to an Ebola victim in the middle of Times Square, puking, coughing, sweating, etc.

Think for one second here. If someone makes it into a crowded location and starts puking, do you think people are going to move towards the puking person or get the hell away? Whereas in a hospital if a patient starts puking is a nurse going to move towards the puking patient, or away?

But at the end of the day this is 100% speculation. You are not qualified to have an opinion on the matter and neither am I. This is why I trust the doctors and scientists who are far more qualified to have an opinion when they say there is - for the time being - nothing to worry about.

comment 12y ago · link · parent

> I'm not sure what to think with the data I have available.

That usually means find more data!

The truth is probably somewhere in the middle - but for someone in the US who doesn't work in a hospital, at least for now, you have nothing to worry about. If it starts spreading in the US, that is the time to start worrying (as an individual who doesn't work in the industry)

I'm not saying doctors and scientists in this field shouldn't be worrying or doing anything about it - what I'm saying is if you are not one of those people and you're not traveling internationally, there is no logical reason for you to even think about it for the time being - things may change for the worse, but until then it is unnecessary worry for something you have absolutely no control over.

comment 12y ago · link · parent

> Why do people keep saying it's a fairly difficult disease to spread

Because that is the truth.

When someone is working in close quarters to the disease they are substantially more likely to catch it, no? You can wear all the protective gear you want, if protocol for taking off the gear is not followed 100% every single time, you open yourself up to infection. Combine that with fatigue, mistakes happen unfortunately often.

If you are just out walking around coming into normal contact with people, it is incredibly difficult to spread.

comment 12y ago · link · parent

I'm curious where you're getting any of that information from the linked page - I very well may be missing something, but you are making a ton of assumptions [0] whereas I was giving them the benefit of the doubt until more information is known.

Additionally, there are uses extending beyond cancer that are much more "binary" in nature which is where I see the value.

[0]: * They have a sample prep that likely involves several chemicals that no layperson should ever work with

* what they already do, a blood draw and the hospital lab will do the rest.

comment 12y ago · link · parent

> Time should be on the x-axis. Independent variables on the x-axis and dependent variables on the y.

The graph is correct - the independent variables in this case are the number of items in the array (the x axis) and the library being tested (each line).

The dependent variable in this case is time - which is why it is on the y axis.

1
789
13