skysight-inc/HackerNews huggingface dataset:
Some fun examples of what you can do with `xo`,

Hello world:

echo 'Hello! My name is C3PO, human cyborg relations.' | xo '/^(\w+)! my name is (\w+)/$1, $2!/i'
# => Hello, C3PO!

A quick breakdown on the syntax:

echo 'Hello! My name is C3PO.' | xo '/^(\w+)?! my name is (\w+)/$1, $2!/i'
^ ^ ^^ ^ ^ ^ ^
|______________________________| ||_______________________| |_____| |
| + Delimiter | | + Flag
+ Piped output + Pattern + Formatter

Boot up a Rails server with Stripe keys:

# ./secrets/stripe.yml
secret_key: fE3J2Z76ry
publishable_key qYB7936Qos

Then read it and boot Rails with keys set as env vars, (without logging to the console!)

cat secrets/stripe.yml | xo '/secret_key:\s([\w]+).*?publishable_key:\s([\w]+)/PUBLISHABLE_KEY=$1 SECRET_KEY=$2 rails s/mis' | sh
# => PUBLISHABLE_KEY=fE3J2Z76ry SECRET_KEY=qYB7936Qos rails s

View modified files in the last commit:

git --no-pager log -n 1 | xo '/^commit\s([^\n]+)/git diff-tree --no-commit-id --name-status -r $1/' | sh
# =>
# M some-modified-file.txt
# A some-added-file.txt

Nice to put this in a script called `git-last-modified` inside of `/usr/local/bin`, then use `git last-modified`.

Decode a hidden message:

# ./hidden-message.txt
WITHIN THIS MULTILINE the STRING
LIES A HIDDEN MESSAGE meaning of
life THAT COULD BE is HARD TO
READ 42

8)

Then read it with,

cat hidden-message.text | xo '/([a-z0-9\)]+)/$1/' | xargs
# => the meaning of life is 42 8)

Read a config file containing SSH info:

# ./servers.yml
stages:
production:
server: 192.168.1.1:1234
user: user-1
staging:
server: 192.168.1.1
user: user-2

Then read it with,

ssh $(cat servers.yml | xo '/.*?(production):\s*server:\s+([^:\n]+):?(\d+)?.*?user:\s+([^\n]+).*/$4@$2 -p $3?:22/mis')
# => ssh user-1@192.168.1.1 -p 1234

What if we didn't specify a port, i.e. like staging? Fallback values! (Notice the ternary operator, `?:`)

ssh $(cat servers.yml | xo '/.*?(staging):\s*server:\s+([^:\n]+):?(\d+)?.*?user:\s+([^\n]+).*/$4@$2 -p $3?:22/mis')
# => ssh user-2@192.168.1.1 -p 22

Now turn that into a `~/.bashrc` function and we're golden,

function shh() {
ssh $(cat servers.yml | xo "/.*?($1):\s*server:\s+([^:\n]+):?(\d+)?.*?user:\s+([^\n]+).*/\$4@\$2 -p \$3?:22/mis")
}

And then we can use it like,

shh production
# => ssh user-1@192.168.1.1 -p 1234
No, it's not. It's because they're crap. Go back a decade or three before that point in time, and the radio stations were all independent and not owned by a single big corporation (ClearChannel). The entire music industry is very different now (or in 2000) than it was in 1970 or 1980 or even 1990.

