skysight-inc/HackerNews huggingface dataset:
BUG:
I apologize if this is already posted somewhere here, or if I have failed to find where the bug submissions should go.
There is a bug when submitting a post containing text (no URL). The form you are presenting when there is an error with submission converts multiple newlines to <p> tags, which are escaped on the next submission. To a naive user, it would appear that the substitution of those tags would be "courtesy" formatting, not invalid formatting that will be escaped and show up in the resultant post.

To reproduce:
1) Set title to "Ask HN: Attempting to confirm a bug... aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaa"

Set text to: "here is text

Enter pressed twice, I have not inserted any html tags

If this doesn't error and instead posts it, I apologize."

Click submit.
Observe text in the box "text" has changed to:
"here is text<p>Enter pressed twice, I have not inserted any html tags<p>If this doesn't error and instead posts it, I apologize."
"So basically Google's returning the TV, sofa and cat that you "stole" from advertisers in the Adsense network in the first place."

I haven't heard either way but if you're an advertiser, does goog credit your account - "we believe these x number of clicks you paid for were fraudulent, so we're not charging/crediting you for them."
Japanese AV Idol adult videos and galleries
Oh crazy left-wing message board geek, I just can't stay mad at you.
So, can we use business activity at offshore hosting facility as a proxy for how much private industry cares about this incursion on their rights? =)
Let's talk - my e-mail address is in my profile.
Well, it is an article by a journalist. While I tend to believe this statement I would want to see some hard numbers before committing myself to things like policy decisions (or even going to some sort of protests).
many people seem to assume that such accidents are usually the cyclist’s fault

Really? Of everything in this content-less article, this is the one I find surprising and for which I would be interested in some data. Other than New Yorkers witnessing crazy bike messenger antics, who thinks that bicycle riders are usually at fault in bike-car interactions?
The Real News of China Unicom Wi-Fi less iPhone: China Unicom Owned App Store
The BBCs RDF RESTed API - An Oldy But Goody
Anyone here migrated from tiger to snow leopard? Was it smooth?
Anecdotally, every bicyle related accident I've been involved with (as a FF/EMT) has been the drivers fault.

However, as a motorist, I am often very annoyed at the cyclists (including the ones all dressed up like they should know what they are doing) who seem to think they can ignore things like stop signs, red lights, and other traffic warning devices. If you're gonna ride on the road, and expect me to follow the rules, you should too.

~JW
> If you're on a bike and you're trying to get somewhere in the city in a reasonable amount of time, it is highly impractical to come to a complete stop at every stop sign.

By that standard, it's just as impractical in a car.

> Should you stop if there's traffic? Definitely yes.

The question is rarely what should one do, but what one does.

> Trust me, I want to punch them myself - but not all cyclists are to blame.

No one said that they were. However, the excuses for "bad behavior" by drivers and bicyclists are very different.
That would assume the authors haven't already been instructed to prove a particular point, which they often have.
"The reports that Cyberduck doesn't work correctly annoys me more."

You want lftp. As far as I'm concerned, it's the One True file-transfer program. And of course it's available in MacPorts (and even if it wasn't, it builds cleanly from source on OS X anyway).
Weird, fascinating photos including a giant Cray, and a 60Kg hard drive
> I agree, the wording could be misinterpreted, but it's clearly not the intention.

How do you know the intent of the bill's authors and the folks who are likely to vote in favor? (I'm not doubting you, I'm asking about your sources.)
Never is a long time.

