skysight-inc/HackerNews huggingface dataset:
Nice job! Of all the third party browsers I've tried on iOS, this is the only one that feels as nice as mobile Safari, and the only one I'd consider using full time.

Do you have any plans to implement bookmarks, or any way to "pin" items in the history? I use the mobile Safari favorites all the time for quick access to 4 or 5 sites. Seems like the one thing missing from Dazzle.
[NYC] Type-Driven Development with Idris Reading Group
I'm so tired of these incessant incursions from the Nim Evangelism Strike Force!! :P
That one is maybe not the best example, since len(unicodedata.normalize('NFC', "é")) == 1

Though I don't know any "normal" character that requires composition ad-hoc that could serve as a better example.
> The ECB threatened to deliberately nuke Greece's economy if they left

Do you mean anything other than "stopped lending additional funds" here?

> Orwellian charges of high treason

By whom? Where? When?

As I said, Greece's treatment could have been a lot better, but this doesn't apply to the UK. The UK is not a member of the Euro, is much larger than Greece, and potentially could have a much better position.

(Even more ludicrous is the idea of "Frexit". France have got literally everything they wanted out of Europe, including the Strasbourg gimmick)
Nobody forces the development and adoption of new technology. So any successful technology is "better" for the people buying it.

How far back would you go to claim that technology is not beneficial? Pre-industrial? Pre-agriculture? Pre-tool use? Technology made humans the most successful multicellular species we know.
And equally, if you delve blindly in areas where you don't have the knowledge, you're going to be seriously handicapped.

We don't teach physics to those who have never been exposed to algebra, and you can't explain the half life of uranium to someone who doesn't know what an atom is.

In practice, we can and do explain... By giving the basics.

The beginner who tries to understand the Dragon Book, will get somewhere. They will be enhanced.

But nearly as much as if they'd read Lisp In Small Pieces.

I have plenty of technical manuals on my shelves. Once, they were utterly useless. Knowledge made them tools. But a beginner can't just leap into Intel's x86 instruction manual and expect it will help, if they don't understand registers, pointers, and that a cpu has a cache.
Anyone can explain the term radical ecology?
For reference, here is the link to the reddit thread:

https://www.reddit.com/r/rust/comments/69i105/
I recently discovered 'hacknplan' which has some nice project tracking features particularly suited to game dev, but could be used for anything... hacknplan.com, easy to use and I like the milestones and kanban style.

I wouldn't attempt using more than once tracker, and I'm not keen on tracking personal matters. I prefer the freedom of taking action on personal matters in response to how I feel and what's happening around me. A dynamic organic order, (or permissible lack of discipline).
One commit per PR? Is that an attempt at making PRs be small and focused? Does it work?
> unwrap [...] causes application level crashes in way that is very much easier to avoid in other languages

Unwrap does what just about every other language with exceptions-by-default does: it prints out a message for developers and exits. If you don't want that behavior, that's fine; in Rust you'd not use unwrap(), and in other languages you'd catch the exception.

Now, I agree that if you are using a library which does unwrap() in Rust vs a library that throws an exception in Python, you have different situations. But unwrap() isn't meant to be used in libraries (or if it is, only for fatal errors which should be uncatchable).

> Whats (sic) your justification for unwrap? I've never seen a meaningful justification for it other than not wanting to handle errors properly.

That is the justification for it: you are writing a simple short script-like tool (or you are prototyping or exploring some problem through one-off or throw-away code) and you want any errors to immediately exit with a developer-centric message and failure code. unwrap() is perfect for this.

It's the same justification for not catching every exception in other languages. Sometimes you are fine with an error printing a message and exiting.
Bootstrapping by going serverless?
Show HN: JSON Pathos – simpler jq
I will send you an email with a re-run of my original experiments, they were roughly what you described (take a pre-trained net, remove the last layer and re-connect to a layer with the right number of classes), learning rates I tried were from 1e-6 to 1e-3 and none of those had satisfactory results.

I was about ready to give up on it when I decided to try to bring up a net from scratch and that worked quite well.
Ya generally speaking a new grad programmer is doing great if he/she makes $50k/yr.

Engineers that'd get $300k comp offers from big5 tech here would make $80k--$150k, provided you go to a web/mobile company. If you go to an older industry you will make less.
The outrage had nothing to do with a refusal to preside over a secret hearing, as the links you provided show. Whether or not the Daily Mail article was fair is a separate issue. It may have misquoted him, but what he actually said was stil pretty bad.

>Yes, your Honour. Very much so, and she is undoubtedly it is fair to say very experienced, and one hesitates to use the word, but it is a word that has been used in other cases, I think the officer would agree that she may well be what is described as predatory in respect of her activities.

