July 31, 2008

Surly Long Haul Trucker with Cargo Hauler

How I use it: everyday, all the time! I don’t own a car, so my Xtra Surly goes to the grocery store, the thrift store, the community garden, the farmers market, the coffee shop, potlucks, you name it. Even Home Despot.
Posted by Tim at 09:09 PM | TrackBack

Solar Power: Major Step in Storing Energy

Nocera's discovery--a cheap and easy way to store energy that he thinks will be used to change solar power into a mainstream energy source--will be published in the journal Science on Friday. "This is the nirvana of what we've been talking about for years," said Nocera, the Henry Dreyfus Professor of Energy at MIT. "Solar power has always been a limited, far-off solution. Now we can seriously think about solar power as unlimited--and soon."

James Barber, a biochemistry professor at Imperial College London who studies artificial photosynthesis but was not involved in this research, called the discovery by Nocera and Kanan a "giant leap" toward generating clean, carbon-free energy on a massive scale.

Posted by Tim at 08:50 PM | TrackBack

Hersh: Provoking an Incident with Iran

In Hersh’s most recent article, he reports that this meeting occurred in the wake of the overblown incident in the Strait of Hormuz, when a U.S. carrier almost shot at a few small Iranian speedboats. The “meeting took place in the Vice-President’s office. ‘The subject was how to create a casus belli between Tehran and Washington,’” according to one of Hersh’s sources.
Posted by Tim at 08:43 PM | TrackBack

Python Decorators Don't Have to be (that) Scary

Decorators modify functions. Beginning with the basics, learn how to use decorators in a variety of ways. Execute code when a function is parsed or called. Conditionally call functions and transform inputs and outputs. Write customizable decorators that accept arbitrary arguments. And, if necessary, easily make sure your decorated function has the same signature as the original.
Posted by Tim at 06:58 PM | TrackBack

July 29, 2008

IPython: an Enhanced Python Shell

IPython is a free software project (released under the BSD license) which tries to: Provide an interactive shell superior to Python's default.
Posted by Tim at 08:21 PM | TrackBack

Brooks: America's Education Lead Ended in 1970

Between 1870 and 1950, the average American’s level of education rose by 0.8 years per decade. In 1890, the average adult had completed about 8 years of schooling. By 1900, the average American had 8.8 years. By 1910, it was 9.6 years, and by 1960, it was nearly 14 years.

As Claudia Goldin and Lawrence Katz describe in their book, “The Race Between Education and Technology,” America’s educational progress was amazingly steady over those decades, and the U.S. opened up a gigantic global lead. Educational levels were rising across the industrialized world, but the U.S. had at least a 35-year advantage on most of Europe. In 1950, no European country enrolled 30 percent of its older teens in full-time secondary school. In the U.S., 70 percent of older teens were in school.

Posted by Tim at 06:48 PM | TrackBack

July 26, 2008

The single most important thing you must do to improve your programming career: Communication

The single most important thing you must do to improve your programming career is improve your ability to communicate.
Posted by Tim at 08:43 PM | TrackBack

Video: Politician avoids Question

Journalist Jeremy Paxman asks politician Michael Howard the same question 12 times while the politician skirts around the issue.
Posted by Tim at 07:25 PM | TrackBack

July 24, 2008

Django: caching parsed templates

Put this code somewhere in one of your INSTALLED_APPS __init__.py file. This code will replace the django.template.loader.get_template with cached version. Standard get_template function from django reads and parses the template code every time it's called. This version calls (if DEBUG set to False) it only once per template. After that it gets a Template object from template_cache dictionary.
Posted by Tim at 08:21 AM | TrackBack

Pickens: Previously Supported Bush

And what the 80-year-old T. Boone Pickens says, in a $58 million campaign, is that we can’t drill our way to lower gas prices. By implication, anybody who tells you otherwise — including the fellow Texan he helped put in the White House — is a fraud.

This is a political parable for the ages: the guy who was behind one of the knockout punches to John Kerry four years ago is now doing Democrats the biggest favor of the election by calling Republicans on their phony energy campaign.

Posted by Tim at 08:06 AM | TrackBack

July 23, 2008

Perl On Google App Engine

