skysight-inc/HackerNews huggingface dataset:
I think the health one is just Apple being conservative when it comes to health data. I'm sure it's on purpose that they don't let the Health app talk to Siri directly.

However, it would be nice if you could tell Siri to play an episode of a show on a specific TV, but I think they would want you to have an Apple TV for every TV in your home, not just one to control all of the TVs.
The "script" gets deployed simply and reliably using your existing tooling, and stays in sync with the surrounding code.
Back when Path64 was highly funded, it was a nasty treadmill keeping up with g++'s ABI -- it changes every point release.
There is a large span between "knows SQL" as in "can write and read basic SQL query" and "really knows SQL". And I bet there are tons of developers who never have had the need to touch SQL or even any RDBMS at all. It's an essential skill in parts of the industry, it has no practical relevance in others.
Having never tried OCaml, what advantages does it have over other languages? Two languages I don't know seem more interesting, Clojure and Rust. Generally I work in Swift these days.
The voter ID law in Wisconsin disqualified 9% of its registered voters. The right to vote is protected by 5 constitutional amendments and isn't conditional upon obtaining a state-issued photo ID. Requiring a photo ID is akin to a poll tax (24th amendment). There's no evidence that photo IDs make elections more secure, since voter-impersonation fraud is practically non-existent [0].

[0] http://www.latimes.com/business/hiltzik/la-fi-mh-why-voter-i...
Ask HN: How open source project helped you to get Job?
Hi HNers

Have working on open source helped you to get job? I am trying to get motivation to work on open source projects but due to 40 hours( or more you know software companies) job I do not get time to work on anything after my Job.
Can you please tell your story about open source project and how it helped you in your carrer? Please include project link.

Thanks
503 error, anyone have working link?
~~Free Real Estate Investment Calculator~~
Tutorial Notes on Partial Evaluation
https://en.wikipedia.org/wiki/Passenger_name_record
I'm not sure I agree. Maybe for some software, but I wouldn't even think about using a programming language without at least one quality open-source implementation, and I think many developers would agree.
Can confirm that 4:3 is the best ratio for portrait.

I'm using one of those old SyncMaster monitors from Samsung for displaying Code.

Make sure your IDE can hide unnecessary parts of it, like directory view or something, otherwise it gets a bit crunched.
I wish they wouldn't spy on me.
Finally somebody writing a realistic post about the USB-C port situation! So much short sighted whining when this really is a great step forward.
I also want to call to attention Derek Sievers book notes which are on a similar vein : https://sivers.org/book
Yes. I also use Amazon Cloud Drive for my external backups. So if they ban me from the store, they would also ban me from accessing my backups.
No causality. Can anyone think of another reason why blacks turned out more for Barack?
https://www.youtube.com/watch?v=3KiPnTo0e48
Personally, I've been waiting a couple
of years for Apple to drop the USB-C bomb.

https://news.ycombinator.com/item?id=9360128

https://news.ycombinator.com/item?id=9490224

The new USB-C iMacs ship in the spring. I'm not sure why PC's haven't started the transition. USB-C is a no-brainer.
> That's exactly what we did. We return an anonymous table of records in Postgres that are then passed to ruby to render an excel file. The SQL query takes 27s on average. The ruby view generation is fast as well but I haven't profiled that part of the report.

What's an "anonymous table of records"? Do you mean it's just a result set (i.e. query)?
I Can Teach You Ruby in 6 Months or Less
I don't want to ruine your dream, but in order to make 200k/year, you have to give away 80k/year.

People only see the bright side...
I'm currently working on a new streaming system for a big data real-time-ish application (which is why we can't use existing libraries). We've come up with a design that is very similar to that described in the paper, as I understand it on a quick skim, but we don't use MSP and hence can't perform deforestation. We did actually consider using LMS but decided we weren't justified in doing so without getting some benchmarks first. I think we'll hit our targets without going down the staging route, but it's good to have prior work to build on if we need to!

