skysight-inc/HackerNews huggingface dataset:
Adding to GitHub Pull Requests, I recommend opening them early. This allows reviews to happen early and often, instead of reviewing one giant chunk of changes at the end which may get rejected because it has too many problems.

Plan out the tasks in your PR to communicate what still needs to be done -- I like to use GitHub Flavored Markdown task lists.

Here's a fish script I use when creating a new branch. It opens a PR before I even write a single line of code.

# Usage: git-new-branch 120-fix-foo-issue
function git-new-branch --description 'Creates a new branch and opens a Pull Request for it'
git checkout -b $argv[1]
git commit --allow-empty -m 'Empty commit to open PR'
git push origin HEAD
git pull-request # Opens your default text editor for PR title. Uses hub.
end
I m using it since earlier versions for almost 3 yers, i guess. It makes config easier, offers a well designed, easy API. Especially for Rails, PHP, Django crowd, an easy choice to create a sensible text search. The main benefit was an easier Lucene with JSON/http API. Yes a lot more advanced features are there too.
Good post, though I'd add that you should avoid rebase and force push. I've seen both used an add nothing but confusion / breakage.

See: http://geekblog.oneandoneis2.org/index.php/2013/04/30/please...
Where does this assertion come from? If you take a look at the market book, then you might see that yes, most market-makers (liquidity) in the equity markets are high-frequency orders.
You might like this: http://literallyunbelievable.org/
This nitpicking is 100% accurate, but its relevance to the underlying immigration and employment policies involved is far more limited.
It's more like saying 'if you're looking at a new solution you better account for every step of the process...The logic isn't circular.

In the general context of whether we can get ourselves out of carbon dioxide pollution, it is, and this happens again and again. If we assume that the current truism of our industrial society -- that you almost can't do anything without a carbon footprint -- is somehow true for all time is a vastly convoluted circular logic.

You will also note that the "two positions" above are actually the same position. The big caveat is the massive power use in recycling. We just interpret that in two different ways. "Not viable because it's not viable in our present economic infrastructure" is a position that's clearly false in the historical record. Unless you're being specific to the short term only, using that to justify a position is just obfuscated circular logic.
Isn't that what US labor and immigration laws are intended for? To promote hiring US citizens or legal residents?
I don't think it really matters what reputation anyone has, if you throw benchmarks out into the world and make claims about them, you should throw the code out too so people can repeat it and find flaws.

I'm not suggesting malicious intent at all here. People make mistakes, and contrary to what seems to be popular opinion, good benchmarks are hard.
Looks very sensible. We tend to not have a long running dev branch, and just cut features branches off master, similar to the 'how github uses github to build github' presentation [1].

Is anyone making squashing part of their workflow? We seem to prefer just plain merges with rebase.

[1] http://zachholman.com/talk/how-github-uses-github-to-build-g...
Not only that, it's based on byte offset and length: "SourceContent=8BIT,1279,492,https://archive.org/download/MoeJusteOrigins/8-BigBang-LostS...
"? Is the idea that the target file is never modified (or any new versions get a new URL)?

Also, I think that HTTP got it right when encoding is returned with the document (rather than specified in the link), but if you've already made the mistake of dealing with byte offsets you're tied to a particular representation.
Oh, I believe my own government(s) are spying on me. My native government (Norway) was finally caught in the mid-90's carrying out extensive illegal political spying. I have no illusions they're not still carrying out distasteful surveillance - not least because they're proudly admitting to handing data to the NSA (though the admissions makes absolutely no sense, and they're likely lying about what data they're handing over).

And my adopted UK is pretty much worst in class, with GCHQ proudly bragging they have less oversight than the NSA.

My problem is not that I think the NSA is doing more than everyone else wants to, but that they're doing more than everyone else have the capability to, and that it is profoundly dangerous:

Not because the NSA wants a "New World Order". I think they genuinely wants to do good. The problem is that wanting to do good and creating a machinery that makes abuses both today and in the future exceedingly easy can overlap substantially.

It never starts out with some cartoonish evil guy twiddling his cartoon-evil mustache and plotting to take over the world. It starts out with people who see themselves as good doing things they see as good and which probably mostly isn't being abused, and who are seeing good things come out of occasional small steps over the line.

And then the line moves. It starters with the creation of a "us vs them" group dynamic that lets you start to write of criticism as suspicious activity, because obviously you're on the side of good so why are people so critical?

Most of the worst dictatorships known to man came out of well-meaning groups wanting to do good.

This is why the uproar is warranted: Because we have the freedom to do so. Because we still have reason to believe that the people in charge is doing this not because they want to be evil, but because they think they're doing the right thing. Because it is vitally important to take the fight now, while it is possible to address this with peaceful, democratic means.

