skysight-inc/HackerNews huggingface dataset:
I would probably write it this way today (well, actually I wouldn’t write it today, I would instead use the reciprocal square-root instructions provided by all the common architectures, but let’s pretend):

static uint32_t toRepresentation(float x) {
uint32_t rep;
memcpy(&rep, &x, sizeof x);
return rep;
}

static float fromRepresentation(uint32_t rep) {
float x;
memcpy(&x, &rep, sizeof x);
return x;
}

static float rsqrt_linearApproximation(float x) {
uint32_t xrep = toRepresentation(x);
uint32_t yrep = 0x5f3759df - xrep/2;
return fromRepresentation(yrep);
}

static float rsqrt_newtonRaphsonStep(float x, float y) {
return y*(1.5f - (0.5f*x)*y*y);
}

float Q_rsqrt(float x) {
float y = rsqrt_linearApproximation(x);
y = rsqrt_newtonRaphsonStep(x, y);
y = rsqrt_newtonRaphsonStep(x, y);
return y;
}

The only semi-cryptic thing about it, to someone versed in numerics, is line with the magic number 0x5f3759df. While I would expect a professional to be able to quickly re-derive it and understand the intention, I would still write a comment, along the lines of “We approximate the floating-point representation of 1/sqrt(x) with a first-order minimax polynomial in the representation of x.”

All that said, I tend to write a lot of comments. Much of the code I write professionally is math library code, and it’s not uncommon for me to have a ratio of several paragraphs of error analysis or correctness proofs to a few lines of code.
my word the font on that article is hard on my eyes
"So why would this be interesting for HN readers?"

To show what you can do with AngularJS directives and that combining it with D3.js it can be quite powerful (even without source code).
Anybody who worked with D3.js, should know how much boilerplate code needs to be written to have a visualisation. By abstracting that code in directives, it allows users to use out-of-the-box d3.js graphs. Someone could go ever further to implement an "interface" to customize these graphs through angularjs.

To anyone who's interested: I replied to another comment with a tutorial blog of how to create d3.js directives
A tool for structural comparison of programs
The government doesn't own it, but it enforces the right that you own it. Both for physical goods in the obvious way, and IP via the way of copyright.
> An audience is value in and of itself.

An audience that does not pay for things is of limited value to someone who needs money to keep making things.
Looking at their yelp page, they do have 5 star reviews, and they also have 1 star reviews. There are few filtered reviews, but they aren't universally high ratings or anything, and I think Yelp does filter out users with a single review that is 5 stars because they are usually fake.

I'm also sure that a restaurant feels that recent reviews should be weighted heavily, almost exclusively, and that those two star reviews from last year should be ignored.
If only the automation could be automated...
Buy azelaic acid cream
Exactly. I have a friend who never turns on his (high) ceiling lights to avoid replacing the bulbs. I suggested LEDs. Funny, for he'd rather the bulbs be functional and never on than non-functional and never on, which is kind of OCD when you think about it.
It would surprise me if this was new. I bet this kind of thing has happened for as long as business has happened, but the owned-resource being built on was more likely real estate, whether it was some lord who could kick a peasant off his land or some industrialist who could shut down a shop owner in the town he built for his factory.

If anything, we might be less susceptible to it now. It would make a fascinating study, anyway.
How Canonical runs OpenStack in Production: the Good, the Bad & the Ugly
Herbal sexual enhancement Is for you?
By now everyone has heard about the next big thing in sexual male enhancement products: All Natural enhancement pills, like Full throttle on demand, but what is it and who is it for? In other words: What can herbal enhancement supplements mean for you and your relationship
Heroku’s log-runtime-metrics Can Crash Your Rails App
Do not run log-runtime-metrics for extended periods of time, as it can crash your Heroku dynos (and cause them to reboot) multiple times daily.
How is this any different than Google selling ads and deranking spam?
Do you know the difference between RFID and NFC?
Several time WWDC attendee here.

