skysight-inc/HackerNews huggingface dataset:
Say you have 3 sequential lines, but you only want to stage the middle one. You can’t split it into smaller hunks by hitting ‘s’ during ‘git add -p’. I’m sure there’s a way I’m just not familiar with but I just use Sourcetree for this on the rare occasion it occurs.
This is a great resource, but I wish the name was different. The oh-shit reference is a bit too much.
Already using Harvest for timesheets? Stop using Excel for projects altogether
What’s your favorite Project Management tool and why is it your favorite?
What’s your favorite Project Management tool for work and personal use and why is it your favorite?
Let the past die. Kill it, if you have to.
Amazon may have just dropped a clue about the home of its new headquarters –
Yes, but also it's make's fault -- it is possible to notice and complain if you write something that's not || safe, rather than just giving you a flaky build. (Cf. tup.)
5+ years later and I still sometimes have to do the classic "repull the entire repo into a new folder and manually copy the wanted changes over"
> I have little doubt that the current value of BTC and other coins will probably blow up in the future

Blow up bigger, or blow up smaller?
What's happened in Silicon Valley is that primarily white young men have had power and are funded and listened to in a fairly bubble-like way. It seems incorrect to say, "tech is bad," by citing a bunch of bro disasters. It might be fair to say, "as a journalist, I plan to be highly skeptical of tech startups looking for press who are led by a team of 20-something white dudes." At least that seems plausible. But if there are solutions to a lot of the mess that we've made pre- and post- the rise of Silicon Valley, they're likely to be technological.
You already have git-revert, for reverting commits without rewriting history.
Why not `git track` and `git untrack`?
I just make a habit of having a couple of hundred in cash at home and periodically pull out a $20 or $40 a week as needed and refill before it gets low. Just always try to have a couple of hundred around.
99% Invisible did a great story on this called Devil's Rope [0]. It's pretty amazing what people were able to accomplish.

[0] - https://99percentinvisible.org/episode/devils-rope/
How is the anonymity problem solved if we have to use GitHub and AWS?
NY Post, Washington Examiner, The Daily Wire, and a blog written by someone whose bio starts out "An internationally renowned expert in the field of health and nutrition...".

Perhaps you have sources that aren't part of an insane right-wing echo chamber? Oh wait, no, of course you don't, or you would have posted them. Must be some of that Deep State infecting the MSM (am I doing this "right")?
There are an app for everything:
http://www.schystavillkor.se/

Sadly this one only covers Sweden but you can look up what restaurants have signed the contract with the union. This guarantees fair wages and working conditions. The law in Sweden is pretty free so there exists unions that are supposed to talk to the companies and get an agreement on what is fair both ways.
There was a great Freakonomics podcast[0] where they interviewed a Koch brother. It seems like they truly believe that is what would be best for the country. They are Libertarians and believe in it's tenets to their core.

[0] http://freakonomics.com/podcast/why-hate-koch-brothers-part-...
> He was learning a great deal about many other technologies, and he didn’t have any spare energy to learn about Git.

Git is something that you can use on almost any project, with any team, at any company. It's something you need to use if you want to contribute to open source. Aside from your programming language of choice, it's probably the second most useful tool you should be learning as a software developer.

You're telling me a developer was too busy learning "other technologies", and in 6 months he couldn't be bothered (or was too afraid) to spend one or two hours going through a simple course about git? By that argument, he probably couldn't be bothered to learn how separate concerns into classes or how to use refactoring or write tests. What other things didn't he have time for? Unwillingness to learn is not an excuse.

> he never really learned how to use Git, because it was a low priority, for both him and our CEO.

I think it was more of a lower priority for your CEO than Sital. Learning git was something that benefited him more than it benefited the company.

