skysight-inc/HackerNews huggingface dataset:
Here's a JavaScript version without the linebreaks (it uses zero-width spaces instead): http://tinkerbin.com/uEvgxZ6g

JS:
for(i=0;i<1000;i++) document.write(['\u2571\u200B', '\u2572\u200B'][(Math.floor((Math.random()*2)))])

CSS:
body {line-height: 1}
I use backblaze now who gives you free recoveries (via downloading) if you need it or you can pay to get a drive shipped to you (I forget the pricing on it.)

Why should I use you over paying $5 a month for backblaze? From what I can tell you basically do the same thing for almost 5x the cost.
There is much hype now with going 'back to basics'. You get more cred saying you are building things in C or C++ then you do if you are building them in C# or similar 'new' languages.

However, one big fact that is being left alone here is that there is no inherent speed bonus in using C, C++ or ASM over C# for most cases.

C++ apps can be faster than C# by a good margin, but you need to be able to program better in C++ then the C# compiler does in translating your good C# code. Simply writing in C++ != faster code. You have to beat the machine.
I was heading north on the Cassiar Highway in BC, a mostly dirt road which parallels the more heavily-traveled AK highway. I had been seeing black bears every day from a fair distance.

I was on a flat stretch of road with grassy banks. I saw a matted-down patch on my right and thought to myself, that looks like a bear slid down on its butt right there. Then I glanced to my left and found myself face to face with a grizzly.

It's funny, I knew what I was supposed to do from reading and talking about bears. But it was my experience responding to stray dogs that had trained me in how to respond. I just stayed calm and kept pedaling, same speed. It stepped into the road and huffed in my direction, but it didn't start chasing me.

I have kept that moment in mind during every "stressful" situation in my life since then.
Can someone clear something up for me? Are these chips comparable to the one in the Raspberry Pi? And are these developer boards are vastly more powerful than the Pi?

I'm not trying to start any arguments, i know the real purpose of the Pi and the usefulness of it, especially with the GPIO pins but i was just curious.
Sailfish – a real alternative to iPhone and Android?
Same here. I wrote shitloads of C++ in the past 10 years, but looking back, a lot of this stuff could have been written in Python or similar languages.

Not being a hipster here, but I've experimented with Go lately, and while it is not ready to become a main stream language - it is certainly a very powerful one and a good replacement for a lot of the stuff I've been doing with C++ and could not have been done with Python & friends. I'm glad it's in my toolbox now.
You know this can be done on top when you have demand for this? I prefer a non-bloated protocol format over XML anytime. How often does the DTD not matter at all ? How often is the encoding fixed by convention ? ...
Novelty chocolate stamped with your startup's name, to make it a little less transparent. :-)
Some books have been updated. Check http://isocpp.org/get-started and in general check out http://isocpp.org for more tutorials.
>Who uses a text editor that inserts whitespace into HTML?

I do as does anyone else who uses Zen Coding (or emmet).

>Why use an editor that adds whitespace in the first place?

Because it makes the code way, way more readable. Indentation allows you to easily see the structure of the HTML, so that you can see what is a descendant of what.

Look at this and tell me whether "Man Made" is part of "Debris" or if it's a separate sublist:

<ul>
<li>Debris:
<ul>
<li>Sand</li>
<li>Dirt</li>
<li>Man Made:
<ol>
<li>Broken glass</li>
<li>Pennies</li>
</ol>
</li>
</ul>
</li>
<li>Animals:
<ul>
<li>Cats</li>
<li>Dogs</li>
<li>Chimps</li>
</ul>
</li>
</ul>

Now look at it with indentation:

<ul>
<li>Debris:
<ul>
<li>Sand</li>
<li>Dirt</li>
<li>Man Made:
<ol>
<li>Broken glass</li>
<li>Pennies</li>
</ol>
</li>
</ul>
</li>
<li>Animals:
<ul>
<li>Cats</li>
<li>Dogs</li>
<li>Chimps</li>
</ul>
</li>
</ul>
Can anyone explain how this works? I never have got to grips with 3D.
Agreed. We're not used to see modern works reused freely because it has never happened. But with an open mind, I can easily see it. 28 years after your death, the world well deserves to finally use your work.
> so many yc start-ups have co-founder issues

My guess would be that it's the number of "companies in simultaneous crisis" that grew beyond control. I used to warn new managers that somewhere just above 8 employees is the point where you always have one that is going through a serious illness in the family, divorce, addiction to drugs/video games, or something else that will take up all of your attention (if you let it).

