skysight-inc/HackerNews huggingface dataset:
I was a terribly good sleeper, up to some point a year and some months ago. Since I had travelled, I thought I had a jetlag. But the insomnia continued for months. Then I started to change things:

- Change my bed time from 24:00 to 23:00. Whenever I don't sleep immediately, my mind doesn't go into the 'yet another night' train. Instead it changes to 'there's still plenty time to sleep'. On the upside, when I sleep quickly, I get plenty of sleep compensation.

- Be regular. During the weekends I try to get to bed at most an hour later and get out of bed an hour later. I notice may body gets accustomed to that schedule. I get tired at the right time, and wake up at the right time.

- I stopped reading news sites (including Hacker News) after 21:00. They get me exited and put my mind into overdrive.

- I stopped using a computer or mobile phone after 22:00. Lots of research has shown that prolonged screen use reduces melatolin production.

- End the day with some simple activity that is only mildly interesting. E.g., if you are not too much into sports, watch some boring sports on television.

- Have some melatolin tablets at home, just in case you have some really bad nights. It's said that they do very little harm.

- Have a second place in your house to sleep (e.g. a couch) if you have a partner. You can avoid keeping him/her awake as well.

- Stop worrying about sleep. It's hard, but it helps.

Since I made these changes, I sleep well 95% of the time. The other 5% I still sleep enough ours to make it through the day.

With respect to the Scotch, as much as I like Scotch, I would avoid it. It helps some, but it can quickly turn into an addiction.
A Place to Look | Webupon
They already did: http://www.w3.org/TR/DOM-Level-3-Events/#keys-keyvalues

No-one listened to them.
Does Open Conflict With Making Money?
It's all subjective but being retro doesn't mean something can't be ugly.
You've done a great job, and I am in no way intending to be critical. My only concern was the claim of accuracy. It is an outstanding simulation of the original, and I commend you for your work on it.

However, leaving out the bugs, for example, makes it not accurate. As for the timer, I don't see how you could guarantee the frequency in a javascript VM. It could be similar (by continually testing how inaccurate it is and adjusting the frequency of subsequent iterations), granted, but this is not accuracy (it is emulation). As for memory, etc, many of these older games had "death screens" where a buffer overflows and simple crashes the game, preventing you from continuing past a certain point - that too would be very difficult to accurately model in javascript. The list could go on and on. And this is in no way critical of you, or what you have done - it is simply statement of fact about accuracy!

As an aside, Billy Mitchell (the first person to ever get a perfect pacman score) was one of the stars in the movie The King of Kong.

Again, I think what you have done is AWESOME. But it is not accurate (and likely could not be).

Urghhh... I wish i'd never posted anything now :(
One of the racks fell over onto the other racks, like dominios.
Can anyone who is more law savvy than I answer this question for me: Does a European company have to put the cookie message on their site if the site is hosted in the US?
Good luck to them. It sounds like a difficult situation to be in.
You might try naming your functions in Chinese. There's evidence showing that people take advantage of the face recognition machinery of their brains to read Chinese[1].

Coincidentally, native speakers of tonal languages (Chinese being one of them) also seem to have a higher chance of being pitch-perfect [2].

[1] Man-Ying Wang, Bo-Cheng Kuo, Shih-Kuen Cheng (2011). "Chinese characters elicit face-like N170 inversion effects". Brain and Cognition 77 (2011) 419–431.

[2] Deutsch, D., Henthorn, T., Marvin, E., & Xu H-S (2006). "Absolute pitch among American and Chinese conservatory students: Prevalence differences, and evidence for a speech-related critical period". Journal of the Acoustical Society of America 119 (2): 719–722.
I can recommand Poker, although not specifically to programmers. I got more general life lessons out of it.

