skysight-inc/HackerNews huggingface dataset:
g++'s sizeof(std::string) is only 8 bytes because it's a single pointer such that the struct can be reinterpret_casted to a const char * and you get the same thing that c_str() gives you. It's reference-counted (across threads!), copy-on-write. I don't think people would mind a 24-byte std::string (on 64-bit systems), which would consist of a pointer, size, and capacity, and which would allow 22-byte strings to be stored inline.

On Windows, sizeof(std::string) is 24 or 32 depending on 32- or 64-bit. sizeof(vector<char>) is 12 and 24, respectively, of course. I believe the extra size of the std::string is for storing strings inline. I'd guess their implementation looks like struct { char *ptr; size_t size; union { size_t capacity; char buf[16]; } u; };, which sacrifices some size in favor of keeping the code paths simple.
Nitpick: I don't think the output buffer would be const.
I've been informed by evil bastards whom love to outsource that Ukrainians are perfectly happy with $5 per hour.
I couldn't agree more with this post of encouragement.
To counteract that, you should buy $500 gift cards at grocery stores. I got a year of free Amazon Prime by purchasing two $500 gift cards at Giant using my AMEX card. Check out /r/churning on reddit :)
You've put more than 1 standard 8-hour work day of effort into the project. If you round up, you have two days.
The discussion concerned Apple and Rovio. Both are joint-stock companies.

Rather than discuss what you aren't talking about, how about if you describe what you do have in mind, and the form(s) of corporate structure involved, and what time periods.

I think you'll still find that prior to the Industrial Revolution, there were relatively few companies of any significant description. Sole proprietorships and the like, and a very few royal charters. 90% of all production was directly agricultural.
Announce a transition time a few years into the future so the miners don't get a capital loss.
Code clients to switch over to the new algorithm at the transition time. When the transition finally comes, even those with slightly out of date client will switch over, since it was coded far in advance.
Schedule for 31C3 is out
LOL. Doxorcism is pure genius. :)
Library for partial support of CSP style concurrency model in PHP
The fact that there are successful website implemente in PHP is not a legitimate reason to choose it.
My PHP learning library has an example case[0] that uses Markov chains to do the same thing.

[0] https://github.com/gburtini/Learning-Library-for-PHP/blob/ma...
> our evolution or lack thereof as a whole

I agree with your broader thrust (Spaceship Earth, etc.), but evolution does not work that way.
Was I the only one who expected to see a Dirac delta function used for February? I was pleasantly surprised.
Whoah. No. It's the opposite. The shittier your projects, the lower your rate, the more aggressive you have to be with your pipeline, for obvious mathematical reasons.
New file format proposals generally aren't news, unless they're already implemented in some popular product. Finding out the latest amazing thing that Fabrice Bellard has been working on, that's news. And that it's already implemented in your browser via Javascript? Priceless.
In the US, that works to the benefit of the contractor; the problem is that clients know that, so if you look like someone the IRS might classify as a full-timer (an unincorporated sole practitioner), they may preemptively withhold taxes for you.

This is a problem a couple friends of mine have had. It seems like incorporation, which is cheap and something you should do anyways, mostly fixes it.
I use minihack and tested it. They just appear to fail.
As somebody who can still only grow a neck beard, I've been trying to get into functional for a while now. Maybe it's because the examples are in python (a non-crazy looking language I've written a lot of lines in), but this is the first time I've read an FP article and thought I might enjoy explicitly using this stuff. I've been low-side effect and anti global for a while, but filter() is sexy.
Wow, just a truly narcissistic and overall terribly written piece of utter drivel.
That could happen but in a lot of strictly typed languages it would be non-obvious and special effort to do so.

There's absolutely no justification to send ints when you have any reasonable chance of needing to change it to a string later. Besides, IDs in a public API fundamentally are not numbers. You don't add them, subtract them, multiply them, shift them, inspect any property of them besides equality, or anything. They're opaque tokens used to identify things with the server.
The pricing was why I switched to Shopping Express.

No delivery fee (yet), and I just make the occasional trip for produce, which is fine since I like to pick it out anyways.

Once Google starts charging I'll probably switch to whichever has an API so I can automate my own lists.
Would Asm.js + IE be faster than DartVM + IE?
How to Convert 2D Blu-ray to Side-By-Side 3D
Sounds like an extra step to me ;-)
Show HN: grunt-hamlbars-js – convert Haml to handlebars templates
In 1977 Jim Fixx published the best-selling book "The Complete Book of Running" which popularized running for sport, and purported to demonstrate its health benefits - including increased longevity.

