skysight-inc/HackerNews huggingface dataset:
You can switch keyboards just like you would when changing from English to Emoji, etc.
Poll: Do you use an ad-blocker?
Curious to know how widespread the usage of ad-blockers are, at least in the tech-savvy world.
I would if I could (work doesn't allow)
> it was absolutely devastated in one area... source code comments.

It is arguable whether this is a downside. I think that comments mean that source code itself is not readable enough. Comments should be used sparingly - only in exceptional conditions.
Two thoughts: many Scottish banks have indicated that they will relocate in the event of independence:

Relocating a registered office address, and relocating operations, are entirely different things.

Given the current state of Ireland, I really, really, really don't think you want to use the Irish tiger as a possibility for a future Scotland

Irish GDP per capita is higher than the UK. The fact that there was gross economic mismanagement over the past 15 years doesn't mean that the economy is a permanent basket case.
"there was one 35 years ago"

The 1979 referendum was about devolution (which Scotland has had now for a while) not independence.

http://en.wikipedia.org/wiki/Scottish_devolution_referendum,...
Caching at Scale
Writing Faster Managed Code: Know What Things Cost
I selectively unblock ads on individual sites
In Instruments since iOS 7 this has been somewhat possible but the JavaScript context was fairly locked down. I wanted to drive my UI automation tests with Cucumber (Ruby) so I wrote a little driver that patches Instruments to get access to the JavaScript context and expose it to a rudimentary server which listens for commands from your Cucumber tests.

You can check it out here https://github.com/cucumber-instruments/cucumber-instruments
You _could_ run a local webserver, but that may not be worth it speed wise. Depends on your code.
You need to vaccinate the herd if you want risk-free meat.

This is kind of like saying you need to drink a gallon of cough syrup every morning if you want cough-free smoking.
Oh. UDLs are a new one to me. I didn't know that was in the language.

I stand corrected.
Code doesn't show properly on HN. Here's the http://pastebin.com/y1fhT33G
I reviewed snogglethorpe's link and then searched a bit. Apparently the same company that made that demo also makes an ebook reader. I don't know if it is cool or not. I don't know their stance on Free Software and Open Hardware. But... They do have a 'video' tag on their blog. http://blog.bookeen.com/tag/video/ Cheers!
Good breakdown on the Sencha blog, with some benchmarks and a discussion of the few major bugs that prevent replacing UIWebView at this time: http://blog.sencha.com/blog/apple-shows-love-for-html5-with-...
> Over 500 million times?

Yes, congratulations, you know how to multiply. You know it was a figure of speech.

Anybody can make lists of good and bad deeds about an organization and point to why that list exemplifies some preconceived notion you already have.

Here's my list after 2 minutes of barely looking

http://www.huffingtonpost.com/2014/03/02/nypd-saves-baby_n_4...

http://www.nydailynews.com/new-york/nyc-crime/nypd-hospital-...

http://7online.com/news/exclusive-hero-cop-speaks-out-about-...

http://www.nydailynews.com/new-york/obama-praises-hero-nypd-...

http://nypost.com/2014/04/10/smoke-from-williamsburg-blaze-s...

http://www.theblaze.com/stories/2011/12/13/nypd-hero-cop-kil...

https://en.wikipedia.org/wiki/Emergency_workers_killed_in_th...

http://www.wnyc.org/story/nypd-includes-officers-died-911-il...

http://www.theepochtimes.com/n3/610520-hero-cop-dies-nypd-of...

http://www.silive.com/obituaries/index.ssf/2014/03/peter_mcp...

http://www.breaking911.com/hero-nypd-cops-save-man-from-jump...

http://epicvictories.com/nypd-officer-becomes-a-hero-after-h...
Really? iPhone 4S can't handle iOS7? I'm using an iPhone 4 on iOS7 without any problems whatsoever, and I'm a heavy user+developer.
That's pretty uninformed, yes. There's a pretty big tech scene in the UK; lots of money is available for good engineers. A developer with a few years of experience in London will probably make £65k or so, or about $110k. Cost of living is quite high, but that's pretty good money by any standards.

A major problem is that Scotland's tech talent has drained to London.
The idea is that there won't be large amounts of backwards incompatibility in a single version bump. We all know how well that worked out for Python 2 -> Python 3.

There will of course be backwards incompatible changes introduced through a normal deprecation cycle. No one is suggesting Python remain static forever.
...because the cpython core developers have a history of making good decisions.

He may know what he's talking about, but being a core python developer certainly doesn't necessitate that in my books.
Web performance tooling today
When OSX first came on the scene there was a javascript OSA. A company called "Late Night Software" or some such had a drop in that allowed you to use js.
I think this question may be better suited for http://stackoverflow.com
Remember this is primarily for non-public facing or complex objects. If you are looking at someones API on github it should not be using auto for return types.
The New Motorola Moto X (2nd Gen) Review
Love this tool and think it starts to get really interesting when you think of other applications beyond posters.
Tax breaks certainly do matter to angel investors (who certainly used to get some very nice tax breaks) and founders - I co-founded a VC funded startup in Scotland in the 1990s and I benefited quite a bit from the 10% CGT rate available under tapering relief introduced by the "socialist" Labour party.
The Government Keeps Helping People Buy Failing Cold Stone Creamerys
I mentioned the possibility of a special prefix in my previous post. In other words, that parsing ambiguity goes away if the standards committee wanted to define a special prefix such as 'd', 'k', or '_' to inform the parser that the next comma is a "digit separator" instead of "comma operator" such as _1,000,000 . E.g. there's already intelligence about commas in the parser to disambiguate function calls with commas as in "repositionxyz(914,348,122)"

Or, they could have defined C++14 to simply invalidate your example syntax of "x=1,2". As an example, the "auto" keyword was made a "breaking change" such that "for (auto int i = 0;;)" no longer compiles.

The bottom line is that there are a myriad of ways to address (potential) parsing ambiguities when introducing new language features and syntax. (Whether or not a comma digit separator is worth the clumsier syntax of a special prefix or inflicting the pain of a breaking change is a separate concept.)
Of course they do. They made an elegant, beautiful and widely used language.

They are humans, they have made mistakes. But you can't seriously argue that the majority of their decisions have been mistakes.
interesting that it's a 3d printer - would have thought a desktop CNC milling machine would be closer to their traditional high-RPM switchable-toolhead powertool business.
Code School's New Look
the most obvious application is replacing parts - replacement battery covers, game/toy parts, buttons, small pieces of car trim, really anything smallish and plastic that gets lost or broken could be replaced with a 3d printer.

potential replacement for non plastic parts too depending on the application.

also customizing parts. Custom dice for games, etc etc.
Thats actually pretty reasonable provided the print quality warrants the price tag. I would buy it for that price if it could print things with enough structural support for every day use.
We've used marionette - wanted to like it but found the learning curve too difficult. Switched to React - much simpler learning curve with good performance.
Fortunately, iOS8 (IIRC) allows apps to finally use the full power of the JS engine, so 3rd party browsers should be able to run as fast as Safari. If you don't mind switching, I'm sure there are 3rd party browsers that allow you to block ads.
I will take a look, thanks for the references!
The WWDC session on this is pretty epic.
https://developer.apple.com/videos/wwdc/2014/#306

Also, I'll just leave this here: https://www.quora.com/What-is-the-most-valuable-programming-...
> If there aren't backwards incompatible changes it will be called 3.10 not 4.0. Backwards Incompatibility is what changing the first number means.

That is what it means in SemVer, but SemVer is not a law. The author is the Director of the Python Software Foundation, so he's probably the second most qualified person in the world to comment on what the standards will be for 4.0 (the BDFL being the first).

He's essentially saying Python 3.x will be the last "major version" of Python as SemVer would describe it, but future bumps to the version number will be driven by decimalization rather than SemVer.

OTOH, while the current 2/3 split and maintenance of single source libraries may encourage "documented deprecation" as described in the article, that approach -- with no programmatic deprecation warnings and, consequently, never actually pruning the code of deprecated features, can't be a permanent state of affairs, if Python and its standard library are going to be maintainable in practice -- suggesting that it would be is essentially committing to unbounded accumulation of technical debt in the Python code base.

If PSF Python goes this way over the long term, I expect eventually a more nimble, decrufted fork will replace it for new development, with PSF Python relegated to legacy use.
For every one of these examples I can point to a hundred cases where some officer put their life on the line to do their job and help do their part to make NYC a decent place to live.

You're changing the subject. The point is, everyone who has lived here for a significant amount of time (and who doesn't have their head in the sand) knows, from direct experience, how profoundly dysfunctional (and disturbingly corrupt) the NYPD is, from the top down.

