skysight-inc/HackerNews huggingface dataset:
Re-formatted for reading,

#include <math.h>

int main()
{
int v, i, z, n, u, t;

for (v = -1;;) {
for (n = pow(1.05946309, "CWG[Cgcg[eYcb^bV^eW^be^bVecb^"[++v & 31] + (v & 64) / 21), i = 999;
i;
putchar(128 + ((8191 & u) > i ? 0 : i / 8) - ((8191 & (z += n)) * i-- >> 16))) {
u += v & 1 ? t / 2 : (t = v & 6 ? t : n / 4);
}
}

return 0;
}

Can this be simplified to just use an incrementing t? Otherwise I'm not sure it's in keeping with the spirit of the original. :-)

BTW, the increment and use of v without a sequence point in between may bite.
> But at the same time, understanding what caused a war, what the political and social aftermath looked like, and the cultural perceptions of the war are also extremely important.

And those paragraphs will contain the word "war" many times.
Didn't have the first show I went to check. (Shark Tank)
To answer the actual question: whether C should play this game depends on C's estimated probability of A and B coming up with a winning strategy. In the real world, there would be many people with whom I would play this game.
I don't disagree that the foundations of this technology were laid earlier than 30 years ago (NMR->MRI); there was, of course, even other medical imaging long before that (x-rays, PET, etc). I still think that in 70 years we're going to be able to look at this 30 year span and say it was 'game-changing.' And 100 years from today "we'll" (you maybe- I'd be 150 years old!) look at the years 2010-2040 at "game changing."

Look at 1800-1830 from the point of view of 1900: steam engines.

Anyway, it's fun to think about.
It wasn't so many years ago that xss wasn't on anyone's radar (just like sql injection years before that). Over the years I've worked on dozens of sites that were exploitable via XSS (many older ones that probably still are).

It's easy to get wrong - especially when you look through the list of different subtle ways you could mis-escape something [0].

The only thing protecting the majority of sites is that exploiting them just isn't desirable.

[0] https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_She...
Show HN: Specter no-nonsense blogging
Now we can all fight the Grammar/Style Nazis around!

On the serious side - should be useful, I'd certainly like to have a local offline version to add it right after aspell in my editing pipeline. Just to see if I agree with the results.
That could have been the Intel transition but, although announced in 2005, the first Intel Macs were actually available in 2006.
It's worth saying that lots and lots of countries have gone through this conversion process, sometimes multiple times -- think of all the countries colonized by the British (and thus converted from their existing systems to the British measures), who then sensibly converted to metric at some point after independence.

All of them were equally wedded to the pre-change system (fixed in mental habits, etc.), of course; there's nothing special about the American situation.

There's obviously a cost, but it's most severe for the older generation (whose mental habits are so ingrained they have real trouble adjusting) -- even for younger adults, your brain adapts to the new system after using it regularly for a while. AFAICT (I moved from the US to a metric-using country 7 years ago) it's never quite the same as the system you grew up with, but I'm pretty comfortable with it now.

It's something like learning bad words in another language -- they never gain the burned-in power of expletives in your native language, but your ears certainly learn to perk up when you hear them, and you can use them perfectly well.

Summing up -- quit whining, America, switch to better measurement systems, and the difficulties will smooth out more quickly than you think. :)
Eh... I'm from Malta. Representative or not, I'm thinking "a" or "I" might be the only words which fit there...

Reminds me of a department manager who insisted everybody place a push pin on a world map he hung up in the office, to show where everybody was originally from. I obliterated my own country in so doing. After that most people assumed I was born on a cruise ship or something...
It seems like when you scroll or zoom the browser URL is rewritten. The URL corresponds with the current view of the image.

Decent idea, terrible implementation.
How social networks differ
Does it support transparency/tint for background?