Because we don't want to wake up one day to find someone has decided that "doing good" has regressed to the state of the height of US interventionism, which is not more than a few decades in the past, and find another government has been overthrown because it didn't suit US interests, and another people suffering under a US friendly dictator as a result.
This foolish reasoning leans pretty strongly on the logical fallacy that it is in the best interest of everyone for all new businesses to be founded in the US, when in fact, it is in the best interest of everyone for new businesses to be founded all over the world, creating jobs everywhere.

This, in fact, has created the immigration supply and demand problem that the OP finds frustrating.

Build your business in columbia. Sell things over the internet or whatever your crashed ass website does, and live a happy life.

stop whining.
Well, good. I'd probably even pay a reasonable monthly fee for that to offset their lost ad revenue.
Your Web Stack Would Betray You In An Instant
Lattner created LLVM before joining Apple. Apple hired him for LLVM.
>This beats what most individual day traders and money managers can do, but is nothing close to what a well positioned HFT trading firm can make.

I don't know if this is actually true if you average up all the successes and failures. Probably more like, for every successful [daytrader|money manager|HFT firm] there are 9 that lose money or go bankrupt and nobody ever hears about again or includes in average return calculations.

It's just that the rewards to the few successes are so tantalizing, there's never any shortage of folks jumping into the game trying their hand at it.
I'm sorry to hear that, elbear, apologies for dropping the ball. Please feel free to contact darrell+hn@thinkful.com directly.
The do not 'provide liquidity' -- the liquidity is already there. Suppose there is a stock selling at $100. You want to buy 100,000 shares, and there are people willing to sell. A HFT leaves some bait 100 share blocks for sale at that price. You buy those first, they use the advantage of speed to buy any other $100 shares available. They then sell you what you wanted to buy at $100.10.

What value did they add to the market? Bringing buyers and sellers together? Nope. Provide capital to the market? (Which is why stocks supposedly exist...) Nope. They end every day owning nothing.

Lewis's book also shows that many banks and brokers instead route some trades through their own internal 'markets' first, trying to find a match, instead of just trying to get the fairest price available.

Everyone gets screwed. There was a HFT trader who boasted that they went years without ever having a losing day. The only way to do that is in a market that isn't fair, where not all parties have equal access to information.
MeteorHacks – Hack Blog* on Meteor
Bluetooth (at least in my experience with XBox 360 controllers) introduces a larger amount of input lag than wired controllers. This is important for FPS and other twitch games.
As an example of what I'd like to read:

#2313 Change expected value to a float field.

django-haystack stores decimal fields as strings internally.
This means that when we order by expected value small
values (e.g '9e-08') are sorted before larger values.
Adam Grant: Give without expecting anything in return
PC gaming culture is defined by one guy in front of his box/laptop. Wireless controllers for console make sense because its usually multiple people many feet away from a TV.

I don't want a wireless controller for my PC. Its just more needless complexity. I don't want to worry about batteries for something that I use 2 feet from my PC.
I, too, initially thought this might be affiliated with StackO. I wouldn't be surprised if they get a call from the Stack lawyers.
He makes an interesting claim, that immigration policy is doing more harm to American jobs than helping them. That said, having discovered that the team in Columbia is performing well, he's worked around the situation.

Unfortunately, hiring is just one piece of many puzzles that have to be solved when building your business. In 3 to 5 years, or at his first big 'liquidity' event (acquisition or what ever), where he switches over from 'startup' to 'S&P 500 material', that is when the other externalities of these decisions will be visible, in the future looking back. At that time, and that will be a good data point going forward. The cautionary tale is to let a decision that is working for you now define its total value. Business decisions have very long tails that stretch into the future.
But who needs the liquidity anyway? Seems like a "real" investor would buy e.g. shares for the expected dividends/profit after carefully studying the books, or for strategic business related reasons. Both buyers neither need to buy this very split-second nor do they care about the smallest price deviations.

Remove the liquidity (which comes at quite a steep price it seems), now what? There seems to be plenty of capital looking for investments.

The immense effort spent on HFT could now be concentrated on
a) finding things worth investing and finding better ways to do so
b) create more things worth investing in
I think the point was mostly that 'lol' or 'meh' is a completely useless comment. It's true that there's a lot of room for improvements in the given example. Still, they do provide some context to people who actually understand the application they are working on.

Does anyone know of good open source project that uses Git messages extremely well that we could use as an example?
The crime of treason, alone among all other crimes, is defined in the text of Article III, and that definition requires intent, either to harm the US or to overtly aid the cause of an enemy of the US. I don't think there's a credible fact pattern that supports such a charge in Snowden's case.

I do think Snowden should face criminal charges. Treason is just not one of them.
PSD Viewing and Diffing
Most major cities have public data portals like this, including San Francisco, Chicago, New York, Boston, Seattle, Austin, Oakland, and so on. Some are more useful than others, I think. (For instance, Oakland is mostly crime-related reports... surprise?)