7 years later he died of a heart attack while jogging at the age of 52.

His death doesn't mean running is a bad idea - a single anecdote is statistically insignificant - but perhaps it can remind us that nothing we do can guarantee a long and healthy life.

All too often we take a mildly correlated statistic, give it a hand-wavy air of "science", and then pronounce it as a set-in-stone moral absolute. How much of the received wisdom about healthy lifestyles that you were taught has been shown to be completely wrong? I don't doubt that in 3 years there will be another New York times article, demonstrating why running is actually terrible for you, and you should never do it no matter what age you are.

Growing up in a secular society ancient religions can seem awful strange: why did people worship stone statues and sacrifice to them? Did they really believe all that effort did anything?

But perhaps our modern obsession with "healthiness" reflects the same underlying human motivation: incapable of accepting the reality of our own deaths we grasp at anything to try and give ourselves the illusion of control. Is eating an organic strawberry in the hopes of living longer really any different than performing a ritualistic dance in the hopes of bringing rain?
If you're stopping yourself from falling when running downhill, you're doing it wrong. You should be "leaning into" the hill, which is counterintuitive and feels like you're going to fall, but is way better for your knees and also faster than stopping yourself.
Not really.

Webvan had a ton of CapEx spending on infrastructure.

I don't think Instacart has to worry about B&M warehouses or fleets of delivery trucks.
Concerning the first Iraq War:

>Secretary of Defense Richard Cheney prioritized U.S. interests in a statement before the Senate on December 30, stating that the "first reason behind the president's policy is the prospect for further aggression"; the second, which is related to the first, is the domination of global oil supplies; and the third is the notion of the new world order.[1]

[1] The New World Order in Theory and Practice, Presidential Studies Quarterly, March 2001
http://web.archive.org/web/20050505134608/http://unitedelite...
That only works for some grades. The grades in the Bay Area are pretty steep. If you leaned into the downward slope, you would be on your face in a few seconds.
>"You believe in helping your clients, right?"
"Of course."

I think this might be the snag. The people who will pay what the SBO is worth will likely not be the same people as the current clients.
> why you should respect the jurisdiction pertaining to other regions

Some of us highly value open debate and discussion. Perhaps because it's a core value in some cultures around the world, but maybe that's overly romantic. I suspect many of us have just read Milton's Areopagitica [1] or Mill [2], and have yet to hear any convincing refutations.[3]

So those of us who recognize the value of open sharing of ideas will chafe at any suggestion that ideas are best refuted with suppression.

Others in the world don't share these views.

So we're left with a dilemma that cannot be resolved through mutual respect. You can't both openly debate controversial topics and be silent about them. There's no middle ground. There's no "respecting others beliefs" on this. These are strictly incompatible views on the world, on what information I'm allowed to discuss with my neighbor.

I don't believe any government should have the power of thought control, so I reject the attempt of (especially foreign governments) telling me what I can or cannot discuss with their citizens. I respect the people around the world, but I cannot always respect their laws.

[1] http://www.gutenberg.org/ebooks/608
[2] http://blog.supplysideliberal.com/post/58569584868/john-stua...
[3] Unsurprisingly. How could anyone seriously argue against open discussion and debate while discussing and debating the ideas involved? It's inherently contradictory. Or, those in favor of suppressing speech should first lead by example.
Thanks for posting — after reading Pierre Cartier's article in the Inference Review it is exactly the tour of Recoltes & Clef that I was hoping would appear in time. I had no idea whatsoever that it already existed.
That's far from indistinguishable to me. It's actually quite obvious that the BPG is blurring detail at that compression ratio.