(Yes, I know, but it's not '97 and I would actually like to have the thing I'm constantly looking at a bit more visually appealing.)
This advice is also similar to what I tell undergrads who are about to step out into the workforce for "just a couple of years before going back for grad school." A few people do it, but the vast majority will get used to the new salary, get married, and that pretty much ends it.

I tell them that the experience, particularly at a google/MSFT/apple, is worth getting because you'll have a much more well-rounded perspective than those who come straight from undergrad. But no matter how frugally you lived while working, it's the strong spouse that is OK with a 10x pay cut (> $220k -> $22k, at least for me in the sciences).
The geek in me loves this and wants to see/hear what talented people in me will do with it. The person-with-ears in me wants it to die a quick death.
Nice place though. I live on an island as well, but you'd think we ran half the planet the way the government go on (UK).
except that it doesn't. it's a pissing contest based on clicking links.
That's what many people say - but on the other way, that's how I make my living! And surprisingly, it works (it's not $9.99 per wallpaper, as you might think - it's for entire account, unlocking everything I have to offer).
Such a great story. Glad to see you making these changes. My favorite part of the article is your income graph (though it needs a legend). Two things are completely fascinating to me about your story:

- The consistent, predictable growth of Planscope month over month. Even when you have roller coaster revenue from other projects, Planscope provides a solid base.

- How you are using multiple products to feed off of each other. Selling the book to Planscope customers, then using the book as a gateway drug to get more Planscope customers and finally selling the class. Very well done.

Thanks for teaching me so much!
I was hoping for more words when you zoomed, like a hierarchical wordle, but I realise that that was not the purpose of the map. Interesting way to get students thinking about history.
I think we're on the same page not seeing a real use for them. :)
I've been using Redhat/Fedora/Ubuntu on and off for the last 12 years or so but I've largely stayed away from any Linux desktop environments for the past couple of years as I've embraced the Mac and the Cloud PaaS services. A couple weeks ago I had a chance to use Ubuntu Unity at work for a week and OMG WTF BBQ. The design of Unity had unleashed one the largest nerdrage moment I've ever had.

1) Alt-tab switcher highlights 2 big icons with the same color value. Which is my current app and which is the one I'm going to switch to? I have no idea. Takes too much brain power to process the signals.

2) Default binding of Alt to the search box thingy. Whose bright idea is this? Binding the key closest to the thumb = invitation to trigger the search box erroneously all the time, especially if you use Emacs or used to using readline shortcuts in the Terminal.

3) Where the hell do I go to configure anything? How do I rebind Alt so I can get readline keyboard shortcuts everywhere?

4) Why do I sometimes get multiple of the same app icon in the dock?

5) How do I switch to another instance of the same app? It doesn't work like Windows or the Mac, the only way I discovered was point my mouse to the tiny little arrowy markers on the left of the very subtly active app icon to trigger a Mission Control-like thingy.

6) Don't even get me started with the unavailability of Chromium on 12.10 and the Amazon search results...

If this doesn't kill Linux on the desktop (if it's not dead already), I don't know what will.
Xeyes with a touchscreen doesn't work so well, you have to touch the screen before it tracks.
Not only does it generate a non-standard format, the HTML has significant problems:

- It would be relatively hard to reconstruct the email with a script, e.g. the headers are formatted as a plain text with <strong> for the labels, the data left unmarked in anyway and <br> for line breaks (no ids or classes at all). From http://sparklingnetwork.nl/nopriv/2012/12/26.html:

<strong>From:</strong> "Remy van Elst &lt;relstnl@gmail.com&gt;"
<br />
<strong>To: </strong>""backup@sparklingnetwork.nl" &lt;backup@sparklingnetwork.nl&gt;"
<br />

- It's invalid markup[1], with the email's HTML contents inserted wholesale, including the <head> and <body> tags.

- Not sure if this is a problem with NoPriv.py, or if it has occured earlier in the chain, but something has screwed up character encodings, e.g. in the URLs here: http://sparklingnetwork.nl/nopriv/2012/12/1.html (The page is served with no encoding specified nor is there a <meta http-equiv> so it defaults to UTF-8, and these characters are invalid. However, even in Latin-1 or anything else, they are definitely not '=' which appears to be what they should be.)

(The markup is also horrible, with strange indentations and a lot of extraneous whitespace and one-cell tables.)

[1]: http://validator.w3.org/check?uri=http%3A%2F%2Fsparklingnetw...
Show HN: HTML5 Boilerplatter, optimised for loading speed & real life
Same here, tried Chrome, FF and Safari.
I would publish the app first and see what the returns are like, before I worry about incorporation.."A compelling product with no direct competition" , usually means the product is not-quite-so-compelling
Taiwan is oficially the Republic of _China_, so I doubt they would take offense with that.
Actually I've done the hash on this approach and this still results in a losing game for C.