Finally, if you have an ear for music, you should be able to listen to music from other periods before you were born and find stuff that's really high quality, even if it's not a genre you normally listen to. Not so for post-2000 stuff (unless maybe it's some indie stuff or something obscure, not radio pop).

Now as for 1016, music was really different in the days before recorded music. The classical stuff like Brahms and Beethoven was paid for by rich patrons (nobility usually) and played for richer audiences. The common people's music isn't very well known, since no one recorded it. The music that the King in 1016 listened to was surely not the same as what the peasants listened to.
I feel that interviews in general get a little out of hand. Every small company which is working on simple problems is nowadays asking design and coding questions on whiteboards in long-lasting interviews. It is a way to pretend that they are a fancy workplace.

Interviewing is difficult but I don't think it needs 8 hours of coding to make a decision whether to give a candidate a shot or not.

Companies should take a closer look at the work of their employees during the first month's of employment (trial period in most countries) instead of giving home work which does not respect the interviewees time in my opinion.

I would prefer an hour live coding over spending a week full time without pay on the companies work. And let's face it: the more time you spend the better the result will be. In an interview the company at least had to pay you the respect to spend time of their own. So the company has an interest to limit the interviewing time...

And usually you are not applying at a single company. I don't think the interview process should be 5 weeks of work (or even more) for a candidate
> Why do you think your cell phone consumes more power now?

Good question.

The ratings I read before I buy them. At the time of purchase I knew that exact mAh it consumed and compared to previous phones.

I blame the 7 inch screen, 3 different antennas and 3 extra processors that my older phone didn't have.

EDIT - Grammar and wording.
When I was homeless and living out of my old car, my biggest problem was police. Constantly hassling me. I have no idea how they would always find me, I think people were calling in me sleeping in my car (this was before smartphones).

They would always insist on searching the car for drugs and I basically had to give in. Not that I ever had any but they would make a mess since all my possessions were in the car and they could care less about tossing everything.

And yes, as many people say, getting out of the rut of being homeless is the hardest thing, it starts to completely change the way you think and everything becomes day-to-day survival.
Good point. They're struggling due to having unmet basic needs. Since money provides almost no nutritional value I can't see how it would help them. You've enlightened me; I'm now a social darwinist. /s
Mesh vs mesh collisions will never be faster than primitive collisions. Also, simplified collision geometries do not produce glitches in the same way mesh vs mesh collisions do. At most you may have a collision between two primitives where the models don't actually seem to be touching. But this can easily be circumvented.
In fact, I would argue that a lot of the physics glitches we've seen are probably the result of using mesh colliders when a simplified geometry would have sufficed.
Malcolm Gladwell got us wrong:  here’s what got oversimplified
We should be ashamed that this goes on in our names.
Aren't you hijacking the topic of homelessness here then? When people say homeless they don't mean someone who is homeless out of choice and can get out of it whenever they want to?
Yes, Yes, and Yes.
This is absolutely wonderful. Such a great idea and execution!

I have to wonder how many of these Nile Rodgers[1] is responsible for.

[1] https://en.wikipedia.org/wiki/Nile_Rodgers
I don't feel that any additional distance is really necessary to say with some confidence that, for example, 2015/6 is probably not the equal of 1966/7 when it comes to pop music in at least the English-speaking world; and I wasn't born by 1967. I can't think of any years in my youth to compare to 1966/7 either, for all that I too admire and fondly remember Nirvana.
"With this pilot, we want to provide a true test of a universal basic income."

... except for the part where taxes are collected from the population to pay for said universal basic income.
Swift is the future Apple is pushing to developers. There is an insane amount of Objective C in the world for sure, so it's not going away completely, but I expect more new work will choose Swift, and eventually Objective C will be relegated to Apple devs working on OS X itself, plus legacy apps.

But maybe I'm wrong, and I'd be happy if I were.
And in the USA you might not get any benefits at all, depends how long you worked, if you previously got benefits and how you lost the job (fired vs let go vs quit, etc)
Maybe added that to their github?
Hey HN, I'm one of the back-end engineers at Gifs.com and we just launched a brand new editor that anyone can use to create and augment videos online.

We started with the premise of democratizing video editing by making an iMovie-lite in the cloud. Our goal is to empower people around the world to express themselves. We still have a lot of ideas in the works to make finding, creating and augmenting short-form media frictionless but launching our new editor is the back-bone of that dream.

You may remember us from gifyoutube.com where anyone could add gif in front of youtube and we would let you trim the video and add captions. Now you can simply replace youtube.com with gifs.com or put gifs.com/edit/ in front of any video or GIF to open it up in the new editor with even more editing capabilities.

Everyone knows a picture is worth a thousand words, so does that mean a GIF must be worth n pictures where n is frames in the GIF? After checking out /r/reactiongifs/ and /r/wastedgifs I now believe so.
> I think this greatly overestimates the importance of IT and high technology in the modern economy.

On HN? Inconceivable.
This could be done with a single VT100 escape: print multi-line junk, move the cursor back, print less junky junk, repeat.

(Even with some optimization: for any line that is not changing any more, just emit a CR-LF).

You don't even need to put the TTY into raw mode; no termios calls needed, and \n is your CR-LF.
Arcade: Easy to use Python library for creating 2D arcade games
Perfect, that would be really amazing! :D
maybe, but you will be losing the Toyota radio that goes up to eleven.

in all seriousness, just buy any car and install the optional hepa filter. no American car install them by default, saving them some $0.50 in production costs. but you can then buy the filters for $10 and install yourself in under two hours. you can even add the active carbon polymer sheet to prevent outside smell.
The karma threshold for downvotes likely means that there are far more people with the ability than there were 3 years ago. Honestly, I only collected enough karma recently to down vote (and it's a privilege I use quite sparingly).
The point of lawyers is not to make companies "more efficient," so that's a strange criticism of them.
From a perspective a little closer to the industry, I think the answer is just "costs".

This idea has higher turbine costs (and site profitability already ranges from impressive to deeply marginal), and the extra profit from the high end isn't excellent. Cringely overstates the money lost in high-wind conditions - most shutdowns are for low wind or to avoid damage in storm conditions, which are rather different than smooth, profitable high wind.

Further, it might offer major operating-cost hits even with ground-based generators simply by being a major break with existing systems. Obviously that's surmountable, but it means that the system has to be better for a lot of sites to be worthwhile.

That said, there are definitely vertical mill projects in the works, and I wouldn't be surprised if some of them have switchover generators.
Deploy Go using Capistrano
that other person was a lot more likely to figure it out anyway.
Just giving money will not work, see Saudi Arabia. They have all the money they can dream of and did not evolve. If you want it to work it needs 3 things:

1) Free Education
2) High Taxes
3) Strong Unions

