skysight-inc/HackerNews huggingface dataset:
Suppose a range of lines contains function calls in some programming language:

i = foo(a, 42, 1)
j = bar(b, c, 100, 2) # this is a comment (well, duh)
bazbar(etc, 3)

You want to edit the last parameter in each function call -- change it to 'hello'. I have two ways of approaching this: macros (interactive) or :norm (less interactive).

1. Put your cursor on the first byte in the first line, type qq to record a macro of your change, q to finish. Select the rest of the lines in visual line mode and type :'<,'>norm @q to run the macro on each of the remaining lines.

2. Select the lines in visual line mode and type, for instance,
:'<,'>norm %F,ws'hello'
This is the "non-interactive" version of the above since the macro keystrokes are given directly to :normal. Pro: ability to undo keystrokes unlike when recording a macro. Con: cannot actually see the effect of the keystrokes (but with practice, this is not a problem).

(Note that colon in visual mode automatically inserts the :'<,'> so you only have to type :norm ...)

I find the declarative nature of regexes/:s to be too restrictive -- I much prefer the operational nature of macros/:normal, since that lets me make the change I want directly, without me having to phrase the change as a regular expression.

I could also use CTRL-A in normal mode to increment the last argument in each line:
:'<,'>norm %b^A
(where ^A is the literal, typed CTRL-V CTRL-A)

I feel like a wizard whenever I use :normal in a non-trivial manner.
From Mathematics to Generic Programming (2015)

http://www.amazon.com/Mathematics-Generic-Programming-Alexan...
Using average or even median rent is not that meaningful either. Some people pay high rent by choice not because there aren't other options.
Khan Academy SAT Prep
Your best option? Pick a provider that uses OpenVPN (or roll your own) and use the open source OpenVPN for Android application => https://github.com/schwabe/ics-openvpn. Done.
> Why were were booted from Stripe? Is it because we are in the marijuana industry?

yup
The argument here is comparing the AVERAGE rental price with the MINIMUM wage, and then concluding that the minimum wage is less than the average rental?

Well no shit!

States that have rich people will have a higher average. But there are also plenty of cheap 2-bedroom apartments too!

Why don't you compare the MINIMUM available 2-bedroom price with the MINIMUM wage? Then you can see if our poor can afford to live.
i still think they would make more money renting them to the 100 hour customer, bringing them back, then selling them to the 1000 hour customer at a reduced priced because it is used and only a 900 hour pump.
Someone else already has already done the work for me, and written a bunch of reasons why the conclusions people tend to draw from this less-meaningful-than-you-think set of datapoints are faulty:

http://slatestarcodex.com/2013/04/04/lies-damned-lies-and-fa...
Stephen Wolfram on Computing the World's Knowledge and Not Being Scared of AI
The real hazard is that the output may be indistinguishable from your content, making it difficult to recognize as a placeholder...
How the Clinton Email Release Process Will Work: Slowly
From Zero to Hero: Bitcoin Transactions in 8 Seconds
Redfin: Luxury Home Prices Exhibited Little Growth in First Quarter of 2015
Avoid headaches: Use an Agile issue-type decision tree by Philippe Araujo
Ask HN: What is the best autonomous car on the market today?
What are some good autonomous or semi-autonomous options that are available to consumers today? Are any of the aftermarket solutions viable?
7 Tools for Understanding the UX of Your Business
What Is Your Digital Stamp?
I'm pretty sure the first 256 bit key listed in his output is/was mine.

It was a key generated and used as a test (years ago). It has never been used to access my Github account. Also, my account is pretty bare as it is.

To be safe, though, I have now removed the key.
I issue refunds on Stripe all the time and they haven't shut me down. Although I'm sympathetic to the author, it really is Stripe's prerogative to do business (or not do business) with anyone they want. It doesn't sound like they've frozen his account or taken his funds, they just don't want him as a customer anymore.
Bamboo Talent (www.bambootalent.com) - New York, NY

We are a talent search firm, working closely with NYC's tech community, acting as a true business partner to growing organizations looking to scale their engineering teams. We care about customer service and operate with respect, honesty and integrity in every communication.

