skysight-inc/HackerNews huggingface dataset:
You can achieve the some of the same results with less -R and you also get searching and scrolling. (It colorizes ls's output, but it doesn't do the scrolling or screen-clearing stuff.)

To get a handle on why this happens, think of it this way: Back in 1983 using Unix (and I mean a full-size Serious Unix, not Xenix for the 8088 or anything) meant hooking a text terminal (like the brand-new VT-220!) to a minicomputer (like a PDP-11 or a VAX) over a serial line, possibly also involving a modem.

Now you only have one communication channel between your text terminal and the computer. That's a bidirectional link that ships characters at, say, 120 characters per second, a good speed for the time. Given that there is only one channel to work with, if you want to make some text underlined, for example, you have to tell the terminal to do it using in-band signalling. The VT-220 has a complex set of such commands, or control codes, prefixed with the ESC character (0x1b in ASCII). In-band means everything is done using the same line, so there is fundamentally no difference between the characters in the "Hello, world!" your application prints and the control codes that make some of ls's output bold.

And that's it: If an application sends a sequence of characters that's a control code recognized by the terminal, the terminal will interpret it and do something special, like make the following text yellow-on-red and blinking. (The VT-220 might not have been able to do color, but other terminals could, including terminal emulation software for the IBM PC, say.)

The catch is, there was very little standardization about what control codes did what. ANSI tried to standardize, and was successful to the extent the popular VT-100 family followed the standard at least partway, but it was too complex a standard to succeed completely. These days, of course, pretty much everyone uses xterms and they're pretty close to the ANSI standard as well. On the other hand, back when ADM-3As and Wyse 60s roamed the Earth, just about all you could assume was that all of the printable ASCII characters (plus space) would make the appropriate characters on the screen and that CR (0x0d) would be a carriage return.

That lack of standardization is why termcap and terminfo exist: They map 'what the terminal can do' with 'how to do it' in terms of control codes. It's also why curses and ncurses were written (as APIs to abstract 'what' from 'how'), and why terminal handling code has largely been done via an API of some kind for the past three decades or so. ncurses is like Xlib for text terminals, right down to the network transparency.

Here's an interesting article on modem speeds because it's Saturday: http://www.textfiles.com/computers/bitsbaud.txt