Edit: it's particularly noticeable in the wood grain patterns. Also, there's a soft grey dot to the left of the top of the lamp, 100px or so, that's entirely missing in the BPG. There are loads more examples...

Edit again: the color saturation of the rug is pretty washed-out as well.
If you want Designers to start using this, then we need a photoshop plugin, an illustrator plugin, a Sketch plugin, a pixelmator plugin. Make it easier for us to export images as a .BGP. If the images are truly smaller without affecting the current user experience of users using mostly modern web browsers, then we're more likely to pick up on using this.
Good article as well as some good advice here.

I had been billing at $75/hourly and feeling burned out and that it's just easier to do a day job. Clients would always ask for my rates and then get back to me. Then a new client, who had seen some of my work, contacted me to see if I was available. I was just wrapping up another gig that week, so I said I was available immediately. He then says, "Do you think you could work for $100/hour"?

So he seemed to think he got off cheap and meanwhile I'm left thinking I'm definitely not charging enough.
Of what order is this Markov chain? To me at least, this looks a lot more sensible than the usual gibberish produced by chains of order 1.

Anyhow, hilarious.
FWIW, I think the DataFrames package and its dependencies have consistently operated at the boundaries of what we know how to do efficiently in Julia. The package has had lackluster performance in many contexts primarily because it adopted many idioms from R and Python that were sharply at odds with Julia's type inference system. We're starting to clear those problems up, but there are still lots of unsolved challenges we need to resolve.

If you have any ideas about how we should modify the basic data types and functions defined in DataFrames, those ideas would go a long way to making Julia a better language.
I built a system around Iterated Systems Poem Colorbox SDK in the mid-90's. I was always impressed by what they were achieving but the horsepower wasn't there at the time to make the compression process very practical if you were processing large numbers of images. I still have the SDK sitting on my shelf, may have to pull that out sometime.
Thanks guys. It doesn't look like this will make it to the front page, but I saw it and really appreciate the encouragement.

I definitely screwed up on communication around this whole thing. It's a shame since I think I can give a solid answer to both 1) the unfair and misleading technical criticism and 2) the fair and legitimate concerns from the community. Unfortunately it is harder for me to get that message through now because of the drama and the resulting ill will - and really I can only blame myself for it.

It's OK though. I will focus on fixing the real problems, and better pointing out the fake ones. And hopefully I will get to earn back the trust of the people I alienated.

Thanks again.
I am interested in finding out more on the funds provided to terrorists groups from Imams and Sheiks in Qatar and Saudi. Can you share some links(concrete evidence)that informed you about this hypothesis?
Runner's diarrhea [0].

[0] http://www.mayoclinic.org/runners-diarrhea/expert-answers/fa...
Specifically, what points in history are you referring to with "historically proven measures"?
Fine, I didn't read it. What is your point? That just because something is worse for one person that we should ignore problems affecting another? That someone else has suffered in the past is not a reason to give up improving the status quo today.
Creating Levels in Pencil Adventure with Swift: An Excerpt from Learning Swift
Running on an uneven running surface isn't bad for you at all. Most people run primarily on the roads - so if they encounter a long path with uneven terrain - the ancillary muscles that control stabilization generally tire more quickly. It's all about transitioning slowly and letting the muscles, that haven't been used very often, strengthen.
I've always pronounced it "bee-pedge".
The flag is tcp:// for historical reasons. In earlier versions Docker did not use an http api, but a simple custom rpc protocol. Therefore it would have not made sense to use http:// . Then, when we introduced the http api, we decided to keep the flag for reverse compatibility (after all, as far as the user is concerned the functionality is the same: point to this network address, and you can control the daemon). We never really thought about it after that. I believe you're the first to complain about it. So, again - if you open an issue we will address it.