- Complete access to Apple engineers, who will be blunt with you and share details that are otherwise not public. I worked on a couple things with engineers from the labs, and it was refreshing to get answers like "Yep, this is a serious bug, but it touches too many things in the system, so we'll fix it in the next major release."

Also, it's interesting to get to see what the engineers see on any given radar ticket I filed. Whereas several looked dormant on my end, a couple had rather heated discussions.

- Networking/rubbing shoulders with great developers from the community.

- You get information about upcoming features in upcoming products. Sure, places like Ars Technica or the Verge will cover some of the sexier things lightly, but there's still plenty of in-depth technical stuff that aren't understandable by your average tech journalist.

Some of the early Grand Central Dispatch and ZFS comes to mind. Those presentations were essentially given in ObjC, so if you weren't familiar with ObjC, you couldnt really get the point of what they were about.
There's so much about this that I just don't understand. I'm wondering, OP, is English a second/third language for your team? Or was this written in a weekend sprint/hurry-up mode/contest? There's just a lot on the home page alone that doesn't make sense.

"SELL QUALITY ADS & SPONSORSHIPS FOR FREE" - why would I sell "for free"? Maybe you mean "commission free" or "without fees"? It's ambiguous. Oh sure, if I spend the time to think about it, I get it. But what percentage of your customers will spend that time? I'd say it's in the single digits...

"We are 100% FREE" - you aren't 100% free if I ever, in any circumstance during our relationship, pay you. It's either dishonest or misleading to say that you are 100% free and then, later in the ad copy, to say that there is a 6% fee.

"Our publishers own 100% of their quality, audience and value since we remove stuff that previously cannibalized their earnings." Your average visitor who spends 5 seconds on your page reads that and says to themselves, "What does that even mean?" Oh sure, if they think about it for 10-15 seconds, they'll understand your meaning but again: how many people will give you that time?

"DIRECT SALES ARE FREE. Sell and invoice on your own" - Ambiguous wording again. The average person thinks, "My direct sales are and have always been "free". I sold it directly, thus I made 100% of the profit."

"We introduced 100% optional pay-per-performance services: we only get paid when providing that extra value." - What does "100% optional" mean? Do I opt to pay 100%? Or is it a tipping system - it's optional that I pay you and at my discretion as to how much?

"Are you and Advertiser? Signup here!" - Just low rent and crappy to let your home page have a typo so blatant in your action text. Very poor show.

All in all, this is not a company I would do business with. Poor copy, no editing, ambiguous wording, and more unanswered questions than I can list all comes to mean that I'm closing the browser tab. Good luck to you - you have a lot to fix, I think, to make it "work". I hope it works out though - the world always needs new ideas and new executions on old ideas.
I've got to agree that if I created the most watched YouTube video of all time that even I would probably be able to turn that into some cash. But I don't think that's a viable solution to the problem of novelists, etc., being able to earn a living in a world of unfettered copying.

Copyright is not a restriction on anyone's "creative" work. It restricts the right to copy things. (Not that I'm happy with all the details of current copyright law.)
If it involves studying human behaviors, it's probably not going to be science. I would prefer the holy wars over some manager telling me it's been "proven" that one side is correct.
If you camp out in somebody else's walled garden, you can't really complain when they decide they don't like the mess you're making and throw you out. Trying to prevent this somehow (and how, exactly? Legislatively mandated API access?) would be much more anti-capitalist.
The cost to Twitter of even re-discovering what it is about his API and analytics that his customers prefer to Twitter Ads could easily outweigh the cost of an acqui-hire.
If you're starting a business, especially if you're a programmer who's not afraid of basic math, shouldn't you spend a day or so learning the basics of accounting?

Granted, that might not tell you to "watch cash flow like a hawk", but ... say, the moment you either have a paying customer or hire an employee, you have a minimum duty to not crater your company out of sheer ignorance of the basics.
I suspect he meant "too much of a hassle." I like his version too.
> Race based discrimination supporters ...

