skysight-inc/HackerNews huggingface dataset:
> In this query, we get all the users with the name 'jorge' are queried and then ordered in descending order by age.

> SELECT * FROM users WHERE name = 'jorge' ORDER BY age;

> If we wanted to dig deeper into this query, we might want to know if the "WHERE" is getting executed before the "ORDER BY". Can we tell from the query if this is the case? No, we can't. You'd have to look it up.

No I wouldn't. I can look right at that query and tell you what order those two things occur in. The order makes sense -- of course you don't sort the results before you filter the results, the SQL database is not a moron. In fact, in this weird "explicit" query language, you have to remember the SAME ORDER -- put the WHERE in front of the ORDER BY (or the filter in front of the orderBy, in RethinkQL logic). Except if you forget the order, you can end up creating a query that performs many times worse than it has to. Whereas in SQL, even if you forget the most basic information about the query plan possible, the query planner will choose a pretty good execution strategy for your query.

And if you can't figure out how that simple SQL query is going to be executed by the server just by reading it, why on Earth do you need a query language that does not just allow but requires you to to set your own query plan? The ability to shoot yourself in the foot isn't a feature.
Huon is working on SIMD full time at Mozilla this summer as far as I know. We should see more mature support materialize in the next couple of months for sure.
The whole fight about adblocking won't be solved in the court, but with a technical arms race. In the end startups like this one will probably win, just because there is a real, monetary gain for them. And then visitors of the sites using technology like this will have to choose: Either don't see ads, but also no (or not as much) content or content, but with ads or a payment. In my opinion this will lead to a better "contract" between users and the site, where everyones cards are on the table.
> Remind me never to be a computer.

It's way to late for that, you already are. And people do in fact do this kind of "reverse recognition", both when they dream, and even when they're awake and let their fantasies roam freely for a little.

It's the price you pay for being a pattern recognizer: nightmares, day dreams, and art.
Amazing soccer highlight
You need specific examples? Believing people when they say they are being harassed and have to deal with toxic people isn't enough?
Love writing those! So much effort. Here is a sh/bat polyglot I did a while back https://gist.github.com/alganet/9531262
But you're not in any worse position than those who did it all manually in the first place. In an ideal world the query planner would take care of everything and as the shape of the data changes it could create the appropriate optimal queries.

Doing that manually is just wasteful you'd spend all day tweaking queries that are now running suboptimally because of data changes. It would be pretty upsetting to have to change all your rethink queries to use a new index you didn't put in initially.

I think this article is just making excuses for rethink not having a query planner/optimizer and my guess is that one day they'll end up having to create one. I guess Postgres didn't have one once upon a time either and now it's incredibly sophisticated.
I'm not at all sure if it's practically possible for a single (really clever) person with a high-end CPU/GPU machine (and possibly some $$$ for Cloud Computing instances), to replicate something similar to the results in this blogpost.

It's very possible.

GoogLeNet[1] is an example in Caffe: BVLC GoogLeNet in models/bvlc_googlenet: GoogLeNet trained on ILSVRC 2012, almost exactly as described in Going Deeper with Convolutions by Szegedy et al. in ILSVRC 2014. (Trained by Sergio Guadarrama @sguada)

[1] http://caffe.berkeleyvision.org/model_zoo.html
What prevents someone like linus torvalds from being kicked out for cussing at people? Would linux be where it is today? Those are the type of people I am referring to. Not racist people, for example.

Now I understand that his issues are not the ones that are ultimately the goal of fixing here. But where do you draw the line? And is is the programming languages responsibility to police this?

Where is the CoC for C anyways:) ?
I think this is really cool and am stoked for Marketing for Devs.
Hosts files are a relatively obsolete way of blocking ads — it seems to be only because ad companies insist on serving ads and JS from their own domains. If a content site was sufficiently motivated enough, they'd serve ads exactly as content and include javascript within the content page itself to ensure they load.

