Thursday, February 19, 2009

GUI Database Designer for MySQL

MySQL Workbench

http://dev.mysql.com/downloads/gui-tools/5.0.html

has Linux support

and generates lovely ERD's off MySQL schemas :)

Wednesday, February 18, 2009

Blue Tooth Remote Presenter on Ubuntu 8.04

Install these

sudo apt-get install bluez-utils

Scan for the phone,
hcitool scan

We see something like
00:11:22:AA:BB:CC  w810-Srimal

Connect like this,
sudo hidd --connect 00:11:22:AA:BB:CC

Use the phone ;)

Monday, November 10, 2008

Grails - Acegi -- Set After Logout page

Crate a new action with the following code:


import javax.servlet.http.HttpSession

class LogoutController {

...

action {
HttpSession s = request.getSession()
s.invalidate()
redirect(controller:"itemPrice", action:"listDOA") // this is the new after
}
}

Wednesday, November 5, 2008

How to restore Grub from a live Ubuntu cd.

How to restore Grub from a live Ubuntu cd.

This will restore grub if you already had grub installed but lost it to a windows install or some other occurence that erased/changed your MBR so that grub no longer appears at start up or it returns an error.

(This how to is written for Ubuntu but should work on other systems. The only thing to take note of, when you see "sudo" that will mean to you that the following command should be entered at a root terminal.)

Boot into the live Ubuntu cd. This can be the live installer cd or the older live session Ubuntu cds.

When you get to the desktop open a terminal and enter. (I am going to give you the commands and then I will explain them later)

Code:
sudo grub
This will get you a "grub>" prompt (i.e. the grub shell). At grub>. enter these commands

Code:
find /boot/grub/stage1
This will return a location. If you have more than one, select the installation that you want to provide the grub files.
Next, THIS IS IMPORTANT, whatever was returned for the find command use it in the next line (you are still at grub>. when you enter the next 3 commands)

Code:
root (hd?,?)
Again use the value from the find command i.e. if find returned (hd0,1) then you would enter root (hd0,1)

Next enter the command to install grub to the mbr

Code:
setup (hd0)
Finally exit the grub shell
Code:
quit
That is it. Grub will be installed to the mbr.
When you reboot, you will have the grub menu at startup.

Reference
http://ubuntuforums.org/showthread.php?t=224351

Tuesday, October 7, 2008

Grails/Groovy refs:

  • http://groovy.codehaus.org
  • http://codehaus.org

Friday, May 23, 2008

Using the Mic with Skype 2 on Ubuntu 8

1. Open volume control (dbl click on the icon or type gnome-volume-control in a terminal)

2. Go to 'Preferences' and enable the 'Capture' device.



3. Adjust the volume for the 'capture' device and make sure its not in mute.



4. That worked for me :)

Tuesday, May 13, 2008

How to change resolution in Gnome without the panel icons jumping around

The gnome panel has this annoying habit of letting loose of your panel icons when you change the screen resolution. (This happens when I step down the screen resolution to suite the projector, for example).

To prevent this, a nifty little application called 'pessulus' can be used to lock down the panels.

It can be installed in ubuntu as follows.


$ sudo apt-get install 'pessulus'

$ pessulus


Lock down the panel as shown in the screenshot below.



No more messing up the panel icons when changing the screen resolution :)