Go away.
It's hard to manage "Quality" on any scale though. If 1000 "advertisers" signed up tomorrow, how would this company handle the quality control in a timely fashion? That's where the invite-only comes into play, I guess. You, the ad network, control how many and when advertisers enter your network.
Making more money than your parents, aged 12
SimCity's 2.0 Patch Adds Tons Of Bugs
A conversation I had with Friend 1, a successful business owner, and Friend 2, a less successful business owner:

Friend 1: Have you tried getting some positive reviews on the internet? People really trust them, it really helps to drive business.

Friend 2: Oh, really? How many reviews do you have?

Friend 1: About twenty.

Friend 2: How many of them did you write yourself?

Friend 1: (Laughs) About nineteen of them.
I think the analogy is perfectly valid. Regardless of the goals of a policy, its implementation via bureaucracy can still be so hopelessly complicated that it's a net drain on society.

It reminds me of a quote I once heard, possibly by Ron Paul (though I am not sure), that went along the lines of "Politicians mention 'tax reform' all the time. But unless they're talking about simplifying the tax code, they're not talking about tax reform."

The DHS and Obamacare both tacked on additional rules to an already overcomplicated and opaque set of systems, rather than streamline the underlying systems and their interactions. Our political process makes adding bureaucratic complexity easier than removing it. For under-regulated areas (like anti-trust laws in the early 20th century), this can solve problems. But otherwise it's more likely to make the underlying problems worse.
The problem with these claims is that they all confuse ignorance with malice. These rumors are persistent because they make a sexy story, but they aren't true -- Yelp doesn't manipulate reviews based on advertising.

Citing what a Yelp sales rep is alleged to have said to a business owner sounds like compelling evidence, but it's really just garbage: Yelp sales reps have no ability to influence anything, anywhere, no matter what they say or don't say. They're part of a huge team doing a low-pay cold-calling gig -- they make a sale, ring a little bell, and hand in a piece of paper documenting the sale for the bean-counters. That's the extent of their influence with anyone.

What's really going on here is some combination of business owners mis-interpreting what a sales rep says, businesses trying to transparently game the system (and whining when it doesn't work -- business owners are amazingly stupid about this!), sales reps saying dumb things (I'm sure this happens occasionally, despite best efforts to control what they say), and the somewhat random nature of an automated review filter. There are tens of thousands of businesses being called by Yelp sales reps every day. Even if 1% of those businesses have reviews randomly filtered on the same day, that's a lot of opportunities for people to see patterns where they don't exist.
Note this is exactly how a smart spammer would generate text (sampling from a language model, built on a public ally available data set like google ngrams or Wikipedia). If you wanted to catch someone doing this, you're much better off using your own corpus to generate a language model, as a spammer would have to scrape all your data to reconstruct the same thing.

Then, run the model over your data and start playing whack-a-mole (and refining the model).
I do not consider a lot of Apple or Samsung goods to be of high quality. Especially the small cheap goods like smartphones -- I've owned phones from both now and both are disappointing in terms of long term reliability. The Samsung especially I do not expect to last long, and the Apple phone was barely usable at three years old.

Of the goods of theirs that I've had luck with, expensive laptops and televisions -- critical components like LCD's are not made in China, and the processes to create Macbooks are very automated and said processes are designed to deliver quality for that product line alone.

Remember, low-quality cheap Dell laptops and RCA/WalMart TV's are also made in China.

For every iPad/Nex7 that comes out of China, how many <$100 WalGreens bargain bin Android tablets running 2.X come out?
Yes we are getting more than 10 deals. That was a couple years ago. :-)

We've been very judicious about product decisions regarding customers, that's not really the kind of bending I'm referring to. It's more about the effort involved to get them to your site, onboarded, excited and pulling out their wallet.
> The fact that they're not even charging $20/month for minimal API access is baffling to me.

The devs who experiment and make something cool are often worth more than the minimal charge.

However I would agree that rather than having arbitrary limits using devs as a revenue stream makes sense (give everyone a portion of what you currently allow and allow payed upgrades)
I would like to remind people that this is not the first or even second time that this kind of claim has flaired up regarding biased reviews, corrupted reviews, purchased reviews, and extortionary practices.

