Skip to content


Cars & Cold Weather

Surprisingly, the cold weather seems to be doing a world of good for my car.  Some of the positive changes I’ve noticed this winter include:

  • The  “Service Engine Soon” light (which is telling me about a minor transmission problem) hasn’t been lighted in a while.
  • I haven’t had to add oil for about two months.  This is hugely unusual; over the summer I needed to add maybe a quart every month.
  • My engine doesn’t overheat.  In the summer, it runs a little hot.
  • My car’s A/C is broken, but the heat works just fine :)

Of course, there are some downsides:

  • The ABS on the car died over the summer, making winter driving more interesting.
  • I have to scrape ice off the windows every day.
  • My fuel mileage drop sin the winter from about 25-26 mpg to around 22.

All things considered, I still like the summer better.

Posted in Me.


Avatar: Some Thoughts

Updated 2009-12-29: I think I may have been a little too hard on the film, even here.  To be absolutely clear, I loved the movie and recommend that you go see it.  There were just a few things which seemed a little implausible for me.  For more info on the science of Avatar (they got a lot right!), read this super-interesting article.

I just saw Avatar last night, and I wanted to share some thoughts with the world.

The short version: If you haven’t seen it yet, you should.  Just be ready for a little willing suspension of disbelief.

Note: there are some spoilers in this post. Watch the movie first.

Visually, it was stunning.  I don’t know exactly how the 3D tech worked, but it worked very well.  It was very convincing and stunning, but it wasn’t overused or overemphasized, either.  The world the artists created seemed entirely realistic, the lighting and coloring was beautiful, and all the effects were very well done.  While you’re watching, you won’t even notice what’s CGI and what isn’t; the colors, textures, and especially the lighting and other environmental factors are perfectly blended together into an entirely convincing picture.

(While I’m on the subject, I’d like to point out that the movie must have taken an extraordinary amount of computational power to render, even by today’s movie-rendering standards.  The sheer amount of power they had to have used for that is, in itself, amazing.)

I’m glad the movie ended happily for (most of) our protagonists.  I was worried about that right up until the conclusion.  I wish Trudy (the pilot who helps Jake & crew escape) had fared better, though.

I do, however, have some minor issues with the movie.  I’m entirely in favor of willing suspension of disbelief during a movie, but I still notice glaring logical/physical errors which would be problems even in the movie’s fictional setting.

You’ll note that the laws of physics changed between 2009 and 2154 (the year the movie takes place).  I’ll note just two of the physical problems that I remember (there were many, many more which I can’t remember offhand):

  • Birds flying a few feet above a giant, spinning, helicopter-blade type thing will get sucked in, no question about it.  This was not the case in one of the first scenes in the movie.
  • For an atmosphere where there’s supposedly very little oxygen, there were some pretty big fires and fireballs.  Fireballs need a pretty decent amount of oxygen to happen.

There were a few other issues which took away from the believability of the plot.

  • At the end of the movie, when Jake is fighting the Colonel at the end of the battle, the Colonel made a major tactical error by chasing Jake around rather than just heading straight for the trailer.  Had he ignored Jake for just a little bit and begun attacking the trailer, he would have forced Jake into a defensive position rather than letting him take an offensive position and effectively control the battle.  A colonel with his experience would not have made that decision (he makes an intelligent choice in a similar situation earlier), and he could have won by choosing “correctly.”  Obviously, he had to lose the fight to move the story in the right direction, but perhaps Jake could have won it differently.
  • According to the speech at the beginning of the movie, you’d lose consciousness after being exposed to the atmosphere for 20 seconds.  I didn’t time exactly, but there were several instances where I think people managed to be outside for significantly longer than 20 seconds.

Though the visuals were for the most part great, I did have a few problems, particularly with the first few scenes.  The shots in a white/gray spaceship, where everything was very evenly lit and there was plenty of depth of field (that is, everything was in focus), were very confusing pictures.  Your eye looks for visual cues when it’s deciding what to pay attention to.  These cues are things like brightness/darkness (contrast), color (or lack thereof), and selective focus (your eyes go to whatever’s in sharp focus).  Some shots at the beginning of the movie removed all these visual cues, and as a result viewers’ eyes and brains get very confused, especially when they’re exploring a 3D space instead of a 2D picture.  I spent the first 5 or 10 minutes of the movie just being confused simply because all my brain was devoted to looking at everything in a big, 3D space in detail and processing it to try and find out what was important.

All in all, these small issues don’t detract much from the film; it’s a good story, and the visuals are stunning. Go watch it.

Oh, and one more thing: Papyrus? Really?

Posted in Entertainment, Me, Tech & Science.


Things I Don’t Like About iPod/iTunes

My old faithful MP3 player’s built-in, nonreplaceable li-ion battery finally died after 5 or 6 years.  I was surprised to find that there’s basically no competition out there against the iPod Classic (at least, no competition for people who just need a basic MP3 player which holds a ton of music).  So I bought an iPod Classic 160GB which arrived the Wednesday before Thanksgiving.

