Archive

Archive for August, 2007

Photography is my new hobby

August 29th, 2007

I picked up a new hobby and a new toy this past week. Its an Olympus E-510 which I’m so far very happy with.

It was a tough choice between this an the Canon Rebel XTI simply because Canon has a bigger market share and it would be nice to have lots of selection for lenses and other accessories.

Nontheless I picked the Olympus because: 1. Live View LCD. Should be fun for IR photography 2. Image stabilization built into the body will save money on lenses

I cleaned up my Photo Gallery and have a new Photography section. Here is one photo which I like taken with this camera:

Photography

TextMate Command to get QNX 6.3.0 POSIX docs into HTML window

August 15th, 2007

I created a new TextMate command today to get the HTML documentation for the current word highlighted from the QNX 6.3.0 online documentation. If you’re looking for POSIX docs integrated with textmate then this should work for you also:

#!/usr/bin/env python
#

import os

word = os.getenv("TM_CURRENT_WORD");
char = word[:1]

print """<script type="text/javascript">
<!--
window.location = "http://www.qnx.com/developers/docs/6.3.0SP2/neutrino/lib_ref/%s/%s.html"
//-->
""" % (char, word)

Computers, General, Mac OS X

Idiocracy becoming a reality?

August 13th, 2007

Idiocracy is a great movie, the whole premise of the movie is that the human race is evolving to be unintelligent by over-breeding of those not so bright folks, and lack of breeding by smart people.

Here is a funny site that thinks its becoming a reality.

General

Starting to use TextMate

August 11th, 2007

I have decided to switch to TextMate as my editor. I’ve been using Vim for a while now and still think its a great editor but have decided to make the switch.

TextMate is really easy to customize. I usually do my editing with Vim on the Mac, and through NFS I compile QNX applications inside Parallels or VMWare which mount my Mac filesystem. I don’t want to maintain my own cross-compilation environment to build QNX 6.3 apps using darwin but it would be nice to issue build requests from Mac OS X.

I looked at the “Makefile” bundle which came with TextMate and it was very easy to read and looked like a good place to customize this to do what I wanted. I copied all content from the Makefile bundle’s run command to a new command in my own bundle. It went from this::

. "$TMSUPPORTPATH/lib/webpreview.sh"
html_header "Running make"

make ${TMMAKEFLAGS} 2>&amp;1|"${TMRUBY:-ruby}" \ -rtmparser -eTextMate.parse_errors

echo "Done." html_footer

To this:

. "$TMSUPPORTPATH/lib/webpreview.sh"
html_header "Running make"

ssh qnxvm ". ~/.zshrc; cd $TMDIRECTORY; make ${TMMAKEFLAGS} 2>&amp;1" |"${TMRUBY:-ruby}" \ -rtmparser -eTextMate.parseerrors

echo "Done." html_footer

What that does is execute a build request in the same folder as the one I’m currently editing, but on my virtual machine using ssh as the transport. Using ssh keys it just executes without me having to type my password. I get a web output with links to my files that I can click on if there are compile errors to bring me to the code line. For this to work, you need to make sure that both systems have the same folder hierarchy.

And to seal the deal, I’m making this wordpress post remotely using BlogMate which is a TextMate bundle!

Computers, General, Mac OS X