skysight-inc/HackerNews huggingface dataset:
I'm an avid surface user, which doesn't make sense because 90% of my tweet history is me yelling at Microsoft that a windows update is preventing me from giving a presentation, again.

So, as much as I love the platform, the issues for me are

1. Windows 10 updates are not sane. They do not schedule properly, and do not try to tell me otherwise because I have invested probably 40 hours total at this point trying to sanely schedule them. If you disable them, your build of Windows will go out of date and your machine will reset randomly until you turn them back on. Also, on a surface pro, updates take ~30 minutes to 6 hours. I joke not. So result: I'll roll into work at 8, have a presentation at 9, pop open the machine, and see "windows is configuring your update.... 39%" and know that I won't be working on that machine until after lunch. Maybe.

2. Random, impossible to track, unrelated bugs. Plugging in a second monitor causes all sorts of weirdness. It gets stuck in tablet mode. It'll refuse to go into tablet mode. The task bar will refuse to go away in fullscreen mode for some apps until a reset. It'll forget my office app credentials. Onenote will crash a hundred times. It'll soft-eject the microSD card randomly, but usually in the middle of a file transfer. Keyboard won't be recognized. Pen tip will fall out and they'll charge you 12 bucks for a replacement pack with 3 inside, 2 of which you'll instantly use.

I love the surface because it perfectly fits my needs, but damn do I also hate it.
This is kind of a "perfect storm" situation for Apple. At least three vectors are converging:

1. Apple inherited OSX from NeXT, and with it the Mach subsystem. Mach overcomplicates XNU.

2. XNU has become incredibly popular by dint of being shipped in the iPhone. Avie Tevanian probably did not see that coming when they designed the original BSD/Cocoa/XNU/whatever architecture. Regardless: it is now difficult to make sweeping architectural changes in XNU, because of the enormous installed base.

3. Ian Beer is simultaneously very clever and also willing to wade into the XNU Mach fire swamp.

I think it's fair to criticize Apple for designing the XNU frankenkernel. I think it's less legit to say that the presence of this bug class "looks bad" --- it's 2016 and this is just getting published. This is one of those bug classes that is sort of obvious in retrospect, and you wonder why people didn't catch it earlier.
A NULL head is not an error (= empty list) and 'assert' would be better as a BUG_ON or panic if it is technically an error.
Not shown: assertions :-)

(which, for kernal code, would be turned off later, anyway)

In languages other than C, with exceptions and stack traces, most precondition checks just become clutter, anyway. Although it would be nice to have "Eiffel" style pre/post-condition (invariant assertion) blocks out-of-line that can be enabled or disabled...
This bug was rediscovered 1 year later after a distro shipped a package with /usr/lib/node_modules/ being set to 777 in a deterministic build environment. This seems to be a race condition since it may or may not happen on multiple rebuilds.
Scaling for huge mainstream things are great. My biggest pains come from various Eclipse family IDEs and IDEs in general that do not scale icons at all so they're all incredibly tiny. That's not in Microsoft's hands though so I can't really blame them for it. It looks like Eclipse proper might finally have a fix so sometime in the next year or so maybe it'll come down to the various ones based on Eclipse.
Guns.
The Op also pointed out that not all of Sweden is served by this municipal ownership arrangement. It may very well be the case that the Op has his or her own bias and Sweden is in fact not widely services this way.
While the improvement might or might not be worth the cost of figuring it out for this case in isolation, note that a more experienced programmer would write the final better version first, without even considering looping over the whole 2d array. How do you learn to do that? By revising your code!

If you never get to learn better, you're letting your management force you to retard your own development. Unless you're a temp it's probably even costing your employer more than it gains. Of course, there's a balance between learning and firefighting. Just don't put the fulcrum all the way over on the left edge.
Yes, but that's hard to calculate. What you really want to calculate is linear density. My best approximation for this is people per mile of road. This is easy to calculate and this data is readily available.

Sweden has 10 people per mile of road. The US has 30 people per mile of road.

Sweden simply does better, despite having to deploy more infrastructure to provide service.