Instead of HH and TT being winners with this approach, HT and TH become winners with this approach. Any combination of opposite or agreement will result in the same net odds.

The way for C to win is for A or B to treat it randomly.

A very interesting experiment would be to test how long it would take a random human subject A with no contact with a consistent B (but a memory for past results) to figure out how to win (in cases where they were told winning was possible, impossible, or neither).
I earned pathetically $6.30 for my iOS App this quarter
My app name is binceipt, which send instant receipt to your customer email inbox.

LOL as you like.

I guess 2 things causing my pathetic earning are:

1. Sluggish Interface

2. Extremely less business/people want to send email receipt as they are rich enough to constantly buy receipt printers, receipt papers, printer ink/ribbon and etc.

3. They do not give a shit about technology

What do you think?

Cheers,
Mark Thien
The question should really be rephrased to "Will C make money if he/she plays this game?" Maybe C doesn't like money, has too much of it but really only likes giving it out after coordinated acts of random chance. Then C would love this game regardless of A and B's strategy. Maybe C spends all of his/her free time at RPS tournaments, throwing singles at the winners like a rap video.
OS X is based on NeXTSTEP which is in turn based on Mach. Mach is a micro kernel based on BSD.
Linux is NOT an OS and Linus did not create the OS. The OS is GNU the kernel is Linux. Thus you are comparing numbers for a kernel (Linux in Android OS versions) vs. numbers of OS's (Windows, OSX, iOS). This isn't a technicality either.

Get it straight because as the article stands, it's unresearched garbage.
Why would a HTML5 app need to exceed the experience of a native app ?

It needs to meet the needs of the user, that's all.

And if that can be done with X-platform HTML5 then that might be the advantage the developer is looking for.
I guess that makes Google Adwords totally irrelevant then.
> People get into mortgages, in new car payments, etc, and into a deeper debt trap every time

Only if they choose to.

I haven't got caught up in upsizing (lifestyle, houses or even having a car). My aim is to pay off my mortgage as soon as possible, and that's made easier in a few years when our childcare costs will drop dramatically (nursery is frighteningly expensive!). Our lifestyle isn't completely frugal, but we keep most of our holidays in the UK visiting friends/family, rather than splurging on worldwide travel. Most of the money from bonuses, share options (those were the days) and pay rises go towards paying off chunks of the mortgage rather than upgrading lifestyle.

Good public transport (London, UK) means that owning a car isn't a necessity; buses/trains/tube/taxis will do most of it and there's Zipcar or other rental cars to fill in the gaps.
It's not just aesthetics. I often work on a cramped screen and being able to see just-so-slightly through the terminal is a big help.
Despite it being The Register, it looks like they got this one right.
Yes indeed. Easy fix: every elected official who doesn't make good on his or her promises gets executed at the end of the term.

Guarantee there will be no more false promises. Period.
Secure erase depends on the technology of the drive and the prowess of your attacker.

If you fear the NSA seizing your disks, consider the tradeoffs of explosive disposal.

If you fear a technically-savvy reporter going through your trash bin, overwriting your disk three or four times with patterns will be fine. But it's probably faster to take a drill and make a couple of holes. Make sure you hit the platters.

If you are selling your old hardware and just don't want your unencrypted stuff to be recovered by a sixteen year old with no budget but lots of time, overwrite the disk once.

If you're trashing an SSD, make sure any patterns you use for overwriting are not compressed out of existence by the controller. Or pull off the controller and crunch it.
Ask HN: What is your preferred text editor color scheme?
I was wondering, what color schemes do hackers use when programming? is it mostly dark background or bright? does it change for different programming languages?

For people who use dark color scheme: doesn't it hurt your eye?
Are you referring to Google's search interface or Google Apps, or any other Google service?