Overall, it works pretty well.  There are several issues, though, which are quite annoying and which make me question the entire “Apple stuff just works” paradigm.

iTunes – no useful log of sync issues

iTunes will helpfully tell me that 66 of my tracks can’t be synced to my iPod because they can’t be found.  It will even list these tracks in a dialog box for me.  The problem is that it doesn’t let me save this list or even copy it for future reference.  For anything more than 2 or 3 songs (which you can feasibly write down or remember), this dialog box is completely useless.

iTunes – no folder monitoring

iTunes can’t monitor my Music folder for changes.  Seriously, Apple, this is 2009, and every other music player on the planet can do this.  Is it so hard for you to believe that I might obtain music via methods other than the iTunes store or ripping CDs with iTunes?  (I am a devotee of the Amazon MP3 store, for example.)

Crashes while syncing

I have synced my iPod probably eight or ten times now in total.  Two of those have resulted in my computer completely crashing; once to a gray screen which required me to press Reset and once to a black screen from which Windows automatically restarted.  Obviously, this is a huge issue; I lose everything I have open (usually, many applications) and risk corrupting both my hard disc drives and my iPod.

I’m using 64-bit Windows 7 and the latest version of iTunes 9.  I’m sure I’m not the only one using this combination.

iPod skips songs

I only noticed this with one of my albums, but I’d bet it happens with a few others I haven’t yet listened to as well.  My iPod will consistently skip several songs when I try to play them.  It happens with specific songs from one album.  I tried restoring the iPod, which didn’t work; the only solution was to re-rip the CD (using iTunes, of course).  iTunes could play these files, as could my old MP3 player and any other music player software I’ve ever used.  Really, Apple?

iPod has no FM radio

I knew this going in, but it would really be nice to have, and it’s not rocket science. Still, since I knew this going in I can’t really hold it against Apple.

iPod has no custom EQ

I did expect the iPod to let me create custom equalizer profiles.  I was disappointed to find that the only EQ the iPod provides are some preset profiles.  Apple really does adhere to their “you get what we think you should have and NOTHING more” philosophy, don’t they?

And that’s basically it.

There are some other, smaller things, but those are my main points.  All in all, I have to say that as a new Apple customer I have not been very impressed at all.

(This said, the iPod’s interface does work pretty nicely.  That’s one thing Apple seems to do well.)

Posted in Tech & Science.

Tagged with , .


Quote of the Day

Experimenting with a cool out-of-production [film] emulsion is like cruising for chicks in a hospice–you’re just gonna to get your heart broken.

Found this quote while idly cruising one of my favorite photo forums: thread here.

Posted in Photography.


Guide To Buying Your First Digital SLR

A lot of people have asked me about cameras and about what they should buy.  I’m getting a little tired of writing the same things over and over, so I’ve written down the answers once and for all in the form of a guide that will help you buy your first digital SLR.

I hope you find this 6,000-word epic useful. It is found here: Guide to Buying Your First Digital SLR

Note that right now, it’s not quite done.  I have some tidying-up to do, and one small section to add (about memory cards).  But most of it is there, and any feedback is greatly appreciated!

Posted in Photography.


Announcing IPGeolocation PHP 1.0

I have released version 1.0 of IPGeolocation PHP, a class that provides easy access to an API that provides location information about IP addresses.  Check it out!

For more information and to download the release, please see the project page.  I recommend that anyone using a previous release upgrade to 1.0; the interface is identical and you should see no problems using v1.0 instead of 0.99 or 0.9.

There are a few small changes in this release, but the most notable changes are that I am moving to github for source control, issue tracking, and downloads.  Thus far, I like it; it seems very nice, and I have not had any problems learning to use git.

Posted in Geolocator-PHP.


Perfect ViewVC On Dreamhost

I recently set up an installation of ViewVC on my Dreamhost account.  I also found out how to implement a few useful features, and I’m going to share this process here in the hope that you find it useful and in the hope that I can find it when I want to do it again.

This guide will require that you are comfortable doing basic things in the Linux shell (like creating directories, moving files, and basic text editing).  They assume that you are logged into the shell; that’s required for the installation.

Part 1: Install ViewVC

I recommend creating three folders, src, bin, and opt, in your home directory.  Keep program sources and installation files in src, installed programs in opt, and program binaries in bin.

Download ViewVC to your server (in your ~/src folder):

1
wget http://viewvc.tigris.org/files/documents/3330/46029/viewvc-1.1.1.tar.gz

Extract the archive, change to the new directory, and then run:

1
./viewvc-install

For the installation path, enter /home/username/opt/viewvc-1.1.1 or something like that.  Don’t enter anything for DESTDIR.

To make ViewVC Web-accessible, first create the subdomain and parent folder where you want ViewVC to reside.

Note, though, that if you want example.com/browse (for example) to be ViewVC, you don’t need to actually create a folder called browse – that folder is sort of a virtual directory we’ll “create” in a few moments.  Also note that if you want ViewVC to be private, you need to create a (real) directory that will be password-protected (in Part 2).

