skysight-inc/HackerNews huggingface dataset:
Jeeeeesus christ, that grep is ugly.

grep "[0-9]\{3\}[-]\?[0-9]\{3\}[-]\?[0-9]\{4\}" filename.txt

The default behavior of grep appears to be to not treat {}?() as special characters. Which is generally boneheaded in my experience, and certainly in this case. An irritated man will use egrep--short for grep -E, "extended regexes"--i.e. sane regexes:

egrep "[0-9]{3}-?[0-9]{3}-?[0-9]{4}" filename.txt

This is just a direct translation. If I wrote the regex myself, I would probably also recognize spaces as delimiters (as in "999 999 9999"), and maybe note that the area code might be missing or have parens around it, etc.--depending on just what I was trying to parse. I dunno, maybe he's parsing regular machine output and his original regex would suffice, so I won't go farther than an equivalent translation. But I will, for kicks, mention this:

egrep "([0-9]{3}-?){2}[0-9]{4}" filename.txt

(Note that - is not a special character in either grep or egrep, although command-line programs in general treat specially any argument beginning with -, so it is a good idea to use [-] instead of - if that happens to be the first character of your string. But after that, no.)

Also, for general purposes, grep -P (Perl regexes) is best of all, because it can do *? non-greedy matching. A really irritated man has aliased pgrep to "grep -P --color=auto" in his bash startup file, and has also (perhaps dangerously) aliased grep to it as well. (That breaks fewer things than altering GREP_OPTIONS.)
There are significantly fewer bughouse openings than there are chess openings. Many chess openings create weaknesses which can be easily exploited in bughouse. It is for instance not recommended to move pawns other than the d- and e-pawns. Bughouse openings are generally geared towards dominating vital squares and fast development. Captured pieces become available after the first few moves and it is important to develop at this stage as there is often not enough time to do so later. Development also helps to defend against early piece drop attacks.

http://en.wikipedia.org/wiki/Bughouse_chess
Here's a simple checklist for all you CS (Systems) PhDs not sure what to do next. When writing a paper, which section of the paper are you most excited by?

A) Introduction (big picture/motivation/related work): You should remain in academia where you will enjoy writing grant proposals, or be a senior exec (not hands-on) in industry.

B) Design/Implementation: Academia is not for you. Join a cool startup or Google/Facebook/... (or of course start your own venture)

C) Experimental Evaluation/Results: Join industry (tech or finance) in a quantitative role.

YMMV. Also, this is not applicable to PhDs in Theoretical CS or in other Sciences.
I would have rather seen the hacking done from within China, with messages in readable, relevant Chinese. It probably would have been far more powerful as a statement. Under those circumstances, I'd find it hard to call it criminal; it would be civil disobedience.
try the search engine blekko. see 'slastags' this is exactly what you propose. User curated vertical search engines...
How to Manually Detect If You're Infected With the OS X Flashback Trojan
whatever makes you good in software and statistics. I did a PhD in signal processing (statistical reconstruction for medical imaging) worked as a quant for 2 years, and then sofware contracting for another 2. I'm now doing some other startup stuff.

the top fields that come to mind that would be good on the EE side are machine learning, signal processing, control theory, communications/information theory. machine learning is probably the best.

and also - don't just be a matlab jocky, matlab is used heavily in industry, but if I had to do it again, i'd have learned more C++, python, and R

R and matlab are both problematic when you need to integrate with production systems, but at least R is free. Python, in my opinion is best
Tech Industry Press Is Complicit in Keeping Women on Industry Sidelines
How To Install Cyanogenmod 9 On Samsung Galaxy Ace
Yeni eski sevgili
That's an interesting point, and one that further suggests that we're better off shifting to more services and less manufacturing for the low-end stuff.

Eventually automation might replace the bottom level of nurses and plumbers, (more so nurses than plumbers), but it will take _much_ longer.