(Said of a 13 year old.)
Correction: (2015)
Start with Keras, if you run into something you want to do that is not supported by Keras drop into TensorFlow, they are not mutually exclusive and all of TensorFlow is availble.
In my opinion, this push towards "mathematical elegance " and "interpretability" is hurting us and is unscientific. About interpretability, I'll quote Yann LeCun here, you don't really care too much about whether or not your taxi driver is interpretible, he's a black box. Not only that, but there are a variety of new methods such as attention mechanisms, gradient masks and auxiliary explainer networks that give really good interpretability. And it's funny how this criticism never comes up for SVMs...

I also think it's unscientific to expect mathematical elegance from everything. Math is ultimately a logical descriptor tool for AI, a means, not an end in itself. Besides, there's actually a host of involved mathematics underlying the seemingly simple SGD of deep nets. For example, tropical geometry has been used to analyze the loss surfaces of ReLU networks and random matrix theory has been employed to analyze the loss surfaces with respect to the quality of local minima.

Tl;dr: deep nets are far more interpretible than they've been given credit for and they're also more mathematical than some (such as this author ) would have you believe.
OP was referring to creating a hash, signing the hash and publish the signed hash on the web site.

The alternative would be to sign the actual binary file using code signing (internally I assume that relies on a hash ).
Still, nothing beats OpenBSD's pf
Oops, so I did. Thanks, added.
Or maybe Facebook's "Add Friend" feature suggested GP to the girl.
In the police case, I got questioned a while. They figured out it was bullshit. Told me to watch what I say. (Never got hood at hiding opinions or skill lol...) Cop then just bought me a drink and hung out with me until next class. Got a bit lucky there. :)
You make 1/2-1/3 as much as in big US cities. So that's the catch. It's all about arbitrage.

Peogrammers can work remotely and make western wages in Tokyo for western companies though, and some friends have very high leverage this way.
I think it's a fine example since the decomposed version clearly exists and can arrive as data into your program in a number of ways.

That said, the grapheme cluster note will have examples of extended notions of characters that can't be represented by an equivalent single codepoint. There are some korean and indic examples and also emoji http://unicode.org/reports/tr29/

Oh and something that stirs the heart of us hackers: \r\n is a single grapheme!
It will happen. Need more images first. Right now about 20K, it needs to grow to about 300K then it will be really useful.
So the Python script proposed in this article really just skips all error checking and will die just the same as the hard unwrapped Rust version with the only benefit it actually produces a more user-friendly error and it doesn't look as ugly.

I can't edit my reply anymore but the question was actually meant to be rhetorical rather than I really wanted an answer.
Basically, it encourages you to store only the string pointer and re-calculate the length (or let a library function do so) or use the wrong length value, which means if there's some specific length or capacity worth paying attention to, it's easy to get it wrong.

Really you want both a length, of the data actually in the string, and a capacity, marking how much memory is valid.

If I'm understanding the vulnerability right: strncmp takes three arguments, the beginning of the first string, the beginning of the second string, and the maximum number of bytes to compare. That maximum isn't quite a length or a capacity. It's a bound on the length, if one of the strings isn't null-terminated. But if you provide too small a maximum, it'll only compare the first few characters, and return a value based on that.

In particular they compared the target string to the user-provided string, with a user-provided length, so if you provide an empty string, it compares 0 bytes and returns success.

An API of the form strcmp(struct actual_string a, struct actual_string b) wouldn't have this problem - the actual string structures (instead of a char pointer) would provide a length for both strings, so the API wouldn't let you make this sort of error.
I see the attraction to this. But, frankly, I think this article downplays the risks. In particular, the fundamental dependency on 3rd-party services/applications I expect to be concerning to outside investment - assuming that's what they'll eventually need down the road.
Hit an interesting issue when trying to make my urllib2 Python code behave the same way under both Python 2.7 and 3.6, which is fortunately documented: https://docs.python.org/2/library/urllib2.html

> Note: The urllib2 module has been split across several modules in Python 3 named urllib.request and urllib.error. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.

The best-but-silly solution I found without introducing a dependency was:

try:
from urllib.request import urlopen, Request
except ImportError:
from urllib2 import urlopen, Request
Linear Thinking in a Nonlinear World
I don't have a link for you but I found this and many more images of my neighborhoods back yards by opening Google Earth then dragging the little man icon onto the lane way behind my house. I understand these are old images but that worries me even more as who knows how many images are on file and who is Google selling access to these images before they are made public? Are bylaw enforcers looking into our back yards? I think there is a reasonable expectation of privacy, that is being taken away when Google records then shares images of my fenced back yard taken from such a high viewpoint, sure the driver of a large truck driving down the lane might have this perspective but they are not photographing then sharing those photos..or are they?
I swear I wrote 2015! Weird. Can a mod fix it?
Daily $10 to $200 – 100% (earn money apps for android)
I developed this project with 4 other developers everyday for about 7 months. The idea came from an issue we had with our consulting agency after developing projects for our clients. The billing and the service lifecycle was completely disconnected. We found ourselves manually sending invoices to the customers and wasted a lot of time, and we couldn't track the future engagements on the same service. So we built ServiceBot. We created a service automation platform around Stripe, allowing companies to define their provided services, and let their customers request those services. It was a very complex and lengthy process, but this is the result of 4 years of our experience in the corporate automation world with VMware, ServiceNow, and AWS. I am so curious to hear some feedback about the platform. We appreciate any feedback.
I totally agree with you. I have positive experience to see preview of the website, because now I could recognize what is behind the link. Personally, I really like "native" HN which is just simple, fast and straightforward to use, and I definitely wouldn't be satisfied to use the Vue-version on daily basis.

