681 karma · joined October 19, 2010
jq -c .'select(.server_name == "slow_server") | .end_time - .start_time' < my_log_file
where your log file might look like '{"server": "slow_server", "timings": {"end_time": 1406611619.90, "start_time": 1406611619.10}}'
to get your web request timings.Because it's line-oriented, it also works seamlessly with other tools, so you can pipe the output to, say, sort, to find the slowest requests.
Instead, we're running inefficient propeller planes for short distances and really high prices, and people are treating it like it's some amazing new innovation.
I think there are two main reasons for this: proposition 13 and CEQA. Prop 13 keeps property taxes really low, which makes buying and holding onto single-family homes really cheap. This is a giant subsidy for people who have lived in California for a while, but jacks up the prices for everyone else who gets in after them, since low ownership costs translate to high upfront prices.
The California Environmental Quality Act has a different effect that also raises housing prices: empowering NIMBYs. Because any new development can be pretty easily be slowed down/made more expensive/stopped altogether by a bogus CEQA request, new housing isn't getting built in nearly as much as one would expect given the demand. This makes existing housing more valuable, which increases prices even more.
In addition, some municipalities, notably San Francisco, have an insanely regulated rental market that makes renting incredibly difficult for a landlord, which makes it more attractive for people to buy housing instead of rent. This means there's less rental housing to go around, which makes the rent in SF absolutely insane.
When the government spends a million dollars building a bomb, it also creates a bunch of jobs for the same reason.
The thing is, a bridge gets you a useful public resource that makes lost of people's lives better and encourages economic growth by making trade easier. A bomb blows up, kills some people, and disappears.
I'm pretty sure a very large part of the military spending was because of the war in Iraq, which had nothing at all to do with 9/11.
I'm not sure that this is totally true. I don't want to drive on a bridge designed by an incompetent engineer any more than I want to take drugs prescribed by an incompetent doctor.
Fuel efficiency standards do virtually nothing to reduce gasoline consumption; they just make people buy gas-guzzling SUV's instead of gas-guzzling cars. The problem is, SUV's are heavier and less maneuverable than cars, which makes them much more dangerous to other cars and pedestrians.
If the government actually cared about carbon consumption, we would have something sensible like a gas tax rather than absurd fuel standards with a huge loophole for "light trucks". The thing is, I'm pretty sure the fuel standards thing is basically a subsidy for American car makers, who make lots of SUV's, but can't make luxury cars nearly as well as the Germans or the Japanese.
Would unemployment be lower if these people got healthcare and engineering degrees instead? Of course. But I really don't think people with less practical degrees are nearly as big of a problem as people with no education at all are/
Also, keep in mind that lawyers tend to be much more politically connected than programmers.
Basically, it's something that allows you to maximise leisure and minimise work.
I think making "no politics ever" a rule can hamper discussions quite a lot. I can understand why it's not productive to talk about, say, the merits of Obama's health care bill, which evokes really partisan gut reactions and makes people more likely to start posting pithy political slogans that sound good and make for horrible discussion. But talking about a reduced crime rate without crediting/blaming any particular politician or party can be pretty interesting to talk about.
On the other hand, I don't think any of the anti-DRM or anti-anti-piracy posts are very productive. But everyone here seems to agree on them, so even though the discussions are often quite vapid, they tend to be less nasty than, say, discussions about the merits of single-payer healthcare.
c.most_common()[:-n-1:-1]
because the element at c.most_common()[-n]
is actually the n-1th most common element.If you do online-only and only 75% of people are online, you have to hand-count 25% of the population, which means you'd need about a 70% response rate with the people online to match what you have with paper forms. That's not realistic, I don't think. Plus, the people who aren't online tend to be in remote areas, which are much more expensive to hand-count.
The Census is inefficient in a whole lot of ways, but one thing that makes it really efficient is standardization. Every one of the ~700k enumerators gets the same exact kit, every manager gets the same boxes, and everything is basically made so an idiot can do it. There are two reasons for this: the first is that it's cheaper, but the second, more important reason is that the data is consistent from place to place. If people in NY respond online and people in North Dakota respond by mail, you'll get lots of little statistical differences that make the data less easy to work with. This the big reason they need to homogenize everything.
As the other commenter said, the social security number only works for people who are citizens, but the intent of the census is to count everyone who is regularly living in the area at the time. It's a tricky thing to define, and I think a silly one, but it's what the constitution says to do so we do it.