Friday, November 9, 2007

Getting Spellcheck to work in OpenOffice

Is your spell check not working in open office? First place to check.

Tools > Options>Languages Settings (left menu) > Languages > Default Languages for documents > Western > (abc) English (USA). Make sure it has an ABC by it. Mine said English Canada and had no MySpell installed for it.

Thursday, November 8, 2007

Mysql GUI Tools

Mysql Workbench, Query Browser, Administrator Tools For Ubuntu Gutsy 7.10 AMD64.

1. I downloaded the source code from
2. Goto each directory and run these commands (no migration for linux)
#find out which glade libraries you have
#optional ./ [--enable-grt] [--enable-canvas] [--with-gtkhtml=libgtkhtml-3.8]
sh ./ --with-gtkhtml=libgtkhtml-3.8
sudo make install

3. When you get a glade error, fix it with a little editing
#(mysql-query-browser-bin:5108): libglade-WARNING **: could not find glade file '/usr/local//usr/local/share/mysql-gui/common/'
terminate called after throwing an instance of 'MGGladeXML::Error'

sudo pico /usr/local/bin/mysql-workbench
# - export MWB_DIR="$DIRNAME"
# +
export MWB_DIR="/"

sudo pico /usr/local/bin/mysql-query-browser
# - export MQB_DIR="$DIRNAME"
# +
export MQB_DIR="/"

sudo pico /usr/local/bin/mysql-administrator
# - export MA_DIR="$DIRNAME"
# +
export MA_DIR="/"

Hope that helps.

Good Reference:

Wednesday, November 7, 2007

Getting GWT working on Ubuntu AMD64

Get this error?
/gwt-linux/ wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

Error comes from running 64bit java and trying to use 32bit java compiled libraries.

I finally found the easiest work around for getting ./KitchenSink-shell to work on my desktop. I have ubuntu amd64 installed. I traded gij for sun-java-6-bin java. Then installed ia32-sun-java6-bin which added 32bit java on the hard drive for use. (in my case located /usr/lib/jvm/ia32-java-6-sun-, check synaptic properties for installed files)

This is the java I used to run the ./KitckenSink-shell. I replaced "java" with "/usr/lib/jvm/ia32-java-6-sun-"

Now to find a way to change the environmental java variable.

1. Optional: Install sun-java-6-bin and remove gij... (this will replace the with suns java)
2. Install ia32-sun-java6-bin
3. Install galternatives (this is the progam to have for defaults!!!)
4. Run galternatives from shell (don't sudo this, b/c it will change roots defaults and not yours.)
5. Find java in galternatives, choose the default jvm (Find em located in /usr/lib/jvm)
Install as many JVMs as you want to, and choose the one you want to use with galternatives.

#This is a must have!!
sudo apt-get galternatives

#Another way to do it in shell
#sudo update-alternatives --config java

If you have the same problem in Eclipse. Configure the JRE. Goto Installed JREs..., Hit Add, and find another jvm in /usr/lib/jvm.
In Run > Java Application > Your Application Configuration > JRE > Installed JREs... > (Preferences) Add > /usr/lib/jvm/ia32...jvm

Great Reference Article:

Trying out the Dart Analysis Server

I wanted to see how the Dart Analysis Server was put together and worked. I started looking to see how I could wire it up and try out the co...