Archive for February, 2006

Find Your Favorite

Monday, February 27th, 2006

Who doesn’t love Calvin and Hobbes? How many times have you been in a situation where you think, man, this is just like a Calvin and Hobbes strip? Okay, so I’ve never transmorgified my clones into worms, but hey, it’s good to be prepared in case that need should arise, right?

Say, however, that you had an issue and wanted to see how Calvin would approach it. Or that you remember a strip that you loved but can’t find it. Well freaks,  get a life! Or search for it on the Calvin and Hobbes Strip Search (haha) Engine! That’s right, a keyword-searchable database of C&H strips for your browsing pleasure. w00t!

My Next Car

Monday, February 27th, 2006

Damn, I want one.

AJAXing the site

Thursday, February 23rd, 2006

I’ve had some lull time the last couple days and decided to put it to good use and put some new things on the site. What resulted from that hackery is the webcam image and the flickr images on the sidebar. So, the low down on what is occuring – the webcam image comes from my webcam, using a program called camorama, which then uploads the picture to my web server. Once your web browser has loaded the image, it checks back periodically with the web server to see if a new image has been uploaded. If so, it updates the image. On the administrative side, I have an AJAXed caption field that allows me to update the caption of the webcam pic, which will then be picked up by anyone with the site open the next time their browser looks for an updated image. It’s nothing ground-breaking but I like it.

The Flickr plugin (FAlbum) itself is really great. I added the little button to the right of the heading so that users can pull new random pictures. It goes back to the server and uses the plugin to pick another set of pictures. The animations of the images are provided by the scriptaculous javascript library.

Again, there is nothing too ground-breaking about what has happened, but I like it and its my site, so there! Hehe…Seriously though, nothing here is static. Have an idea to improve something? Let me know in the comments. Or email. Or telepathy.

Programming Epigrams

Tuesday, February 21st, 2006

First, to catch some up, a definition:

epigram: n.

  1. A short, witty poem expressing a single thought or observation.
  2. A concise, clever, often paradoxical statement.

From a list of programming epigrams, I liked these two a lot:
35. Everyone can be taught to sculpt: Michelangelo would have had to be taught not to. So it is with great programmers.

116. You think you know when you can learn, are more sure when you can write, even more when you can teach, but certain when you can program.

Uploading video to Google Video

Monday, February 20th, 2006

Where to host that huge home video without killing your bandwidth? Never fear, Google is here. Sign up for a Google Video Upload account and you can post your videos for free for all the world to see. Some software is required to download to your computer to enable uploads, however, but Google does provide nice guides on how to install it for Windows and Mac users. The Linux version, however, can be a little cryptic, especially for those without java experience. That said, for those with Linux, here are some steps to giving yourself upload capabilities:

1. Download the jar file. Place it somewhere you won’t forget too soon (I chose $HOME/bin/ ).

2. Create a file with a descriptive name, like googleupload, or whatever you wish, somewhere in your $PATH (/usr/bin/ would be a safe bet, but I chose $HOME/bin/ ).

3. At the top of the file, type java -jar $HOME/bin/GoogleVideoUploader.jar (some versions of Linux may require a shebang line first). Substitute $HOME/bin/ for the absolute path of the jar file if you saved it elsewhere.
4. Save the file and chmod it to be executable (755 is probably a safe bet).

5. Run the executable from the terminal.

Happy uploading…

Copy that DVD with MEncoder

Monday, February 20th, 2006

In the console of choice:

1. Type mplayer dvd://1 -alang en -vf cropdetect

Use the appropriate chapter of your DVD. Let the DVD play for a bit, then quit.

You should see lines resembling this: crop area: X: 6..719 Y: 0..477 (-vf crop=704:464:12:8) 0.7% 35 0

The (-vf crop …) is the important part. Remember this for later.

2. There are three stages to the rip, with lots of configurable options. Here’s a sample.

First, rip the audio: mencoder dvd://1 -alang en -ovc frameno -o frameno.avi -oac mp3lame -lameopts abr:br=96:vol=5

Next, the first pass for the video: mencoder dvd://1 -nosound -oac copy -o /dev/null -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1000:vhq:vpass=1 -aspect 16:9 -vf crop=704:464:12:8,scale -zoom -xy 640

Lastly, bring it all together: mencoder dvd://1 -oac copy -o file.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1000:vhq:vpass=2 -aspect 16:9 -vf crop=704:464:12:8,scale -zoom -xy 640

The difference between stages 2 and 3 were the -o option and the vpass attribute. The -vf crop should be replaced with your -vf crop from the beginning. There are tons of options which one can play with to vary filesize and quality, but I’ll leave those to the reader to discover. Do set aside a healty chunk of time, as this process can take 3-5 hours for a full DVD.

Cooking Old School

Friday, February 17th, 2006

It seems that Teflon, that wondercoat that saved many a novice chef from hours of painstaking scrubbing of pots and pans, is no longer the golden child of the cooking world. It appears that Teflon contains PFOA (perfluorooctanoic acid), recently classified as a likely carcinogen by the EPA. So what’s a cooking n00b to do? Do it like the pro’s yo!

Carl Tashian gives a nice write-up of the ways to use non-Teflon pans to achieve superior cooking performance. Will certainly put these into practice as I sub out the Teflon. Who doesn’t like better prepared food? I certainly want to leet up in the kitchen!

Sweetness

Thursday, February 16th, 2006

I like to think that the prevalence of green articles means things are actually moving that way, and not unsubstantiated hype. That said, here’s an article highlighting some of Britan’s steps towards switching off their dependance on oil and turning on the bioethanol flood, generated from renewable resources like sugar.

New Look

Sunday, February 12th, 2006

After updating the codebase to 2.0, I thought, “Hey, Kubric has been nice, but I think it’s time to change the theme.” After a little browsing, I found tonus and decided to give it a whirl. Thus far, I like it. We’ll see tomorrow whether I still like it.

Fun With English

Wednesday, February 8th, 2006

hippopotomonstrosesquippedaliophobiafear of long words.