(paul9290's comment did not deserve a downvote, so i upvoted him =D
I highly recommend "Effective Cycling" by John Forester as a reference on how to learn the rules of cycling with automobiles on the same roads. The basic rule of thumb is the same as motorcyclists - pretend you are invisible and car drivers cannot see you.

Rolling through stop signs is a calculated risk.

http://en.wikipedia.org/wiki/Effective_Cycling
I love the shootout, by the way. Thanks for maintaining it.
I generally don't pick up the tab when going as a group. For one thing it gets expensive really fast, and secondly you just don't get the same "mileage" from it.

The amount of good will you receive when paying for a 1v1 meal is a lot greater than the good will you receive when paying for the whole table. It's the personal touch I suppose, the feeling that you did it for him/her, as opposed to "them".
I've been in minimum security prisons and medium security prisons and just the difference in policies for visitors for the two are vastly different.

The policy that really struck me was that in the medium security prison, chewing gum was contraband for prisoners and visitors (IIRC it was actually a maximum of ~$1000 for bringing in a pack of gum). The reason for this is that the prisoners can use it to clone a key or jam a lock open, which meant potential escape of violent prisoners from secure areas. The staff actually have to check every lock before they insert a key (it jams the pins in the right position, allowing them to insert something as simple as a plastic knife and they're able to open the lock).

Minimum security never had that restriction, it's generally run on an honour system. The prisoners in there have all committed non-violent crimes, and generally they were more polite and respectful than people in the general public. At least that was my experience, there was a lot of polite people in the medium security, but the guards required a 10ft distance between prisoners and visitors at all times, just in case.
While this is impressive, they could have a huge audience, they just don't seem to care about capturing it. Their efforts to expand to other countries is visibly nil; the majority of networks from the US already broadcast in Canada, yet we're not allowed to get their programs through legal channels on the internet (you might get lucky with a few shows like Grey's Anatomy being available through Canadian channels websites).
Ask YC Crypto Experts: Best ways to store passwords on disk?
This is probably an elementary question, but I've had trouble finding the answer, and I know there are some really smart crypto people who post here.

I'm trying to store website user passwords on disk securely. I have read some stuff on crypto, but most of it was fairly low-level, dealing with primitive algorithms, not higher-level protocols. I tried to come up with my own protocol, one that would use two hash functions (SHA-256 and something else). It would take the user's password, a random salt (unique to each user) and a nonce (the user ID), and then concatenate them together and hash them. Then with the second hash function, either

a) hash the digest obtained from the first function and store the result in the DB, or

b) hash the password, salt and nonce again, and store both digests, the one resulting from the first function and the one from second, together in the DB.

I am also curious about key stretching/strengthening, and whether it could add anything.

Would it better to skip all of this and use something like bcrypt or PBKDF2 instead?
Yeah! Synthesis is quite excellent. I've been interested in exploring using the FORTH model of easily-accessible-runtime-compiler in that sort of context...
I can't wait for a nice DSL that will generate this boilerplate code for you...
Or you're looking for an excuse that she doesn't like you, that you fucked up, weren't interesting to her and/or maybe she likes fucking with guys or she's just a bitch.
Sorry Avi - it's just so darned compelling... :P
Yes... sort of.

SRFI-4 (http://srfi.schemers.org/srfi-4/srfi-4.html) provides a standard interface for dealing with 'homogenous vectors' (eg, arrays of unboxed integers or floats), which is great for shuffling bytes.

For bits, there's the usual bitwise-or and all that.

However, both could be improved somewhat; what the Factor folks have done with their struct arrays is IMHO superier.
No need for recollections when we have Wikipedia! http://en.wikipedia.org/wiki/Clamato Memory is so fallible anyway - why even use it? :P
Are you asking about fp, or programming books in general?

One approach I took was to go to the (University) library, and find the section on the programming topic of interest. Then grab a few books, and read a paragraph at random. Then borrow (or read there) the one that appeals to you - the writing style that makes sense to you, that addresses the issues that come to you as you read, that communicates to you. You can do the same at Borders, but the books are more vocational and less textbooky.

If some particular part is unclear, you can compare it with other books - you now have a resource.

Every book has something to offer. The biggest factor is what you put into it. Therefore, it's more important to pick a book that you like rather than the "best" one. Otherwise, you can get into a kind of McCarthyism where there are good books and bad books, instead of each book having strengths and weaknesses.

To put this in perspective, I personally really liked "Java in a Nutshell", because Flanagan's writing is brilliant. It's very succinct, yet covers all the cases, has a joie de vivre about it, and yet is so transparent it's easy to not notice it (Douglas Adam's prose also has this quality). Revealingly, Flanagan loves writing; and is very well read himself. Most writers of programming books are not. Now, to me, being well-written is very pleasing; but I can imagine it not mattering at all to the next programmer.
Biggest thing that annoys me is that, yet again, like when Leopard first went out, there's no way to modify the colors in the OS X terminal.

Seriously, why on earth does Apple have such a problem with this small feature? It boggles the mind.
You can do penance by submitting some patches.
And kind of scary. It looks like a lot of people drop out of programming after 30...

Of course, the other possibility (probability) is that most HackerNews readers are under 30.
I don't know that YC specifically is working on a particular idea -- I think they're just interested in someone else who might be.

We're currently looking at making it possible for anyone to easily become either a news aggregator/publisher or a local news reporter, through a mostly decentralized system which is still easy for news consumers to navigate. We've found a wazoo's worth of revenue streams in this.

Just a matter of making deadlines now.
dell xps studio 13

especially if you find a sale or good coupon that will allow you to toss on some extra stuff but stay under $1k.
>4. Bicyclists are a bunch of morons who almost never stop at stop signs or lights, which most likely bothers drivers so much that they vow to run over the next bicyclist they see.

Funny you say this, I worked in San Antonio for a while and there is a pretty popular area for hardcore cyclists, due to the hill-country style roads. One of the guys I worked with constantly reminded us how much he couldn't stand cyclists because even if they had plenty of room to let someone pass, they would hold up traffic simply because it was their right.

I honestly loved seeing the cyclists, it looked like fun and they seem to have quite a community. His reaction was still pretty funny and somewhat horrifying when he'd talk about his dislike of them though, got so worked up when I mentioned I was thinking of biking to and from work.
> And generally people want other people to use what they're using (e.g. programming languages, text editors).

Well, I think in this case you can compare the cycling community (in some places) to the Ruby community. They want everyone to ride fixies (or whatever the trend du jour would be), and if you dare suggest that your needs are better satisfied by some other solution, they will tear you apart with great enthusiasm.
Agreed. Although it's entirely possible that we aren't normal; I despise debt in any form, which clearly is not an attitude shared by large portions of the population.
Yes, but what about: void main(void) { printf("Hello, world!\n"); }

;-)
The use of JS as an object code seems to be a big trend lately. This makes me wonder:

(1) How suitable is JS for use as an object code?

(2) Is this trend taken into account by those designing the future of JS?
I've read bios and/or seen interviews with a lot of famous older people. Invariably they mention that the best things in their lives were not about money at all. Just today I was reading that Edith Hamilton ('Mythology') was happiest about being made a citizen of Athens. Joe Campbell mentioned a race in college. Etc.

Money seems to be the best thing for people who need to feel secure. But for many people, who thrive despite the ups and downs of an insecure life, 'happiness' is found in intangibles... relationships instead of things. Family. Friends. Music. The outdoors. The arts.

My own 'best time' actually happened when I'd just left college and had almost nothing. 'Travel' meant thumbing a ride. Of course, being young, healthy and free is great. Also you don't know so much, and sometimes ignorance IS bliss. And sometimes we let ourselves get saddled with too many responsibilities, which can be a burden for a conscientious person.
They care about expanding their audience. Justin Kilar talked about this in his interview with Charlie Rose. The problem arises from the legal complexities of differing cross-border ownership rights. Hulu has to get permission from the content owner and in many cases the content owner in America will be different than the owner in France (or whatever other country). In addition, they then have to work through the regulatory frameworks there. So it's not a matter of not caring, it's a matter of overcoming the legal hurdles.

From what I recall, Kilar's intention is to first try to expand into China. An admirable goal.
Or would it better to use bcrypt or something like PBKDF2?

If you're going to use either, use scrypt. However...

I tried to come up with my own protocol

...this is a bad idea unless you know what you're doing, and...

one that would use two hash functions (SHA-256 and something else). It would take the password, a random salt for each user and a nonce (their user ID), concatenate the three values together, hash them, then with the second hash function either hash the hash and store it, or hash the values again separately and store both hashes.

... based on this, you either (a) have no clue what you're doing, or (b) utterly fail at explaining what you're doing, given that I haven't a clue what you're trying to do.

Let's start at the beginning: What problem are you trying to solve? Don't try to explain a potential solution -- explain the problem, phrased something like "I have X, and I want to be able to do Y, but want to make sure that an attacker who is able to do Z doesn't become able to do W".
This is totally off topic, but you don't have an email address in your profile. So I'll ask it here:

How easy is it for a non-student to "unofficially" drop into a CS class in UW? Will the professors find out and call the security/cops?

[Edit:mongoose has answered me by email. Thanks!]
If you lived in a town with a bunch of college kids thinking, "The reasonable man stops at red lights, the unreasonable man changes the world and stops global warming," or with grim-faced yuppies thinking, "I woke up at 4am so I could ride a century today, and any lazy jerk who didn't should be prepared to slam on his brakes and yield priority to my unstoppable 90 RPM," then you might feel differently. Even if they account for 5% of the riders on the road, they account for approximately 90% of public perception of cyclists. Cyclists are just like drivers -- if they're polite and responsible, they don't make any impression. Assholes are memorable. Most people don't know many cyclists personally, so it's the assholes who determine the public image.
I think it's a knee-jerk reaction to how the more zealotous members of the design patterns community have had knee-jerk reactions to people questioning the scripture status of the Design Patterns book.

Once a bunch of people get religious, another bunch of people will crop up to get religious against them in turn.