San Francisco has some great ones that could be used to make new startups... things like street cleaning schedules, maps of every building in the city, the location of every parking space, and so on. You could easily build a niche app to, for example, remind you to move your car when street cleaning is coming by. Or maybe an app to inform you of local graffiti reports so you can be a good Samaritan and clean it up.

It's really great stuff. I love public data sets like this... and I'm actually using Chicago's (and several other cities) in my own work at my day job, so it's nice to see this get some recognition!
People completely miss this about immigrant workers (I use the term in a positive way). Tax generation, local spending etc.
>The bottom line is that predicting the success of a given company is hard. Predicting what the other actors in the market are going to do is also difficult, but is much easier by comparison.

Not sure I'd agree. With companies you can at least throw some old school research and hard work at the problem. Difficult but at least nobody is out to eat your lunch there. Its just difficult as opposed to cut-throat.

>rational actor

Can you really count on that if 60% of the market is AI and a sizable chunk of the rest is trading on "superior"/inside info?
The Swift standard library is Cocoa. Swift might be able to compile for all platforms through LLVM, but without the runtime and standard library, what use is the compiled code?
Does he describe how happy the team is living in Colombia AND receiving the USA-size salary?
I remember reading a lot of Reddit comments initially like "are you surprised they're doing this?", and I agree they are condescending, because people saying that usually want to:

1) show how smart they are, because they already knew that, and perhaps you didn't

2) try to imply that it's "no big deal", since it's been happening for some time, and supposedly because of that you shouldn't be angry about it now.

I disagree with both views, because:

1) most people weren't in fact aware that the NSA was spying on every single person on the planet, guilty of something or not, and also most people (or rather security engineers) weren't aware that NSA is trying to actively attack US companies in order to spy on their users, and even tap the Internet cables to get all plaintext data.

2) most of this stuff has been happening under secrecy (it is a spy agency after all), so just because it's been happening under secrecy for decades, doesn't mean we shouldn't be outraged that we find out about it only now. If anything we should be more outraged, because it's been happening for so long, without the population being aware of it, and giving their consent for it (especially on the part about even innocents being spied upon to "catch the terrorists" - which is already proven to not be the only reason NSA spies on everyone)
The Lean Ruby On Rails Developer – A Quick How-To Guide
This is a great example - it's details, explains the issue and also has the bug id (presumably) in it.
Think of it this way: the talent will make its way to create a product, in or outside of the US. If the US immigration insist that the country doesn't need the talent, they just create a competition in another country.

Promoting US citizens just because they are US citizens may work for a while, but I doubt that it is a good long-term strategy.
Ask HN: What is your company's internal code of conduct?
It's easy to find example codes of conduct for conferences [0] and company public events [1]. But what about for behavior within the company?

[0] http://www.steelcityruby.org/policies
[1] https://www.heroku.com/policy/events
What would be really nice would be if Chicago could find a way to federate this portal with the suburbs.
FOIA for NIST documents related to the design of Dual EC DRBG
... and then massively invested in LLVM.
I don't think they actually make a lot of money as they have to pay a lot for infrastructure, though they have a LOT of traffic and imho that's not a bad thing. Products with a lot of traffic like Snapchat or Secret are amazing. They could all make money if they wanted, but they choose to build up the community instead.
SysBadmin: A system administration satire
For starters, as your link says, the analog trigger buttons don't work properly in DirectInput. Instead of registering as two independent axes, they show up as Left and Right on the same axis, so pressing both triggers at once looks the same as no-input. The triggers are generally the preferred control for primary buttons, so for all practical purposes XInput is required if you want to support the 360 pad.

(Their explanation is "the Xbox 360 controller was designed to register minimum value, not center, when the triggers are not being held." Seems like the obvious solution would be "don't do that.")
You're right -- the diff answers the what, so being able to answer the why concisely is what makes a good commit message.

