skysight-inc/HackerNews huggingface dataset:
But that just draws 3 separate plots.

My main problem was the derivative, not so much the plotting (or maybe it was 'plotting an arbitrary function'); but I looked it up and it seems I slightly misremembered what it was I wanted to do. I wanted to draw a cubic spline, not a sine. What I ended up doing was

spline_x <- 1:6
spline_y <- c(0, 0.5, 2, 2, 0.5, 0)
spl_fun <- splinefun(spline_x, spline_y)
p <- ggplot(data.frame(x=spline_x, y=spline_y), aes(x, y))
p <- p + stat_function(fun = spl_fun)
p <- p + stat_function(fun = spl_fun, arg = list(deriv = 2))

I still don't quite understand how that derivative works - ?list doesn't mention anything about 'deriv', and there's a function called 'deriv' but I'm not sure how that's being interpreted in the code above.

Also it seems recent versions of ggplot2 have geom_xspline() which does what I need (I'm told) but that wasn't in the release version when I was doing it.
Will Peter Thiel help? These trolls are actually destroying lives.
Tips to motivate yourself when you don't like your job anymore
If you measure wrong thing then you will get wrong results. Do you want programmers to think about "how many commits this issue is worth"? Just publish your Bitcoin address in readme file.
Though of coure you don't actually do that, you use something like bcrypt that does this for you.
Because something with a cryptographic hash, like sha256, you can do millions (or in some cases billions) of hashes per second on the same GPU.

Password hashes, like bcrypt, PBKDF2 and scrypt, are massively slower. That doesn't mean they're uncrackable, it just means they are expensive to crack, so a strong password in a well implemented password hash will take a long time (and cost a lot of money) to crack, by which time the user has hopefully noticed and had time to change their password.
I'm hoping to make them fashionable again! http://webring.club/ :)
The subtle vibration and the ability to glance at the next instruction are pretty helpful. An ear bud is just going to make the voice louder than on my phone or when connected to my car audio. The point is, I'm usually not waiting to listen the next instruction and usually listening to music instead. Without the watch I usually miss the instruction or part of it then have to take my eyes off the road. Like I said, the feature is subtle but well done imo.

Also 2016 C-Class is probably not a good investment if that's your killer feature ;-)

Seriously though, some of us are frugal and won't spend our money on new cars. Bluetooth connectivity is nice but not really worth the investment in a vehicle if you already own one in good repair. A watch is orders of magnitude cheaper.
"While Google and Amazon have been creating voice assistants that people seem to actually use and wax lyrical about, Apple … hasn’t. There’s no easy solution there."

Until the Apple-Google merger. I for one welcome...
Apple still has to produce a product larger than a TV. Currently they seem very far and very different from Tesla.
Even more than the iPod HiFi?

The Watch has it's problems, and your complaints are legitimate, but it's hardly the weakest product since the puck mouse. Apple is just really good at making us forget about the bad products. Despite WatchOS being 2.0, it's still first-gen hardware, and everyone knows Apple is better on the second revision.
4 of Trump's (economic) ideas that AREN'T nuts
That's a jaw dropping amount.
Yes absolutely this - I was just trying to explain how salts should implemented - in the real world always use something like bcrypt or scrypt that does all this for you.
I already donate to Vue and Laravel via Patreon. Per-commit seems like a return to the line-of-code as a metric that was disastrous for obvious reasons.
Which backdoors on [current] Mac OS X versions are you referring to?
I didn't know about Microsoft Moles. Is it any good?
I currently hate smartphones for this reason too. They rarely let me make a phone call when I really want it. Specially cheaper ones ( I am on third world country ) they tend to outright freeze when you unlock them trying to render those pretty 1080p+ interfaces designed for flagship products, and sometimes take up to five minutes before I can actually dial.

Similarly I am very annoyed by smartv interfaces, I struggle to watch tv on my Bravia and every time my grandparents visit they keep annoying me asking all the time how to reach Brazil most popular free tv channel ( Globo ) and depending on the tv state sometimes I fail to figure it out too.
This is really nice, great hack.
More wage depressing propaganda
>It still sounds strange to me. I mean, how is it that 3rd country rural people cannot not know about chickens?

After a few years of living in places most people would consider third world, I have come to the conclusion that it is not safe to assume that people living in the third world have knowledge of any given topic.

I think knowledge is one of the things that is lacking the most, which is why it's so sad to see the commies in Beijing only allowing Mickey Mouse state newspapers and breaking the internet to perpetually keep people on the plantation.

Michael Jackson, however, has pretty good name recognition just about everywhere.
Not anymore.

It's hard to get specific numbers about a trend that just changed. But the double every 18 months is now clearly wrong.

We've got a couple of approximately 27 months doubling, but that is past too. My bet is that we won't get a fixed number ever again.
Thanks. Really interesting implementation
Yeah thats pretty silly, 100 week break even means a roughly 50% annual ROI for a low skill venture. That's an absolutely killer return in general. And as you say, it's pessimistic. More sensibly it'd be break even in 25 weeks.

Not a bad deal in countries where salaries are low, such that time has a low opportunity cost.
Writing as an Israeli.

There is no inequality inherent in the system. The fact that Palestinian nationals (who are not Israeli citizens) are mostly employed in cheap jobs is no different from Filipinos or Chinese being employed in cheap jobs abroad. Israeli Arabs have the same rights as Jews, in everything from education to employment. They even get preferential acceptance to universities (lower acceptance requirements).

Claiming there is an apartheid in Israel is simply FUD.
In Australia, you can get a "pay tag", basically a sepearate chip attached to your credit account. The back has an adhesive that you can stick to the back of your phone or whatever. This is usually free.
Privateer would be fun transformed into a MMO, but I don't think graphics are much of an issue these days as you can pretty much scale for need.

The issue I see with Elite/Privateer/etc is that its hard to encourage group play which tends to be a near requirement for most MMOs to succeed.

If ships are the primary draw how do you group people up? Surely many would not want to just play a specific role or share a ship and even if they did there would be only so many cool positions to go around.
"Be the first to know when Suunto Spartan Ultra is available!"

So not right now then
I think that autonomous vehicles make flying cars possible. On one hand, learning to fly is difficult (the problem has a dimension more than driving on the surface) and people really do not like wreckage falling from the sky. So one needs a highly trained expert to pilot any flying vehicle, or a fully autonomous autopilot.

The second thing is energy, a plane needs to handle a lot more energy than a car, simply because it flies, so it is more expensive. If someone own a flying car, then they are investing a lot into a capability they use very rarely. With a Uber like model of shared transportation one orders a car only when one needs it. And it makes sense to have a flying car in the pool, even at a hundred times the cost of a regular vehicle. So each individual customer will use that flying car almost never, but there are many, and the ones who pay a $100 to shave five minutes of their time are probably in that moment very happy, that they have that option.
I didn't know I was reading about lifehacker.com
But this is what the human brain is doing. A large complex statistical analysis of video that provided accurate predictions would contain an understanding of physics, just as our brain does. What you are essentially doing with this is creating a new researcher out of thin air, asking him to work out how to understand video and then when he/she/it succeeds not bothering to ask him how it was done. Then tossing the knowledge in his head away because you didn't come up with it.
Trying to parse the title made my head hurt.
It should be "Typosquatting software package names" or something.
They don't say it, but if you watch how they behave that is the reality. The hardest worker won't tay on a pro sports team if they can be replaced by someone more productive, even if that person doesn't work as hard. At the end of the day pro sports, when done by successful organizations is all about production.
On the other hand, the problem with making money from selling upgrades is that it encourages the app maker to bloat their software with useless features to justify the price of the new version.
Show HN: Euro 2016 predictions using Bayesian inference
Bereaved anger over Father's Day Jawbone email advert
App based 2FA seems extremely limiting. I don't want to install their app on my phone.
>I'm still skeptical.

I'm less sure. Not so long ago self-driving cars were considered an impossible feat and DARPA self driving cars kept ramming into fence posts...

>a lot of future work will be what we would call today "managerial" type of work

And what of the 80% of the population that has no experience (ability?) to manage complex systems?

It probably won't be an issue soon, but it seems inevitable that a decent chunk of the population is unemployable.
2 sides of the same coin. But this is great opportunity for FreeBSD and to think I am saying thank you to Microsoft.
4 Marketing Lessons from Frank Underwood
How much tweeting do you do on an average flight?
Germany's Gabriel seeks EU rule to block foreign takeover of key technologies
Basic Income Impossibility Theorem
Then the raccoons and cats would get them and I'd never make my money back.
Until then, I will continue to use the humans(?) in the HN comment section to save time & clicks, like caveman did.
Thanks for the link, but how does this relate to my comment asking comment asking why you can't build your own router with commodity hardware? Isn't the Tommahawk and Jericho intended for ODMs who are building traditional switches?
>> "Phone comes out. Double tap home button. Damn, it just unlocked. Try again. Double tap. Fingerprint. Hold, recognised. Great. Hold my thousand dollar phone up to the reader. Vibrates. Works! Cool."

You're doing it wrong :) You don't need to double tap the home button. Once you're phone is close to the card reader the Wallet will automatically open to your default card (it opens when you're maybe 10-15cm away). By the time your device is next to the reader it's ready to accept your fingerprint. The only time I do the double tap is when I'm using the London Underground so I can pre-authorise the fingerprint and get through the gates a bit quicker. I find it much faster than using my contactless card which requires me to get out my wallet, remove the card from my wallet (as I have multiple contactless cards), hold it to the reader, put it back in the wallet, put the wallet in my pocket. With the phone I pull it out of my pocket with my thumb resting on the reader, hold it to the card reader, and put it back in my pocket.
> I'm not so sure the Linux design where copies are done in syscalls must be inherently less efficient.