Here's a page where you can download massive termcap and terminfo files, if you ever need to know how to make an ADM-3A clear its screen: http://www.catb.org/terminfo/
Gangnam Style, Dissected: The Subversive Behind S. Korea's Music Video Sensation
Disappointed - I thought this was going to be an honest review about sock puppets. I was hoping to see how well our mascot fared (http://bidkat.com) ;)
I think this kind of cynicism without citation is a very unhealthy thing for any (online) community.

large edit: I should have said "cynicism without citation and qualification." Even if there's a citation I don't like how people reject people/places/institutions out of hand because they might do bad things or have bad qualities because it's often represented as a dichotomy.

For instance here, even if we grant that the EPA is susceptible to corporate influence, even if we as a society decide to go so far as to find them guilty of all the good they didn't do, it doesn't diminish the good that they did do and can still do, and too often these kinds of rejections/scoffs/cynicisms don't serve to add anything to the conversation of a community (such as HN) other than shut down more concrete or nuanced criticisms or discussions.

Sorry for being way off topic here.
Much needed components. Good job mate.
Bullshit. When you're piling long hours, you make many mistakes, and that's totally independent from your passion, interest of whatever. This is just being tired.

BTW in 1998 I've worked 100+ hours/week for a few months; it ended in the hospital. So I think I've seen that from the inside, too.

As a high level knowledge worker (CEO or CTO), I may "work" for long hours getting informed on the latest trends reading HN. I can be in the office, or in the shower, ir running in the woods thinking about my next product. Heck, I can even be working, golfing with an important customer. By this metric of course I work 120 hours a week (though I spend at most 40 hours a week in the office).

However when you're typing in code, or carefully assembling a car engine, if you work too much you'll simply make more errors. This has been verified many times. It's absolutely not debatable. If you want to believe it's not this way, you're deluding yourself, and that's not good, don't do that.
Sleep Musicalization: Automatic Music Composition from Sleep Measurements
Yes, especially with a population of over one fourth of the US and internet penetration of roughly 80% (most of it broadband) one might think Germany is a big enough advertising market for the right holders to pressure the GEMA.
Actually fatigue means that people doing repetitive work are extremely prone to error and worse, wounding themselves past a number of hours (depending upon the job). There's a reason there are laws forbidding truck drivers and plane pilots piling in hours.
I think the problem lies in attraction. Politics is such a dumpster fire that only the most egotistical, self-absorbed and driven type A's are inclined to seek political roles.

But that's the cynic in me.
Love the name. Clever. The website is a little more mysterious than I'd initially like, but I'll give it a try. I wish you success with this!
I'm not sure how common this is, but our application totally has a middleware to allow simulating other methods via _method and _body querystring parameters in GET requests. I know I've seen many other companies do this. Some may scoff at this for probably naive reasons, but REST doesn't have to mean 'correct' HTTP. It's just an architectural style.
Instagram Horoscope
There is a citation of the data. The question is a fair one. I don't think we should self-censor people for answering, per se.[1]

[1] Also see:

http://en.wikipedia.org/wiki/Regulatory_capture

http://en.wikipedia.org/wiki/Regulatory_capture#Environmenta...
I was educated in Japan, and we did (and still do) have the moral education as one of the subjects in the elementary school. I never thought anything of it until now, but I can easily see that such a subject would be highly controversial in the US or in Hong Kong.

Just FYI, Wwat they teach you in that subject is more or less common sense stuff (apologize if you wronged someone, protect elders and smaller children, be nice to your friends, and so on), and the separation of state and church should still serve as a safe guard against introduction of any religious/politiacal topics. So it's not like you get indoctroinated, but then again, I'm not sure if I trust some states in the US to maintain that separation properly...
This looks really good. I just downloaded one of the real world example apps the page links to and it seems pretty awesome.

The scrolling isn't the smoothest but maybe I can find a fix somewhere between this and hnmobile.
Is CoffeeScriptRedux actually ready for production use? From my read of https://github.com/michaelficarra/CoffeeScriptRedux/wiki/Pro... there are many features missing.
About 10 years ago I did a spoof version of a 50 Cent song and posted it on one forum - it took off in a really big way with people sharing it on forums and via email (this was before YouTube or Facebook), and ended up getting heavy radio play all over Europe and Australia. I signed a management and publishing deal and ended up producing music professionally for a few years before I decided to go to college for computer science.

The power of creating something resonant and putting it on the internet is huge, and it's still totally possible today.

I believe that consumer startups in the early stages are no different. You need to find a way of presenting yourself that resonates emotionally with your desired audience, to the extent that they want to share that feeling with others.

Congrats on the viral success! It's a really fun experience.
SVG sounds pretty much like what you're looking for.

Single element CSS hacks like this are impressive demonstrations of technical knowledge, but it was never meant to be used like this.
Visualizing Javascript (ITP Course)
Yes, gpg-agent is super fancy, and if you and I weren't talking about the joys of "simplicity," I can see how it could be quite useful. (And thanks for pointing it out. If my needs get fancier, I might well decide to use it.)

But, for the moment, we ARE talking about simplicity. I'd like to simply encrypt a plaintext file. Then I'd have a decrypting version of cat (call it "dcat") that asks me for a password, doesn't echo it, and applies it to the file before cat'ing. It doesn't know if the password is right or wrong; it just passes the file through it before cat'ing. If I give it the wrong password, gibberish comes out.

I could then view a whole file (dcat my_secret_pancake_recipe.txt) or pipe it to grep (dcat my_logins.txt | grep -A 2 Netflix) to get just the lines I want---exactly what you'd do with any text file except that it starts with a decryption that asks for a password (which it doesn't echo).

