skysight-inc/HackerNews huggingface dataset:
The example there about edges on an array is something I've had to directly deal with myself when I implemented a multidimensional image-processing function for GNU Octave. The problem is to find connected components in a binary image, where voxels are either 0 or 1. You want to find all the islands of ones, and you want to be flexible if diagonals count as being connected or not.

The problem, of course, is that along the edges you don't want to check for neighbours outside of the image boundary. I found no good way to do this for an n-dimensional image, after a few attempts of writing very complicated code. In the end, I ended up padding the whole image with a boundary of zeros, iterating over the padded image with an "if(current_voxel)" conditional that skipped checking for lit neighbours around the boundary, and when checking for lit neighbours at the original image's boundaries would give no neighbours at the padded zero boundaries.

The code was cleaner, but I incurred a big realloc, because N-dimensional images in Octave are stored as contiguous Fortran-order (column-major) arrays. I'm still looking for a better solution to this problem.

So, how do you do this cleanly?
Was hoping I'd find someone recommending Workflowy.

It currently does everything except calendar dates/notifications, which I'm currently working on adding to my User Script. (Shameless plug: http://workflowier.com/)
I really wish I could use Opera, but without Tab Overflow, having more then 15 tabs means the tabs are so small, and you cant read the title of the Tab. This is espeically important when i have multiple Tabs open on the same site, and therefore same site icon showing.

Mouse Traveling to Tab List and select is just annoying. When you know the Tab you want is somewhere in here right next to it.

I really want to use Opera, it is so much faster, but for power ( many Tabs ) users It seems the only choice right now, ( and for the past years ) is only Firefox.
Not sure if happiness can make you healthier but good health can definitely make you happier.
Microsoft releases Surface Studio
Pound me the witch drums

The witch drums
Sharing our R Programs – With Style
Sometimes people struggle to find something good to say about Sweden, the rape capital of the world. Glad we can find a good comparison - New Jersey...less rape...more, faster internet
> What does HN suggest for configuration files (to be written by a human essentially)?

JSON.

YAML confuses many people by being whitespace-sensitive; ini files I find too limited.
Hope they do the pricing properly this time. A computer for everyone must be affordable by everyone.
The plans I remember reading about (5 or so years ago) were about building large scale raceway ponds out in AZ, NM and that area as you had the ideal sun, cheap land, and it could be dried naturally further reducing energy consumption. I've also read a bit about them trying to use it for animal feed but I never could get the full story on that.
I agree, generalizing country to country comparisons without considering population and size are usually not valuable unless you have context to these things.
There are a few packages that do that, here's one that does two-way syncing: https://github.com/dengste/org-caldav

I use it to sync with a Radicale server.
Protocol Buffers text format: https://developers.google.com/protocol-buffers/docs/overview...
I suspect a collection of random, unqualified members of the public could predict the outcome with 100% accuracy using the written judgement as the basis for their evaluation, as appears to be the case in this study...
Escaping everything outside of ASCII is terribly human-unfriendly and wasteful in bytes as well.
Therapist: A smart pre-commit hook for git
It's throttled and capped so comparing it to European plans is not even funny especially considering pricing.
Only FTTH (fiber-to-the-home) should count as fiber. In Belgium one of the larger cable providers used to advertise their plans as 'FiberNet' while it was only FTTN (fiber-to-the-neighbourhood) and the last step was cable (with significantly lower uplink speeds than what would be attainable with fiber).
> When you say "citizens of the US" you're talking about a continent that would take roughly five days to cross at highway speed, driving ten hours a day. You may as well say "citizens of Europe."

I don't know if the comparison should be valid. Over the past 100 years the US has done incredible things. From developing the first transistor to applied atomic power to the first man on the moon, and more relevantly to your point, it expanded the German Autobahn model and took it to a continental scale.

If America wanted to do it, it eventually could be done - and many people around the world still believe this idea to be true.

