skysight-inc/HackerNews huggingface dataset:
The point about how refined is your online audience is interesting.

HN seems to be getting swept up in useless stone throwers that waste your time and theirs on grammar and other petty shit...

I come to HN for signal, not duels at 10 paces.
Well, it's possible that the model of selling an OS to phone manufacturers has been destroyed by Google giving an OS to manufacturers as a loss-leader.
No, the 10ms is because you don't have to hit the server on every page load.
Here's the .js:

[edit] formatting was removed, so this is more readable:

http://jsfiddle.net/QC9mz/

Doesn't work in chrome though.

[edit2] Lol; I just noticed the article actually shows the .js :P I never got past the button and checking what it did :P
Next year is always the year of the Linux desktop.

But I begin seeing worries in people where MS is pushing the OS (mostly privacy concerns) and is seems running windows in a hypervisor with VGA card passed trough is becoming more and more popular.
It could be reddit's motto as well. I've not found a post >100 upvotes that wasn't downvoted at least once.
I think that actually says a lot about regexes as code.

The more corner cases you have to consider, the more unreadable the code gets, after a while by seemingly exponential degree.

And if you have a tool to build the regex, why not just use the tool's code as your source so the final result is readable.

Basically, pasting a big regex into your code hardly seems more desirable than pasting a bunch of assembler there. But assembler can unavoidable. This isn't.

Regex are cool as CS constructs though.
The title is wrong. Nokia is not being acquired, it's selling the phone business.
The way you're describing the theory sure seems like the Ensemble Interpretation to me, but to be honest, I have never heard of the "Statistical Aggregate Interpretation". Just to be sure I know what we're discussing, could you provide a reference to the Statistical Aggregate Interpretation? What you're suggesting -- that the information is there, but we just don't know which one -- sounds a lot like a hidden variables theory. Unfortunately, all theories with local realism (which includes hidden variables theories) are ruled out experimentally by Bell's theorem. [1]

