skysight-inc/HackerNews huggingface dataset:
The interface and behavior of std::string is standardized.

Library writers are free to implement it in any way that honors the standard. However, sometimes the requirements may lead to less than optimal implementations, I believe.

So as long as Chrome uses std::string for internal use only, there shouldn't be any problems. Using them across ABI boundaries, however, is another story.
I wouldn’t call anybody a fool, but I think you’re right about the temperament of people who leave. I think it's attributable to a number of parallel factors: 20-something unemployment in the United States, popularization of science (e.g. a Cosmos reboot produced by Seth MacFarlane), longstanding belief that attributes more education to more success, et al.
I wonder if there are any schemes making e-book readers available in prisons - no danger of smuggling in drugs in a stream of bytes!
I thought the main endurance metric for spinning disks is total bytes read or written? AKA time where the head is right up close to the platter. That doesn't seem too far off to track both total read and write IOs and/or bytes.
[WIKIA] Is Looking for iOS Developer – Poznan, Poland
Strategies for Managing Mobile App Versions with IBM MobileFirst Foundation
While it's not built-in to Android, the app Glympse does exactly this.
my sentiments exactly. however there is a legacy app that's been floating around for a few years... some use it, most don't. it's called a business plan.
The one issue brought up which I think it a legitimate concern is, how do you insure the book is not used for improper purposes. Those would be but not limited to, concealment of prohibited objects, drugs, and messages?

You can screen for some, but I would expect all parcels to have some limited form of search. I would tend to think a better option would be to fix the availability of library services to prisoners, perhaps even only allowing access to the delivered books in a library setting; books are kept by the system in the library for the prisoners.

I understand that idea that reading is fundamental, but controlling what is in their environment is a big part of maintaining a safe and secure environment.
This type of number is just playing a trick on the brain. It doesn't mean anything more than Earth has a large population, but is expressed in units that remind people of their own mortality.

A lifetime is lived sequentially, but in parallel 3 "lifetimes" of seconds are experienced by the population of Earth every 1 second of wall clock [1]. And if my unit conversion isn't totally fucked, last night the world spent over 80,000 lifetimes asleep.

The world has a population large enough that the human brain doesn't comprehend the number on it's own. We need charts, graphs, and spreadsheets to even being to make 7.125 billion mean anything to our brains.

[1] http://www.wolframalpha.com/input/?i=life+expectancy+%2F+wor...
Except Nintendo DOES keep making sequels to Mario, and they keep selling. The difference is they release every few years, and fill in the gaps with other stuff. Not a new angry birds clone with new graphics every 3 months.
I'd try not to confuse, how people should behave logically with how they actually behave.
This is still very much work in progress:
http://arxiv.org/abs/1406.4920
Whoa… 2 grand? That’s really a lot! If this is your First build, I guarantee you will crash it at some point. You will break stuff. I’d much, much rather crash my 150-bucks quad than a 2000-bucks video drone.

You can build a nice entry-level quadcopter for around $250,-:
You actually don't need that much:
- Frame (F330 clone $8.90)
- Motors x4 (Turnigy 1000kv, $18.20)
- ESC's x4 (Turnigy 30A, $9.99, flash them with SimonK)
- Flight Controller (KK2.1, € 29.99)
- Transmitter + receiver (Turnigy 9x, € 59.99)
- Props (2CW, 2CCW, $2.46 per 2. Do get extras!)
- Battery (2200Mah 3S 25C, $10.57)
- Charger (Turnigy Balance charger, $22.95)
Total cost: a couple cents over $250. You can do even cheaper when shopping around Chinese webshops, but this should give you a pretty good idea. All of these parts are from Hobbyking, by the way. (Edit: formatting)

Having built and flown a couple of them, I highly recommend the APM flight controller. It’s highly configurable, but flies very well from the start. As opposed to (my experience) the MultiWii, for instance.

I order everything from Chinese webshops (dx.com and banggood.com) and they are faultless. Quality is okay, prices are rock bottom and customer service is surprisingly good.