I don't really have any complaints about the search, only thing sometimes bugging me is G+, especially the Android App. Some features just seem to be hidden or only reachable in Ways no User would ever imagine (ie the 'Party Mode' feature, which really is pretty cool, but just so unreachable).
A collection of bad mobile web experiences (app download blockers etc) are showcased here http://wtfmobileweb.com/
Be careful, they aren't kidding when they say "Nitpicker". Many of the mistakes covered (for example while/whereas) are extremely common and are acceptable in all but the most stringent circumstances.
I'm usually eager to jump on board with recommendations from Stoyan’s performance calendar, but Anne’s description of baseline loading doesn't comport with my experience in Webkit browsers (and possibly others). They don't "display instantly after file download", but display almost line by line as the file is downloading, with a partial image appearing from top to bottom as information becomes available. Since this particular trick is about perception -- users being given some visual indication that that the image is loading, and data as soon as possible -- the difference between progressive and baseline loading seems like it should be subtler than the article suggests.
Agile project organization
Works for me on FF 10. I run with NoScript and it even produced meaningful output with javascript off (although much nicer with javascript).
Same as above - get a native English-speaker (or if you have one, get a new one with more professional writing experience) to redo your copy.

Also clarify who your product is aimed at. Is this something I as a consumer sign-up for, or something that merchants sign up for and then provide to their customers? Of your eight reasons I should sign up, for of them are essentially the same thing ("you don't have to print anything") measured in different ways.

If it's merchant-focused (which I think it is), show an example of how to integrate with an existing POS system, and that you have a one-button pre-made system to do this. As an SBO, my core competency isn't programming against an API, and it isn't paying for a contractor do it do for me - it's selling stuff. If you want me to add this to my existing sales workflow, it needs to be beyond easy.