[1] https://en.wikipedia.org/wiki/Adrian_Schoolcraft
Interactive iPhone 6 experiment in WebGL
Apple's keyboard API requires that you implement a button for switching to the 'next' keyboard, in the same way that existing iOS keyboards have the button for switching.
I used to use it selectively; but now that even google has started doing animated automatic-expanding block-the-page-you're viewing stuff I think I might just give up hope :(
As mentioned in another comment, the use of 'auto' isn't just to shorten an unwieldy type name.

> The primary use-case of auto returns is for templated functions where the return type depends on the thing passed in.
I recently wrote a blog post about this here: http://robbycolvin.com/javascript-automation-in-os-x-yosemit...
Windows Phone should fear Android One, not the iPhone 6
Given that referendum, an independence referendum was always possible. It was probably only during the 80s that it didn't seem possible, and was definitely being talked about by the time I lived in Edinburgh 15 years ago. Devolution was always seen as a process towards strong local political representation, whether or not ending in full independence (aka membership of the EU).

EDIT: I should note at this point, I honestly don't care how the vote goes and have very little interest in it. To me, it's been a long ongoing process that will probably follow the same rough path and end in the same rough place whatever the vote is.
Good decisions are really irrelevant -- being a core developer (and, more importantly, Director of the PSF) means that Coghlan has considerable insight onto what kind of changes are likely to to be accepted in Python versions with particular version numbers, independent of whether those decisions are good or not.
Twitter and Content for Reliable Social Media Traffic
I don't know, the advance leaks of the last few iPhones doesn't seem to have hurt their publicity much. (And millions ain't much to Apple; they are rumored to have spent millions on the U2 debacle. But I do take your greater point about the massive interest in Apple's product announcements being very valuable...)
I'm a little surprised that Apple included custom keyboards. They've always been an "our way or the highway" company, and custom keyboards seem like a very geek-specific feature, even if they are better to type on. Not that I'm complaining! I can finally build a couple of new apps that I wasn't able to before. :)