I would also caveat though that there is a plausible possibility that this is an attempt at mobbing Yelp.

I have always felt that reviews are ripe for disruption and a bit of an ethics and authority treatment.
Google Conference Bike
This is my first post; so if I have made a mistake please let me know. I thought you might find theGoogle Conference bike at the bottom of the story interesting.
Seems very similar to what Kopimi [1][2] is all about. It has been in use for quite a while. Take a look at the footer of thepiratebay.is for instance.

[1] http://www.kopimi.com/kopimi/
[2] https://en.wikipedia.org/wiki/Piratbyr%C3%A5n#Kopimi
"Yelp’s reviewing process, noting that the company favors consistent reviewers over first timers, in part, to avoid “fake” reviews"

Well, this is how it works more or less

I've never had a comment on Yelp taken down

Well, as other comment says, the problem is the 'idiots'.

There's always someone that thinks McD is the epitome of gourmet food and thinks anything that's not overspiced/overMSGd is "bland"

There's always someone that thinks that a place with tacky decoration and a queue in front and rude bouncers is "the place to be"

So it's really like herding cats.
As is mine. It's pretty nice...especially using 'C-h' for regular delete.
That seems pretty unlikely, and kind of highlights how this transforms the risks. If Braff funded it directly, his risk only pays off if he makes the movie and it makes enough money. While using crowdfunding, the backer's risk is only if the movie is not made.
One recording of a Yelp rep saying something like that is one instance of a sales guy lying to make a sale so he can get a commission or make a quota. You know, something that happens all the time.

Yelp could never manipulate reviews and this restaurant owner could have been told exactly what he claims. The two things aren't mutually incompatible.
True. I hadn't considered that.
I agree that this table is a bit confusing ;)

Actually, residential energy consumption is expressed in final energy terms. This is the actual consumption by end-users of energy carriers (e.g. electricity, gasoline, diesel, natural gas, etc...). The sum of all these end-use consumption is the Total Final Consumption (or TFC).

This is to be distinguished from primary energy sources (crude oil, coal, natural gas, etc...), which are used to produce the energy carriers that end-users consume (e.g. in a power plant to produce electricity, or in a refinery to produce gasoline). The sum of all primary energy sources consumption is the Total Primary Energy Supply (TPES).

Since residential energy consumption is reported in final terms, the correct denominator to calculate the share you were looking for is TFC. Residential energy consumption thus accounts for 17.9% of TFC, versus 17.7% for industry.

The non-residential sector is denominated in IEA terminology as 'Commercial and Public Services'. This sector encompasses office buildings, hotels & restaurants, education & research, hospital & healthcare, sports facilities and public administrations. In short, buildings that house the tertiary sector. Therefore it can't be identified at all with the industry (btw industrial buildings consumption are accounted for in the 'industry' sector).

In total, residential and non-residential buildings account for 32% of TFC in the US, second only to transport (39.5%).

Disclosure: I've worked as an analyst at the IEA for 4 years.
Just because someone is personally nice doesn't mean they should be running a business.
Google: More government removal requests than ever before
Yahoo! yanks Saturday Night Live from Hulu
>>Why did Oberon become obsolete?<<

2nd paragraph -- "In his modest Swiss Engineer’s manner, and quite untypical for a celebrated academic, Wirth consistently avoided exploiting the initially high-speeding Pascal bandwagon for the purpose of “marketing” his subsequent ideas. Indeed, he even refrained from giving his later programming-language creations names such as “Pascal-2”, “Pascal Plus”, or “Pascal-2000” but instead opted first for “Modula”, and then “Oberon”. Both of these languages would probably have been considerably more successful if the connection to the Pascal legacy had been made in their name, but this would have run counter to Wirth’s view that a marketer he is not."

