skysight-inc/HackerNews huggingface dataset:
Sure.

Here's the implementation of the three versions: https://gist.github.com/2821937

Here's how I was originally benchmarking things: https://gist.github.com/2821943

Here's benchmarking using the Go testing package: https://gist.github.com/2821947

Some of the performance I was seeing on my crappy benchmarker evaporates using Go's benchmarker. But there is something else afoot. Try changing 'runs', which controls the size of the inner loop (needed to get enough digits of precision):

From "runs = 128":

BenchmarkSplit1	1	2478184000 ns/op
BenchmarkSplit2	1	2787795000 ns/op
BenchmarkSplit3	1	2747341000 ns/op

From "runs = 32":

BenchmarkSplit1	1000000000	0.62 ns/op
BenchmarkSplit2	1000000000	0.68 ns/op
BenchmarkSplit3	1000000000	0.56 ns/op

Why did it suddenly jump from 1 billion outer loops to just 1? I think there is a bug in the go benchmarker here, because if you take into account the factor-of-4 difference in work and then divide by 1 billion, it looks like the first set of ns/op are actually correct and aren't being scaled correctly.

Either way, the increase in performance is now only about 10%. Which I agree, isn't anything to write home about. More bizarre is that the bytes package one is faster for runs = 32 but not for runs = 128. I can't make head or tail of that, or why it should matter at all -- unless there is custom assembly in pkg/bytes that has odd properties inside that inner loop.

But this is only one half of my complaint: it's the interface that matters, and I see no good reason for having IndexByte, but no CountByte and SplitByte, contrary to what you say about which is more fundamental. Having to construct a slice containing a single byte just to call SplitByte and CountByte left me with an bad taste in my mouth.
Testing - A n00b's Reflection
I bet the doppler shift from two different listening microphones would give you a pretty easily calculation for how fast the gun was moving (at least relative towards/away speeds with respect to the two microphones) - I'd guess 3 or more microphones listening to the same gunshot could pinpoint both direction and speed.
Pretty sure that wasn't SpaceX he was talking about, but rather a spaceplane reminiscent of the X-37 (possibly actually it, from what I've heard in the past).
Ask HN: What to do with my life?
I know this is not a self help forum but I'm asking your advice HN what to do with my life.
Long story short: I've been interested in computers and programming all my life. I went to university to start learning programming but I stick around about 2 months or so because I didn't feel comfortable learning the specialty in the uni. Maybe it has something to do with some mental problems but who doesn't have them...

I've been making money by freelancing all my life, I make a little bit more than average wage which is okay I guess, money is not the biggest issue in my life anyway. The problem is that I have exactly 0 friends to talk about computer or programming. I do have friends.

I have started many startups but the have all failed because I always feel lost and embarrassed about my ideas after working on the for a while.

I've been thinking about getting a steady job to find a network of people but I'm afraid to apply because I have no formal education or official work experience. Every time I read the job ads I get afraid.

I can program in many languages, I spend most of the time reading hacker news, stackoverflow or sites like that if I'm not programming or trying to find out more about the computers or the world.

I've been thinking about going to some startup meetups or tech related events but I would feel being embarrassed. try simultaneously learn about everything. Therefore I feel like I know a lot about everything but same time nothing. If someone would ask me what I've been doing in my life is past 7 years I wouldn't have an answer. Also I live in a small country/city in Europe so there are not many related events to attend anyway...

I will turn 25 tomorrow and I feel like I have accomplished absolutely nothing in my life and I'm a big failure.

What would you suggest me to do? Go back to university? Try to find a real job? I have also been thinking about changing profession (after reading things like "Please Don't Learn to Code" etc) Sometimes I doubt if this is the right thing to do in my life but same time there is nothing else I can do or I'm passionate about.

Any suggestions are welcomed...
Piracetam works. It has been in use in former Soviet Union countries for a while now (under the name of Nootropil) and it is generally available from the drugstores.

A milder version is Co-Q10, which is available here in North Am over the counter, though it's a pricey bugger.