I like your classical frog example because it's a thought experiment that illustrates how classical particles behave, and we can compare the distribution of the classical frogs to the distribution of whatever we're measuring (like electrons), and if the distributions we get are different, then we'll learn that whatever we're measuring is behaving non-classically. However, the probability density you gave for the frogs in the classical case, cos^2(pi*X/A), is incorrect. The probability distribution for the classical case the way you set it up will, in fact, be almost Gaussian (but not precisely for reasons that aren't relevant or worth discussing here)[2]. The combined probability distributions for frogs coming from the two doors will be the sum of two individual Gaussians, so it will be a "two-humped" distribution. As a point of fact, if you run your frog experiment, there will be two wet spots. It will not look like an interference pattern precisely because there is no superposition and no destructive interference. The fact that electrons in Hitachi's experiment display a "many-humped" distribution is good evidence that the electrons are not following the same rules as the frogs, and hence that the electrons are behaving non-classically.

> in Hitachi experiment it is shown explicitly clear that quantum interference is emerging only for multiple particles.

This is the exact opposite of what the Hitachi experiment shows. The experiment is interesting and surprising precisely because particles are sent one at a time but still show an interference pattern. The experiment shows a single particle interfering with itself.

[1] http://en.wikipedia.org/wiki/Bell%27s_theorem

[2] It's easy enough to show the general idea with a Monte-Carlo simulation.
I like the syntax, maybe because my first productive language was Pascal.

Does Nimrod support Unicode?
These guys say that a 430-character regex does the same trick as that 6k-character one (down in the RFC 2822 section)

http://www.regular-expressions.info/email.html
I built a Hackintosh in 2011 using hardware that was recommended on Tonymacx86 as being 'highly compatible'. The problem as you say is it doesn't just 'work'. The machine sometimes randomly restarts, which is unacceptable and every update required repatching audio drivers to work.

If you can deal with this then do it since you will save a lot of money. But sometimes the stability of the real thing is worth the price.
Well I got a 404 Error.... but it was fun until then!
As an American who's living in Israel let me tell you that the backwardness of the US banking system doesn't even begin to COMPARE to the sheer inconvenience of banking here.

* No chip and PIN. Yep, same here.

* You have to interact with your branch for EVERYTHING. EVERYTHING. Not your bank. Your branch.

* The banking websites are all uniformly atrocious. Every single one looks like they designed it back in 2002 and just stopped and said, "meh, this is good enough."

* You pay for everything. Want to withdraw money from an ATM - your bank's ATM! - 1.76 ILS. You want to withdraw cash from a teller? 10 ILS. You wrote a check? 1.80 ILS. You thought about the bank on your way to work? 2.40 ILS.

* Checks can not be stopped. In fact it is illegal to issue a stop-payment on a check.

* The bank scrutinizes EVERY CHECK YOU WRITE. If the signature doesn't match the signature they have on file -- even a little bit because you were in a rush -- they reject the check. Oh, yeah, and they examine it by hand, not by machine. Oh and when they reject your check for technical reasons? 9 ILS.

* Direct debit... ok, actually, they've got this one covered. It's super easy. Except you still have to fill out a form that authorizes said payee to debit your account.

* You pay a monthly fee to the bank for the privilege of banking there. Not all banks have a monthly fee necessarily, but they all have surcharges so it all amounts to the same thing at the end of the day.

Oh gosh, don't even get me started on just how awful and inefficient the system is here. It is ripe for disruption except that the government has pretty strict controls around everything that goes on in the banking sector.
Seems there is a bug, since this:

.Exactly(1).Of(".")

expands to this:

(.{1,1})

Which is wrong, as dot is a meta-character. It should be escaped.
Ask HN: Virtual credit cards with access rules?
I've been wondering recently about the possibility of an abstraction layer above credit cards where numbers can be created and controlled by the user in a certain way. I'm aware of EntroPay who offer prepaid virtual cards.

Is anyone offering a master card with full access to my account, but allowing users to spin up virtual cards that work in different ways? e.g., I could create one which only works with a wildcard match of "amazon" on the transactor field. Or a virtual card which is capped at $300/month (retainer for an employee) or one which has a maximum of $100 (gift card for a friend). Or only works in a particular country or currency. And can all be shut down whenever required.

Would this even be possible with the way credit cards are currently set up?
Microsoft has a long history of not playing fair. If it were to have 33% of the market, it isn’t unthinkable that it will try all possible dirty tricks in the book to gain the upper hand. Right now, Windows Phone’s market share is negligible, Microsoft has zero leverage so it has to play by the book.
I agree that, long-term, high-skill work is at least as likely to be automated as low-skill work. There's no shortage of occupations that were once high-skill and now are largely mechanized. We might not be able to foresee how that can happen with software, but there's a long list of industries that weren't automated until they were, to the surprise of those employed within those industries.

In a small way, one can argue that increasingly easy-to-use frameworks are already having that effect. Right now, with the market for software and software developers growing so rapidly, the efficiency gained from using frameworks is a great thing for the individual programmer. The time she doesn't spend building animations or site looks or CMS's can easily be applied to other problems, and she benefits directly from the increased productivity. But it's risky to assume that the demand for software will always outpace the supply, as this has never been the case for any other labor market I can think of. Markets seek and tend to eventually find equilibrium in these areas.
"...our strategy to create a family of devices and services for individuals and businesses that empower people around the globe at home, at work and on the go, for the activities they value most."

So Microsoft's "strategy" is to build everything for everyone, everywhere, all the time. Hilarious. This sounds less like a strategy, and more like a sentence concocted to justify an inability to focus.
Why won't you acknowledge that web development is not about HTML+CSS only? Why are you insisting that web developers know these technologies and not JavaScript, and in effect do not program?

You're obviously not very familiar with web development. The one who you have in mind is called designer. He's as you say, although it's still very hard and important job.

Web developers are programming all day long. They use JS almost exclusively with occasional excursions to HTML-land, without (in principle) ever touching CSS.

I'm a backend developer, so you will probably agree that I'm a programmer and I know what programming is. Just last week I had to fix/rewrite something on a frontend. It was a routine which retried an AJAX request until it either succeeded or failed a given amount of times, but with a twist - it cycled through a list of URLs while retrying. That's a very simple problem, I know, but I really felt as if I was programming while doing this - don't tell me I wasn't. And given JavaScript peculiarities it was full of surprises and overall a rather pleasant experience.

Now, design and programming are really two different skillsets. One is clearly programming, another is maybe-somewhat-with-HTML5-and-CSS3-almost-programming. You're confusing them both into one and so your conclusions are equally confused. To summarize: I know too little about design to really argue, but web development is, of course, programming.
Personally I use http://www.debuggex.com/ since it offers a step by step visualization, a live generation of the diagram, a live syntax checking of the regex, etc.
Anand Kumar - The mathematician behind Super 30
Well, it seems more human than anything Ray Ozzie could have every written, even this phrase
Great idea, and very fun!

I'd love to see a couple of adjustments:

First, the scores right now aren't very meaningful. The chance of winning each round is highly dependent on being lucky with the multiple choices (e.g. I'll always be able to guess Spanish vs. anything else, but my if options are two African languages, it's a coin toss). I think the distribution of scores over several games will end up being similar to playing a series of random coin tosses. My own scores varied greatly.

Second, it would be great to have more clips of each language, without having the same person speaking twice. The educational element of the game gets lost when you start overtraining on the same clip.
How to make a slideshow for Youtube on Mac
It shows you how to make a stunning slideshow on Mac, and encode it to mov or mp4, then upload it to youtube to share with others.
Yes it is. When MS-DOS introduced defrag.exe, the term defragging came into existence and never left :)
Moving from UK to US, the dire state of banking here was one of the most noticeable regressions. I'd add to your list the crazy ATM fees.

