skysight-inc/HackerNews huggingface dataset:
Yes, you do. There is no idea of a 'default' type here, because each variant of the enum is treated exactly the same. Your C# example assumes an inheritance relationship between T1 and T2 (i.e. T2 inherits from T1, so you can pass it to something expecting a T1 reference).

Rust doesn't have type inheritance, so the only way you can define relationships between types is to have something external tell you how to package them together, which is what the enum would do here. So it's not a parent-child relationship between the types, it's a new thing which says "here is a thing which can be a T1 or a T2 but not both at once".

Not having OO does require you to think somewhat differently about how to build your data structures in Rust. I've found my intuition from Haskell is a stronger guide when working with Rust, but since Rust's type system is much more like that in an ML-family language this makes quite a bit of sense! Sadly this does increase the learning curve for more mainstream languages.

(Rust does have trait inheritance, but all that says is that to implement trait T2 you have to also implement trait T1, and thus anything working with a T2 can assume that thing is also a T1).
The best for me would be :

- Sapiens ~ Yuval Noah Harari

- Mindset ~ Carol Dweck

- Why we do what we do ~ Edward L. Deci

- Capital in the XXIst century ~ Thomas Piketty
It sounds very good to me. Miss my folks.
Because for example France peek electricity consumption is between January 20 to February 10 at 19h, and there is no sun at that time.
...and didn't that end well in 2008.
"Hipster Meets Nerd Reading List"
What the post-Trump debate over journalism gets wrong
I think it should. It's such a useful tool for quick communication of real time events. It's hard to imagine anything replacing it anytime soon and it does have a significant amount of users, even if it isn't growing much if at all.

You have fair points but I think there are redeeming qualities :)
Android Studio 2.2 Is Out with Advanced Features
One of the side effects of Industrial revolution was acceleration of colonialism. So job tremendous job loss may and subsequent suffering was not felt directly by western nations but instead outsourced to colonies. May be version 2.0 of colonialism might emerge to cushion Job loss from first mover nation.
HN still uses <table> .. and it works great.
dupe, please check before submitting!

https://news.ycombinator.com/item?id=13226525
> and ask if my birthday had changed

Er, why? This reeks of a pretty serious administrative fuck-up.
Maybe add (2014) to the title?
Same here. I work on conversational systems and our explicit goal is to enable our customers to replace humans with our systems.
This PM app is new but BETA users are raving how did they manage without it
After being on closed BETA for more than 6 months, they are finally opening their doors to early adopters through requests. KnightSpear is an all-in-one work management platform for IT teams and Tech Startups. Their current BETA users admit to its usefulness in combining project management, error-handling and collaboration features which are must-haves in IT operations. A brilliant idea that's yet to be proven by more teams trying out KnightSpear. They're giving out subscription credits to early adopters. Sign up for early access at http://www.knightspear.com
Realistic Procedural Architecture for Games
- Introductory Statistics with R by Dalgaard, Peter. A solid introduction to stats, don't be scared by R bit in the title - it contains plenty of maths/theory so that knowledge is widely applicable. Brilliant introductory for everyone who wants to do something stats related. It's amazing how much can be done with no fancy deep learning algorithms, just plain simple stats.

- Statistics Done Wrong by Alex Reinhart. Plenty of gotchas with real world examples from academia. Well written and easy to read.

- The Circle by Dave Eggers. This one was scary. About imaginary corporation (a blend of Facebook and Google and Amazon) and probably not too distant future. If you liked Black Mirrors, you will love this.

- Brave New World by Huxley, Aldous. Classic novel with interesting thoughts about engineered society, where every human is assigned class, purpose in the society and feature at birth.

- Hatching Twitter: A True Story of Money, Power, Friendship, and Betrayal by Bilton, Nick. Read this book in a weekend, really well written and well researched about the inception of Twitter.

- Superforecasting: The Art and Science of Prediction by Tetlock, Philip E. A study on people with above average ability to forecast feature events (mostly geo-political). Talks about measuring predictions and improving them.