Extrapolating to companies, I'd bet that the senior YC staff can handle, say, 5 companies in crisis (e.g., "co-founder issues") but growing to 10 was just too much and things started falling through the cracks. Or became unfun, since when you're handling crises you're ignoring the stars, which is a very common new manager mistake.

And unfortunately you can't scale the VCs to handle more crises; you either need more time from senior YC-crew or you have to find the equivalent of a human resources department to handle those issues and just stop trying to fix them yourself.
>These observations are so straightforward that I feel like we might be getting argumentative just for the sake of it. For what it's worth, I'm in favor of decriminalization.

huh? I'm not trying to argue with you. I know that you think cannabis is a net-negative and I have no desire to argue with you about that. I respect your position and know that you're in favor of decriminalization.

I still do not understand what you're getting at. If I were to smoke a bowl, drink two beers and get in my car and got pulled over, I guarantee you I would be asked if I had been drinking because that would be far more present on my breath. Even if I had some weed in a grinder in my glove box.

>detecting marijuana anywhere in the car including its passengers is far higher than the likelihood of an officer detecting alcohol intoxication in the driver.

I have no idea how you come to this conclusion or find it obvious.

Besides, I think we're just going to disagree at the core of this. I like to think that there is more keeping people from recklessly drunk-driving than a "felony" on their record or losing their job.
No, I disagree. The fact that I don't know how to an acquire an 8th does mean it isn't easy to acquire.

You're discarding the context of the thread here. Everybody agrees that the "type of person to smoke" --- that is, people who are driven to smoke --- can readily acquire marijuana. But it does not follow from that that everybody can readily acquire marijuana.

Marijuana is stigmatized. Its distribution is cliquish and sometimes confined to subcultures (we may be blinded to that because demographically we tend to adhere to some of those subcultures). It's also illegal.

The point here is: marijuana would be much easier to get --- so much easier that it is likely that way more people would try it --- if it was legalized or completely decriminalized.

(I oppose criminalization).
I think these are all quite possible.

I'm not as negative as you are on top-school students. My experience is that Harvard/MIT programmers and quants are no worse or better than anyone else. Now, Harvard/MIT PM peoples... different story. Programming kills that entitlement mentality because the compiler does not give a shit who you are. Bossing people around reinforces it. After a few years, though, the effects of whatever school the person went to are pretty much gone.

What I think you are encountering is that, at a given level, the Ivy students who ended up there are going to be worse than the state-school kids who got to that same place. The best Harvard students are not going to be interested in a 0.02% equity slice of a mediocre startup, because they have the connections to be, if not Founders, VPs at least.

Speaking of equity, I'll add a 4th likely element:

4. Salary in startups has a relatively thin band: currently, about $110-150k in SV and $90-130k in New York. The real variation is in equity, titles, and glory if the thing succeeds.
It's not hard to understand, it's just oversimplified. For instance, even in your original analogy, a sword can be used to parry just as much as to thrust, so it protects as well. Likewise, shields can be used to physically push an enemy--this was a common application of shields in formation warfare.
It was never actually gone ...
To sort of support this, I know a VC that won't work with any divorced person until two years after the divorce. He says it takes that long to get back on course. And he has been through one, so he knows.
I signed up five years ago and yes it was more fun back then.

But was it because of the stupid boxes on your profile (e.g "Which dictator are you"), because it was new, because my parents weren't on it, or because every next show or communication of my favorite band didn't appeared on my home page back then ? I don't know.
Apple takes number two spot behind Samsung for all US mobile marketshare
Looks like he's ray casting it, no 3D code implemented, just the illusion itself.
> Also adoption to a new more exclusive network wouldn't be as fast since we already have facebook.

We also had "everyone" on MySpace. And before Friendfeed. And in times when most did not know what "internet" is, geocities.

Its not a rocket science to realize that to your users its all about cost of adoption versus reward they will get. Said that, if there is some new cool feature that Facebook does not have, and that feature is so awesome that is worth me spending my time on creating just another account, then I will do so. If that new website and new cool feature keep me away from Facebook, then Facebook will be in trouble. But so far, noone has come, just yet, with some universal cool feature that would be much cooler than socializing online with people I know offline via site that has mostly everyone signed in.

But rest assured internet will evolved because at the end of the day, its run by humans and their behavior offline/online evolves too. The "new Facebook", whatever it will be, will have nothing to do with whether current Facebook succeed or not (it did), as it made plenty of people millionaires, gave thousands jobs, and served it purpose of "connecting everyone in the world together".
This is why I'm glad HTTP 2.0 intends to implement SPDY's always-on encryption. It probably won't be long until governments find a way around that, especially the US government, who can pretty easily gain access to companies like Google, Verisign, and even ICANN, but it would be a good first step in the right direction. Hopefully future steps like web crypto will help increase the security of people's conversations online further.
Creating a strong incentive to horde worked for diamonds, sustaining demand for an artificially rare product for decades. Diamonds, after all, are just carbon much as Bitcoins are just binary strings.
In 50 years, it'll still be there, together with Lisp and COBOL :)
UK ISPs block The Promo Bay
C++ Primer has been updated for the new C++11,at least according to its author.
Awesome implementation, actually no advanced feature is used, this code could easily ported even to assembler in any device where you can set pixels in RGB format.

