skysight-inc/HackerNews huggingface dataset:
The type system is not that great and inference is quite limited. Definitions are not always existent or up to date and a single repo like definitelytyped is a terrible way to manage all the definitions.

The above sounds negative but TS is still the best bet right now imo. Some people will prefer Elm or Purescript for better type systems but I like staying close to JS.
The hole in the argument is, why would the second phone read the file and execute it? We are waaaay past autorun.
Mobile payments have a trust issue
Theranos and the Blood-Testing Delusion
Designing a CPU in VHDL: VRAM and HDMI Output
Apple has worst quarter in over a decade
So, what does this mean for Unity3D? I'm tired of being limited to .Net(-sorta-ish) 3.5 and a stuttering garbage collector.
That's the same as GCHQ say here in the UK, it seems every goverment is much the same!
Google is moving as aggressively as Microsoft was with IE, and Mozilla bent over, again.

for the kids that don't remember, go read about why all the worst parts of JavaScript are the way they are...
I thought this was odd because, after the Agricultural Revolution, what society wasn't authoritarian? It seems to have spontaneously arose everywhere.
Yes, because Typescripts is 2 things:

* A language, superset of ES6 that adds optional types

* A compiler (like Babel) that will take your Typescript code, check if the types are correct, remove them, and transpile the non-ES5 parts of into ES5 (just like Babel).

So if you want to use Typescript-the-langage, you need Typescript-the-compiler and you will no longer need Babel.
> IMO this is wrong: Most any banker can become a garbageman. They are way overpaid, that's why there is a lottery for the jobs. Is the reverse true?

The article actually states exactly this as part of it's "bullshit jobs" discussion.

> Relying on strike time to tragedy is complete BS. As we saw in 2007/8 when banker messed up the consequences are indeed harsh.

You're mixing up a strike with a very complex series of events that can arguably be described somewhere on a scale between "messed up" and "maliciously and fraudulently manipulated markets for their own profiteering at the expense of everyone else". However, determining exactly where on that scale they sit is a much bigger discussion than HN allows in a comment. Eitherway, the article again compares a garbage collection strike with a banking strike, which is a fairer comparison, and suggests that the biggest losers from that strike were the bankers.
But there is not the expectation in those professions that they will give up all their free time to it. No lawyers are suing people on their own time just for their own entertainment, I guarantee it. But programmers are expected to do their day jobs then go home and do more programming...
Docker ID: dancryer

I'd love to test this out as a replacement for the Vagrant + VirtualBox set up we use currently to manage the development of PHPCI. :)

Thanks!
KIC 8462852 Star Mystery Just Got Even Deeper
That's awesome - I have to buy more shit now.

For the vast majority of people, the headphone jack with built-in DAC and existing headphones are very sufficient. The forced push of new tech which doesn't improve anything other than hw manufacturers' profits is just maddening.
The Quick and Dirty Guide to Launching Your Startup in 2016
Getting up early is the only way for those with small children.
New microcontroller runs on radio waves, can be reprogrammed in the field
How many flights cross the USA in a day?
Greenhouse in the sky: inside Europe's biggest urban farm
The people I mentioned above work at night, when the construction site is completely inactive. They're just living lights.
Yes, worker productivity is definitely nonlinear. But they would have less choice if that were the law (obviously getting rid of the exempt loophole). Or if you had enough saved up that your BATNA was to not work anywhere until you found a place with desirable hours.
It's not just Apple - it's the developers who release updates to their apps which, because they have the latest gear, are optimised for the latest hardware. I have an iPad2 and only recently upgraded it to iOS9 after 6? (I think, the one where they introduced the wobbly effect) - it got slow before I upgraded it because I updated all the software on it incrementally. It started lagging before I upgraded, indeed it was the reason why I upgraded the operating system. It didn't make any difference.
In general, regulatory agencies like the EPA are grossly underfunded. To answer your question, “we” are “paying them for” doing the best they can with a huge set of problems and limited resources while navigating challenging competing political pressures.