Windows overlapped IO can map the user buffer directly to the network hardware, which means that in some situations there will be zero copies on outbound traffic.

> especially the RX copy I also don't think you need more than one copy, if you design the network stack with that in mind.

When the interrupt occurs, the network driver is notified that the DMA hardware has written bytes into memory. On Windows, it can map those pages directly onto the virtual addresses where the user is expecting it. This is zero copies, and just involves updating the page tables.

This works because on Windows, the user space said when data comes in, fill this buffer, but on Linux the user space is still waiting on epoll/kevent/poll/select() -- it has only told the kernel what files it is interested in activity on, and hasn't yet told the kernel where to deposit the next chunk of data. That means the network driver has to copy that data onto some other place, or the DMA hardware will rewrite it on the next interrupt!

If you want to see what this looks like, I note that FreeBSD went to a lot of trouble to implement this trick using the UNIX file API[0]

> On Linux, I think for sockets, there are only: blocking, select, poll, epoll. And the latter three are just different ways to do the same thing.

Linux also supports SIGIO[1], and there are a number of aio[2] implementations for Linux.

epoll is not the same as poll: Copying data in and out of the kernel costs a lot, as can be seen by any comparison of the two, e.g. [3]

Also worth noting: Felix observes[4] SIGIO is as fast as epoll.