I have some family/friends who are in that 'only high school diploma, no credentials/money/drive to go to a non-community college' trap, and one big barrier is that the training programs for Nursing Aides, Auto Tech, and even office/clerical have 1 year+ wait times. Even though they _want_ to gain these skills, they need to support themselves until they get into the program, and while they're working through it.

Even though there's great demand for the skills, and workers who want to gain them, the training pipeline just hasn't expanded yet.
This deployment of what's called "www" ("dub-dub-dub") is somewhat monolithic in the sense that it is large, but it is not really an "all-or-nothing" deployment. It is tested internally (for at least 2-3 days) by employees (engineers and non-engineers), and then on a subset of servers, a larger subset, and so on. Performance, error rates, interaction rates, and so forth are compared between the incumbent and new-hotness versions for a reasonably reliable indication of issues throughout the rollout. More on the www push at https://www.facebook.com/video/video.php?v=10100259101684977

Teams that run "services" (such as the one that powers the "typeahead" search bar at the top of Facebook) deploy their services separately, at whatever pace makes sense for them. These are almost never in tight lock-step with anything else, for the usual reasons.
I started a project on GH with a starter python implementation:

https://github.com/tantalor/detect-license

Looking for contributors to add more implementations (JavaScript, Ruby, etc), examples license files, and tests.
Groupon == people
disclaimer I work at blekko. What you are describing is like saying that wikipedia is useless because not everyone edits articles. As it turns out, a very small number of people can curate an enormous amount of content on the web, and you can get very good results. try searching for 'cure for headaches /monte' on blekko. the '/monte' slashtag gives you results for bing, blekko and google, with branding removed.
Payoff for Hybrid and Electric Cars Takes Years
So, what if I live in California and buy a gift online from a company in Washington and have it shipped to my parents in Ohio?
> I'd love to release source, and USE gpl software, and even make a unsigned binary available that if you could hack your own hardware to run, you could. But even if I did, the GPL would prevent me from releasing said software using GPLed libraries, as the actual binary they get has to be trivially copyable. That's crap. That's restrictive. Why can't I supply you with an alternative binary on a website just like I can with the source?

I'm afraid I don't understand your point... You can distribute GPLed software as binaries, but you must provide the source on request.

Edit: Perhaps you mean that you want to release your source code under another license?

> Restrictive isn't hate. It's a description.

My point is that all licenses are restrictive in a way or another.

Even WTF-type licenses or the public domain have implicit restrictions.

Singling out the GPL as restrictive is insulting, because its restrictions are designed to enable the freedom for people to check the source code for vulnerabilities or user hostile features (how many backdoors for the US govt. are there in Windows?).

> GPL licensed code is useless code to people who develop for top tier gaming platforms other than the PC.

... because of restrictions imposed by the SDK user agreement.
Three questions to ask yourself before creating that Pinterest Clone
"We have new nuclear processes that were once derided (cold fusion) being quite durable"

I'm sorry but this statement is completely false. Cold fusion is not taken seriously almost anywhere, much less is it considered "durable" by anyone including its fiercest proponents.

edit: Even so, many of the most promising new energy technologies (superconductive transmission lines not being one of them) aren't on track to be viable or disruptive by this 2030 'disaster.'
It can be fun single player too. There's no concept on "winning" then, but it's still challenging to find sets.
https://github.com/sblom/dcpu16
>I could care less is acceptable[1] US usage.

Not true. It's incorrect and therefore not acceptable.
It's frightening that this would happen to a company that actually has a relationship with google in as much as having an account rep. Those of us nobodys who are just running generic ads with no personal contact would have no recourse at all.

I will say though, in every one of these cases there is always a little something odd. You never read about this happening without some small thing that was wonky about the setup. In this case there's a mention of the personal site without any details of what that is. I'd be curious to know what that was.

Even still, it sounds like a gross over-reaction.
Map your LinkedIn contacts and their skills
They can recommend this all they want, but until the problem of unjustified medical malpractice lawsuits is addressed as the serious problem that it is, doctors will continue to overprescribe.
I think this is more slightly more on-topic as a reply here

