skysight-inc/HackerNews huggingface dataset:
Drupal like GnuTLS, like openSSL, like joomla, and like a lot of code out there as always been recognized poor quality unreadable code by my own eyes. (Like some parts of the linux kernel)

Why don't people see the pattern?

Poorly coded software results in security holes.

And IN statements are stupid with prepared statement. If you can leverage a «hit or miss» cache effect with a IN statement, you don't need the IN, elsewhise it is inefficient.

Good solution is when you can do it: replace IN with join avoiding the shameful pit of Mysql poor performances in subqueries.

The other solution is to avoid IN statement because it cannot be protected with the bind trick.

And Stackoverflow has the same solutions proposed everywhere, and since people have no critical sense, this bug is everywhere where people are using IN with prepared statement.

http://stackoverflow.com/questions/920353/can-i-bind-an-arra...
http://stackoverflow.com/questions/1586587/pdo-binding-value...
http://stackoverflow.com/questions/589284/imploding-a-list-f...
http://stackoverflow.com/questions/3703180/a-prepared-statem...
I loved EditorConfig until tools like clang-format[1] and gofmt[2] showed up. Combine those with Git's hooks and you really got something.

[1]: http://clang.llvm.org/docs/ClangFormat.html

[2]: https://golang.org/cmd/gofmt/
If that's the case, wouldn't it also be useful to genetically engineer 'drone' Humans who happily do all of the hard work?
Show HN: Visualizing a neural network as it learns
Lenovo Will Launch Its Own Xiaomi Clone to Boost Its Smartphone Brand in China
I was referring to the joke.
I had a similar project in my high school consumer finance class. Pick a stock and report on it.

I picked this no-name company that had just IPOed because I had recently bought their 16K RAM card for my Apple ][. And their Olympic Decathalon game wasn't bad either.

Too bad I didn't have $1K lying around. I was saving for a Macintosh.
NVIDIA sues Samsung and Qualcomm
you can scroll that view sort of horizontally
World War One in Google Street View
What Is Event Security’s Defense Against Drones?
sounds boring, but i would probably work on test coverage for existing projects, because i don't need internet for that, and i can stop whenever i run out of battery...
What if I can already do the first part, what automatically provides the second part?

I might post a more detailed comment if I could actually find somewhere to view this content.
What the interns have wrought: RPC_parallel and Core_profiler
Isn't it true that children regress toward the norm? For example, two very tall people will more likely have a child that is shorter. Or, is that wrong?
Here's a chart I found while looking for info about the first video cards I used in the late 90s (couldn't find Diamond on it though, besides a mention of merging with S3...):

http://www.vgamuseum.info/index.php/history-tree

I see IXMICRO and MXIC (Macronix) on there.
When you do this to human it is called eugenics, and, to put it mildly, it likely isn't going to come back into fashion.

Surprisingly we do it all the time, on animals, and we call it breeding. It is very successful and if applied to humans could produce real geniuses without any new tech or research in a handful of generations. Too bad the word has such negative association.
How about this:

typedef int annotated_type;
void foo (annotated_type parameter_name) {}

then I could write this:

foo (5); /* the short and alegedly ambiguous version of function calling */

or this:

foo ((annotated_type) 5); /* now I know more about what "5" means
in this function parameter's context */

There could be a lot of annotated types around, and their presence would be optional, so the code could be cluttered for the sake of making things more explicit only where it would be really needed!

Of course, this doesn't come with parameter-order juggling, but that is another can of worms in itself, which I'd better avoid!
I believe you are confusing "expensive" and "inefficient". Medicare and Medicaid have the lowest overhead, lowest cost-per-patient, and more-or-less the highest customer satisfaction in the US healthcare system.
> Here's the problem with that 'bedrock' you are standing on: the vast majority of us are not coerced at all. We've happily agreed to this system.

Just like North Koreans are not coerced at all and they've happily agreed to that system.

> Think about it: how can people simultaneously be too dumb to do and see what is best for them under their current system but would be able to function just fine under if under a more pure market force dominated Anarcho-Capitalist framework?

Because we know North Koreans would do just fine with less coercion, and we extend that same 'less-coercion' line of thinking to everyone.

> Having diverse means of exchange seems more robust to me.

Why does the federal government then not allow for competing currencies to the dollar? Why can't my employer pay me in gold (although 2 or 3 states have legalized this now - I wonder why!)? Why does all currency exchange have to be homogenized?

You're speaking against ancap without actually having read any of its literature. I can tell by the silly arguments you're using, and the fact you can't see the propaganda you're fed.

Get reading.
SELKS, a Suricata + Elasticsearch based distribution
> I recall mathematical ability as being the most highly heritable at something like 50%. Even eye color is not that high