Edit: What I think is interesting to add is that defense and national pride or prestige were indeed significant factors in these developments through the decades.
Microsoft Surface Studio
Reducing / eliminating stress makes you healthier, why couldn't increasing happiness do the same?
Wrote my own JSON parser (https://github.com/MJPA/SimpleJSON) a while ago... not sure how it's a minefield unless I'm missing something?
I saw that, but when I refreshed the page I was able to load the content.
Reflecting the great tradition of "C++", I hereby propose calling it "//JSON".
Is React a fad?

Yes.

Is it here to stay?

Yes.

Should I get into it?

Depends on what you need. If you are building a web application with complicated UX needs (protip: you probably aren't) and/or the team insists on React, you probably need React. If you want an easy time getting a job in the Bay Area right now, you probably need React. If you want to avoid having your comments downvoted on HN, you probably need React.

So, it depends.
Why not automatically give me my money back when my VMs are underutilized? :)
I didn't read the paper, but this got me wondering something. What are the units of "destabilization" being used?
Yeah, you'd have to bury it deep enough to prevent decomposition within a few hundred years. Holes that big are hard to do without heavy machinery which guzzle fossil fuels.
Surface Studio – Microsofts First Desktop PC
This is exactly what Linus's code does. "indirect" is just "dummy->next" but doesn't pay the extra space cost for the node value.

If writing this code in a higher level language, I think the dummy node would be more appropriate and idiomatic despite the slight increase in space.
In what way is "they're literally blowback from training mujahedin to fight the Soviets." controversial? I'd love to hear this...
The simplest circuit to use is a shunt resistor and differential operational amp
From the context, I'm assuming s_q_b simply means that if given malformed input, the parser should communicate the problem via the appropriate error channels for the given language. In Java, throw an exception; in Go, return an error, etc.

But yeah, the article's example of an XCode segfault is a good example of both poor parsing logic and poor isolation of fault domains. If your json processing library can corrupt the whole process then something's wonky.
The sum totality of all the issues raised in that post is not an esoteric edge case, even if each individual element is an esoteric edge case. If you haven't encountered any of them in your real code yet, there's two basic possibilities. Either you aren't using JSON very hard at all... or you have encountered them and you just didn't realize it. You will, sooner or later.

I'm not saying JSON is bad. Personally I think the sloppiness that this post enumerates is part of its success, and part of why it has so much support in so many languages. The more you nail down the semantics, the harder such widespread support gets. Right now you get a nice subset of the JSON spec that works in a huge variety of languages, where the JSON support for a given language usually converts the JSON into something fairly native for the language. This wouldn't be possible if you nailed down the semantics as hard as something like Protobuf does. For instance, a ton of statically-typed languages will let you encode and decode integers into JSON. But JSON doesn't have an integer type. Strict JSON support ought to forbid integers. But it's sloppiness lets us all just sort of ignore that and get on with life.

If you have a need for precision, avoid JSON. And people probably generally need more precision than they realize and probably ought to reach for JSON a bit less often than they do. But on the other hand, the whole thing does mostly work, right? That can't be ignored.
Is water really going to make it into death valley, or other mountain-protected areas? It seems like the only real threat in the USA is New Orleans.
How to Give a Great Developer Tech Session
Pretty sure Mom was talking about relationships, but whatever...
May be you should try it more than three times. Like you've experienced with ember and vim, the epiphany comes all of a sudden
First invent better robots that can do the job, or similar tasks. Next sell the technology to refine it to further fund R&D. Finally, purse other ventures that used to have expensive labor costs.

They could do Google Fiber today if they could sell it for more. The only other realistic plan is to reduce to cost of the project.
+1 on "Just grab a guitar".

Almost every rock/blues/metal guitarist worth naming started out by grabbing a guitar and fucking around on it until it started to make sense.
Show HN: Mental Healthcare Communications Platform
"If you want to avoid having your comments downvoted on HN, you probably need React."

lol :)
Buy land in Idaho, Montana, and Wyoming. You'd be in good company.
Postman office is just across the street here in Bangalore. Lemme go holla at em about this.
This Is How to Develop Your Brain for Maximum Performance
Because it was for a position where I felt it was more justified (cofounder), as compared to a run of the mill developer or team lead position, which is what I've been in the past and where I've refused to sign them.
Indeed, there's very little fibre in the UK. VDSL (DSL in that list) is being sold as fibre, and cable (cable in that list) is being sold as fibre, but cruicially, are not fibre.

