skysight-inc/HackerNews huggingface dataset:
If your only example to show C++ verbosity fails to compile and is also patently wrong, you are not making a good point. (The constructor is private, the variable naming prevents short accessors such as Rectangle::width()). Better:

struct Rectangle {
double x,y, width, length;
};

int main()
{
Rectangle r = {0., 0., 10., 10. };
return 0;
}

This even compiles in C++03. If you really insist on private members,
you will need initializer lists and some changed member names.

The small example error has been worked around with for years by
simply placing the constant on the left side of the comparison. Not
pretty, but effective.

I agree with the general point, though. A functional style can make
C++ much more efficient. It is also the only way to do template
meta-programming and everybody who tries to go into that direction can
benefit from learning Haskell.
Everyone you know notifies you when they change their email address?
Including some sample mp3s to directly start playing around would be great. I pressed 'q' and nothing happened. :/
Is Paleo Dieting Finished?
What is the most brutal man page?
The template tags and filters will certainly solve most use cases, but there are specific reasons why Django implements Forms outside of the template -- there will be significant functionality you cant (and shouldnt) achieve through a template.

This is why the base Form was extended. To each their own.
Ask HN: HTTP P2P?
Is it possible to have a Javascript game running in a web browser that somehow allows networked play without going through a central server? How about with web sockets and TCP hole punching (obviously this would need a server for initial setup)?

Has anyone heard of any work in this area? Am I missing something obvious, simpler and easier? Thanks.
For a moment there I was trying really hard to understand what he was complaining about. His post made very little sense to me as it was written. I guess because I haven't even come close to experiencing his "problem".

Especially since I looked over the pull request he mentions and the explanation as to why href="#" is used is right there in front of his face.

Plus, what's with all the hate for href="#"? Are some people so anal about their code they can't leave one simple little thing in place that makes life easier for them?
Norton Identity Safe Beta released, helps you manage your passwords
This is confusing. I'm not sure exactly what I'm selecting. When the shadow is red, the "blue" text is more prominent. When the shadow is blue, the "red" text is more prominent. I'm getting contradictory feedback on what I have selected right now. Or am I missing the point?
Karbonn Kurve Price in India, Features & Specifications
The new Karbonn Kurve is a stylish Dual SIM GSM mobile with curve shaped design. Karbonn Kurve having 2.2 inches QCIF TFT display with 176 x 220 pixels of screen resolution.
Very cool, but about eight orders of magnitude away from nano.
> Because it is so tied to the underlying hardware

Firmware has changed over the years, as have the devices we embed it into. Thee devices are much more complex and capable, sometimes, smarter than the computers they connect to. I have worked with devices that ran MS-DOS-like OSs and applications on 386-class processors with built-in printers running a real-time Unix-like OS on a 32-bit RISC processor.

Also, many different devices share common hardware and designs. Hundreds of routers and other various networking devices currently run OpenWRT firmware instead of their original software. Those little boxes are smarter than the first Unix machines I used and at least an order of magnitude smarter than the Burroughs B-500 mainframe that ran land taxes for a whole city on my first internship. All it lacks is a line printer and tape drives.
The chance that they all die is lower, but they chance that at least one of them dies is far far higher.
Firefox 11 to get add-on sync
bookmarked:

http://bartoszmilewski.com/2011/07/11/monads-in-c/

http://bartoszmilewski.com/2010/11/29/understanding-c-concep...
Windows 8 is Already Fragmented
for me its not noise, its availability. a closed office door means "I'm not available" and people generally respect that. headphones don't convey that same message, so those of us without offices really have no way to broadcast "i'm busy dont interrupt."
Packers' Rodgers named NFL MVP
You need a server. JavaScript does not have access to the necessary sys calls to open sockets or perform IO. This could be possible with browser support, but I doubt browsers would want to support such features since they could be abused really badly. AFAIK Opera bundles a web server to allow for some kind of file sharing, but it seems unlikely you would be able to use it for your purpose.
It's not just startups, either. In many markets, you've also got embedded competition from newspapers, radio, TV, and local magazines. And, of course, there's the national players like Groupon, Living Social, Google... The market is very likely disproportionately crowded for the amount of money you could feasibly extract from SMBs.
Our dev culture discourages anyone working in "the zone" because more often than not, it produces crappy code -- crappy mainly in that it's hard for others to understand/maintain. If you're off by yourself thinking about something really hard, you're doing it wrong. You should be hashing out new ideas in conversations with other devs. Grab a conference room if you're conversation gets animated or regards something with a very narrow scope that others won't care about, otherwise do it in the open so anyone can jump in.

"Disruptions" are conversations where ideas and implementations are fleshed out. That's the hard work. Coding quietly means you're doing something so trivial that pairing would be silly.