Sweden used to have a state telecom monopoly which then became the incumbent. You are right that regulatory capture has played a big part in the development of the telecommunications sector. Sweden had a strong incumbent, but that did not stop the municipalities and power companies from building out competing fiber networks, nor stop the regulator from acting in the best interest of the people.

So, the big difference was that the Swedes had both political support for building fiber networks and a more can do attitude towards getting things done, without excluding large parts of the community.
Quantum Income Machine a Financial Fraud
> animal feed

Isn't that going to release the carbon?
Surprisingly, two of the worst pieces of software that come with OSX. I would love it if they were really optimizing anything about iTunes.
In ZCash each transaction is the same size, regardless of how large your anonymity set is.
The saddest part is maybe how close they where:

I so wanted it but waited and waited for a waterproof Nokia and then ended with a Sony Z series and later a Samsung something waterproof flagship.

Others waited for instasnapsomething but I almost can't care less I think as long as the platdorm has a couple of good alternatives for notes and calendar + Whatsapp and Telegram.

Now I almost feel bad for not supporting them. Who would have thunk for someone who used to despise all their products until some 4 years ago :-/ (since early 2000s).
I was citing examples of first "usable", rather than absolute first.

Multitouch, Apple wasn't first, but it was the first device most people owned that featured such screen with a thoughtful UX.

Same with other examples
Zero-cost abstractions are a thing though. Compiler magic can even fuse together multiple calls like this on the same collection into the equivalent regular loop. So it can in fact be faster rather than slower, in the right context.
> [YAML is] a super set of JSON.

The specification says this, but I was never convinced it was true. Specifically, the spec around escaped unicode characters lacks any mention of surrogates being encoded in two \u sequences, but rather specifies \u as:

> Escaped 16-bit Unicode character.

Which is an unhelpfully not-even-wrong statement. In practice, trying to treat JSON as a subset of YAML results in things not round-tripping, like the following:

In [9]: yaml.load(json.dumps('\N{PILE OF POO}'))
Out[9]: '\ud83d\udca9'

(in case it isn't clear, that's not a valid repr of pile-of-poo in Python:

In [14]: _9 == '\N{PILE OF POO}'
Out[14]: False

)

I've now got surrogates in a decoded Unicode string (why is this even allowed, I don't know); this results in fun behavior like `.encode('utf-8')` raising.

Edit: weird: HN appears to strip pile of poo from comments…
AI Pioneer Yoshua Bengio Is Launching Element AI, a Deep-Learning Incubator
in Clojure we use EDN (Extensible Data Notation) for config files and a data transfer format. https://github.com/edn-format/edn

It is really a pleasure to use compared to JSON and XML. While it may not be as compact as ProtoBuffers, Thrift, or Avro, it is human readable and also valid Clojure code. Libraries are ready available to convert it to JSON.
I did write my own parser, but for a reason: I need it to be able to recover as much data as possible from a damaged, malformed, or incomplete file.

Turns out that a good chunk of these tests are for somewhat malformed, but not impossible to reason about files. Extra commas, unescaped characters, leading zeroes... I'd rather just accept those kinds of things rather than throw an error in the user's face. It's a big bad world out there, and data is by definition corrupt.

And this is borne out when I plug my parser into this test suite: Many, many yellow results, which is exactly how I want it.
As with other recent Microsoft devices, I feel like:

- This computer looks very good

- The specs look more than decent (skylake, 32gb ram...)

...but

- It's going to be poorly distributed (at least where I live, in Asia). I'm not even expecting a synchronized worldwide release.

- I'll have a hard time working in an Unix-friendly environment (the only reason why I bought macs so far)

- I wouldn't be surprised if it's insanely overpriced in Asia (like the Surface Book is)

So I'm pretty sure I'll unfortunately have to pass, and so will most people I work with.

