skysight-inc/HackerNews huggingface dataset:
>other operating systems have caught up, while NT was pretty close to its present design even in the early 90s

The one thing you will find almost as a theme with Linux design is that there is minimum of "future" it. That applies to most of the Linux user space as well. This is a good thing and a bad thing.

For example multi-gpu systems with multiple outputs were not taken into consideration when both the Kernel and Xorg parts were designed. They took the most common usecase of single GPU, probably made some assumptions around it and coded something that works for that usecase.

Microsoft, on the other hand (almost out of necessity) had to actually design the NT Kernel while making no assumptions - multi GPUs may not have existed when XP was released but none the less MS had to design for the eventual reality when some OEM will stuff 2 GPUs and will have to write drivers for it without Microsoft being able to change the XP kernel design or even implementation in any way. I am sure the same can be said about scalability - when massively multicore CPUs weren't around NT kernel was mostly up for task of supporting them, whereas Linux adopted with lot of scalability related work that followed after the fact. (Remember the early NT vs Linux benchmarks?)

Designing for future is bad because it comes with certain baggage and to an extent added upfront costs. It is good for future compatibility, code maturity and obviously saves rewrite efforts - you don't have to rip off all the code and start over and take care not to break existing software etc. There is less code churn in Windows world I am sure than there is in the Linux world where people are constantly adopting to new realities. This creates an environment ripe for new bugs, instability and only with the amount of volunteer effort the cost factor can be lesser than prohibitively expensive.
Well, it's only absurd because my data points are easy to attack. I'm with you on that. It would be very interesting if a study looked at various efficiency metrics to compare the systems.

Like I said, I know my argument is weak and calling this idea nonsense at this stage is probably not without merit. At the same time I've seen this effect more times than I can remember in my career, which leads me to believe there might be a number of cases where it may very well be factually correct to assume that imperial is costing us money and creates more waste.
THE single best ressource to really learn how to deal competently with regex is still Jeffrey Friedl's book "Mastering Regular Expressions".

You will profit from it for the rest of your career.

(There's also a Regex short reference and a Regex cookbook by O'Reilly...)
What do you consider small? Generating less than 100k a year or more?
Sure, not saying it isn't. But that is one of the reasons why crypto-currencies are popular.

$ is the devil we know.
http://www.regular-expressions.info/ is something I've stumbled across a few times in recent years, recommended by my friends to one another.

If I recall correctly I learnt the basics from MSDN documentation and later more thoroughly when I first came across Perl. Either of these are pretty decent choices, too. :)
Angst? I wasn't being facetious, I actually checked your profile for a link to your site.
I'm a 17 year old web developer. What is wrong with my site?
I'm looking to improve my website to help in my job search.

Any tips, improvements, errors, etc would be greatly appreciated.

http://milesokeefe.com/
A note on wisdom: A 21 year old posts advocating that we are almost certainly acting reactionary to a different culture.

Now if a 35 year old were to come along and outright dismiss him because he's too young, oblivious to how bad that would look to a herd of hackers, then that would challenge your assertion that wisdom is earned from experience.

My moneys on the 21 year old

but hey, I'm 25. You know us young fools, right?
Lessons learned on our social blogging startup
Agree that it's a really nice idea. It's amazing to see how each person reacted. It's so sad to see that not everyone is on the streets cos of drink and drugs.
This is the $250 ARM Chromebook he is writing about BTW.
http://d-ide.sourceforge.net/ - another good Windows IDE for D.
$1 Gestures in Coffeescript
IDK, from what I've just read NT looks like someone took Minix (released in 1992) and worked on it to make it useful. Plus adding a subsystem layer.

Frankly, I'm still more impressed by a monolithic kernel that did it better, before: Plan 9 (released in 1991). What use is for NT to be object-oriented, if it can't share its objects through a network like Plan?
HotShot Charts
Seems fairly obvious to me that cramming and sleeping poorly will lead to the same bad results as any long term code crunch would have.
Maybe I'm misinterpreting something, but the way I understand it, the last (or only) page of a website is handled differently. If it's a single page website with a demo download, and someone downloads the demo, then the time between pageload and the download would be counted. If there's a Flash movie, the time between loading the page and playing the movie would be counted. It also looks like you can come up with your own custom events to track, maybe like clicking an outgoing link?