Thankfully, I haven't seen anyone go "thermonuclear" on ad blockers yet except for executive-level decisions and lamentations — but as a technological-level problem it's theoretically straightforward to subvert given the rudimentary nature of ad blockers.
I don't know about this startup, but others simply serve the files from the domain, where the content lives. If you block that, you won't be able to see the content, which is what the publishers want.
I've spoken to my wife who is a lawyer about this a lot. There are still a lot a abusive lawyers in the world but this abuse has shifted from overt racism/sexism over the years to more subtle forms of abuse and well basically torture. The individuals in question also have to be very high earners or else they are gone quickly and even then quite a lot of them have to move around frequently.

There is also a lot more diversity in those professions these days. That wasn't always the case so it's a good sign we will grow towards that in technology as well.
This device alters your brain tissue. Damn straight it's going to be regulated. Massage isn't even in the same ballpark. Neither is OJ, which is regulated, just not by the FDA.
For once I actually agree with you, coldtea. It is not enough to rely on everyone's unique instincts and preferences. This is why we need a Code of Conduct.
The article described essentially four options for the user after Sourcepoint detects an ad blocker:

1. encourage users to enable ads on publisher's site

2. register an account with the publisher for free

3. view certain number of ads to unblock publisher's site

4. publishers can also circumvent the ad-blocking

I assume the opt-in would happen in option 2. It's option 4 that I think is illegal.
Users don't care why Site A is swooshy and clicky and shiny, while Site B isn't.
Little bites of cocoa – UIStackView
I read the linked article. Didn't see them, nor have heard about them. Daily user of go for multiple years now.
Understanding what is going on in a neural network (or any other kind of machine learning mechanism) when it makes a decision can be important in real world applications.

For example, suppose you are a bank and you have used built a neural network to decide if credit applications should be approved. The lending laws in the US require that if you reject someone you tell them why.

Your neural network just gives a yes/no. It doesn't give a reason. What do you tell the applicant?

I have an idea how to deal with that, but I have no idea if it would satisfy the law. My approach is to run their application through multiple times, tweaking various items, until you get one that would be approved. You can then tell them it was that item that sunk them. For instance, suppose that if you raise their income by $5k, you get approval. You can tell them they were rejected for having income that is too low.
Favorite SJW tactic. Publicly shame someone when they disagree with them and go after their job/reputation/etc.
You couldn't get the community to be engage a topic you considered important the first two times, so you're just going to keep re-posting it? Oh goody.

There might or might not be a reasonable discussion to be had on this subject. The place for that is almost certainly not HN.
The flip side is people are saying "Oh, but Apple will pay 1.5% more in royalties".

Oh, good. It'll only take 66 months to recoup that after a three month trial.
https://www.zetetic.net/strip/ is working on an iOS browser extension. They can sync over local wifi between mobile and desktop. You can emai them with new requirements.

https://www.zetetic.net/blog/2011/10/10/how-to-sync-strip-da...
> This creates a nice little loophole where smaller colleges have massive massive STEM programs with an insane majority being foreign students. The students get their foot in the door to play the game and the colleges get paid.

And these foreign students usually take education loans(around $35k on average) back in their countries. So when they fail to get a job after completing MS degree, they go to the same outsourcing firms and work on F1 visa as contractors for substentially lower salaries again with getting their foot in the door mentality. Outsourcing firms know and exploit the strong tendency of these students to avoid having to go back to their countries where salaries would be insufficient to pay back their student loans fast enough.
It's pretty hard to kick Linus out of his own project. That's how he does things and that's what his contributors will apparently put up with. I guess it works for him.

But I don't want to work with people who behave like Linus does (at his worst), regardless of how good they are.

The people who do contribute to the Go core are very talented hackers who also manage to treat each other with respect, so obviously it can be done.
No, it's inconceivable that brain surgeons could act as crazily as programers do:

http://www.abc.net.au/4corners/stories/2015/05/25/4239823.ht...
By the way, if you are looking for a production-quality Windows port of Redis, there is a fork available at https://github.com/MSOpenTech/redis. We (Microsoft) provide it in production as Azure's cache service today, and are committed to continuing to work on it.
This was a group effort and I am last, not first. Mainly I played prophet, peace-maker, coach, bartender.

Not quite the Tetralogy of Tony Stark (genius, billionaire, playboy, philanthropist) but I'll take it! ;-)
No idea, but I'm sure their enormous infrastructure helps a lot. Maybe it could be done with some sort of BOINC-type platform.
This reminds me of when I was a staff Consultant at an RDBMS company 25 years ago.

A major telecom company was getting crashes in the server because of alleged I/O errors (mostly writes) in the raw i/o version of the server (no filesystem)... just a few times per several hundred thousand (or million) transactions. Subsequent disk and controller diagnostics were always fine. (This was before any fault tolerance was programmed into the server... my code for this problem was the first ever.) Most failures were writes, a few were reads. No obvious pattern (time of day, load, transaction type, lunar phase, sunspots, strength of coffee, etc.) This was on a DEC with Unix System V and DEC disk hardware, so only one vendor to deal with.

Anyway, seeing nothing "wrong" with the related code (other than no tolerance for error codes from the raw i/o calls), I theorized that maybe the "errors" were spurious and no actual fault or corruption was resulting, so I wrapped the i/o calls in retry loops (with the number of retry attempts tunable by the user) and logged any "failures" and results of the retry attempts. So, I did a build with my changes, had the customer run from my directory, then wait and watch for the carnage...

Turns out that every retry was successful. In fact, all but one of the dozen or two per day was successful on first try, and none needed more than two. No actual flaw in data was ever found.

Anyway, it turned out to be some spurious error specific to a specific drive type with that specific controller running that specific firmware... and apparently their filesystems code knew to work around it.

Client site personnel were really nice to me, too.
Housing Startup, Campus, dissolving
Deploying your "own" crypto is fine, as long as it's done with a proven implementation.

This book and books like it are great to help people to understand how crypto works which allows them to implement and in fact choose the correct cryptographic system in their application.

As for people who can develop cryptography, well in which way? a cryptographic system or a cryptographic principle, one is very complicated and any mistake will result in a disaster, and the 2nd well it requires individuals with a very specific and i would say natural ability who had chosen educate them selves in a very narrow field.

On the crypto system part for example PGP I would say it's less a question of competence and more a question of investment, PGP was developed with a good understanding on how a specific cryptographic principle works however I have high doubts that Phil Zimmermann would've been able for example to come up with a cryptographic principle like RSA or DSA which could be used to encrypt and sign data in that system even with all the education possibly available.