Very few even vaguely close to fibre-like services (e.g. Hyperoptic) in the UK
You have to wonder, though. Is it impossible that there's a "music theory" for images/paintings/art that explains the mechanics of what makes them more compelling vs less compelling? I suspect there is, at least to some degree.

Obviously images convey much more information than music, so any theory that doesn't encompass the semantics of the subject will miss most of the signal. But is there a theory for the presentation and composition of the subject? To some degree, I'm confident there is.

Some of the methods used to debug the deep learning of images already do a fair job of showing the locus of focus in the image where the DNN found maximum information. I can see such a technique discovering many of the techniques used by artists and photographers to direct the observer's eye or juxtapose objects that conflict.
>> So why would one use the EVF over the LCD

The diopter is also a big reason to use an OVF/EVF.

I have to wear reading glasses now, so it's an inconvenience to use the LCD.

BUT, I have found that touch screen LCDs that support tap to focus+shutter mitigate that problem. In normal circumstances, I don't need precise focus (faces tend to be big enough) that I can still get decent shots even though the LCD is blurry to me.
It comes from stoner culture, where it's a sign of high quality when the psychoactive plant matter is still damp and smelly.
When asked to choose between immigration control and single market access, more people wanted to retain single market at the cost of immigration controls than the converse.

Source: http://www.independent.co.uk/news/uk/politics/dont-control-e...
But, you would expect your house to stand upright, all the fixtures should work (and work in an expected way), the roof won't leak, your house should be solid and so on. And if it is not you'd expect the producer to put a warranty on their product.

Choices made are made for aesthetic or engineering reasons or cost or some other constraint, rarely because the tech is 'fancy', 'new' or has been invented by the crew building your house. Bricks will be laid on plumb walls, the roof will be strong enough to support the expected load and so on and if any of it fails you will be surprised.

Note that most of this is stuff that has already been engineered elsewhere that is is combined in some novel way, and for the most part all of the materials can be used together, are standardized as much as possible and your average build crew will be able to move on to the next job without having to re-learn their whole knowledge base because what they did last week is now so '2015' that they are essentially useless unless they get with the times.

So yes, that's entirely different.
"fashion is clothing so terrible we have to change them every six months"
Days Since Last JavaScript Framework
That's my plan. Maybe a month from now, i will post about how much I love React :)
This is one case where something much higher above this value would be an indicative of overfitting.

This is not like classifying pictures between obvious classes, but something more complex
Totally inappropriate!
iPhone texts and calls can go to the wrong number
Curious if there is an English translation. More because Google Translate chokes on it and I wonder what that implies for the life of languages that don't have 'web scale'.
I agree partially w.r.t. testability of branchless code, but there's a flipside too: often the root cause of an edge case is in data-structure shape, so full coverage isn't necessarily sufficient. In other words, if an edge case is "folded into" the normal path via something like Linus' trick, you still need to actually test the case where (in this example) `head` is being removed, or else you aren't certain that the folding of cases is valid. And if you're testing that case, then you'll have full coverage of the original (branchy) code too.