What's the best way to do something this simple?

UPDATE: openssl essentially does this and comes already installed on Mac OS X. I'm a crypto noob, though, so I'd still welcome advice.
People who want to be pilots love flying. Nonetheless they're not allowed to fly more than a number of hours, because passion, motivation and whatever you want won't prevent you from messing up when you're tired.

Amphetamines were invented for the military and particularly the special ops, mind you. As you know they come with their problems, too.

So please stop bullshitting yourself. As much as I like and respect Elon Musk, when he says this he's full of shit, plain and simple. Asking mechanics to work long hours building cars is terrible management. No wonder he finds defaults on each and every car.
In that case, maybe you should give Racket a try? http://racket-lang.org/
Omg, really? REALLY? Even though I'm not a "Mac" guy, this actually makes me kind of sad inside. I remember when my elementary school moved from a fleet of Apple II computers to the new amazing Macintosh. I always liked saying it too. Mac-in-tosh. A nice name for a computer. Alas alas alas.
Use the most trusted e-mail sending service you can find and afford. Don't roll your own. Spam has made e-mail such an untrustworthy system that your e-mail's origin has to have a track record, these days.

You'll find a continuum of options for e-mail sending services. I'd pick the one that's most trusted within reason, not necessarily the "best deal." To me, it's an image thing: every time your e-mail ends in a Spam folder you let that user down a little. If they do find it, you've still disappointed them a little.
Google is requiring you to login to Google+ to see reviews on maps now
This is a change I saw in the last few hours. All the businesses are now moved to Google+ when you search on maps. And they force us to login to see the reviews. Wonder why they made that decision. Yelp must be really happy about it.
(My reply mysteriously disappeared. Second try...)

HumanamuH is not meant to be a dating site in particular. But I assume wherever people meet, some of them will want to date. I like the idea of HumanamuH bringing love to the world, so I'm fine with it.

The possibility to state one's orientation and whether one is looking for a partner is there for at least two reasons.

If you don't want to date, you can make that clear upfront. Hopefully this will reduce unwanted requests.