I'm happy to announce that the Google App Engine team has given me permission to talk about a 20% project inside Google to to add Perl support to App Engine. To be clear: I'm not a member of the App Engine team and the App Engine team is not promising to add Perl support. They're just saying that I (along with other Perl hackers here at Google) are now allowed to work on this 20% project of ours out in the open where other Perl hackers can help us out, should you be so inclined.
Posted by Tim at 04:47 AM | TrackBack

Guantánamo prisoners: Cases in Depth

Donald Rumsfeld described the detainees at Guantánamo as “the worst of the worst.” A more sober assessment has since been reached by many respected observers. Ms. Mayer mentioned a study conducted by attorneys and law students at the Seton Hall University Law School.

“After reviewing 517 of the Guantánamo detainees’ cases in depth,” she said, “they concluded that only 8 percent were alleged to have associated with Al Qaeda. Fifty-five percent were not alleged to have engaged in any hostile act against the United States at all, and the remainder were charged with dubious wrongdoing, including having tried to flee U.S. bombs. The overwhelming majority — all but 5 percent — had been captured by non-U.S. players, many of whom were bounty hunters.”

Posted by Tim at 04:39 AM | TrackBack

July 22, 2008

jQuery Sparklines

This jQuery plugin generates sparklines (small inline charts) directly in the browser using data supplied either inline in the HTML, or via javascript
Posted by Tim at 09:49 PM | TrackBack

newforms-admin Migration and Screencast

The newforms-admin branch has landed! It has been in development for quite some time and is now in trunk. I am extremely excited about it. However, I am a special case since I have been using the branch for quite some and even a committer on the branch. Migration for me has been easy, but I wanted to share that knowledge with everyone else. I have been seeing a lot of people getting stuck on where to begin. The admin documentation is quite pointless for those who have exisiting Django code. That is done on purpose. The newforms-admin branch wiki page has the information you are looking for.
Posted by Tim at 07:45 AM | TrackBack

July 21, 2008

Oracle Doesn't Think Software as Service is Profitable

Why isn't Oracle a bigger player in on-demand software? It doesn't want to be, Ellison told the analysts and investors. "We've been in this business 10 years, and we've only now turned a profit," he said. "The last thing we want to do is have a very large business that's not profitable and drags our margins down." No, Ellison would rather enjoy the bounty of an acquisition spree that handed Oracle a bevy of software companies, hordes of customers, and associated maintenance fees that trickle straight to the bottom line.
Posted by Tim at 06:02 PM | TrackBack

July 20, 2008

Database History Tables

A history table allows you to use one table to track changes in another table. While the basic idea is simple, a naive implementation will lead to bloat and will be difficult to query. A more sophisticated approach allows easier queries and can produce not just information about single rows, but can also support aggregrate company-wide queries.
Posted by Tim at 08:55 PM | TrackBack

July 19, 2008

HeatMapAP

Create your own heat maps using HeatMapAPI. Use it over the Internet or as a .NET DLL to run in your environment. Integrate heat map images into Google Maps or other GIS systems.
Posted by Tim at 09:16 PM | TrackBack

The Truth about Web Navigation

A lot of people seem surprised to learn that tons of people every day are "searching" for ebay.com or aol.com or just "ebay" or "aol" even though they can type those things into their address bar and get exactly what they want.

Everyone in the search business seems to mostly get this. The folks at those big destinations (like eBay) know this too. They have logs. But the rest of the techie population on-line seems to believe that normal people use the web the same we do.

They don't. And they never will.

..People don't get DNS, domain names, or the difference between searching and direct navigation. And since they all know what it means "to google" that's exactly what they do. You can either accept that or deny the truth.

..This ends today's reality check. Please go back to trying to change the world by explaining what the address bar is for. :-)

Posted by Tim at 09:15 PM | TrackBack

Google Analytics API: Hack

If you’re like me, you probably have a blog and use Google Analytics to track visitor activity. If you’ve not already got one, you probably want a “Most Popular Posts” section on your blog as it’s a great way for new visitors to find your best content. The only problem is that this would usually have to be hard coded, and would therefore need updating periodically after you’ve checked the “Top Content” report in Google Analytics, or it would require some server-side scripting and a database to track your page views and show the links dynamically.