Totally agree w.r.t. performance, though. Even if the branch is never taken, control flow can reduce the scope of other compiler optimizations.
Even if it was cheaper to purchase and maintain, it wouldn't be more efficient, because money spent is not necessarily the measure of the efficiency of the justice system. That could be, for example, lower criminality. If a system fails to jail enough criminals to do that, even if it's cheap, it's not working. And also, false positives (e.g. jailed innocent people) are especially troubling and can be very expensive in a justice system.
For reliability, I think the Jepsen approach of an expert stress tests a system and reports on where it fails is a good approach. I see some "big data" vendors actually pay him now to analyze their software, then fix the bugs he exposes.

Security bug bounties are also an important advance in software engineering process.

I also think there is a growing interest in these issues outside the industry. For example, we are likely to have as our next President someone all too familiar of the risks of poorly secured email systems. Maybe this will be the impetus for a more serious focus on security, at least.
Parsing JSON is indeed several orders of magnitude less complex than parsing HTML. In both cases there are excellent parsing libraries, but it would be very unwise to create your own HTML parser for production use, or to use any parser that hasn't seen some serious scrutiny.
Much (most?) "new" fiber is just companies lighting up existing dark fiber infrastructure.
T-Mobile leaked a Windows 10 VR phone
Well it doesn't stop just about every company from adding it into their employee contracts. Out of the last six jobs I've had here in Illinois, five of them had non-compete agreements, including two startups, one small business, one major corporation, and a contracting company (TekSystems).

The one job that didn't have a non-compete was a student job I held at the university while I was taking classes there.

None of them offered to pay me extra outside of the salary for 'consideration'. I've ended up switching which industry I work for with pretty much every job I've had (still software dev though), so it hasn't been an issue so far.

That being said, knowing that they're there has affected my decision making, including holding back on releasing games I developed in my spare time, to the point where I've been tempted to move to California to escape such bullshit.
I'm going through the phase now of simplifying my life and getting rid of stuff.

Very difficult. I'm by nature a very nostalgic person. Hard to part with items that brought me so much joy.

However, I came to the realization: Those items, while they gave me joy in the past, are literally preventing new experiences, and new sources of joy.

Need to make room for the future, and the only way is to throw stuff away.
Platform fixing mental healthcare referral misalignment problem. Connects people with mental healthcare referrals to relevant specialists.
I hear you, this is the old debate of incentives versus regulation: which one should you use in order to extract the outcome you believe is better. I don't know.

The problem with "convince media companies" to have backbone is one of incentives. Media companies are fighting amongst them, and if the incentives are such that the ones that "have a backbone" will always lose to the ones that don't, then your approach is a non-starter (and I believe this is currently the case because viewers demand that the media company have "access").

So how could you align a media company having a backbone with it winning in the media company competition? Well, for example by targeting a niche audience that hates seeing media companies pandering for the establishment. With that audience, your media company would win. Of course, only small companies target small niches. Then the question becomes: is that audience big enough that the big established media companies notice and want to gun for it?

Then there's an additional complication which is that with your method media companies aren't _really_ calling out poor bad governmental behaviours, but only having the appearance of doing so. That is, they try to appeal to the "no bullshit crowd" by calling out minor pre-negociated points, while still cuddling with the government on the things that really matter.

It's a complicated world.
This seems to miss how companies will react if enacted. If there's a freer flow on the talent side, corporations will want a freer flow as well. I would expect this to accelerate the current trend of converting more and more positions to contract or temporary positions rather than employment.

I think that's a good thing.

I'm not sure the White House would agree.
I suspect a lot of these do not hold up in court. In fact, I believe NY is very favorable to the employee in overly broad non-compete agreements.
> Especially before bed my mind wanders and produces these amazing Blues/Jazz riffs or Moonlight Sonata-esque ideas, but my talent is far behind my taste when it comes to either trying to play or even transcribing all that I "hear"... at least without significant manual effort.

Double down on ear-training, it'll take you a long way toward being able to being able to automatically translate the imaginary sounds into real play.
Javascript (in browser) is async, but not concurrent (like say, threads). JS will run the code in an event handler to completion (or not - while(1){}) before starting the code for the next event. Thus, code from one execution path cannot update variables in another path "immediately".