So I do not personally believe that much can be done to increase the amount of mathematicians that can develop new cryptographic principles, but educating developers to actually implement them, and more importantly implement existing systems (because people seem to be able to mockup everything from bouncy castle to commercial HSM implementations with such creativity that deserves an award on it's own) in a secure manner is something that should be heavily invested in.
I recently did a 3-day fast. It wasn't too bad. I fact I thought I would be ravenously hungry at the end of the 72 hours but I just ate a normal meal and it was fine.

I can't say I felt any better after the fast. I had lost a few pounds but nothing else noticable.

One problem that people might have with fasting and then wanting to binge is that the starchy, sugary diet that the USDA and FDA have been promoting as "healthy" for the last four decades is actually the opposite. The food pyramid is pretty much upside-down. If your diet is mostly simple carbohydrates, they metabolize quickly and leave you hungry for more.

If you eat a diet richer in fats and proteins and leafy vegetables your appetite is slaked for a much longer time.

The idea that intermittent fasting is healthy makes sense to me. Prior to the last few hundred years, certainly prior to the last few thousand years, our hunter-gatherer ancestors probably routinely went without food for a few days at a time. Our metabolism would have evolved to operate optimally with that.
When you are vague and refuse to elaborate, it can only lead us to think that your business isn't as squeaky clean as you make out.
1. Everyone will say they want to "see how you think"

2. You will not get an offer if you do not get a solution

3. Everyone ever: "White board interviews can be awful, but my company actually does a pretty good a job and I find them useful."

edit: for a slightly less snarky comment (and to expand on point 2) https://news.ycombinator.com/item?id=9522400
Interesting that I am getting down voted multiple times in this thread. Maybe I don't understand down votes? Definitely trying to be polite here and ask serious questions. Can anyone link me to these, I'm genuinely interested. Thank you.
What does Brubeck do that the collectd statsd plugin can't?

https://collectd.org/wiki/index.php/Plugin:StatsD
But what is the kernel? Is the Mesopotamian flood myth, which lead to the myth of Noah's flood, really from the Black Sea deluge? Or from one of the other proposed sources listed at https://en.wikipedia.org/wiki/Flood_myth#Claims_of_historici... ?

What is the kernel in the Zuni creation myth, at https://en.wikipedia.org/wiki/Zuni_mythology#Creation ? It describes true things, like that trees grow from seeds, but that's a rather low bar.
Just downloaded and opened a .pdf from nsa.gov.

Oops.
You're taking a literal reading out of something that's not meant to be literal. "Do unto others as you would have others do unto you" means treat other people with respect and be nice to them because most people like to be respected and treated nicely. You're right it probably wasn't written 5000 years ago for the extreme case of a person who likes being treated badly. https://en.wikipedia.org/wiki/Golden_Rule
The number I read was 1.5% more. Let's see some math:

Artist earns $100 in royalties per month from service. In three months, has earned $300.

Artist earns $100 * 1.015 in royalties from Apple Music. In three months has earned $304.50.

Artist loses $300 in royalties from 3 month trial. At new rate, it will take (300/1.5 = 200) months to recoup the difference from the new royalty scheme to get back the loss. Sounds like a fantastic deal for artists...
An album with a few more pictures and a video: https://photos.google.com/share/AF1QipPX0SCl7OzWilt9LnuQliat...
Proving that you were discriminated against is notoriously difficult. An exception to that is when the offending party is essentially admitting guilt in their effort to reform.

Implementation of the Rooney Rule is an admission to guilt of failing to comply with EEO. It's meant, explicitly, to combat against racial discrimination.

That's the nature behind the Rooney Rule. It asks the hiring managers/interviewers to reflect upon their interviewee's and recognize that they may have an inherent bias against hiring a marginalized group, reflect upon their selections, and do their best not to hire based on race (and in this implementation: sex).

In practice it's more like adding a quota or you may be accused of not following the rule. But I digress and don't want to argue into too far into that territory, as it becomes speculation of human motives.

To quickly sum up my thoughts on why it is essentially a quota in practice: If you do not hire more marginalized groups, you'll be accused of not honoring the Rooney Rule.

In order to comply with the unofficial Rooney Rule and make your manager happy, "You're increasing diversity! Good job!", you simply make sure to hire 1-2 marginalized people out of every 10 you hire.

But of course the "in good faith" argument applies and you can go back and forward bickering over whether they were hired in as a quota or "in good faith".
separation of concerns - a declarative query and the plan to execute it are 2 different artifacts. Thus DBA can upload new plans or regenerate plans for the same declarative query when things change like you described. If your database doesn't support it - well, choose your database carefully :)
EFF, CloudFlare Asks Court Not to Force the Internet to Enforce Trademarks
I had great co-founders and bad co-founders. The great ones are people I knew, whom I respected. I told them my idea. They got excited about it. We discussed it more and more, until it was clear we were all passionate about it. And we did it.

I wrote my lessons here: http://foundrs.com/find-a-cofounder
Interview with founder of BroScience on gaining million YouTube Subscribers
Inversely, if it can be independently verified, it can be called science, no matter how suspect they are.
If we're free to not waste time on tons of little performance hacks anymore, why do them anyway?
Obligatory SMBC reference to the future of advertising. Not quite what you're hoping for. http://www.smbc-comics.com/index.php?db=comics&id=2490
"The publisher could tell users that ads pay for content, and encourage them to either enable ads, subscribe to a site to enjoy the content for free, or view a certain number of ads to unblock stories."

They will allow users to pay a subscription price instead of seeing ads if you prefer that. Are you just against companies that make money? If everyone uses an ad blocker and pays no money to the sites, most sites just won't exist.
Ah ... you think so gwern? I would assume that most people would think that twins are incredibly similar. Or maybe I'm in an echo chamber and need to get out more.
"I wear goggles when you are not here" is a mis-heard song lyric from the Macy Gray song "I Try".

Actual lyrics: My world crumbles when you are not here.

https://www.youtube.com/watch?v=p6kY_I7rUiE#t=53s
Panels.js
You can build a radio system that will do damm near DC-Daylight but that doesn't mean it will perform as well as a radio with a narrower bandpass. Usually its a pretty solid constant, the wider the bandpass of the radio, the lower performance, its sometimes a worthy tradeoff, but often not.
This is a good example of an oxymoron.
Agreed on the hard to kick linus out of linux.

However, this is an interesting discussion. Linus (to my knowledge, please feel free to post evidence otherwise) has not been racist or displayed misogynistic behavior, has he?

So, here you have a very talented indivdual, who is very opinionated and uses some coarse language at times.

While I could also go without the coarse language, he is often right (not saying 100% of the time, but he has earned his reputation) and I would absolutely hate if by adding a CoC you lose people like him.

So, the CoC could clearly articulate that linus-like behavior is ok, and racism is not, it makes it hard to police. Especially when on this very thread, you say you would rather not work with people like that, so then do we add coarse language to the CoC too?

Thoughts?
What bootcamp did you take? How did it go and what did you learn? Can you share us examples of projects you did during this bootcamp? Where are you located? It does sound like you might be clinically depressed and should seek treatment for that. Otherwise you might have to just take a break from doing programming jobs and just apply to any related type job such as QA and work your way back into dev. As you stated your years of experience havn't helped you in the interview process and most dev interviews weed out weak candidates pretty quickly.
If you want to get hyped, I recommend the movie Europa Report.
I do that too, but this type of questions serve two purposes. If they know it, I know that they do research before they approach a project, see what was done before, and take life seriously. Also it shows that they can learn something and actually implement it. Unless they memorized the solution, I can learn if they can actually code, not just talk.
Second if someone didn't know that question, it still shows how they think and behave.
I usually leave these to the end, but it's not always easy to come up with experience related questions that differentiate good candidates from great candidates.
Think of it this way, most of the day you don't need the skills tested in the interview, just like in college usually you don't need the stuff they test in SATs, right? You still need to find the right candidate somehow. Asking them about more practical / knowledge based questions is much harder. People come from different backgrounds. Also most people will know well basic software engineering questions. I'm left off with basic CS stuff (data structures and algorithms) to really find the difference point. My experience shows that great SEs will know to answer, not so great ones, won't. No explanation why. Perhaps great ones want to learn more than they need for their job. Good ones just do their jobs well. But when something new comes, or if they need to improve a slow algorithm, they give it up. Seen it happen many times to great "craftsmen" they can code CRUD and UI very well, but they can write an algorithm out of a paper bag. Sometimes this is exactly what I am looking for in a candidate. Depends on the role.
Ask HN: Made a joke sharing app/need feedback
I made an app for sharing comedy and jokes: https://itunes.apple.com/in/app/jestr/id975003446?mt=8. It also features professional comedians who you can follow. Would love to get some thoughts and feedback from the HN community!
Good Programmers Write Bug-Free Code, Don't They?
Designing a CPU in VHDL, Part 1: Rationale, Tools, Method
Which specific "toxins" are in your fat?

If your colon isn't working properly you are very sick and you need a doctor ASAP not a fast.

The fact fasting (perhaps) has benefits has absolutely nothing to do with "toxins."
In other news people dealing with other people cause problems, see world history for more details.