I really believe this dev culture produces fewer defects and makes the team more responsive since so much knowledge is shared.
Advice you asked for:

Stop tweeting, blogging and emailing. Stop posting two-liner responses to difficult topic discussions.

Interact with people. Find a forum that thinks deeply, trades ideas and inspirations and fosters creativity. A writing group, a Mensa chapter, heck a ToastMasters club.

Even Hacker News is shallow by comparison with real human discourse. Here we get frequent thought-pieces but not a lot of literature, and certainly extremenly curtailed interaction compared with even a minute of real dialog with real people.
I hate to be critical, and maybe I'm missing something, but this essay didn't read well at all. Sounded like somebody who didn't fully understand what they were doing thrashing around.

We use anchor tags as buttons any more because clicking on buttons should (eventually) change the href.location. That means, yes, right-click should work just fine, opening up a new window with your action applied to the current state. Don't look at buttons like Javascript events. Rather look at them like code that changes the URI that then kicks off Javascript events. It's a subtle difference, but it's very important. An anchor as a button isn't the same as a button because they're two completely different things. Your mental model of each should be different.

I don't see where there's much of a mystery or rant here, but maybe I missed it.
I'm not sure. I think it depends whether the not drinking till some ages is self-imposed, or externaly imposed, and how much external that prohibition is.

For example I weren't drinking till 18, because I was very religious in primary/secondary school, and priests encouraged promising to yourselves to never drink till 18. Most people didn't care, I did (religion is nice mind-hack, btw, it's a shame it stops working when you don't believe it anymore).

So I had to learn to party without alcohol, and I did. Some people were unfriendly because of that, but I figured they were obviously dumb, if me not drinking spoils their fun, so I won't care about them.

Then I got 18, go to university, and drink alcohol like everybody, but never feel the need to drink too much. As for now I'm 28, and I've never had hangover, or lost memory. And I was partying hard at university.

In my country you can buy alcohol from 18, but enforcement is not very strict, so kids start drinking in primary school, because it's cool, because you're gambling system. Of course most people grow up eventually. Binge drinking is a part of culture (well, wódka is Polish/Russian invention :) ), but young people prefer beer, and you have to really want to got drunk, when drinking beer, to got drunk.

I think it more depends on the attitude and example of parents (mine had drink on occasions, but I've never seen my parents drunk. They also never made the alcohol sound like it's some great forbidden fruit they had to protect me from).
Scoble: I'll go down with the ship
From personal experience, we have a team of programmers all from the same group working in an isolated area. At some point a secretary for some unrelated manager was seated among us at it became a huge destruction. By the nature of here work, she was constantly talking on the phone of having her phone ring.
You are partially right, but if the label was on/off, I'm sure you would have no issues. The designer should have chosen colors better, but the general function is nice.
Thanks, but why wouldn't web sockets work with TCP hole punching? [http://www.acooke.org/cute/WhatisTCPh1.html - self link, but used to be a reasonable Quora post] Is it just that no-one has done this yet? I don't see an obvious technical reason.
German agency recommends Chrome to keep PC users safe
Sam, how can i reach you via mail? Would love to talk to you about the service you describe and what we're doing at Postmates. I'm bastianlehmann@gmail.com
Regarding point #1, I have maintained Linux mail servers both for large shops as a professional sysadmin as well as for myself and small organizations, and each has been a very different experience.

In the large environment, mail server maintenance does take a disproportionate amount of time. But that's because the environment is so complicated: there are several layers of servers, mail is stored on NFS so there are weird locking issues, LDAP is used for user accounts, etc. There are some very bad failure semantics and if we're not careful, we start bouncing mail.

My small setups use exactly the same software (Debian, postfix, dovecot, spamassassin) but the environments are much simpler: one server, no NFS, no LDAP. I use a VPS so I don't have to worry about hardware. Backups are an off-site rsync in cron. Failures rarely happen but when they do the semantics are much nicer: temporary failures so the mail is resent later. My VPS host failed for the first time in 5 years recently, so I couldn't get mail for a few hours, but I didn't lose any mail and didn't have to spend any time on recovery.

I also run other stuff on my VPS, so the monthly cost and recurring maintenance overhead (security updates/backups) is amortized. Adding mail as another service doesn't change these costs.
OK, but for sure nobody introduces open space for creativity.
Simply it is cheapest kind of office space, without walls you may use big space (lets say 25 m x 40 m, so 1000 m^2 with windows on both longer walls) and place desks everywhere. With walls you will be able to use not more than 800 m^2, and probably even less because walls block light and this part in the middle of office with walls will be dark and you cannot set desks there.
Also air condition is cheaper.