The Microsoft buying experience is horrendous, and that's too bad now that their OS sounds OK, and their hardware is probably the best PC hardware you can get.
https://www.youtube.com/watch?v=SqXo7pKJGtU
Clojure programmers use it everywhere. I suspect almost nobody else does though.
I live in KC and they are still rolling out here. Next phase ends Nov 3. I assume they are I'll keep rolling out in the metros they are already in as the leg work is done for the most part.
The difference is that Blacksburg and Charleston have 50,000 people, while Munich has 1.5 million people.
So far as the current state of the art in computer engineering goes, we don't know how to completely rewrite a system as complicated as XNU without creating fresh batches of implementation errors. So this is a little like suggesting Apple use its hundreds of billions of dollars to build an iPhone battery that only needs to be recharged once a month.

We may someday get an XNU rewrite, but probably not until software engineering produces a new approach to building complex systems reliably that works at the scale (here: number of developers and shipping schedule) Apple needs.
I am using company provide rMBP for 2 years and I like to linux like terminal/bash, but otherwise I can't find any reason it is so revered.

Multi monitor support sucks so bad, I have to wiggle mouse few seconds at bottom of monitor before it is taken as active, but boy popup of active window still opens on 2nd monitor.

I minimize Firefox it goes down in Dock, now when I press Cmd+Tab, Firefox is in the applications list but the window doesn't comes back. I have to click on it with mouse to open it.

And maximize screen button now defaults to new full screen Desktop, which looks good if you use trackpad and swipe around, but with keyboard it adds no value, just distracts a lot, and apps like Chrome/Finder if I click option+maximize, they believe I want some sort of horizontal/vertical expansion.

/rant

Edit: Even greater WTF is dialog boxes, I use tab to focus on a button, press enter and viola the default action is taken, ignoring the keyboard focus, so if I don't want to save file, I have to use trackpad :|
Crockford needs to write "JSON, The Good Parts."
WebVR Coming to Servo: Part 1
I wish it would ultimately get open-sourced. The companies that make money off of it (Cloanto, Hyperion, etc.) could continue to package things and burn them to EPROMs or disks and sell them for profit, but the community could manage the code base going forward. Drives me nuts the legal side of things has become so freaking stupid.
if they can optimize iTunes it would represent as a momentous shift in general computing.
Counterpoint: test code is also code and when unit test tyrants rule a team it can easily break down into a mess of maintenance (which suddenly more than doubles).
Developers won't optimize UX of their apps for phones, unless they'll see valuable target audience there. And this isn't going to happen without selection of new devices of market (their current best one is so inferior to iPhone 7, that the only excuse to buy it is the price). So what we'll get is a lot of ugly apps that barely work on small screens.
‘We Need to Clean This Up’: Clinton Aide’s Newly Public Email Shows Concern
sure, it's just that you said that even "high end" windows laptops didn't usually have better screens when from what I've seen pretty much all the top Windows laptop brands have high-end models with better screens.

A couple of years ago, sure Windows laptops tended to have terrible screens, but that problem seems (to me) to have largely been resolved these days, for high-end devices anyway.
$2,999 and the best GPU option is a last-gen mobile card? The default 965M is a crappy budget card (half the performance of the 980M), and if you want the 980M you have to pick the $4,199 configuration.

And hybrid drives!? This thing starts at $2,199 and you can't even get a full SSD? I know 2D designers probably won't mind the GPU, but they could definitely benefit from a true SSD.

Hell, the recently announced Razer Blade Pro has top of the line everything (including a desktop GTX 1080 GPU, 1TB SSD, and 4K screen suitable for photo/video editing) and it still costs less than the 980M Surface Studio: https://www.wired.com/2016/10/razer-blade-pro-laptop/

I must be missing the value proposition here because that price seems absurd, especially for a computer presumably geared towards professionals.
That would only tell you that a given network participant is making a transaction. The inputs, outputs and amounts are all still private.
Top Cities in the US, Europe and India for LTE and Wifi Performance
Imagine if in 2009, instead of ephemeral "shovel ready" projects, we invested in building fiber to every home.
Hey, thanks. I just tend to make anything random at night after a long day of work. Glad you like it. I just put up a contact me button on top right.
That metric works great if you have 100% penetration.