Sounds leftist? It may astonish you which countries have the highest ratio of rich persons per capita live. This and a good explanation can be found in "Where in the world is it easiest to get rich? (TEDxOslo)"

https://www.youtube.com/watch?v=A9UmdY0E8hU

Just giving money may help in short term anyway, but I doubt it is one solution for everything.
Absolutely not, I agree; I'd just say that "interesting" varies widely with the context. If what you're interested in is running a tech startup, Detroit is less "interesting". There are many, many terms on which San Francisco is less "interesting" than the rest of the country.
Interesting concept. I'll be interested to see if it works.

I worked with a company building AC mini grids in East Africa. They connected around 130 households in each village to a 220V grid.

The expectation was that people would use the electricity for basic needs (e.g. light, cell phone charging) but also for productive uses (e.g. grinding grain to flour, air compressors, saws, etc).

The expectation was that as people entered the second phase of energy use (after basic necessities) their consumption would increase as their income increased.

What this company found though, was that very few customers followed this pattern. If people bought anything that increased their consumption, it was almost always a TV. This obviously didn't improve their income, so often their use would actually decrease because they can't afford the increased consumption.

Last I heard, they were having serious problems getting people in these villages to use more power.

Through some pricing campaigns, they discovered that people's energy use was almost directly correlated to the price. If you made the price similar to other well developed countries ($0.10-$0.30 kWh) people would use lots of energy, but the amount they paid was still relatively small. If you raise the energy price, people use much less, but end up paying almost the same amount per month. So if it costs $0.25 per kWh people will use 4kWh, but if it costs $1 per kWh they'll only use 1 kWh.

Since their model included batteries to cover the night load, they couldn't afford to sell the energy this inexpensively. Hence their wish to increase day time energy use among the villagers through equipment use (e.g. welding, grinding).

My expectation from this program: some small percentage of people will use the money to invest in tools and means to improve their economic situation. The vast majority though will waste the money on things which benefit them in the short term, but provide no long term economic benefit to them (e.g. better cell phone, television, or maybe a solar home system)

Also from hearing the horror stories of doing business in East Africa (draconian regulations + corruption) I'm sceptical if anywhere close to 90% can make it into the hands of normal people. Hopefully this isn't the reality...