Then, copy /home/username/opt/viewvc-1.1.1/bin/cgi/viewvc.cgi to that Web-accessible directory.

Part 2: Configuring ViewVC

You can follow Dreamhost’s instructions on password-protecting directories to password-protect the directory in which you just installed viewvc.cgi.  Easy as pie.

Next, edit /home/username/opt/viewvc-1.1.1/viewvc.conf. The file is very well-documented; configure and customize as you see fit.

Part 3: Pretty URLs

There are two parts to pretty-URL setup.  First, go to the folder that contains viewvc.cgi and put this code into .htaccess:

1
2
3
RewriteEngine on
RewriteRule ^browse$ viewvc.cgi
RewriteRule ^browse/(.*)$ viewvc.cgi/$1

Second, you have to tell ViewVC what its new name is.  In the same directory, edit viewvc.cgi.  Go down, almost to the bottom of the file, and just before the comment “# go do the work” add:

1
os.environ['SCRIPT_NAME'] = "/browse"

Part 4: Template Modifications

This is entirely personal preference, but I wanted my name in ViewVC’s footer with my email address.  To do this, edit /home/username/opt/viewvc-1.1.1/templates/include/footer.ext.

I also wanted to get rid of the huge ViewVC logo on each page.  To do this, I just edited it out of header.ext in the same folder.

Part 5: Pretty Code Colors

ViewVC uses the Pygments module for code coloring.  Of course, Dreamhost doesn’t have this installed, but Python makes it easy to create a virtual environment and install “eggs” into it.

First, tell bash to look for binaries in your custom bin directory:

1
export PATH="${HOME}/bin:${PATH}"

And add this line to ~/.bash_profile:

1
export PATH="${HOME}/bin:${PATH}"

Change to your ~/src directory and download virtualenv:

1
wget http://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3.3-py2.4.egg

Create a new directory called virtualenv-1.3.3-py2.4 and move virtualenv-1.3.3-py2.4.egg into it. Change into the directory. These commands will then set up virtual environments for Python 2.5 and Python 2.4.

1
2
3
unzip virtualenv-1.3.3-py2.4.egg
/usr/bin/python2.5 virtualenv.py $HOME
/usr/bin/python2.4 virtualenv.py $HOME

Python 2.5 at Dreamhost doesn’t have Subversion bindings; 2.4 does. We’ll set up Pygments for 2.4:

1
easy_install-2.4 Pygments

Finally, change to the Web directory containing viewvc.cgi. Edit that file; change the top line to read:

1
#!/home/username/bin/python2.4

And your pretty code colors magically happen.

Part 6: Make It Faster

You can make Apache serve static content like images and stylesheets; this is faster than letting viewvc.cgi handle it. Edit /home/username/opt/viewvc-1.1.1/viewvc.conf and set the option docroot = /viewvc_static.

In the Dreamhost control panel, go to Domains => Remap Sub-Dir and create a mapping from (your ViewVC domain/folder)/viewvc_static to /home/username/opt/viewvc-1.1.1/templates/docroot.

Enjoy.

Posted in Tech & Science.


Projects Update: Browse SVN Repos Online

This is sort of a small update, but a useful one.  I’ve installed ViewVC on projects.chrisdzombak.net, so now you can easily browse the Subversion repositories for any of my open-source projects.  The software is available at projects.chrisdzombak.net/browse – try it out!

Right now, there are only two projects there, and one is barely more than a code snippet.  More will be added, however, in the next few months.  I’m working on a huge project now, for example, which will be released later this fall (hopefully).

I’m evaluating my options for bugtrackers and am planning to install one of those shortly.  I am also hoping to release version 1.0 of IPGeolocation PHP soon; stay tuned for that.

Updated: I have now imported TwitterOnAccess into SVN.  Soon on the blog: a guide to installing ViewVC on Dreamhost.

Posted in Geolocator-PHP, Me, Tech & Science.


Quick PHP Script Monday

A while ago, I wrote a small PHP script to send a message to a dedicated Twitter account whenever a certain Web page was accessed.  The idea was inspired by a dinner conversation, and honestly it is a little boring, but it’s kind of cool.

If you are interested, the script is now (over)documented and available on my projects site.  There’s also a link from there to a demo site!

Potentially more interesting, but still not groundbreaking, is the little IP address anonymization function I wrote for this project.

Posted in Tech & Science.


Transformers 2: Critics Are Wrong!

Dear Movie Critics:

I did not go to see Transformers 2 (Revenge of the Fallen) to see a nicely developed plot line with lots of attention to detail. I did not go to see some small, subtle special effects.

I went to see robots and explosions, and I got my robots and explosions.  And giant battle scenes.  I’m happy.

5/5 in my book.  If I wanted to be really harsh, I’d give it 4.5/5 because there were a few scenes which were sort of a halfhearted attempt to be meaningful and touching.  Removing those would have left more time for robots and explosions!

Sincerely,

Chris Dzombak

Posted in Etc., Me.