85 karma · joined Dec 30, 2013 (12y ago) · 13 submissions
comment 7y ago · link · parent
Fun epub file trick: rename the file .zip, unzip -a yourbook.zip (double click unzip doesn't work on osx for me for some reason) and check out the html, css, images and xml of your book.
[1] https://en.wikipedia.org/wiki/EPUB [2] https://www.w3.org/TR/2005/WD-xhtml2-20050527/elements.html
comment 9y ago · link · parent
They went after quite a few politicians on both sides of the aisle and journalist's, the Podesta camp just happened to be the ones who fell for it.
https://www.secureworks.com/research/threat-group-4127-targe...
https://arstechnica.com/information-technology/2016/10/russi...
comment 9y ago · link · parent
After the title there isn't really any info about dietary fats but instead will read about how basically all this study may have found is that those doing "low fat diets" might end up eating really crappy carbs. I can't find the link to the study though so maybe they found something else..
I don't think people eating crappy carbs and drinking soda could really be considered "dieters" they seem more like "unhealthy eaters who happen to be eating low fat".
From the article: "Those doing so tended to eat far too much stodgy food like bread, pasta and rice, the experts said, while missing out on vital nutrients.
Participants eating the highest levels of carbohydrates – particularly refined sugars found in fizzy drinks and processed meals – faced a 28 per cent higher risk of early death."
Also their suggestion goes on to say a good balance is 35% of calories from fat which I would say is still fairly 'low-fat' of a diet IMO but I guess that's pretty subjective and I'm not a dietician.
comment 10y ago · link · parent
comment 11y ago · link · parent
I think the idea is a great one, it's unfortunate there isn't a better way (that I can think of atm) to do it, or like you said just some transparency on what they do with it. As simple as: "At the end of each day the encrypted mac addresses are completely erased from our system."
Seems like they do keep the info though, it says the Cincinnati airport kept it and used it for data analysis. In the end, I think this kind of thing most people will be okay with foregoing a bit of privacy for.
Edit: Interesting article on mobile MAC addresses down the comments: https://news.ycombinator.com/item?id=10097882#up_10098108
comment 11y ago · link · parent
console.log("Type the following in this order pressing enter each time you see a semi-colon: \n var expr = new Expression('x'); \n expr = expr.subtract(3); \n expr = expr.add('x'); \n console.log(expr.toString()); \n var eq = new Equation(expr, 4); \n console.log(eq.toString()); var x = eq.solveFor('x'); \n console.log('x = '' + x.toString());");
Very cool project by the way.comment 11y ago · link · parent
comment 11y ago · link · parent
I'd have to say that this book was one of the more gentle and concise introductory books I've ever read and so far I couldn't be happier that it was my personal introduction to JS and programming. It certainly set me leaps ahead in the JS section when I attended a web dev bootcamp. It is my personal go to for any of my friends who approach me about their interest in getting started with programming. Big Nerd Ranch books are a close second but I've only recently found them and begun reading them.
11.
Ask HN: Where can I begin contributing to Node, MEAN stack, JavaScript projects?
21 points · by heatish · 11y ago · 7 comments
comment 12y ago · link · parent
A set height and Overflow:scroll on the livechat div as well as the user list div seems pretty mandatory as well.
"Private" rooms seem to be getting the broadcasts from everyone or everyone is being placed into the same 'private' room, can't tell which.
I can open up as many 'user' views as I want with the same session id (on connection if session id exists load them into the chat else prompt them for the username).
edit: I see the validation now, checking if sessionStorage.username is undefined doesn't seem to be working though. Refreshing the page breaks as well, never triggers the loadhistory event that way.
It's cool, socket.io is pretty awesome, needs a little more work though