Do your homework, decide for yourself :)
> Seems that Sidekick and Kin are counter-examples to that statement.

Microsoft threw away the working Sidekick OS and re-built it from the ground up on Win CE so that they could brand KIN as a "Windows Phone". So isn't that really a perfect example?
Galaxy S III S-Voice app now available for all Androids
Yeah I was also interested to hear his 'console cowboy' for what we'd now call a hacker. I was reading one of his newer books called Pattern Recognition... it came out well before the iPad, and yet in it he's describing an 'iBook' tablet computer device as more widely used than the laptop.
I think there is something to what you say, but we need to be careful reasoning from examples like this. Stand in a Tube station for a few minutes at a busy time of day, and you will see more people than most people saw in their entire lives, not too many centuries ago. That one of those people is callous, is not indicative of a trend.

But those numbers might be the problem. Asking a typical human to care about the 200-odd people is his rural village, is asking a lot, and so moral teachers have been pounding on their message for millennia, in an effort to get us all to behave. But now we want them to care about everyone they see in a Tube station, including some girl they never saw before, and may never see again. We want them to behave ethically toward fellow WoW players, whom they have never seen, and, in all probability, will never see at all.

That might be asking a bit much of Mr. Average Human. Arranging society to deal with this fact, is not an easy problem.
So... what incentive is there to make your services IPv6 compatible today other than geek cred?

I set up an IPv6 tunnel at home, and recently added AAAA records to my web site (a tech blog). For my very technical audience, barely 1.8% traffic is IPv6. If I look only at the RSS feed, it goes up to 3%, which seems to be mostly Apple machines and hosted RSS aggregators.
How to Gain Mass Tip # 1- Breakfast
They could be designed to run some local preprocessing and only record/forward audio when a gunshot seems significantly probable. (Not that I'd bet they actually do. We need public pressure to get them made that way.)
An unrelated nitpick: make your paragraph line-height at least 25px.
Happy 30th Birthday, Email
Diablo 3 Inferno Mode: To Live in Hell
In addition, with all the semi-frequent frenzied branding changes, Microsoft leadership seems to be acutely aware that they lack a well-regarded image with the consumer market. Perhaps they would decide against such a strategy, but "never" is a bit extreme.

As far as the carrier issue, let's just say XCom Global and the individual carriers all snub Facebook. Even without Microsoft, Facebook has more than enough cash on hand to directly buy out Sprint Nextel and/or its assets. A foothold in the US alone would be a strong enough starting position to make this feasible.
I was expecting a laundry list of absolutes. The deference voiced by all his "I think"s shows remarkable humility from this guy.
RepRap printed circuits
As another poster mentioned, that's most likely a wifi access point.

I spent the last few minutes poking around StreetView looking for a photo of the units I'm thinking of without luck (the dates Google lists on their StreetView seem quite incorrect), but a hard, flat surface would be perfect for a sound transducer. It'd also be easier to weatherproof than something with microphones dangling outside.
Ask HN: How do you protect your Mac?
I'm wondering what other Hacker News users use to protect their macs from viruses and malware?
Git rebase --onto
Technospectives: What got you into tech, and why?
Indeed, there's clearly some disinformation going on in the article:

"James G. Beldock, a vice president at ShotSpotter, said that the system was not intended to record anything except gunshots and that cases like New Bedford’s were extremely rare. “There are people who perceive that these sensors are triggered by conversations, but that is just patently not true,” he said. “They don’t turn on unless they hear a gunshot.” "

So apparently "the sensors", "They don’t turn on unless they hear a gunshot.". How, exactly, do they "hear a gunshot" if they're not (yet) turned on?

I suspect the truth is there's some software configuration that inhibits _recording_ of the sensor data until a gunshot-like event occurs (though if _I_ were designing this system there'd be at least a 30second or so buffer, so I could archive the sounds that if heard _before_ a gunshot as well as afterwards). But I'd hesitate trust that "configuration" to be particularly secure - much like the TSA "pornoscanners" - which in spite of claims of it being impossible, seem to be able to record images for the amusement of the operators and their friends…
Family robbed after cash photo posted to Facebook
Obligatory MIT version: MITHenge. http://web.mit.edu/planning/www/mithenge.html
Maybe there's an option to create a custom android rom by facebook. something based on cyanogenmod(which support 60 devices), that deeply integrates facebook.