This was a great article when I started out:
http://fpvcentral.net/2013/03/high-performance-quadcopter-fo...
>> As I said, we have intermediate language, but we don't accept it from outside of VM (for now).

Your approach very bad.

It does not help in the case where other professionals in this area can help you make VM better and effective.
Come on guys, two green names comments with actually nothing insightful besides a cliche phrase?

It's like you are begging to be flagged =/
Another OT data point from http://en.m.wikipedia.org/wiki/Donald_Duck_(comic_book):

"in 2014 it was read by 1.6 million Dutch citizens above the age of 13 [...] In 2008 it was the most read magazine among Dutch students (10%)."

There is not much particular about that 10%; it is about even with the "1.6 million Dutch citizens above the age of 13".

Part of the appeal is that it has new stories specially written for the Dutch comic. It also has cameo appearances of real life persons. It is not uncommon to see a newsreader, sports star, politician or criminal with a name that resembles that of a real Dutch person appear in a comic. Getting that done to you is a badge of honor. Google tells me Mark Zuckerberg even made it that far: http://duckipedia.wordpress.com/2014/05/05/mark-zuckerberg-i..., as did the Beatles (http://duckipedia.wordpress.com/2010/05/27/de-bietjes/) and Madness (http://duckipedia.wordpress.com/2012/02/16/madness-in-de-gal...)

Click around for other examples. Apparently, Carl Barks did that, too, with Brigitte Bobo (http://duckipedia.wordpress.com/2007/11/28/brigitte-bobo/)
4. The euro and RMB become the new reserve currencies, and thus Germany and China leverage their status as the countries having the factories.
You're half-right.

With OWIN[0], you can use any application server you want that supports it, there seems to be 5 as of now, including IIS and Kestrel (a dev server that runs under Mono) which aren't mentioned on the OWIN page.

IIS, though, right now is the de facto server for ASP.NET sites.

[0]http://owin.org/
like someone told the truth for once.
Actually, I think you can easily get that number down to 5 or 15%. Well below 25%, anyways.

The stat that people really care about is, if I get married to my partner, what's the divorce rate of people similar to me.

If you're reading HN and are thinking about marriage, it's quite likely that most or even all of the following apply to you. All of which have shown indications that they lower the divorce rate. The first three alone drop the divorce rate below 25%.

- getting married later then 1980
- first marriage for both
- both older than 30
- both have college degrees
- both make wages > $60k, < $1M
- similar ages
- man makes more $ than woman
- getting married later than 1990
- neither goes through an extended period of involuntary unemployment
- neither goes to jail
Can I use the API to figure out that, for instance, the x-wing is /vehicles/1 and Mustafar is /planets/7? Otherwise, how would I know?
Really great blog post with a great message and composition. As a testament to the theme I wrote an API over a weekend that returned ebola data and it has been very heavily used by people around the world. The astounding thing is that the World Health Organization, from whom I gathered the data, only offered it at the time in the form of PDF files. It's all open source if anyone's interested: https://github.com/montanaflynn/ebola-outbreak-api
Self-Organising Maps for Customer Segmentation Using R
This is where I really don't understand the concept of trying to force your law/will/idea(ls) on other people.

-Today I posted an image of an apple on my web-page.

-The city in the next town over has decided that images of apples are bad/wrong/evil and has passed a law banning the display of apples.

-The city that I live in gets an angry letter from the other city upset about the portrayal of apples and the wanton disregard for their laws.

Why oh why can't we live in a world where the concept of "If this material is illegal in your country, you shouldn't be looking at it."
or
"Be aware of laws that pertain to you and respect them or change them if you disagree."
Socket activation does not need systemd in any way. You can launch any socket-activated daemon with https://github.com/LEW21/sdlaunch - without any dependence on systemd.
Yes, and for larger areas, it's a toss-up whether it will be expressed in acres or hectares.
Quantified Self for games, I like. Would be fun to implement support in some open source games like quake world.
PPP is supposed to be about "how well people live" by material measures. But, as you point out, material measures don't always accurately reflect quality of life.

Other people who posted here claim nominal GDP is how you compare nations, but that's got problems, too: Is US overspending on health care really adding to GDP? Is military spending, Homeland Security, cops, prisons, adding to GDP, or those costs and drags on our wealth? Is financialization adding slushy numbers to GDP?

Look at the US productivity numbers. Impressive! But is our spending on health care really productive? Military? Etc. There is a ton of fudge in US economic numbers.

I'm sure China's numbers, with the state enterprises, have a lot of squish to them, too. But the US is overtly fooling itself in many ways.
All I see anymore is the [X] to close an ad if it's a popup. I don't even see the advertiser or product and if I do, it's an automatic mark against them.

Otherwise, I've learned to read around ads without really seeing them.
HMAC MD5 is a perfectly reasonable choice for some situations.
While I think this is an ideal approach for selection, how does it work out in practice? How will the candidate find the time to do all that while they are (most likely) employed somewhere else, and are trying other options too?
This is the problem with C++ (and in a certain part, with C)

"Everybody" has their own C++ string (MFC, QT, several libraries, heck, even GObject library has their strings)

Same with C

Now, you won't see anybody reimplementing strings in Java. C#, Python, JS, etc Lessons learned, their strings work

std:string is certainly a step forward and should be used for most projects today
In what sense is hydrogen more "dense" than most current battery technologies in storing energy? By volume? By mass? I thought that several battery technologies are already better than (economically) stored hydrogen for storing energy, but I would be delighted to see some participant here on Hacker News "show the work" to compare storage of electrical energy through different means and discuss the trade-offs.
The mind-bending effects of feeling two hearts
> I'd love to see a project that builds out grape to be more like a standalone framework like rails is

You should check out Napa by Bellycard. It takes Grape and brings it together with things we all love from Rails like ActiveRecord, Rake and generators that make for a productive framework.

https://github.com/bellycard/napa
ETA is end of January :)
So you can make an info product that is an app? You can make it "email first" (as some people are calling it these days). Basically email me the steps for today, and if I do them email you back "okay", then you can send me the next step tomorrow. If I don't email you, or email you "help please", then you can send me further instructions or provide more details.
Node.js, a popular tool for building modern internet services, has split in two
Nintendo has got a long way by rehashing the Mario and Zelda IPs but crucially they made new games with new gameplay.
RailsBricks: Start Faster with Rails
As well as ID, we'll do some fuzzy matching on the URLs as well, so