You learn to take decisions with vague information by approximating and using basic math. As TomGullen says, the necessary math is neither hard nor is it much. To art is to adapt your numbers to the real world situation. Example: With an open-ended straight draw at the flop, you chances are roughly 1/3 for a straight in the end. First, you need at least two other players. If you have one other player, you fold, because it is not profitable. With three or more other players you keep playing. With two enemies it gets interesting, because you need to factor more information in, to decide. What is your position? Did someone raise before the flop? How did your two enemies play their hands before? What is your image at the table? ...

Another lesson i got from poker is to control my emotions when I'm on a streak. If you are on a winning streak, you still must fold when the math says the expected value is negative. On a loosing streak you still must go all-in if the math says so. No peaking at the flop, when your initial hand is too bad.
IANAL but I think if you are paying them and they are doing what you want, this comes under Work For Hire.

See: http://en.wikipedia.org/wiki/Work_for_hire
Amazing low fares - courtesy Machine Learning
And so has begun the typical symptoms of those that make a one-hit wonder in any field...
He might be right but he still went about it in the wrong way.
Offer HN: I will work for free tomorrow in Berlin
I'm currently in Berlin, visiting here as part of my Europe trip. I remember how much this post (http://news.ycombinator.com/item?id=3216323) came across as an excellent way of meeting with people in the startup scene, so I'm offering the same with identical terms.