Personally I loved solution used in Motorola, so cubicles with thick walls (about 10-15 cm of sponge or similar stuff) which has about 160-180 cm of height. Even people talking in normal way in corridor didn't interrupted you.
'Failure week' at top girls' school to build resilience
Groupon = very bright startup? You might want to check up on those guys, as things like their burn and churn rate in expenses and customers are more than enough to give one pause.

Square = credit card processing. Sure, a local businesses can use them but calling Square is a play in the "local" space is a stretch.
Newfound Alien Planet Is Best Candidate Yet to Support Life
I should have mentioned those articles. They are a great example of Haskell influencing a C++ programmer. Although this article might show what the average C++ programmer thinks `using the type system`, `verbosity` and `influencing their style` mean.
They probably have the masters; I think they usually do, at least they think so. There are stories of leaks in the back of basements etc rendering 1000s of hours of series/movies useless. That's why they should take action NOW and not waste time. Even if they only keep it locally and not sell it, it needs to be preserved! Damn it!

Brendon Chase (UK, 80s) is another one.

And there was a series in the 80s I remember as being called 'Saturday' (UK I think, about children growing up in some village and (very young) puppy love, very innocent series which I liked so much I quit my swimming lessons for it as it was on the same night and we didn't have a VCR; it was aroudn the same time as the Tripods on TV me thinks) which, due to the title, I never found anything about :( I would love to find that back as well. Hmmm. Must... Go... To... TV... Forums...
This kind of corruption gets lost in the political shuffle. Both sides of the argument want so desperately to over-simplify the issue into regulation is good/bad as a boolean decision rather than attack specific classes of regulation at their core. It's a lot harder to uncover the corruption behind bad regulation than to vilify regulation at large, which is why I suppose those who have much to gain from the argument choose to simplify it.
Why did this need to be an infographic? The visuals lend nothing to the narrative and ends up being harder to digest!
Doesn't prevent them from digitizing and storing on something less volatile than old film reel.
I completely disagree. None of those sensors would likely give anywhere near the accuracy, frame rate, or context of the current system. Also, there is the issue of where the computation is done. It seems obvious to me that the intended goal is a decentralized system, where every vehicle is autonomous and creates an internal model of its own surroundings. As best I can tell, in the current system all the computation and dispatching so instructions is done by a single centralized external computer (the one the external cameras are attached to).
Tried the FDroid app. Exploring open source apps was really fun. Got some nice apps that i needed from a long time. Thanks for sharing :)
Local is a fine place to start as long as it is universal in scope and has scalable reach: Facebook started local.
> Although the newcomer C# was only introduced ten years
> ago, there is little in the language to reflect the
> thirty years of research into programming languages since
> C++ was introduced.

Not a huge fan of C#, but he couldn't have picked a worse example for language stagnation.
I think this is what will make Windows 8 the least popular OS version in the past 12 years. The interface is so different, most users will feel uncomfortable switching to it. If they want to sell Windows 8 they'll have to evangelize it and its interface to users, just like they need to do it with WP7. Users will not accept it by default just because it's the next Windows, especially with all the inconsistencies between the "Windows 7 mode" and "Windows 8 mode".

I believe most will keep using Windows 7, just like they kept using XP when Vista came. It's actually worse now than it was when Vista came out, because people were already getting tired of XP back then, but still didn't switch. I doubt too many feel tired of Windows 7 already.
map and fold are available in C++, though they're called std::transform (in <algorithm>) and std::accumulate (in <numeric>). Totally agree with the author's point, the C++ I write nowadays is heavily influenced by my Scala/Haskell/Lisp exposure and is much better for it.
Do people really still make the `=` vs `==` mistake? GCC -Wall has had "warning: suggest parentheses around assignment used as truth value" since as long as I can remember.
How realistic it is depends on how many people you know who will pay you several thousand dollars to do what you do. Finding clients isn't like finding a job - a new website is a change to business operations.

Client development can take years - relatively few people pull the trigger on $3000 expenditures each day.

And when they do, why should they hire you?
Looks different between Firefox and Chrome. I'm guessing the way it displays for me is wrong since it looks off for some reason.

Looking at the HTML I'm guessing you need javascript to detect it's current state to be able to act on it since it's just a bunch of divs?

I've played with similar ideas but going in a completely different direction. I use a checkbox for my toggle and just use CSS to alter the appearance based on that checkbox, no javascript.

http://jsfiddle.net/talmand/tb9NZ/

Seems to work for me on Firefox and Chrome but not so much IE. It was an experiment so I didn't bother to work out that problem of fallback for IE.
> I don't understand why Facebook's IPO is different from every other IPO that has happened in the past.