> I don't see how one could do it more efficiently

Dereferencing the pointer causes the CPU to stall right after the kernel has transferred control back into user space, while the memory hardware fetches the data at the pointer. This is a silly waste of time and of precious resources, considering the process is going to need the file descriptor and it's user data in order to schedule the IO operation on the file descriptor.

In fact, on Linux I get more than a full percent improvement out of putting the file descriptor there, instead of the pointer, and using a static array of objects aligned for cache sharing.

For more on this subject, you should see "what every programmer should know about memory"[4].

[0]: http://people.freebsd.org/~ken/zero_copy/

[1]: http://davmac.org/davpage/linux/async-io.html#sigio

[2]: http://lse.sourceforge.net/io/aio.html

[3]: http://lse.sourceforge.net/epoll/dph-smp.png

[4]: http://bulk.fefe.de/scalability/

[5]: https://www.akkadia.org/drepper/cpumemory.pdf
I am always a bit surprised by comments that give Microsoft a bad reputation no matter what it does.

The computer science field has always been "ruled" by ideas and philosophies, but in the end a company is a company, and the ultimate goal of a company is to make money.

It isn't weird or evil that Microsoft is trying to make money using whatever mean it can use.

By the way, it's crystal clear that a considerable Microsoft is pivoting to become a cloud provider and in that sense the most obvious thing to do is to provide developers with all of the tools they might need.

