skysight-inc/HackerNews huggingface dataset:
what? for this task, programmers should be able to come up with code optimized (if not optimal) right away.
For example, this line "I would append a string [...] to the result" certainly involves at least one memory copy operation, especially since he suggested doing this for mod 3 and mod 5.
Everyone should know that on most CPUs, arithmetic operations are at least an order of magnitude faster than memory operations.
So the alternative should be obvious: don't copy the strings into a string buffer. If you just print the 2 strings ('Fizz' and 'Buzz') as necessary (inside the conditional test blocks) the compiler/interpreter will allocate space for these 2 strings ONLY and will pass pointers to them.

Even though the last operation he mentioned "I would check if the string is null" would indeed be fast, the program won't be able to take advantage of it, because by that time, the program will be performing very costly memory operations.

Instead, this involves no extra memory copy:

for i in 1 to 100:
if (i mod 3): print 'Fizz';
if (i mod 5): print 'Buzz';

if (not (i mod 3) and not (i mod 5)): print i;

print "\n";

Even though the 3rd condition involves a few extra arithmetic/logical operations, these are way faster than memory operations. The strings 'Fizz', 'Buzz' and "\n" are allocated at the beginning of the program. There is no "result" variable that needs to be allocated/deallocated on every iteration and there is also no need to store the result in an array, because the task is to write a program that "prints" the numbers from 1 to 100. Plus, wouldn't you want to store it in a string, instead of allocating memory for arrays?

I would expect good candidates to be able to at least arrive at this solution after their first attempt.
You can call it a heuristic or a guideline, but I consider them essential. Perfectly rational agents without empathy can commits massive acts of evil trying to achieve their goal. Or as the proverb says "Road to hell is paved with good intentions".

And I don't think short-sightedness or ill-informing was ever an integral part with arguing about how empathy is essential to human live. IIRC there was an example of perfectly informed and rational computer of super human intelligence who was told to calculate a particularly difficult equation, to which he promptly restructured all matter on earth, including people into a giant super-computer.
It's not a symptom of the belief that you should feel lucky to have a job. We're talking about the same country where people who go to college expect jobs to be handed to them.

Instead, it's a complex cause rooted in a country built on entrepreneurship and a strong belief in the "free market" (whatever that means). This is why it's not regulated by any government (federal, state, or local). The US has a lot of factors that lead to its vacation policy, but, "You should feel lucky to have a job" is not one of them--that sentiment is a more recent attitude.
Great write up. Hopefully that ephemeral data in Redis can scale.

They could have used something like Pusher for about half of their implementation (the websockets, message pushing, polling, etc)

I bring this up because I built an OSS Pusher clone[1], for those people that want to deploy their own, built on the Play! framework.

[1] https://github.com/danbeaulieu/PushPlay
We do indeed have the ability to do this, but we decided to temporarily restrict some features to help ease the load on our server today (most notably the maximum search radius of 200 miles).
I presented at Startup Riot and it was a life-changing day. There are great presenters to learn from, the chance to get some exposure and make connections with like-minded people and investors. If you're running a startup, this is a great opportunity to move it ahead.
The User-Agent generates the Referrer header, not the site. Also, encrypted.google.com doesn't do it, the HTTPS standard says that browsers shouldn't send referrer headers to sites not in the same domain or not with https.
I've had the same experience with editing text, it gets really frustrating at times. I often find it's faster to delete chunks of text and rewrite them rather than edit. (I type reasonably quickly on the iPad.)

But now that I think about it, if you actually have a keyboard attached to the device this is a solved problem. Just port emacs or vi.
nginx supports http1.1 reverse proxying as of a few weeks ago http://wiki.nginx.org/HttpProxyModule

Mikito Takada (Zendesk) has some really helpful information regarding socket.io + haproxy specific workarounds via http://blog.mixu.net/2011/08/13/nginx-websockets-ssl-and-soc...
This has been on my mind as well -- my oldest child has just become a bookworm and I'm intending to get all my kids iPads this year if they can be more than just for games and movies.