I still have issues with your attitude, because it can be applied to anything useful in software development, but management might take issue with. Writing tests? Who needs them? The CEO doesn't care so they're low priority. Refactoring? Waste of time. Management wants shiny features not code quality. Developers have tried really hard to convince management that some overhead is needed to keep the quality high and maintenance easy. Your attitude is the exact opposite.
Since the assumption is that one ought to be rewarded in proportion to the work one does, how does the accepted inequality-ratio compare to the distribution of work-done ? Given that there's an upper-limit on the daily information-processing capacity of an individual imposed by thermodynamics and 24 hours.
Bitcoin is not trustless
A Small Fintech Stock Surged 2,400% After Announcing It’s a Crypto Company
The leading position of China in AI and Quatum technology is very worrying. We must adapt.

AI: https://www.ft.com/content/856753d6-8d31-11e7-a352-e46f43c58...

Quantum tech: https://spectrum.ieee.org/tech-talk/telecom/security/china-s...
Christopher Bruce on the Internet of Materials, “HTTP” Protocol for Industry 4.0
They are not wrong, in that detailed maps of streets can reveal more than simply how to drive around. The combination of both detailed maps and vehicle flow is even more telling in terms of economics and other activities.

It will be interesting to watch the ramifications of this sort of policy. As China moves to become a leading economy with a high level of technology distributed throughout the country, it will become harder to control communications and information dispersal. Historically information access has been anathema to their style of governing and I can't see how they can have both.
The nutty math that really shows how quickly Bitcoin has grown
You use the 'e' option which allows you to edit the hunk. Remove the minus sign or the entire line with a '+'
> You learn that rotations are essentially[sic] a[sic] linear transformation

Rotations about the origin are linear transformations. Rotations about an arbitrary point are affine transformations.
When the CryptoKitties craze was at its highest, the Ethereum network was still faster and cheaper than Bitcoin. It kept processing transactions (faster than ever, even). You just needed to pay more than usual.

You make some good points, like Solidity being a horrible language. The community needs to discover better metaphors for blockchain-aware programming.

As for the rest, I'm not sure if you really want to discuss what you say, or just to cry aloud. Any serious read into the Parity multisig bug would lead you into protocol upgrade discussions, not into bailout discussions. It turns out that some ether previously thought lost could be mathematically proved to belong to a certain address, so giving an option to retrieve the money would be a net gain. The multisig bug made people look into this. If it can be done, rejecting the change "to make them learn from their mistakes" would be petty.
Love that word! Did you coin it? Just now?
Yes, Gblame then in the blame pane ‘o’ to open the commit, then in the commit pane navigate to a file name and ‘o’ to open the old file, then rinse and repeat. You can trace line history across files this way.
Bundle Phobia: find the cost of adding an npm package to your bundle
Git is easy once you understand it. What are people doing that is so difficult to understand?
I know, but the possibility of getting rich is a nice booby prize for the unlikeable and unattractive.
It should be, however the events surrounding Israel, India and Pakistan successively going nuclear-armed has weakened the force of the rhetoric somewhat.
Reminds me of a time I saw a funny Makefile mistake. SRCS contained both .cpp and .c files, and someone copied a recipe that only replaced .c ones.

Then they used the resulting variable in 'make clean'. That was more of an, 'oh shit, git pull' sort of thing though.
because I actually learned how it works

The argument is focused on those who can not learn how it works. See some of the other excerpts from the essay that are in this thread.

Also, it's important to note that everything on that list is something that actually happened. Be careful about comparing your advanced skills to people with less skill than you.
I mean a big price drop. I feel like insane drops in price and cryptocurrency go together like peanut butter and jelly.
The worst case scenario should really be defined by just how long will the internet be down.

1 day is an inconvenience

1 week is major hurdle but can be overcome

1 month and people may start being laid off because they can't do their jobs and clients are cancelling services that they can't use

Now how many people over-saturating an internetless job market will it take for food, water and shelter to become a problem is something to study.

This may be an exaggeration, but since we are considering worst case scenarios.
> "because of Comte toon issues"

