skysight-inc/HackerNews huggingface dataset:
Basically a lot of devs including myself tend to write a lot of code, then wait until the code is ready then we decide how to commit. Part of this is just we are focused on solving the problem, the other half is we like the commit to contain working code and code that looks pretty to read. Who would want to review code that's messy? I don't mind reading code that does not work for the sake of giving feedback whether one is heading in the right approach/direction.

I've known people who don't care about how good the code is, they just keep committing, stating that's okay, because they will make sure at some point, most likely the head will contain fully working and tested code. When they merge they don't squash commits, they just merge because they believe full history instead of the glorified end state. I only do this to my personal project which I really don't care if the project ever takes off or if I am starting out the project for the first few weeks. I just need to get my project working.

I usually take a trade off. I use the --patch option often to split my changes into logical commits. I also try to make sure when I have a working code I commit and if I need to fix a small typo here and there I just squash and rebase. For slightly larger change I can add that changeset as a new commit.

I recommend folks to get used to using gir add -p option. It isn't hard to use the 'e' (manual edit) function, since the 's' split option cannot split lines further for something like:

+line1=2
+foo='this is food'

This line still here

You use 'e' mode to split.
Could Feynman have said this
> They've also pointed out that they can't give the UK a soft landing, as they need to show that leaving the EU is not without consequences; there's a few states thinking of departing, and if departing is painless, why wouldn't they?

You've just described an abusive relationship. The EU should make people want to be in it, not afraid of leaving it. Are other EU member states OK with being bullied and threatened in this manner?

"Remember that the EU isn't just about the fat cats in Brussels. It's also about bringing the people together. Europe has historically been the most divisive and warlike continent, with neighbours at each others' throats since records began..."

The creation of the EU may or may not have helped to bring peace in the beginning, but there's no reason to think it has anything to do with maintaining peace today. We have the UN, NATO, and the unimaginable destructive power of modern weaponary keeping the peace between nations in Europe today. Heck, even the "World shrinking" power of the Internet probably plays a bigger part these days.
Because as one FOSS dev put it to me once, "users are dumb".

This after he had witnessed the results of a usability test on one of the big name desktop environments...
What was improved with this release?
Deep learning/neural networks -- as well as a number of other "machine learning" methods -- is fitting a mathematical model with a huge number of fitted (tunable) parameters and component functions to data. It has been known for a long time -- arguably back to the discovery of the Taylor series expansion in the early days of calculus -- that any function can be approximated arbitrarily well by the composition of an arbitrarily large composition of other functions.

If the task is interpolation between the data points this can be highly accurate. It the task is extrapolation such as prediction or designing a truly new machine or system in an engineering application, the approximation will often fail. The about one percent error rate in predictions of planetary motions from epicycles is one of the earliest cases of this problem.

The simple example is approximating data with a polynomial with an arbitrary number of terms such as in the Taylor series expansion. With enough terms a polynomial model can always approximate any data set arbitrarily well. Polynomial models can interpolate very well unless the data has some generally unusual behavior -- changing unpredictably at successively finer scales for example. However, finite polynomial models almost always extrapolate grossly incorrectly. As you move away from the data set in the space of independent variables such as X, the largest power N in X^N dominates and the polynomial approximation function blows up to either plus or minus infinity which is rarely physical.