And indeed it is pretty impressive how fast the rendering happens given that the code operates at such lower level... Even selecting the color of every pixel requires non trivial work in the inner loop.

AWESOME code.
My favourite part of this is that the former director of the NSA, John McConnell's nickname is "Mike".
I think it's not only about being faster, but about having more control. If you actually want to write something for a machine, not a virtual one, you use C or C++.
Well... actually the code contains a minimal 3D engine, it is not an illusion, you have the observer variable and could use it to navigate inside the map created in the initialization function. What is more 3D than that? :-)
At present, Bitcoin is primarily useful for moving funds between alternate asset types (ie. as a means of settlement) and NOT as a store of value or investment. This has been independently stated by formal financial bodies, plus by the Bitcoin lead developer. People need to understand this.

See also the three primary functions of money at http://en.wikipedia.org/wiki/Money
Honestly, it's a lot more useful to me now. It's not as novel, naturally, but would I be happier if it was still just limited to people I knew from college and I still had to visit their profiles individually to see their updates? I don't think so.

If it hadn't evolved I bet it would've been "killed" already—for instance, if FB didn't have the news feed, Twitter would become a lot more attractive to me.
Eh, I feel like most people on reddit like being anonymous on reddit.
I'm asked if I've been drinking virtually every time I'm pulled over (I am not an unsafe driver). I simply say "no". If I've drunk 2 beers in the last couple hours, I am driving unimpaired and won't be questioned further.

But if I'm pulled over and my car reeks of weed, a bunch of things are probably going to happen. The cop is going to shine his flashlight throughout the car looking for sources of the smell. He's going to ask me to get out of the car and will probably then frisk me for his own safety. He'll ask to search the car. He'll question everyone in the car. In many states, he is likely to call for a drug dog to effect probable cause for a search of the car.

My impression is that these things not only happen but happen routinely at traffic stops where cannabis is implicated; the state police have a whole infrastructure ready to go to make cannabis arrests happen, and they are higher-value stops (arrests) than traffic stops. None of these things happen during ordinary traffic stops, and unless you've been driving erratically or spilled high-proof alcohol on your clothes or have an open container, nothing else does either.

The problem is that cannabis stinks (literally); it has a sticky, lingering, resinous smell. Alcohol simply doesn't generate the same evidence.
Can you explain how the uncanny valley applies in this context?
I agree. Floating windows would be horrible on tablets. I don't think this Samsung implementation is great for usability either.

Microsoft is at least heading in the right direction since Windows 8 allows two programs metro apps to run side-by-side. Unfortunately, even their implementation has flaws: it only allows fixed sizes of 70%/30% or 30%/70%. Users can't manually adjust the divider between the apps to 50%/50%.
Check the get started section of the new official language website: http://isocpp.org/
Show HN : Chords - Python recognition of guitar chords (first week-end project)
Correct me if I'm wrong but does this procedurally generate the textures for each block. I can't see any code for loading assets and the init function, has some quite complicated color code. If so that is awesome!
I've definitely experienced this on the receiving end, both with startups and new products, but also with random mailing lists that only send out updates sporadically.

A good rule of thumb for ANY mass email communication is to lead with a short explanation of why they're receiving the email: "Thanks for signing up for updates from Newproduct, a new platform for knitters to connect online."

Remind them 1) they signed up, 2) what they signed up for (updates), and 3) who you are (descriptively).
If the creator of Redis approves this, it's definitely awesome! =)
Right, but this should be perfect because they're paying the public. (Not that I expect the government to spend the money wisely, but in theory it seems to make sense.)
Update: Thanks for the repliers. You are absolutely right: this is a 3D rendering.

What I meant to say is that it is using Canvas 2D, instead of Canvas 3D, also known as WebGl. Antirez gave a wonderful explanation above[1]:

And indeed it is pretty impressive how fast the rendering happens given that the code operates at such lower level... Even selecting the color of every pixel requires non trivial work in the inner loop

[1] http://news.ycombinator.com/item?id=4862910
I totally agree. You probably meant "code operates at such a _high_ level" :)