Linear algebra is the other obvious-to-me application of this. Linear algebra libraries typically either create a lot of unnecessary intermediate arrays or provide ugly imperative APIs (hi BLAS!) and force that busy work onto the programmer. Deforestation is an excellent way to regain performance while still maintaining ease of use. Applications include deep learning, and this is broadly the approach taken by TensorFlow and other libraries.
I made an iPhone game with PhoneGap and won't do it again
The smaller battery is disappointing. Yep, the CPU uses less power but that only counts if your MBP is more or less idle. In the end, footprint matters and not thickness … Apple abandoned too much battery capacity IMHO.
Don't the figures depend on the latitude? (Northern Hemispher will see a larger increase or sth lke that)
I agree. Even something like a "note to self" command requires internet for Google Now.
OSXDaily has an article about it too. seems they've been getting a bunch. almost all of them 'ray ban' and 'oakley' and random chinese characters.

http://osxdaily.com/2016/11/26/icloud-calendar-spam-invite-s...

spam email is annoying enough. but something like this? ugh.
Yes, I've been hearing about the battery life from several people now. I was very excited to get one but I tried it at the store and really didn't like the keyboard. If, in the future apple just decides to do the whole keyboard as a screen, then I guess I'll just have to always use an external keyboard.
You can't optimize for all three judged outputs (production cost, power usage, lines of code) at once. For this reason, you can replay every level three times with a different optimization goal.

Some of the optimization techniques I found before life took my interest away from the game (we[0] are building a real embedded system of significant complexity, and actually visited Shenzhen a few months ago) were judicious use of leading @SLP (usually as a final optimization), use of memory (acquired later in the game) instead of processing inputs, careful investigation of the limited use of conditionals to split codepaths, and basic addition using shared buses.

[0] http://8-food.com/
A curated list of Game Boy Development resources, docs, tools and ROMs
Is the keyboard like the one on the Macbook? I tried it once in an Apple Store and didn't like it either. It feels weird to not really press the keys.
> The new charging block that comes with the MBP looks exactly the same as any traditional MBP charger

Actually not, the convenient little 'arms' for the cord are missing. And the cord itself is rather stiff and not very flexible … and there's no green / red charging status light either. It's OK as a USB-C charger but it looks and feels different from a traditional MBP charger.
What did you get banned for? I've been ordering a bunch of $1 things from Ebay the last few months and they all came through without trouble (from China with free shipping).
Design is often a victim of mutually excluding constraints, i'm not so sure it's easier to achieve perfection. In fact, I'm pretty sure it isn't.
Ask HN: What will be the next big social network?
We had friendster, myspace, facebook/instagram, twitter, snapchat. How do you see the future of social networks?
What new rule(s) are coming into effect in 2017?
It also depends on how you approach the notes.

I for example make notes of the notes and then re-visit them frequently over the next few days. This helps me visualize and concretize the ideas in different ways since I'm revising them at different times. In the interim I'm trying to incorporate them in everyday life.
You can't be serious in thinking PCs haven't started offering USB-C ports. Go to MicroCenter or Fry's and try to find a motherboard for a current-gen proc without USB-C.
Have you ever talked to a mechanic about this? I suspect that you would learn some things.

Local marketing is not easy. Putting together capital for real estate, buildout, equipment, etc is not easy.

Hubris is saying that something most people fail at is so easy to execute that a grandma could do it. Not to mention comments like that are both sexist and ageist.
TL; DR: "USB-C all the things" is great... if you use android phones.

Author conveniently avoids mentioning that the charger is another usability step back (no more plastic hooks to keep cable tidy), or that those external USB-C batteries are not really powerful enough to give you anything but a handful of extra minutes, or that, er, Apple's own phone doesn't get any of these wonderful improvements. and of course...

> You can buy tiny little USB-C adapters

It's well-known that the current quality of USB-C cables and adapters is very random, to say the least, up to and including serious electrical damage.