Some current needs include:

-Golang Engineer (Go) - SaaS-based Data Analytics Startup

-Senior Engineer (Go, Python, Java, C/C++) - Series A Funded Data Platform Startup

-Product Engineer (Javascript, Python) - Healthcare Startup

-iOS Engineer (Obj-C/Swift) - Healthcare Startup

-Android Engineer (Core Java) - Healthcare Startup

-iOS Engineer (Objective-C) - Big Funding, Knowledge Platform Startup

-Android Engineer (Core Java) - Big Funding, Knowledge Platform Startup

-Javascript Engineer (Raw, Vanilla JS) - Big Funding, Knowledge Platform Startup

-Senior Software Engineer (Deep Python) – Seed Funded Healthtech Startup

-Lead Android Engineer (Core Java) - Seed Funded Healthtech Startup

Please get in touch to learn further details.
email: jon@bambootalent.com
Sealed Traits in Scala
Another little "trick" for replacing:

" search. cw (or cs, c whatever) to replace/fix. esc. n.n.n.n.
vnoremap <silent> s //e<C-r>=&selection=='exclusive'?'+1':''<CR><CR>
\:<C-u>call histdel('search',-1)<Bar>let @/=histget('search',-1)<CR>gv
omap s :normal vs<CR>

A really simple, dumb example: http://showterm.io/040c49ac158cdda15fbca
It's not logic fail. It's emotional fail.

Logic fail is claiming there is a logical reason why all single wage earners SHOULD be paid enough to afford a two-bedroom rental in their current location. Emotions might tell you that but logic does not.
National Geographic Producers face criminal charges for making illegal doc
Open Source Routing: A Comparison
Sounds very much like you are badly underpaid. Also, congrats on making that work in Amsterdam. If it is true, that is.
While it isn't necessarily the business of HN readers, I feel there may be a gap on communication between Stripe and the author. Either, it is being left out of the article, or the author just immediately threw their hands up.
Add moustaches to your photos
55k active users is super!
Since you are popular in 3rd world countries I would suggesting adding something your users can earn some extra money directly from phone. Maybe fiverr integration, odesk, amazon turk, etc.
> Details give the precision : no recursion allowed. Functional languages are out, there.
> Func languages give no warranty on that either.

Actually, what you can do in this case is when you call recursively, pass back an incremented counter variable as part of the state, and if it passes some upper limit, handle it appropriately. You don't need to "avoid recursion" just to get control over the number of times something loops.

> and rely on garbage collection (which is forbidden, too)

Fair enough, but if I work in a language that doesn't even give me much control (if any) over the GC, then how is this relevant to non-C coders, again? Which was my original point.

> Name one professional code analyzer for any func language of your choice.

Erlang (and by association Elixir) has Dialyzer http://www.erlang.org/doc/man/dialyzer.html which is a static code analyzer. Static code analysis has been endorsed by John Carmack (and of course, all the 3 year old links to the blog post are now dead, sigh)

For anyone (like me) who is hooked on Elixir, https://github.com/jeremyjh/dialyxir provides a bit of easier Dialyzer management

Elixir (and I suppose Erlang) has this concept of "specs" which you don't have to use, but which help code analysis if you do... http://elixir-lang.org/docs/v1.0/elixir/Kernel.Typespec.html
Yes, that's what Superfish was. However, I'm willing to believe that Lenovo's marketing department was incompetent enough to agree to bundling it without malice.
After reading this story I'm struck by a bit of a parallel between Notch and Tarn Adams, the guy who writes Dwarf Fotress. Both are to be extremely passionate about the simple but massively playable games that they make, but Dwarf Fortress has a niche following and Minecraft has EXPLODED in popularity. I can see Notch riding the leviathan for a while but at some point that's got to be extremely tiring and every day's growth would take him further and further from the "I just want to sit in the basement and make fun games" that got him in the industry in the first place.

Regardless of intent, at some point if someone comes along and says "hey we'll give you $2B to walk away from this and go back to making fun games in the basement and never having to worry about money ever again" it will be a more attractive offer than trying to deal with the headache that comes with running a large company (which would be compounded by never desiring to have a large company in the first place).
> How about one where income inequality lowers in those countries?

