Other posts related to howto

Switching to Gmail IMAP on the BlackBerry

jason| August 28, 2008 9:44 am

After reading this post a while ago and spending some time thinking about it, I’ve switched over to IMAP for Gmail access on the BlackBerry.  Before I had an elaborate setup, using a filter to forward emails to my blackberry.net device email and then setting the device email to set from and reply-to to my gmail address and auto bcc my gmail address.  All that because IMAP and POP have historically had much slower delivery times on the BlackBerry than the device and enterprise email.  However, as I process more and more email using my device, I always have a pile of unread messages in my inbox whenever I log in to the web interface.  I’ve tested IMAP again and it seems to be working much faster than in the past.  Here are some notables about my new setup:

  • Emails read on the BlackBerry are marked as read in Gmail
  • Emails deleted from BlackBerry are archived in Gmail
  • After creating a ‘Sent Items’ label in Gmail, emails sent from the BlackBerry appear under this label on the web interface.  Conversations stay intact.

Technology wouldn’t be fun without a few caveats:

  • Emails read in the web interface are not marked as read on the BlackBerry
  • Emails archived or deleted in the web interface are not removed from the BlackBerry inbox
  • Any previously archived messages moved to the inbox using the web interface will be redelivered as new messages on the BlackBerry

Now at least messages are marked as read when I view them on the device and I can archive messages from the device quickly to keep them from building up in my inbox.  I still have the Gmail app installed but continue to see that as primarily a tool for searching through historic messages and chats, etc. from the device more than a good way to process incoming email and reply to it.

An Update on Unison

jason| March 31, 2008 12:15 pm

Since writing the post on synchronizing with Unison, I’ve gotten quite a bit of use out of my synchronized drive. (I call mine the MDrive; I know–creative.) I’ve also come up with a few more tweaks to make Unison hum.


Show me more… »

Synchronize a Folder Across Machines Over the Internet–Mac, PC, Whatever

jason| February 27, 2008 1:52 pm

Here is a useful HowTo for anyone who needs to keep files in sync between PCs. There are many commercial solutions out there (iDrive et al.) that facilitate this, but those can be expensive and often limit space to a few gigabytes at most. This solution allows you to synchronize as much as you need and keep costs down. It is also relatively easy to implement across multiple platforms and operating systems. Here are the basic ingredients of this design:

  1. A publicly accessible machine, always connected to the Internet, that you can access via ssh. This can be a web host that allows ssh access or a machine of your own hooked up to the Internet with a static IP or dynamic DNS.
  2. Unison. Don’t worry about this one. It’s a free rsync-like tool that supports bidirectional edits and can be downloaded for free.
  3. Some time and patience. This method isn’t exactly for the faint of heart–but no worries, walk through step by step and you’ll get there.

If it looks like you can handle those three, read on for the details.


Show me more… »

GIMP on OS X Leopard

jason| February 25, 2008 6:11 pm

I needed to do some image editing over the weekend and installed GIMP on my MacBook Pro, running OS X Leopard, using MacPorts. I was happy to find that some folks have worked hard to integrate GIMP with OS X. Included in the default ‘gimp’ port is a Gimp.app that allows easy launching of GIMP and also facilitates opening GIMP when you double click associated files.

I did have to tweak the Gimp.app package just a tad to get it working with Leopard. The package attempts to start X if it is not already running but doesn’t appear to handle Leopards switch from XFree86 to X.org. Furthermore, this sort launchd provides a launch-on-demand service that launches X11.app if an application tries to open an X $DISPLAY. Below are some quick instructions outlining what I did to get this working.

To install GIMP, install MacPorts, then open up a terminal and type:

sudo port install gimp

Grab a sandwich.

sudo vi \
/Applications/MacPorts/Gimp.app/Contents/Resources/script

Once the install completes, type the following command from the terminal:

This will open the script Leopard no longer requires in the vi editor. Feel free to use your editor of choice, but you will need to run it using sudo to have write permission. I commented out every line except the directory change, just to leave something there, but I’m fairly certain you could do without this entire script. Here’s what mine looks like:

#!/bin/sh
#
# Author: Aaron Voisine <aaron@voisine.org>

CWD="/opt/local"

#ps -wx -ocommand | grep -e '[X]11′ > /dev/null
#if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then
# echo “rm -f ~/.xinitrc” > ~/.xinitrc
# sed ’s/xterm/# xterm/’ /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
#fi

#cp -f "$CWD/bin/getdisplay.sh" /tmp/
#rm -f /tmp/display.$UID
#open-x11 /tmp/getdisplay.sh || \
#open -a XDarwin /tmp/getdisplay.sh || \
#echo ":0" > /tmp/display.$UID

#while [ "$?" == "0" -a ! -f /tmp/display.$UID ]; do
# sleep 1
#done
#export “DISPLAY=`cat /tmp/display.$UID`”

#ps -wx -ocommand | grep -e '[X]11′ > /dev/null || exit 11

cd ~/
exec "$CWD/bin/gimp" "$@"

Once I had GIMP installed, I wanted a quick easy way to change my file associations. The OS X mechanism, in the file info dialog, would require me to find a file of each type I want to open in GIMP to change them. What I found was RCDefaultApp from Rubicode.

RCDefaultApp is a Mac OS X 10.2 or higher preference pane that allows a user to set the default application used for various URL schemes, file extensions, file types, MIME types, and Uniform Type Identifiers (or UTIs; MacOS 10.4 only). MacOS X uses the extension and file type settings to choose the application when opening a file in Finder, while Safari and other applications use the URL and MIME type settings at other times for content not related to a file (such as an unknown URL protocol, or a media stream).

A nice feature of this preference pane is that it allows you to view the extensions a given application is capable of opening and associate them with that application all in one place.

RCDefaultApp Screenshot

So, with the help of MacPorts, a quick hack, and Rubicode, I have all the power of GIMP with all the convenience of an integrated OS X application.