GET /api/vehicle/t-65-x-wing

and

GET /api/planets/mustafar

will also work
I've moved on to Napa by Bellycard. It takes Grape and brings it together with things we all love from Rails like ActiveRecord, Rake and generators that make for a productive framework.

https://github.com/bellycard/napa
> supercharger network is still proprietary

Tesla opened up their patents but I doubt current non-Tesla electric cars can actually be charged by them without over-heating.

I also doubt they will just let anyone use their superchargers because they are currently paying the power bill... but you'd have to be on the pay from some dubious source to turn this fact into anti-tesla spin.
ClearTax (YC S14) is hiring in New Delhi, India.
Hiring software engineers -- founders are programmers, engineering first culture.

Drop me an email: archit @ cleartax.in

ClearTax is in the unique position to shape the future of India's financial software. Software and experiences designed by us will determine how Indians e-File, save on their taxes, invest and lead simplified financial lives.

Most financial software in our country is from the 80s and stuck in legacy. Most people today have powerful smartphones in their pockets and their lives are better because of apps like WhatsApp, Google Maps and Evernote.

Simple and intuitive financial tools for taxes, accounting, payroll, invoicing, investing do not exist in our country today. We want to change this.

Our mission is to simplify every Indian's financial life.
And we'd like to invite you to join us in this mission.

