skysight-inc/HackerNews huggingface dataset:
You can get the index of the match via the .exec function. It returns an array. The first element is the match, and then an element for each capturing group. You'd need to keep track of how many sub-capturing groups each individual top-level capturing group has, but that's not terribly difficult.

As far as multiple matches, after you found a match, you would then test against a new regex that is everything to the right of the previous regex's captured group.

((a)|(b)|(c)|(d)) -> if b matches, you then test against ((c)|(d)), and so on.
Why Write About Docker?
Apologies. I will stop preventing other people from reading the GP with my silly comment, which was placed nefariously under the exact post I was trying to undermine.

Maybe you can help me become more discriminating in my thinking as well? I'd hate to commit more thought crime.
It is pretty easy to ignore the suffering of others if you can convince yourself that it is a different and simpler form of suffering than you feel -- just look at how a lot of humans (and I'm talking about ones that are accepted by society, not crazy psychopaths) treat animals (eg. circus elephants).
Turned 31 a few days ago. Hair has been falling out steadily, when does it stop?
Yes, CPAN is for Perl. I'm just saying I've never heard of a particularly good experience with CPAN.

CPAN packages can't really be uninstalled (http://stackoverflow.com/questions/2626449/how-can-i-de-inst...) and seem to be unnaturally prone to dependency hell.
It's almost as if there is a conservation law for
conservative ideas. Sex isn't doing it anymore, so we
are switching to food where we impose moral judgements
on others who are "doing it wrong".

The author didn't appear to be advocating food-based morality to me. Did I miss something?

It seems like the author is describing how food ethics have waxed while sexual ethics have waned. The final paragraphs about how that might be described by the ascendancy of the philosophy of Nietzsche (postmodern, materialist, and individualist), which certainly isn't a conservative philosphy (at least not in the American sense).

Though perhaps you mean that there's conservation of morality? As in, everyone is compelled to judge each other by some standard or another? I suppose that could be true. But if it is, it's either a condemnation of postmodernism or of mankind itself since that compulsion would pit humanity against the "that's fine if it works for you" attitude.
I'd be most interested in how all the non-async-signal-safe calls there must be after the forks are rationalized as safe in the unicorn implementation.
Has food become more available in the past decade? Or perhaps France is getting more factory-food on the shelves? Ten years ago I didn't notice that people were going hungry.
Ask HN: Career advice – What shall I do?
Hello HN,
I work for small size company in mid-west(Chicago). I have near 8.5 yrs of experience.
I recently interviewed at Yahoo and now have offer from them.

I can't decide though whether I should join company ? Alibaba seem to be making news. They also did few good acquisitions in last six months.

I am positive this will be very good opportunity to work with some of the smartest minds in the industry. I am worried though about its flip flop on performance and equally alarming news about its core business capability.
Honestly, I am worried about layoffs that may happen. I hope not. But , if AOL and Yahoo gets together first thing any management would do is to reduce head count. Financially I haven't saved anything sizable yet due to student loans and all.

What do you think I should do ? Is it good time to join Yahoo or not ?
What would you do if you were in my position.
Sometimes you want to do things high level languages don't support. For instance C doesn't let you retrieve the 64-bit result from a 32x32-bit multiply. You have to cast the operands to 64-bit first to get the result even though the hardware provides the answer you want without any extra steps. If this is performance critical code it may require dropping down to assembly.
Counting capturing groups is a solved problem - http://stackoverflow.com/questions/16046620/regex-to-count-t...
I use Skype, gmail, google search, youtube,
Skype == $10/m
Gmail = $5/m
Search = $20/m (Information is valuable)
Youtube = $20/m (Equivalent to cinema)

Rest is made of long tail. These are what I would be willing to pay for these services
Julian Assange sex case: Swedish court upholds warrant
I think you have to use square brackets...

stuff := {['k1','v1'],['k2','v2'],['k2','v3']};

print (stuff('k1'));
print (stuff{'k2'});
Most shell scripts used like this are implemented by defining a function, then calling it - so if it fails downloading, all that happens is a syntax error as the code never actually gets run.
Building with Ember.js at Yahoo
I agree, i'd assume the simulator would be programmed with the fundamental laws of the universe and the basic particles and then let loose. Everything after that would just be a collection of basic particles, it shouldn't even have a notion for what an atom is, let alone a brain.
Obama’s plan will shield 4 million from deportation
I've had particularly good experiences with CPAN. Long enough ago I don't remember the details, and I wasn't doing anything exceptionally complicated, but I remember being favorably impressed and able to get my work done without hiccups.
Strange. I searched before submitting but didn't see any results.
How's Haskell Doing? Graphing Meetup Attendance in New York City
It's the paradox of happiness. Pursuing happiness as your goal in life is the one sure-fire way never to achieve it.

More than that, the cold, calculating, statistical logic of a utilitarian hedonism that you see so much of in a "scientific" approach to happiness, fails to account of the difference between kinds of happiness: Is it better to be a pig satisfied or a Socrates dissatisfied?

Scientism is what transforms a beautiful piece of music into lifeless vibration frequencies. There's more to reality than what a mere scientific description can tell you.
Dumb question: how does one decide which is the "true" bottleneck? There's always a bottleneck, surely.

I'm reminded of Weinberg's quip that solving your most pressing problem just promotes #2 into first place.
Ask HN: What recent technologies have matured?
Fellow HNers.

I am thinking about creating a web app and would like to add some novelty to the process of development as the product I am thinking about (basically a specialized CMS) is nothing fancy.

I have used Ruby and written some node/express but I didn't like it, mainly due to poor documentation.
Also I would like to try some fancy front-end framework and am thinking about react with backbone.

What is hot? What is going to be hot? What went under the radar? Basically I would like you to recommend me a stack.
Because game staff have limited time and ability, more balanced games reduce and standardize options to make them easier to manage.

Smash is balanced in that win rates are similar enough to allow some mobility but not enough that the developers eliminated many of the later-discovered capabilities.
You only really need 1 counterexample to disprove a theory.

The reality is prostitution is still illegal in the vast majority of the US which is a clear sign of a deeply repressed culture. However, TV and video game ratings are another. As is the fairly common ban on breastfeeding in public let alone a lack of nude beaches. And the list just keeps getting longer.
Who did you email? I don't see anything. john@techcrunch.com
In my experience people buying software value working software that meets their business requirements within the agreed budget over anything else.

In twenty years I have never known a written specification help achieve that, and it has often hindered it.

I guess your experience differs, but I focus on delivering software my clients love, and so far that has never failed to work.
Just because you haven't doesn't mean others haven't. You will be surprised.
Thanks for your feedback.

I thought tapping the title and going to the article in the comments page could be counter-productive if one slightly missed the back arrow. I need to give it a thought again.

It's a good idea to make the entire comment tappable instead of just the small button. I haven't tested the app on a physical iPhone 6 yet.

I'm not sure about the arrow. It still takes up less space than the navigation bar and immediately goes away.

Main and comments views are basically a table view with UITextViews displaying attributed strings. I did my best to convert HTML to attributed string in no time, so I'm surprised by the stuttering as you scroll. It doesn't occur on my iPhone 5s. I need to investigate that.
Did they fire everyone involved, or did they fire everyone who got caught? It wouldn't be shocking if their managers were aware and just careful not to get provably implicated.
> good on Goldman for firing everyone involved

There's too much for one comment, but from the sound of it I think you may not be seeing the full picture. E.g.

http://www.zerohedge.com/news/2014-11-20/here-are-highlights...
It looks like they keep an ad-shaped piece of the page to avoid breaking the layout of the page. Does the number of ad spots change the amount they get per page view?
I'm guessing these people aren't in a developed country. I could imagine that happening in India.
Yeah, the whole "selling the vast majority of your life's time to something that doesn't matter" rings hollow very quickly.

The worst part is that some people don't see that there's any other way.
In the Enterprise world, jump boxes are more typically just a hack implemented by IT workers who don't want to go about properly setting up a firewall and 802.1x/vlan/vpn/ipsec/etc to allow strict control to a protected network resource. (Or because they don't have the hardware capability to do it, or their network admin decided against it).