Unless you effectively drop the inequality to zero you always are going to have a lower band which would have the tag of "extreme poverty" even when their quality of live is better or worse than poverty in another countries.

The problem is you will never have an income inequality of zero. Comunist regimes (the closer thing to that) actually have 2 classes (goverment vs. the rest) with a separation even worse than the rest of the regimes.
At $13 an hour, TANF (the best match on "Welfare") would not be available. $25,000 per year is in the taper for the EIC, but would qualify for ~$2000 each of the first two children and a bit more for a third.

In some states, $25,000 per year would also disqualify a family of 4 from Medicaid (but ACA subsidies would still apply).
Hello,

I've been working on a project to solve the problem of exploring paths in services like Street View. The result is a computer graphics method that can recover frames between panoramas in real time in browsers. More detailed intro, paper, live demo and code behind the link.

All feedback is welcome.
Ask HN: Is the majority of modern web code object oriented
I have written mostly procedural code for myself on side projects but work in an Object Oriented code base for my full time job. I was just wondering if my day to day work is the standard, or my side projects.
Agreed. The article is a bit rant-y so I had a hard time figuring out what his actual issue is but the whole time I could only think, of course it's because you're associated with the marijuana industry.

IMO it will take all fifty states, DC and the federal government legalizing marijuana before industries like banking and insurance are comfortable with doing business with anyone associated with the marijuana industry.
Assuming that you don't buy into that bullshit, could you then please explain why the gender imbalance is currently at 1.16 to 1, when naturally you would have slightly more women than men? Because it sure seems like the Chinese believe they have a reason for preferring boys.
Can I request a title change, maybe to "Stripe just booted us with 5 days notice". I'm not normally phased by the f-bomb but it's so distracting on the HN front page.
A response to this inevitable progress would be: A Silkroad where reputation is tied to responsible drug use. Where irresponsible use, at worse, lands a therapist at your door rather than police dogs. By turning dark markets into a means of rehabilitation the justification for official support becomes clear and would further reduce the market available to more vicious forms of organized crime.
> "the underlying assumption ... seems to be that minimum wage should get you a 2BR apartment"

or, phrased another way, the underlying assumption is that if your labor isn't worth a full 2BR apartment to your employer, you shouldn't be allowed to work for part of it, you should be forced to rely on government entirely.

I think it's a good thing that low-wage employees are partially government-subsidized, not because I like government subsidies, but because I dislike hard thresholds and cutoffs that make people have to jump over a significant gap in order to make small net gains.

And, as you say, there's nothing inherently wrong with not being able to afford a 2BR apartment on your own. My sister can't afford a 2BR apartment, so she lives in a spare room in my house. My friends (teen parents) likewise can't afford a 2BR apartment, so they live in the other spare room in my house. There's certainly an argument to be made for doing more to subsidize corner cases (single unskilled mom with a few kids, no source of child support, etc.) but messing with the minimum wage isn't a particularly effective method.
The Top Bike-Friendly Cities in the World (Copenhagenize Index 2015)
How Scrum and Trello Doubled Our Agency’s Productivity and Saved Our Business
>Poverty is a resource allocation problem that is judged relatively.

I wouldn't go that far. It's a combination of relative inequality and of absolute living standards. We look at what it's possible to provide easily, and we look at what people truly need. Some costs are dragged up in proportion to the wealth of others. Some things drop to minimal cost as technology advances.

The definition of the poverty line should increase with wealth, but it should increase slower than wealth does.
> A grown adult(lets say 25) shouldn't be working the entry level position at MickeyD's. That should be an outlying case and policy shouldn't be decided on corner cases.

Maybe you think they shouldn't be, but statistics show they are. Good jobs are hard to come by and the median age of fast-food workers is 28[0] (meaning half are older than that). It's absolutely not a weird corner case. It's a very common thing, and if we don't want adults with kids working those jobs, we're going to have to reverse decades of economic trends and start creating lots of better-paying jobs for marginally skilled workers.