Ticket numbers are important context, but unless it is a one-off commit you can instead put that info in the merge commit (as if saying, all of these commits I'm merging were made as part of fixing Issue #17).

Some people like to use squash extensively for that reason, but then you don't have the same granularity when it comes to reverting individual bits of that commit without reverting the entire bugfix. (This assumes that every commit leaves the code in a working state with passing tests).
while Swift announcement may have caused a lot of hype, im pretty sure its not mainstream by now.. So Rust just fits into your concept of "mainstream", thats why i've cited it :)
The price is completely transparent. It's the bid/ask spread.
Do you think that pre-HFT trading practices are transparent and easily understood, and that they're under a proper amount of scrutiny? Are large banks trading at lower frequencies less shadow governmenty? I posit they are not, and I don't understand why the speed of the transactions would be dispositive.

(I'm told by knowledgeable people that there are indeed some shady things that happen in HFT, such as quote stuffing, that ought to be fixed, which makes sense. But I don't think that brings us anywhere near "shadow government", nor does it seem like a damning problem for HFT as a concept.)
WSI (www.wsicorporate.com) is still around. But I really don't understand the point of a franchise for a web development business. A web development business is one or more people with a computer, some skills and the ability to deal with customers. You don't need a consumer brand, a supply chain, specialist equipment and training or a stylish bricks & mortar store, so I'm really not sure what value you'd expect to get from a franchise fee.

If you need help getting customers, offer your services to other agencies for which they pay you
An article written by a journalist, about a book written by a journalist. And neither of them have a clue. Layers upon layers of idiocy.
"What else would those massive datacenters be for?"

Decryption of legitimately intercepted materials? Any brute-force component there is probably highly parallelizable, so we'd expect a push for more power for faster cracking even with a small amount of data to decrypt.

Which doesn't speak to your other points, of course. I think the biggest thing here was the fact that it's evidence not just plain enough that everyone knows it - it's plain enough that everyone knows that everyone knows it.
Another good thing about this is that if you have CI setup to work with Github, you can also run all of your test suite quickly and asynchronously for each commit.
No you're right, that was a bit confusing - it should be fixed now :) Thanks for the feedback!
Issue numbers in each commit can also help when you end up cherry-picking commits from one branch to another.
Certainly true, but what I'm getting at is, the decision not to close up an open-source project is rather different than the decision to open up a closed-source project. I'm not saying Apple has never contributed to open-source, but that I don't think their decision to heavily support an existing open-source project really reflects on what they'll do with Swift.
> Remove the liquidity (which comes at quite a steep price it seems),

The price of liquidity is less than the inefficiency (loss) that comes from an illiquid market (people who mutually want to execute a trade but cannot). This is rather straightforward to demonstrate mathematically.

Just because HFT extracts a premium (similar to a transaction fee) on the spread doesn't mean both parties (and the rest of the market) can't still benefit.

> The immense effort spent on HFT could now be concentrated on a) finding things worth investing and finding better ways to do so b) create more things worth investing in

This is analogous to the argument often levied by non-techies at the entire tech sector: "They could be developing software to cure cancer, so why are they creating more apps to send selfies to their friends?"
I have a hard time to imagine how that works out. After all they are not interested in buying any shares so they have to quickly sell everything they buy effectively canceling the buy. How does that provide liquidity?
Wow that's pretty shitty of people, but I think you're probably right. This makes a lot of sense.
Your story indicates that you don't understand how a matching engine works. I wrote a tutorial on it a few years ago, you might find it helpful:

http://www.chrisstucchio.com/blog/2012/hft_apology.html

http://www.chrisstucchio.com/blog/2012/hft_apology2.html

http://www.chrisstucchio.com/blog/2012/hft_whats_broken.html
For the record, the demonstrated effect of US tech workers visa caps is less jobs for US-born workers too (as the economy is artificially slowed down as a whole).

For instance it is estimated that during the recession over 200,000 jobs for US-born workers weren't created due to immigration policy restrictions: http://www.renewoureconomy.org/wp-content/uploads/2014/06/pn...
Your point is correct. But hiring a US citizen would be better for the country because not only would there be the potential tax income but the savings from lower unemployment.
The idea of posting anonymous profiles for TV characters is really fun, thanks for posting this! The numbers even seem relatively reasonable, although I'd expect Don Draper to be making a bit more...

On the feedback side, is there any reason that you chose to make your header fixed? Fixed headers are a trend that drive me crazy, and I'm not convinced that the links on your header are worth a significant chunk of your vertical screen real estate.

(I've actually become very used to just adjusting these headers with new stylish[1] styles, but I'd much rather not have to fix these headers in the first place)

[1] https://addons.mozilla.org/en-US/firefox/addon/stylish/
+1.

In fact, it would probably be better if the whole idea of Tor was further removed from prosocial values. This will help disassociate the idea that contributing to and using Tor is for people who have something to hide, and turn it into an economic decision.

At the very least, if the economics of using Tor were closer to neutral. Right now it costs money to run a Tor relay, would be nice if it was self-funded.
The City of Chicago's open data portal is very neat!

I've actually created an app called Car Pal which helps you avoid parking tickets by reminding you when to move you car based on where you park & street cleaning schedules.

Check it out here https://www.carpalapp.com

Android: https://play.google.com/store/apps/details?id=com.slashg.car...
Tech accelerator launches two 3D printing startups and a 3D collaboration startup
Tutorials for Learning Swift
Yeah, I could solve that expression you have given.. Most of the time I could see some challenge and able to figure how to work it out quickly... But, when I start to work on the project, there is this thing that keeps on iterating me that I am not READY...

In Short, I itself dont know how much proficient i am in python., that's hitting the learning curve so bad...
H-1B Visa Denials Cost U.S.-Born Tech Workers Jobs