The only two proper excuses for ever using a bastion host are "I don't have the money to do it right" and "I don't have the time to do it right."
No, it is not. If I thought the owner of said body had no value other than their body, you would be correct.

You can appreciate a persons body, you can appreciate a persons personality. Doing the former doesn't magically invalidate the latter. That I appreciated just the body with a glance, at a point in time, doesn't mean the women has no worth other than this.

If I went around saying women had no value other than for pleasuring a man - now that would be objectification. I do not think that.
I have. It surprised me a lot. Maybe it is because we tend to remember the good parts.
The next gen java resource site
Why does there need to be something "other than"?

Note that "reverse engineering" includes answering mundane questions like "WTF is this closed-source library doing when I get this bizarre inexplicable result?" and "Am I really encountering a compiler bug here?"
Microsoft now has robot security guards
I was happy to discover that the backend is written in Rust as well. Here's the code for anyone who's curious: https://github.com/rust-lang/crates.io/tree/master/src
Are you kidding! Of course it matters!! If it's a VM, we can start hacking it, until we find the universal equivalent of a buffer overflow or some kind of edge case branch mispredictoin, and can start injecting our own payload. After a little bootstrapping, and experimentation that hopefully doesn't crash the VM, we are now running whatever physical laws we want. Matrix time!
Made my own (iphone/ipad) implementation(swift/open source) of firebase too: http://portablerobot.wordpress.com/2014/11/16/hackyto-availa...