[0] http://www.theatlantic.com/business/archive/2012/11/mcjobs-s...
I'll buy that health experts have figured out the sitting is bad. But health experts still haven't figured out if eating cholesterol is bad for you, if red meat cause cancer, or is salt causes high blood pressure. I'm sure they haven't "figured out" exactly how much time we can spend sitting.

"This is an initial guidance, which we do expect to have to evolve with time"

TL;DR: get up and walk around occasionally.
Had an argument with my boss about "copying texts from othe companies websites to our prototype website". I tried to explain what this text really was, he did not approve off the name.
In the USA. Then there's still the minefield of European and Asian governments - some of which view the trafficking of narcotics as a capital crime.

And then there's the fact that many financial regulatory bodies are INCREDIBLY conservative.
Why We Age, Part III: Can We Live Forever?
I think there's a second question. Who are we mad at in Lenovo/Superfish, and who knew about the risks.

I'd be mad at Lenovo - because they installed the malware without considering the consequence. I can, however, believe that plenty of decision making people at lenovo were unaware of the risks underlying the software.

So, does lenovo have more in common with the consumer who did something dumb based on poor information, or with the vendor distributing malware.
This is probably the real reason behind it. Regardless of your own personal feeling on the subject, you have to recognize it's a Felony, and banking/payment service providers have to follow the current laws and regulations. Federal law is always supreme to state/local laws.
Blame Stripe’s back-end banking partners. Stripe (and similar companies) have to err on the side of caution, because if they get shut off from processing credit cards, they’re hosed themselves. Since as you mentioned your company does a very small transaction volume, servicing your business or anything else with a hint of being drug related is high risk for Stripe with essentially zero reward.
Nice try Sourceforge. ;)
You should complain with those core commiters.
Deep discharge does not make LiIon cells explode (or vent), it only reduces their cycle life a bit. Though personally, I swap the batteries in mech way earlier than the point where they start getting damaged. At 3.6-3.7V the battery is weak and doesn't produce enough power on the coil. I'd be surprised if people regularly overdischarged batteries.
I dunno, I don't think it is an unreasonable aim of society that if you are supplying your labour to someone (why shouldn't this include McD's?), that you are able to at least live a reasonable life.

By that I mean secure accomodation (not large, but comfortable), food and transport.
If I was involved in payment processing, I would not want to even distantly be associated with that industry. The federal regulatory authorities have not been kind to banking efforts in the space.
> After doing a function rather than instantly showing the next cube put a .5 second opacity transition

Please, no animation. Instantaneous feedback is perfect as it is. My 2cts.
The future of heterogeneous computing
Show HN: Meetup – Find someone to work with
Isn't

:%s/.)/hello)/

simpler? Maybe that's because I know nothing about macros. Thanks for the explanation.
And it's his prerogative to complain about it. As a person selling services it's very important that payment processors be reliable, and seeing posts like this is very useful information. I wrote donation processing code for a super PAC against stripe's API. If stripe doesn't like your politics (which arguably is what is happening here), will they exercise their prerogative?

It's a right "more honored in the breach than in the observance."
I don't have a thunderbolt device yet, but I wouldn't expect the behavior you're talking about. Being able to connect my old firewire devices might be nice, but I wouldn't expect to be able to use new devices on an old port.
An article from the BBC [0] suggests that the animals' immune systems were compromised to the point that they were killed by two endemic bacteria. The suggestion is that they were in a weakened state due to this year's very cold winter and very wet spring. Also they observe that this species has frequent die-offs and repopulations. I suspect that would be more sustainable over the species' original range, which apparently stretched from Britain to China rather than just over one Kazakh national park.

[0] http://www.bbc.com/news/science-environment-32958032
Can you explain what the mappings do?

I usually use the asterisk to search for the token under the cursor, edit the sought token using cw and then n.n.n.n. to replace later occurrences. I don't see how the mapping makes this more efficient.
Have a look at blazegraph it can do both sparql and gremlin. Has support for runninh on clustered gpu.

Was selcted by wikidata when titan was bought.
Amartya Sen and Martha Nussbaum have worked to popularize something kind of like that, though your list is more oriented toward material things than theirs is. They call it the capabilities approach.