Then push installations using independent installers ,for people who already got phones and new phone buyers ?
Ask HN: Recommendation for cheaply and automatically routing phone calls?
I'm working on a problem and would welcome recommendations.

Problem:

Person A needs to call Person B. Person A cannot know Person B's direct phone number. Person A calls into our service and we connect them to Person B.

What would you recommend?
You're Doing It Wrong: A Billion Is A Million Million
That's basically right in some cases.

For example in full-color (4 color) printing you essentially need 4 dots (halftones) to make any color. However, they aren't all necessarily lined up in a grid like pixels (it's an analogue medium). But simply dividing 1200 dpi by 4 doesn't really provide a correct calculation for the resolution at the end.

http://blog.savvydog.com/?p=106

And then you actually get into measuring with LPI (lines per inch) which can easily go above 300 for things like good magazines (though around 130-150 is more typical). 130-150 is actually around the retina display's 300dpi (a good conversion estimate is that 1LPI=2DPI but some will go as high as 3DPI).

Black and white (non-process) printing can be very different and uses solid colors. Higher quality artwork is necessary for this. That's where the 1200dpi comes into play. Fine books, black and white artwork, etc. need artwork at 1200dpi and the LPI can easily go above 500.
Are You a Grinder?
Customer Lifetime Value Calculator
2012 Hogan Mens New Arrival Shoes H1115
Yeah, what exactly does the weight of 1 sky falling on your head feel like? Feels pretty decent to me.
Why become a programmer? It makes economic sense
Ah, good point. I'm guessing gaps in 3G coverage and/or the unnecessary extra layers of SkypeOut are the risk? In any case, I suppose my idea could be revised to include CDMA/GSM specifically for emergency calls (which would rely on roaming).

As far as porting, it would definitely be a nice feature, but I'm not sure would be necessary for a successful market entrance.
I share the view, however:

> So it’s not that cheap people require more support. It’s that people who require more support are more likely to make their decision based on price alone.

What evidence is there of this? Surely if you have a plan for $10, $50 and $100 you're going to have more customers at the $10 price point simply because it's so cheap and therefore more support will go to people at that price point. Has anyone even actually released any sort of statistical analysis of price points and support taking into account the pricing, total customers and the amount they use the product?

Also who the price point is aimed at matters. For example if your product has a $10 price plan aimed at individuals and a $50 price plan aimed at businesses you could see the $10 price plan requiring more support (on average) simply because the personal users use the product more actively, not because they're paying less. I as a customer won't pay $50/m if your $10/m plan suits my needs.
IRC backlog in Pidgin using ZNC
Why should you pick a professional chauffeur services for airport transfer
Locks are mostly superficial. I've seen too much footage recorded from security camera monitors with phones to think that any monitoring system is secure or locked when people are involved.

On the growth of such systems: it is almost inevitable that sensors end up getting placed everywhere. You have hundreds of sensors in your phone right now, many of them are uploading data to websites at various times.

Sensors will be placed on almost every utility as a matter of safety and efficiency. It is important to know when a pipe breaks or if there is a small leak in a gas main. Look up any given utility company and they will probably have some "smart" this or "integrated" that scheme in development.

There are cameras everywhere in most cities now, it is a matter of time before there are microphones too. Identifying who is where and who is speaking is a programming problem that has mostly already been solved. The two will be put together in the interests of safety and fighting crime. Someone might even invoke the terrorism word to speed up the process. Small-scale at first, in key places and important settings. Then rolled out across entire cities and states.

