dmk's blog

Merry Christmas

Merry Christmas Everyone - Have a good one, and all the best for 2007.

Published on: Mon, 25 Dec 2006 07:59:32 GMT

IntelliJ on Edgy

Not so long ago I bought myself a license for IntelliJ IDEA, my favorite JAVA IDE. As part of the license you are entitled to install IDEA on different operating systems, provided that it's not concurrently used - therefore I choose to use it on my Ubuntu Edgy Laptop as well as my XP Desktop.

Unfortunately when trying to change the font for source code to something a bit prettier IDEA kept crashing. After some googling the IntelliJ Support Forum uncovered the answer.

It is apparently because of two fonts (Rekha-normal and aakar-MagNet) in the ttf-gujarati-fonts package. Therefore to fix this a quick sudo apt-get remove ttf-gujarati-fonts done the trick.

Hopefully this will be of help to anyone else with the same problem.

Published on: Sun, 29 Oct 2006 21:47:00 GMT

Oracle XE on Ubuntu

Recently I decided to try Oracle XE on my laptop running Ubuntu Breezy. As Oracle only provide an RPM (a deb is in the works) here is what I had to do to get it to run.

1) Convert the RPM to a DEB by running : sudo alien -d --test -c oracle-xe-10.2.0.1-0.1.i386.rpm

3) Install libaio : sudo apt-get install libaio1

3) Install the DEB : sudo dpkg -i oracle-xe_10.2.0.1-1.1_i386.deb

NOTE: if you get an error about swap space either add some temp swap space, or boot Ubuntu passing the mem argument to the kernel to lower your memory size into the limit. e.g. mem=512M

4) Run the Configuration Script : sudo /etc/init.d/oracle-xe configure

5) Copy in an edited version of /etc/init.d/oracle-xe from here

6) You can now access the database using the link http://localhost:port_number_you_set_up/htmldb

Published on: Fri, 30 Dec 2005 23:11:00 GMT

.NET and scrollable panels

A friend had this problem this evening and I stumbled upon the answer, so I though I would post this in case anyone else has tried to add controls to a scrollable panel before in .NET and wondered why when they add them using absolute points the position is only relative to current viewable part of the scrolled panel. It is because they are not using AutoScroll and the AutoScrollPosition property.

AutoScroll allows the panel to have a conceptual size out side its boundaries and the AutoScrollPosition property is used to compensate for the conseptual size by providing negative or postive offset to provide true coordinates from point(0,0). For example, we want to set a Button's location to point(5,5) regardless of where the location of the scrollable view we should use the following code:

button.Location = new Point(5 + panel.AutoScrollPosition.X, 5 + panel.AutoScrollPosition.Y);

Published on: Wed, 07 Dec 2005 01:04:00 GMT

sun java studio enterprise 8 and jboss web services

If anyone has tried to deploy a Web Service to JBoss 4.x from Java Studio Enterprise 8 they may have came across this problem:
taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found

The reasons for this are that a) you do not have the jaxrpc-impl.jar in your class path, and b) you are required to change your wscompile.classpath setting in the projects project.properties file.

Once this is done you can happily develop and deploy Web Services on JBoss.

Published on: Tue, 06 Dec 2005 01:01:12 GMT

new linode

As all the web-services for davemeikle.co.uk have now been moved to a new linode, I have taken the chance to purge the blog and will start using this as appropriate.

Published on: Tue, 29 Nov 2005 00:50:00 GMT

this is a personal blog and anything said here does not represent the view of my employer..or anyone else apart from me