Wouldn’t it be great if you could somehow use Google Analytics to display the “Most Popular Posts” section on your blog automatically? That would be a huge time-saver for you and would make it much more useful for your visitors as it would always be up-to-date. Unfortunately, Google Analytics doesn’t have an API, but here’s a method that doesn’t involve any server-side code or screen-scraping. All you need to do is use a few existing free services from Google and Yahoo and a bit of JavaScript.

Posted by Tim at 03:42 PM | TrackBack

NFL Player IQ by Position

I was reminded this morning that Mario Manningham, a wide receiver who played for Michigan was rumored to have scored a 6 (out of 50) on the Wonderlic, an intelligence test administered in some occupations (and now pro football) to check the mental capability of job candidates.
Posted by Tim at 01:31 PM | TrackBack

Flexigrid: jQuery Grid Control

Lightweight but rich data grid with resizable columns and a scrolling data to match the headers, plus an ability to connect to an xml based data source using Ajax to load the content.
Posted by Tim at 01:19 PM | TrackBack

Standing at the Pump Makes Gas Seem More Expensive

Looking back at my family’s expenses over the past few years, I see big increases in our health care costs and in how much we pay for food. The rise in what we spend on gas is not nearly as extreme as our increases in categories like electricity and telephone. So why does the amount we spend on gasoline feel so enormous? I think it is because of the way we buy gas.

For the several minutes that I stand at the pump, all I do is stare at the growing total on the meter — there is nothing else to do. And I have time to remember how much it cost a year ago, two years ago and even six years ago.

..Perhaps it would be better if gas station attendants filled the tank for us, as they used to, so we did not stand at the pump watching the rising price of our gasoline. Maybe it would help if gas pumps came with bigger hoses so that filling up would go faster and we’d spend less time watching the meter. Or maybe we should just learn to examine all our purchases and expenses more holistically so that we see where rising costs make the biggest difference.

Posted by Tim at 06:46 AM | TrackBack

July 17, 2008

Amazing Stat: California Uses More Gas than China

California alone uses more gasoline than any country in the world (except the US as a whole, of course). That means California's 20 billion gallon gasoline and diesel habit is greater than China's! (Or Russia's. Or India's. Or Brazil's. Or Germany's.)
Posted by Tim at 09:53 PM | TrackBack

July 16, 2008

Picken's Plan: Wind Power: Short Term Fix

An interesting video from a former oil man who is now heavily invested in wind power.

This video is interesting because Pickens is not your typical left-wing guy. He talks dollars and cents (actually billions of dollars). And he does whiteboard diagrams.

Realted

Posted by Tim at 11:32 PM | TrackBack

Recession-Plagued Nation Demands New Bubble To Invest In

WASHINGTON—A panel of top business leaders testified before Congress about the worsening recession Monday, demanding the government provide Americans with a new irresponsible and largely illusory economic bubble in which to invest.

"What America needs right now is not more talk and long-term strategy, but a concrete way to create more imaginary wealth in the very immediate future," said Thomas Jenkins, CFO of the Boston-area Jenkins Financial Group, a bubble-based investment firm. "We are in a crisis, and that crisis demands an unviable short-term solution."

Posted by Tim at 08:14 PM | TrackBack

July 15, 2008

2008 Tour de France Photos

France is currently hosting the 95th Tour de France - which began on July 5th, and continues through July 27th. The Tour is the world's largest cycle race, with twenty teams of nine riders (invitation-only) entered in this year's race. Ten riders have dropped out so far, including one suspension for a doping offense. (18 photos total)
Posted by Tim at 08:11 PM | TrackBack

July 12, 2008

Kiwi Gas Mileage Meter

The Kiwi is a small dashboard computer that plugs into your car’s on board computer through the diagnostic port (called an OBDII/CAN port) which is typically located under the steering wheel. The OBDII port can be found on almost all cars manufactured after 1996.

Using your car computer’s information, the Kiwi calculates four basic parameters associated with your driving style:

  • Smoothness — How steady a speed are you driving?
  • Drag — How much wind resistance your car is facing?
  • Acceleration — Are you trying to get to warp 9, or are you Driving Miss Daisy?
  • Deceleration — Do you have one foot on the brake and the other on the accelerator?
Posted by Tim at 08:11 AM | TrackBack

July 10, 2008

The Top 100 Liberal Arts Professor Blogs

Academics are flocking to the Internet like never before, particularly to start a blog. Faculty members in colleges across the world are connecting with people on a whole new level. Let's face it – academia can actually be very lonely at times. Not only can a blog be cathartic for professors, it can allow for valuable feedback from students and/or colleagues.