I am almost entirely visible to security cameras from the moment I step outside in the morning until I reach my office. Eventually, these systems will be integrated and process data effectively. The question is, what happens then?
I mean, "research" is in your name and I ask you what innovative research and development have you done lately?

R.I.P. R.I.M.
Being committed 24/7
http://www.youtube.com/watch?v=D1q8zKtnU6U

I'm sure that silencers will still be detectable? They do make the gun softer but it's still noticeable if you know what you're looking for I'm sure.
When our life ceases to be inward and private, conversation degenerates into mere gossip. We rarely meet a man who can tell us any news which he has not read in a newspaper, or been told by his neighbor; and, for the most part, the only difference between us and our fellow is, that he has seen the newspaper, or been out to tea, and we have not. In proportion as our inward life fails, we go more constantly and desperately to the post-office. You may depend on it, that the poor fellow who walks away with the greatest number of letters, proud of his extensive correspondence, has not heard from himself this long while.

I do not know but it is too much to read one newspaper a week. I have tried it recently, and for so long it seems to me that I have not dwelt in my native region. The sun, the clouds, the snow, the trees say not so much to me. You cannot serve two masters. It requires more than a day's devotion to know and to possess the wealth of a day.

(Henry David Thoreau, Life Without Principle[1], 1854)

[1] http://en.wikisource.org/wiki/Life_Without_Principle
Facebook is a productivity killer, but it does POP email as well.
If this isn't a bubble, then what is?
Kingston Wi-drive wireless storage
Google and Facebook Privacy Policies, side by side
I don't know where you're from, but around here highway dollars are spent expanding and rebuilding highways to increase capacity and throughput. Projects that focus on only safety -- removing left-lane exits and entrances, adding full-width paved shoulders, increasing grade, increasing curve radius, etc -- are rare-to-non-existant uses of scarce highway dollars.

States -- especially California -- have a serious interest in increased highway efficiency. The only thing about the original premise that I wonder is how much additional wear-and-tear the high speed lane would create, especially considering it would need to be kept in optimal condition to avoid deleterious safety affects at such high speeds.
Weekly Mobile App—the Magical Way to Find Video by VideoSurf
The 35th Birthday of Star Wars? It Died 15 Years Ago
Startups Should Outsource HR
1 megabar (roughly 1 million atmospheres) is equivalent to a thousand tonnes of pressure on every square centimeter of your body.
CraftStudio Alpha to be released on Thursday
From the official blog post:
>There are however some links which could indicate that the creators of Flame had access to technology used in the Stuxnet project - such as use of the “autorun.inf” infection method
If I'm not mistaken, you can find youtube videos on how to exploit autorun.inf to make a prank virus. I'm with you on these guys missing easy stuff.
I don't have evidence, sorry. It's just something I've heard repeated often by many different people. Maybe Patio11 can chime in?
On the other hand, a full police force can handle more than murder. This can't. That would be okay if murder was the function of a police force, but its really just another amongst many responsibilities of theirs.
Or use a silencer.
List of WebDirections talks
I'm pretty sure this has been out for a while, right?

Regardless, it's kinda neat. But it's more of a gimmicky thing to me. More of a "Hey look at this I can view websites in 3D!" thing you show your friends, not really something that would help in most situations. (There are probably exceptions, though. Like trying to debug the nesting of elements.)
I just don't want another Platform to develop for other than iPhone and Android... Don't tell me it's gonna give me more traction/users.. 100% of users divided 1 way is better than 100% divided by 3!
Keep out: NASA asks future Moon visitors to respect its stuff
THC (marijuana) helps cure cancer says Harvard study
There is also Satchless.
They're buying the top 20%, in my opinion.

Keep in mind, 20% of 500k apps is 100k apps. Do you really think there are are that many 4 star apps in the app store?
Former Foursquare Cofounder Developing “Google Analytics” For Your Body
Why shouldn't Rogue Amoeba have "caused a scene"?

