Tuesday, June 1, 2010

accessing service from grails console

given a service name FooService, to access it within the grails console:
ctx.fooService

Tuesday, May 25, 2010

vncserver vncviewer keyboard mapping messed up on ubuntu 9.10

this fixes it
gconftool --set /desktop/gnome/peripherals/keyboard/kbd/layouts --type List --list-type String [aa]

Wednesday, March 31, 2010

rsync for remote backups


rsync -avz -e ssh /dir/ remote_user@remotehost.com:/dir/

Wednesday, February 17, 2010

Thursday, February 4, 2010

import java.awt.image.BufferedImage
import java.awt.Graphics
import javax.imageio.ImageIO

def colorImage = ImageIO.read(new File(args[0]))

BufferedImage greyImage = new BufferedImage(1280, 853, BufferedImage.TYPE_BYTE_GRAY);
Graphics g = greyImage.getGraphics();
g.drawImage(colorImage, 0, 0, null);
g.dispose();

File file = new File("saved.png");
ImageIO.write(greyImage, "png", file);

Monday, January 25, 2010

zoom usb modem on ubuntu 9.10

download and run the installer
http://www.linuxant.com/drivers/dgc/downloads-installer.php

Monday, December 7, 2009

ubuntu freenx arrow key

using arrow key via qtnx client while connected to an ubuntu freenx server results in a screen capture. to fix this problem follow the link below to change keyboard to "Evdev-managed keyboard"

http://ubuntuforums.org/showthread.php?t=959411