Liberal arts subjects are wildly varied. From art to science, the major disciplines have long been considered part of the liberal arts. Below are 100 of the most interesting and popular blogs written by liberal arts professors.

Posted by Tim at 07:16 PM | TrackBack

Obama's Centrism: The Audacity of Listening

When an extremely intelligent politician tells you over and over and over that he is tired of the take-no-prisoners politics of the last several decades, that he is going to get things done and build a “new consensus,” he is trying to explain that he is all about compromise. Even if he says it in that great Baracky way.

Here’s a helpful story: Once upon a time, there was a woman searching for a guy who was ready to commit. One day, she met an attractive young man.

“My name is Chuck,” he said, grinning an infectious grin. “I’m planning to devote my entire life to saving endangered wildlife in the Antarctic. In five weeks I leave for the South Pole, where I will live alone in a tent, trying to convince the penguins that I am part of their flock. In the meantime, would you like to go out?”

“I have just met the man I’m going to marry,” she told her friends. She had been betrayed by poor listening skills, which skipped right over the South Pole and the tent.

Posted by Tim at 08:27 AM | TrackBack

July 09, 2008

Rans Ride and Carry Cargo System

Production should begin in a few weeks with a target price of $375 and some interesting features:
Posted by Tim at 10:12 PM | TrackBack

July 08, 2008

Bansuri Master Deepak Ram Tackles Jazz

Ram eventually became a master of the bansuri and has recorded a series of albums of North Indian classical music. But his newest record, Steps, is a departure: He's playing classic American jazz on one of India's most traditional instruments.
Posted by Tim at 08:59 AM | TrackBack

Twitter: Hurry up, the customer has a complaint

When C.C. Chapman noticed a blemish in his high-definition television's reception during the NBA playoffs recently, he blasted a quick gripe about Comcast into the online ether, using the social network Twitter.

Minutes later, a Twitter user named ComcastCares responded, and within 24 hours, a technician was at Chapman's house in Milford to fix the problem.

"I was so floored," said Chapman, who runs a digital marketing agency and advises companies to do what he experienced with Comcast - listen to what customers are saying about them online and respond. "When it actually happened to me, it blew me away," he said. "Now I have a case study."

Posted by Tim at 07:34 AM | TrackBack

July 07, 2008

Data: Highest CO2 Emitting Power Plants in the World

At its core, Carbon Monitoring for Action (CARMA) is a massive database containing information on the carbon emissions of over 50,000 power plants and 4,000 power companies worldwide. Power generation accounts for 40% of all carbon emissions in the United States and about one-quarter of global emissions. CARMA is the first global inventory of a major, emissions-producing sector of the economy.
Posted by Tim at 10:36 PM | TrackBack

Programmer Productivity Scaling: Mythical Man Month

Like many in the industry when faced with a project running behind schedule, this company’s management applied the SMFs to the problem. The SMFs predict that increasing the number of programmers will increase the amount of software produced. So the company went back to the “bodyshop” for more people. The bodyshop naturally was all too happy to add more developers billing by the hour.
Posted by Tim at 05:29 PM | TrackBack

July 06, 2008

CA Republicans Oppose 17-year-old Voter Preregistration

A pair of Assembly bills designed to bring more young people into the voting booths are being fought by Republicans who worry that too many of those new voters will be liberal Democrats.

One of the measures would allow 16- and 17-year-olds to "preregister" to vote, while the other would allow 17-year-olds to vote in a primary election if they will be 18 by the date of the next general election. Both bills have prompted straight party-line votes, with no hint of GOP support.

Posted by Tim at 09:49 PM | TrackBack

Poedit: Language Translation Tool

Poedit is cross-platform gettext catalogs (.po files) editor. Allows translators to specify translations for lists of phrases.
Posted by Tim at 09:21 PM | TrackBack

The Anti-Commons: The Gridlock Economy

How many popular economics books offer a message which is (mostly) true, non-trivial, and understandable? Michael Heller's The Gridlock Economy: How Too Much Ownership Wrecks Markets, Stops Innovation, and Costs Lives satisfies that troika. The key message is that the "tragedy of the anti-commons" is often a bigger problem than the better-known tragedy of the commons. The tragedy of the anti-commons arises when too many veto rights are exercised
Posted by Tim at 04:49 PM | TrackBack