We switched to Ally (online only bank) a while ago which fixes some of the issues. At least now I can deposit cheques by awkwardly photographing them with my phone and new chequebooks are free...
You are absolutely right, i'll get right on this bug during lunch break (i'm at the office, so..).

Thanks alot for the report!
That's way too much trouble.

It's much easier to compromise the user's computer and install whatever type of "utilities" they need to recover whatever data they want.
As a Nokia employee, I can't yet comment on whether this is ultimately good or bad for us and what our dreams were.

I can say that it is a very emotional time for us Nokia employees, and I can only imagine it is even more so for those of us who are also Finns.
Isn't it just an office block?

I'm in radio and people frequently want to visit radio stations - they have this image of a fun, glamorous, star-studded workplace where anything goes.

They're usually pretty disappointed when they see the sales office, the programming office, a tatty kitchen and a tiny, basic studio in a broom cupboard.

Surely Google is the same - it's acquired a legendary status, but it's just... well, an office, like you go to work in every day. I'm sure there are more interesting places to visit in California.
Please see this comment https://news.ycombinator.com/item?id=6318882 they are not buying patents.
File sharing site intended as a successor to Megaupload:

http://en.wikipedia.org/wiki/Mega_(website)
This is a great move - for Nokia. Now Nokia has a huge pile of money to take on Huawei, Ericsson and Cisco etc in the mobile network field. Remember, Nokia bought out Siemens from NSN as recent as July this year:

http://www.businessweek.com/news/2013-06-30/nokia-said-to-ag...

With the money from the MS deal, the headache of a failing mobile phone business while retaining the patents and maps I think Nokia will be in a much better position witch a clearer focus.
"This." This what? What does that mean?
Nice work. Personally I will still use the raw regex rather than the method calls to build the regular expression. As another commenter pointed out, the example regex is complex than it should be. It can be reduced to:

pat = re.compile(r'^ \w+ @ [A-Za-z]\w* \. \w+ $', re.X)
if pat.match('r@acnt.me'):
print "woot"

I won't bother explaining this regex(too simple). However, if it were something complex, I would put inline comments:

pat = re.compile(r'''^ \w+ # rahul
@
[A-Za-z]\w* # thoughtnirvana
\.
\w+ # com
$''',
re.X)

Notes about the example regex:

var regEx = {(?:^)[A-Za-z]([A-Za-z]+|(?:\d+))(@{1,1})[A-Za-z]+(.{1,1})[A-Za-z]+(?:$)}

(?:^), (?:$) - This is the same as simply using ^. It isn't captured by default so there isn't a need to mark it non-capturing.

([A-Za-z]+|(?:\d+)) - What's going on here? You have a capturing group and within that capturing group, you have the or part marked as non capturing. What's the intent?

(@{1,1}) - @{1,1} is the same as @. Also, why are you capturing it? I think you are using parens for making the regex readable. You should use the IgnorePatternWhitespace instead http://msdn.microsoft.com/en-us/library/yd1hzczs.aspx
Mostly carriers demand it. There is no reason to lock the bootloader otherwise.

Of course a more cynical mind can see a reason in planned obsolescence - if you stop updating a device after an year you will buy your next sooner.
If I came across the code in the original post, I would be confused as to what the Or operator applied to. With a regexp, the parenthesis make this clear.

I would also assume that Exactly(1).Of(".") was meant to match a literal ".". In a PCRE, you can surround a section with \Q...\E to force literal interpretation, but I believe in .NET you would need to call Regexp.Escape.

The overall concept is not a terrible idea, but you should probably become a little more familiar with regexps before trying to write a library that creates them. While some things in the sample seem a natural product of being code generated (e.g. "@{1,1}" instead of simply "@"), the use of "(?:" in many places is simply not needed.
A 2.3 Phone will run almost every existing Android app out there. In fact, most Android apps target 2.2 and up.
Not sure why you're replying to my comment, I noted the upper competitive range of HSR against plane — as far as I'm concerned — is 1500km with 1000km for superiority. Denver to SF is more than 2000km, it's way beyond what I consider competitive HSR ranges with current techs.
Exactly. But it's obviously not just the accent thats at issue here. If you think about it, and try to do a good impersonation of someone talking in a different accent it has to include a bit of dialect and local grammatical idioms to make it convincing.