- The Black Swan by Nassim Nicholas Taleb. Brilliant book about overlooking rare events which have dramatic consequences because 'it's unlikely to happen'.
The Year in Mobile Payments
I made the mistake of reading Ayn Rand as a teenager, and ended up being pro-capitalist, (and in American terms, conservative) for a decade. I've since become a lot more liberal and socialist.
I don't think the issue is whether automation and globalization are able to create more wealth in absolute, but whether the resulting wealth is distributed fairly (or effciently).

If a company is able to automate its facilities to achieve 2X profits with half the workers, you'll have an higher overall GPD, but the created wealth will be shared by a reduced number of people.

People struggling to make a living won't give a damn whether TV has 3 channels or 300, they can travel cheaply around the world and there is a new smartphone model every year.

This has been sustainable up until technological advancement still allowed for enough decently paid unskilled jobs, but it's clear we are past this point.

We are running out of, as you say, "things for people to do".

I don't think these trends can or should be reversed (because they have undeniable benefits), but how to deal with the consequences is a real challenge.
At least in Germany, the ultrasound machines that most vets have are second-hand from (human) physicians and look older. I have yet to be at a doctor's office in Germany that didn't have an ultrasound, even general practitioners ("Hausarzt"). The concept of sending a patient off to an ultrasound technician for a routine scan seems baffling to German physicians.

Sources: asking the two vets I've brought birds to here, own visits to doctors
I'm using an i7 + 16GB ram with a docker instance with some postgres inside, scala development using intellij and using the sbt compiler to run it on the command line and pretty regularly it chokes and sometimes I have to restart the computer when the jvm gets crazy and starts forking itself and eventually I'm of of RAM and everything is dead slow... But I'm pretty sure those are some just bugs. Anyway, excluding those spikes, I can't work on our codebase with just 8GB, I tried, it needed to be updated. For the cpu I'm not sure if it matters or not. For disk space I never look into it and don't even know what I have, but pretty sure that doesn't matter in my case. What really matters seems to be disk accesses so the fastest disk is recommended, SSDs, etc.
A bunch and mostly Why Grow Up. To be followed by Kant's Groundwork.
Are you thinking of Chasm City, or did I miss that subtext in the later books?
I've had conversations with recruiters where I've initially sounded interested, then changed my mind because it just sounds like too much hassle.

They simply can't understand that I would give up when I realised there were three interviews, or that I needed to spend a day doing a test.

Sure if I did well in one interview the other two would likely be fine too, but equally... I could just go to another company that says "OK" after a conversation in a bar and save myself a lot of friction.
These are the ones I read this year that I really loved:

Genghis Khan https://www.goodreads.com/book/show/93426.Genghis_Khan_and_t...

Mistakes were made (but not by me) https://www.goodreads.com/book/show/522525.Mistakes_Were_Mad...

Sapiens - a brief history of humankind https://www.goodreads.com/book/show/23692271-sapiens

A little history of the world https://www.goodreads.com/book/show/61505.A_Little_History_o...

That last one I just finished and look forward to re-reading real soon. It's written by a German and from a European point of view.

A few other good ones but not top of my list of recommendations:

The church of fear - https://www.goodreads.com/book/show/17201748-the-church-of-f...

A brief history of time - https://www.goodreads.com/book/show/3869.A_Brief_History_of_...

Looks who's back - https://www.goodreads.com/book/show/17289087-look-who-s-back
The "generic splash page with a positive emotion" as an error message would infuriate me, I'm afraid. I don't know if it's due to cultural factors or age or something else, but I find the trend to anthropomorphise machine/user interaction with informal language very annoying. It's even worse when used in error conditions as it piles my annoyance at the attempt to make my inanimate computer sound cute on top of my instantaneous frustration at the error.
France is a net exporter of electricity in all months :

