I really like Python, but find the default library lacking a few short idioms I find myself typing again and again, so I collected them, and am publishing this small collection, hoping others would find it useful as well.
Continue reading Five Python one-liners
A piece on NPR celebrates European yearly bicycle sales outnumbering new car sales in the continent.
But that datum isn’t meaningful as NPR hints: in 2010, there were 13.5 millions new bicycles sold in the United States, versus about 11.5 millions new cars sold, making the US reach the bikes-over-cars milestone ahead of Europe.
Technology web sites are a-buzz with speculations that Stephan Elop was a trojan horse sent into Nokia by Microsoft, designed to devalue the former so it could be bought by the latter. Following Hanlon’s razor, conspiracy theories are best left to the realm of fiction.
But I find myself agreeing with Elop being a trojan horse — not for Microsoft, but for proprietary software.
Nokia used to be a big proponent of free software, investing heavily in various projects, the most famous being QT, WebKit, and MeeGo (nee Maemo,) which was more free than Android ever was, being based on Debian.
Elop, however, came to Nokia from Microsoft, were he headed the division responsible for business software. Not only Office, but also Microsoft’s CRM and ERP solutions — software which is notoriously proprietary, with a business model based on signing deals, not cloning repositories.
Old habits die hard, hence Elop probably had a very hard time investing in an OS available to their competitors (either MeeGo or Android). It would be against every shred of his former experience, leaving Windows Phone as the only available option for Elop’s Nokia.
Building binaries out of it is as simple as typing:
git clone --branch webp firstname.lastname@example.org:EverythingMe/mozilla-central.git cd mozilla-central ./mach build
And waiting for it to finish (longer version of those instructions, and list of prerequisites are available on Mozilla’s site)
“I flushed the dumper and went back to finish my story without washing my hands […] I doubted seriously if a germ from my penis would jump onto my hand and wind up killing me. It hadn’t happened yet and there’d been lots of opportunities. “
–Kinky Friedman, in “The Love Song of J. Edgar Hoover, A Novel“, pp. 151.
“Washing your hands after urinating was another thing that he [Richard Feynman] felt was superstitious. In fact, I think so too, but in many cases, I would be in the bathroom […] just before lunch […] and so, if I urinated, I also washed my hands, because I was just getting ready for lunch but he couldn’t see that.”
–Murray Gell-Mann (source)
Update: It should be noted that I wash mine.