Interoperability is good, but it looks like Apple just introduced a new series of trade-offs that are sub-optimal. Regardless, to say that a laptop is great "for hackers" because it has USB (A,B,C, whatever) ports is just silly. I mean, you can't even change your hard drive here.
Yea. It returns a table of rows, where the return columns are defined in the stored procedure. I may have used the wrong nomenclature. I was trying to differentiate between a table in a database schema versus one defined in a function.
I'm ready for Microsoft to start using USB-C for their Surface lineup.
Exotic protocols being somewhat succeptible to exploits is nothing new (Chrome, Firefox, and Safari have had these in the past as well) and they generally get fixed pretty quickly.

However, the fact that the "read:" protocol is a thing -- and the fact that it works the way it works -- is absolutely insane. Who in their right mind would think that's a good idea? Forget sandboxing, who's bright idea was it to let a web browser access local files willy-nilly? Mind-boggling.

The first thing I'd say if someone came to me with that idea is (a) no way and (b) if you really want to do it, you need a security mechanism like 300x stronger than CORS and probably a popup that lets the user know what's going on.
I was thinking the same thing in regard to interfacing with the Health app. Wouldn't a simple Siri for Health opt-in fix this?

I've got a bad case of Apple lock in – Apple TV, iPhone, iPad, MacBooks. Saying, to my phone, "Play The Walking Dead on the TV" brings up TWD in the TV app (iOS 10.2, I haven't been paying attention, this is possibly beta track) which prompts me to start watching it... but it then plays on the phone. I can cast it to the TV, but I can't hand it off to the TV.

Maybe that's precisely how most people would expect and want it to work, but it seems unintuitive to me.
There is compelling evidence from serious sources that Russia spreads propaganda and misinformation, but that doesn't let PropOrNot off the hook, nor WaPo for giving them a platform.

It's a sleazy, amateurish operation. Look how they accuse sites critical of regime change in Syria as supporters of Assad (https://twitter.com/propornot/status/802095838965022720). "McCarthyite" may be hyperbolic, but smearing leftists or those critical of war and imperialism as loyal to our "enemies" is very much in the tradition of McCarthyism. It's ugly stuff, and it's depressing to see start to become mainstream again.
Interesting - I don't think I ever bought a book that I didn't read later. Did you receive them as a gift? Genuinly curious.
Design solutions for fake news
The keyboard feels like a plastic tube – including about the same noise. I'm glad that my student days are over and I don't use my MBP in the library anymore!
Not LA though!
I'm not a database guy, but I have to ask: you're talking about 4000 records, which is essentially nothing.

Why not just load all the data from SQL into a DataFrame in Python or R and do the processing there? I've written some pretty big R DataFrame crunching scripts, including very wide-window moving averages operating on tens of billions of records, that run in less than five minutes on my laptop.

Hell, I have a web app built with Flask+Pandas, running on a single t2.small instance, that does complex queries into a 6000 records big chemistry data set based on user input of selectors. It can serve thousands of simultaneous users without noticeable slowdown.

What am I missing here?
Trust me, you need this "How to read a book", on Amazon: http://amzn.to/2gxEsbQ
> there's no green / red charging status light either.

That really sucks.
In the next 5-20 years, I think "programming and IOT without screens" will allow pretty much anyone to do a lot of useful stuff on the computer without actually being present at one, or knowing the exact technical syntax for how to do it.

"Please analyze the traffic from Y and let me know if there's any anomalous traffic regarding ISIS" --anyone

"Please start a server on local port 8080 from my computer and serve all of my birthday pictures from when I was 10 until 20, and then download the files from my phone and save it into a new album called 'Birthday Teens'" --anyone who knows what a server is

"Please transfer the files from my computer in directory X to my phone in a new album with the same name as X" --anyone

"Please send a request to bing for the first 50 pages of cat images, and save the files into Y directory, then open the first image" --anyone

