skysight-inc/HackerNews huggingface dataset:
Glad to see a mention of Cambridge Analytica here. More interesting angles re: tested dark post campaigns: KONY 2012, Jade Helm, and the Columbia Chemical "leak". For KONY 2012, there are allegations that OpenOrd was used to maximize the total reach of the campaign [1].

1: http://www.forbes.com/sites/anthonykosner/2012/04/05/suspici...
Testing an Untested App
While this article is a nice read, and provides what may be useful tips, "guide to deploy" feels misleading. I thought it was going to be a guide on deploying ML to production.
Trains in the Netherlands Now Run Completely on Wind Energy
Still, I have a strange feeling that our whole technological edifice is standing on the head of a pin. When the folks pass who know this stuff, and something breaks, it'll be a while before things get running again. Hopefully before the food riots.
Home Assistant has a staggeringly large base of contributors. I think that's in part because there are a ton of individual use cases that spark a contribution, but I think it also speaks to how well Paulus handles contributions.
Hmm what they actually seem to be doing here is using the blockchain technology, not a bitcoin like currency.
It depends a little bit on the age of the children. One important thing to consider is that the sooner they can see visuals that are produced by their code, the more they will be able to understand the cause/effect of programming. I've taught groups of middle schoolers to code with Processing and they've far exceeded my expectations. Daniel Shiffman's resources (http://natureofcode.com/ and his YouTube series) are great.

You can also get things up and running really quickly with LOVE2d and Lua. love2d.org
I still use CR without LF all the time. If I'm writing something that features a long loop, I might want status updates, so printf("%d \r", percentage); helps tremendously. You'll need to fflush(stdout) too, since usually flush is triggered by "\n".

On the other hand, there are far fewer use cases for LF without CR, certainly nothing that isn't better done using ANSI codes.
What is Flexbox?
I used to help teach kids (12-16ish) how to code.

One thing that we always did towards the beginning of a class was an exercise where we tell them to write down the steps to make a peanut butter and jelly sandwich. Then we'd literally get bread, peanut butter, and jelly, and follow their instructions to the letter. No one ever adequately describes the process: "put peanut butter on bread" - With what? the jar is closed, I can't! etc.

You might argue this introduces too imperative a thought process - but it gets the "computers do exactly what you tell them to" idea across very well.
> it'll result in less developers doing dumb things which break on minor updates.

You can never stop the Facebook developers doing dumb things on Android.

Google have tried for years, but Facebook always manages to find new ways to fuck up.
> fruit and vegetables are bad for you

Fruit is very easy to eat to excess, especially when you labor under the delusion that it couldn't be bad for you, as you seem to be doing. The problem is that it has a ton of sugar in it. You can gain weight and raise your blood sugar to unhealthy levels pretty quick just eating extra fruit.
> If they're still useful to know, how can I learn about them today?

By reading the article instead of lamenting lamentations ;)
Watch the hoax hotel. It is one of the best channels for trolling scammers
There's no shortage of pain pills. GoodRX is a pharmacy benefit manager that doesn't collect any payments from users, it runs on marketing fees, so it gives some information about the real cost of drugs. Several weeks of Oxycodone costs $20 at the pharmacy:

https://www.goodrx.com/roxicodone
How s this different from press conferences except skipping the part of having the prsss write about what you said and waiting a day before the public can read your words?
Macedonia is still around, that's a literal phrase. I don't know how you would tell from WHOIS, but apparently a lot of people in Macedonia are responsible for the most egregious fake news sites: http://www.bbc.com/news/magazine-38168281
Slick-repositories: Slick based type-safe CRUD repositories for Scala
CS Unplugged (http://csunplugged.org/) has some good resources for teaching CS concepts without needing a computer. I'm not sure how easy they would be to do at a distance, but you might find some aspects that would work well.

Bootstrap World (http://www.bootstrapworld.org/) is a curriculum for teaching CS and Algebra while making a simple graphical video game using Racket (similar to Scheme). You can do the exercises using Dr. Racket IDE or by using a web-based IDE (http://www.wescheme.org/).

You also might take a look at Picturing Programs (http://picturingprograms.com/) and How to Design Programs (http://www.htdp.org/). Both of those may be more advanced than what you would want to start with, but they are both focused on teaching computer science concepts more than the particular language and both are aimed at beginners without any background with code.
Algorave: The live coding movement that makes next-level electronic music
I don't think we should really be looking at drive MTBF, but rather some measure of total expected loss. The bigger your drive, the more catastrophic the loss in the event of a failure, so even if the MTBF of a 2x capacity drive is only slightly higher, your total risk is more than 2x as high.
Yes, definitely. Most LTE modems are derived from 3G modems, and support 3G and 2G as fallback. That is not great for security, because 2G encryption is weak and broken.
Getting from zero to fun as fast as possible is key. Open up the DOM tools, show them a couple things, and step back. Be attentive to questions, encourage students to share their discoveries. Show them the console and how to show a prompt, alert, console.log, and set variables. Make a simple script and email it to them to paste into their console to do something fun, like add a CSS spin animation to images. The ones most interested will explore why it works and their curiosity will be the engine of their own learning.
Date: 1998
I spent 30 minutes looking at NIF, but I was scared away. My understanding is that if the NIF crashes then BEAM crashes. Which leads me to think that if you need NIF then you need safety guarantees on the Native side that C can't provide.
Maybe you like being in a frat-like sausagefest. I don't.
CSS Custom Properties: The basics
Just something that came to mind reading this great comment, have you considered using webcam + canvas manipulation for that great block of fun Javascript? I've been doing Javascript30 (https://javascript30.com/), and day 19 (unreal webcam fun) he showed doing live image filters with simple pixel manipulation on a canvas populated by the user's webcam - it was awesome, I think kids would love it, and it lends itself really nicely to your model of a pile of variables to play with and break. That course is free (no affiliation but it's awesome!) and all the code is on Github, the webcam one is here: https://github.com/wesbos/JavaScript30/tree/master/19%20-%20...
can you go pure backend? https://robots.thoughtbot.com/how-we-replaced-react-with-pho...
That was my experience of variability for a family member treated within a particular high volume academic hospital and designated cancer center.

But my point is in response to the original parent comment. If you give treatment Y at one top hospital and your control group is everyone getting treatment X at all the other top hospitals, you still have basically anecdotal data.

If I'm very sick and the standard treatments aren't working, would I want to try a protocol that was anecdotally very successful in some clinic? Absolutely. Just because it's not scientifically proven to work doesn't mean it doesn't work.
and yes, obviously when they grasp the concepts, we move on to do robotics, lego, 3D printing, painting robots and so on, but getting the basics is the first step, then it's just like a waterfall. :-)
Still waiting for those dream clients? I’ll reveal a secret
Related, Python has universal newlines support:

https://www.google.com/search?q=python+universal+newlines+mo...

Edit: added the PEP (it's from 2002) and excerpt from it:

https://www.python.org/dev/peps/pep-0278/

This PEP discusses a way in which Python can support I/O on files which have a newline format that is not the native format on the platform, so that Python on each platform can read and import files with CR (Macintosh), LF (Unix) or CR LF (Windows) line endings.
Hydrogen turned into metal in stunning alchemy act, could revolutionise tech
And I'm a consultant, give a silo of work to do and needing only occasional updates (couple times a week).
http://stateofjs.com/2016/frontend/
Ask HN: Resources for a back end developer learning web design
As a backend developer, I am really curious about gaining a deep understanding of front end UI/UX. Could anyone point to resources where I can learn more about web design, ui, ux, etc.
Not mature yet.

- You actually need a workaround to listen to an address in node - os.networkInterfaces() returns an error: http://stackoverflow.com/questions/37497914/node-http-server...

- You cannot run Docker (you can run it on Windows and use the docker client from the subsystem though)

- You cannot use Tensorflow with a GPU (many people keep their Windows install to use the GPU drivers)

- You need workarounds to use MongoDB: http://stackoverflow.com/questions/38798593/windows-10-linux...

- There are a lot of issues: https://github.com/Microsoft/BashOnWindows/issues

If you're really using your machine for work, you want a stable system, not a non-reproducible mess of workarounds.
JavaScript: The (Un)covered Parts (2017) [pdf]
operant conditioning
They always talk big about democracy and freedom of speech but we all know that it isn't quite like that in practice. (see: hate speech)

Then again I can legally drink a beer in any public park in most EU countries.

Personally I prefer this freedom than being able to legally spout racist, inciting garbage or to deny the holocoust.
Arduino got so popular because it does everything the Atmel STK does at a fraction of the price.
https://www.reaktor.com/blog/code-school-for-children-and-he...
Snippet from the abstract:

> We scrutinize the (un)covered parts of the code under test to find out root causes for the uncovered code. Our results show that JavaScript tests lack proper coverage for event-dependent callbacks (36%), asynchronous callbacks (53%), and DOM-related code (63%).
When will prices of SSD catch up to rotational disks?
Yeah, no, I read it :)

Some of that stuff piques my interest, but then it can be difficult to get started understanding it relative to other stuff that's more widely covered on the web. I guess I am just a little pampered when it's comparatively much easier to learn about a web framework. But that's probably part of the old school hacker ethos as well.
I started programming BASIC and assembly at 10 years old on a Vic-20, so I don't qualify as a wizened Unix graybeard, but I've still had plenty of cause to look up the ASCII codes, and I've never seen the chart laid out that way. Brilliant.
If they are less than 10yrs, look into Alice: http://www.alice.org/index.php. Teaches fundamental building blocks while they play with scene creation. Have used it for several classes and each one was outstanding.

My favorite for older kids is to find an open-source video game with easily modifiable parameters, like lives, enemy count, sizes, etc., Start by asking them to change various things - class nearly runs on auto-pilot before too long.
Yeah, they were talking about this on Freakonomics yesterday - a lot of those people working steel or textiles wound up in low paying retail or service sector jobs.

Some of those jobs might come back. Maybe not as numerous due to automation and stuff, but it might be something at least.

Hmm, maybe I should switch to microcontroller programming...
10 Notorious Coporate Cyber Attacks
> start aggressively building European-based competitors to US tech companies that actually respect user privacy

Won't happen when all of Europe keeps raising taxes and the US lowers theirs.

Most creators like to keep their rewards and distribute it at their discretion, not have over half of it stolen from them by force.
tell them, they are not allowed to code!
People always had to grow vegetables in their dachas to survive up until the collapse of soviet union. In the beginning(1944+ for Estonia) authorities snatched everything you grew and shipped it to russia and murdered anyone who tried to oppose and some who didn't, just in case.
No wonder Moscow lived prosperously:)
I remember very vividly the empty shelves in shops as long as I can remember and my memories span few years before Gorbatchev came to power.

The referendum results are interesting. Estonian independence referendum results division matches closely the ratio of natives and civilian population of that the occupying power(USSR) transferred into the occupied territory.
Same with the voluntary referendums organised by pro-Soviet front-organisations. The count of voters is close to illegal occupant's population.
We were lucky. After breaking free we did not suffer such harsh conditions as you have mentioned(Gang leaders elected as mayors and governors who murdered anyone who dared to oppose them.)
Economy boosted and living conditions improved drastically every year.

We can safely establish that part of the soviet union wanted to stay together and part of it did not. And the results varied drastically country-by-country - nation-by-nation.
You forgot to mention that the commission can also bypass the parliament to get laws approved, in the emergency procedure the commission and the council approve legislation.
Perl has built-in support for these characters, sort-of, for use when reading in text files. Several of Perl's operators pay attention to certain global variables, like $INPUT_RECORD_SEPARATOR.

while (my $item = <>) {
...
}

By default this will read lines from STDIN, but if you set $INPUT_RECORD_SEPARATOR to the RS character, it'll read a whole record at a time. You can also set $LIST_SEPARATOR to the FS character, which you can use with the split function to divide your record into fields, and the join function will use it automatically to turn your list of fields back into a record.

I used these characters and Perl features in the early 2000s for managing a data processing workflow. The data was well-suited to being processed as a stream of text, and by using these separator characters I was able to avoid the overhead of quoting and escaping which made the processing MUCH more efficient.
Wow HDD's really are the new tape drives
Well, in total its 1.1 million people and since we have free movement in Schengen, it affects everyone. 1.1 is definitely mass immigration and in the end, it's for the people of EU countries decide what they want. It doesn't matter what you or anyone else calls it. It's very obvious people don't want it, and they didn't elect the people who are making these decisions for them.

Sweden alone has gotten 100,000 applications.
I did have other things to do... (I'm the author.) Also, I fumbled on the VM setup with VirtualBox—should have just used my vSphere Windows 10 instance, but it was already set up for sandboxing malware.
Well it's the #1 platform, not sure how you can avoid using it. And I don't see why it would be such "abomination". Linux is still very clean imo
Only if you don't have backups. If you do have backups, the cost of loss is proportional to your I/O rate for time spent in recovery.
Ask HN: Where do you get your news from?
What is your favorite source of news?
I find myself experiencing similar frustrations from the other side.

I'm an American and I find it troublesome and tiresome when people want to adopt the EU's way of doing things, just because that's how it's done over there.

I like that things are done differently in different places. It gives all of us a chance to see what things work and what things don't. The EU's privacy protections are something that I happen to think work much better than ours.

I'd love to see a "Silicon Valley of Europe" emerge as a competitor. We could see how things play out under the different ways of doing things.
Demystifying Word2Vec
Diamond vise turns hydrogen into a metal, potentially ending 80-year quest
Why did the end-of-line indicator settle on LF and opposed to CRLF? Naively, the latter makes more sense to me by virtue of it being more explicit. Do Unix-alikes always inject a CR after a LF?
If you are going with the abstract and translate approach, wouldn't the right way be to abstract to RS?
> Well, a zygote is a developing human being while a placenta is clearly not.

In that case, pro-lifers should have no issues with a pregnant woman asking her doctor to remove her placenta - as long as they don't touch the zygote.
I used to volenteer run a local branch of CodeClub in the UK - a supranational charity that produce their own courses based around Scratch, HTML / Javascript and Python.

It was my first time doing anything like that and found that CodeClub were really supportive and had a heap of resources for us to use.

Worth a look: https://www.codeclubworld.org
A researcher acting on the hypothesis that the perception is first manifest at age ten would be likely to look at different potential causes than a researcher acting upon the hypothesis that the perception is first manifest at age six. So what this looks like to me is the stage of the scientific method where one might find a basis for forming an hypothesis for further research regarding causality...i.e. it identifies an effect in the world to which a causal chain may be applied.
Interesting, but I just listened to Econtalk podcast[1] where the guest, author of the book Dreamland about opioid epidemic[2], claims that all this epidemy only started at first place because researchers at the time claimed that opioid based pain relief medicine was disassociated from addiction (and pharma companies gladly played along).

Except it wasnt.

Very worthy your time listening to this guy if you are interested in the topic.

[1] http://www.econtalk.org/archives/2017/01/sam_quinones_on.htm...

[2] https://www.amazon.com/Dreamland-True-Americas-Opiate-Epidem...
Is there any particular reason you wouldn't use a service that provides this? Aren't you already vendor-locked to your payment provider, or is that not as tightly integrated?

What if the service did on-premise/self-hosting?
Well for tens of thousands of years people lived in close-knit communities where they could communicate with all their friends every day by talking to them. To recover that while being able to live in a city and choose our friends and gain all the advantages that come with that, we need other means of communication.

My phone's in for repair at the moment, so I'm very conscious of how much difference it makes to my life. Waiting is a lot more boring without it. I've had some good times that I wouldn't have been able to without modern communications (last-minute parties that I'd've missed if I hadn't been so easy to contact). And fundamentally I like talking to my friends (interestingly this is something that has changed as I've got older - when I was 20 or so I was much more content spending days at a time on my own).

I would certainly advise pruning any communication sources that don't bring you joy, KonMari-style. But don't throw the baby out with the bathwater.
Great question! I'm a fan of the Mozilla Thimble project - "An online code editor for learners & educators" - https://thimble.mozilla.org

Easy to use code editor with live preview, fun starter projects to remix, easy to follow tutorials.
Apple will move its entire international iTunes business to Ireland
If you look at each byte as being 2 bits of 'group' and 5 bits of 'character';

00 11011 is Escape
10 11011 is [

So when we do ctrl+[ for escape (eg, in old ansi 'escape sequences', or in more recent discussions about the vim escape key on the 'touchbar' macbooks) - you're asking for the character 11011 ([) out of the control (00) set.

Any time you see \n represented as ^M, it's the same thing - 01101 (M) in the control (00) set is Carriage Return.

Likewise, when you realise that the relationship between upper-case and lower-case is just the same character from sets 10 & 11, it becomes obvious that you can, eg, translate upper case to lower case by just doing a bitwise or against 64 (0100000).

And 40h & 60h .. having a nice round number for the offset mostly just means you can 'read' ascii from binary by only paying attention to the last 5 bits. A is 1 (00001), Z is 26 (11010), leaving us something we can more comfortably manipulate in our heads.

I won't claim any of this is useful. But in the context of understanding why the ascii table looks the way it does, I do find four sets of 32 makes it much simpler in my head. I find it much easier to remember that A=65 (41h) and a=97 (61h) when I'm simply visualizing that A is the 1st character of the uppercase(40h) or lowercase(60h) set.
If you don't care about precision (and depending on what your pipes are made out of), you could make a DIY version of that sensor (that you could wrap around the pipe, rather than having to cut it to put it inline).

https://www.youtube.com/watch?v=TR0baWuB6v4
I think the person's point was that you sacrifice performance - having the ability to mutate is only a good thing there, as immutability without being able to exit out of that is too inflexible and potentially could cause other hacks to appear when trying to solve that problem.

FP with a focus on immutability is good for the default, but ignoring its limitations is bad.
7 Rules for Providing Exceptional Customer Service
#CalExit can now start collecting signatures to get CA secession on the ballot
Don't be shy: if it is so bold, why not explain why?

Feel free to present non-religious arguments that contradict the claim.
I too try to ruin this business model by keeping them on the phone and wasting as much of their time as possible. One time I may or may not have been able to convince one of them to download a remote toolkit under the guise of sending him my 'banking and computer folder' to sort out the issue so I didn't 'go to jail'. I then may or may not have had fun bouncing around their network, opening CD drives, playing sounds, really brought me back to 8th grade hacking. I also may or may not have nuked their computers on my way out.
RNN Poetry: Birds into trees
Ok, let's assume that your hypothesis is:

> the "greatest generation" is gone

What are the effects of this for the future in your opinion?
And I'm asking it with a background focus on trying to understand what might be the possible development for the IT.

edit: formatting
Thanks, nice to hear that!

Basically a NIF blocks the scheduler, so if you run a tight loop for a long time, there will be no preemption. Therefore, invoking foo(), where a foo is a NIF which runs for say 10 seconds, means a single process will get 10 seconds of uninterrupted scheduler time, which is way more than other processes not calling that NIF.

There are ways of addressing that (called dirty schedulers), but the thing is that you need to be aware of the issue in the first place.

If due to some bug a NIF implementation ends up in an infinite loop, then the scheduler will be blocked forever, and the only way to fix it is to restart the whole system. That is btw. a property of all cooperative schedulers, so it can happen in Go as well.

In contrast, if you're not using NIFs, I can't think of any Erlang/Elixir program that will block the scheduler forever, and assuming I'm right, that problem is completely off the table.
I don't think this works. With more drives, you expect more drives to die in the same time period, so total expected loss stays exactly constant.
Hence the suggestion of RAID elsewhere in this thread, which means you might as well get more smaller drives in an array since the $/TB seems not to be dropping on these bigger drives.
Without an incentive like Bitcoin, blockchain is not going to work. Might as well just use a regular SQL db.