But what if a place doesn't have service on a large portion of roads? I doubt that is particularly true for this comparison, but the metric probably shouldn't reward a place with more unserved areas.
Computer Simulations Suggest War Drove the Rise of Civilisations (2013)
It would be stupid to crash our economy and then find out that the "solutions" didn't work. Or that we come up with technological fix to the problem. Or that that whole thing was just a ploy by leftists to seize power.

Anyhow, if you expect 7 billion people to do anything in regards to climate change, don't hold your breath.
> It is pretty rare to need to parse JSON yourself (what environment doesn't have that available?) but it isn't that difficult. It's a simple language.

That, coupled with the fact that it is still so easy to get it wrong and to introduce security issues is exactly what should peak your attention to the seriousness of the subject. Building any parser is fraught with risk, it is super easy to get it subtly and horribly wrong.
I'm not a company, and besides four comments on HN, there's been over 400 people sharing a single tweet to get access to the HTML version of the book.

Considering that I'm giving five books away entirely for free, asking for a single tweet isn't that high of a bar, to be honest. I don't mind a few people being annoyed by it, particularly because I can point those people to GitHub and be done with it :)
Is mobile really that critical for all use cases? User experience for productive work on mobile is kinda shit. On any platform.
This UK supercomputer can predict winter weather a year ahead of time
Managing node with package managers feels like a a bit of a fools errand at the moment. They are going to be wrapping npm somehow, but when npm can't even do things right..
The paypal (desktop) website has a 'feedback' link in the bottom right corner. It might be worth sending them the same feedback.
Suffering from App Store Rejection? [video]
My brother builds large buildings and after a lot of discussion about our professions the key difference we agreed on was the level of constraint. Software is (appears?) unconstrained. The enormous cost of experiment or change is very much apparent to stakeholders in his projects. In mine there is always a sense that because it is intangible it doesn't have the same cost.

However this appears to be a misconception.
> Just because someone behind a project has credentials you respect doesn't mean we should ignore aspects of the project.

I agree. Good thing that's not what I did.

Regardless of any flaws, there has clearly been a lot of effort put into it by multiple smart people with good intentions (from what I can tell), therefore it is unfair to characterize it as just "another altcoin".

That's the only assertion I made.
Feature Request for PostgreSQL Support on Google Cloud SQL Accepted?
There is still a separation of UI code, though. React components are just your view layer.
Do you mind telling me how you use kanban? I tried kanban.el but couldnt get it to update and populate the table, is there any way that emacs can auto-update live the kanban board based on todo states of items?? (e.g. if you hit shift + right for todo it is automatically seen in the todo column, without having to revert the file?)
I wouldn't mess with real estate speculation. The best route would be to look into ways to profit from protracted regional conflicts, massive (forced) dislocations of whole populations, famine, despair and hopelessness, generally.

Because those are slated to be (and according to some measures, already are in certain areas) the primary impacts of climate change, for the geographically unlucky.
Modern languages should feature a GUID type in the standard library.
I certainly upvoted this submission and use Protonmail regularly. They may soon be supporting PGP keys too, which would make them all the better. If I remember correctly, the Swiss recently got some attention for voting in favor of stronger surveillance, which surprised me. I wonder if it will affect Protonmail in any way. Here's a link from another "secure" email service that wrote about it: https://tutanota.com/blog/posts/surveillance-switzerland
I live in Redwood City, where I have the choice between a slower AT&T connection and a faster Comcast connection. It's partially my fault for being unwilling to pay Comcast, but these are the only choices available just a short drive from Palo Alto.
Honestly this should cover a wider reach of people (6 figure salaries and below). Some of these non-complete agreements are so full of legalese its hard to determine the scope of them.
That has nothing to do with PHP and everything to do with that the webserver runs as a different user than the creator of the files.

Unless you have root it's rather difficult to make a directory that the webserver can write to.

It's not specific to PHP, except that PHP is used for web scripting.

The correct way to do it, if you don't have root is:

Make a directory 777 (yes, you do need to). Have the webserver create a subdirectory owned by the webserver. Change the parent directory away from 777 to 755 or 775.

Double check that no one else created something in there while it was wide open.

Be aware that ALL users on that machine who can run web scripts have access to that directory.

An even better way is with mpm-itk
Or at least require real consideration that takes into account the possibility of extended unemployment. Like a mandatory ~75% of full compensation for the duration of the agreement or securing equivalent employment, whichever comes first.
So what is the metric to optimize?
I think the main thing holding MS back is that people are doubting their commitment to mobile. It's so weird, they finally clawed their way to a position where there most of the "must have" apps finally are on the platform (snapchat being the exeption) and then Microsoft went into a kind of "wait-and-see"-pattern where they didn't seem to want to over invest or put too much into it. The reality might be one thing but the perception of Microsoft right now in mobile is horrible.

I can kinda understand them wanting to stay silent until they have something substantial to announce after the Nokia transition... but they've been too slow and have almost lost all the momentum they had. And again, I see now reason why they should be acting like this except for short term gain over long term strategic benefits.
You have no idea how hard it is to short something do you?
It's okay. You're not alone.
I pay $63.25 for a 2M/256K rural WISP connection, and i'm in a county with 500,000 people. In fact, i'm only 4 miles south of Madison, WI city limits.. I live in a neighborhood of 100 homes. I would kill for a 10M connection, and more than 2M up..
Swarm of Origami Robots Can Self Assemble Out of a Single Sheet
> Imagine that when you're creating a Java app you'd be forced to chose a "profile" that says

They are called:

- Android Java

- Java Micro Edition

- Java Embedded Edition with (compact profile 1, 2 and 3)

- Java Standard Edition

- Java Enterprise Edition

- MicroEJ Java

- Real Time Java

Ah, then there are the vendor specific features like AOT compilation to native code or value objects like the Packet Objects in J9, just to give a possible example.
It's not really worth comparing costs until artists weigh in on the drawing capabilities of each piece of hardware. Wacom has had a corner on the market, and a lot of patents for a long time. I know comparisons of Surface Tablet vs. iPad Pro vs. Wacom still have Wacom coming out on top, but a lot of that could be because iPad Pro doesn't have access to the full software artists/designers need to do their job efficiently.
true, a friend of mine is using Surface 4 and he's really happy. as I said, I'm not sure how good or bad this device is but at least marketing wise, they are doing exactly same as Apple.
I use Win10 on my MBP as well, and I'd say I use it 95% of the time at this point. Definitely runs snappier than OSX, and now with the Linux subsystem running, I rarely have a need to go back.

I only wish Apple would open source BootCamp and allow others to try and fix the few issues that it still has, namely around battery consumption. Highly unlikely they would ever do that, but one can dream.
I think it's hilarious how many people think it's consistent to simultaneously hold the opinion that this is a tragedy and that Google Fiber was the ISP that they wish they could have, while also supporting federally-imposed "net neutrality" and the implicit claim behind it, which is that all ISPs are just dumb pipes that are moving bits, and that consumers are agnostic about who does it.

All the sheep on Reddit who got behind FCC mandated "net neutrality" are directly responsible for this. Urbanites get a warped view of this country and vastly underestimate the amount of places where satellite internet is their only option. Yet they have the nerve to bitch and moan about what a tragedy it is that they can't stream 4k video without buffering. The government must fix this! To hell with the rural schoolchildren and their lack of access to wikipedia, I want to watch high-def cartoons!

There was so much innovation taking place behind the scenes to provide a decent web-browsing experience via satellite internet and WISPs. And it's all for naught.

I'm still excited for this next year. https://en.wikipedia.org/wiki/ViaSat-2
Yeah, it's great until you want to stream a movie on a 3-day weekend.
AROS is a bit of both. It runs native on a bunch of hardware, including x86, PPC, ARM. It also runs "hosted" on several OSs, with Linux the most common, where it takes advantage of the host OS filesystem and drivers. But it can also run, for some values of run, on real Amiga hardware. With the caveat that it's a bit heavier than original AmigaOS.

It has a lot of additional features, but also lacks some parts of the original still.