Qué?
Yes, that's the big thing I've been seeing: it's definitely the server-side story that seems somewhat deficient right now, in terms of end-to-end types. It does seem like a server built with Typescript should be able to save a lot of manual GraphQL writing work and reuse a bunch of Typescript type information, but I don't feel like I've seen a lot of examples and/or libraries of people doing that.
Except the US government already spends more public money per capita than Canada and doesn't have universal care. Your government is spending more and getting much less.

http://www.businessinsider.com/us-spends-more-public-money-o...
My pet speculation is that Java programmers are culturally predisposed to, and are typically proud of creating towering architectural ziggurats with at least 3 layers of unnecessary abstraction.

It's the only language for which I've ever met "architects who didn't code". It wasn't backwards compatibility that made that happen.
We've had clinical trials for burger and fries. Results: America is now a lot heavier.
Probably been chased to other locations. A lot of municipalities have made pan handling a nuisance crime.
> and if you've got anything more than disposable income invested in it, you'll probably get burnt really bad.

Maybe, if you’re stupid enough not to have a stop loss. In that case you probably _deserve_ to lose everything.
Ask HN: How do you get the most out of HN?
You can use 's' to split a hunk but it would indeed not work if you want to split two consecutive lines.

You can also use 'e' option to edit the hunk to e.g. remove one of the added line.

Nothing as easy as clicking a line in a GUI though.
I'm afraid we're misunderstanding each other here. You're talking about the fully-integrated SSD. Not my area of expertise. I'm talking about the endurance of the flash cell transistors. Nobody's claiming significantly higher endurance for the transistors themselves -- what's improved is the stuff on top of them. SSD controllers have gotten better at not trashing any given cell with repeated program / erase cycles. If you measure endurance of modern SSDs versus seven years ago, sure, you'll see better endurance, but that's becasue there's better logic on top, not because the cell transistors are any better than they were.
Within 'git add -p' when you get to the hunk that you want to edit (split down to single lines), press 'e'. This will open an editor (vim in my case) which lets you edit the diff manually.

In there you can remove added lines (prefixed by '+') by removing them, and re-adding removed lines (prefixed by '-') by replacing the '-' with a space ' '.
You can try requesting as desktop from the mobile browser. I've gotten it to work before, though now when I try it, it crashes the browser?!
Thought the author's name was Kevin Rose.
Big company vs. startup work and pay (2015)
Yeah, that's not the prettiest way of describing it ;)

But if it really is just online gambling, is that in and of itself enough to sustain over the long term? I don't mean the ~20k BTC price, but the ecosystem itself. After all, casinos/lottery/gambling have been around for a long, long time.
KDD will be in London next year, this is the top conference in applied ML research. Actually solving problems using AI.

WWW will be in Lyon, this is also a tier 1 conference with a similar goal, mostly involved on web problems, eg search ranking.

I've always felt that ECML was the top Europe specific ML conference. Basically the little brother to ICML. ECML will be in Ireland, ICML will be in Sweden.
I guess design patterns should never be applied. Those are simply optimal solutions to common design problems in OOP. When you encounter your own problem, derive your own optimal solution, and you call it some "pattern" if it happens to resemble one.

IMO pattern names are merely for communication purposes, like saying "abstract factory" instead of having to say "I have an interface F for creating instances of interface A, where different implementations of F can be chosen at runtime to create different instances of implementation of A". And also you are not required to call your factory "Factory".
AT&T did not have a total monopoly and the ability to charge 8000x prices. Remember the drug company is already ahead even if they never sell this drug again. That's not true of less extreme price increases.
Brave Browser integrates IPFS
using brain is way more cost efficient
'Safer' 20mph zones raises number of road deaths but too costly to reverse
Funny to see this as I just read about this curious telephony solution in the book "The Master Switch".
I'm reminded of a family friend telling me a story about how last year they were on day trip somewhere and a power outage happened to occur in whatever one-shop town out in the boondocks they were visiting and only one old Grandma had cash to pay for a drink or snack while the power was out, everyone else basically had to starve through lunch waiting for the power to come back on.
interesting. i'm on mac; i'll have to give it another try. also we might just have different ideas of "too slow"; for common operations, anything more than instant is basically too slow. :-)
Cool post, really enjoyed it!
How would you test data access in a meaningful way without a DBMS? It does not really matter whether you use tables or SPROCs. You'll still need a DBMS instance available.