> Consider the integers from [0,1000]. Suppose a particle starts at position n. At discrete instants of time t=0,1,2,…, the particle moves up or down with p=0.5. What is the probability that the particle reaches 0 before t=1000?

The answer is 50%, right? I can't explain it properly, but my thinking is that the random walk is symmetric and 0 and 1000 should have equal weights. Maybe a good explanation is harder than the correct answer in this case.
Those words have slightly different meanings in England vs the US I think.

In the US upper vs middle vs working class is related to income and lifestyle. If you're a coal miner who somehow makes 80k/year (i just made that up, who knows if it exists) you'd be firmly middle class in popular discourse the US, despite the fact that you're in a working class job.

Similarly one auto-plant can pay union workers 70k (middle class) and non-union 30k (working class, or at least on the line) for the same job.

I think in the UK it's more delineated by job and upbringing than income, right?

Note that I'm just speaking out usage by normal people/media, those words (although usually avoided in favor of income deciles) can be given specific definitions in academic research.
Indonesia’s deadly acid volcano
If there is any job on Earth that could be described as hellish, it’s sulfur mining on Kawah Ijen.
Ask HN - multi engine js eval
Is there a site, where I can paste javascript, and see result of this javascript being run in each browser/javascript engine?
What to expect from a start up accelerator
The only requirement I have for these things is that the after event drinks are held at a place where you don't have to raise your voice to have a conversation. Most pubs are satisfactory for that purpose.

I've never seen anyone get completely hammered at these things, but I don't stay until the wee hours either. I think the fact that your networking at an event in your profession should temper you a bit, and from what I've seen, it does for most people. You don't want to make yourself out to be an ass that can't hold it together. That, in my mind, is the difference between having nice conversation over a few drinks and "binge drinking." Binge drinkers are there to get blackout drunk as fast as possible, not to meet new folks and have interesting conversation.

Having said that, I don't think I've ever actually witnessed binge drinking at a tech event.

As a rule, I try to keep things to one drink an hour. Any more than that and I start getting buzzed and quality of conversation falls off a bit.
The companies whose deployment processes I've seen did exactly that - after an update, a request to a CDN results in a fault which forces the CDN to query the original company server. In those cases, the static assets had to be distributed onto the servers.

I would imagine Facebook does the same, but the article pretty explicitly says that they don't do that (which is why I imagine you got downvoted - for the record, I think that was inappropriate), which raises the question of what exactly do they do?
> The binary executable is just one part of the Facebook application stack, of course. Many external resources are referenced from Facebook pages, including JavaScript, CSS, and graphical assets. Those files are hosted on geographically distributed content delivery networks (CDNs).

It doesn't say whether or not these are part of the binary, but I'd suspect they aren't used as the CDN origin. You'd want these (randomly-but-uniquely named) resources to be pushed out to the CDN and warmed up before a deploy to avoid a thundering herd[1] problem from millions of users.

1: http://en.wikipedia.org/wiki/Thundering_herd_problem
The point of the article is that this particular simulation did in fact accurately forecast mankind's future 30 years into the future, from 1970 to 2000. If you had made your argument against the model in 1970, you would have been wrong. The implication now is that since the model accurately predicted the last 30 years, we should also trust it to predict the next 30 years. You might still argue with the conclusions, but you need to be more specific in your criticisms than "these things can't be predicted", because according to the article, apparently they can be. At least for the last 30 years.
You've got it backwards. Apple, and anyone else who forces DRM on their users, needs changing.

IMHO. :-)
This is a textbook example of why it's never smart to hinge one's profitability upon the whims of another company.

I've been down these paths with Adsense, EPN, and others and I learned the hard way that affiliate programs and ad revenue can be booming one day and gone the next.

Now I only build PaaS and SaaS sites (not counting freelancing work on the side) and I'm a lot happier with a much more stable income from my web apps that is not dependent on the whims of anybody.
> These 16 characters represent 128 bytes. 8192 IDs would require 1 megabyte of space. We receive over 3 billion events per day... Even if we assume that only 1 in 3 records are unique the hash set would still take 119 gigs of RAM, not including the overhead Java requires to store objects in memory.

