skysight-inc/HackerNews huggingface dataset:
Yes, you use pre-processing.

I framed the problem in a very real-world scenario. Use that. It's not a trick question. How would you solve my real-world problem efficiently?
LOL, if Twitter's argument is that "time and time again, news breaks first on Twitter", then I don't se how this applies to crawled results, only their realtime feed. And since they don't have that deal with Google anymore, those results that "break first" are irrelevant to their point.
That works if each phrase is one word. Many (most?) of the terms in the vocabulary are multi-word phrases. How would your algorithm work for multiple word phrases? What is its running time?
It's up to the media, not us, what we're called when this is reported. It's much more likely that they would just go with 'Hacker News', as that's what it's known as.
One potential win is, it becomes more personal to redditors. Hopefully it could spur some that have been resting into action.
Yes, however, there are libraries in place that can circumvent some of these issues: e.g., boost::shared_ptr in C++.
5 Technology Advancements That Define This Year’s CES Gadgets
I think the culture has simply shifted (in the tech world, that happens quickly). Apple bundles Safari with its OS, yet no one cries foul. Yet when Microsoft did this 10 year ago it was investigated for antitrust.

The question is, can you use your ownership of the platform to destroy competitors of apps on that platform? When does it cross into "monopoly"? I have no idea. It seems fair to me that the creator of a platform should be able to introduce new applications and place them in a preferred spot for all to see (e.g. facebook's own apps). As long as this was clear to everyone from the beginning. However, strong-arming OEMs and others into specifically doing anti-competitive things on your behalf is probably wrong.
Which you pay for. If money doesn't change hands no contract is made thus no contract will be broken.
Governments are full of bad ideas. I was just pointing out your summary of CALEA was incorrect.
Many companies (including the one in question) want to see actual code in a language that they use at the company. The fact that Python happens to look like pseudo-code is a bonus.

Maybe you already knew all the lessons in Project Euler, but for me, I became a much better programmer. How elegant are your solutions? Have you tried writing them in a different style than you're used to? Say, in a functional style? With Haskell?
The problems Diaspora is solving will be solved for the other hubs too, since they all use the same codebase.
Parents of children and teachers don't seem to have a problem with paper.
Misleading emails
I just received a mass email from Jim Urie (email was labeled umgd - so I am assuming universal music group) asking to urge congress to support Sopa and Pipa. As it looks like a large number of emails going around to help defeat sopa and pipa, I almost sent it.

Just sending a heads up to read carefully before signing online petitions, especially since the fight against sopa and pipa is coming to a head.
I personally prefer Guava's immutable collections:

List<String> fruits = ImmutableList.of("apple", "orange", "pear");

It also works for sets and maps:

Set<String> fruits = ImmutableSet.of("apple", "orange", "pear");
Map<String, Integer> fruitCounts = ImmutableMap.of("apple", 3, "orange", 2, "pear", 6);

http://code.google.com/p/guava-libraries/wiki/ImmutableColle...
I'm looking forward to your followup post. Primarily, what you ended up switching to and if and when you have moved your clients off of WordPress, what their reaction was.

I've found that a primary reason companies start using WordPress is because the administrative console is literally the only one intuitive enough to use for most non-technical users. I see in your post and this comment that part of issues with WP is because of Admin UI changes, but I'd still bet on WPs Admin UI. I'll be curious as to your reaction when the grumbles of your devs are replaced with the grumbles from the people who write the checks.
>So they expect people to use it as a CMS.

And they appear to facilitate that. But, it tellingly IMO, doesn't say that WP was designed as a CMS or even that it was modified to become a CMS just that it has grown to be used as a CMS.
All That Matters - Free Online Games at FastGames.com
> Ah not quite. I'm not talking about that kind of directed messages. Rather - when someone says "cturner:" in channel (a public directed message). In that case I'd like to know that I'll get their message.

That's what irssi's awaylog is for. Learn it, use it, love it.

> Also, I fiddled quite a bit trying to get autologin to freenode and channel join to work without luck.

...every day, quite a few people coming with this problem to freenode's #irssi manage to do that, after some pointers from the channel's regulars. It's quite easy, really. http://irssi.org/documentation/startup#c3 might help you.
To be pedantic, it's not that strcpy is making assumptions.

Its interface is defined such that it is explicitly invalid to pass it some other garbage.
It thankfully didn't take two years, but I've brought sanity to a messy database by:

1. reverse-engineering its schema into code
2. simplifying that code, and migrating the data regularly

Code has been pretty malleable, making it easy to factor in common patterns, erase accidental complexity, and generally bring commonality where there was discordance. It is also easy to version control, and to generate migrations from.

(I have no argument that PostgreSQL is the only sane database, but portable ORMs can be used to ease migration towards Postgres, too)
I would call that a programmer error. The language certainly does make it harder to write "safe" code, but it is certainly doable.

I guess my point is that the tools/libraries/frameworks on top of the language are what make it useful or not useful, independent of the language itself. For example, writing a web app in Ruby may not help you against SQL injection (http://en.wikipedia.org/wiki/SQL_injection) unless you have a well designed query language on top of that.
Just wondering, what exactly is wrong with plain CGI?
weird. I'll check into that. It used to be UTF-8.
>"It will be exceptionally strange for me to no longer recommend WordPress."

So presumably this is hyperbole and you'd still recommend it, only for a more limited range of sites.

The big question, as others have said I think, is what do you now recommend?
"Yes, there are problems with the whole approach of using a terminating value" And, of course, there are problems with the other approaches too. Using a single length byte at the beginning limits you to 255 characters and makes pointer manipulation less straightforward (since the actual data starts one byte further on). Using more than one byte for the string length wastes space (a serious issue at the time C was developed, and even today in the microcontroller world). The author's assumption that he's smarter than Kernighan, Ritchie, and Thompson probably isn't the best approach.

By the way, the "old style of "leaving the cleanup to the OS" doesn't work in the modern world the way it did back in the day." works just fine on iOS and many other modern platforms.
Customer service is harder than programming.
Empower Me Start Making 100% Commissions
So do very thick firewalls.
Not sure why you got down-voted.

It's entirely possible that you don't get the same search results on Google as I do if we're logged in because of what Google 'remembers' as our browsing habits and interests.
I was initially worried about looking up Hacker News at all from a work computer due to the name. Then my lack of caring overtook my concern.
Am I the only HN participant who is on the fence about SOPA?
Not the GP, but the general principal is to use Redis as a task queueing system. The front-end puts a task into a redis queue. One or more C++ programs are waiting on the queue(s) and execute the given task (like a large DB insert). If results are needed they can be communicated back to the front-end. The front-end can poll for the result or use pub/sub messaging.

This gets you a number of benefits: separation of the front-end logic and the back-end logic, better scalability - there may be a bunch of workers on distributed among different machines, and security - the C++ programs aren't as worried about unvalidated input since their input comes from the front-end.
In the "real-world", camouflage paint isn't used instead of heavy armor, which is what is being proposed (using a much less tested piece of code instead of a well known runtime).

Sure, if you can afford to throw the same number of man-years (of both developers and white hackers) at your proprietary codebase as are thrown at the runtime of a popular language, then great, you can have the cake and eat it too, just like the tank builders.

Since most people can't afford that, they have to choose between camouflage paint and an armor. I don't know about you, but I'd rather be in the bullet proof tank than on the one built with balsa wood, regardless of its paint.
How about being able to work on a team of other programmers without insisting that everything ought to be done you own, completely unique, way?

If he truly had a better, more correct, way to write C code I would join him in trying to change the world. But the first example he gives is just factually wrong.
People might be kinda pissed if google blacks out. There are a lot of urgent services that use google. If just one person can't identify the snake that bit them on that day...
Programming Mobile Now Available on Android
The financial crisis explained in one diagram
Why not a smart missile rather than a nuke?

Sites should only go completely dark for those users who appear to be geographically inside the district of SOPA-supporting legislators. "Your legislator wants an censorship-without-trial kill-switch for internet sites, so we're on strike against your district today."
Really need Facebook/Twitter to do the same to strike a nerve with a large demographic. Google would definitely bring attention to the cause, but the ability to broadcast oneself / status on a personal level needs to be hindered to have a meaningful impact. I almost might want Google to stay online and display information about SOPA on the homepage. a la "Why is the internet blacked out today?" .. consumption/direction to information is their strength.
There's been so much well-publicized research on the positive impact of sleep on performance, and hugely detrimental effect of not getting enough sleep.

Why do so many companies still force their employees to work with so little sleep? Why do they still frown at sleeping on the job? And why don't more of them provide cots, sofas and showers, when they can easily afford them?

For decades, some of the more enlightened companies have been providing in-company cafeterias, laundry, fridges and microwaves in office kitchens, and other amenities so that employees don't feel like they need to leave the workplace as much. You'd think these companies would recognize that providing sleeping facilities is the next logical step. Why don't they?
Mozilla's Narcissus meta-circular JavaScript interpreter
Its high time that we stop worrying about this.
"we avoided classic style C strings in this book"

There's the avoiding. The skills being exercised are not a problem, it's the skill not being exercised that is a problem. You cannot be a competent C programmer without understanding strings and their relevant library functions.
Agreed. However, like mfb mentioned:
>As a bonus, the switching costs for changing your search provider are approximately zero.
This means that if you don't like the services that google offers, you can simply choose not to use google, without any overhead in time or money. In the case of an OS, it is much more difficult, first to install on your machine, get used to the UI etcetc. Microsoft could take advantage of this fact to force whatever software it wanted, and users essentially had no option but to comply.
Twitter Statement on Google+ Integration with Google Search - jbat
just so you know, you were probably downvoted because hn approach is to upvote the story and then click your name to enter your profile and finally click "saved stories" to peruse at your leisure.
One may consider using FastCGI to avoid the costs associated with starting a new process with each request.
Everyone calls it programmer error. But when you make the same error of copying arbitrary-sized inputs from attackers into a Java program, you do not enable that attacker to upload their own code into the JVM process and run it.
Your argument is void because the buyer never finds out what conditions the products are made in unless the factory workers protest such as in this case. Social responsibility is not part of the sales pitch, all the buyer see's are the shiny packaging and the sparkly tv commercials with their favorite celebrity. Were the buyer able to make an informed decision regarding his/her purchase, perhaps they'll choose otherwise.
I assume he's implying that CGI is slow.
I believe the hype is for what it is shaping up to be, not what it is at this moment.
Countries with social safety nets have many more startups
I d rather have wordpress be the best blogging software then a Swiss army knife that isn't great at anything. Btw I have used wp to do just about anything, but the only times it was great was for blogging.
No, Boost shared_ptr exacerbates the issue by creating a second regime of reference counting that, if contravened anywhere in the program (for instance, in any third-party piece of library code, which every C++ program of any real size is replete with) creates use-after-free conditions.

I invite you to continue coming up with examples of ways to reliably mitigate memory corruption flaws in C/C++ programs, because I enjoy this topic very much, but as your attorney in this matter I have to advise you that you're going to lose the argument. :)
After reading the install file, I definitely wouldn't use this.

Aside from the snarky comments about bash, the install directions are rambling, encourage poor practices and are generally just pretty awful
Because I added a different version of Tetris than the one most people know. I should probably switch the one there with the later version that changed out its music.
ONLY twice?

I set my alarms at 8, and I snooze it till 8:30.
Blacking out completely is too extreme. I would say a better approach is to put a full-page interstitial ad up over all of these sites with phone numbers to call, and a 30 second timer before you can use the service - be it Google, Facebook, Twitter, Reddit, HN, all the things. Let users get to the service but only after 30 seconds of looking at the phone numbers of US representatives offices, and a message that if SOPA passes, these sites will be gone for good.
Interesting. This linkbait* article has 3 points and is frontpaged. The next-lowest-score frontpage article at the moment is 14pts.

* The second paragraph contradicts the headline: "The goal ‘learn how to code’ is a waste of your time. Don’t get me wrong, I applaud anyone that wants to learn something new. "
The Redis interface is also so simple that it's very easy to hook up C code to it, and Redis is somewhat "typed", which reduces the amount of parsing you have to do.
Even people outside the district can donate to opponents. There are also plenty of legislators who aren't committed yet, and it's probably even more important to pressure them.
Native WP, iOS & &roid App w 3 files & Notepad
As far as I am concerned, sleeping is only annoying if it takes time. My MacBook basically wakes up instantly, so I have no issue whatsoever with it. Why do you think sleeping is a annoying?
EFF: Biometrics in Argentina, Mass Surveillance as a State Policy
That's true as well, but the accusation here is anticompetitive behavior — they're not complaining that Google is dominant in search, but that Google is taking unfair advantage of its dominance — so the fact that users can switch easily is really neither here nor there.
Search just the coolest, bestest html5 resources on the web.
Um...use Bing.
> The next-lowest-score frontpage article at the moment is 14pts.

Ranking is in part based on the time since the submission was made fwiw.
Lots of open source software doesn't even work on osx.

Failing to work out of the box (for whatever legal reasons) is very different from "doesn't even work". Finality was implied in your original post.

Enthought has binary distributions for the various platforms for a long time.
Chrome runs the JavaScript execution the best, while sucky at graphics (Scaling via CSS is sluggish in chrome).

Firefox 4+ runs it overall well (Slight GC hiccups in Firefox 9 though).

IE9 runs it like crap (JavaScript execution is like firefox 3.6, slow as hell).

Opera 11.6 can't run it, because it doesn't follow the typed array spec, causing the emulated cpu to crash. Works in older opera versions though, but just a little faster than IE9.

Safari 5.1.X reloads the page when ever a game starts, because of a js engine regression that happened in safari 5.1.1. Works in webkit nightlies though, and Safari 5.0.X
What if pg requested all YC companies to go blank on January 18?
Hadoop 1.0 Release – Big Data for everyone » CloudSpring
This is so unnecessary and demeaning. At least bring along one of those little bean-bag pillows you could prop your head on. But the real solution is for the company to provide sleeping facilities at work and not to work their employees to the point of exhaustion and sleep deprivation.
Open science: why is it so hard?
Congrats! Really nice site. You definitely get across the point that you know what you're doing where UI/UX is concerned. It's very well though thru, including the "Budget" field in your contact form. At first I wondered why you'd put that in as a required and a dropdown list, but later I realized it's an awesome thing for helping you get the right "price point" as well... (I like it, but I'm not sure how an actual customer would respond)
The only thing I'd critique is that when I tried accessing your site via my mobile phone, some of the appeal was gone and UX obviously isn't the same. In today's mobile-web enabled world, it'd be nice to show you've got mobile web covered as well with a different (but just as cool) layout for mobile devices.
It sends CP1252 emails if all the characters used fit. If they don't, it uses UTF8. That way, people with old mailers can still read them (more realistically, people reading the raw email can read them out of the database or from traffic dumps), because .NET has a tendency to base64 encode the body the instant you set charset to UTF8, and I don't unbase64 in my head.

Try including the funny character of your choice in an email. It should show up just fine.
Perl actually has one of the best Unicode supports (second only to ICU). This guy worked on it, so he's listing all the edge cases (bulk of the post), explaining how to get rid of backward-compatible brokenness (and maybe Perl needs a quicker way to saner defaults), and explaining how to do work that requires explicit handling.
Learning what you don't like to do isn't nearly as useful as learning what you DO you like to do, but I wouldn't call it a waste of time.
Good point about the 3rd party libraries there, it's true that even if you do your own cleanup after manual mallocs, you can't do much about theirs.

Do you have an example of documentation that shows how to configure malloc to do some cleanup in the case of failure? Based on the Linux manpages I can't really see any obvious way to do this short of preloading some kind of malloc wrapper that's custom-written for the application.
I think they're dead wrong about the demand of the model B, vs the model A. I think most people are going to want to buy a model A for $10 less and stick a sub-$10 usb wifi onto it than run a wire.

Most of the projects I think of and don't build are scrapped for want of $50 worth of ridiculous "zigbee" wireless hardware that can barely push 250kbits across the room. The internet of things is made of wifi.
That sounds more like a visit with Froyd than a programmer interview.
I doubt that the parts of YouTube responsible for video-related heavy-lifting (transcoding, detecting copyright infringement, etc.) are written in a dynamic language like Python, Ruby or PHP or even a managed language like Java.
The interviewers don't care. Use paper.

Uh, yeah, we do care. Part of what we're judging is your ability to present and explain your work. How you do your work is your business, but how you share it affects the people you work with. If you think it's all about you, then you're off on the wrong foot already.
Systems biology reveals microbe networks differ in obese people
There's only one correct definition of open source: Whichever one keeps the flamewar going.
tl;dr

Learning to Code is a noble and worthwhile thing to do. But don't do it just to do it, or do it at the expense or something that might be more practical for you personally.

I can relate to this, but I'm sharpening my programming skills anyway.
Trying to compile code to JavaScript results usually in sub-optimal performance. You have to manually do it to tweak the best performance out of the language. It's kinda retarded, but it's analogous to writing assembly code for performance critical apps. Also, I did it for the lulz.
In last-ditch effort to prove patent portfolio, Kodak sues Apple and HTC (again)
Since when money changing hands is the sine qua non of contracts ?
> My god.. the productive output of Silicon Valley is going to triple on the 18th!

Personally I'll be blacking out my productivity as a show of solidarity.

All joking aside, I actually think it would be difficult to maintain the rhythm, if you know what I mean, without my favorite social news site on one monitor. On the other hand, it might give the browser's refresh button a much needed break...
Fotoshop by Adobé
I doubt I'm the only one to suppose that people who do not understand SOPA also have an outdated or narrow definition of "hacker". Both of those are unfortunate, but if we're being constructive about one (through our combined voices), we may as well take a moment to be constructive about the other - perhaps calling HN "Y Combinator News Aggregator, popularly referred to as 'Hacker News'".
I am pretty impressed with this post. While, it looks like Jay just started this blog, the style is engaging and I am tempted to give his methods a try. I am not sure if I can beat down my self-diagnosed ADHD enough though:)
FWIW, CP1252 was picked as a kind of super-ascii (or super iso-8859-1, if you prefer, it's almost a strict superset). I'm not aware of any encoding aware software that is unable to process CP1252.
Just a side note to this terrible story, but this should be the proof that games are speech.

If a government is willing to kill you for how you arranged some bits, it's probably a medium worthy of First Amendment protection.
That's assuming the only reason for the blackout is to pressure users into calling their legislator. Blacking out the whole site worldwide is far more effective as a means of making a statement, and as a means of getting media attention.
I don't like the fact that my observations affect what I'm observing, as an interviewer. If someone wishes to yak with me at each step, fine. Alternately, if they wish to silently cast about a bit in non-rational gestalt, maybe ask me odd questions or play with the data to get familiar with it, then converge on a bulletproof solution... also fine. I do not need to stick my probes in their mind to observe each step. There exist other methods to demonstrate how they collaborate.
Any mortal who wants to run BSD is most likely also capable of installing BSD. (For that matter I'm sure the majority of people who have just heard of BSD are capable of installing it.) Furthermore it's no more difficult getting up and running than on a desktop since the Arm is supported by the kernel; you just load everything on the SD card and the pre-installed uboot (or whatever they have on there) will boot off of it.