Friday, December 29, 2006

Greasemonkey that funky monkey!

I recently rediscovered Greasemonkey for Firefox. Greasemonkey is a Firefox extension that allows you to write your own client side scripts to manipulate the web pages that you visit.

I've been trying to learn Django for a project at work and had been using dpaste.com to browse through people's uploaded source code in an effort to get useful examples that would help me along. dpaste.com is written using Django and is favored by Django users for uploading source code that's giving them trouble. Other developers can check out the source code that gets posted there and help solve problems with it.

I kept altering the number at the end of the URL in order to view other examples and thought it would be nice to have "Next" and "Previous" buttons on the page, so, I broke out Greasemonkey and wrote my first userscript to add that functionality.

Here are the screen shots:

Before!After!
My first Greasemonkey script. Apparently there's something similar for IE called Turnabout, but it's not out for IE7 yet.

Labels: , , , ,

Wednesday, December 20, 2006

Holy Crap!

As I mentioned yesterday, I'm in the midst of a remodeling project, converting my garage into a master bedroom. The garage butts up to a bathroom on one side so in order to install a toilet, double-vanity and bathtub/shower unit, I've had to make some big holes in my slab to locate the sewer main for the house so that I can tie the new systems into it.

Here's the damage:

Labels:

Tuesday, December 19, 2006

2007: My Make Year

Earlier this year, I started listening to podcasts on a regular basis and it's had a big impact on my life. Steve Runner's Phedippidations got me running again and I participated in Red Dog's Dog Days and earned a t-shirt.

I listened to a couple courses from Berkley's History Department; one on U.S. History since the Civil War and the other on European History. It was interesting to hear so many parallels in the histories. Like Mark Twain is credited with saying, "History may not repeat itself, but it does rhyme." I have a degree in history, though not from Berkley and while I enjoyed the lectures, I felt that they weren't really much better than what I received from my public university.

I enjoyed listening to other podcasts so much, that I bought a cheap MP3 player/recorder and made my own podcast. That seems like a life time ago. Since releasing those podcasts, I've made a few more but haven't posted them. They are too much like rants, too political and opinionated. I don't want to turn off my "audience" by being myself, so I've kept them under wraps.

And I've been extremely busy with a remodeling project, which has kept me from producing any podcasts and severely limited my blogging as well. But, I'm still listening to lots of podcasts. Over the last two days, I listened to the entire collection of Boing Boing Boing podcasts featuring one of my favorite online technologist types, Cory Doctorow who gave an amazing keynote address at the 2006 Red Hat Summit.

Last week while working on my remodeling project, I listened to Doctorow's "Down and Out in the Magic Kingdom as read by the Brooklyn Bluesman, Mark Forman. Great story and what a great service for Forman to read this book which is licensed under the Creative Commons.

I've started listening to Lawrence Lessig's Free Culture, also being read by Forman. So far, it's great. I've admired Lawrence Lessig and his work for years.

Lessig and Doctorow are both (or were) involved with The Electronic Frontier Foundation which I officially joined earlier this year. I first heard of EFF when they cracked the U.S. Government endorsed Data Encryption Standard (DES). Our government spooks said it was safe and that we should all use it and not question it's security. EFF took a quarter of a million dollars in 1998 and built a specialized computer that cracked DES encrypted messages in a few short days. Yes, our government lies and they don't want you to be able to keep secrets.

I recently listened to John Perry Barlow a retired cattle rancher from Wyoming and one of EFF's founders, along with John Gilmore a software developer and open source pioneer and also a founder of EFF. The two of them gave a talk at USC's Fullbright Chair's Speaker Series hosted by Doctorow. Worth a listen.

I was telling my wife over lunch today that I wanted to be like these guys. I want to be a person doing creative things, making things, innovating and giving it all away. Hell, I applied for a job at EFF this year, but given the salary range and the fact that I have a family to support, there's no way I could have taken the position and moved my family to San Francisco for a scant $45K, though that would have been the most difficult job offer to reject.

So, I have a longing to be creating things. To build something. I've been talking about learning how to weld for years. And in fact, that's one of the secret reasons for taking my current job, we have several welders and I'm told that if I want to use them, I can. Now if I can just get some instruction I'll be set.

Then it occurred to me, I am "making" something. For the last couple months, I've spent an average of two hours a day converting my garage into a master bedroom. I completely gutted the garage, framed in the garage door, put in a window, framed in the bedroom, bathroom and walk-in closet, installed venting for HVAC, ran all the electric circuits, installed nearly two dozen recessed lights, a dozen electrical outlets, a bathroom fan and I'm currently staring a two huge holes in the slab of my house so that I can install sewer lines for the new double-vanity, toilet and bathtub/shower unit that I'll be installing.

So my point is, I may not live in San Francisco or Los Angeles. I may not have written a few novels or built cool robots or some useful piece of Web 2.0 software that everyone wants to use and Google's going to pay a billion dollars for, but I am still a maker. I am making things everyday. I'm making a better life for myself and my family. And who knows what I'll make next when my current project is completed, but it's going to be great in it's own little way.

I'm not one to make New Year's resolutions, but I'm declaring that 2007 is going to be "my make year." In 2007, my wife and I will move into our new master bedroom that I am making. We'll be having a new baby any day now, that we'll be making into a productive citizen for years to come. And who knows what else we'll make in 2007, but I've got some plans brewing in my head.

Sunday, December 10, 2006

Good times...

A follow up to my previous post about the bike. Yes, I bought one. Yes, it's great. It's not the best bike in the world or anything close, but for the money it's great.

I bought it off of eBay and it wasn't perfect when it arrived. The pictures on eBay showed it without pedals but I thought the seller might actually put some on before sending it out. No such luck.

The threadless headset didn't have the right cap for locking it down and it wasn't properly adjusted. The rear hub was so tight that it almost wouldn't spin. The brakes needed adjusting and one of the adjustment bolts was cross-threaded. Yes, the world is full of bad bike mechanics.

I took the bike to my local shop and asked the mechs to give it the once over. While I was there, another guy had just bought a custom Ti Moots cyclocross bike custom fit to his build. He dropped around $10K for it. Ridiculous, but if I had more money than sense, I'd probably do it too.

So, I've been riding this bike everywhere. I can't make it up my usual hill to work without getting off and walking, but I'm getting better. I have been switching the routes a bit in order to get to work without walking. It's less direct, but a longer ride means more fun. And that's what riding this bike is, fun. Pure and simple.

In the spring, I'm going to ask my local shop for a new wheel set. I plan on going fixed gear.

In other news, we're still working on the remodel all of the time. Hence no new podcasts and few posts on the blog. I have been listening to lots of podcasts while working on the remodel though. I've been listening to Cory Doctorow's Down and Out in the Magic Kingdom for a few days. It's great. Cory's one of my heroes.

I do hope to get back into podcasting once the project is done, but for now, there's a ticking time bomb in my wife's belly and I really need to focus my efforts on getting it done. So, back to it.