You could use a variable in a callback for an event that was assigned on the line above, and it since has changed, but it's important to remember that the callback (or promise, etc) does not actually run until an arbitrary time "later".
Recent discussion: https://news.ycombinator.com/item?id=12085844
Peter Thiel and the Undecided Trump Voter
There was a great article at some point that explained why 'be liberal in what you accept' is a very bad engineering practice in certain circumstances, such as setting a standard, because it causes users to be confused and annoyed when a value accepted by system A is subsequently not accepted by supposedly compatible system B. Leading to pointless discussions about what the spec 'intended' and subtle incompatibility. Anyone know what article I mean?
To me it seems like every time intel tries to create a security safeguard, it almost always without exception ends up being a new attack-vector instead (see "x86 considered harmful").

I'd love to run simpler versions of the modern intel cpus stripped of all this insecure bloat.

Surely I can't be the only one?
There's many of them. These are some I've starred on GitHub:

[-1] https://github.com/kaizensoze/remote-freelance-jobs

[0] https://github.com/engineerapart/TheRemoteFreelancer

[1] https://github.com/hugo53/awesome-RemoteWork

[2] https://github.com/lukasz-madon/awesome-remote-job
With spacemacs, …, things work _insanely_ out of the box

Honestly, you don't need any extra stuff, other than `evil' if you want vim bindings. (`Viper' works fine if you grok vi.)
AI Solves How Flatworms Regenerate into New Organisms
In other words, a landlord decided not to renew a lease and opened their own business.

On the one hand, it's a bit sleazy to attempt to cash in on the previous shop's customer relationships. But I have trouble calling this "stolen." Presumably, if it were a Starbucks that were opened instead, it wouldn't be so objectionable even though the net effect on the previous store owners is largely the same.
Microsoft announces new Surface Book with 16h of battery life
> Spain: 16.5 DSL, 5.5 cable, 6.8 fiber.

Note that outlier amongst the rest of the European countries excluding Sweden. Spain is a year or two into rolling out FTTP everywhere, replacing the copper twisted pair everywhere it can. 0 cost upgrade for the end user, with a speed upgrade from "Up to 10Mbps" to 30Mbps/10Mbps of actual throughput.
> Most importantly, find an instrument (and music genre) that you love.

Absolutely.

There's no point picking up the guitar if you don't listen to any guitar music.
It's one more pointer that you have to resolve, everytime you do something with the list. Sounds smelly to me.
This is a great post.

"Early on, when a reporter asked me how I came up with the idea for Anybots, I answered honestly that I made a list of all the ideas I thought might really change the world in the next 20 years, and picked the one I thought I could contribute most to. His eyes glazed over. It's unprintable."

A lot of people seem to take the "romantic origin story" as a template to follow, and waste a lot of time as a result.
Well, they do do automatic discounts for long-running instances, rather than reservations...
> The municipalities own (most of) the networks and all the fiber cables, letting companies use them for a small(ish) fee. These companies later sell it to customers. This help people to get the best deals and ensure that the networks are continually upgraded.

well that would be socialism. Sorry comrade, here in the US we have this thing called FREEDOM. It Trumps your smart/efficient/reasonable solutions any day.
> edge cases that rarely happen with normal encoders and can often be ignored

I've found that "edge cases that rarely happen" are typically 90% of my major headaches.
You can consider a fixed lens 1" sensor compact like a Sony RX100. It's got half-decent low light performance. It may not beat a 2016 consumer level DSLR for low light, but it's probably comparable to a 2008-2010 Rebel.
For your notebook, make a pen/pencil holder out of electrical tape or duct tape. Or buy one if you can't be bothered:

http://www.gouletpens.com/leuchtturm1917-black-pen-loop/p/LT...
And this comment is the online version of my dad choking to death on a lobster roll
Decompose the monolith with CUBA application components
Iceland election could propel radical Pirate party into power