https://opendata.rte-france.com/chart/embed/?dataChart=eyJ0a...
Building a Simons Says Game with React/Redux
yes I agree. I was part of a Danish Government programme in 2013 where top members of the Danish government publicly said that they wanted Denmark to be the best country in the world for foreigners. Then to make a U-Turn like this shows that we have become just like the USA, with big promises to get elected and no substance anymore!
There are a couple of really annoying aspects to this article. One, its promoting a feature (css grid) that's got very little support in practical use today over another feature (flexbox) that, while perhaps imperfect, is mostly here, now, and is worlds better than what came before. Secondly, this article is almost 3 years old and its promoting a feature that's got very little support in practical use today.

JS can be a real sh*tshow sometimes, I'll grant you. But holy effing hell, CSS, get it together. Grid systems are not a new thing. Its a travesty there's no standards-based support for them yet.
I don't think the obesity problem is due to lean body mass (which water weight is)...
Semantic Machines hopes to best Google in the conversational AI game
I think what makes this magical is the suggestion that a misremembered, imaginary D-list 90's movie—supposedly featuring Sinbad—is somehow evidence for Bostrom's simulation hypothesis.
Regarding the first one (Introductory Statistics) what would you say the pre-requisites are? I'm not much of a mathematician, in fact I might even need to brush up on high school math by now, but I've thought about statistics for a while now. Is it approachable or would I have to study up to college level?
The 25 hour day might we well around

https://myprivate42.wordpress.com/2016/12/19/lets-shift-to-2...

as well as the obligation to consume, otherwise savings will be invalidated. Dystopia ahead.
Great advice. I was wondering if anyone out there has experience of sourcing technical leads when what's primarily on offer is equity for a founding/lead role at a bootstrapped startup with an early product. Clearly you need to have a compelling vision, show potential and find people in the right frame of mind/stage in their career but I'm wondering if I'm missing any important channels? So far here are a few I've tried and my experience:

* AngelList - seem to mainly attract recent bootcamp grads

* Meetups and Networking Events - seems very inefficient and so far I've come across very few technical folks at these events, at least in digital health

* A lot of personal outreach using LinkedIn/email - probably the most successful so far..

* HN Who's Hiring - surprisingly few leads, but very high quality ones so far.

* Personal network - although similar to the author's I'm relatively new to the Bay Area
Uber halts California self-driving cars test
it is for as long as your repository is undamaged.

its rare, but sometimes a repository can get damaged beyond repair. keeping it inside of a cloud storage directory like google drive, dropbox or similar makes it prone for fatal errors.

in such a scenario a backup of the full repository is required. in gits case, remote sources can fill the 'backup' role pretty easily, as everything gets pushed to a remote server. this is obviously not enough safety if you're a bigger enterprise, they'll need additional safety guards/backups, but its sufficient for most people.
For the uninitiated, I found this a good introduction

http://www.phyast.pitt.edu/~blc/book/

(It seems to have a pro nuclear bias, the author claims neutrality)
That argument doesn't really work considering Uber (along with Lyft) spent a combined $8MM in Austin fighting fingerprinting legislation when it would have been significantly cheaper to just fingerprint their drivers.
There's all sorts of funky stuff with Android audio recording and playback.

Some Android devices can only record 8kHz audio and then upsample without telling you (where iOS hardware native is 44.1kHz). Some also apply filters you wouldn't expect at the input stage. There's also automatic gain control (AGC) which varies dramatically across manufacturers and phones. Similarly for output: filtering, sample rates, speaker quality, etc. Then taking into account the immense matrix of testing, the problem becomes non-trivial very quickly on Android in ways that are not an issue on iOS. Their choice of ASK complicates things further as amplitude modulation is more prone to transmission error afaik.

As someone who's spent way, way too long playing back and recording audio on mobile devices as a mechanism of communications, let me assure you, it's hugely harder on Android than it is on iOS. I would have made the same decision if I were them.

Surprised they didn't use BLE, honestly...

[edit] Very cool approach though!
I don't think Australia is a good example of "problems Canada will see when they are older".
Probably a stretch, but Sinbad the Sailor was a character from Arabian folklore, as were genies.