If “we” want better, it would take shifting tax money toward those government functions and adjusting the law to give regulators a stronger mandate.

If you personally want to see such a change, the easiest first–order action you can take is helping get out the vote or donating money in competitive congress and senate elections, working to replace Republican Party lawmakers with ones from the Democratic Party. (Party affiliation is obviously not a perfect proxy for support of the EPA, but it’s not a bad start, since opposing environmental protection and denying global climate change are a core plank of the GOP platform.) If you want to do better than that, you’ll have to educate yourself more thoroughly, and take on more deliberate activism and/or involve yourself significantly in the political process.
Has a misdiagnosis and resulting fall-out actually been tracked down? Most of the Theranos projects I remember were beta projects (with Walgreens and such).

Fairly common to raise money on a vision, launch an unfinished product (she used the competitors devices to deliver results?) to gauge customer interest, esp in targetted markets, then go gung-ho on Engineering to deliver. Maybe this doesn't work in Bio-tech? I wouldn't know.

I agree this will bring a whole lot of unwanted attention to a new industry, but would argue that this was because of the litany of borderline clickbait articles that have followed the WSJ expose.

Now if Theranos dies, we'll never know if they were actually full of shit, or if they were actually close to solving the problem but died because they couldn't weather the PR shitstorm.
Consultants Are Eating the Agencies' Three-Martini Lunch
There is a less naive steganography tool in the Debian repos named steghide. According to the manual:

Steghide uses a graph-theoretic approach to steganography. You do not
need to know anything about graph theory to use steghide and you can
safely skip the rest of this paragraph if you are not interested in
the technical details. The embedding algorithm roughly works as fol‐
lows: At first, the secret data is compressed and encrypted. Then a
sequence of postions of pixels in the cover file is created based on
a pseudo-random number generator initialized with the passphrase (the
secret data will be embedded in the pixels at these positions). Of
these positions those that do not need to be changed (because they
already contain the correct value by chance) are sorted out. Then a
graph-theoretic matching algorithm finds pairs of positions such that
exchanging their values has the effect of embedding the corresponding
part of the secret data. If the algorithm cannot find any more such
pairs all exchanges are actually performed. The pixels at the
remaining positions (the positions that are not part of such a pair)
are also modified to contain the embedded data (but this is done by
overwriting them, not by exchanging them with other pixels). The
fact that (most of) the embedding is done by exchanging pixel values
implies that the first-order statistics (i.e. the number of times a
color occurs in the picture) is not changed. For audio files the
algorithm is the same, except that audio samples are used instead of
pixels.

I wonder how hard it would be to detect (not decode) content hidden by steghide.
learning while getting your PhD is maybe 1/10 learning from classes and 9/10 creating new knowledge and reading papers; I think I am being generous to classes here. You become the world expert by going extremely deep in a very narrow topic and actually creating the knowledge around the topic. You don't need to be a PhD candidate to do this.

For credibility, I was a Computer Science PhD candidate 4 years ago.
Just realised I obviously cocked up the bit planes for the Lena+Walrus example. There's some grey in there as well as black and white!

EDIT: Fixed. It was because I changed it down to greyscale too late in the process.
TypeScript on JavaScript is like c# on CIL (.net common intermediate language). You are free to modernize the language as much as you want without breaking backwards compatibility. Not surprising Anders Hejlsberg is heavily involved in both. Great language.
and everyone send in a gecko string...
Ha! Well, even if I have backups, I don't like buying replacements, so there's that...
or shii or zee or
> So many people view it as their dream job, and that means they tend to tolerate a lot of bad behavior from their employers, especially when they're younger.

Same thing applies to acting and production jobs in film/TV/theater.

We all wanna be where the magic happens.
Comcast Is Said to Be in Talks to Acquire DreamWorks Animation
You can use both, I do TS -> Babel to get hot reload in react (if you know a way to do that without Babel, please let me know).