As another comment notes, they've probably had the code to do this for a while. Why should Rogue Amoeba continue to sit on it instead of taking the chance? Unless they were banned from the App Store entirely (unlikely based on past practice and probably less of a concern since their app was a free add-on anyway), they'd have lost nothing (and gotten a decent amount of sympathetic publicity in the process).
Challenge: copy this entire table into Excel without breaking something
Are customers actively looking for a solution? If that is the case, can you educate them on youtube etc?

Also, consider reaching out to Patrick MacKenzie - patio11. I don't think this thread is getting enough attention.
> technology used in the Stuxnet project - such as use of the “autorun.inf” infection method

Can't tell if you are trolling or ...
Slippery-slope arguments come into play almost any time you use technology to solve social problems. It doesn't matter that the slippery slope is a logical fallacy, if the entities involved (i.e., people) aren't logical ones. "Libertarians" harp on this stuff because historically, the cost of letting governments do anything they want runs into the hundreds of millions of lives.

A more enlightened approach would be to ask why Chicago has so much trouble with gun crime, given that many other American cities have higher per-capita rates of firearm ownership both legal and otherwise.

One thing's absolutely certain: the real problem, whatever it is, will not be solved with digital signal processing.
Planeto - Your Knowledge Network
I highly doubt Facebook wants to make their own phone... but if they were here's my take on it.

1.) They could benefit by adding new hardware. Imagine they remove the screen and opt for a google goggles like interface. If they own this channel, they become a real 100 billion dollar company.

2.) having closer access to users communication gives them more vectors to scrape users personal data...
With the masses of metrics being collected in all the lean startups, it would be spiffy if this assertion could be supported by something other than rampant speculation.

This might feel true because a small number of customers generate the most support calls and the majority of customers are expected to be on the cheapest plans so you'd expect an overlap.
I object to your continued use of "stolen" etc. I believe extracting the key for the proposes of interoperability is still legitimate, even if Apple doesn't like it.

Let's say that's the reason, in any case. Why would Apple pull the whole app rather than simply making them remove the key and reverting back to the old functionality? Some petty sense of retribution?
"...Police inspectors were unanable to disclose how the girls’ family address was known. However, dozens of potential avenues of attack exist..."

just guessing here... exif geotag data?
The idea that it could've been a lie -- that the AI was engaged during the crash -- doesn't have to be a conspiracy involving PR. I think if it was in fact a lie it would be much more likely to originate from the engineer in the car.

We work hard on the systems we build and a simple lie like that could absolutely seem to be in the interest of the project at a time when this technology still freaks-out lawmakers.

Should we believe Google? Sure, probably.

Is it absurd to question their veracity? Are you kidding? Are you familiar with American capitalism?
I don't see the advantage. What market segment are they attacking? Technology wise it would be a step forward from the current form of telephony, the consumer on the other hand doesn't care, they just want a product that works in the end and which they can use to communicate with their friends and family.

Google has done wonders with android because they attacked a market segment that apple was ignoring, cheaper smart phones for people that don't necessarily care so much about apps.

With google's buyout of motorola, im just waiting for the 'free' phone. where sms and a phone line are free for users in exchange for reading/listening to ads. Data plan is free (with a limited amount of usage) in exchange for a permanent status bar that displays ads.
The reason that the ones who make their decisions based on price alone require more support isn't always due to the fact that they're dummies. The article doesn't really give too clear a definition of support here. It can mean honest to goodness help required or it could mean complaints and demands (often veiled as questions). People who pay the least simply don't value the product as much. They're not willing to put in the time required to learn how to really work it and they're always the first to complain that the one feature just out of their chosen plan should be included.

Their lack of perceived value for the service isn't always attributable to price alone either. The fact that they chose the cheapest usually means that they're either just plain cheap or they don't understand how valuable what they're getting is to begin with which leads to the, acting like dummies and being demanding. Now, when I say value in this case I don't mean money. I'm talking about their perception of how useful the product theyre getting is.

Besides that minor clarification I totally back this up. The higher priced item will always have more features and attract people who know the value of those features because they're already educated about their benefits most likely because they've used similar solutions before.