Edit: In fact, they were both mentioned in Scheherazade's 1001 Nights
Ah, I didn't realise this. Thank you!
Keybase
[ my public key: https://keybase.io/predrage; my proof: https://keybase.io/predrage/sigs/8XWS9pJ55Hu0-zPnD3ycyrtJ2tk2HcjK0MMIDgidVFw ]
A Butlerian Jihad perhaps? Frank Herbet was really on to something in his Dune series.
Site looks broken, because CSS is loaded over HTTP which is disabled if site is loaded over HTTPS.
It is very approachable. If you know the difference between mean and median then you know enough to study the book.

It is written as a textbook for graduate biology students to help with their research, so it doesn't assume much mathematical knowledge. It also contains exercises (with answers) at the end of each chapter, really helps to consolidate the newly acquired knowledge.
Deep Work sure is a great book, but I would recommend people with interest in the material just to go directly to Flow by Mihály Csikszentmihalyi.

Read them one after the other, first Deep Work and then Flow. IF you are going to read both then I would recommend that order. Reading Flow first, then Deep Work doesn't have much to offer.

Those books actually re-fueled my love of programming.
It depends which device you use to look at it. It tends to adapt poorly on large screens or smartphones (at least the ones I use). And this is the primary reason to not use table AFAIK.
Best Crowdfunding software
Create, manage, maintain and operate a successful Kickstarter clone platform with Agriya&#039;s fundraising software - Crowdfunding Pledge.

https://www.agriya.com/products/kickstarter-clone
You could send emails to FB users directly to their facebook email (don't know whether this exists anymore). In 99% these emails were relayed directly to the users mailbox (probably with the added benefit of coming from the facebook.com domain).

Many reported this, but it was not eligible for bug bounty, it was a feature according to FB, even though it circumvented their pay 1$ to deliver your message to someone you are not friend with.
Use little snitch on your mac OS computer, you'll see all sorts of port 80 connections to things like mzstatic.com and so on.
Art & Fear

Of all the books I've read, this one resonated with me the most. It discusses the process of art making, both the personal process of finding your work and learning how to get better, as well as the issues with being judged through your work. If you treat your projects/code more like art than science, I think this book will be an enjoyable and provoking read.
Interesting. In light of recent Oracle JavaSE licencing enforcement (MissionControl etc.) this will provide some safety from legal uncertainty.

And maybe redHat will also release a JDK6 build for Windows for the poor souls (cough) who are forced to deploy with good old JDK6 even though it is unpatched.
Four years ago, I was working full time. That job was automated away, but I found another part-time job that paid minimum wage for fewer hours, so my income dropped dramatically. That job was automated away, and I was very lucky to find a job (that ended up being around double full-time hours, but only paid for half of them, so legally I was paid about half of minimum wage), which went away. Now, I'm working one third of a full time job, for minimum wage. That doesn't even cover living costs, and it's looking like it'll be automated away in the next few months.

As working hours drop and wages tend toward minimum, we do indeed end up in a bad situation.
Mass scanning the internet (http and https) using a raw tcpstack. (GO)
One-column clean resume template for professional usage. Supports XeTeX
> Oh, and Phoenix blows any of the Clojure web systems out of water. It's awesome.

Are you referring to performance, or api design? In clojure there is almost no http apis by design, you're supposed to hook a library that follows the ring spec so it's not a nice comparison imho.
Resolve Leap Second Issues in Red Hat Enterprise Linux
But of course, as technology matures, advertisers will go out of their way to make use of it. That's one thing you can count on.
in all fairness, waking up a human everyday hours before feeding time and all the other things I'm reading in this thread, the cruelty goes both ways.

now the human has responsibility because they started it when they brought the cat in.

though the cat doesn't seem to mind because hey free food and they get to act however the way they want and the human will think it's adorable.

it is so weird. even though as a human I also find cats often to be adorable. this is a reason I would never get one.
Windows Kernel Exploitation – Integer Overflow
Get Online Web Services – Domain – EASY
Bitcoin's market cap reaches an all time high of $14bn. Congratulations
I'm still waiting for someone to invent a mathematical formula for predicting society's behaviour, akin to Hari Seldon in Asimov's books!
FWIW, I contribute to the EFF and support its mission. But the EFF is not in the business of dispensing legal advice to the public. They're in the business of lobbying, and they're not above hyperbole. Neither, for that matter, are celebrity lawyers from Stanford, Harvard, etc.

That's a lesson I learned the hard way when following Lawrence Lessig's SCOTUS challenge to copyright term extension. Lawrence Lessig, Eben Moglen, and the whole cast of lawyer-philosophers in the open source community made it sound like a slam dunk. But they were rebuked by every court. It was only in retrospect that I understood that their public discourse was part of a strategic, if not tactical, legal and intellectual offensive. They are trained as lawyers, afterall. Lawyers make it habit to argue their points with commitment, and they're careful not to offer counter-arguments, or to otherwise qualify their message, except as required in their briefings to the court. I have no doubt they sincerely believed that the law _should_ be as they claimed; but undoubtedly they did or would have heavily qualified their claims to their actual clients.

A charitable interpretation of the EFF's point about Trump's history regarding defamation suits is that the history characterizes Trump's tolerance of criticism and his commitment to free speech more generally; and that it's suggestive of his policy preferences regarding other free speech issues that he can actually substantively influence. Thus the implication that his nuisance-suit history is consistent with his dismissive and antagonistic attitude toward the White House press corps.

The less charitable viewpoint is that the EFF is fear mongering. People unfamiliar with the law easily read that article as implying Trump could change libel law, or that he could abuse it as easily as he has previously.

I think both interpretations are likely. The article is carefully worded to be consonant with the law as widely understood, while allowing lay readers to draw conclusions which, helpfully, add to their sense of urgency and anxiety about Trump's administration and their willingness to support the EFF.
AWS Introduces New AI Services
Even if one couldn't tell the leaves apart, the bark of the trees is completely different. One is smooth, the other reddish. And of course there's no way you would mistake the brown-green husk of the walnut for manchineel fruit - they are smaller in size, the husk is often cracked near maturity.

Not that we don't have issues with walnuts, either..
Ruby and Rails books you can't afford to miss
I've been idly thinking about starting a list of 'cargo cult development ideas' - more specifically things that make sense or made sense in a specific domain but got passed around and became detached from their original intent.

There's a related idea that interests me - ideas that were useful mainly for killing something else. These two things overlap somewhat.

1. "Don't use tables for layout" - helped kill the most horrific era of web-design which was largely based on slicing large photoshop images into parts and reconstructing them in html tables. Responsive design would never have been possible if this practice hadn't have been vanquished. The actual arguments for not using tables for layout were much more nuanced and in some places - just wrong. In particular the arguments based on tags having semantic value were laughable when you consider that in most cases we just replaced table/tr/td with div/div/div.

2. REST. Most APIs are still only an approximation of 'true' REST - or just kind of cheating and sticking in some RPC-style endpoints when the going gets tough. The promise of machine to machine API usage without developer intervention is yet to be realised. However - REST stopped SOAP from taking over the world and for that we must be eternally thankful.

3. "Separate content and presentation (HTML/CSS)". Similar to (1) - this was based around a core truth about separation of concerns and maintainability. However it became a mantra rather than just one specific way you could attempt to reduce coupling and create less brittle markup. But it was easy to explain and easy to argue for and it stopped a lot of bad practices.

I had a few more but I can't recall them right now. Maybe the message is "simple to explain but partially inaccurate ideas are easier to transmit than nuanced and complex ones"
The top 15 economies in the world are 75% of the world economy. Most are in the West. The growth of the other 25% is not going to help much if these 15 combined do not grow more than the efficiency gains from automation.
> Dash buttons are turned off most of the time to preserve the battery inside. They only turn on when you push them. And that means they have to re-connect to your Wifi network every time they are pushed. That’s easy to detect.

How do they know for sure? Perhaps they also connect every month for a (status) update or for statistics, but this hacker just missed that.

I wouldn't use these buttons to launch any missiles :)
Freer Monads, More Extensible Effects (2015) [pdf]