http://en.wikipedia.org/wiki/Capability_approach

Edit: here is Nussbaum's list, pulled from the Wikipedia article:

Life
Bodily Health
Bodily Integrity
Senses, Imagination, and Thought
Emotions
Practical Reason
Affiliation [social interaction]
Other Species
Play
Control over one's environment (political and material)
Right now, most financial institutions are scared to do anything with the marijuana industry.

Here's an article about that: http://www.vice.com/read/colorado-bankers-are-still-scared-o...
I should mention that I get a copy of the email when you apply through this site, which asks the bare minimum necessary to get you into the pipeline. I don't get all of that information, but I do get at least your name and email address and I pass that information to the hiring manager, sometimes even walking over to them myself and saying, "LOOK AT THIS MAGNIFICENT PERSON. HIRE THEM. PLZ."

Applying above is not a black hole. Repeat: not a black hole.

The new hire standing next to me as I type this, whom we hired through a post very similar to this a couple of months ago assures you that this is not a black hole. Seriously. She is evidence of the absence of a black hole. Checkmate, doubters.
Agreed, county-level data would be a lot more relevant.
In addition, while I understand his protesting that "we just sell software", pretty much by definition he sells software to businesses (i.e. people who will be paying with Stripe) whose legality is a gray area, especially in the banking sector.
the real issues:

1. more man than woman, about 50Million man will probably never have a wife. Really, either legalize prostitution, or somehow have a war, otherwise you will read more news about rape.

2. the world is flat, woman are better educated and they do not want to marry a man that is inferior, they would rather stay unmarried if no good fit can be found, that further worsen the situation. low-class men are the real losers, in a large amount.

3. people do get married do not want to have more than one baby due to various reasons listed by others here.
> But magically GitHub is competent enough to stop users from picking the password "ilovecake"

That is definitely a good thing, but github wouldn't be responsible if they didn't do that and people chose weak passwords.

> If you think about the physical life equivalent here (say a bank leaving keys out in the open for safe deposit boxes) there is no way to rationalize it

No, it would be like a bank not actively looking for deposit box keys that customers may have dropped.

btw, I 100% think github should protect users from weak keys, I'm just disagreeing that they could somehow be sued for it
Seems appropriate. If the merchant wants to refund their customer Stripe should help them, not tell them to f-off. Stripe really did something no one civilized would expect and left the company and company's customers in the lurch on this one.
Tools for Understanding the UX
Mac Application Software Engineer at Phase One - Frederiksberg, Denmark - Full-time ONSITE

We are looking for a top-notch software engineer to join our world-class software R&D team behind the award-winning Capture One Pro software. As a part of our highly skilled and motivated team, you will work with OS X technologies on the Mac in the exciting world of pro photography to bring the best products into the hands of our demanding customers.

You will be an integral part of the Mac software R&D team in Copenhagen. In close cooperation with your colleagues, you will design, implement and maintain Capture One and our other software products. You will have the opportunity to work on many different parts of our software and be involved broadly in the development process. In addition we offer:

* A challenging job at the forefront of technology.

* Innovative international environment with highly skilled colleagues.

* An informal environment with freedom to innovate.

* Great opportunities for personal and professional growth.

* Attractive salary.

Whether you have many years of relevant expertise or are right out of school, you might be the person we are looking for!

Check out our new medium format camera system : https://www.phaseone.com/en/Products/Camera-Systems/XF-Camer...

Take a stab at Capture One : https://www.phaseone.com/en/Imaging-Software/Capture-One.asp...

Read a little about us here : https://www.phaseone.com/en/FooterMenu/About-us.aspx

Upload your application to us via Jobfinder : http://www.jobfinder.dk/job/329513288/mac-software-engineer/

Some keywords could be: Objective-C, C++, RAW, Photography
A Git horror story – repository integrity with signed commits
VMware's vSphere 6.0: Faster, smarter, more resilient
Bloomberg View calls for “Helicopter money” unconventional monetary policy
I've put the full copy of the message from Stripe in the post. It makes no mention of weed.
What's a felony? Writing software that helps manage compliance with the law? That doesn't sound quite right.