If you want to date, it's easier for everyone involved if the orientation is known beforehand.
Are you doing any machine learning? Are you using an Amazon style recommendation system where instead of recommending people based on overall rating you're looking for poeple user's like me rated highly (based on the ratings we've given to other people so far and our declared goals for the site?)
I'd go with sendgrid. I hook up their api to every app I build.
Backbone.js Modal
Learn or Die: A Primer
Is there any specific reason you are using a DB in this case ? As I understand, for most of the cases, the neural net data stays in memory and is persisted to disk only to save and load the network.
I digress, but I think this is one of the most annoying things about Unix these days. I practically live by the command line; but terminals are terrible. We're basically emulating technology that was already getting obsolete in the 70s!

Plan 9 had the courage to shed this cruft by having simple text windows which have a prompt. No curser addressing and no crazy control codes. That makes rendering it just as easy (and beautiful) as rendering text box contents. I wish the Linux desktop environments would follow suit.
It was really noticeable in the codecast because you went back and "corrected" it.
Vote for Mitt Romney, he'll scale back the EPA and you'll be able to wallow in carcinogenic substances all day long.
Tips for integrating Documents in the Cloud into your life
I didn't expect so much love for the name as I've got mixed opinions before making HumanamuH public.

Please let me know what was mysterious to you. (If it's not too mysterious for you to know...)
Computer science papers, in 140 characters or less
Show HN: Underscore.py / a python port of underscore.js
This looks fantastic. However, after working on a simple HTML5 game for iOS, I'll definitely be going back to native for my next app.
The Most Underused ActiveRecord::Relation Methods
Can you give a link example? I can see the reviews for McDonald's in Mountain View without logging in to Google+: https://plus.google.com/118291807218096227882/about?gl=US...
> Maybe the answer is similar to why some people stay in abusive relationships.

As someone who was in an abusive relationship for a couple years, who found himself giving everything for nothing in return and not understanding why everything sucked: I can sort of see your point. The bits and pieces are there. But it's a really, really stretched metaphor.

Abusive relationships involve deeply personal manipulation and that's why they get such a hold over you. Consumer apathy is not even close to being directly convinced by someone you love - often using your own fears against you - to stop caring about your own needs.
Front-End stuff: dropdown menu that uses :focus
Arlene Blum is kind of amazing. I met her maybe 20 years ago in the context of mountain climbing. Can't imagine climbing with a baby strapped to myself.
Please check out my new project - shareafix.com
Its not hard to get the partners emails AND/OR any of their networks email addresses. However, since you're trying to do it through HN then you should at least add some contact information on your HN profile (FWIW posting your email in the email field doesn't display it on your profile).

Likewise, the way you were attempting to reach out to Kevin Rose on Twitter[1] isn't the way to do it (even if you just consider how many tweets he receives).

If you don't know how to find someone's email on the internet then you don't deserve their investment.

Similarly, no one will "hook you up" without showing them anything although, if you just want to reach Googlers in particular then there are a lot of Googlers on HN. For instance jrockway[2] etc although there is no guarantee they will "hook you up" either.

[1] https://twitter.com/nottil/status/244263075023314944

[2] http://news.ycombinator.com/user?id=jrockway
Do you know what made you think it was a dating site? The wording?

I thought "meeting people" was quite neutral.
We spend a lot of time in our beds (at least we should), so we should take everything about it very serious!

We recently switched to a bed that strictly consists of natural materials like wood, latex, cotton and natural rubber. Absolutely no metal and no toxic additives. Costs as much as our car, but is worth every cent. Sleeping feels like holiday now. I also can smell the difference.
Aurora, Other Zero-Day Attacks Linked In 'Elderwood' Study
I really liked his answers.
I am a 16 year old, locally schooled Hong Kong resident.

The rash implementation of Moral and National Education is but another attempt by the Central Government in the grand scheme of things to assimilate Hong Kong.
Although the protest will probably succeed in stalling it, given its massive public inertia , such victory is short-lived.

China will reclaim Hong Kong, no matter how vehement we protest . Deng Xiaoping's 'One Country, Two Systems' is the sole reason why Hong Kong has been allowed to escape the fate of its neighbouring provinces, and evolve into what it is now.

According to Chapter 1, Article 5 of the Hong Kong Basic Law, the constitutional document of HKSAR reads: 'The socialist system and policies shall not be practised in the Hong Kong Special Administrative Region, and the previous capitalist system and way of life shall remain unchanged for 50 years.'

28 years has passed. The Communist Party of China (CPC) has already demonstrated that it will not lie dormant until then.

Consider the 2012 Legislative Council Election, which is to be held tomorrow. It introduces the new system of 'Super Seats', where elected 'Super' district councillors' votes will count twice as much as their 'ordinary' colleagues. Thanks to CPC, pro-establishment district councillors' are likely to be voted in, and thus fulfill their function as pawns of the Hong Kong government in the legislative council, passing whatever law CPC desires.

http://www.scmp.com/comment/blogs/article/1030842/electile-d...

For the past decades, Hong Kong has never been a true democracy.
I fear my generation will fare worse.
The full name of the subject is "moral and national education", emphasis on the "national" bit. The NYT headline has since been corrected.
>...priests had strict dietary laws and they knew that Cysticercosis caused by tapeworms from swine.

> Ancient Israelites just adopted a lot of customs from Egyptian Priestly caste...Not surprising, considering Moses was raised as Egyptian.

Even allowing the existence of Moses (which, if we're feeling skeptical we can reinterpret as the long cultural shadow of Egypt), this still seems like a "just so" story.

Do you know if there's any evidence that Egyptian priests actually had medical justifications for their taboos? Similarly, how do we know that ancient Israelites adopted certain beliefs due to direct Egyptian influence, rather than participating in widespread regional practices also found in the Canaanite populations from which they emerged?
> Not to nitpick but managing supply-chain risk is a lot more complicated than insurance.

I agree. I manage an ERP system at a pharma-manufacturer. I added a YMMV precisely because of the different situation - different impact reasons. My main point was:

Incumbent Sales Price SP1 = Cost of (Base + Risk + CYA-buffers) + Predetermined Margin
Incumbent Profits PR1 = SP1 - Total Actual Cost

Startups Sales Price SP2 = Cost of (Base + Risk) + Predetermined Margin
Startups Profits PR2 = SP2 - Total Actual Cost

If you assume Cost of (Base + Risk) to be relatively on-par then SP1 > SP2 because SP1 includes CYA-buffers. The problem is that when incumbents become lean and shave off overhead, they can continue to command high prices due to entrenched contracts and make a much larger profits. This reinforces their position in the industry, making it harder for startups to compete.

Sidenote: While in a perfectly competitive market, the sales price should be determined by the intersection of supply and demand curves, instead of being a predetermined markup based on cost, in most contract manufacturing environments, all the costs are known, markups are expected, and thoroughly negotiated.
That's an interesting concept but there would still be a need for the much faster and non-volatile DRAM. At which point you need to discern which is which and decide for each data structure where you want to locate it.

The latency of NAND flash will be so much more than DRAM that you'd have to use DRAM as the cache layer before the flash in which case you could just use one of those block caching schemes coupled with a PCIe SSD to get everything that is good with very little trouble at the architecture level.
The gender requirement. Even if you removed that stuff it's already too much work to maintain my LinkedIn account the couple other social networks I'm on. I'm not sure what you can do to mitigate social network burnout while still achieving your goal.
> I don't see how staying in the office for 4 years practically indefinitely

I don't see how this is a necessary requirement of government. Instead of answering you directly, I'd suggest reading this: http://www.amazon.com/The-Origins-Political-Order-Revolution...
Cross compiling is certainly necessary and useful for bootstrapping a
new platform. It can also be a lot faster to cross compile when the
target system is slow, but there is a well known drawback to using cross
compiling to speed up development times; you are not stressing the
target system, and hence, you've made target-specific bugs harder to
find.

Of course, there can be substantial costs from slowing down builds and
spending development time waiting for compilation on the actual (target)
hardware. On the other hand, the advantages of finding target-specific
bugs and adequately stressing the system can make the expense
worthwhile. Bad hardware happens far more often than vendors like to
admit, and stressing the system is a good way to test it.

As always, it's a trade-off.

The good example of taking the expensive but thorough approach is the
OpenBSD project. After getting past bootstrapping an new platform, all
builds are done on the actual (target) hardware. Since the code base is
cross platform, the new platform could give them the benefit of finding
bugs that don't manifest or are unnoticeable on all of the other
supported platforms. Also, the OpenBSD project does pretty much continuous
build of their tree on actual hardware, so they're always stressing
the hardware to make sure it's working properly, as well as finding
errant bugs that are tough to find on a single platform.
Gangnam Style, Dissected
> Once you have learned to walk or bike, you have learned it.

Go tell that to someone who competes in running or biking.

> You might feel that you have learned a few languages or frameworks but there is still more or still something else that you can learn.

Again, same goes for biking: There are all kinds of tricks you can do. Yet once people manage to ride a bicycle for a few hundred meters without falling they have picked up the concept and we say they can. Even if there are still lots to learn (traffic rules, all kinds of neat tricks etc)

I argue that the same goes for coding: Once people understand the basic building blocks and start writing their first useful or amusing program from their own imagination we say they can program.

At this point they can start making their own and possibly also other peoples lives more comfortable. Start making their own prototypes which is what I read from the original post.

Would you hire them as programmers? I would not. Do they need to read more books or attend more courses to start prototyping their own ideas like the original post was talking about? Thankfully not.