Vote Smart Internship
This week my internship wraps up and I head to Seattle to see a friend. This has been a great experience. I can see Django's advantage over PHP for development with the DRY (Don't Repeat Yourself) principle.
Here are a few of the things I have learned in the process:
- For sophisticated (1 page or more) queries, sometimes you need to run raw() and extra() queries. Don't be afraid to.
- Try to push most things out to the template. It keeps your code clean.
- Use the django-debug-toolbar. It's a great way to optimize queries and page load time.
Be sure to check out the VoteEasy tool that Poject Vote Smart just released.
25 miles in the mountains
Yesterday I did a 25 mile run. I found that I was behind on fluids when I returned to the ranch. I drank as much as I felt I could without puking, but if I had drank at least 20 ounces per hour and consumed at least 1000 calories in 4 hours I would have been able to run another 25 miles. For the day I went through two quarts of Pedialyte and a lot of frothy maple syrup.
It's time to practice drinking and eating during training runs.
Cornish Roots
While reading the Guardian this week I came across a story of the birth of the fourth child of David Cameron, the prime minister of Great Britain. What struck me about this story was the mention of Truro, a historical trading city mentioned in the Poldark novels. Currently I am finishing up Winston Graham's fourth novel, Warleggan. Onward!
ImageDataURI
Check out ImageDataURI on Github. It's a middleware plug-in I created for Django.
Traileader Pro Accuracy Issue
This problem has been driving me nuts for the past few weeks. I live at about 6000 ft above sea level on the Project Vote Smart ranch and I regularly run as high as 7500 ft or as low as 5500 ft. My watch should measure elevation and pressure but the readings are messed up and the altimeter registers a lower reading for the ranch each time I take a run. When I flew home from Korea I knew that the watch would require some adjustment, but now I apparently will have to do it every day. That defeats the purpose of this watch if I have to buy an altimeter or a barometer to configure it. I am still happy with the accelerometer though.
Toys of the Future
This is a cool new toy for smart phones by a company called Gearbox. I don't personally have a smart phone but it would be intriguing to see more electronic toys integrate with smart phones. Imagine the day when kids use multiple tanks, aircraft, and infantry to command and wage war in their backyard directly from their smart phone.