"Please Open up Steam and start up Skyrim" --anyone

"After that, send a message to Henry and ask him if we wants to play again" --anyone

"Please get me a list of all of the processes about mongo" --anyone who knows what a computer is

"Please close the windows or tabs on reddit" --anyone

"Please open up my school portal email" --anyone

Thinking things into existence. That gap is still pretty big. It's easy to think of ideas, but putting them into action is hard. That gap is going to get smaller. At some point, pretty much everyone will be a commander of AI, which will be like a team of programmers working for them. When that happens, we have a reason to be scared.
How is it fucking possible, with human made warming and melting polar ice caps!?!?!
Text and metadata from fake and biased news sources around the web
Same! 20.1" SyncMaster 204B, 1200x1600!
> Evil is most immediately a religious construct.

No dude, "evil" is a social and cultural construct. We are doing this as a species, as in relying on taboos and moral rules, in order to survive. It's why we don't fuck our relatives, kill our children or eat our dead. This inherited culture is how 7 billion of us live on this earth without killing each other. And we need it because frankly many of us are too stupid to be rational all the time.

As for calling "evil" when seeing it, this is basically about communicating to other human beings a danger sign that can be universally understood. Which is in itself an act that can be used for evil, like the US propaganda for entering Irak, but then again we are flawed creatures trying to live our lives.

What I'm trying to say here is that this isn't an argument that you can win. And I'm not even sure that being more rational would be good for us. Because IMO even perfectly rational people can be easily fooled into believing flawed statistics and logical fallacies and I don't even care what Fidel's dream was for Cuba because the end never justifies the means IMO.
Tutorial: Image Classification and Segmentation Using Tensorflow and TF-Slim
Ubuntu Touch port to Fairphone 2 – screen rotation working
Books changed my life, definitely. With books we have access to the brightest minds ideas. It's the best media when you want to go deep in any subject.

I think books and travel are the things that most improve you as a person.
This entire article is raving about a single, relatively small but important detail that Apple has been notoriously hostile towards and worst at up until now: cross-manufacturer port compatibility. So hostile that they went out of their way to find ridiculous loopholes in their compliance with the EU's Common EPS Memorandum of Understanding on USB-B.

Yes, it's a great feature, but giving Apple so much credit for introducing it is the ultimate irony.
"Fake News" is just the newest thing to scream in order to convince yourself that censorship is OK. At least they're not trying to continue beating the "If you don't agree with me then you're racist!" dead horse.

Did you expect liberal elites to just take the election loss lying down? Of course they're going to start trying to discredit the alternative media outlets that lead to their loss. The more people they can drive away from Drudge / Breitbart to CNN / Comedy Central, the more people that can control.
Changing ice distribution is actually discussed in the article...
Real or Photoshop. Test Your Powers of Observation
I am working on a Universal Banking app called NuBank. It was previously called giveapenny at http://www.giveapenny.co.

Right now I am in closed beta working on some on cleaning up the interface and also planning on giveapenny.co business app that will help business bank more easily.
> You can even charge your MBP and phone together from one of those generic portable USB-C backup batteries

That is kind of cool -- but how many batteries is it going to take, in practice, to juice up a MBP from empty?
Drudge Report and Wikileaks are on the PropOrNot list. Do you believe that they're propaganda?
My native language is Swedish, not English. They are both quite closely related though.

I'm really curious to that Swedish sounds like to tonal-language people. It's often described as "sing-songy" by "non-tonal" people from e.g. UK/US.
Most modern motherboards have USB-C, but they treat it as a special case -- you typically get one or two USB-C ports at best, and the rest are type A. (Often, some of those are even USB2.)
It's interesting that you bring up Lin Alg... I do a lot of computational geometry work and I've always rolled my own supporting libraries from essentially nothing because I (likely naively) prefer that level of control vs learning some mega-framework's abstractions of choice.