July 05, 2008

Fox News airs altered photos of NY Times reporters

During a segment in which Fox & Friends co-hosts Steve Doocy and Brian Kilmeade labeled New York Times reporter Jacques Steinberg and editor Steven Reddicliffe "attack dogs," Fox News featured photos of Steinberg and Reddicliffe that appeared to have been digitally altered -- the journalists' teeth had been yellowed, their facial features exaggerated, and portions of Reddicliffe's hair moved further back on his head.

Related

Posted by Tim at 09:00 PM | TrackBack

Investing in a Quality Programming Chair

In A Developer's Second Most Important Asset, I described how buying a quality chair may be one of the smartest investments you can make as a software developer.
Posted by Tim at 08:53 PM | TrackBack

VW: ultralight car: 235 mpg

With gas prices going through the roof and regulators requiring cars to be ever more miserly, Volkswagen is bringing new meaning to the term "fuel efficiency" with a bullet-shaped microcar that gets a stunning 282 235 mpg.

Volkswagen's had its super-thrifty One-Liter Car concept vehicle -- so named because that's how much fuel it needs to go 100 kilometers -- stashed away for six years. The body's made of carbon fiber to minimize weight (the entire car weighs just 660 pounds) and company execs didn't expect the material to become cheap enough to produce the car until 2012.

Posted by Tim at 10:21 AM | TrackBack

Canada best to escape climate change

Canada is the best country to move to if you want to escape the dangers of climate change.

A new study by UK global risk advisory firm Maplecroft of nations’ vulnerability to the impacts of global warming found Canada was the most secure, while the Comoros Islands, off the coast of Africa, are least equipped to deal with future dangers.

Posted by Tim at 10:17 AM | TrackBack

July 04, 2008

Local man loves his Chinese-made scooter

Marion Mumford says scooters are a great way to get around town and save on gas. "The looks and the styling. I just fell in love with it, so I decided to buy it."

It's street legal, requires a motorcycle endorsement on your driver's license and gets great mileage.

"If I drive between 30 and 40, I'll get 120 mpg. If I drive between 40 and 50, I'll get 80-90 mpg."

Posted by Tim at 10:23 AM | TrackBack

jQuery: Drag and Drop

Dragging and dropping rows within a table can’t be handled by general purpose drag and drop utilities for a number of reasons, not least because you need to move the whole row, not just the cell that receives the mouse events. Re-parenting the row also requires specific code. Sadly also, effects like fadeIn and fadeOut don’t work well with table rows on all browsers, so we have to go for simpler effects.
Posted by Tim at 09:49 AM | TrackBack

July 03, 2008

Map: Percent of Income Spent on Gas

Gas prices are high throughout the country, but how hard they hit individual families depends on income levels, which vary widely.
Posted by Tim at 10:19 PM | TrackBack

July 02, 2008

Zimbabwe: Printing More Money

One wild card now is Zimbabwe’s economy, spiraling downward at an accelerating rate. As the government continues to print more money, inflation has soared past a million percent, according to economists and business people. A loaf of bread is selling for more than $30 billion.

Opposition strategists ask how long Mr. Mugabe can keep paying the policemen, soldiers and informal militia whose use of violence bludgeoned the opposition out of the election. And, they note, even the government’s ability to keep printing money to pay its bills is in jeopardy. On Tuesday the German company, Giesecke & Devrient, citing a request from the German government, announced it would no longer supply the special paper Zimbabwe needs to print bank notes.

Posted by Tim at 06:23 PM | TrackBack

July 01, 2008

Django File Uploads

Nearly two years in the making, Django’s file upload capacity has received a major (and backwards incompatible) upgrade. Previously, files were uploaded by default in to RAM—now, files larger than 2.5MB are streamed to a temporary file and extensive hooks are provided to customise where they end up—streaming to S3, for example.
Posted by Tim at 06:47 PM | TrackBack

dragtable & sortable: Visually reorder all your table columns

Over the past several years, Stuart Langridge’s sorttable Javascript library has found widespread use. It’s easy to see why. Just add class=sortable to a table tag and its column headers automatically support click to sort. Pretty slick.
Posted by Tim at 06:44 PM | TrackBack