I think website preview (history-less, pre-rendered and cached) might be a possible field for interest for startups (pocket, raindrop etc.) and their browser extensions to manage bookmarks in browser, because they currently generate (and cache) image previews on their own so they can offer website preview as feature. This feature also reminds me Force Touch [1].

[1]: http://osxdaily.com/2016/02/23/preview-web-page-links-safari...
There shouldn't have been a direct democracy vote to join as much as there shouldn't have been one to leave.

The point of representative democracy is supposed to be one where ignorant citizens can select the best - not necessarily most ideologically aligned or politically motivated - from amongst themselves to make these kinds of decisions on their behalf as their job.

Obviously we are far from that ideal (very, very far), but it doesn't change how terrible referendum votes are anywhere in the world. You just get emotionally charged shit-flinging that devolves complex issues into tribal warfare. The world is too complicated to boil the issues of millions into yes and no bubble quizzes, that is why we are supposed to have our best handle it.
> the EU better hope the UK does not go tits up

Well, so do we all, so why are we doing this Brexit thing again?

Many of the really bad potential outcomes are truly within British control, such as refusing to guarantee residency to current EU residents.
Can you clarify what this poor trade negotiation position is?

Worst case, we go to WTO tariffs. The effect of that in theory is that EU imports to the UK will reduce, as they become more expensive relative to the same goods from non-EU countries (note that our tariffs to non-EU countries will reduce post Brexit).

UK exports to the EU will also reduce for the same reason. However, given that we're a net importer it should be clear who is in the worst position.

If the UK can sign a couple of decent trade deals with large economies like India, USA, China then we won't be worried about the EU trade at all.
That was the asking price, it fetched a lot less than that (about $1M). Then there were taxes and some debt to get rid of but in the end it was a good deal.
Who gets $300k comp offers? Principal engineers?
The payoff of the simpler type system is that people don't write posts like OP's about Go. The language has its rough edges, but it's not a brick wall the way Rust is -- you can learn the idioms and become a productive Go programmer very, very quickly. On top of that (or maybe as a related consequence), most Go code looks roughly the same. If you dive into the source of one of your project's dependencies, you aren't likely to find some esoteric or too-clever-by-half coding style. There are no fancy macros to untangle, because the language doesn't support them.

Writing that sort of clever, super-concise code scratches an itch that a lot of people have (myself included) but it's not something I want to encounter when I'm trying to debug something. When you're working with other people's code, you want it to be simple and consistent. That's what Go's primary strength is.

btw, I'll take this opportunity to plug my own "Go generics" solution: https://github.com/lukechampine/ply. It's like a Coffeescript for Go that lets you use stream HOFs like map/filter/reduce without any runtime cost.
Yeah, but if you are writing that pseudocode, it's obvious that is_a_prefix_of is the wrong operation.

The problem is that strncmp is in fact a prefix-comparison function when used with n calculated one way, but also it's the "safer" version of strcmp when used with n calculated another way, and it's easy to confuse the two uses.

In any other string implementation, you'd just use the most obviously-named compare function, there would be no need for a "safer" version of that function (there'd just be one reasonable comparison function), and it would do the right thing.
Hah. Any idea why the system admin didn't want you to bubble sort anymore?

Was it noticed to be taxing on some system's resources or too long-running of a process or something?
More generally, plan your work. For a big change, find valid intermediate states to get from where you are to where you want to be. Always keep the build working and tests passing but accept that there may be redundancy or inefficiency until you finish the series of changes.

Sometimes you have a change partially complete and realize you need to make another distinct change in order to finish this one. Have the discipline to stash this change, do that one in its own commit, then continue working on this one.
Even if Cambridge Analytica was not necessary for the vote to come out as it did, what they are trying to do still does matter. Because they or someone else is definitely working on improving their techniques, and they will be used in any number of elections to come.
The argument of E-Mobility fixing the problem is an argument for many local politicians as to why action is not necessary.

I've been involved in measuring NO2 in many German cities and talking to many journalists, and that is the usual argument. And of course they are all afraid to hurt their economy, especially the smaller companies and trades.
I wasn't addressing the crime bit.