On suggesting commits: my intention is really not to be condescending, but to seek opportunity to recruit new contributors :) I even specified "if not, that's ok" to emphasize that. I have found that frustration about something in Docker has been the best source of new, valuable contributions. I'm just trying to catalyze that. And yes, I absolutely agree that non-code contributions are just as valuable as code contributions. Even taking the time to file a bug report, or suggest an improvement, is a contribution of your time and hugely appreciated. If you got anything else from my message, it was not intended.
Real comparisons of algorithms do not operate on a single image, but large suites of images, where the results are computed as averages. Changing the dataset by removing one image is unlikely to be a "very real loss."

Alternatives exist, and AFAIK Lena is just used as a "canonical" example to use as a nice picture (like the Zachary Karate Club network).
In a situation where everyone is negotiating in good faith, when a company offers you full time salaried employment they're expecting you to stick around for awhile. Depending on the company, this could be a year, two years, ten years. They don't expect to terminate your employment themselves. That's the commitment tptacek is speaking of. They're committing to buying all of your available work hours for an semi-defined period of time in exchange for a regular paycheck. Their legal commitment to you is generally extremely limited, but also not relevant to this discussion.

In consulting/contracting/freelancing terms, if a client accepts a multi-year retainer with a large number of hours, you'll likely give them a bit of a discount relative to your normal everyday rate. They're committing to continuing your business relationship for the duration of the contract, even though the contract will almost always state that either side can end it at any time with a certain amount of notice (just like full time salaried employment).
I'm Rich. You're Hot
The technical limitations of grape jelly
How's this for reality: I know a consulting business that goes into nursing homes -- often rural nursing homes -- and charges them $3000 a day. That's hardly a high-margin industry, and yet it works, and the customers are happy because they capture even more than that.

Businesses everywhere deal with money flows that are really big by individual-person standards. It's not just a question of being in outlier cities.
> You state Docker is not monolithic -- but then the next sentence says you want to break Docker down into composable parts. Which is it?

It's both.

Docker is already quite modular. For example storage and execution backends are swappable using a driver interface. Image storage is a separate binary. Clustering and machine management are a separate binary. The primitives for interacting with kernel namespaces an cgroups are in a separate project called libcontainer. We are developing authentication and security features in a separate repo called libtrust.

And at the same time, I believe we can do better, and made it a high-level goal of the project to improve modularity. I am simply stating that high-level goal.
Well, that has always been Gary's style. He's the Tom Peters of our time: always full of "you-can-do-it" motivational speeches, but zero substance.

I guess it works for some. After reading his book, I think I'm vaccinated.
Hi Macu,

I'm replying to a comment before about Helperifix. As far as i know, the project is on hold. I know the guys, this is my email if you want to find out more info: lukejamesfitzpatrick@gmail.com
If you're interested in this topic, you should watch this talk by Steven G. Johnson: https://www.youtube.com/watch?v=jhlVHoeB05A

tl;dr of the talk: Syntax has little to no effect on how a language performs. What distinguishes Julia from Python is that Julia's semantics were designed to be amenable to type inference. The results of type inference allow Julia's compiler to generate very efficient machine code.
I literally today sold a day-rate contract. It can be done.
I talked to a dude who made an interesting point about quantum computers. Quantum computations rely on particles behaving in a "quantum manner" in order for Shor's algorithm to reduce the big O complexity in factoring integers. However, at a certain size, you won't be able to entangle all the particles because there will be so many they'll start to behave like a macro material.

If true, this implies that quantum methods will only work up to a certain key size. Above that, you could run quantum computers in parallel, but now you're scaling your efficiency linearly instead of super-linearly, so hopefully having a huge (maybe impractically huge?) key size would be a sufficient defence. I understand that RSA gets substantially slower with larger keys though, so maybe it wouldn't be practical even if the key fits easily in memory.

