Tuesday, March 20, 2007

A Nautilus Script to Add Recursively to Subversion

Nautilus Scripts for Subversion is a set of scripts for simplifying working with Subversion. Since TortoiseSvn does not exist for Ubuntu these scripts come in handy. There are some things missing, however, so I have created another script for recursively adding files from a right-clicked directory. With my script Add-Recursive you can add all new files below a certain directory level in one operation. For example, if you have a directory "files" with a new file called "new_file" and a new directory called "new_dir" with a few new files in it you can add all of these by right-clicking "files" and running Add-Recursive. You can get the script here: subversion-nautilus-script-add-recursive.tar.gz. Unpack it where you want it (probably in ~/gnome2/nautilus-scripts/Subversion somewhere). You can also cut and paste from here:

#!/bin/sh
#
# Distributed under the terms of GNU GPL version 2
#
# http://forsuccessfulcomputing.blogspot.com/2007/03/nautilus-script-to-add-recursively-to.html

LOGFILE=`mktemp -t svn_add.XXXXXX`

svn status $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS|awk -F'[ ]' '{ print "svn add \""substr($0,8)"\"" }'|sh 2>&1 > $LOGFILE
zenity --text-info --title="Subversion: Add-Recursive" --filename=$LOGFILE --width=600 --height=400 --window-icon="`dirname $0`/svn.xpm"
rm -f $LOGFILE

Synchronize Google Calendar with Mobile Phone

Finally something that works: www.goosync.com. And its free.

This is the kind of service that you are always looking for: something that performs like it should without you having to think about it too much.

Monday, January 29, 2007

Personal Mobile Publisher

This is a way of creating a personal mobile publishing system (PMP) which can help you keep track of bits of information while away from your computer. Let's say you have planned a trip while sitting at your desktop PC and now you are about to leave and would like to bring the details about the trip. You could print them on paper or you could use the PMP and view them later on your mobile phone. This system could of course come in handy for other bits of information as well, such as booking numbers, phone numbers, maps, etc.

In the following description most of the parts can be exchanged for similar components if you prefer to use something else. I have only tested the ones I name.

Installation:
  1. Start by creating a blog at Blogger. Make sure that you specify in the settings that the blog should be private since some of the information that you will publish may be for your eyes only. Also, choose a simple template since the information should download fast into your phone.
  2. Install Opera Mini on your Java enabled mobile phone. Create a bookmark to your new blog.
  3. Install the JustBlogIt extension for Firefox.
Use:

Now, when you want to publish something from a web page to your Personal Mobile Publisher, just select it and then right click on it and select JustBlogIt!. A new window will open with the selected text filled in for you to edit if necessary. When you are happy with the result, click the publish button. To see the results in your phone, start up Opera Mini and browse to the bookmark for your blog.

If you wish to enable very easy publishing of images as well, you can try the Performancing extension instead.