Tomorrow I'll do anything for any Berlin startup that would have me. I'm an all around developer with a front-end focus, have been mostly working with JavaScript/CoffeeScript/Python/MySQL. I built the online map builder Mashupforge (http://mashupforge.com) so I'm particularly interested in online mapping.

Even if you don't have anything for me to do, I'd love to meet up for half an hour and chat about startups/Berlin over coffee/beer.

Send me an email! mehmet at mashupforge dot com
You know, I always hated the echo-chamber many blogs became, blogging endlessly about what other people had blogged and not giving any thought to producing original content. I mostly steered clear of twitter, because my impression is it's even worse there. And I don't think I've ever in my life followed a "related stories" link.

In the days of print we managed just fine without pointers to other works. If you were very lucky you got a bucket of citations at the end, but most people skipped right over them. Somehow, we still managed to do discovery.

Are HN/reddit in danger of ceasing to fulfil their discovery functions? Maybe, and maybe we need a better discovery solution. But I don't think peppering our actual content with pointers away from it is the solution.

I've recently moved my blog to the simplest theme I could find. A typical entry has no links, not even to the homepage - I figure by now people have probably learned how to use the back button. Each entry is a simple piece of text that should live or die on its own, just like a newspaper column.
Not curt and blunt at all - it's a very good question.

Yep I have, though I haven't done any real marketing. Over the past few months I've come to realize that's one of my real hurdles - marketing is just not one of my skills. I'm not sure where to begin with it, though I plan on learning.

I mostly share on sites like this, reddit, and forrst. Next week I'm going to be presenting Whoops in a lightning talk to a local Ruby group, which isn't something I've done in awhile and which I'm very mentally resistant to.

Maybe it's all just a matter of not having the right knowledge or experience. Programming is easy - I always feel like if I can't see the path I'll eventually be able to find it. Same with UI/UX. Not so with marketing, getting feedback, and iterating.
DOM keycodes are kind of broken beyond repair[1]. They cannot be relied upon to determine precisely which character a user entered (even jQuery's charcode falls short here) because they do not take into account modifier keys, compositions, or locales.

[1] For a (detailed) explanation: http://unixpapa.com/js/key.html
Surprised no one mentioned these..

Do more faster

Ultralight startups
I never understood why someone would use bourbon over compass (http://compass-style.org/).
It's... Fairly ugly. Lots of "retro" games are beautiful. This one isn't.
A bit bold to talk about running your own server to replace Skype. You'd need to get 32 million users to switch over.
Coffee shop Internet access
Found a (sort of) answer in their cookie_guidance_v3.pdf

"An organisation based in the UK is likely to be subject to the requirements of the Regulations even if their website is technically hosted overseas. Organisations based outside of Europe with websites designed for the European market, or providing products or services to customers in Europe, should consider that their users in the UK and Europe will clearly expect information and choices about cookies to be provided."

Of course, much like the rest of this legislation, the phrase "likely to be subject to" is vague and ill defined. Sometimes I hate being base in England.
Emotional control is one of the hardest things to master in poker and is ultimately why I failed. Learning the influence your emotions have on you and your decision making is as you say a very important life lesson. Being able to recognise when your emotions are causing you to make a series of bad decisions is a very useful tool.
As someone with serious insomnia, this post comes across almost as selling snake oil. Caffeine, alcohol, general nutrition, sleep hygiene (good sleep habits), sunlight exposure, temperature, eating habits (time/size of meals), all matter -- most of them more than mental state.

From my 20+ years of personally-motivated research on this, I believe the most influential factors in insomnia are, in order:

(1) A controlled, regular schedule of caffeine; limited alcohol.
(2) If it exists, a week+ long pattern of waking up at the same time.
(3) Exposure to sunlight.

The author's advice is still useful, although I disagree that insomnia "...can be fixed easily and quickly."
Real 18 Video - Free Streaming Sex Video With 18 Years Old Girls
What is a real-world use case for this? While beneficial to size I do see a problem with bugs in implementation. A faulty patch apply procedure leads to incorrect patches when edited, which lead to invalid documents states etc... The benefit, I suppose, is the original document is left untouched. Is there an additional purpose to using patches?
I think you are missing the bigger issue here.

Many people will not click/not allow if they see a warning message. In fact many people will be either confused and scared and leave.

I.e. its not theoretically a problem if you assume that most users are rational users who read what is in front of them and make reasonable choices.

De facto though that is not the case and that means that a lot of business who put it up will see a drop in revenue even if they normally play by the books.

Furtermore it really does not help anything since those with malicious intentions can just put it up and still do all sorts of shady business on the back.
What Restaurants Know About You.
To prevent obsession, you should start with an initial budget (e.g. 50$) and never pay more. Force yourself to get more money from the tables. Also restrict your maximum buy-in to something like 1/25 of you budget. For 50$, this means tables with 2$ buy-in. The buy-in restriction keeps you at a comfortable level, because tables with higher buy-ins have better players.

Using this strategy I played from 50$ up to 300$ over a year or something. At that point I quit, because I got bored.
What I learned from a failed iPad app
There's a difference between posting something from another site, even if it's a screenshot, and scrubbing the watermark then adding your own in an attempt to claim authorship. Reddit does the former, 9GAG the latter.
DreamHost Enters Cloud Storage Fray With Ceph-Powered DreamObjects
Given this quote:

In this post, we attempt to build a free, secure, SIP based communication system to provide encrypted voice and video communication, buddy lists, instant messaging, presence and remote desktop sharing/control on a self-hosted system.

I think they mean "in the context of a few private users using skype to communicate with each other", such as a startup or maybe even a tech-happy family.
The problem with the utopian vision of the linked web is that links to meaningful content elsewhere on the web die.

In November of 1994, I created a personal web page. I linked the one image (the logo of the university where I intended to go to go to grad school). By March, the link was broken. The school had redone its website.

The world wide web broke the social contract implicit in Gopher. Geocities is no longer online.
> Maybe, and maybe we need a better discovery solution. But I don't think peppering our actual content with pointers away from it is the solution.

How can a discovery solution not provide pointers to the thing you're discovering?
I'm the founder of Silktide and they guy who wrote that page.

Whilst I appreciate the law exists for a good reason, that doesn't mean the law is good. In it's current form it simply doesn't help user privacy or website owners. I'm hardly alone in saying as much.

We ourselves wrote no "functionality that tracks people" - our site merely uses Google Analytics (anonymous measurement of visitors) and social plugins like Disqus, the Tweet and Like buttons. By the letter of the law those have to be concealed until a user has manually opted in to display them.

In practice everyone instead started showing slide-down banners which accomplish nothing for privacy but piss off users.

Anyone who uses analytics properly knows there's no equivalent log-based solution. Understanding the path users take through a site, how long they view pages for, whether they buy when they came from one advert versus another - these are common practice for good reason and they have ABSOLUTELY ZERO implication for user's privacy, as all this data is anonymous.

The relatively few websites which genuinely might be jeopardising user's privacy - Facebook, Google, Amazon etc - tend to be large, ubiquitous and mostly ad networks. The average 10 page company website is not technically sophisticated enough to subvert a user's privacy nor do they have the visitors to do so.

My fight is with a stupid law, not with privacy.
When are we going to see some real production code in Rust?
Common, I am excited about it for real reason. (Rust creators, I espesially want good answers from you...)
"This failure corrupted encryption keys used to access stored credit cards to process recurring transactions"

Looks like they were sharing encryption keys by replication or shared storage.
Edible food packaging?
With respect, people like me who delete all tracking stuff routinely now have to put up with constant cookie notices.

The proper solution to this would have been for browsers to have a more prominent "delete cookies" button, for those who care.

The way it's done now is just dumb: the bad guys are still going to track cookies, and it's a massive time sink for every other website out there that wants to comply with the law.
This is what HTTP redirects are for:

http://support.google.com/webmasters/bin/answer.py?hl=en&...
Outside of Zynga's acquisition of OMGPOP, I don't believe YC has any ties to them. I could be wrong.
I think the real solution lies somewhere between not doing anything and just mindlessly peppering related articles at the bottom.

Something along the lines of how iA suggests publishers start using twitter[1] - the idea being you should make references to other works as part of your content, rather than an after thought.

I've recently started doing this with my own posts where I will link phrases to other posts (my own or others') that explain the concept in greater detail.

Traditional print does that by way of literary reference. Read any piece of fiction or good journalism and it will likely be peppered with plenty of references to other works. They just won't be something you can click because technology.

[1]http://informationarchitects.net/blog/sweep-the-sleaze/
Exposing a technically misguided decision as such is enough.

No need for the spluttering outrage and emotional editorial comment by the bug reporter (to say nothing of the ad hominem attacks on the programmer).
Those are two keys. Key codes are not character codes.
Keycodes don't change if you switch to another keyboard layout.

Key combinations don't have separate codes.

In code you could listen for keydown on the code for shift, and then for the code for the other key.
I agree! I would like to see this done.
I read this entire article in my interior Comic Shop Guy voice.
Can high speed rail compete with self-driven cars, all of future-tech?
Show HN: KitchenSync, a secure home cloud to support myself during university
Until the ICO start taking people to court it will stay ridiculous, but I think the intent of it is important. Using etags to track individuals is really no different to a cookie with a unique ID...

Having a 10 page complaint form is what is dumb. Why can't you just send a suspect URL, then have it scoured for dubious cookies?
This is not a joke.
This is the same reason why there will be no HTML6. There will just be HTML moving forward. The 'level N' stuff is just for the W3C to keep track of which 'code sprint' (if you will) they are on. The the end-dev, he can just think of it as CSS moving forward.
In the same way a slave database can be corrupted by the master when it has a failure. If you're encrypting data on the master and replicating to the slave, improperly encrypted data may be propagated before a fail-over. This is a case where having the master fail completely and go off-line is preferable to a "working failure".
Web-Based Subscription Businesses Surf A New Wave
This reminds me of the words of Tim Berners-Lee: Cool URIs don't change!

http://www.w3.org/Provider/Style/URI.html
So the author's reasoning goes like this: you can't sleep because you think of stuff (1), and you think of stuff because you are afraid to forget it (1). I agree partly with (1). It is definitely one a major reason sleep stays away. (2) however is way to general. Waaaaaaaay. Maybe it's true for tha author, but putting it like it's the next big truth is a reason not to be taken seriously by any psychologist. Or by me and probably the major part of HN.
Best of luck! Maybe you should post into the Berlin Startups group on Facebook, too (https://www.facebook.com/groups/159595270791268/). It's pretty active.
Are links dead?

I actually find myself using links... as they were intended, to link to whatever content I'm blogging about as a service to the reader.

I wonder if the rise of the knowledge graph will save links, where every single noun can be automatically linked to by the AI interpreting it for you.
Election Hackathon - $5k in prizes
In Sweden, just about every non-government site has ignored this law. I don't think we'll see anyone getting sued over it any time soon here.
Google has a hand in this, too. PageRank and derivative algorithms stop making sense when the primary driver of traffic and therefore links is the algorithms themselves. Small differences get wildly exaggerated because whatever shows up first gets all the links, so there if you're a purely cynical actor the best route seems to be to try to write something as it's trendy and pray for a linkstorm miracle.
Do you have any stats on what percentage of people click on all those options on the left? One option may be to divide the page into two columns one for paid search results and the other for organic search results.
You quickly run into the need for this if you build an API where clients can update individual fields within JSON documents instead of just replacing the whole JSON document with a PUT.

It can probably be argued that each individual field could also be represented by a unique URL, but IMO that makes things pretty complicated and you have to make a lot of unnecessary HTTP requests.

I still think it's a mistake to use / instead of . as the separator though. Using . is much more intuitive and it's already used in e.g. MongoDB queries.
"If you don't look carefully, it may appear that the NSS plugin doesn't do any validation of the SSL certificates, but that isn't the case; the validation is done, just not by the SSL_AuthCertificateHook hook."
It feels creepy and needy. Like the online equivalent of "hey, I know we just had coffee, but I think we should decide how many kids we want to have."
See also:

http://www.slate.com/blogs/future_tense/2012/09/04/hugo_awar...

There's a great opening for someone to make a billion dollars running a video service from a country other than the U.S. "We won't shut down the video of the event you just spent millions of dollars creating and promoting" is an easy selling point. You just have to make it almost as easy or as easy to use as existing services, and promote it a bit to broadcasters.
I would have thought that online poker sites were infested with bots? There certainly seem to be a lot available by searching for "poker bot".
This is my favorite js keyboard plugin by far.
3D isometric graphics with CSS3
How is testing for a terminator the right approach? The comparator is only supposed to look at a single parameter, and the only null byte in the url string is at the end...
Bourbon Neat
"Let's try a solution at the user & browser level."

That's not enough. Only the website really knows what the cookies are actually being used for. That information needs to be surfaced in a manner where customer preferences can be tailored.

Trying to keep track of which cookie domains are used for cross-site tracking (which is what a user/browser level mechanism will max out to) becomes a big game of whack-a-mole. Cheap domains, endless supply of subdomains; IP address filtering can help, but there's a fair bit of collateral damage.

We have P3P, but it's too much of an all-or-nothing thing. It's quite ardous for a website to implement correctly, and too easy to be unforthcoming with accurate information. But, we need to be able to understand the purpose of every cookie (and similar client-side storage mechanisms), and they need to be done in a way that tracking-related storage can be disabled without disrupting the storage related to the primary purpose of the site (from the customer's point of view).

But the root cause of all this is that there are website owners who do not accept that their customers or visitors have a right to privacy. That perception needs to change for a viable solution to exist. It's a social issue, solving it in a technical manner runs into a similar set of issues that a legislative approach is currently doing.
Bitfloor offline following $250,000 theft
I am the author of this library. Just wanted to point out what other people have said. Using keycodes on there own is not very reliable across different keyboard layouts/international keyboards.

Mousetrap defaults to trying to use character codes whenever possible, and for keys that don't send character codes (such as arrow keys, space bar, enter, tab, etc) it falls back to using keycodes.

So it should handle all the annoying stuff,cross browser inconsistencies, etc. for you.
Functional programming in PHP - Introduction
Why isn't libpurple, being a library, licensed under the LGPL, instead of the GPL? If it were, then there would be no problem linking with OpenSSL if I understand things correctly.
Asserts are awesome
Old rant about exception vs assert, now in favor of assert.