While strong AI would be nice, well crafted content alone could take one very far. Then add in what Khan Academy is doing for tracking learning and you might be 90% there.
This is great! I am in the used market at the moment. But, I am not looking for one specific make and model of car. I am trying to spend 4k or less and I have some parameters like mileage, must have a clean title, etc. So, the search experience is a bit too rigid -- most places where I can select one, I'd like to select many. But the results display is way, way better than anything I have used.

Lastly, I feel like a lot of cars (at least in the price range I'm looking) are sold on craigslist, which isn't used as a source here, for good reason I'm sure.
The author has a fundamental misunderstanding of what laws mean, and how they change.

In England, it is illegal to eat mince pies on Christmas day? Why? Because centuries ago England was governed by a despotic, fundamentalist Christian regime that did not approve of Christmas celebrations.

Should I then refrain from eating the mince pie? No. I and millions of my fellow countrymen eat mince pies, and most are completely unaware of the existence of Cromwell's mean spirited law.

Why is this crime tolerated by the authorities? Because they do not go about like Robocop, enforcing laws as though they are some kind of computer program. Instead they understand that laws are a crude human attempt to model current social norms. Those social norms change over time and often the written laws don't keep up with the pace of that change.

The Internet has made copyright law outdated. Social norms are in the process of adjusting to the new situation. It's perfectly rational and normal for activists to hasten that process by defying the law, and encouraging others to do likewise. Obviously, the copyright lobby will react by trying to strengthen the laws, and step up enforcement. That's fair enough too.

Which side will win? Well opinions vary, but to suggest that breaking the law is in itself an immoral and irredeemable act, is naive.
Social News Reader Summify acquired by Twitter
This is a perfect case for asking people to vote with their wallet when too much really is too much. Come on, maybe this game is nice, but don't buy it. This is not an encouragement to pirate, but to give your money to nice people instead.
If we are going to reduce morality to the way a majority feels about an issue, then in a democratic society, does it make any sense to differentiate between morality and legality?

Of course it does, for two reasons: first, there is still a difference between the morality of an individual and of society as a group. Secondly, the fact that society fells something is wrong doesn't mean it has to feel OK with giving the State power to crush it. A good example is Free Speech.

Shouldn't the democratic process eventually result in laws that reflect the morality of the majority?

That would depend on a more pure and direct democracy. But generally they do; when the difference between them becomes too great, people tend to revolt.

But you should remember what I said above: people might feel its wrong to legally punish wrong actions. There's no contradictions in this.

How can you say a law is immoral without taking a vote? For example, if the majority in California voted for Proposition 8, how can it be immoral?

Assuming morality is relative, there's no such thing as an immoral law, because morality is not a property of a thing, but a relationship between a person (or a group of them) and that thing.

So I can say Proposition 8 is immoral, if I find it immoral. Which doesn't mean it's immoral for another person or society in general.

Note: I believe morals are natural laws.

I always found that interesting, because I never found any evidence for that. In what do you base your belief? Or is it pure faith?
Apple Unveils App and Tools for Digital Textbooks
"If you love wealth more than liberty, the tranquility of servitude better than the animating contest of freedom, depart from us in peace. We ask not your counsel nor your arms. Crouch down and lick the hand that feeds you. May your chains rest lightly upon you and may posterity forget that you were our countrymen."

- Samuel Adams
No, it's not analogous. "Causing loss of value" is not, and never has been, used to qualify theft. Counterfeiting maybe, but not theft.

I'm not sure what your "secret treasure map" example has to do with either theft or copyright infringment.
Sounded interesting. Opened link. Saw this & Closed.

From the website:
"UPDATE: I originally referred to it as a “gay photo” which I thought was kosher since I clarified that I was not using “gay” pejoratively nor do I equate “gay” with “compromising”. Sense was quickly knocked into me (thanks everyone!): steer a wide berth around the kinds of things bigots say and don’t rely on wordy explanations to counter a first impression!"

Seriously?
Agreed. I'm assuming that even though individuals might all like to live in a society that is unfairly biased in their favor, we have no way of creating that. The next best option is a fair society, where, as you say, legislation and reduction of barriers attempt to align the interests of the individual with the interests of society.
This is my conclusion as well. To wit, an approximate translation of his method into Ruby:

fizzbuzz = (1..100).to_a.map do |i|
result = "" # 1:23 initialize a variable
result += "Fizz" if i % 3 == 0
result += "Buzz" if i % 5 == 0
result = i.to_s if result.nil?
result
end

The corrected solution would be to change `result.nil?` to `result.empty?`, i.e. checking for "empty string" instead of "null".
I did download the new iBooks and some sample textbooks on my iPad 1. It's definitely on the slow side, but not terrible. Though that may change over time as future iOS versions are released.
Nice work.

My suggestion would be the ability to add a simple tag next to each vehicle. I could then scan the vehicles and mark which ones are off the list or I should follow up on.
Smash a nose, freak everybody out, nobody says shit after that.

http://www.youtube.com/watch?v=VtkM2SPaSJ8&feature=youtu...
Do I have to go figure out what Hipmunk is the _____ of to understand it too?
Scrub SOPA
Yep, also running Kubuntu Oneiric; nothing.

Edit: Actually, wait, I'm still on Natty. Still nothing though.
Is there any data on how many actual potential donors did a sample as a result of this campaign? The 7000+ reblogs is a very impressive number - but I'd bet nowhere near all 7000 went through the process. Would those 7000 reblogs even result in 7000 potential donors?

It could provide an interesting perspective on this hot topic of 'painless activism'. While getting tested is pretty easy, there are still plenty of points of process attrition for those to drop out (or not get started).
What does "cat" mean? Was the next file "bnc.jpg", "grep.jpg" -- even if it had something to do w/ felines -- was it in a dir of gfx of DNA visualizations, where the image would be a GATACA sequence or something? I don't know, but these are questions that immediately come to mind for me.
I help run a couple of wikis, and I think another reason they're a target is that the available third-party Akismet plugin doesn't "close the loop" - there's no "mark as spam" option to help fix the oversight.
United Ipsums of America » A Purely Presidential Lorem Ipsum Generator
I have been to the chrome webstore but I don't see a way to buy anything. Can you charge for an app on it? Is there an api that you can use to process payments if they go directly to your url?
It's easy to check, remove religion and see if it helps or not.

It's of no use anyway. In most recent cases where one side was religious and other one wasn't, religious ones were usually bad guys.
Stance on abortions, ID, this abomination. I can't remember them ever backing something good against secular people trying to do something bad.
Kindles (the eInk ones, not the Fire) might be a good push in the "for reading" direction. You really can't do much else with them, but they're really great for reading, as well as super light, and have amazing battery life.

I got a Kindle Fire, and reading on it is just not the same as with the 'real' Kindles - you always have 'other things' like email and Facebook lurking just a few clicks away. And the battery life is something you have to keep in mind, and of course an LCD screen just isn't as nice for reading.
Prevent a Super Bowl Commercial from Sacking Your Site
Not liking the answer doesn't give you an excuse to make a rage-post about it.

Doesn't this cover 90% of all discourse? It's not a rage post, it is an expression of my dissent. There is a difference -- just because you don't like my response to a statement doesn't give you an excuse to push indifference as a response, wait.. yes it does. It's still a crappy position tho.

I would love to see some evidence of that. Reddit does regularly raise a decent amount of money for charity- that is true. They could raise cash for this guy's election fund, but even Reddit has limits.

Reddit is regularly in the news over blowing up social issues (getting coverage on issues that were previously being ignored), pushing internet wide campaigns that result in corporations and politicians changing policy/stance, and yes raising money for charities. The fact is reddit is mentioned in the big news channels far more than most previous sites of a similar nature (with the possible exception of Digg at it's height). If regular media attention is not evidence of social power, I'm not sure what you are looking for.
I hate to crash the party, but why is the premise that "overriding links is absolutely okay" taken for granted?

Says who? Google and their `/url`? Facebook and their `l.php`?
Don't be so sure, the tablet market is still totally dominated by the iPad, and the education-angle for tablets is all but completely Apple.

Now, with all the major textbook publishers behind them, they're moving FAST into education.

How long until another platform even has a large enough install base and education push to be competitive? And that competitor will have to get the publishers behind them too, and then that system would have to get bigger than the Apple system...

I don't see it, I think Apple is already years ahead of their competition -- most notably because there is no competition for this.

Now the competitors have to -start- entering this market, ---start- making competing products, start building those relationships with authors and publishers...

It'll be an uphill battle and really only Amazon today seems to have any chance at all, and they've not really expressed too much interest in the market yet.
IBooks Author
There's also this ruby implementation that plays nice with all the pusher libs https://github.com/stevegraham/slanger
- Daniel is going to write another post detailing this. The answer is that when you combine CoffeeScript and a good async library, you can indeed get rid of that stuff.

- MoNsteR? =)
Think of that number as though it were a house, instead of breaking in and stealing its content, you download the whole house, does that make it less significant?
I hate to be THAT guy... but if SOPA passed, it could be more than just devices we're entrusting our lives to. I could engineer something like bit-torrent (which has legit uses), and be accused of helping people pirate. That could end in jail.

Just reinforces the point, that we have to work hard to keep our freedom.
Significant, because this is an editorial statement from the National Review, and I'd argue the National Review is the closest thing the United States has to a conservative publication of record.
I'm not sure that this is 100% accurate!

While it does have more of a sedative effect than alcohol, I don't think you can count is as healthier unless you're eating it or vaporising it!

Also in my (entirely subjective) experience I find it harder to wake up in the morning, given the same amount of sleep as sober days. No 'hangover' as such, but definitely feel more groggy for the first hour or so after waking!
You can take the moral high ground. Because laws can be wrong, an breaking wrong laws can be right.

Imho the economics of scarcity that is behind copyright is morally problematic. Thus breaking copyright laws could be right under some circumstances.

Also see the following for some more reasons, and some alternatives:
http://wybowiersma.net/pub/papers/Wiersma,Wybo,Enclosures_of...
Is there audio for this talk?
Twitter acquires Summify
Isn't Apple's announcement bad for society?
I would think that creating a locked in format that will be incompatible with everything would be the worst thing to do, and that creatives wouldn't stand for it. Graphic and Multimedia designers that I know of are still feeling the effects of Adobe's problems with Flash, why should we support another non-open, non-standard format? Won't we in the future be complaining that we have to find someone who still has an iPad in order to get this material into a usable format?
Then don't give it AND don't pirate it. Problem solved.
Eep, sorry, I don't want that to distract from the real point of the post! I think it will make sense if you check out the idea behind behind Aherk.
Where did anyone say that kids' parents will have to buy these? And where are you getting this "thousands of dollars" figure from?

Most high school students don't have to buy textbooks at all. The school provides them. And nowadays, most schools already have iPads and laptops (school-owned, the parents do not buy them) that the students use in the class room. I imagine this is something that the schools will be interested in buying.

A close friend of mine is a 4th grade teacher, and it is amazing how much technology they have in the class room now. Laptops and iPads for almost every single student. This is not a school for "rich kids" either. It is an elementary school in a small town in Iowa, and not a "rich" area in any way.

I just laugh and roll my eyes when I read all the comments here that act like someone is going to hold a gun to a poor parent's head and force them to go without buying food because they have to buy iPads and "thousands of dollars" worth of books. Where is this coming from?
This is an outstanding value-add for iPads. There are a ton of school administrators/school boards out there that love to try new technology in the classroom. They've been chomping at the bit to buy iPads for a while now, just waiting for the right reason.

I'd venture that being able to present it to the general public as both a cost-cutting measure and a technology initiative will greatly increase adoption.
Summify acquired by Twitter
just because you don't like my response to a statement doesn't give you an excuse to push indifference as a response

When did I push indifference?

Reddit is regularly in the news over blowing up social issues (getting coverage on issues that were previously being ignored)

Where? Most of the mainstream coverage I have seen of Reddit describes it as a place to trade pictures of young girls.

pushing internet wide campaigns that result in corporations and politicians changing policy/stance

When?
I'm always immediately skeptical when people are proclaiming a just-announced product as a "<insert big competitor> killer".

Let's see how things pan out before proclaiming a new champion.
I think you must be thinking of a different law or bill, because SOPA doesn't say anything of the sort.
Really neat interface, but all of the cars I clicked were no longer available.
One reason that some textbooks are so expensive is that they can take a lot of time and effort to produce and they're selling a few 10k of copies, at best. If you have a professional at the top of their field earning $200k/year, writing the book might take 6 months. That's a lot of books to sell to justify the effort.

Will there really be the best text books available for $15 sold only by Apple? Possibly, but I wouldn't bet that this is end of this.
The quickest way to get started is to have something you want to build and then build it.

Shoot me an e-mail if you have time. I have a couple of ideas floating around that might need some biotech experience.

Would love to get in touch. My e-mail is in my profile.
This is just the kind of junk I'm talking about. I get that the author disagrees. The problem is that neither he nor you back it up with any reasoning. You're just declaring that you're right and that anyone who disagrees is wrong. What's the point of that?

The simple fact is that copyright infringement is not a universally-agreed wrong the way e.g. murder is. If you want to convince people that it should be, that's fine, but if you argue from the assumption that it already is, that's circular reasoning and won't convince anyone.
Django in Production: Part 1 - the Stack
Wow. Poor guy. You try to make something useful, it gets into the hands of somebody that a country like IRAN hates... and you're to be killed. Never would have guessed this stuff happened/was possible when i was younger. blows me away.
Mole removal
Access the most popular and considered mole removal with modern techniques without pain.
Is it time to get rid of the Linux OS model in the cloud?
The funnel has to start wide somewhere.
Microprocessor Market to 2015-Cloud Computing to Fuel Growth of Microprocessors
Research and Markets: Microprocessor Market to 2015 - Cloud Computing to Fuel Growth of Microprocessors
2012 HDTVs Create a Bigger Opportunity for Apple HDTV
I agree completely. I run a service where thousands of files are uploaded a day, containing a persons location information (GPX/TCX logs from GPS devices). I have to use that data on a regular basis to further improve our ability to process these log files, which are generated by hundreds of separate pieces of software. The ability of my service to process these files requires my intervention semi-regularly. That wouldn't happen if, like some people are suggesting, I had to go to a safe deposit box to decrypt those files.
It seems Socket.io has not had any contenders yet..
No, but that would be tough on the current iPad as well, given the relatively low resolution compared to printed books.
It's all about the form-factor. That Apple recognizes this and is attempting to capitalize on it is fully expected.
SOPA backer reassures his troops: "Facts will overcome fears"
> ... [P]ublishing private info like this ... doesn't serve a purpose

Come on, that is obviously false. If being a blackhat is likely to result in bad stuff, fewer people will be blackhats. (It's obviously still vigilante justice, with all the usual pitfalls. But immoral doesn't imply ineffective.)
I have to agree. Any other industry would be testing the waters and weeding out garbage more thoroughly instead of paying the insane costs for every band and then not paying any of them.

The thing is... The musicians allow this. They sign the contracts, even with these articles all over the internet. They knowingly step into this.

I think it's as sleezy as the next guy does, but until the musicians stop agreeing to it so freaking readily, there's not much the rest of us can do for them.
Can’t you track it (on the server) on the page that sends the 302 response?

Another option would be to link to the real URL, and make a synchronous XHR from JavaScript (to your server) when the link is clicked.