Positively, blasphemy laws are designed to keep such conversations limited to informed circles, and negatively of course they are a means of maintaining doctrinal control over the masses.
I don't plan my commits but think it's a good idea for certain types of developers.

I find that testing really helps me define commit borders. For instance, I'll often commit once each new endpoint is tested, new class (if small) is tested, etc. Testing is great because it defines a natural place to commit (once the tests pass and the tests describe the functionality). However, some things aren't tested (shame on me) and I find myself saying to commit once something is working.

Keeping a clean working tree is critical to me. As is using a visual commit tool. I often see better commit messages and chunking done with visual committing
How do you capture the screenshots? With the new headless Chrome?

Minor thing: Would be great to have mobile screenshots when accessing your site on mobile (otherwise everyhing on the screenshots is tiny).
I agree that we should remain skeptical, however, one important distinction between this and ghost stories is this is already fully technically possible. All that's needed is the will, the raw processing power, and the battery life to support it. No one could ever create a proof of concept for ghosts.
The Closure Compiler doesn't use Rhino anymore.

https://groups.google.com/d/msg/closure-compiler-discuss/9WM...
You should be able to fix it for a few more minutes. I think you have 30-60 minutes on submission titles.
Since Android N the Java implementation is actually OpenJDK so I guess this is primarily useful to support older Android versions.
Yeah, influential Tories are likely to get jobs when a Tory government is in power. Much like how Seamus Milne will become the Corbyn's press officer come a labour win in June.

And that quote has always just been a standard issue made up internet quote. Murdoch was literally in the Guardian letter pages denying he ever said such a thing.
https://www.theguardian.com/media/2016/dec/19/rupert-murdoch...

And why would he say it? "When I go into Downing Street they do as I say" would be a bizarre utterance from a newspaper editor.
If it meets the guidelines, this might make a good show HN.
https://news.ycombinator.com/showhn.html
> Rust has already reached the point where it leaves the world behind. Only the people who have been there since the early days really understand it

This was my feeling when I got into Ruby on Rails (years too late).
Nice full example of a working vue.js app. For me it loads very fast, almost comparable to the text-only version.

Where is the code that generates the screenshots?
I looked around here https://github.com/vuejs/vue-hackernews-2.0 but couldn't find anything. Is this the right repo/branch ?
Warren Buffett says he dumped a third of his IBM stock
But it will be much more accurate. The neural network will learn to take into account air resistance and wind, for instance. Depending on how much data you give it and the resolution, it might even learn to model air turbulence, spinning and wobbling of thrown objects, etc. It will be a lot more accurate then the simplistic physics model.

And sure, it doesn't output a nice simple equation. But in most real problems, there aren't nice simple equations to output. Physics is sort of a fluke, where the fundamental laws of nature happen to be so simple we can do that. In something like biology, you are never going to find a simple equation that explains a biological system. They are complicated messes of millions of interacting pieces. Even if we knew how everything worked, we don't have the computing resources to accurately simulate it anyway.

And we are actually seeing neural networks be useful in these areas. They are able to predict what chemicals are more likely to be useful drugs. If you restricted yourself to using only simple mathematical models, you would never get these results.

This very article is about the very difficult domain of image processing. Why should we expect the statistical distribution of photographs to be simple and explainable by simple math? Finding an equation that accurately models the shape of a human face is pointless and misguided. Before NNs came along, they were doing crazy stuff like handcoding complicated heuristics that detected dark spots that might be eye sockets. There's nothing elegant about that. Physicists are really blessed to have a domain where they can ignore stuff like air resistance. Where the data really does fit simple equations.

And as the parent comment says, you can interpret neural networks. You can observe the activation behaviors, and discover what features it's learned to detect eye sockets, or chemicals with certain properties. You can see how the output changes as the inputs change, and fit a simpler model to that.
I haven't run any numbers, but here's how I understand it.

Because of the way its journaling is implemented with sync interval, when you've configured durability with `writeConcern` `j` set to `true`, any write will have to wait for the next sync interval to commit. This wait will be in the range of 0 to the configured interval (~100 ms) and that makes the worst case quite bad.

You can work around it by configuring a lower sync interval and thus less average wait time, but I doubt you ever reach the level of databases that were designed to prefer durability by default, and which have heavily optimized that write path.
Support for pure annotations was added.

https://github.com/mishoo/UglifyJS2/commit/1e51586996ae4fdac...

This will enable removing unused transpiled classes from e.g. Babel.

See https://github.com/mishoo/UglifyJS2/issues/1261
You don't think that follows easily, then?
Not to hijack this post, but there was another HN skin that was created a while ago. It was posted on HN about a year ago or something and it came in at 300+ points. What the skin/website did was sort the day's HN post by number of points. Does anybody know where I can find that?