(If anyone is interested, I'm working on a clone of the existing Apple keyboard for use as a base for developing 3rd party keyboards: https://github.com/archagon/tasty-imitation-keyboard)
Should they get paid because there is a more efficient way to do things? Does money inherently relate to inefficiency?

Sounds like http://www.thelightsinthetunnel.com/ in action
Are any of those things really a problem in an age of cheap disposable crap, though?

Battery cover gets lost? Replace the whole thing.

Toy breaks? Replace the whole thing.

Button comes off your jacket? Replace the whole thing.

(I'm not saying this is an ideal world -- I personally would much rather live in a world where things are long-lived but cost more -- but it's the world we live in.)
I haven't used Emacs in a while, so I'm very rusty, but why would you run a remote Emacs in SSH, and not use your local Emacs to access remote stuff via TRAMP?

In my Emacs days, I've never really used the terminal version. Multiple frames, yay!
When the Government Wanted a Database of Everyone's IQ
I don't follow your logic. Why would it be a waste? Wouldn't it actually be a waste of both your resources and mine if I feigned interest? You'll keep talking, and my mind will keep drifting.

I understand smalltalk is necessary to break the ice. I'm perfectly fine with the "How you doin'? Fine. It's hot today, isn't it? Well last week was worse!" exchange. I can even understand the "I went shopping" comment.

What I don't really welcome is a walk through your shopping day.
> OTOH, while the current 2/3 split and maintenance of single source libraries may encourage "documented deprecation" as described in the article, that approach -- with no programmatic deprecation warnings and, consequently, never actually pruning the code of deprecated features, can't be a permanent state of affairs, if Python and its standard library are going to be maintainable in practice -- suggesting that it would be is essentially committing to unbounded accumulation of technical debt in the Python code base.

I'm not sure where you are getting that idea from? PEP 387[0] does indeed recommend programmatic warnings through the `warnings` module and eventual removal of deprecated features.

[0]: http://legacy.python.org/dev/peps/pep-0387/#making-incompati...
I think it's incredibly naive to say that by 2023 there will be no need to evolve the language in a backward incompatible way, no need to clear cruft from ten years of continuous development, no need to incorporate new technologies like quantum CPUs or whatever they come up with.

History tells otherwise. I bet when they released Python 2 they were not expecting to break the APIs years ahead.
> The whole point of changing the number is to indicate a major change.

That may be what you'd prefer a major version number change to indicate, but the Director of the Python Software Foundation might have more insight than you into what the next major version number for Python will actually mean.
It's not so hilarious when you consider that this is a smartphone.

But yes, taking things out of context can make them amusing.
No, because your attacker could just modify that script, if there is an attacker.

You can write a script yourself, and run it independently of apt, though.
BSD products cannot use GPL code without changing the entire license of the product. That means there is no way that BSD products can use GPL code.
Funny if that would happen today, the cops would be called, your parents jailed, and you would be taken away.
Cortex is a library for React that is designed 'to support arbitrarily deep data structure[s] without requiring you to pass callbacks down the chain'.

https://github.com/mquan/cortex
Because it's the software author's site? I don't know how much more trust you could get, beyond only installing the software you write yourself.
There may be a fair number of good former defence tech workers available to work in startups soon.
Making all strings Unicode seems to be what suck the PHP 6 effort years ago. Why is Unicode such a problem? Also, why does it have to be a core language feature? Why not just have a non unicode string type and a unicode string type?
Two more options for ad blocking on iOS: Weblock is an app/service that works via Proxy configuration, so it blocks most in-app ads as well. For web browsing, iCabMobile is a web browser with build-in ad blocking. (There are others as well, iCabMobile is just the one I like most).
I obviously don't approve of blatant attempts to conflate toys with military aircraft, but that has little to do with the word "drone." The military "drones" aren't even officially called that. The reason we call military remote controlled aircraft "drones" isn't that they shoot missiles and kill people. It's because they are unmanned aircraft. We don't call manned military aircraft "drones," and they also kill people.
Do you mean bbftp?

http://www.nas.nasa.gov/hecc/support/kb/bbftp_147.html
Mind games to beat bad behaviour on planes and trains
In systemd's case, it is. Everything is buried through layers of obscure abstraction, and understanding the code can be a difficult task, indeed.

On the other hand, Upstart makes heavy use of libnih (it's like glib, but nowhere near as heavy) and is actually very easy to follow. Compared to systemd, it certainly is, at least. Many of the comments are actually annotations for the automated documentation generator, from what I recall.

OpenRC makes use of source code comments in a more conventional way, but they actually do tend to help with adding insight into what was going on in the author's head, and the code is still understandable (though not as clean as Upstart's), regardless. Its small size obviously also helps.
Peermesh (p2p GIS )
> Why is Unicode such a problem? Also, why does it have to be a core language feature?

Because the vast majority of the world's languages cannot be handled solely using ASCII?
That WWDC session changed my world. You really can do amazing things with the JavaScript <-> ObjC bridge.

Checkout: https://github.com/node-app/Nodelike, and my own side project https://github.com/cucumber-instruments/cucumber-instruments
How do you download source packages using the 'download' command? The debian advisory and manpage says that 'download' gives you the binary package, there's another 'apt-get source' command for the source package...
> Dremel Releases a Mass-Market 3D Printer

> and a $999 price point

No. A 3D printer that's over $500 won't be mass market. Even $500 is probably too high. Most people might buy one if it's only $300 (with good enough quality - which could happen years from now). My guess is it will be another decade before normal families consider a cheap 3D printer, and only then it's when 3D printers will be "mass-market".
> I'm not sure where you are getting that idea from?

From the article we are discussing (emphasis added):

---quote--

the widespread development of "single source" Python 2/3 libraries and frameworks strongly encourages the use of "documented deprecation" in Python 3, even when features are replaced with newer, preferred, alternatives. In these cases, a deprecation notice is placed in the documentation, suggesting the approach that is preferred for new code, but no programmatic deprecation warning is added. This allows existing code, including code supporting both Python 2 and Python 3, to be left unchanged (at the expense of new users potentially having slightly more to learn when tasked with maintaining existing code bases).

---end of quote---
Of course, all opinions are subject to change. But even on old-timey mechanical watches, the crown is there because of a need not because it is the ideal input mechanism. I think we can do better now.

I don't buy the false input argument. Smartphones already handle that pretty well but in the case of a watch I can additionally see people using their thumb on the base or the other side of the watch as an anchor to steady their hand before committing to swipe or a press gesture.

As I said before, though: all my opinions are subject to change.
OTOH, Emacs isn't that accessible to many users, and its idiosynchrasies can be very offputting. I also quit Emacs after a while because I wasn't totally happy with it.

I think that's why there are so many attempts to built new extensible editors in other languages, like Eclipse, or that Ruby thing there once was (probably still is), or the Chromium/JS monster that was on HN recently.

I haven't yet found an editor I'm really happy with, so if I ever have time, I'll probably write my own as well. I'll lose the Emacs packages I don't use or even know about, but if you haven't bought into an existing ecosystem, that doesn't really matter. I'm unhappy enough with the existing systems that I don't mind throwing them away for something different.
I'd be interested to know what about the negotiation lecture you think make it one of the best. I just listened to it for the first time and didn't actually find too much content. The speaker had a lot of anecdotes but I didn't find too much actionable advice or processes.

This is what I pulled from it:

* Be calm, don't get angry

* Learn what the other party really wants

* Offer a price you think is fair, offer it early

* Don't horse trade, unless the other party likes to horse trade.

* be trustworthy

* have an attorney

I'm not trying to be a downer, honestly. I think I may be missing the forest for the trees.
Like I said, the award amounts were based on what each company asked for in their proposals.
I concur with your analysis of 2-4.

Edit:

Regarding #1(If-Modified-Since), the vulnerability is that if a hash in the Release file changes, but the file being referred to by the Release file gets served with a 304 response, apt will ignore the updated file and continue to use the old version of the file. even though the old version of the file doesn't match the new hash. An attacker could exploit this to prevent a system from receiving updates, though thankfully it doesn't seem to be possible to exploit this to cause apt to trust an arbitrary package.

Original incorrect speculation below:

Regarding #1 (If-Modified-Since), I'm wondering if perhaps their HTTP client incorrectly accepts a response body with a 304 response (contrary to the HTTP spec)? In that case a malicious server could deliver a file that's blindly trusted as long as it has a status of 304. (This is pure speculation, but I can't think of any other reason this would be a big deal.)
You can set up a Privoxy server or a VPN through a server that blocks connections to known ad servers. There are publicly available blacklists of ad and other unwanted servers.

Takes some elbow grease, but the benefits of not loading ads should more than make up for the slowdown from going through a proxy.
I think you've been downvoted because that comment has little to do with the topic at hand and seems like a shameless promotion of BitGo. Alternatively, you could create a separate "Show HN : BitGO -- one of the few multisig web wallets available" thread and that would be totally acceptable.
Yes, though I will occasionally unblock certain sites.

Primarily I use ad/script blockers as an extra layer of security.