I assumed that the original comment about 'foreign accents' also encompassed the grammatical tics that foreign speakers often have. Someone speaking grammatically correct english in a strong accent is easily understood, but it only takes a very little grammatical mistake to change to meaning of a sentence. For example, an Italian colleague who missed out a 'to' and told me 'just a minute, I'll come over your desk' caused some admittedly slightly childish giggling in the office...
Doh. You're right. Not sure what I was think at that moment :)
*pseudocompile
Even clicking that link, I had no idea what it was. There's just a big red button and a meaningless tagline about privacy. I think it's a fair question.
That's what I thought when Elop went to Nokia and even in hindsight it seems to be the case. As a share holder, I definitely would ask questions. It seems hard to prove though; their market was falling anyway, but there are a lot of what ifs: like if they would've done Android, continued with their own OS but made it really open etc.
The vast majority of people in the world are capable of having fun whilst not doing either of those things.

I guess you don't find sex fun either?
Not progressing as fast as I'd like. Stumbled over a few roadblocks regarding parameter binding. The rules are complex (and underdocumented, I might add. E.g. why man gci displays three parameter sets, or why -fi always binds to -filter and not to -file is unknown to me. CmdletInfo.ResolveParameter sounds like being great in theory but is unusable in practice. At least when I'm done I might be able to revisit parameter binding in Pash. Preliminary repo is at https://github.com/ygra/ExplainPS – once parameter binding is done the rest is just fetching information from Get-Help which is the actual trivial part.
It seems a little misleading to write "Which one of these snippets would you like to encounter within your source code" and then go on to compare the generated regex code with the hand-written builder code. The generated regex is much uglier, more redundant, and more complex than what a person familiar with the syntax would write (e.g. grandparent's example regex).

Also, does the builder library support captures (i.e. pulling out substrings that match subpatterns)? That is a pretty important feature for a regex library.
> Your suggestion of HD+ literally means that this 13" device has less pixels than modern phones.

Which isn't a problem in my opinion. 1080p on such a device means you have to scale up fonts and graphics elements to get to sthg like 1366x768 anyway (so things are actually readable). It's not about pixel counts, it's about usable optimal size for things displayed on the screen. Upscaling is bad because it requires more energy and heat more. HD+ or macbook air is enough for laptop resolution.

I forgot to add a good lenovo keyboard (or good island style keyboard but not those mushy surface keyboard).
You could have named contents:

var letter = "[a-zA-Z]";
var letters = letter + "+";
...

then your regexp would look like this:

var regEx = letter ++
letters ++
"|" ++ ...
Great idea. It would be nice to see a chart with the distribution of scores though or at least the quartiles next to the high score.
The Moto X has two interesting clusters of features:

1) The obvious one and only mildly interesting is the customization. I believe that will appeal to a large market segment.

2) The less obvious and more creepy one is the battery saving combined with the always on features. I believe this is very much the Google vision at play. The Moto X is always on, aware of its surroundings, and integrated with Google Now. I see this is part of the same vision that created Google Glass, and ultimately will be a Google chip in your brain.

How well it works in practice I have no idea. Google Now haven't impressed me, it best it tells me what I wanted to know 15 minutes ago. The Moto X features be utterly useless. But the direction is definitely interesting.

The phone is clearly not interesting to those mainly interested in peak CPU performance, DPI, or screen size. I'll also skip it for now. Let someone else be guinea pigs.
Actually, it's very similar to the laptop market. A lot of people prefer Windows or Linux on Lenovo laptops, because they have some features that Macs don't have.

Likewise, if you compare the hardware (build quality etc) I think most people would agree that Apple still is has the best devices compared to Samsung, which still uses the same plastic frame even on high end phones.
I responded to the sibling comment a while ago, and I'd welcome you joining that thread.

But for a quick synopsis of my response to your statement:

1. Billions of people use computers with a variety of operating systems every day;
2. Thousands of people touch their first computer ever, every day, and very, very few run Windows;
3. Millions of people use computers every day and are still deeply confused when the start button moves.

Regardless, the point I was responding to was that Microsoft had some sort of special advantage over the run-of-the-mill enterprise soul-suckers like IBM or Oracle. They might; but they won't for long.

Ultimately, I don't see how any reasonable person could disagree with simply making note of the fact that Microsoft no longer has the ability to change the course of computing: enterprise or consumer.