Kudos to Microsoft for being able to perform such a direction change.

Plus consider that competition usually means lower prices for customers.. We should be happy that new players are diving into the cloud business.
Well in a world with no human jobs, Universal Basic Income boils down to the fact the wealth of those who own robots will be redistributed to those who don't have them. So why not make it so that everyone has some share of robots?
Ironically, it loads as fast as a 1999 web page on dialup.
Names and Symbols of the Elements with Atomic Numbers 113, 115, 117 and 118
Brent Vatne – Building Li.st for Android with Exponent and React Native
His first paragraph explains why the public policy implications of loser-pays are different for civil law countries: far fewer controversies are handled in the court system, because the executive branch is given much more power.
I think they are getting at the 3 dimensions available and a lot less fixed and unpredictable 'vehicles', including people... Hopefully they'll standardise things, or maybe we'll end up with Apple airspace that users pay to fly in and lower down in the smog some 'open access' space...
And yet we still have odd sections of the population like the Amish who somehow have not died of starvation.

I think people are smarter than most pundits believe, and will either adapt and learn new skills or opt to live simpler lives.
Maybe they need people who do work every day, not just think, talk, or write about doing work.
You are getting a legitimate Android handset that you can root and go about your way like you would with any other carrier.

(As long as that handset is a Nexus 5x, Nexus 6, or Nexus 6P, because those are the only phones that work with Google Fi right now.)
Zidisha (W14 nonprofit) is hiring a remote engineer
I think there is a case to be made that some of these employees could receive more training instead of being told to go look elsewhere.

That said, there is a lot of good stuff in this article. Getting rid of formal vacation policies, not using performance bonuses as a motivator, relying on people to be adults instead of on HR.

Bonus for example: studies show that people are not motivated by performance bonuses. At least for professionals, compensation is a retention issue, not a productivity issue: high performers will be resentful if his buddy at another company is paid more for the same work.
Google Fi is amazing. The free international data roaming is like nothing else I've ever experienced. Land in Japan and my phone just works. No extra charges, it just works.
> Ultimately, work is about solving problems which is a complex and multi-stage process

Err, not really. A very significant amount of work is "grunt work" which we haven't automated because it's too capital intensive or for other reasons - that is, many humans simply take the place of relatively simple robots where it wouldn't be cost-effective to build said robots due to short lifespan of each specific type of job, or other issues.

As robots become more generalized, it becomes more cost-effective to fire the people. The programmers, the analysts, they're not the people anyone's worried about.

In the UK, huge portions of the country still haven't gotten over the effects of Margaret Thatcher moving us from a manufacturing economy to a service one. Doing that on a global scale is only going to hurt even more.
This is great to have as a reference - the GLSL parser looks like a very thorough implementation. Thanks!

We've recently produced a WebGL implementation on top of V8 (passing calls through to OpenGL ES) - we needed it for a specific use case where a bundling a complete browser wouldn't do. We're interested in open sourcing if it's helpful to others - I'm curious to know if anyone else has a use case for an embeddable WebGL implementation? (Ours was to run three.js on the GearVR)
That being a conspiracy would be actually quite comforting, wouldn't it?

Unfortunately, I think the simpler explanation – that humanity fails at being both human and humane – is more probable.
> I bet there is no modeling, everything directly mapped to some core programming primitive.