What we think of as "understanding" corresponds conceptually in part to the ability to make accurate predictions. "Understanding" or "explanation" corresponds mathematically not to some arbitrary super-complex function with large numbers of arbitrary parameters but rather to a mathematical object such as as system of differential equations (e.g. Maxwell's Equations for Electromagnetism or the General Theory of Relativity) that express interrelationships among the variables and data points.
You call it intermarriage between the San and the Bantu implying a nice peaceful union between the newcomers and the existing population.
Do you know for certain that was how it was, the article didn't use the word intermarriage?
It reminds me the special character finder in Google Docs, very well done.
>Any chance you might come out with a model that detects body odor or mouth odor?

Very unlikely in the short to mid-term. While it would be possible to gather enough data to train the algorithms to detect mouth or body odours, our chemical analysers are not yet practical for hand-held use. We're working on that though.

>do you already have in place a policy to avoid accidentally advertising a cancer cure in the UK (which is illegal)?

We're developing a lung cancer screening test meant to be administered in a primary or secondary point of care, so it's not something that could be advertised as a cancer cure. Even if our test came back as positive, the patient would be referred for a CT scan or similar. The idea is to have a non-invasive test to increase the compliance rate and detect the cancer earlier. That alone increases the chance of survival quite dramatically.
I agree with you in principle. What I was trying to say is that hate speech laws (and laws of similar spirit) tend to be written vaguely and leave room for unfavourable interpretation. Particularly in current climate, governments seem to be all too happy to sacrifice liberties under the disguise of protecting this or that (perceived as oppressed) minority.
Why not preserve full commit history in feature branches, iterate with code reviews on pull requests, then squash when merging to an integration branch? This way master is clean and comprehensible, and there's an accurate, complete commit history available if needed.
I even tried coining the term "volkswagening" (v. t.to both bypass a law and deceive the inspection) in forums, at work or on 9Gag (no shame - any media is a media), hoping to make the shame last a little longer, but it didn't pick up.
Floating Action Button (FAB) in UX Design
Ah, so the circuit with the MOSFET bridges is symmetric and can convert in both directions, and the software is capable of making that happen. That makes sense, thank you for answering my question in a detailed manner.

As a clarification -- is "back EMF" related to the open-circuit voltage that the motor generates when it's forcibly spun?
Show HN: PyPocketExplore – Unofficial API to Pocket Explore Data
Nice work. Congratulation! However, I personally find it very difficult to use the app on Desktop. I had to click the App Menu on the left repeatedly to navigate to other pages. Can you make it visible by default on desktop?
"That sounds bigger than it is?"

Per Wikipedia, New York city's land area is 790km^2. Tokyo's is 2187km^2. Tokyo Metro's population density is 6,224/km^2 (I picked the higher of the possible numbers for this). New York City's density is 10,431/km^2.

There's really no argument you can make that New York should be cheaper than Tokyo based on density alone. Tokyo's big secret is sprawl.
> Another way would be having more syntactic sugar for Result-style monadic error handling [...] Another issue raised by the original post is the fact that Rust has no top-level concrete error type that is convertible from all of the specific error types.

Well... Rust has both. Any type that satisfies the `Error` trait can be converted to `Box<Error>`, which is provided by the `impl<T: Error> Error for Box<T>` and `impl<E: Error> From<E> for Box<Error>` impls. And it so happens that this conversion can be done for you automatically using Rust's `?`. For example, this:

use std::error::Error;
use std::fs::File;
use std::io::{self, Read};

fn main() {
match example_explicit() {
Ok(data) => println!("{}", data),
Err(err) => println!("{}", err),
}
}

fn example_explicit() -> Result<String, Box<Error>> {
let file = match File::open("/foo/bar/baz") {
Ok(file) => file,
Err(err) => return Err(From::from(err)),
};
let mut rdr = io::BufReader::new(file);

let mut data = String::new();
if let Err(err) = rdr.read_to_string(&mut data) {
return Err(From::from(err));
}
Ok(data)
}

can be written as this without any fuss:

use std::error::Error;
use std::fs::File;
use std::io::{self, Read};

fn main() {
match example_sugar() {
Ok(data) => println!("{}", data),
Err(err) => println!("{}", err),
}
}

fn example_sugar() -> Result<String, Box<Error>> {
let file = File::open("/foo/bar/baz")?;
let mut rdr = io::BufReader::new(file);

let mut data = String::new();
rdr.read_to_string(&mut data)?;
Ok(data)
}

The problem is that the conversion to `Box<Error>` winds up making it harder for callers to inspect the underlying error if they want to. This is why this approach doesn't work well in libraries, but for simple CLI applications, it's Just Fine.
As Cathy O'Neil points out, black-box algos are deciding things that have a huge impact on individuals' lives: which teachers get fired, which prisoners don't get parole, and which loan applicants get approved and denied. In the latter two cases, the algos are tougher on minorities.

It's troubling when we don't know why an algo is racist. We need ways of checking that these influential algos aren't reinforcing trends we would rather diminish.
I guess I was getting at the fact that porting the python script that does something very simple is the wrong tool for the job.

A good candidate for trying to learn Rust is to find a script or tool that currently has the problems that Rust claims to fix.
I believe they do, but you have to specifically go into your settings and explicitly block the permission for the app and click thru a warning that the app might break, rather than ever being asked.

I don't remember when iOS did this retroactively, do you have an example? When have they even added a new permission that wasn't a new API entirely?
It's really better this way since you know what's coming before you click the link.
> Thursday, May 12, 2016
That's not correct though, theres plenty of reasons why on an intuitive level neural networks should not work. Also, genetic algorithms are intuitively appealing but do not work well.
It's in the AMT code, written in C, in the management engine processor...which is separate from the main processor. See: https://software.intel.com/en-us/node/631399

They are using HTTP Digest Authentication, which is built into browsers. The purpose was to keep passwords from being clear text over regular http connections.

So, the code on the client side is in the browser. The code on the server side is in the management processor, and it is a C implementation of HTTP Digest Auth.

The bug is that they used strncmp, but used the length of the incoming hash from the client as the string length to compare, versus the actual length that the hash string is supposed to be. The exploit is to send an empty hash. That requires a proxy, or browser plugin, since the browser creates the Digest Auth Headers. The empty hash causes something like strncmp(expected, received_hash_string, 0), and of course, two zero length strings are equal.
Does that warrant being deprived of 2 of 190 or so points thereof of my hard earned karma?

Not that I am suggesting that you are the "hater" here.
Hi! That's fair. Pending terms of services; you have access to the source code here: https://github.com/spolu/dazzle

Of course; this is all very experimental for now.

PS: that's the whole point of a Show HN :-)
ugh, you had me until:

> “There is no government agency more dedicated to the proposition that black lives matter than the police.”

I'm sure there's a way that this statement could be true but that's only if every other gov't agency has literally zero dedication.
Not really, supply side economics is predicated upon 'Say's law': the notion that supply create its own demand.

A notion that have been rejected in mainstream economics since the 50's.
> the previous government was pro-Europe, couldn't get Europe to commit to basic concessions that would make British lives easier, and the imposed austerity made a lot of people's lives worse in a very concrete and visible way.

Are you thinking of Greece here?

The "imposed austerity" was purely the choice of the Conservative government in the UK, and the "concessions" demanded seemed to be an end to freedom of movement, which was always a non-starter and wouldn't make the lives of Brits better in any discernable way.

What has happened is simple: there has long been a war inside the Conservative party between the pro-EU side and the anti-EU side. Cameron hoped that calling a referendum and deploying "project Fear" which had won the Scottish indyref would settle the question. Unfortunetely he'd misunderstood the Scottish result and Project Fear was hugely counter-productive.

This is why UKIP have ceased to exist in the council elections: they're now in control of the Conservative party.

(I mean, if I wanted to make a case against the EU, I'd do it on the basis of how Greece was treated - but even Greece didn't choose to leave, as they recognised that it would make them even worse off economically. UK anti-Europeanism seems to be built around a mixture of desire to deport foreigners, "bendy bananas" lies promulgated by Boris, and hatred of the metric system)
You measure the spectrum.
"Turns out 6000 people in a field tends to overload the local cell"

Next time, try dropping down to 2G and you should make it through fine.
Helping a developing economy is a laudable goal sure, the political question is whether it is enough to be worth inflicting costs on your own voters. Some of said voters will say yes of course, generally those will be the ones benefiting from cheaper products/labour, and not those who have been undercut.
Having it in my editor is an important property for me, but that's good to hear! Getting more people comfortable with that is good for git and histories everywhere.
Aztec Chia Tohumu Seti – İrem Derici Resmi Satış Sitesi
If you think the situation is bad, you need some perspective. That is massively better than any major coastal city in the US, and better than any first world city that is growing.

And even if it were bad by global standards, I'm pretty sure stagnant wages and declining housing costs is a way better situation than ours with declining wages and rapidly increasing housing costs.
Well realistically, someone could become a reasonably functional, useful doctor in 12 weeks, but the problem is they'd kill people pretty frequently. Bad programmers just write bad code, so if you're building a stupid website it's a lot less bad when it goes wrong.
No. The privilege part is that you can be unpopular and still be safe and successful.

To the less privileged fitting in just right can be a matter of survival.
What!! Just as I was responding another of my hard earned points got deducted

Who are these mean Rustaceans?

Is Nim considered such a threat to Rust?
> Humans do a remarkable job of dealing with ambiguity, almost to the point where the problem is unnoticeable;

Isn't this because we have knowledge of the world?

The sentence "Alice drove down the street in her car" won't ever be parsed as "the street is in the car" by a human because we know that streets don't go in cars.

Computers won't ever solve this without having a larger knowledge base to compare the parsed sentences and remove the ridiculous outputs.
Does this philosophy also assume the wealthiest won't try to manipulate scarcity in order to gain more wealth?
Leaked documents reveal hotel industry's plan to combat Priceline and Expedia
I don't think it should be as easy and concise as python — it's systems programming language without GC. It is not designed to be used in place of all programming languages, just in place of C and C++.
That's a strong claim to make without an argument. How has automation and technology made society a better place?
Given the shadow chancellor couldn't bring himself to deny he was a Marxist on television this morning, and the BBC is running a piece called "is McDonnell a marxist" I'd say I'm being fair.

On being swivel-eyed, the history of it's use in recent years has been by Guardian columnists accusing right-minded people of being unhinged. Note the article is written by no other than Carole Cadwalladr that in 2009 wrote about the Conservative party conference:

It's true that there are 18-year-olds in pinstriped suits with handkerchiefs tucked neatly into their top pockets, as well as lady golfers with strangely immobile hair, and swivel-eyed ideologues who have a crazed Pavlovian reaction if you so much as whisper "Europe" within 500 yards of them.

So, I'd say I'm no more biased than the author of this article, and I have no reason to be bitter.
I don't like it, here's why. The current version is very compact, each line of text is a different article. All the complex CSS makes scrolling on android Firefox hang.

Really it just feels wrong for hackernews, the site that works in elinks and only uses 7 or so optional lines of JavaScript.
Well there are people being assassinated by less tolerant religious members (usually of certain religions) for not following them even in 2017

And Hate Speech laws are not dangerous (and a different issue than blasphemy)
Doesn't sound like he has any idea what the Blitz was.

During the cold war (and in Hollywood) the propaganda seemed more about the US defeating the Nazis single handed, while the Soviet and other effort was relatively overlooked.

More recently, Russia likes to do the same, downplaying the role of other countries, including those that were in it from the start and didn't ally themselves with Nazi Germany.

Now we have someone apparently from a country that was on the side of the Nazis in WWII writing off the sacrifices of a country that was under attack and bombed by the Nazis for almost six years.
Machine learning researchers are well aware of the problem of out-of-sample predictions, in fact most of the work goes into making systems appropriately generalizable by making architectures robust through dropout or regularization. The resulting systems might not correspond to our intuitive definition of "understanding", but they look more similar to what we know about the human brain than an elegant function with a small number of interpretable parameters.
The lesson of the Luddites is that this doesn't really work - you are likely to have multigenerational negative economic effects. As a society you can either decide that is acceptable or plan to mitigate it, but ignoring it or wishing it away doesn't help.
Maybe for people living in Silicon Valley or the west, if this is even feasible.
Kanjipad does a decent job whenever I try it, and it’s available in my package repos: http://fishsoup.net/software/kanjipad/
Rust hasn't made significant incursions into math modelling or industrial processing. It's advantages are slim there. Embedded will fracture into network interfacing and realtime where user input is less hostile, more predictable and doesn't require extensive constraint.
I haven't done much Rust, but why isn't there a safe way to do some of this implicitly? If you don't want to think about errors and just want to crash, then I feel like there should be a sane way to crash the script with a default error message. Could you write a thin abstraction to achieve this? Maybe there could be a new crate called "rust-script" or something, where the goal is to write code as easily as Python or Ruby.

Again, I'm not a Rust developer, but it's not hard to imagine an abstraction (or even a transpiler) that makes it easy to read a file, parse it as JSON, and do something with the data.
All sides manipulate everything they can to gain more wealth. But as the parent comment says, not every possible manipulation is rational.
While it's too late to change the name "expect", could one create an alias for it and call it say, "on_error"?
Not a Rust guy, but it looks like a way to say "this option value is required and if it is not present, crash with the following error". So "expect" is a fair name, since it means a value is expected and the absence of a value is unexpected.

I could see "required" or "require" as a better name. Or even just break the "positive names" rule and go with "notOptional".
Why We Should All Wear the World’s Most Visible Color
>>> However, that chart alone is very compelling because it shows something that you don't see anywhere else; declining housing price.

I find it strange that you would think that. I would expect accommodation prices to drop in the vast majority of areas. Obviously, I am biased the other way because of the places I know.

The economy outside of major cities is pretty bad and it's only getting worse.

P.S. There is also a matter of timespan. If you look at 20-30 years, everything is going up. If you look at 1-5 years, it's stable or going down.
>a few states thinking of departing, and if departing is painless, why wouldn't they?

That sounds awfully... federalist. If that's the best reasoning they can give for staying, then better to leave.
Oh god, I hate Question Time.

It doesn't "skew left" in any meaningful sense. There's almost always a UKIP member on the panel, regardless of how badly they do in the elections. There's always people banging on about how immigrants have ruined the country. Participants shout over one another, especially over women.

And it's not "sour grapes", it's people who wonder if they or their family members are going to be deported, or whether their business is going to continue to exist. Many people in the scientific community have already had their work disrupted due to uncertainty over funding and pan-European collaboration.
Tokyo Metro's population (2016) is 13 million. So it grew by 13% in ~16 years, or about 0.88% per year.

Whether or not you consider that "a lot", it's not an exceptional number. It's also impossible to know how that translates to "new units" without knowing a lot of other factors.
These are not necessarily competing sentiments.

So long as the capitalist needs his workers, the workers can enjoy a nice lifestyle. Witness the Greatest Generation and their baby boomer children working for decades at the same company.

Compare to today - temp jobs, and very little loyalty. People moving in with their parents, unable to afford rent. What changed? Why is rent so high relative to wages?

Well because AVERAGE DEMAND FOR HUMAN LABOR has gone down in the marketplace. Products have gone down in price too (eg cellphones) but rent and food stay scarce. This explains Piketty and a lot more.

A lot of it is due to globalization (see David Harvey). This is, imho, a good thing for people around the world unless you are a super-nationalist. Poverty has been reduced around the world.

But the other is automation. And what's coming is going to hit developing countries very hard.
Here are the commits. Looks like the biggest backwards compatibility issue comes from the "Drop Angular" commit. He also changed the screw_ie8 option to be called ie8 now. A few bug fixes, too, but I'm definitely paraphrasing here.

https://github.com/mishoo/UglifyJS2/compare/v2.8.23...v3.0.0