Also see "Pascal and its Successors"
http://www.swissdelphicenter.ch/en/niklauswirth.php
PlayStation 4 lead architect reveals secrets behind Sony’s next console
Lets replace Disney coporation with the red cross, and the "your art" with community art in a church.

How many pitchforks would red cross get in the scale of a 0-5? Would it be the same as Disney, or TPB, or that 8 year old girl in Finland? Would it even be meaningful to have all the ducks and their 8 year old girls on the same row?
give everyone a portion of what you currently allow and allow payed upgrades

Exactly - there are plenty of options available.

The devs who experiment and make something cool are often worth more than the minimal charge.

I'm just wondering how many such developers would be put off by such a relatively small charge?

Obviously, the situation now is very different to when Twitter was still building momentum.

I'm just confused that they don't come out and say "From the 1st of May, we will be charging all new API accounts for access."
Just remember that California is a two-party consent state when it comes to wiretapping- if the other party does not know and understand that you are recording the conversation, it will not be admissible in court proceedings.
> I'm also sure that a restaurant feels that recent reviews should be weighted heavily, almost exclusively, and that those two star reviews from last year should be ignored.

I agree 100% with that. It's very possible for a restaurant to get better or go downhill in a year.

If a restaurant has a rough opening but drastically improves after a few months, the early 1-star reviews can do some serious long-term damage even if they're a year old.
Roundcube is probably the prettiest option, but I'm curious about their security record. I definitely see http scanners looking for specific versions of it very often.
He is monetizing Twitter in a way that advertisers like better than what Twitter's own advertising department came up with. That has to be worth something to a company desperate for revenue.
Transparency Report: More government removal requests than ever before
Down for me now, but the Coral Cache works:

http://foodbeast.com.nyud.net/content/2013/04/22/sf-restaura...
"Perhaps the best part of Unity in 13.04 is not new features, but the noticeable speed improvement. Like GNOME Shell, Unity has taken its fair share of (deserved) abuse for its high-end hardware requirements and sluggish performance. You're still not going to make Unity scream on an old machine, but provided you've got newer hardware, 13.04 is definitely snappier than its predecessors."

Not even this ? If it's true, it would be worth upgrading just for a snappier interface in my opinion.
you don't need more vms to get around their rate limit, you just need to query their api using a clientside language like javascript, that way the ip twitter gets is the ip of the user, not your servers. The company I work at has awesome search, so I have a tool which grabs tweets from individual user's streams (if a customer has an issue with my product and tweets about it I like to search their public twitter stream to see if they've mentioned us or our competitors lately). My script is a python one using httplib, but I realized that I could just as easily make these queries using jquery and send them anywhere I like. This moves the rate limit from your server's ip to the user's ip. If a bunch of people are using your product from the same office it could be a bit of an issue but you could probably detect that (with their 420 chill out code) and use one of your vms ips until that office's ip cools off again. That'd probably make your overhead quite a bit cheaper I'd imagine.
There is another flaw in the business model: It feeds off the assumption that when someone favourites one of your tweets, it's because a person liked it, not a bot trolling for followers. I suspect the reason Twitter Ads is 20x more expensive for a follower is that it explicitly states that it's a "promoted tweet" and that throws up all kinds of guards. Once that cat is out of the bag, the cost to acquire a follower using the favourite-method is going to go up.
not quite a tautology, I was being a bit facetious... imho the concept of understanding is tied up with the meaning of expectation, so much so that by definition the code I don't understand doesn't do what I expect - if it did, then I'd understand it!
In addition to the other answers, don't forget that in the situation described, if you remove the 'thousands of unauthorized copies', you still haven't sold any copies.

In terms of semantics: "Say I write a book but nobody purchases a copy."

In more meaningful terms: If people do not value your book highly enough to pay you for it, then without the thousands of unauthorized copies, you are an unknown writer languishing in obscurity. With the copies, you have at least started to publicise your name and your message.
Why does Europe resent Germany so much?
Quite a few documentaries. Although those are often a special case, where the footage has already been shot as a labor-of-love, and the Kickstarter is to pay to edit and release it.