For PostgreSQL and MySQL you can bring up the DBMS in Docker. That is not a built-in fixture obviously but easy enough to do locally as well as in CI/CD systems like Travis. You'll need to load SQL into the DBMS as a prerequisite to testing. That has the benefit of testing your load/upgrade sequence.
I don't think a transaction would just become valid if a miner (who mined a block) signs it. Each participating node will independently verify the chain for signatures of transactions before it accepts the latest block. So a miner who mines a block with invalid block will just waste his efforts on it. The chain length is used a proxy to find out a valid chain only when two competing chains have valid blocks throughout but have different lengths.
Reverting something does not require a rebase. It requires an aptly named command "git revert". Additionally, in the event that a deployed feature needs to be reverted, any halfway decent change management policy will want a history of what you reverted and why; a git revert commit can show both very cleanly.

And, frankly, since all rebase does is re-write history, I fail to see how it's inherently productive, especially in the context of re-writing the history of previously shared commits. Yes, it is capable of cleaning up and reducing the number of commits you have to read through when looking at history, but that's such a rare event that optimizing for it (especially by normalizing dangerous commands like `git push -f`) seems, well, premature.
Show HN: Via.js – Use the DOM in a Web Worker
As best I can tell, Postgres lets you do this albeit constraining your boolean checks to things you can efficiently do in the database. But then I can definitely see how this could get unwieldy very quickly.

https://www.postgresql.org/docs/9.5/static/ddl-rowsecurity.h...
We used to do that too, but that couple hundred came from the meal splitting and New Year money. :) Now I actually have to remember to stop a bank when they're open, because the ATM only gives 20s, and I need 5s and 10s, but since no one uses cash I have no where to break the 20s anymore.
I guess it has to be chromium. Unsatisfactory situation.
So it never pulls updates on the remote? That seems like pretty unexpected behaviour.
And that is fine as long as there is no obligation. But most American restaurants if you don’t tip to the formula they treat you like you’re robbbng them.
No.

It's just a json file with timestamps. I suspect the original authors would not want to move away from this simplicity.
caching is a very tricky area with tons of pitfalls. In my opinion, the ORM should not be caching. Let the clients (or any other layer) cache/clear based on their needs.
I don't see how that's going to have long term staying power. It certainly helped it initially as the first adopters were largely curious hobbyists.
Stop trying to understand bitcoin, you privileged, elitists hacker news folk won't ever understand it how is to deal with a hostile corrupt government that through banks/inflation just robs you.
It's very unlikely a stop loss will help you in case of a bitcoin 'run'.
How evolutionary biology makes everyone an existentialist
You can short right now but there are heavy margin requirements. But you are absolutely correct that being able to short is critical here. BTC futures are cash settled, which relies on market forces to keep the future market tied to the underlying asset. However it seems to be OK so far bc CME futures are at 18960 and gemini spot is at 18500. We saw 15% spreads when CBOE launched last week so this is a good sign.
I like Zenkit. In addition to the Kanban view it's easy to switch to other views to help you visualize projects and tasks. It's also easy to tie into Zapier and other services.
"why private companies do not make such fiber networks?"

It's a bad investment. There is a large front loaded capital cost and a long, slow payback over decades. Build-outs are plagued by difficult problems involving multiple levels of government and incumbent roadblocks. Private investors simply can't entertain things with such long time horizons, particularly if it involves legal and political entanglements, unless the eventual payoff is enormous. There are better, faster opportunities.