Not sure why I'm getting down votes. I've worked with a company actually working in East Africa and I don't see people using the opportunity of energy to improve their economic situation. After basic necessities they seem to use it for leisure.
Because it drives you. You must succeed. I'm preparing to do this myself. In Russia too. Succeed or die by ice, wild dogs and military police. This is authentic.

Homeless in San Francisco hanging by coffee shops, getting change is like a mansion. In Russia, homeless people disappear. This is why my mvp will be superb.
That's two of you ignoring the point of what I said to bring up nonsense technicalities. Let me being you back to the real world.

In U.S., as in many countries, there exist intelligence agencies whose job is to get secrets out of foreign countries. This is legal. There's usually also laws that protect secrecy of those and other activities. In US, such classification applies by law unless it's a criminal act they're trying to conceal. Leaking that information is a felony that, depending on info, might also damage (i.e betray) the US. Leaking criminal activity that was classified is whistleblowing. Not only form but main form for this conversation.

Snowden's whistleblowing by leaking proof of illegal surveillance and perjury by government I don't dispute. However, Snowden also leaked tons of tools and activities dedicated to legal, foreign surveillance. What NSA was legally required to do and which he personally agreed to in case of stopping foreign hackers (eg China). Worst, he leaked it to news organizations in thd countries NSA was spying on.

So, far from your abstract reply, Snowden betrayed his country by leaking legal, mandated, acceptable-to-Americans operations. He didn't have to and shouldn't have. He also heroically blew whistle on dirty stuff. So, he's both a traitor and whistleblower on leak by leak basis. That simple.
Not sure, but it is actually listed as P0 (PAPA-zero). Having a hard time finding any info on this myself.
Its economics in the manor that its non-trivial and time consuming to produce a physical good. A existing factory can take 6+ months to retool, especially if you don't want to interrupt its existing output much.

Also a bunch of the developments don't pan out for various reasons, like not being able to get the yield high enough to be worth while, requires large amounts of unobtainium, have very restrictive operating requirements not mentioned in press release (such as a 140F auto-ignition temperature), etc.
I typically fall back to perl when sed isn't quite versatile/cross-platform enough. What do Go regular expressions offer over Perl regular expressions? (Performance, I imagine.)
Equivalently, being outside during the day in areas hotter than Palo Alto is ludicrously taxing in pretty much every way.

The Bay is very kind to Homo sapiens, in terms of climate.
Glad to hear it. It was literally the first hit when I searched for "inconsistencies quran" on Google.

(Of course, what with personalized searches who knows what Google thinks of me and wants me to find...)
not at all. what part of monopoly didn't you get? they already have all the sales.
Charter Wins U.S. FCC Approval to Buy Time Warner Cable
Download Maxwell SketchUp 3.2.5 Crack Mac OS X Full
You would need to own the land, or arrange a lease with the owner. Otherwise you're trespassing and that can result in arrest or being shot. I'm not saying that you can't do this (there are people living in remote portions of national parks), but there can be severe downsides. Like ending up like Christopher McCandless.

https://en.wikipedia.org/wiki/Christopher_McCandless
To be fair they didn't just suddenly change this. I am not sure exactly how long its been but it was at least 3 months ago that they announced it.
The three blade approach also offers better outcomes for repair costs (and animal strikes). High-blade, high-solidity designs are more likely to break in extreme weather (even a stopped windmill takes a lot of strain at 70% solidity) and repair is usually necessary after failure of a single blade.

Between that and your points, my impression is that many-blade designs aren't useful beyond small scale generation, which is exactly where they're still in use. There are an awful lot of three-blade advantages that went completely neglected in this piece.
Yes, it costs money, but it's not being paid for by Elsevier. Referees receive zero money, editors receive zero (or perhaps a nominal fee). The copyediting costs a bit, but it is low-skill labor and can mostly be optimised away (many journals already accept camera-ready copies directly from the authors).

What I see publishers mainly providing is ranking and filtering (and branding to some extent). ACS has their top level journal (JACS) and several subfield-specific journals, and usually there are ACS journals with different prestige in each subfield. ACS, APS and other non-profit science organisations do a fairly good job at it IMO.

