Posts

Showing posts from 2010

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