If you don't care about that, it's pretty much the same except async/await are not there yet. In Babel you could also use ESX features before any kind of approval while TypeScript only implements features approved (afaik).
As someone who does not live in a high-density urban environment, I would rather keep my bank than my garbage man.

My waste is about half compostable and the other half, through a slight change in purchasing decisions, could easily consist solely of easily-burnable paper and cardboard.

Meanwhile, if I had noone to finance the purchase of my house or manage my retirement savings then I would be considerably worse off.
Correction. Clang used to compile much faster years ago.
But nowadays GCC-6 actually compiles faster than clang-3.8.0.
See e.g.: http://hubicka.blogspot.com/2016/03/building-libreoffice-wit...
After reading author's post I've a feeling that its not the programming skills that the author has issues with, but instead the attitude, stress durability, expectations to the world around him. True, hiring can be broken, it often is, but as with everything, the persistence usually allows us to find the proper company with proper hiring process. He's getting frustrated pretty quickly, complains when is asked to perform math-heavy coding, complains when is asked to do proper front end coding, so on and so forth - this type of people are not very pleasant to work with and very often their feelings, unability to adapt to difficult situations and attitude is very visible, putting off the recruiters. That is, of course, my personal feeling after reading that piece and I might be completely wrong.
Its ironic that I would have done better in these hackerrank type challenges straight out of university, even though the code I write now is way better.
At a previous job we ensured we got clean compiles with Visual C++, SPARCworks and xlc, even tho' all our customers were only actually interested in the Solaris version.
I love working in environments like this. I can say hands down they were my most productive years as a programmer.

Quality code review is the single most important trait of a high performing senior programmer.
The LLVM point is a great call out. I didn't realize some many were based on it.
Comparing with the us sports is tough for several reasons:

The American sports have no relegation system, but on the contrary have a loser-to-winner system of drafting. You even hear about potential conspiracies to come last when a guy like (no pun) Luck is available.

In Europe there's also no salary cap. When my team played Barcelona a few years ago pretty much all their players had a market value exceeding my whole team. That doesn't happen in the us sports because of the cap, and so when you look at various halls of fame you find a nicely spread set of clubs that the best players played at. This also makes the patriots quite a special franchise.

So why Leicester? Without having the stats available, I can see a couple of things.

First, the premier league pays huge salaries. That means even middling clubs are big fish on the European market. But while there's plenty of stats to say who is good at playing, it isn't easy to put a value on the relative merits of players. So you may think Raheem Sterling is a great player, but how much more should you pay for him than a Mahrez? Hard to say. And you also have the brand recognition problem. You buy Mahrez for 1M, he bombs, you lose your job. Or you buy Sterling for 50, he bombs, people think he had an off season or they think of some other excuse.

Second, even very good players are wary of competing for spots. Leicester are not a team of amateurs. They are full time professionals, many with national team experience. Perhaps the prior probability of 1 in 5000 needs revision. It may have made sense back in the days where some teams were playing local boys vs international stars, but not in the pro era. I remember years ago one of the teams in the Danish league went bust and had to field amateurs. They were caned every match.