I've never seriously used GA so take my interpretation with a basketball-sized grain of salt.
HN load times are kind of high compared to slashdot or reddit, I often just give up on waiting and got to a different place, so I may count as a hit. HN also gives me timeouts when I look through the first page and take too long to click on the next page link, which is why I tend to refresh the first page only, you never know when you will get into that state. HN definitely need some help in capacity and response times to compete with the big guys.
The Posture Guru of Silicon Valley
Yes, printed maybe. I don't see a reason why it shouldn't print, especially if you scale it down. But, does it also work? And by work I mean not blow your hands of if you try to shoot? I'm not sure the smaller printers get the material as dense as necessary.
Wasting time just to enhance your own ego is not a virtue. If you really find that pseudo-religious penance is beneficial to your smug sense of superiority then wear a hairshirt while you program.
In the late 1990s I was at a start-up doing a hardware-based HTTP proxy. The cases you have to handle of people screwing up the protocol are mind numbing. For a while, every day was a new special case. Every stack out there has it's own special kink.

I would love to see standards come with reference code and executable tests. We do this for crypto because "crypto is hard" and nobody expects implementors to get RSA or SHA correct in a vacuum -- there are published test vectors.

Why don't we do the same with other protocols? I think we've proven that it's possible to get even really simple standards (... which HTTP isn't, by the way) incorrect. You won't find stuff like race conditions, but you'll catch that CRLF versus LF nonsense.