We use a range of programming languages: Functional programming (F#), Java and C#, Python, Javascript. We are huge fans of brevity in code. We use both SQL and noSQL databases.

You can read more at http://cleartax.in/meta/careers
I'm not really sure, don't they already block sites that contain all kinds of nazi propaganda even if they're hosted outside of Germany?

If there were hundreds of accounts sharing nazi propaganda all over Github, wouldn't they be forced by law to block Github in Germany?

As far as I can see it would not be against the Github terms of service to share such content as long as it doesn't violate any laws in your jurisdiction.
Just say -40. Then it doesn't matter which scale you're using.
A move that would, no doubt, be reported in the tabloid news as "Evil prisoners given luxury top of the range tablets"
It's called 'disruption' and is very hip in the Bay these days...
As someone who is currently going through the process of trying to get a working visa in the US as an Australian, I find this story appalling. They make it beyond difficult for someone like myself who is a self-taught developer with 8 years experience to get a temporary work visa in the USA to get experience working at a company like Twitter or startup, yet people who lack any kind of skill that would warrant obtaining a skilled-worker visa can easily get one? I don't get it.

Why is it so hard for someone like me who might not hold a bachelors degree nor have the experience to substitute, but I have the skills and experience to do my job well, yet it isn't good enough?
>I really fail to see what they are trying to do with this. That game has hardly any "story" behind it

That hardly troubled tons of other movies that did the same, from Garfield (comic strip, not much of a plot), Prince of Persia (prince saves princess for evil guy, that sums it), to the Lego movie, etc. They can always write a plot involving pigs and birds fighting.

Plus, there's the existing Angry Birds cartoon series:
http://en.wikipedia.org/wiki/Angry_Birds_Toons

>and the characters are not really that interesting.

They are funny looking enough to sell hundreds of millions of merchandize with them on. And the interesting story wont be in the game, it will be in the movie (if they succeed).

The benefits though are obvious: if they succeed with the movie, they can tap into kids minds like Mickey Mouse, not just like some forgotten in 5 years game fad.
Visualising Statistics: The importance of seeing not just describing data
It always depends on your needs.

Before you start avoiding std::string, note that the article said that one of the problems was that they went from std::string to C-strings and then allocated a new std::string. This often happens when you use both kind of strings in your code. The takeaway is to stick either to C strings or use std::strings with reference passing, dropping down to c_str() when needed.
Its a hard problem, to be sure. You will never know what their motivations are unless you work with them. The best that once can do seems to be looking at their work experience, at the kind of stuff and places they've worked on before and then... taking a leap of faith in thinking that the person will do well.

Passion is highly overrated, I think, and a lot of people define it differently. For some, it means staying at the office for 12 hours everyday including saturday. For others, it means keeping regular hours and contributing good quality work everyday, yet recognizing that one might need to work more (without overtime) when the job demands it. And the manager should know not to make these kind of situations a regular thing and reward the employees accordingly.

As to the question of attracting the right kind of people, although it can be faked, the curios ones are usually the best. If the person you're looking at is always asking questions, or making suggestions, not to impress you but to get a genuine understanding of what you do and what you want her to do, that is the best sign of a passionate employee.
> Not all the cells made by the gigafactory are destined for vehicles. Some will end up in the company’s Superchargers, allowing Tesla to cope with sudden bursts of demand should multiple vehicles need to recharge at once. Others will be used at Tesla’s assembly plants to store energy when it is cheap, typically at night, and release it when the price rises.

This surprised me, but Wikipedia says Li-Ion efficiency is 80-90%, so I can see that being worthwhile.
A few tips:

1) Turn off the background syntax checker (click the dot in the bottom right corner).

2) Turn off "Program contour" in the "View menu" if you happen to have it on.

If that's not enough:

3) Use "Limit Memory" in the "Racket" menu to limit the memory use for the user program to say 256MB.

