HN user

heatish

85 karma
Posts1
Comments12
View on HN

I think ePub's can handle everything you mentioned, ePub's are just XHTML, and a subset of css [1]. Not sure about callout boxes, I don't know exactly what subset of elements are available as I've never written one, but everything else you've mentioned looks to be available [2].

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

There's actually quite a lot of evidence that it was a politically motivated spear phishing campaign from FancyBears, which is most likely from Russia. So technically yes there's no definitive, smoking gun proof but "no proof for this claim" seems to be a bit dismissive of some glaring hints. It certainly wasn't just a "generic phishing page" or guessing of a weak password.

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...

Am I missing something or is there not a single link to the study in this article? Didn't see it anywhere on mobile.

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.

When build tools run an uglifier on your code this is what the variables comes out as. Takes all your logically named variables and shortens them like a-z. They can make it "beautified" by un-minifying (not all on 1 line) but you can't get their original variables name without the original source.

I've always wondered about the design choice for the shape of batteries. It seems like the shape would indicate the current is flowing the opposite way than it does. Something about the positive terminal just says to me "I'm shooting electrons this way"

Yeah that same line made me laugh a bit as well. "Your non-identifying, SUPER personal, burned onto your phones hardware, is never going to change Mac Address is recorded as you walk by."

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

For the less dev tools savvy, you could leave those top instructions on solving 2x - 3 = 4 in a console.log in your code. So once they get dev tools open they see some more instructions for the next step.

  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.

How effective would per-IP rate limiting be for these new types of JS attacks though? As I understand it, it's just the sheer number of requests that they can get sent to the server with these types of attacks rather than say a botnet spamming requests over and over from the couple hundred PC's they have under their control or a HTTP POST attack where they trickle in the body of the request to hang up the server.

Eloquent Javascript was the first programming book that I ever worked through online and subsequently went and bought because I was so happy with it. I was young and playing Diablo 2: LoD and stumbled upon some bot that would let me do Mephisto runs for loot all night, I was amazed with it and went back to the forums where I'd found it and did some reading, this was the book that they recommended for anyone who was interested in learning some programming.

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.

Does seem a bit broken, some simple validation on names and rate limiting/checking for duplicates on messages will help from people spamming and trying to get script tags to run.

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