Forbidding for-profit publishers would be my preferred option.
Yeah, an exogenous UBI is a fundamentally different kind of thing than an endogenous UBI. (Also, an openly close-ended trial is different than an open-ended program in the way that it affects behavior.)
But why do companies need to host their own blockchain? What is the value proposition in doing so?
Not just US fighter pilots. In the US Army infantry, as well.
Realm | San Francisco & Copenhagen | Realm (YC S11)

Hello,(https://realm.io). We’re currently shipping a mobile database that runs directly inside mobile phones, tablets & wearables. Hundreds of millions of people rely on Realm every day through apps by Google, Amazon, eBay, Intel, Hipmunk, Expensify, GoPro, the BBC, Adidas, IBM, Homeland Security, Walmart, LINE, Starbucks, Xiaomi, the Washington Post and many, many more.

We allow people to build faster apps, faster, and do so in a reactive way with live objects, change notifications, unidirectional data flows and much more.

We’re the 3rd-most starred database on GitHub (https://github.com/realm) and growing fast.
We’re working on some exciting new projects… Some keywords: Mobile, C++, iOS, Objective-C, Swift, Android, Java, JS, React Native, C#, .NET, Xamarin, Unity, distributed systems, cloud, devops, infrastructure, test, QA, evangelism, OS X, Product Manager
We will consider sponsoring work visas to Denmark for the right candidates.

If you’d like to apply it will be easiest if you do so directly on our Lever where we have specific jobs listed: https://jobs.lever.co/realm
I was wondering if they're not actually using it as a cost saving exercise, but one to encourage people to pay up for the paid version.

I imagine there's a few people using between 5 and 15GB that before were on the free version but now would have to pay to carry on using it.
Small point, but the handoff was in early 2014, not 2012.
I would argue that's only true depending on where you stand. (and I mean that quite literally, as in Where are you from, what country do you live in?) If you're the state of Germany, they probably don't think it's legal for others to spy on them. That's certainly true in the US. And of course you'll argue that it was a US citizen reporting on US gov't affairs. But, isn't a whistleblower someone who believe they are serving the common good by uncovering illegal, immoral and unethical behavior? Can it not be argued that Snowden was helping out the countries (especially our allies) that there government and people were also being spied on? Or the fact that governments were making secret deals with each other: ("you spy on our citizens, which we can't do as it's illegal, and we will spy on your citizens, and they'll trade the information. And that way it's all legal!")
(Who do they think they're fooling?)

If Snowden is a traitor, what does that make the NSA?
Indeed, i understand them cutting the "unlimited" version even though it was their mistake to offer it to start with but 10gb of space is not that much considering that probably only a few users actually use up all the space.
This sounds good. Did you specifically look for a dysfunctional organization or were you just lucky?
Depends on how long your day job will accept you getting there in a state of stupor all morning until the caffeine catches up with you.
I did. I worked in Redwood City, slept in Palo Alto (because it's legal to sleep in your car there). I tried to stay within the confines of the law as much as possible because I didn't need the extra hassle.
There's going to be a second batch of papers released on Monday, May 9th - http://www.breitbart.com/tech/2016/04/28/second-panama-paper... - that will supposedly have more informations on Americans.
I find this pretty fascinating. Firstly because I'm overwhelmed with sympathy for this guy, and I stopped to ask why. I live in Chicago and I see the homeless every day, and I know it's a problem and I wish I could fix it but I don't know how, and giving a dollar to every person I pass would actually start to have a hefty toll ($20+/day or more, easily.) So since moving to the city I made it a blanket rule not to give hand-outs in that form.

But because this guy keeps a blog, because he is articulate and just sounds like another guy, easily could be me, because he still has his voice, I'm almost tempted to send him a couple hundred dollars over paypal. I haven't yet, but the temptation is there. Just because I can hear his story instead of just see him sitting on a sidewalk. It makes it so much harder to walk by.

I do wish I knew more about how it happened. I always wonder that. I usually think there must have been some bad choices made along the way. Not that anyone's free of bad choices. But, why did he instantly become homeless after his mother sold the house? Why didn't he have any savings at that age? Why didn't he have any old friends who would take him in to help him out? I know not everyone is so fortunate as to have those things, of course, but still I wonder how it happens.