I did wanted to support the live update, but I rather let the user decide when to spend their data.

Nice work!
VERY HOT SEXY GIRL Show
take the job, duh

live modestly

pay off your loans and save an emergency fund

then start your own thing on the side

if you get laid off, use your new network to springboard to a better opportunity
> Create a simple random character string "tjxmvg123" that you can remember easily. Append the name of the website you are using to the end of this. I.E.: tjxmvg123hackernews.com

Am I missing something? I'm surprised to be the first to point out that this is very dangerous advice (to the extent bad passwords are dangerous).

All it does is add one, easily guessable bit of information -- for the first password the attacker seeks. And after someone has the first password, this method adds zero security; the attacker then has the passwords for every other website.
Occam's Razor doesn't disprove the idea. It merely suggests that it is a less likely explanation.
There is no standing extradition order to move Assange from the Sweden to USA.

Swedish court says prosecutors are not correctly handling case if the case is simply about sexual assault.

Which is interesting.
> I would certainly guess that in every country that leasing is a term

I'm not talking about how it's called legally. I'm talking how it's actually working. You pay money, you're allowed to control the resource. That looks exactly like leasing to me. You can't buy a domain, so you can't own it. It's that simple

> That is trivially true with pretty much anything, in pretty much any country.

Wrong. It's impossible to make you disclose your private key without your presence, ability and willingness to do so (although you can be forced to disclose, but that's completely another matter). And, obviously, your identity cannot be revoked or seized even if you'd wish for so.

> But it is a system governed by rules. And so is the domain name.

And the rules are made by others and others may change it at any time.

> In most countries you can challenge any stolen or revoked domain in court.

But why do I have to do so in a first place?