I'm not an expert in physics or security, but I'd love for a physicist or cryptographer to comment as I thought that was a really intriguing argument.
I'd recently experimented with XSLT for a PHP site's templating engine, after having ignored it since learning it about a decade ago. I swapped out all PHP code to load a bunch of variables for building a big DOMDocument tree in-memory, then applying my XSLT to that to build the rendered HTML. Once I stopped trying to stick a bunch of <xsl:if> and <xsl:for-each>es all over the place, and took a compositional approach to templating where I simply defined the <xsl:template>s I needed and then put <xsl:apply-templates> where I wanted them to go, it actually worked extremely well. All my templates were nicely organized, and I'm far happier working in XML than HTML, with all it's wacky requirements with some tags needing to be closed and others not. It's just the little things that really made me happy -- sticking my fontawesome icons in with an <i class="fa fa-pied-piper" /> instead of <i class="fa fa-pied-piper"></i> always brought a smile to my face. It also made testing nice and fast since it's pretty easy to save the XML I want to transform as a file outside of my PHP app, and just xsltproc it from a terminal until I get it working how I want it.

The big pain points were all around the library support. The XSLT lib was generally fine, but the XML processing PHP provides was rubbish. The main complaint I heard was that even PHP5.5 wouldn't support outputting as html5, and you need to manually just echo out a '<!DOCTYPE html>' to work around that. I couldn't just import HTML directly from elsewhere as rendered by my CMS into my document tree either - it needed to have string literals of tags concatenated to it just to work. The sheer number of piddly little flags that are barely documented but you need to get exactly right in order for it to work at all was a big nuisance too. I also needed to turn off all parser warnings so it wouldn't barf on reading html5 docs, and when a big advantage of the language is that you can be strict about your markup, it seems quite silly to have to turn off warnings.

Looking back on it, none of my problems were really with XSLT as a language, just with how it's implemented in various languages. I feel like a lot of people got turned off when they learned about it in school, and consequently nobody was interested in doing a good job of implementing its supporting libraries in any language.
You may have just misspoken but it'd be almost impossible to get any anaerobic training out of downhill running. You might be doing some muscle strengthening though.
Sorry for responding to your question then. I'm not interested in your invitation to an argument about specifics. History has plenty of instances of the people vs systems of governance, if you can't summon those by your own fruition, then my comment isn't intended for you.
HN will integrate it natively some day.

https://news.ycombinator.com/item?id=8297695
The bpg image on your link has much lower contrast. I'm not sure if that can be fixed, but the images are substantially different. I wonder if jacking up the contrast on the bpg might make it look much worse.
I built a Chrome Extension to help myself better identify hot content on HN years ago and can't live without it.

https://chrome.google.com/webstore/detail/social-hotness/aha...
In the same magazine there is an ad for a $3795 Gateway 2000 workstation. 486DX2 66MHz, 8MB RAM, 500MB SCSI HDD, SVGA graphics with 1MB RAM, 14" CRT.

I remember looking at systems like that and drooling. Now the latest CPUs have 8MB L3 cache.
My view is that if it were illegal then as soon as it became public knowledge then effort would have been made to stop it. I.e. It's a breakdown of the enforcing of the law but not a breakdown of the democratic process. Instead we've had a couple of years where the only thing any politician ever says is "well it's legal..." which is a breakdown of the democratic process (since the law in a democracy is meant to reflect the will of the people saying that something the people are protesting shouldn't be legal is ok because it's legal is clearly a non argument!)
It's highly individual. Mine is about 2.25 because of an infuriating rule about deducting health care premiums. bdunn's course Double Your Freelancing Rate[1] has a really good in-depth discussion on how you can figure this out for yourself.

[1]: http://doubleyourfreelancing.com/rate/
Paul, it's awesome. I'm just being snarky.

As @simonsayscode points out, some folks aren't big fans of Episodes I, II, and III. Here's hoping for a fun VII.