skysight-inc/HackerNews huggingface dataset:
Um, what's wrong with the simpler

if (this == &that) return *this;
TFoo tmp(that);
swap(tmp);
return *this;

(Assume swap does not throw, it's trivial to implement because swapping pointers wouldn't throw.) This way the constructor of tmp takes care of destroying partially-constructed objects and you don't need to do it by hand. It seems like the clean up code just repeats what the compiler would automatically generate for you in a constructor.

[This is from 1997, btw.]
It is a prank:
https://twitter.com/holman/status/569981004116418560
Looks kinda like the new Popularmechanics.com

love it!
The East India Company: A History
"Prediction is very difficult, especially about the future." -- Niels Bohr
Here's a TL;DR:

A handlebars template might look like this:

<div class="foo">
{{#if enabled}}
<p>I'm enabled!</p>
{{#end}}
</div>

The usual DOM-diffing algorithm compares every single thing: "has this div changed? Has the class changed? Has the <p> changed?"

This uses the knowledge of Handlebars to make the diffing algorithm smarter: you don't need to check if the <div> or its class has changed, it never will. You don't need to check if the <p>'s contents have changed, it never will. This means less to diff, which means more speed.

This is the advantage of using a declarative syntax for templating: this analysis can be done entirely at compile time.
> Could anybody in an internet conversation really know all details of your constraints?

No - nor do they need to. But everybody on the internet could just assume that _I_ know them and refrain from saying that "I'm doing something dumb" and "refuse to learn new tools". So I'd also ask you to review the comment of yours - you're doing the same thing - you imply that "Maybe, maybe(!)" there might be a use-case, so as a matter of fact you doubt I did review and choose my tools.

I reviewed my comment, and I'm at peace with it.
I'm really confused by the downvoting on this site.

The page fails to work if cookies are disabled. That is a fact. Some people - a minority, perhaps - disable cookies and other technologies, often for privacy reasons. That is also a fact.

(We could discuss the ins and outs of that discussion, the value proposition, the efficacy, etc., but none of those change those two simple facts.)

Another fact: Sites that use cookies must announce this use in certain jurisdictions. Again we could discuss the merits of this requirement, but that would not change the fact of it.

So were the downvotes for stating facts or for questioning a design decision?

I would have thought HN folks were rather keen on both facts and design discussions.

Perhaps I'm wrong. I'm definitely surprised. Ah well.
I think microsoft has had a good relation with typography for a while, i.e. the C* fonts in office 2007/vista have been praised by many.
>EDIT EDIT: Wait, Table S3 lists 'rice basmati' with a frequency of occurrence of 69, but Table S4 lists 'rice' with a frequency of occurrence of 256. This smells of improperly sanitized data.

I haven't read the article yet, but replying to your comment, it may not imply improperly sanitized data (if by sanitized you mean something like normalized, in this context); because basmati rice is different from "general" rice - it is a more expensive kind, typically used in biryanis and pulaos, and not so commonly eaten, except that nowadays it is starting to get more common. And BTW, it smells good - basmati I mean, and that's why it is called that:

http://en.wikipedia.org/wiki/Basmati#History_and_etymology
> That's laudable, but countless examples show that not everyone is that diligent.

Sure, then again I would guess that the ones who are not that diligent are not likely to apply those access restrictions that you mention (although the "one revision" advantage is something they would get "for free" with SVN).
Ask HN: Advice on good book for SaaS accounting practices
A lot of accounting 101 books I come across are not very good. Are there any good books out there for accounting 101 specifically for small SaaS companies (e.g. revenue recognition, etc)?
I've always wondered what something like CoreOS uses to "switch" kernels in a live system - is that also something like ksplice or a different technology?
I really like this idea. I'm relocating long term to a new country in 4 weeks and I need to downsize my collection of things. Thankfully i'm only looking at a one bedroom apartment but it still seems like a daunting task.

The biggest non-starter has been my wardrobe, taking on that challenge inside the bedroom isn't getting anywhere. I think i'm going to move everything out into the larger living room and hash it out there.

Then i'll have a clean an organized bedroom I can use to leverage cleaning other parts!.
The link is:

SmackTLS.com
The issue of disappearing vendors can largely be solved using godep and distributing binaries, but I don't feel like any language I've used has an effective mechanism for coupling unit testing with dependency management.

Wouldn't it make sense to be able to test your code in advance of updating a dependency to see the how's and why's of its failures?
What is low monthly cost mean? $10/month would be low for someone, expensive for others. Why not at least give the figure or even ballpark figure? (or at least in comparative terms - a cup of coffee...)
"Space travel is utter bilge." - Dr. Richard van der Reit Wooley, Astronomer Royal, British government, 1956

He was right. He did the math - it's not possible to get any significant payload to Earth orbit with a single-stage vehicle propelled by chemical fuels. With multi-stage rockets, it's possible to put a little mass in orbit with a huge booster. That's just low earth orbit. Going further out is even more expensive. Going to the moon required something the size of a 50-story building to move a payload the size of a SUV. Nobody has bothered for over 40 years now.
Didn't Steve email some iPhone project manager at 11:30pm because he noticed the shade of yellow on one of icons changed slightly?
What is esn?
I like giving him different veggie options for the illusion of choice.

I don't like letting him "get one over" on bedtime. When he's old enough to know the difference, then what? You'll have to take away those wins. Same goes for basically everything else he'll want from you.

At least he'll (hopefully) negotiate well!
Cute branding, but your market for the desktop thin-client will be companies looking for VDI and I doubt you'll get very far selling them something called a "paperweight".
Explaining the PostgreSQL pass-the-hash vulnerability
unrelated question, but how does HN rank threads, at time of posting this thread has 89 points, 106 comments, and 1 hour but ranks in the 50s
7 celebrity photoshop before after pictures
I'd go out an argue that because the added complexity of git is far outweighed by the benefits of a local repo.

But for precisely what use cases or in what situations? If one is a novice and just want to have source control and versioning, centralized systems are going to have the better cost/benefit.
> It's so much easier to just ask the professor a question as she's explaining some topic. Or to ask for feedback on your interpretation. Or to have a discussion with your classmates about part of the reading. Or to form study groups. I would have never been introduced to these cool research projects or to these really amazingly smart people if I hadn't gone to my university. Or all the companies that I met networking with the clubs I joined.

Can I not just Google my question instead of asking a person?
> If you reject the absurd notion that there's some causative relationship between technical ability/intellect and gender/race, what's the explanation, other than the possibility that those people didn't have the same exposure to the subjects that you did?

For purposes of admitting students to special programmes, who cares? The only thing the admissions staff should have considered was admitting the most qualified applicants to the programme.

And anyway, you're ignoring the fact that intelligence is in part hereditary. It's not those students' fault that they had poor intelligence any more than it's my fault that I make a poor athlete; admitting them to a competitive academic programme was as foolish as admitting me to the Olympics.

> What makes you so special, that your life is the one that gets to be changed?

I was better-suited to that program that the ill-suited students admitted ahead of me were.

> If we were all on equal footing, who says you're even good enough for your university geek-kid program anyway?

If wishes were horses, beggars would ride. Maybe some of those ill-suited students were more innately intelligent than those who were unfairly rejected, and had simply had poor upbringings, but that doesn't matter: they were, at the point of admission, profoundly less-qualified than the rejectees.

And what was the point of admitting them in the first place? They were not helped by it: they had a horrible experience of unmitigated humiliation and failure. They didn't benefit, and others suffered.

All you can do is take everyone on his own merits, as he is. It doesn't matter what sex or colour someone is: if he's the best candidate, take him for the job or the codeathon or whatever; if not, don't.

> What if we could be fifty years ahead of where we are now, if only we had an environment that was actually competitive across the whole breadth of our society, rather than jokers like you and me running the ship?
Interesting it's using Handlebars - I wonder how it compares to the diffing done in Ractive, which also uses a similar syntax (http://www.ractivejs.org/).
Not sure, but that interview is satirical too...
News: Hideo Kojima Says MGSV Is His Last Metal Gear Title Ever – G.T.N
I like a lot of things about git over svn... the 'distributed' nature actually _isn't_ one of them, I think a canonical source location is about the only sane way to manage distributed software development.

However, I think it's the distributed nature that leads to the much more powerful branch/merge functionality, which IS top on my list?

(Git's UI is also not one of the things I like the best. It is a mess, indeed. Yes, because it was not originally intended as an end-user UI. So what, it is the end-user UI anyway, and it's a kind of ridiculously confusing and inconsistent one).
I always have a problem with these kinds of frameworks. Every time I try to use one, and want to do something more in-depth for fancy than a lot of the functionality out-of-the-box, then I end up having to hunt down the way to extend X feature, and it often takes me more effort to do that then just writing in the root language would be.

That is to say: The abstraction isn't as expressive as the root language, and when I need something more expressive, then it's more troublesome than writing than the root language.

The rendering engine here does seem to perform admirably, and I have to congratulate them on that. Maybe I've just been burned a few too many times from this kind of language.
I switched to the "java script heavy" alt page, and it seemed to work except your "insanely intelligent conversational" chatbot asked what my favorite musical genre was and after thinking, did not recognize breakcore and tried to brush it off by asking another question. quiet rude and pompous imho.

impressive project none the less. i would suggest leaving the last response from the chatbot visible maybe.
The performance of Glimmer is amazing, but lets not forget this gem: "backwards compatible with Ember 1.x apps."

Here's to a future where our apps get faster without us having to change a thing.
How about if we already have created a superhuman AI, that is tricking us humans into believing that it does not exist? And thus preventing us from building something else that might be more friendly to the human race and counter it's bad intentions? What if @sama has somehow been coopted by that AI's plan to stop further development of AI? :) On a more serious note, no one can predict human behavior to the degree of accuracy needed to call it deterministic. So, it is unlikely that we can predict a superhuman AI's behavior with any degree of accuracy. In other words, we just do not know what we are talking about. Does risk calculus make any sense in the domain of true uncertainty?
So for Oculus, both Unity and UnrealEngine are free to use up to $100k/company/year and $3k/product/quarter respectively. Beyond that $75/mo or $1500 for Unity or 5% for UE4 seems small enough to just use the product that's better for your use case.
Right now UE4 works better with Oculus timewarp feature. The same on Unity5 apparently suffers from jitter.
Is Git really that hard to use? I know it took me awhile to learn how to find the right documentation for things, but that's significantly easier these days thanks to StackOverflow and the like. All told, I don't find Git significantly more difficult than the other tasks I have to do for my job. Usually, the troubles I have had with Git were because I tried to do something the wrong way.

And if you don't like the documentation, well, there's more than one way to contribute to an open source project.

And you could make an argument about Git specifically having bad UX in certain ways, but that isn't an argument against DVCS in general.

There are problems and bugs with every VCS out there, but I've never encountered one with Git that left me completely useless for a day, or with a completely corrupted, unrecoverable repository. I've heard of such things happening in Git, but it hasn't happened to me in 5 years of using it. I've had that happen to me, personally, once every 8 to 12 months using SVN. The we thought SVN was a godsend back then was because it wasn't the 3 to 4 months that was SourceSafe or the monthly rate that was CVS.

Okay, I'm being bit hyperbolic there, but not by much.

And you can model centralized VCS in DVCS--evidenced by the fact that many peopled do do that with Github and it's ilk--meaning that systems that can only do centralized VCS are defective. Git can do everything SVN can do, but SVN can't do everything Git can do.

If your central SVN repository goes down, you're pretty much SOL until it comes back, and you might even be SOL if and when it does come back. If GitHub goes down, I'm mildly inconvenienced when I have to add a new remote to my repository when I need to, say, share code with a colleague, or perform a deployment.

The argument about contributions is... it's not about Git or DVCS at all. It's about GitHub and/or bad project maintainers. And he even admits that, but then acts like he's delivered a blow against the general concept of DVCS.

The argument about blobs is an argument against Git, but not DVCS.

I can't speak to Hg or Baz. I've heard they are easier to work with than Git. But I just can't imagine giving up the things Git gives me to go back to SVN. If someone on one of my projects suggested such a thing, it would seriously call into question for me that person's expertise.
What are you suggesting the right way from the start is? Just using maven/gradle?
For a collection of GitHub alternatives (broadly speaking), including Kallithea, you can consult this list:

http://jboy.silk.co/tag/github%20alternatives
If Snowden comes back to the US and is imprisoned for a few years it will be on his own terms.
Why we run an open source program – Yahoo
Me? Nope, never been stolen in my life. :->

Seriously, not bothered in the least. Just curious why someone would question empiricism, reductionism, etc., given how successful they have been for us in so many areas.

Especially on a site like HN, when hacking is ultimately about curiosity and discovery - and those tools, empiricism, reductionism, analysis, synthesis, etc., the whole modern package of modern science, are the best tools we have for discovery, for satisfaction of curiosity.

They're not perfect, but they are far better than many alternatives folks espouse (mysticism, anti-rationality, etc.).

Can we explain everything? Of course not! Not yet, anyway. Are there any reasons in principle why we will not be able to, eventually?

Hmm, well, if there are, we will discover those reasons using those same tools of investigation and exploration, e.g., there may be things that we determine we can never explain for reasons of computational complexity - it's just impossible to get there from here, or for reasons of incompleteness, etc.
The fact that Google Voice contacts were seemingly distinct from Google Contacts has bothered me for a long time, and the fact that some contacts weren't part of "My Contacts" has also been an oddity. I'm very happy to see them moving more toward unifying all my contacts.

My remaining question is if it will now let me see which phone number or email address is labeled as "home" v. "work" v. "defunct" in the autocomplete area.
I tried that, didn't work either. I'm also on Lollipop. I'll give it another try incase it's working now.
I've got a few small projects on Gitorious, mostly because I wanted to avoid a GitHub monoculture (and the Gitorious software being AGPL'd helped too). Having an easy way to import from Gitorious to GitLab is nice, but I'd like to check out GitLab's public hosting features first. I had a poke around GitLab's website, but every page seems dedicated to selling GitLab-as-a-product. Are there any publically-visible projects hosted by GitLab?
Shameless plug: check out jsmpeg[1] - it's an MPEG1 decoder written in JavaScript that's capable of low latency streaming via WebSockets, weighs only ~25kb gzipped, offloads part of the decoding to the GPU via WebGL and runs smoothly on an iPhone4.

Of course it has some drawbacks, as MPEG1 is a pretty old codec. The data rate is fairly high and it struggles with high resolution streams. 720p still decodes nicely in realtime on most mobile devices, though.

[1] https://github.com/phoboslab/jsmpeg
42Floors Lays Off Half of Staff as It Cuts Brokerage Team, Refocuses on Search
What sandwiches are you eating that call for raw meat slices? Cold yes, but raw... I haven't had any.
Considering trying out 2.0, but in the process I wanted to clean up my shares, and now I can't seem to figure out how to remove a share! I'm on 1.4.111 on Mac OS X.
To bring it back to the OP, this argument is in fact represented in the OP.

OP is arguing that these (having to use Nexus, Gradle, Maven, and Jenkins just to keep some binaries along with the source code they're generated from) are workarounds to limitations in git that ideally would not be there (and don't neccesarily have to be there, and aren't there in all VCS's), and the OP mentions that instead git fans want to claim "No, that's just the way git SHOULD work, you SHOULD need to go use an 'artifact repo' in addition to git to keep a few binaries with your source code" instead.

I tend to agree with the OP.
Thanks for including GitLab on your list. Do you know GitLab also offers integrated issue tracking? For example see https://gitlab.com/gitlab-org/gitlab-ce/issues
While most robots are either geek or jock, CHAPPiE is a lesson in sexy
There is also unison; it is not automatic (custom inotify script is required to mimic Dropbox, and it will force manual intervention upon conflicts) nor stores history, but handles large blobs, many clients and crappy connections quite well.
C#'s tooling and ease-of-use really blows C++ away. Plus there's the safety, where it's rather difficult to introduce a memory-safety issue into C# code, vs C++ where we see vulnerabilities every week due to this problem.

I doubt people use C++ if they have another choice. The big problem is that C#'s implementations do not handle memory well enough. The default for them is to heap-allocate most objects, then leave it up to the GC. This means a lot of hacky code to achieve good performance, but it still can't match C++ in many cases. (I'd guess that many apps could see a good double-digit% increase in perf in C# if you could just use the stack more often.)

Plus, if you can use C#, you can probably use F#, which is a far better language than either C++ or C#. Whereas if you need to be runtime-free and C-ABI compatible, your choices of expressive languages are rather limited (Rust being the most exciting one, probably.)

Edit: Also, C++ compilers tend to do a far better job at codegen. Though MS is starting to hint that they're gonna up their JIT story, but they've got a long way to go.

Edit: As to why you'd want to learn one or the other, if you're in games, it seems like you should probably learn C++ because it's so prevalent in games. C# is easy enough to pickup on the side though.
“FREAK” flaw in Android and Apple devices cripples HTTPS crypto protection
That's a perfect response. If you get stuck, come back and ask, or feel free to email me and I'd be happy to get you unstuck. As I say, working on it for yourself is worth a lot, and I'd be happy to see you get the understanding. Make sure you let me know specifically what you've done, and where you're stuck.

Good luck!
The new 10 folder limit makes it almost useless and breaks their promise that the new free 2.0 version will provide the same features as 1.4.
Think of the Rabbits™
"I have doubts about the Einstein quote. Atoms had been split at will for decades by then."

Not in a chain reaction. When Szilárd described the concept of a chain reaction to Einstein, Einstein was shocked. He said "I never thought of that!"

Until then, nuclear physics was purely an academic enterprise. There were few applications for radioactive materials. Radioactive decay just happened at its own slow pace, and not much could be done with it. X-rays could be used to pump the process, but less energy came out than what was put in. Suddenly the nuclear physicists realized they had a tiger by the tail. This was going to change the world, not necessarily for the better.
That's a bad example, true. In my defense I have to say that I jumped ship before NT, but I remember how people looked at NT's Blue Screen of Death(™) as if it were a normal thing to have in computers and software.
Thank you for your suggestion.

It was pretty time-consuming to get the bot where he currently is, even! And I'm certainly still working on it.
So, the performance of binary assets in SVN is exactly why we used to--when doing game development--check all the source files out into their own repository, and occasionally sync over.

As for the configuration being in the same repo as the code--again, why? That tells me that you aren't packaging releases, or if you are, your documentation is less useful as a reference than your code.

These are antipatterns, again, and "fixing" your VCS isn't going to help in the long run.
but nvidia is building their own similar service, www.nvidia.com/object/trygrid.html, how will you differentiate?
Only if your question is already solved and published.
Nearly all HTTP 1.1 servers use gzip. Does that mean that minification for the purposes of reducing payload size is also unnecessary there? (serious question)

Edit: answering my own question: http://stackoverflow.com/a/807161
I don't journal as much as I would like. I have been using Day1 as well, but lately started using Hemingway app on Mac. You can make the interface very minimal to keep out distraction, and have in the background ready for thoughts. It can analyze level of grammar if you please. Save where you want, and what you do to secure it is your choice.
I think it felt really out of place because many "otherwise smart people" have been shouting it'll reach both zero and the sky soon and its future is still really unclear.
Out of curiosity, what is the gist of your setup? Why is this incarnation such a departure from the general case?