In the early days of electric and telephone service in the US we had a different model. The goal was universal service and it was supported by subsidies, special status for incumbents and legal force that precluded most of the roadblocks. Had this not been the case both telephone and electric service would be what broadband is today; a spotty hodgepodge of cherry picked areas servicing mostly well-to-do urbanites.
>The ostensible purpose of the doorman is to add a layer of security. Someone who is always there watching, looking for people who don't belong, receiving packages and securing them, etc. They are basically a crime deterrent.

Sounds like a pretty important job. I imagine a building would want to compensate such a person pretty well in order to help keep the building secure and functioning smoothly. As they say, you get what you pay for.
There is no way we will rid this society of tips. People will need to be paid more to compensate. And not many capitalist want to to give more and earn less. I was just in New York yesterday. Upon seeing the doormen dressed like the guy in Home Alone, I realized that there are people who still want you dressed in a monkey suit for no logical reason. I doubt they're willing to pay them more. I'm certain someone can make the doorman a device that will allow them to easily receive tips via chip card. I've seen boy scouts who use stripe.

On a side note do we even need door men?
Well it used to be that if they grabbed a package for you, you would tip them, so the people who got more packages "paid more" for the service.
Butterfly iQ – Whole body imaging, under $2k
i don’t think it’s about the number of voters...
This whole blog is interesting, glad to have been introduced to it. As an American, I love being reminded how young everything about us is. See, for example, the entry about the Duchy of Cornwall [0]:

"The Duchy was created in 1337 by Edward III, as a personal endowment for his son, the Black Prince. Ever since, its lands and revenues have belonged to the male heir to the throne – in recent times, Charles, Prince of Wales."

I acknowledge (and sympathize with) the author's interest in greater transparency, but I also have an appreciation for institutions that survive in this way, anachronistic and antiquated though it may be.

https://whoownsengland.org/2017/03/15/what-land-does-the-duc...
So would you rather yacht builders get more money, or would you rather people's children get a good education because their parents paid for it?
Neither do drug distributors aka pharmacy's. Remember, this is a retail operation they could be selling guns and the only change is the type of regulations and who their suppliers are.
What AI Experts Learn from Buddhism – A New Approach to Machine-Learning Ethics
Well, a factory pattern is a well-defined pattern in OO software design, and one that a developer of any experience level can look up and understand. Your particular implementation may give rise to a more plain and contextually-accurate name, but if you call it something other than a Factory, posterity may need more time and context to discern what your code does.

If I'm a new developer on a project, I know what a SprocketFactory does, and I know that I'm going to get SprocketFactorys from a SprocketFactoryFactory, and I know that if I call the SprocketFactoryFactoryFactory, I'm sure as hell gonna get back a SprocketFactoryFactory, which will then give me a SprocketFactory, which will then produce Sprockets.
> but one billion people have drastically worse maps.

This is something that the Chinese government demonstrably does not care about.

They even mandate that an obfuscated coordinate system be used by GPS units and maps in China.
> For example, in a scriptless world, your HN up/down vote can't be done without a full page load

You're incorrect. The up/down vote can be a form POST, which receives a 204 No Content in response. The only thing one would lose would be the change in the vote arrow.

Even that could be achieved in a world in which HTML allows PUTs: PUT to the page URL the specific bytes required to select an arrow, and return a 204 No Content or 206 Partial Content. In the first case the browser would know exactly which bytes to update, because it PUT them; in the second it'd know exactly which bytes to update, because the server sent them.
Or, you know, that is irrelevant when the person using a GUI makes fewer errors than those who aren't (which has broadly been my experience as well).

Even someone who perfectly understands git can make a typo or have a brain-fart of a day. A GUI significantly reduces the chances of something like that for all users.

Sometimes dev obsession with tool purity does more damage than good.
I think there's a large enough repository that there would always be something to show. Why wouldn't Netflix prefer to show me things I might want to watch (even if it's a low probability) over things I said I definitely don't want to watch.

For me, I think it basically just reduces my engagement. If my recommendations are filled with things I've already decided I don't want to see, I'll just go do something else.