Yes, I'm sure the game's flying robots are implemented as a simple pointer and nothing else, no additional data to model for a name or any animation or where it comes from or where it goes to or anything like that at all.
I played that version in 1985.
For those who are interested in the details: we model the strength of teams using the well-know Elo model (used e.g., for official chess ratings).

We innovated on two aspects of the traditional Elo model, in which every team has an independent parameter:

1) We actually model the strength of players instead of teams. This makes it possible to learn from games that were played in championships between clubs, and transfer this knowledge to games between countries

2) There is a not-so-widely-known connection between Elo-type comparison models and Gaussian process classification. We leverage this, and get a full posterior distribution for each team's strength. (Information on the uncertainty of our estimates helps a lot in coming up with sensible predictions)

If anyone wants to know more (explanations on the web page are very superficial at the moment), please drop me a line!
How to use IP SLA for network monitoring
Introducing the Datasets Catalog
As a PhD, I think this makes sense. My guess is Paige want's people designing and building the car largely with existing tech. Not spending 10-15 years innovating new ways to fly.

It's a coarse filter, but probably aimed at that effect.
Flight takes less energy than you might think. The real issue is landing in city's. You need virticle takeoff and landing which creates a lot of issues.
Show HN: Instantly turn any API into a native app, with a single JSON markup
Hi guys, I've worked on several apps in the past couple of years, and found that it takes too much effort going from having an idea to building an app and having the world use it.

I wanted a way to have an idea, turn it into a fully functional native app, and share it with the world, all in the next 5 minutes, as quick and as easy as writing a blog post. That's why I built Jason.

Basically Jason lets you build a native interface to display and interact with any data format (csv, rss, html, json), any website, any API in any way you want, simply by writing a JSON markup and loading it. There's no need for compiling, building, deploying, or anything like that. It's like loading a website but instead it's your JSON that turns into a native app. Everything from defining elements to styling to executing actions is described in a single JSON markup.

I really hope Jason can be helpful for anyone who have great ideas or great content but never bothered to build an app because it's too tedious or haven't had resources to do so.

Anyway I hope you guys like it, please let me know what you think, or ask any questions. Thanks!

The url is www.jasonclient.org
I get what they are saying, but the marketing copy on this is all wrong. The benedits/costs are written poorly and still make me think that it may not be a great device.
This is amazing.

Anyone know of any other text-based trading style games? I think there could be a market for this, as even Eve Online is nicknamed "Spreadsheets in Space", and I wonder if there are other games that have embraced that and left out the quasi-dogfighting mechanics.
Craigslist+Scam+News+Update:+Fake+Websites+&+Log+In+Pages+On+The+Rise
The federal government slashed transportation budgets like two months ago which reduced my city's municipal transit budget by $300,000. Routes are being reduced at a time that high housing costs are moving people further out from the city center.

So no, not "never."
Clickable url: http://www.jasonclient.org
Vancouver Mayor Eyes Vacancy Tax
>They are maneuvering desperately to remain relevant among developers, but at the same time they're happy to appear on behalf of Oracle to claim that APIs are copyrightable...

...while reimplementing Apple's proprietary iOS frameworks (https://github.com/Microsoft/WinObjC).
Well, I don't know your age but a lot of us grew up during the 1990s and early 2000s and experienced Microsoft's bully behavior first hand while we were trying to make Linux[1], Free Software and Open Source more popular.

That kind of trust is hard to win back.

It may be childish but I've been enjoying Microsoft's fade into irrelevance the last decade.

[1] Amongst other OSes.
>I also found the ability to skip music with my hands still on the steering wheel to be incredibly helpful

Well presumably you take one hand off the wheel or have a really long tongue?
OK, I think I got my terminology wrong. But my thinking was that as well as using bcrypt or whatever on the info in the database you can add some random value stored in code rather than in the database so if your database is compromised it's still a job for them to crack it. Not quite sure what you call that.
The All-American iPhone