Add more detail about what exactly your product does, aside from provide electronic receipts. How do I make these receipts? Can I as a business owner customize them? What kind of reporting do I get? Similarly, add some screenshots/action shots. Right now the only meaningful bit is one screen of an iPhone app (I see nothing that you've customized on the iPad there), which is small, unclear, doesn't follow the Apple UX guidelines, and doesn't have the same look-and-feel of most other iPhone apps I have.

Once you've done all that and convinced me that I'd like to sign up, make it easier to do so. From the main login page, I have to find a link in the Bootstrap header (which has low contrast against its backdrop, then click a tab, and then enter my information.
I have that book on my reading list. Would you mind giving me an exec summary in the interim?

I would be very grateful.
Precise data extraction with Apache Nutch
We already do that on windows 8. We put windows 7 on the machine again. Every vendor who ship kit to us are still shipping windows 7.
And in the US, it's about nothing at all because unfortunately one of the protections against voters and one of the most ill-conceived ideas of government has been the electoral college. If you're not in the small percentage or so whose vote might count (read "swing-state), or whose state primary / caucus comes so late it's irrelevant, walking into a voting booth (or filling out a vote by mail, email or whatever insecure thing they do these days) is a waste of time.

Then there's the matter of the compromised voting machines ...
cat ~/.bash_history | cut -f1 -d' ' | sort | uniq -c | sort -rn | head -10 | cut -b9-
Bad vs Good Search Experience
Googling "ream-racing" doesn't give any useful results. Could you elaborate?
Publish it afterwards!
Duh!

* Blue line - Planscope
* Yellow line - Books
* Green line - Workshop

Thanks Nathan!
You've yourself admitted that you're from a top school so maybe this is not a very representative sample . Atleast its true that under the present economic conditions STEM graduates are doing better in general ?
Yes! This frustrates me to no end. A surprising culprit is (or was, I stopped using them because of this) Hipmunk. I would think that a new, web-savvy company would have a reasonable web site. But they don't. Their web site is complete garbage on a mobile device and the solution is to download their app. Sorry guys, not gonna happen.
PHPPHP: a PHP VM in PHP
Several months ago I took all the Compute Gazette and Run magazine issues, wrote some quick code and created a montage/wallpaper of their covers:

http://telparia.com/CommodoreMagazineCovers.jpg

I then wrote some more code to try and find the most colorful game ads from the pages and came up with these wallpapers:

http://telparia.com/Commodore_Game_Ads_1.jpg

http://telparia.com/Commodore_Game_Ads_2.jpg

http://telparia.com/Commodore_Game_Ads_3.jpg

http://telparia.com/Commodore_Game_Ads_4.jpg

http://telparia.com/Commodore_Game_Ads_5.jpg

Just thought I would share :)
Let me elaborate. All I see is a blank page. Making a basic page that works without JavaScript is not that hard.
What strikes me most, is the fact that most of these popular entries would'nt fit so well in traditional encyclopedias, either because they're too ephermal and "lowbrow" (related to mass media trends), or because they require constant updating (Google, Facebook). It seems Wikipedia isn't just an encyclopedia anymore, it has become what Google search used to be.
Been using uzbl on Arch for a few months now. Great little browser!

The biggest selling point for me was the keyboard-centric control. I use a keyboard-centric window manager and I use vim for code editing, so everything I do on my Linux install is with the keyboard and uzbl makes web browsing keyboard based too.
I think it's a typo for "beam-racing".
San Francisco 49ers Raid Silicon Valley, Hiring Former Facebook, YouTube Talent
I'm a heavy command line user (I don't have a graphical file explorer/manager for instance). Here is my top 42, in order of usage:

ls, cd, git, ssh, make, e, cat, veille, rm,
wpa_supplicant, grep, evince, mv, x, dhclient,
cp, echo, todo, mplayer, scp, man, mkdir, ack,
pdflatex, apt-get, apt-cache, sed, less, feh,
racket, gcc, wget, xrandr, bg, svn, pmount,
for, gpg, halt, ping, tail, top.

"e" is an alias for emacsclient ; "veille" is a script which toggles between "xset s 5" and "xset s default" ; "x" is an alias for "xinit" ; "todo" is a script which manage a text file which I use as a todo list.

"ls", "cd", and "git" are far more used than any other commands : 14808, 13256 and 10078 times respectively, against 3919 times for "ssh" which is just behind.

I obtained these data from my .bash_history. Here are the place of the commands that are listed in the article :

"tr" is 76th
"sort" is 66th
"uniq" is 120th
"split" is there only one time like many other command so its rank is not relevant
Substitutions operations are what most "for" do so it is in my top 42. However see (1) below about the article.
Files size are a mix of "ls" for individual file and "du" for multiple files, "du" is 65th
"df" is 63rd
"dd" is 473rd
"zip" is 123rd (and funnily "gzip" is 122nd)
I didn't use "hexdump"

(1) About the following line

for i in *.mp4; do ffmpeg -i "$i" "${i/.mp4}.mp3"; done

I have two remarks. First, using the "-vn" of ffmpeg would accelerate the conversion by making ffmpeg ignore the video entirely. Second, substituting with '/' in the Bash expansion is not the right way to do that. "${i/.mp4}" would be "$i" without the first occurence of ".mp4". It is '%' that you want to use here.
While There Are Some Glimpses Of Progress, Mexico Faces..
Out of all the lines you have there - the blue line is the more interesting (hopefully you'll be able to accelerate that growth).
It appears to munge newlines, entering

A
B

(with any number of empty lines between them) outputs

AB

Other than that, I like how the output is presented.
Don't be fooled. Slovenia is most certainly not one huge party.
One man's plan to bring "Portal" show to Vegas
There's no such thing as a "lightweight webkit browser". Just because you delegate all the hard stuff to a library, you're not "lightweight".
The gaming school of law enforcement: How video games can..
Because the range of devices we decide to include has increased?
JavaScript: Clarifying The Keyword ‘this’
From distrowatch http://distrowatch.com/dwres.php?resource=popularity

"The DistroWatch Page Hit Ranking statistics are a light-hearted way of measuring the popularity of Linux distributions and other free operating systems among the visitors of this website. They correlate neither to usage nor to quality and should not be used to measure the market share of distributions. They simply show the number of times a distribution page on DistroWatch.com was accessed each day, nothing more."
"for i in *.mp3" doesn't work with spaces and some other "special" characters in filenames, see here:

http://unix.stackexchange.com/questions/9496/looping-through...
That I've failed.

If one thing among a handful of fundamental things goes wrong, I'm homeless or dead. I have no savings or backup. I don't have the courage or health to be homeless.

Don't fail. I don't mean the cute fail fast and pivot. I mean don't fundamentally fail managing your life. There is no do-over.
Focus on my health.
war in Spain? why?
That's not enough, you need to split lines on "|" and ';' and before that after for's "do" and if's "then".