The math seems wrong here. You can actually fit 16 characters in 16 bytes! In this case they can do it in 8 since it looks like it's a hex string.

That would mean that the hash table would fit in 8 GB of RAM.

In any case, it's a neat trick. Here's an algorithm for counting arbitrarily sized input, assuming the data is too big to fit in memory:

1) Walk through the data, writing out the IDs to a different file based on the first n digits. Split it into enough buckets that each individual bucket is small enough to fit comfortably in RAM.

2) Count the number of unique items in each bucket using a hash table.

This requires three times the disk I/O as the original but gives exact answers.
Even if the "personal site" is kinkybattledungeonsandfoodfights.com, any account holder has the right to know what they did wrong.
This is actually an incredibly common practice of Google's, although in most cases they only make off with a few hundred dollars of ad revenue. I personally had it happen to me with a blog. They accused me a of "click fraud", disabled my account, and disappeared with the money they owed me. I did some research and found the same story repeated dozens of times. This has been going on for years.

Basically, Google's policies mean that if you don't like a website which uses AdSense for revenue, you can screw over the owner by sitting at their site and repeatedly clicking their ads. Google will see the "fraud", assume it was the site owner doing it, and shut down their account with little to no opportunity for appeal.
Isn't that precisely the point of the GPL? To create as much software as possible that cannot be run in DRM environments so that eventually it's the DRM environments that have to die?

It's pretty much a pipe dream of course...
The issue with google ads is that it only takes one bad vistor to get your ad sense account disabled.