Actually, heritability of eye color is 98%. A somewhat complete listing of heritability according to SNPedia (which doesn't include intelligence):

http://www.snpedia.com/index.php/Heritability
There's a thin line b/w 'important' and 'urgent' – The Deadline
A problem with yearly releases is that Apple only seems to give support out for the most ~3 recent versions. (At least in OSX world; I believe there is still no shellshock patch for 10.6.) So do you have support for ~4 years, or ~10 years?
Creating a mobile app from a simple HTML site
it might not be a one line change if you are on a version older than 7.31
Ahh, I remember what it was. I saw a code snippet like this:

let input = reader.read_line().ok().expect("Failed to read line");

And I thought "Cool, Rust has exceptions!"

I'm probably too used to thinking in Python. Or maybe I'm just dyslexic and I read "expect()" as "except()".

Either way, your comment prompted me to dig into it further and find out how Rust actually handles errors. So, thanks!
Yeah, All those jobs look nice. But they don't mention how much I will get payed.
Show HN: ReSRC – Free programming learning resources incl. 500 free books
Which is a .Net language, just saying.
I wish that were true - but even for show-all-data with one data-point (height, for example), it still fails to load.

And every graph is empty, even ones with manually entered data. If I choose edit->clear all for a data type, it still doesn't recover.
> Good solution is when you can do it: replace IN with join avoiding the shameful pit of Mysql poor performances in subqueries.

If you use MSSQL you can use IN just fine: use a table valued parameter to feed in values to look for. It's only one parameter so you get plan caching for 1, 2 ... n rows in your table valued parameter. (Although plan re-use is not always a good thing: the plan generated for 1 parameter = 1 row is necessarily the plan best suited to 1 parameter = 10,000 rows.)
Yay, a drop-in replacement for scrot -s that doesn't leave selection borders in the screenshot every time.
An animation of the stupid questions people ask on Yahoo answers
Perhaps job wasn't the best word to use but I think you understood what I meant anyway. As for going round in circles, I think browsing Reddit is like being stuck in the same conversation day in, day out.

Our centerpiece is the discussion system/self posting. We're still working towards a mvp so it doesn't offer much more than what Reddit/HN does at this moment in time.

The site does still revolve around a list of stories, we toyed with the idea of having a grid-like view but ultimately we think that a list is still the most efficient way of finding something you want to read. I'm open to suggestions but I really can't stand are websites that try to be smarter than the user by trying to anticipate what the user would want to read.

This seems to be often done through really basic methods such as a "What are you interested in?" tickbox questionnaire. If the recommendations suck the first time, I'm not going to keep using the site to even begin improving those recommendations.

I believe the real centerpiece would eventually be the community though. Hopefully we'd attract a similar level of interesting and thoughtful users as on HN but cover a wider range of topics.
> Happily, I have now grown up.

But you haven't grown up enough to avoid making appeals to authority in order to justify a moral high ground.

I remember when I was 20 and I believed that those that were older than me knew more than I did because they were grown ups. Then I learned knowing is hard work, lots of reading involved, and most people avoid the legwork and jump straight to the "I know better now that I'm a grown up" because few call them out on it.

Grow up.
This is an interesting question. We have evolved, but evolution is so slow that we do not notice that our children are actually inching away from us genetically (hopefully for the "better"). However, if we inject large artificial changes, what will happen? Will we reject our children?

For a certain period in development, children reject their parents, naturally. But then we often come back (often when we are parents ourselves). But, if our children have large genetic changes from us, artificially done, how will our children look upon us? As pets, perhaps? Or mere caretakers?

An interesting (and scary) thing too, is whether higher intelligence - as measured by these metrics - leads to "colder" humans, who make more rational decisions, such as euthanizing the old and weak, which would then include the parents.
Verbosity is a real nuisance. Exceptions have odd flows, you have to use `On Error GoTo SomeHandlerInFunction`. For runtime efficiency you have to work against the system to make sure things are typed and not automatically casted to `Variant` and back every operation. Events do not fire in the right order, rendering some of them useless (Context: You are in a text field, you do Alt+E to press a button with 'e' underlined on the form. Click on the command button is fired before validation of the text field). The official IDE from way back when is buggy as heck, often gets into not-sane states between debugging.
Like this http://archive.wired.com/wired/archive/9.12/aspergers_pr.htm...
and this
http://www.economist.com/node/4032638
?

Those pesky genes tend to affect more than one thing...
I keep an O2 on a shelf in my man cave. Wish I'd snagged an Origin 2000 rack when they were plentiful and cheap-ish on eBay about 10 years ago.

I'd always wondered how SGI missed the Internet wave relative to Sun. Around the time of this article I started working for a web hosting company that was, aside from my team of IIS upstarts, entirely run on SGI. Prior to that I'd worked for a content company that was running on Tandem-badged SGI systems. And before that I was with an ISP which was a motley mix of Sun, BSD, and Linux but had just purchased a pair of Onyx systems to handle Usenet services.
I'm an intermediate level user of reddit. I use the "reddit is fun" app on android. It took me a long time to discover that the i in a circle at the top of the screen will bring up the sidebar content.

I have a suggestion, though I'm not sure it is a good one: If the sidebar contains a certain number of links, or length of text, and the user hasn't opened it on their mobile app yet, then the app can highlight the button with flashing or a color to recommend that a user reads it.

I find that there are many subreddits where if you start reading posts without the sidebar you are really missing out.
care to elaborate on "projects come in regularly"? are you actively looking for new jobs yourself? if yes, where? are companies approaching you? how do they find you?
I've been meaning to get a copy of this for a while. When it first came out there were a lot of people shouting he (Piketty) was wrong and there were problems with the data and other people shouting that those first people were idiots. The debate continued even after Piketty released more data in his defence. That shouting put me off a bit. It was nice to read a balanced review from someone I respect and I'm definitely going to read it soon.
Last I checked, most people mated with a partner of their choosing.

That you call it love and not "selection of the most desirable traits" doesn't change the facts ;-)
D'oh!

Thanks.
No, I was thinking of Mavericks. I was clearly too tired to be commenting yesterday.
The dark side of the appstore
But WinNT did end up taking over most of the workstation market from SGI and Sun.
The data may be wrong but couldn't the trends be useful? For example a heart rate monitor consistently off by -20bpm will still provide an accurate trend on heart rate over a period of time. I guess the problem here is that the data, even if wrong, would have to be consistently wrong by the same amount.
This looks pretty slick. But "no other screenshooter can capture the mouse pointer" is flat out wrong. gnome-capture comes with Ubuntu/Debian and has options not only to include/exclude the pointer, but also select a window (with or without border), region, delay, etc.
Another global financial crisis not if but when?
Maybe when a subreddit is first loaded in Alien Blue, before any links have been clicked, the sidebar could show up as the third panel on the right. It wouldn't fully fit on an iPad screen, but you'd see part of it and be able to slide to the right to view it all. Then when you opened a link, it would replace the sidebar as the third pane.
> databases that only offer positional parameters (mysql, mssql).

Something between PHP and MSSQL must not support named parameters, because MSSQL supports them just fine.
The actual paper[0] title is somewhat precise: "Observing Ultra-High Energy Cosmic Rays with Smartphones"

[0] http://arxiv.org/abs/1410.2895
> Some people say SGI didn't see it coming - I think what was interesting was that they did see it coming but still structural issues prevented the taking of any effective action (for example salesforce commissions continued to encourage sales of large systems rather than the low end machines they really needed to push at the point.)

It's interesting how knowledge of a (potential) problem often does not protect against that problem. As a psychologist it's one of my biggest fascinations: how people who work with addicts can become addicts themselves, how people who know of the 'evils' of racism are still susceptible to it, or how people who are professional psychologists do not deal with their own issues.
At least I checked SqlAlchemy prepared IN statement are safe.
Right. But with our system, the employee's wage/salary is entered as USD. We purchase BTC at the time that payroll is ran at the current price.

So assuming that the employee isn't going to spend it and that BTC is forever increasing in value over time - the employer isn't giving away a valuing asset because they purchased it and gave it away within a few moments while the employee gets the benefit of a valuing asset. I don't think anyone would complain about that.
Did anybody else notice that the chicken in the picture is possibly the same chicken at different stages of growth?
They're a drier read than the book, but if you're interested specifically in the data and its analysis, there's a series of journal articles written by Piketty and another economist, Gabriel Zucman, which have more detail than the book does, "Wealth and Inheritance in the Long Run" and "Capital is Back: Wealth–Income Ratios in Rich Countries, 1700-2010". There are preprint PDFs here, along with some other papers on a similar subject by Zucman & other collaborators: http://gabriel-zucman.eu
Just a heads up about the book. Its dense, like a Nassim Taleb book dense. it took me over a month to get through it so if you choose to read it, its not a weekend read.

If you want the highlights, this economist article does as decent a job of summarizing 400+ pages as you can hope for in 4 paragraphs.

http://www.economist.com/blogs/economist-explains/2014/05/ec...

As for the content, the main take away, is his r > g argument which is illustrated by the following chart:

http://piketty.pse.ens.fr/files/capital21c/en/pdf/F10.9.pdf

One of his other big ideas Bill hits on is his tax on captial. Bill proposes a tax on consumption instead.

> But rather than move to a progressive tax on capital, as Piketty would like, I think we’d be best off with a progressive tax on consumption.

Maybe not surprisingly since I work in finance, most of my colleges are on Bill's side and not Piketty's here. To be fair to Piketty, he chose a tax on capital because he's coming from a perspective of how do we prevent the accumulation of wealth over generations, where as Bill is coming at it from how do we raise enough taxes to pay for the the services the government needs to provide.

I would recommend reading this book, its clearly a labor of love for him and he's spent the time to back it up with data, just don't expect to agree with all his conclusions.
A fun game to play with any new battery charging press release is to figure out how hot the thing will be after charging.

An iPhone 5 has a 5.45 Wh battery, which is approximately 20kJ. 70% of that is 14kJ. Charging a lithium-ion battery is typically 80-90% efficient, so getting 14kJ of energy into the battery will also put approximately 2500J of heat into the handset. It takes just shy of 4J to raise 1g of water by 1°C, but that iPhone has a density (112g / 55ml) about twice that of water, so it will be about 2.7°C (5°F) hotter than before you started charging.

I think.
Show HN: React on Rails (isomorphic JS React framework)
"I don’t see anyone on the list whose ancestors bought a great parcel of land in 1780 and have been accumulating family wealth by collecting rents ever since."

Piketty makes it clear that America is a special case because of all of the 'almost free' capital in terms of land and population growth that had existed over the last couple hundred years. But, he claims that America in the future will more resemble Europe of the last few hundred years.

Also, although Gates claims that half of the richest people in the US have gotten rich from their businesses (I haven't checked if that's true), he almost ignores the fact that most of these richest people have come from upper middle class background, at the least. He also ignores the huge number of richest people who have attained their wealth from financial instruments.
Lean startup webinar
Lean Startup: Reduce 40% go-to-market time & cost on your next product launch.
goo.gl/TQZfXm
>(often true)

I don't think it's that often. By default, a new MySQL user will not have FILE privileges granted.

Most of the time you see this due to the developer being lazy and just using the "root" MySQL user.
I fully agree that we don’t want to live in an aristocratic society in which
already-wealthy families get richer simply by sitting on their laurels and
collecting what Piketty calls “rentier income”—that is, the returns people earn
when they let others use their money, land, or other property. But I don’t think
America is anything close to that.
Take a look at the Forbes 400 list of the wealthiest Americans. About half
the people on the list are entrepreneurs whose companies did very well
(thanks to hard work as well as a lot of luck). Contrary to Piketty’s
rentier hypothesis, I don’t see anyone on the list whose ancestors bought a
great parcel of land in 1780 and have been accumulating family wealth by
collecting rents ever since. In America, that old money is long gone—through
instability, inflation, taxes, philanthropy, and spending.

This was a little disappointing to read. Rentier income, in the context of the book I think includes passed down positions in which the children of the rich continue receiving that high income. That is to say, could the current owners of Walmart have been individuals other than the direct descendants of Sam Walton? If they had been other individuals chosen by a meritocratic criteria and process, Gates' point would stand. As-is, it does not.
as an owner of the original galaxy note, I welcome our new phablet overlords
Also see the starterkit: https://github.com/elierotenberg/react-rails-starterkit
I might be missing something but is their a paper version? I hate reading technical books in digital format. If not I'll probably still get the ebook but paper would be great.
Oracle Critical Patch Update Advisory – October 2014
Story of the acquisition of Ducksboard
If 1000 genes have an impact on intelligence, "activating" them all is likely to result in illness.

We've seen something similar with Schizophrenia - get one related gene variant and you get someone with creative flair or good pattern recognition. Inherit 5 and they become paranoid and hear voices.
Hierarchical Peer-to-peer Systems [pdf]
You're right, but whenever I hear the words "Core Update" I usually think "Testing". For something this serious just getting that vulnerability patched asap seems like a good idea, especially if you look after a lot of drupal sites.
> Isn't it true that children regress toward the norm?

There isn't perfect heritability of all traits because they are influenced by multiple genes. Two tall people likely have different genes that are making them tall, and there are likely interactions happening with other genes in their genome. When you get a child, they have some genes from each parent but they also get lot of novel interactions between the genes of tallness and the rest of their genome. This tends to reduce the heritability of traits that are modulated by complex interacting gene networks.

But it isn't a regression to some imaginary norm, it just means that that genes are not simply additive, they context dependent. But if you were to isolate 100 tall people from the population and had them breed for generations, and 100 short people and have them breed for generations, their offsprings likely will continue different in height still, they will never regress to the same "norm" because there are more tall genes or short genes in their respective populations.