4) For more speed: In the language menu use "Choose language...", click the "Show details" button and turn ofd debugging. (But that's a last resort)
What worries me most is the fact that China has a massive real estate bubble and corruption in the real estate and banking sectors. RE Developers take out loans from the major banks at rock-bottom interest rates to build skyscrapers in towns where no one can afford the rent, and promptly turn around and sell the units off to investors. In the major cities, the average price of a new flat is often hundreds of times the average annual income, and are bought up by a tiny population of super-rich investors. Wealthy families often own hundreds of flats in Beijing and Shanghai, as well as homes overseas in Canada, the US and Australia/NZ. Many of them sit vacant. That is not a good sign for economic stability in China.
Does anyone know what watch he's wearing in the video?
Please do :D
Your logic ignores the reality of the situation. Not sure if trolling, but:

People use TPB mainly to steal/share IP.
People use cars mainly to get places efficiently, and occasionally by accident run people over.

Nobody sets out to get hurt while running with scissors (well, maybe some episode of Jackass). Nobody except the very rare psychopath sets out to run people over in their car. Almost everybody who goes to TPB is looking to steal/share IP.
folly::fbstring, a drop-in replacement for std::string, is part of the folly library that we (Facebook) open sourced a while back. It allocates small strings in-line and larger strings on the heap and has optimizations for medium and large strings, too. It's proven quite effective for us, particularly when used with jemalloc, which it conspires with for more optimal memory management. We use it as std::string for our C++ applications and libraries, completely replacing std::string both for our own code and third-party code.

https://github.com/facebook/folly/blob/master/folly/docs/FBS...

In addition, it is worth noting folly::StringPiece (from folly/Range.h), which is generally a better interface for working with in-memory ranges of bytes. Hardly a new idea (it's inspired by similar libraries, such as in re2), but it permeates the APIs of many of our larger C++ systems, and folly itself, and often avoids passing std::string objects around at all.

Finally, there is also folly::fbvector, which offers similar improvements over std::vector.
C++'s std::string could store the first few characters inline, and only fall back to heap storage if the string is too big. I'd be surprised if some implementations don't do this already.

TurboPascal's strings had a number of quirks. Maximum length was limited to 255 characters, but different string variables could declare different lengths in their types. Writing string functions that could work with any string required using the OpenString type[1], which passed the string by reference instead of by value, with pseudo-const semantics (the parameter couldn't be passed as a var parameter elsewhere). Using the default String type meant allocating 256 bytes for every string variable. You'd want to pass it by reference (with 'var', and later using 'const') to avoid the extra copying. {$P+} in later versions made string-typed parameters openstring by default[2].

[1] http://putka.upm.si/langref/turboPascal/0109.html
[2] http://putka.upm.si/langref/turboPascal/047E.html

(I implemented the migration from AnsiString to WideString in the Delphi compiler when I worked for Borland. I know far too much about Pascal and Delphi strings.)
The gaming market is pretty dynamic and it is very hard to keep up with your competitors. People do play games but I don't know many people who keep playing the same game every day. Angry Birds came up with different versions of the game but the game dynamics never changed. You were still shooting pigs with birds, be in space or on mother earth. Some how these game companies have lots of loyal followers. I visited NASA (Cape Canaveral) last month and there they have a separate section in the NASA facility to attract kids with Angry Birds (Space version). Pat on the back (pun intended) for people investing so heavily in these gaming companies, when everyone knew that there is going to be another game coming out soon which will rock for few years before dying.
Except LEGO is a product and the LEGO movie is nothing but an off shoot.

If LEGO the movie is a flop, that in no way relates to the success of LEGO product.

LEGO has been selling bricks for decades and their volumes just continue to increase.
Well you have never been a tyrant either, eh? Sure you wouldn't understand...
That is the kind of magic thinking of C++ programmers sometimes exhibit that drives me insane.

Yes, compilers have become excellent at optimizing code, but they aren't magical. The generated code will have some semblance to the code we write. Eliding dynamic allocations is just not possible statically. Heck, we aren't even able to emit warnings for missing deallocations reliably and have to use run-time instrumentation for it.

Even in C++ or C, even with good compilers, we still have to go the extra mile if we want fast code.
You can specify the allocator to use with basic_string, and stack based allocators are possible. I've certainly used them with STL containers. It's just not the default.
This is awesome, and another great example that "If you provide data, people will consume it"!
Show HN: Phoreplay, Phabricator hosting