It sounds like I need to read more about MSP and maybe start using it.
I don't get it. It's bad for hackers because of the tepid software updates, increasingly developer unfriendly application environment, lack of full touch in an age where every other manufacturer does that ad a standard, and awkward meshing with its own ecosystem.

USB-C is pretty great, actually. Still pretty raw for the mainstream tech crowd, but it's not like that for tech-literate consumers.
I do not belong. My values are not valued.

Well, I can understand the feeling, but the industry needs more programmers like the author.
A thinking man's dictionary
So the Chinese have infiltrated the British government in order to spread their climate change hoax? That's dedication.
576 hours -> 12 minutes (2880)

Admittedly the code I was moving away from was hilariously bad. Threaded custom build of PHP bad. Then again I haven't tried to optimise the code I wrote at all

You are absolutely right about fast code becoming a database, this is simply down to the query planner - it can try and do the least possible work for the data you actually have.
Speaking of this i'm looking at hiring someone to do some OSS rust/postgresql work. Namely writing FDW for s3 and bigtable.
This is one of those sites that won't let me command-click to open a new tab. Why do people do that?
brilliant, this is exactly what I was looking for. Thanks so much!
The thin paper wafer around your mail hardly makes it tamperproof. Laws are a good start.
In Paris climate conference we decided not to rise temperature over 2.8 degrees. If global temperature will rise over 5.5 degrees not the melting of ice will be our biggest problem, crops will die, plankton in seas will die (60% of oxygen production). So the real-world effect will be game over.
Replace the stored procedure from version control at deploy time.
A real pity because the intercept might be saying something important buried in the over/under emphasis, hyperbole and unnecessarily agitating tone. But it's hard to tell and harder to take seriously.

I hope they think about tweaking their editorial standards.
this is something i'm curious about too. what's this list you speak of?
Setting up a free(temporary) cloud-based VPN
4000 records with a one-to-many join (the many part capped at 240 records). The aggregations are done mostly on that join table.

In our original ruby process, it would return just that, 240 records per join and aggregate on that. Our SQL process aggregates that in a stored procedure and returns the flat 4000 records.

We really didn't want to introduce another piece of technology to this stack, hence we didn't look at R or Python or Elixir. We did consider storing all of this inside elasticsearch for a hot second but keeping things in sync at the correct times seemed sub optimal and would add a layer of complexity we were all uncomfortable with.
My immediate guess would be that they already knew SQL and had the data in there - and both R and pandas have a tricky initial learning curve if you're not familiar with dataframe style operations (hell, I was a pure math major some years ago and I have to contort my brain to do dataframes whereas I long since got comfortable with SQL).
Note that the network protocol allows pipelining for multiple statements (including transaction control ones), too. Unfortunately only few client libraries (e.g. pgjdbc) make use of that :(
The architecture of ccache maps preprocessed sources to object files; it uses the compiler to preprocess the source, and it hashes the result, knowing that nothing other than the compiler, command line, and preprocessed source determines the output.

Linking involves far more complexity, with the input files harder to determine. There's no equivalent of -E or -fdirectives-only for linking. A ccache for linking would have to identify and hash all library, object file, and linker script inputs, including those pulled in indirectly by linker scripts, in addition to the toolchain, the command line, and any linker plugins.

It's absolutely possible, and I'd love to see someone do so, but it seems significantly harder than caching compilation.

You'd also want to time the result, and figure out how long the reading and hashing takes compared to linking. ccache misses take only slightly longer than a normal compilation; link-cache misses may take much longer than normal.

On top of that, unlike a compilation cache that seems very likely to hit on the 99% of files not changed in a build, a linker cache would only hit when absolutely nothing has changed in the entire build. It might help for a project that links numerous tiny libraries or binaries (which seems relatively uncommon), but for a project that primarily builds a single library or binary, it'd only help if you rebuild entirely identical sources twice.

(It might, however, speed up Linux kernel builds if you've only changed the code for a couple of modules and not anything in the core kernel.)