Seriously, can you explain me why do I need to entrust my identity to some registrar and ask government to handle that? Or why do I have to pay for a right to posses my identity? I've used to live without those, but now everyone's (Google, Facebook and - what's important and what's the basis of my complaint - Mozilla's continuing the trend) trying to tie me to this third-party-is-necessary approach.
That's why the simulation hypothesis is quite likely. We can simulate very simple universes. We will simulate more complex universes as time goes on. And there's nothing to prevent that universes to become really complex, so complex that beings there will become conscious. And it's only matter of time when those beings will simulate another universe.

And, considering that every civilization simulates many universes, there's an exponential growth of universes beginning from the "root" civilization. So there are (or there will be) billions of billions of universes, one inside other, like russian dolls. And possibility of us living in the "root" universe is quite low.

Either that or there's some fundamental nature law preventing us from creating a simulation of conscious intelligent mind. And even if we didn't create that simulation yet, I don't believe that those laws exist. We have billions stars to consume for energy and matter and billions of years to improve our technology. Why don't we create megacomputers with that power potentially at our hands?
Energy, though.

I mean, the host universe may have completely different laws of nature, but assuming that the 2nd law exists in it...

Organising information (storing it in RAM, carving it on a rock...) decreases entropy and thus takes work (entropy overall increases, because you had to get the energy to do your work by increasing entropy somewhere else by more.)

The cost of accurately simulating an entire universe, down to atoms, would be extreme, like you'd need galaxys worth of stars' to even begin.

At which point, the question becomes, why not just observe the real universe?
I have worked on the writer side rather than the tech side but I have noticed some changes recently. I've seen 1)more obnoxious clients and postings and 2) fewer actual awards being made.

A penny or two a word used to be the bottom end, now that seems to be mid-range and some clients are demanding downwards of half a cent per word or less while at least pretending that they want high quality work.

Needless to say I've spent even less time on there than I used to.
What in that article has anything to do with information leaking between regulators and banks? That is an article about banks manipulating commodities prices by buying up vast quantities of them. Which is a good argument in favor of regulating the free market, but doesn't address the point I'm making.
even birth control pills are harder to get

How is that true? Some birth control is now available over the counter and, with exceptions, health care plans are covering birth control these days. And anyone can walk into any number of places and grab all the condoms they want for free. Am I missing something?
You've never had clients that take that long to get back to you about something that is actually important to them?

That's pretty lucky.
Agreed. They might as have everyone use the same password.

Aren't there regulations for security of financial information? It's hard to believe this passes muster. If it's a 'reasonable precautions' regulation, this fails badly.
cough Segway cough
At first I saw that ember-cli was being used and wondered if the backend was done in JS. I came to the same realization as you.
Jonathan Franzen's book, The Corrections, contains some very vivid scenes & chapters through the eyes of a man suffering from dementia -- I can't speak to their accuracy, but they are very powerful.
I don't think that's a good approach. A good approach to me is one which works when a large number of people do it and attackers are aware of it. Appending the site name to a shared password in order to make it unique is security through obscurity, and won't help you at all if attackers know about the technique.

There is something to be said for the philosophy of, "I don't have to run faster than the bear, I just have to run faster than you." But in this particular case, at least, it's not hard to do better than that.
That's partly it. Sometimes another part is that you find yourself with the ability to do those things you wanted to do someday.

I always feel a bit sorry for guys in this age bracket who buy expensive sports cars, only to hear everybody call it a midlife crisis. Maybe they wanted a car like that since they were 18, and just couldn't afford it until now.

Personally I'm 48 and just resigned from my comfortable, well-paying job to spend a year on my own trying to build my own variation of Xanadu. Maybe it's a midlife crisis. But it's something I've wanted to do for over a decade, and I didn't feel financially comfortable doing it until now.

But at the same time, in the back of my mind I'm also thinking that if I don't do it soon, I won't ever do it, and I'll always wonder what might have been.

There's an alternative to guarding against desire because someday never happens, and that's to make it happen. Read that bedtime story, talk to that relative, get that masters, do that startup.
CotEditor – Text Editor for OS X
One could use chrome's incognito mode to get around such irritations if one were so inclined.
_Much_ more likely to be Android users.
Well, it doesn't do that if all your tabs fit in the window, right? It only happens once you run out of space, and at that point you need to do something.
I'm not really knowledgeable on the details but - if I got it right - from the overall image it seems good.

But it's not realistically useable for a time being. I'll be fine totally with Persona when the vast majority could type .bit (or whatever it would be called, I guess NameCoin will evolve somehow by that time) name I own (truly own, yay!) and it would resolve for them.
Actually, I have had an iOS app using the client out for about 3 weeks. It was meant to be a tutorial on how to use Couchbase Lite to consume APIs. However, it's going through a complete rewrite to make it full featured. I use it to consume Hacker News. I have a version that allows me to sort and hide stories I've already read that is waiting for approval.

Github: https://github.com/wrkstrm/HelveticaNeue

App Store: https://itunes.apple.com/us/app/helvetica-neue-native-open/i...
WatchKit Overview: See how an Apple Watch app comes together
Ok yes I understands. Thank you.

It all depends of the definition of gods, like I said, if it's omnipotent, omniscient, omnipresent, etc.. then I feel like we can consider it our god which would include the one that made our simulation. That would means that they would respect that definition of gods towards us. In the same way, nothing stop gods from having gods themselves. I don't know too much about gods but don't some Greeks gods had some sort of power over each other? It's all relative in a way.

I'm also not actually believing it's the truth too, I'm just acknowledging the possibilities. I don't believe usual religions because I find it hard to believe their "why". The computer simulation does have a why that I believe could be a possibility.
Security Features in systemd [pdf]
Swift Initialization and the Pain of Optionals
They don't have a master cryptographic key?
I also remember distinctly the two women involved dropped the charges. Wasn't it a prosecutor from another region who continued the process despite that?
I read the whole thing, and am also quite disturbed. I also had the feeling that while there is a some discussion surrounding food, an awful lot of small jabs are made at people's sexual views.

There is a repeated point driven accros that people of this area are morally depleted, in difference to previous generations. It's summed up in the introduction statement:

> * things we might signal by shorthand as mindful eating, and mindless sex*

This goes along though the whole piece, a lot of mentions goes toward porn, some about drugs, and the main point is again summed up at the end:

> [Nietzsch]He could not possibly have foreseen our world: one in which sex would indeed become “morally neutral” in the eyes of a great many people — even as food would come to replace it as source of moral authority.

A lot of words and energy is spent presenting current people's sex life as mindless, morally depleted where as in "the good old days" it wasn't the case. It's so egregious that it feels like the food talk is just a red herring and this essay just really wants to grieve about people's sexual life.

So I'd agree with you, the author talks about a lot more than just veggies, actually it would mainly be about her thought on sex.

You can't fault anyone pointing out that it's written by a conservative think tank.
There aren't that many left though, they are a terrible idea.

The NetBSD man page for inet_ntoa lists "The string returned by inet_ntoa() resides in a static memory area" in the BUGS section, Linux is not so forward about it.
Humans have no problem in letting billions suffer in real life.

Are beings in a simulation "sentient"? This seems illogical.
Watch: A year's worth of carbon dioxide swirls through Earth's atmosphere
Yes, an AES-CTR transformation would be more secure than any port knocking variety such as SPA, at the cost of being more complicated. But the point in port knocking is not its intrinsic security, which is not worth to talk about: its point is actually the obscurity it adds to some other secure access method such as SSH, and its ease of implementation and usage. With it you get much shorter and less noisy logs to monitor, and it's almost for free. In a way, it can be compared to camouflage: its dirt cheap and quite effective at avoiding hits. Bulletproof vests or armoring are still required, but the question is why would you NOT be camouflaged when you can?
Whats wrong with nihilism?