I think design patterns are useful and valid; but I think they should be evaluated individually within the context of a given programming language, not necessarily considered global.
Just about as often as my service providers break in to my servers after asking whether I wanted them to have access to those systems and I said "no".
I can't answer either of these very well myself, (although for #1 I speculate that it's prototypical nature makes it easier to target than a class-based language might be), but I think it's primarily targeted by language experimenters because it's incredibly ubiquitous and easy to demo to others (there's nothing new to install) and the coming generation of JS engines are finally using a lot of cutting edge techniques to drastically improve performance which should make their work more practical in the near future.
The point here is that we tell you 6 hours before departure--long before the airline posts anything and long before you check-in.
> By that standard, it's just as impractical in a car.

Which is why we should get rid of the stop signs and traffic lights. In addition to slowing traffic, their presence is correlated with increased accidents vs. intersections without them.
The blog of Philip Garrido
This doesn't sound natural to me. "Gifted" often means gifted in logic, reasoning, reading and writing. It does not mean gifted socially or athletically. Children develop a ton each year. Advancing a child one year ahead puts them at a great disadvantage socially and athletically. It encourages them to be even more one-dimensional than they already are, rather than encouraging them to excel at many things--in fact to consider that it's ok to choose what to excel at, to try new things and fail, to find their own personality.

I think have ceilings is unfortunate (better to have a much harder AP where even the smart kids who work really hard are challenged by the exams, too). Nonetheless, I would think hard about pushing someone through school faster than normal. It's great if children can get through homework fast (and correctly)--they can learn good habits about free time and have fun. They can even start learning about how to choose what work to do, how to not stress out about grades and external expectations, how to find their own meaning, how to find satisfaction, how to tell the difference between hard work and busy work, and not give up. I learned a lot of this by playing sports (sports psychology is wicked awesome character development).

Learning math versus more math just seems like squabbling over details to me. For a very small number of kids it might be the right choice. Everyone's different, though.
This is fantastic. I do a load of data scraping of the web and this (plus selector gadget) is going to make my life sooooo much easier.
Just a counter-point: in human communication, redundancy is good. There's the saying "Tell 'em what you're gonna tell 'em; tell 'em; tell 'em what you told 'em" and the concepts of "topic sentences" and "signposting" in essays (such as pg's).

For write-only code, communication to humans doesn't matter. But if someone else is going to read it; or if you are going to read it (for example, debug it), then it matters.

Boilerplate - repeated pattern - helps orient a reader. The more familiar it is, the easier it is to understand. Every layer of abstraction increases the difficulty in understanding. The writing becomes like a dense mathematical article, instead of a newspaper article.

I believe without proof that this attitude is one of the reasons that fp has not become popular, despite being older than Java, older than C and older than COBOL: it encourages a programming style that is hard to read, because it strives to eliminate redundancy.

That said, my comp sci masters was about non-redundancy. Absolute non-redundancy is beautiful; beautiful in the sense that it is truth. That's all you need to know.
http://news.ycombinator.com/item?id=792178
Thanks for the reply.

I am building a web application, and I need to be able to store the passwords of its users securely on disk. I know hashing them with a salt and nonce is better than nothing, and that you should avoid older, broken hash functions like MD5 or SHA-1 and opt for something like SHA-256, but beyond that I am kind of at a loss.
This also comes up in immigration studies. Say you have two countries A and B. A has an average income of 5, and B has an average income of 20. If a resident of A earning 10 moves to B where he earns 15, the average income of both countries goes down even though total income increases.
And also B^2's coverage. http://www.boingboing.net/2009/08/28/the-blog-of-philip-g.ht...
Amazing! This is the first article I've had an issue with when using Readability. Dang.

It's great everywhere else. :)
You've only ever come close to hitting a bicyclist once -- perhaps that's due to your attention to driving?

I both drive and bicycle, and as a careful driver, I've never had a risky incident with a bicycle. However, I have been hit by a cars twice while riding my bicycle, both in cases where the inattentive driver engaged in illegal behavior.

One of the incidents sent me to the emergency room.

Observing automobile drivers over the years, I wouldn't hesitate to say that most people are barely qualified to operate a Segway, much less pilot a 4+ thousand pound automobile at 30+ miles per hour on a mixed-used road.

Lastly, your invective is misplaced. After writing three sentences on how bicycles are nothing like cars, you call them morons for not rigidly following the exact same rules as automobiles.
Paylocity's Steve Sarowitz Spent $1 Million Building Flawed Software.
I'm finding OCaml's approach to be a bit more practical even if it isn't as pure as Haskell. Once in a while it's nice to be able to drop into an imperative style or even do some OO and OCaml lets you do all of that.
UI Paradigm from Scratch
That is indeed a most potent collection of detailed arguments!

Now, let's just wait for my colleague to start ribbing me for keeping our project written in C again... ;-)
Consider also: "For each decision, consider the impact on the next seven generations"

If you can thrust up the lowest achievers into a better lifestyle, their children will be even better off. Why should "contribution to society" be limited to top achievers? Why should we be cynical about the ability of a democratic society to make decisions?

SAT performance, and education performance in general, is heavily correlated with socioeconomic class. We should spend more on those who need more. The next generation will be substantially better off. Over time society should become "wealthier," able to help its citizens better as more are able to help themselves and others.
What Open Source Projects Should Know About Dealing with the Press
Wow - fantastic!
I honestly don't know what would possess people to ride a bicycle on a busy street, bike lane or no.

Quality of life -- I do it so that I don't have to deal with the anger, frustration, and sunk time and money that seems to be inherent in driving (and owning) a car.

I haven't died yet. Knock on wood