low level = close to hardware, high level = high abstraction, like JS
More likely is that content providers would pull out of countries that implement "sender pays". The countries that want these taxes are, in general, marginal revenue streams (Africa, Middle East, etc).

Note: this may be the goal of the totalitarian regimes all along. They could not be accused of censorship when Twitter, Facebook & the like pull out.
This would be a great demo to see running in a responsive programming environment, ala Bret Victor's amazing Inventing on Principle talk (http://vimeo.com/36579366). I want to be able to click on hex values and get a color picker that updates the demo in realtime, and be able to click on various magic numbers and drag a slider to change them.

Incidentally, Bret Victor's talk was the starting point for Khan Academy's CS curriculum that John Resign led (http://ejohn.org/blog/introducing-khan-cs/).

Edit: I managed to get this running in livecoding.io, which does some of what Bret Victor was talking about (basic sliders and color pickers): http://livecoding.io/4191583. Not sure why it's running so much slower though...
If we're going to measure things in GDP, I believe that the disparity matters more than the hard numbers, which is why I pointed out that the former ratio of 1:3 is now 1:20.

There's another factor too: if you just have a plot of land that is able to provide food, water, clothing, and shelter for yourself without any actual registered trade you actually contribute nothing to the GDP. My understanding is that this self-sufficiency was basically destroyed by colonists.

If GDP has grown, which means the sub-continent is largely more productive now in capitalist terms, and therefore self-sufficiency levels have not changed but rather increased, why is it so dependent on foreign aid when it wasn't - as far as I am aware - in 1800?

Also, while post-colonialism obviously left the place in ruins, I think it's quite clear that you can't have post-colonialism without colonialism.

I guess at the end of the day I don't consider poverty to be measured in dollars and cents but in actual day-to-day quality of life, and I have a hard time believing that for the percentage of the population living in "extreme poverty" (less than $1.25 per day - note that dollars and cents matter more when you don't have other ways to provide for yourself), things were as bad when they had their own land and were self-sufficient. Unless you have something that clearly says, "No, life there has always been hell." It's not that I'm unwilling to believe something different, it's just that I want to hear it from someone who really knows about the history of how people lived at the time.
I know C++ very well, but I also know Ruby well.

Some startups *ARE* using them, just not web/app startups. C is still heavily used in algorithmic, infrastructure, and networking startups - But they're a different crowd. More neckbeard and device drivers than TechCrucnh and Rails.

But I do agree that it's use cases have been marginalized more.
Now Government will have yet another source of revenue to optimize. Since Government hates giving up revenue we could expect entities close to giving up due to cost to receive exceptions. Anything to keep the money flowing.
Honestly, given American culture, diet would be a better example. Think of the immense, immense benefit to the American public health if we literally regulated what people ate?
I'm sorry, I don't have this file, but I would like to look at it as well. If you find it somewhere on the web, could you post a link here?
I've overloaded some functions in javascript templating functions before to regex out whitespace between tags.
Had some issues with cdata stuff, but it could be tweaked to perfection i'm sure.

https://github.com/sechrist/ejs-shrink
Yes, the procedure generates the texture of every "type" of block, the first loops after the init() function. 16 different types of blocks are generated.

Then a random map is created, with the "center" that is set to empty blocks with high probability. Finally a function traces the map on the screen at every tick of the clock.
This is my first week-end project I cooked up in a few hours. It uses pyaudio to acquire sound from the microphone and numpy to FFT the signal. Matching is done by shortest distance from FFT to fingerprints of chords.

I'm looking for pointers on what to do next with this small project, especially how to improve the recognition.

Plus, if you spot any big trouble in the code, feel free to enlighten me. I'm still a junior Python programmer, and your feedback won't be lost.
You can also think about the Fourier Transform in terms of its physical properties.

For example, the Fourier transform is behind quantum uncertainty (dp.dx>h). Think of it this way: the inverse Fourier transform of a frequency impulse (zero extent) is a sine wave of infinite duration. Truncate the infinite sine wave and its spectrum ceases being an impulse, broadening into the shape of the windowing function used to truncate the sine wave. That is, an attempt to constrain/define time leads to a broadening in frequency, and vice versa. The uncertainty principle naturally arises from using the Fourier Transform in an environment where "you can't have infinities".

This is true of any two variables which are related by a Fourier Transform. Yes, position and momentum are related by a Fourier transform (as are energy and time).

The thinking also works for the other extreme: if you consider how a time impulse (zero extent) related to its Fourier transform, a flat spectrum of infinite extent on the frequency axis.
Ok, that's pretty cool :P
No I really mean low level :-)

Javascript is high level, but here notch is using it as a low level framebuffer.
Or a web browser....