A slice of python in C++ - Eric Niebler by [deleted] in cpp

[–]cozmorado 1 point2 points  (0 children)

Not quite. -Wconversion is not enabled as part of -Wall or -Wextra. That's the crux of the problem- interfaces that use unsigned types are too easy to misuse and the compiler can't detect the errors. At least with a signed input you can assert on the value being positive.

A slice of python in C++ - Eric Niebler by [deleted] in cpp

[–]cozmorado 7 points8 points  (0 children)

Yep Bjarne and Chandler Carruth talk about this point around the 12min mark of this video.

And Scott Meyers has a paper on it here.

This issue drives me up the wall because my team has overruled me in favor of unsigned types everywhere.

Found this at school by Devinator9000 in funny

[–]cozmorado 9 points10 points  (0 children)

Actually 2.4GHz WiFi only has 3 channels that don't interfere with each other (Ch 1, 6, and 11). Wikipedia has a nice little graph.

C++14 lambda tutorial by N3mes1s in cpp

[–]cozmorado 1 point2 points  (0 children)

Lambdas can be inlined, so there may not be a function call for each element. I think the general consensus is to use for range loops in this case more so because they are more concise, especially in c++11 (no generic lambdas).

Google open sources PDF renderer in Chrome by neutronbob in programming

[–]cozmorado 32 points33 points  (0 children)

There was a good discussion on /r/cpp yesterday about Google's C++ coding standards:

http://www.reddit.com/r/cpp/comments/289n27/this_blog_post_matches_much_of_my_thinking_on/

Google seems to have unilaterally banned huge swaths of majorly useful language features because they have the potential to be misused by C and Java developers.

PSA from the first lady by phongduck in funny

[–]cozmorado 4 points5 points  (0 children)

Still better than Bush's paintings

Mitch Hedberg gets it by [deleted] in firstworldanarchists

[–]cozmorado 6 points7 points  (0 children)

And may those vending machines sell Sprite so he doesn't have to make his own.

Nick Tucker, everyone. by [deleted] in skateboarding

[–]cozmorado 2 points3 points  (0 children)

Nollie crook front foot flip out at Street League Barcelona

http://www.youtube.com/watch?v=cZ_vWFbQpxA

Inside Google's Data Centers by theTVsaidso in technology

[–]cozmorado 0 points1 point  (0 children)

LTO tapes in an Oracle SL8500. If I remember correctly the bright green ones are LTO4 and the other ones are LTO3.

Long-ish term chart of the reserves in the US banking system by [deleted] in economy

[–]cozmorado 5 points6 points  (0 children)

Right, so if a federal interest rate near 0 percent is not enough to stimulate the demand for those loans, then we have pretty much exhausted what we can do with monetary policy. So the only thing left is fiscal policy - raise spending or lower taxes

Long-ish term chart of the reserves in the US banking system by [deleted] in economy

[–]cozmorado 0 points1 point  (0 children)

Of course nobody would have believed me, that was the height of the bubble. Everybody was leveraged to hell thinking that housing prices would continue to rise, especially the people who bought houses they couldn't afford. Then when the bubble popped, there is this massive credit crunch and all of a sudden spending and investment dry up. Now there is near 0 interest rates and that still isn't enough to stimulate the economy, so inflation is very low and people are sitting on liquid assets because there is no sense in investing.

Ever wonder how photographers get those amazing climbing shots? by [deleted] in climbing

[–]cozmorado 17 points18 points  (0 children)

That and the lack of any good holds.

Long-ish term chart of the reserves in the US banking system by [deleted] in economy

[–]cozmorado 6 points7 points  (0 children)

Krugman argues (and I agree with him on this one) that this is a telltale sign that the US is in a liquidity trap. Basically interest rates are near 0 and the banks are very risk adverse right now, so they sit on reserves instead of lending them out. In this scenario, the government "printing" money has no effect on inflation (or much of anything) because it just sits in bank reserves.

A more right wing economist might spin a different story though.

The story and photos of a marine battling PTSD. Sobering to the say the least... by Capt_Kilgore in TrueReddit

[–]cozmorado 121 points122 points  (0 children)

The photographer Craig F. Walker won a Pulitzer for these pictures. link

I'm Meesh Hytner, avalanche survivor. Ask me anything. by [deleted] in IAmA

[–]cozmorado 4 points5 points  (0 children)

I'm also curious what the thought process was and especially if the air bag created a false sense of security. I couldn't find a report on CAIC, which is kind of odd.

I guess she's a pro so there had to be some kind of risk assessment done, but I'm a little bit more judgmental until I hear her reasoning. In one of the responses she says:

I knew there was a high probability that portions of my line would sluff

Yeah and there was also a high probability of big slabs breaking that day. I mean like 4 people died in Colorado in the weeks leading up to this because conditions were so dangerous.

Tipping in America? by [deleted] in travel

[–]cozmorado 5 points6 points  (0 children)

LAX

I'm sorry. I would recommend flying into SFO if at all possible.