Posts

Media server for Mac with wake on lan, streaming, automounting

Well, I finally have a decent system in place for storing and consuming media on my macs. My wife and I each have Mac laptops. We store all our Movies on a file server now running Ubuntu 10.10 configured with netatalk, advertising itself via avahi, and now the laptops automatically mount the shares when the server is turned on. This last part was needed because I like to use iTunes to keep track of which TV episodes I've watched as well as use my iPhone to control volume and playback. She prefers to just use the Finder to navigate to the movie she wants to put on for the kids without opening iTunes. It turns out the magic recipe is to use keys for authentication with ssh, then on the server add a line like this for each machine you want to automatically mount the network share: /usr/bin/ssh user@machine.local osascript -e \'mount volume \"afp://username@hostname.local/ShareName\"\' \&\& open /Volumes/ShareName & That is all on one line. As you are ...

SwitchRexX and Toshiba 32HLC56

After some trial and error, I discovered the perfect settings for my Toshiba 32" TV with SwitchResX connected via VGA. Horizontal Vertical Active 1152 716 Front porch 86 36 Sync width 128 7 Back porch 298 39 Blanking 512 82 Total 1664 798 Scan rate 47.776 59.879 Positive sync Not checked Checked Now I won't miss a thing.

iChat IRC transport with OpenFire and Kraken

Long have I wanted the all-in-one functionality of Adium with the AV chat capabilities of iChat. I really wanted to use iChat for all my messaging needs. I have finally achieved my goal using Openfire , a free XMPP server, and the Kraken plug-in that provides the tranports for other instant messaging services. In my case, I am interested specifically in IRC, but I got my little-used MSN account working also for test purposes. Kraken provides many different tranports. I should clarify my goal a bit. I only care about AV capabilities for protocols that iChat officially supports so I have not tested anything beyond text chatting with MSN. I only use IRC for text chat anyway, no DCC or file transfers. What do you need? You need to install the Openfire server and the Kraken plug-in. The Current versions when I did this were Openfire 3.6.4 and Kraken 1.1.3.beta2. Openfire had a binary download for OS X Snow Leopard, but I had to build Kraken from source. Click on this direct link ...

Merge script

I needed to combine all the files in two different directories. The challenge was that in two different directories, two different files had the same name. So I wrote a merge script to rename the file from the source directory if the name already existed in the target directory. It appears below: #!/bin/bash # Merge the contents of two directories, renaming duplicate files so that no files are overwritten # usage merge.sh destdir SRC1="$1" DEST="$2" for FILE in $( ls "$SRC1" ); do let "i = 0" FN="$DEST/${FILE/%.jpg/-$i.jpg}" while [[ -e "$FN" ]]; do let "i += 1" FN="$DEST/${FILE/%.jpg/-$i.jpg}" done ln -v "$SRC1/$FILE" "$FN" done It worked for my purposes.

My GeekTool desktop

Image

Snow Leopard, the Slow Finder, and Path Finder

I don't know about the rest of you, but the Finder on Snow Leopard is extremely slow for me. I was seriously considering downgrading to Leopard, but the exchange support keeps me on Snow Leopard. As I was browsing the forums, I found a post that mentioned Path Finder . I had forgotten about Path Finder. I tried it back when I was using Tiger, but it seemed overkill for my needs. My frustrations with the current Finder led me to give it another try. Oh my goodness! Finally, quick, efficient file browsing! Even network shares are extremely fast. For anyone suffering with Snow Leopard's Finder, give Path Finder from CocoaTech a try. It makes my Mac a joy to use again. For all the KDE users out there, all the nifty utilities and features of Path Finder make me think of the konqueror file browser. It includes dual-pane browsing, tabs, a terminal drawer that opens to the current directory, recent folders/documents list, and more. Check it out if you have time. Once nice ...

Semi-automatic photo scanning

For anyone who has a lot of photos to scan, the idea of scanning multiple photos and looking through each file to cut and paste the photos into individual photos can be real turn off if not much time is available. I know I certainly don't want to have to crop each photo out. Shouldn't there be some way for the computer to automatically pick out each individual photo? Luckily, there is. Below I present a script, that coupled with some intelligent scanning methods, automates the process of splitting the scan file into individual files of single photos. The ImageMagick package is a set of command line tools that can do all kinds of things with images, including extracting regions of photos. If I know the size of page, the size of the photos, their position on the page, and the scan density (dpi), then I can use a script to extract each photo from the aggregate scan. I made and printed a template that contains boxes slightly bigger than the photos at known positions on the pa...

Engineering with a Macbook Pro

Image
A screenshot of me doing real engineering work on my Macbook Pro. I am writing up some calculations. You can MacVim with some LaTeX code. The code on the right corresponds to the equation in the PDF file shown below the MacVim window.

Arch linux with XFCE4 and the Awesome window manager

Image
Here comes the obiligatory screenshot:

Transparent xmonad

Image
It seems that tiling window managers suit me as I am back to Xmonad with GNOME. This time I added xcompmgr to the mix and got a nice config that fades all non-focused windows (except rdesktop for some reason. Perhaps because it is on the other screen). I also have some window shadows which are nice for floating dialog boxes. See the screenshot below:

Ubuntu 9.04 Jaunty Jackalope screenshot

Image
Here my latest desktop in Ubuntu 9.04. Here my latest desktop in Ubuntu 9.04.

Migrate OS X Address Book contacts to linux Evolution

Finally, I have found the ideal way to migrate contacts from the OS X Address Book to linux Evolution! The most obvious way is to export the address book as a vcard and then import it into Evolution, but you lose the notes you may have entered about people. After trying all kinds of things, the best solution I found is this: Sync your address book with a yahoo account in OS X. Then log into your yahoo account and export the contacts as a vcard single file. You can then import that vcard file into evolution and everything comes over like it is supposed to, including the notes. I have been searching for this for a long time. I remembered that the mac was syncing with Yahoo (you have to do this to sync with Google), and I decided just to try it. I picked the right option the first time. w00t!

current Desktop

Image
So here is a screenshot of my current setup doing real work. I am running Ubuntu 9.04 Jaunty Jackalope on a Lenovo thinkpad T60 with a 2 GHz Intel Core Duo and 2 GB RAM. The window behind the browser and under the irc session is a RDP session to a windows box running Microstation CAD.

Work standing up

Image
For heath and productivity reasons, I like to work standing up. My employer is rather slow at providing such accommodations, so I using the following setup made from printer paper: Then, someone raised a concern that in a minor earthquake, the monitor might fall onto my neighbor or out the window and requested I take down my setup. So I did, but then I found a solution to that problem by moving it over a bit on my desk.

Colloquy screenshot

Image
Colloquy screen shot using keynote theme:

Rainbow at the office

Image
I was on the phone when I looked out my office window and saw this beautiful rainbow.

Current pic

Image
No more beard or hair:

Office view

Image
Check out the view from my office:

New beard

Image
My beard and mustache have never before been this long.
sample content