1,490 karma · joined Feb 18, 2014 (12y ago) · 369 submissions
comment 11y ago · link · parent
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
comment 11y ago · link · parent
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
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
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
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 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
main.js:460
$.ajax({
type : "POST",
url : pageContext + pathPrefix + "/turnOffiMessage",
data:data,
success : function(data, textStatus, jqXHR) {
...comment 12y ago · link · parent
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.