its important because FB is the biggest social network on the internet. Believe it or not, many people still dont understand or get what "social web" means. Having FB stock publicly traded (company more transparent) and strong earnings would prove to the masses that web and social net is sustainable AND profitable AND here to stay. And it already works! look what happened with Zynga stock after FB IPO papers hit the daylight.
Thanks for that, but "well being" also includes child neglect and other forms of abuse other than punishment, so it's not really what I'm talking about here.

The French, as a culture, condone slapping and hitting their children much more than most other cultures. If we want to talk about one culture versus another, that should be included and sadly, that alone outweighs any of the other positive aspect of French parenting.
(0) For every fundamental truth, there exists a counterexample:

(1) It Has To Work.

Counterexample: U.S. healthcare.

(2a) No matter how hard you try, you can't make a baby in much less than 9 months.

Counterexample: adoption.

(3) With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead.

Counterexample: Who cares? </resumes eating his BLT>

(4) Some things in life can never be fully appreciated nor understood unless experienced firsthand.

Counterexample: Microsoft Windows.

(5) It is always possible to aglutenate multiple separate problems into a single complex interdependent solution. In most cases this is a bad idea.

Counterexample: U.S. Constitution.

6. It is easier to move a problem around (for example, by moving the problem to a different part of the overall network architecture) than it is to solve it.

Counterexample: Joe Biden's speeches.

(7a) (corollary). Good, Fast, Cheap: Pick any two (you can't have all three).

Counterexample: Five Guys.

(8) It is more complicated than you think.

Counterexample: "All you lawyers do is complicate situations that aren't complicated." - Erin Brokovich

9. For all resources, whatever it is, you need more.

Counterexample: calories.

(10) One size never fits all.

Counterexample: Pencil and paper.

(11) Every old idea will be proposed again with a different name and a different presentation, regardless of whether it works.

Counterexample: suicide.

(12) In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away.

Counterexample: Hacker News.
I have real problems with loud music, and enforced choice of music. How would someone like me be effective in your organisation? How would I get the news? Stay with the vibe? Or would you simply not recruit someone like me as I would be obviously different at interview?

Not being aggressive here just interested.
That's exactly what I think. Users aren't prepared for such a drastic change and also such a inconsistency on the UI (Metro mode and Aero mode).
ReGoogle: Search for pages that are similar to a URL
This is a Chrome extension:
https://github.com/downloads/gokturk/ReGoogle/ReGoogle.crx

Open Source:
https://github.com/gokturk/ReGoogle/downloads

github.com/gokturk
But it does prevent exactly that. It costs money to do the conversion. Costs must be offset by revenue, and of course if revenue is involved in business, there must be enough revenue to generate profit. And if the legal agreements with the talent don't allow anything other than VHS sales and rentals, then it's not worth the effort to convert.
Pretty cool. I am looking forward to when we can print an new spine and other major bones.
That's an interesting perspective, I realise this may be selection bias but myself and everybody I know and associate with will not bother with DRM encumbered content, some will eschew it entirely, some will circumvent it, but none will actually purchase it on principle. So in my experience I see it as causing a huge amount of lost sales and not preventing any lost sales (because it is trivial to circumvent, one does not need to be intelligent to simply use the work of other people who have already figured it out).
So, exportable contacts = the common web? Please, Scoble, just stop it already.

With these posts, Scoble simply reinforces my personal impression of him as the Court Jester of the Internet.
http://www.youtube.com/user/TheDmel

The "Aggressive Manoeuvres" videos remind me of something out of terminator.
Show HN: filternet - A simple way to alter http mid-stream in node
In video-streaming 100k+ clients equates to 25+ GBit/s. Yes, that is noticable, even for a "real CDN".
If all this is true it is a complete failure of capitalism. Moving workers to a different office building is not that hard and if they were actually 3 times as ptoductive as the OP claims it would be easy to become rich really quick. Set up a consultancy doing fixed bids and you can pocket the returns. I don't buy it even though i really hate open plan offices.
Can't believe I wasn't even aware of this. I've been manually setting breakpoints for years... Thank you!
Javascript news for this week. Best IDEs for Javascript development
I also concur with #1's finding (small group in a room shut off from the rest). I once worked with 5 other C++ developers all sitting at a couple fold out tables in a one room office to work on a software that was used in a highly competitive niche market and this was by far the most productive I ever was. Like the OP, we could instantly talk to one another about a problem or to ask why certain blocks of code were a certain way. We wrote software used to track bets (off shore gambling). Our software sold for around $100K and at the time (about '93-'95) our only competitor was a large corporation that appeared to struggle to keep up with us. We were so innovative and fast to deliver. Those days long behind me, I often wish to find that same cohesiveness in my work-life again.
Actually they don't. Dial-up is low bandwidth, low latency. Mobile is high bandwidth, high latency.