Third, it's not easy to go from individual performance stats to a team plan. It's actually incredibly hard to build a model of how they'll all work together.
How to Run Your Social Media to Perfection
Checkout the version before you introduced the C++11 header.
Alternatively, fix the header to be C++98 compatible (may of course be non-trivial).
Interesting, I'd love to have that datapoint, but I was an idiot and pushed to iOS7 on my iPad2
To take this further, Theranos raised an estimated $400m. There a lot of people (including myself) who could have used that money (it's fungible) to create something that actually existed. Even at a paltry $2M per company (a typical seed round these days), it could have meant another 20 companies could have been created, or at least be given a fighting chance.
To clarify, each piece of the puzzle must do what it is expected to do, otherwise it will be hacky. It's not expected for C++ program to detect its underlying hardware problems, there are no tools, nothing for that. So any solution would then look like and feel like a hack, temporary workaround. It's however expected for the computer as a whole to produce buggy results, it's normal and there are many existing design solutions that can take that into account and work around that. So that's why you take three computers and judge their output. Then each piece of the puzzle does it what it is intended to do, it does what it is expected to do and it doesn't do stuff outside of its responsibility.
It has been super exciting watching this all unfold over the last year, for those wondering where to get started in the new world of .NET open source - start here:

.NET CLR Managed Runtime - https://gitter.im/dotnet/coreclr

.NET Framework - https://gitter.im/dotnet/corefx

.NET Compiler as a Service ("Roslyn") - https://gitter.im/dotnet/roslyn

.NET Orleans Actor Framework - https://gitter.im/dotnet/orleans

Mono Framework - https://gitter.im/mono/mono

Xamarin iOS, Watch, Mac Bindings and Framework - https://gitter.im/xamarin/xamarin-macios

Xamarin Android Bindings and Framework - https://gitter.im/xamarin/xamarin-android

Everything is licensed under the MIT license w/patent pledges.
Makemake? (That's no moon!)
Murderers have a victim party that lay charges. Have the investors or beta users laid charges? I actually don't know.

Like I said AFAIK, Theranos hasn't taken money away from any more deserving startup. Though, I agree $400M is A LOT of money gone to a supposed undeserved startup. Maybe that's the source of the rage.
They are ahead with certain experimental features such as Concepts
Status of legislation on self-driving vehicles across the 50 states
The jargon for this practice is multiversion programming. Its based on the idea that different people will make different errors when implementing a design. However, in practice we find that errors are actually moderately or even strongly correlated between different programmers. So this practice is rather uncommon.
JavaScript as an intermediate language is a fail, therefore TypeScript is a fail.
Backblaze Storage Pod 6.0
Not surprising, since c++11 std headers are generally much larger and more complex.
This is pretty much a solved problem, albeit not yet push button simple. I see using Git for this as the classic "Only having a hammer so everything is a nail" syndrome.
For me it was a clear message to the outside world, how little backing Dart has inside Google, if their management allows for choosing a programming language designed by the competition instead of their own one, for their own products.
Unity has moved to IL2CPP so not sure a hell of a lot.
You can be an consultant as programmer skills like communication, problem solving are transferable.
That's implementation-defined behaviour (do something nonstandard and document it) or unspecified behaviour (do something specific and nonstandard but don't have to document it).

Undefined behaviour allows the compiler writer to have the code do anything unreliable and unpredictable and not document it. Its purpose is to allow compiler writers to completely ignore the erroneous code that results in UB and not spend effort trying to diagnose it or implement it. Most compilers still make an effort to diagnose some UB anyway, though.
As far as I can see, no one mentioned fluidic[0] computation so far. I am not aware of a fluidic processor that can run C++ compiled code, but .. if you want hardware that can withstand 1000 degree celsius, there's pretty much no alternative that I'm aware of.

[0] https://en.wikipedia.org/wiki/Fluidics
The thing is: whenever you see it on-screen, the people using it are happy with it, not frustrated, not fighting it, and that is truly "good UX" (within the suspension of disbelief of the show).

In other words: it shows that, if people react to a UI like they do in the show, that's the perfect UI.
Apply HN: Keep your all meetings short
Meetings are killer of productivity at work.

The idea is to do meetings with defined rules: meeting can't be longer than 15 minutes, there has to be a clear goal defined for the meeting, presentation at the meeting should be short (no more than 10 slides, with only one large font available (32)), presenter should be prepared, all comments are at the end of the meeting (or through the app).

App will force user who schedule a meeting to prepare it according to the rules. App will help user to prepare slides and will help with speech preparation (by time, tone tracking). During the meeting app will keep meeting to be on time and will allow to add comments which will be answered during meeting (if there will be time) or after.

Dont waste other people time, be prepared, follow the qoute:
'If I had more time, I would have written a shorter letter.'
Thanks. For what it's worth, don't know what's happened to Man City this season, you were probably missing Aguero early on, but you have enough quality in your squad it should've been easy enough to adapt. What changes do you want Pellegrini to make next season?
True. My friend is a VP of some construction big-co and relies heavily on his phone. The StarTac would survive the most hostile environments without much issue. iPhones? Well, he has gone through about a dozen in spite of him using the expensive covers (otter).
Show HN: Rapportive/Caller ID for mobile email
this is bad.

remember when Microsoft was the first to ship a browser shipped by default and dictated the standards by releasing it as they saw fit in that monopolistic browser? (for the kids of today, devs from that day loved ie just like you love chrome today. IE invented the developer panel and ajax request, both things you live by today)

well, Google (the irony) sued and won. Microsoft had to remove IE from Windows, and browser vendors agreed to not force standards themselves. that is the only reason we have prefixes. it send the message "we think it's cool, but wait for everyone to agree on the best way to implement this".

without prefixes, Google, having the browser monopoly (since Android is the new windows) can dictate the direction as it see fits. just like Microsoft when they sued them.
What your city looks like when nearly every store is mapped
I think the end result is actually that JavaScript wins. If it turns out that a lot of people think that JavaScript needs a type system, one will be proposed and rolled into the language.
> "Merchant cash advances do not have an interest rate. Instead, Shopify will purchase a set amount of your future receivables at a discount."

Their page never specifies a "discount" rate and only show the 10% remittance rate. This makes their example table at the bottom near fraudulent because the "daily revenue" column is already discounted. I'd bet their discount rate is the same ~13% it was six months ago [src].

They know your revenue history, so I expect they're offering something which will likely take you 9-12months to pay back at the remittance rate (10%) based on your projected revenue. Note since this isn't a loan, if you pay it back early by growing revenue, Shopify still makes the same returns (13% discount rate) on their capital. Good deal for them, likely comparable to credit card rates for businesses, but since it's cash it's more flexible (pay employees, payoff loans, brides, etc).

[src]: https://twitter.com/seobrock/status/669269206584553473
Previous discussion is here: https://news.ycombinator.com/item?id=11579757
When my headphone jack broke on my laptop, I desoldered the microphone jack and resoldered it into the headphone jack's slot on the motherboard. It had seven pins, and I couldn't for the life of me figure out how to get a replacement part for it that would fit the existing PCB holes in any other way, short of buying an entirely new motherboard.

I guessed one pin each for tip, ring, and sleeve, one each for tip disconnect and ring disconnect, but then there were two pins left over. Perhaps signal and disconnect for a second ring? I couldn't find a near-enough match for the part from anywhere that I knew to look for it.

If there were a universal 3.5mm TRRS standard, I could just buy the standard jack receptacle and replace the part, rather than cannibalizing my microphone jack.

The other problem is that if I just removed the broken jack, my laptop would never use the speakers again, because it would think that tip signal and tip disconnect were no longer shorted, and ring signal and ring disconnect were no longer shorted. Electrically, removing the part is the same as always leaving a 3.5mm jack plugged in. I'd have to permanently short those contacts on the board to simulate a never-in-use jack, and I didn't know the pinout for the 7-pin device in my hand unless I wanted to disassemble it with forceps.

So yeah, screw the 3.5mm TRRS port. Give me a universal standard. And let's not just specify the mechanical properties of the plugs, but also the allowable locations and spacing of the pins for compliant through-hole, cable-connected, and surface-mount devices!
I'll add that there are actually more states than I expected that's actually legislating on it or starting to.
In Defense of .js: A Proposal for Node.js Modules
Cheap Solar Power (and announcing HarvardX Course: ES137)
You should check out Project Rider[0].

[0] https://blog.jetbrains.com/dotnet/2016/01/13/project-rider-a...
ACM 2015 Tech Awards
What about Ryder Hesjedal's bike spinning on itself a few years back?

Are we addressing that as well? It feels like the UCI is only going after easy pickings to prove a point and not doing its best to actually to fight mechanical cheating in fear of yet another scandal.
So because your house might burn down, you leave your doors and windows unlocked?