[HTTP is also a horrible standard, but I don't think we have a good handle on not letting that kind of thing get out in the wild.]
Expedia is the way to go for me
How about this site? http://www.regular-expressions.info/
I just skimmed it, and I'm not a regex pro, so I can't vouch for it's quality, but it seems like a place to start. For C#, I kinda enjoyed the dotnetperls page on regex http://www.dotnetperls.com/regex.
What you want is to achieve a level where you can start thinking in regexp.

Eg: /^([a-z]*)$/ this translates into my brain to: a string that starts with a capture group of 0-N characters between a-z and also ends with it.

Then it's really easy.
I disagree. It's actually pretty easy. It might seem hard at first, but in reality there are just a few things one needs to know to support all clients correctly. Like disabling keepalive in some scenarios for some user-agents, choosing proper compression, padding small non-200 responses, etc. And you can look up all of those things in nginx or apache.
As randuser points out it's an environment variable. There's another one called TIMEFMT which lets you format the output.

Some examples: https://github.com/search?q=TIMEFMT+extension%3Azshrc&ty...
Yes, but without working drivers for my system, what good is user space binary compatibility? MS has maintained compatibly for their drivers, something kernel developers seem to careless about. Which was exactly the point of the original poster.
By that logic you must be even younger
If I read your page on my desktop, JavaScript was off - unless I had forgotten to revoke temporary permissions after whitelidting Google analytics on another page.

Which illustrates that Google analytics reports something, but what it reports is what it reports. To put it another way, Google Analytics records information useful to Google. What it reports back to the datapoint is designed to appear useful to the datapoint. The purpose of the information provided is solely to encourage the datapoint to keep using Google Analytics so that Google can keep using the datapoint's website to track people on the internet.
Sincere question - is it worth investing time into reading a 500 odd page book for something that I might not use that frequently in my career? From my experience, I've seen that I can get away by just Googling or just experimenting whenever I'm stuck on a regex.
please read about Soviet Union. on elites, i recommend you "Nomenklatura: The Soviet Ruling Class" by Michael Voslenski. the soviet elites were screaming happy when borders were finally opened. and it's not like NK's lower classes have absolutely no idea what the outside world is like. it is well-known that many have access to SK TV shows and so on. speaking of the poorest, i don't think that you can get used to or love starvation.
Huge Collection OF Websites To Download Free Ebooks
A little back story on this article for those who are interested...

I noticed my coworker was going out of his way to use string manipulation, writing many lines of code instead of a simple regular expression. When I asked why, he explained that he didn't know regular expressions, but more importantly that he felt that he had read a lot of posts on Stack Overflow discouraging use of regular expressions. From what he had read, he felt that it was better practice to avoid regular expressions. Although this could be anecdotal, there may be a real danger here that inexperienced programmers are getting the wrong message, that regular expressions are somehow bad in most situations and not worth learning.
I don't see the point in using a crippled operating system when it will prevent you from quickly editing a low res screen cast or editing an image in the GIMP. Machines in that price range have enough performance to do some of these tasks even if they're not optimal for them. If I'm on the move away from a bigger system I might still need to do it though, so not having that capacity just because of someone's "in the cloud" dream is silly.

It's already bad enough that Google maims some of the Nexus line by disabling tethering. Android is also inflexible in many ways regarding having a local easy to use file system etc. I personally can't wait to get off Android and onto Ubuntu mobile or Firefox OS.
Lawn care in Salisbury 
Lawntech™ is a privately owned lawn care service provider based in the South of England covering the areas of Wiltshire, Hampshire, Dorset and Somerset.
I support conservative engineering for file systems.

NTFS is highly reliable and Microsoft wants to build on that success with ReFS. In years of working with NTFS I've never had a serious filesystem wreck (although I did have one that was never quite the same after I made a few hundred million small files)

The NTFS story isn't that different from the ext(2|3|4) story on Linux. ext-N filesystems are boring and not particularly fast, but they're reliable. I've tried other filesystems on Linux but have often had wrecks or noticed data corruption.

I like boring filesystems.
I find picking an actual context is really important to keep you motivated as learning about regexps can be tedious and prone to error. Probably the most fun regexp work I've done has been with Apache's mod_rewrite - using .htaccess files of course - because it's a great feeling to master something that useful that previously just seemed like magic.
It may surprise you, but HN visitors are pretty low on the scale of privacy-concerned. /. and /g/ are far more active in using privacy tools.
People fear knocks in the night in the USA, Canada, even Sweeden now adays. If you're damn fool enough to run afoul of copyright laws. In fact I would say it's a distopia, if all I did was focus on every incident of homes getting bashed in and governments misstepping. It's easy to fall into a focus illusion, and whenever mainstream media gets involved, there's going to be a focus illusion.
More concise? Sometimes. Slower? Always.

BenchmarkRegexp	500000	5136 ns/op
BenchmarkStrings	10000000	173 ns/op

http://play.golang.org/p/YT29Ao-tOt
> No, unless you are North Korean citizens for years, it is hard to grasp the truth.

Those who were born there, lived there for years or decades, then escaped, grasp the truth, and have told others how it is.

It does not take any leap of imagination to say that North Korea is a hellhole. All it takes is paying a little attention to what's going on.
Why are all the downvotes here? rikacomet isn't obnoxious, just making a point that you're uncomfortable with. Or maybe you can see flaws - if so then respond. If you can't explain why you disagree, maybe that's something you need to work on more constructively then silently downvoting something just because you disagree with it.
I feel that this needs posting again: http://www.debuggex.com/

Basically a great online tool for testing your regular expressions and stepping through what is actually happening. As soon as you get non-trivial, it's a Godsend.
The article is rather old, and utilises node-waf which is no longer supported. Only node-gyp is supported these days.
Please have a look at this: http://xkcd.com/1205/.
http://www.stereomood.com/mood/relax
I tend to quickly go through the front page and bookmark the articles that I'm interested in. Then, when I have the time and I'm on my tablet - I read them.

It may be that I'm not the only person that does this kinda thing.
this one is incomplete but gave me a really good foundation that makes it easy to fill in gaps when I need, and most importantly gets you that "thinking in regex" result mentioned above- http://regex.learncodethehardway.org/book/
Paul, you may want to compare raw web server logs to the numbers you get from GA. I wouldn't be surprised if there's a big discrepancy, especially when there's HN in the mix. Moreover, those who are nerdy enough to surf with tracking scripts blocked might be the ones who actually read the article ;)
Yes, hundred times yes. Even rudimentary web coding involves regexps somehow. But the real benefit is mastering a topic that is complex and the sense of accomplishment and competency it brings you.
Does anybody know of a good perl of python library that will use a regex (with constraints on the repetition operators) and generate an exhaustive list of matching strings (instead of generating a random list)?

I think this would be helpful in many cases in getting people to understand how regexes work. I've seen lots of cases where toolsets designed to help people build regexes end up with them confused when their regex also matches other stuff beyond their test strings.
Thanks for clarifying. I guess my point was that if you're just matching one email address in a form submission for example, is performance significant?
Yes. I made this point several times in drafts of the comment you replied to. But kept removing it because it didn't help me make the point and would have triggered offence in some people who'd otherwise get the point. (I was pushing my luck by mentioning farm animals already)

A British citizen was extradited to the US to be jailed for a crime that did not violate the principle of live and let live. That's an evil that's got long arms.

I guess I can see it as a limited dystopia - one of the worlds that Heinlein puts Job through. But I'd avoid using a word like that for this, for risk of overuse.
> Any cheap old laptop works just as well if not better if you just want to use ssh into another box!

Agreed, and if you put Ubuntu on it (or the Chromebook), doesn't this all become much easier with its remote login from the login page feature? Not sure if any other distros have that too, but regardless, surely it'd be much easier?

>though a Chrome pixel just for SSH would be fiscal perversion on my budget.

According to the article a MacBook Air used to fill this role, totally agree that both are crazy expensive for that.
BitKeeper was non-libre for a long time, but they dropped the free-to-the-community version[1] which forced the move. Linus drew criticism for a long time over the usage of a non-libre version control system for the Linux kernel.

[1] http://en.wikipedia.org/wiki/Bitkeeper#Pricing_change
Prototype Android apps using HTML, CSS and JavaScript
It takes a certain special skill to use high-frequency profanity and make it funny. I doubt I possess it, and now I know that these guys definitely do not.
I'm pleased that this article buries the Dtrace functionality towards the bottom. Before this post, the Node.js post on profiling (http://blog.nodejs.org/2012/04/25/profiling-node-js/) was the most referenced piece on the topic - unfortunately Dtrace doesn't look like its ever going to run on Linux so I've been left in the dark.
The core criticism of regular expressions is legitimately directed at intermediate programmers who know enough to be dangerous, but is sometimes inappropriately cargo-culted by beginner programmers who use it as an excuse not to learn regular expressions.

The fact is that despite pithy slogans, there is a sweet spot where a regular expression does the job of matching a string in a clearer fashion than anything else. But that sweet spot is well shy of the theoretical power of regular expressions (especially in Perl!), before which you should further your understanding of a range of parsing techniques before hacking together a baroque regex.
I noticed that.

I wonder how much of the confusion is owed to that project? That would go a long way toward explaining why this confusion seems common on HN (lots of web developers), but non-existent elsewhere.

By the way, the way that article immediately (second paragraph) addresses the question is just odd and confusing.

While some people refer to it as "HTML5Shim" with respect to shim (computing), there is no real difference between the names and as noted in the code repository, the only difference is that "one has an m and one has a v - that's it."

Huh?

Of course, that section of the article like the shim article edit I mention above is the work of one person in 2011 and the repository mention it cites for support no longer exists.
A description beside each link would be more useful than the author.
Nice, I'll check it out.
Content presented in a serif font appears to the reader to be more credible.

This 'study' was a survey that appeared on an online version of a newspaper. The tested content was wedged inside an article that always used a serif font, on a website that always uses a serif font, in a part of the writing industry that nearly always uses a serif font.

I'm not that confident that the findings can be generalized to technical readers reading technical blogs, where the standard is sans serif. How do we know that following industry standards for the type of content isn't what made the serif fonts look more credible?
Former OS/2 developer here (I still have an OS/2 t-shirt around somewhere). While the single event queue was a problem, at the time the major competitor was Windows 3.x, which also had cooperative eventing for the UI. NT changed that for the better.

What OS/2 had was multi-threading. If you had to do some operation that might take longer than 1/10th of a second, the guidance from IBM was to put it on it's own thread. So by necessity, OS/2 developers became expert multi-threaders.

I think it was Stardock that had an excellent newsgroup reader for OS/2 -- it was multithreaded, so you could queue-up several requests for your newsgroups (alt.binaries.*, {ahem}) and the UI remained responsive and you could go do other things, like fire up GoldenCompass for your Compuserve fix. ;)
Great initiative, it would be nice to have some more info on your site who you (they) are. I think many people aren`t going to download and execute data from unknown person/organisation.
No, a few µs vs a few ns when processing your web form won't be significant. Don't shy away from regular expressions, but be aware of their performance and readability impact.

The problem is when developers that don't know any better build parsers with regular expressions. That's almost always a bad idea.
Are you disagreeing with this:

| The terminal is a power-user feature

I don't see any comment on the number of power users out there. Most of the people on this forum would probably be considered power users.
You just mentioned one for Java, the fact that it is commercial is irrelevant.
Hopefully not off topic, but I use Airbnb. This matches my budget, but if I had more money I would still use it and rent full apartments.

I search the postal code of the place I want to be in the city (a combination of work location, downtown, neat area of city, near transit, etc.). Then I use the map to zoom on the area.

I filter by price and review. Usually find a well priced, beautiful booking with a good location within 2-3 minutes. Then I contact the host.
Apache has much more features, more modules, supports more auth schemes, etc.

And the documentation is awesome.

Apache configuration is generally better, less WTF.

E.g. the nginx headers module [1] allows you to either set a single header, or an expires directive, but not both. There is a HeadersMoreModule, which is more flexible, but in general nginx configuration looks like that.

Aliases/url rewrites/per-dir/per-location configuration are a mess in nginx. Want to set some special directives for the /assets location ? no problem. Want to set special directives for .css files ? no problem. Well, actually if you have .css files in /assets, if will have either directives for /assets or .css, but not both.

[1] http://wiki.nginx.org/HttpHeadersModule
Awesome. More diabetes in less price.
I think that particular subpopulation thinks gluten is a chemical that should be avoided so it won't make much difference for Weetabix
Show HN: crofflr - create e-books from Pocket or Pinboard
I like it and have been recommending it too, but it desperately needs a better data export (i.e. _any_ data export). Concerned that so few quantified self apps actually let you have your data (I'm looking at you fitbit)!
Maybe the propagandaid has seeped too far in the (un)conscious minds of people to the extent that they cannot/do not question their own reality (maybe to the same extent that NK's?) and feel the need to fight/put down all existential threats to such.

Then again, nothing more depleted uranium rounds can't fix because terrorism.