Go ahead find a site with google ads start clicking the google ad over and over again until your IP is flagged (ads won't be displayed based on your IP). With in 30 days the sites ad-sense account will be disabled.
Why you shouldn't make QA do manual tests
It may be of interest to some: As food costs have come down in US so have some important nutrients in fruit & veggies.

Eating Your Veggies: Not As Good For You?
http://www.time.com/time/health/article/0,8599,1880145,00.ht...

And,

Changes in USDA Food Composition Data for 43 Garden Crops, 1950 to 1999
http://www.jacn.org/content/23/6/669.full

Which concludes: "We suggest that any real declines are generally most easily explained by changes in cultivated varieties between 1950 and 1999, in which there may be trade-offs between yield and nutrient content."
Why we tolerate Facebook, but despise Google
This should make fair-minded Thiel-haters reconsider: he treats government intervention very fairly and is open and thoughtful, even considering the idea of tariffs as a potential policy approach.

Excellent interview.
There is the slight issue that no matter what energy source we use, we need to reduce energy growth. Postulating a meagre 2.3% growth in energy use forever, we'll get the surface temperature of Earth to the boiling point of water in 450 years.

Source http://physics.ucsd.edu/do-the-math/2011/07/galactic-scale-e...
The blog links to a screenshot of the email - http://i.imgur.com/wWyNd.png - which says the personal site was guitarhero-5.com. But even if that is related to this somehow, they said "your AdSense account remains in good standing and any actions taken on this domain do not affect the performance of your other AdSense ads."
Newton.tv
https://github.com/M4v3R/dcpu16.go

is based on

https://github.com/kballard/dcpu16.go/

The naming of the projects is rather unfortunate because projects ending in .go are incompatible with the Go toolchain command "go get"
The video isn't a negative signal for its daydreaming. It's a negative signal given the history of companies that have put out such videos and the history of the prices they've paid in the marketplace for delivering products that fail to live up to them.

Our musing here is fine; healthy even. It's a remarkably useful form of downtime, compared to others. But if my employer wrapped up my daydreams and marketed them as "our next product", that would be a different thing entirely.
Given the choice between being forced to restart my browser because it's memory use is approaching the 4GB limit of a standard 32bit process rendering it unusable, despite my having several GB free; and it being able to remain stable by expanding past 4GB I'll take the extra memory usage.

Improving memory usage so that my browser never approaches the 4gb point in the first place would be ideal; but based on my personal history I strongly expect that any such gains will continue be eaten by increasingly heavy use on my part and those of sites I visit.
Apple Doesn't Care: looking back at App Store issues, 3 years later
Minor nitpick: there are numerous grammatical errors with missing punctuation. This makes the article hard to read... and she loses a little bit of credibility, especially when she's a "professional blogger".
who will implement a DCPU16 in Conway's game of life.
Interactive Media Map of the US: Most influential news sources by state
No, the GPL linking exception exists to allow proprietary code to link against GPL'd code.

It is a common myth (propagated by anti-GPL activists) that using GPL'd code in your software requires you to put your software under the GPL. In reality, your code can be under nearly any open-source license.

I often receive emails from users asking me to re-license one of my libraries from GPL to BSD/MIT so they can use it in their own open-source projects. These users are often confused when I tell them that they can have a BSD/MIT project depend on GPL'd code.

Everyone who cares about the health of Free software (and open-source in general) should be careful not to fall prey to this misinformation campaign.
Y Combinator Success Record
The most recent batches (2009-2012) are doing relatively well, but almost all of the companies founded in 2005-2006 have long since been acquired or gone bust.
Top 5 Subject Line Mistakes
Amazon Introduces Kindle Tienda With Spanish Language Store
That policy is not compatible with keeping the seedier side of the internet in the dark about the algorithms used, which is why Google doesn't do that. (You can disagree with this, obviously, but Google does have its reasons.)
There's a check in the writeback phase that prevents that.
Not saying you need to be a web developer to write a blog. All, I am saying is that the web provides a way to do interactive visualizations in a manner not provided by Matlab/R/matplotlib. For example, colleague at Mozilla did this: http://skedasis.com/d3/smoothers/
Nikon 1 J1 Review
MIT-X11 license to be precise; MIT has spawned a number of licenses.
Teach us something about your major that isn't common knowledge.
Time to give up on Groupon
How To Spy On Your Child’s Android Phone?
Also, something incredible is that there are measures to take to disable this ability for saboteurs.

Scripting that will only display the adsense advertisement once per IP visiting your site... yet guess what, Google disallows this practice!
Fogcreek is shutting down webputty.net and has pushed the source code to github
SaaS is "software as a service" but what is PaaS? Can you give an example?
Appeals Court Rejects Viacom Arguments Against YouTube
I'm the guy behind Hatchlings.

The site referenced was a small content site I made to drive Amazon referrals for Guitar Hero 4 pre-orders. It was SEO'd and at the top of the search results for "Guitar Hero 4" at the time so it generated quite a bit in affiliate revenue but almost nothing in terms of Adsense.

They never told me what was wrong with it but if I had to make a guess it might have been flagged as a "Made for Adsense" site since it was pretty light on content. And as mentioned I removed the ads from it without as much as a rebuttal.

It was a no-brainer since it was so small-time compared to Hatchlings.
Insight Data Science Fellowships for Science PhDs
This is why we need more indispensable GPL software, to make these jailed sandboxes less palatable.
My assumption is that in 99% of the cases the revenue Google misses out on by terminating the accounts of site owners who experience the type of victimization is less than what they would spend in man-hours on investigating the matter to differentiate legitimate victimization from actual click-fraud.
BarListo: online boards of lists (AKA a simpler, more information-dense Trello)
"While we make heavy use of the core of Clojure, we don't use its concurrency primitives (atoms, refs, STM, etc.) because a function like pmap doesn't have enough fine grained control for our needs. We opt instead to build our own concurrency abstractions in Clojure on top of the outstanding java.util.concurrent package."

I wrote a web crawler in clojure at at&t and our team came to this same conclusion. First we tried to implement a custom atom, but finally using java.util.concurrent directly.

I'm not sure what this says about the clojure concurrency features, but I've found myself using them sparingly even when doing a lot of concurrency.
Platform as a service - http://en.wikipedia.org/wiki/Platform_as_a_service