rblog

Lovely day for a bike ride

Yesterday was the best day so far this year when going to and from work. The sun was shining and temperature just below zero. First picture from the morning when I arrived at work

When going home, just before the Opera I had to stop and take a picture of a machine tearing down a building. Looking forward to see how it will look in a few days, and what will be there in a year? Btw: The boat on the picture has its own webpage http://www.msinnvik.no/

Just turning a bit to the left, the Opera.

How to analyze a heap dump

In fact, analyzing the heap dump is not rocket science, many tools are available to do this. My intention was to use the IBM Support Assistant and then install the MDD4J-plugin on my laptop. All done without much hassle, so then of to analyze the actual heap dumps made available to me. Problem was that the dump-files are all about 400Mb, which it turns out my Windows XP-running laptop ain’t capable of managing. Tried to change default heap size for the tooling by following the steps I found in this post on Developerworks, but no help. I still got the “negative size” error. This was when using the 2.0.x version of MDD4J.

So, I tried to use the beta version of the 3.0.1.x version of MDD4J. I got rid of the negative size-error, just to get a new one “Capacity is less than zero”. Did a Google-search and found yet another post on Developerworks, with one reply from a guy named Thomas who is part of the MDD4J development team saying:

Hello everyone, this is Tomas, I’m a member of MDD4J development team.
I’m posting this just to confirm that in cases when MDD4J is unable to run analysis on a 32 bit platform, the right solution is to follow the instructions on how to run the analysis outside of ISA. The best combination is a 64bit Linux machine with IBM’ 1.5 JRE.
After running the analysis, you can copy the analysis directory back to your ISA’s workspace, into directory: <user home>/ibm/isa41/.metadata/.plugins/com.ibm.websphere.mdd4j.beta

Tomas

…so, just forget my Win XP and instead off to find a running Linux installation which I can use.

Fu Manchu in concert

Yesterday Espen, Sigurd and I went to see Fu Manchu in concert at Rockefeller. Must admit I was very tired when leaving home, and sort of regretted that I had said to them that we should go out, have a few beers and then try to get tickets for the concert. But as soon as they started playing all regrets flew away…Fu Manchu plays the type of music that you are not able to play in any other way than very loud. With that in mind, Fu Manchu in concert is my best experience ever with their music – pure stoner rock

Me headbanging and Sigurd having a good time

Before the concert Sigurd asked what kind of music Fu Manchu plays, and I ended up saying “Rock’n roll, but not feelgood like ‘I love rock n roll’ with Joan Jett…” but I must admit I felt very good when they played 🙂

And Sverre: You missed all three: King of the Road, Mongoose and Weird Beard …

Another funny thing, Elin thought I said “Manu Chao”, so she was a bit shocked when I played a song by Fu Manchu, not what she had expected

From Lindesnes to Nordkapp with bicycle II

A bit late, but now I have done another ten days, mostly delayed because of Anders being sick for a whole week. But now I’ve done yet another 360 kilometers. So now I would be passing Dovreskogen (Google Maps), where I could rest at Dovreskogen Gjestegård (Not much else there to mention here…). Been ten days without any incidents to report, no crashes or something like that. Have used my new phone which has GPS to confirm that the distance is pretty much 18 kilometers each way. Started using the speed sensor on my Polar 725X, but it is not accurate at all, so I was a bit afraid that the distance was much shorter for a while.

In my first post I mentioned Tveitablokkene, and this time I must mention a building which is not much to look at, but the name is quite funny. Located at Tvetenveien 30 you will find “Gresshoppa“, or “Grasshopper”. I know my friend Kent is well aware of the building, since Micromonsters have their shop there.

So now, 20 days biking to work this year, 720 kilometers.

Lumber jack, yet again

Been out at Vestreng this weekend, and spent 4-5 hours out collecting fire wood. Very nice day, both yesterday and today. Created a short film using the video camera on my new cell phone, the Nokia E72. The tractor is, as the movie title implies a Ford 4000, mounted with equipment for doing forest tending.

[video:youtube:ko5het5YB2s]

Link to Youtube

Things I do on a Saturday evening: Installing WAS CE on Ubuntu

Spent about an hour or so in total this evening installing WebSphere Community Edition on my own laptop where I run Ubuntu 9.10. Needed an application server to deploy the web applications I create when trying to teach myself how to do Java development. The first try was to install Tomcat 6, which was quite easy using the package manager. But after I had done some thinking I turned to WAS CE instead, why not, since WebSphere is the product I know best (beeing well aware of the fact that under the hood in WAS CE, you will, among various open source projects, find Tomcat as well).

The installation was quite easy, just followed the Quick Start-guide combined with the Setup Troubleshooting (Prerequisites for Ubuntu, read this one first!!). After that I just had some issues with getting WAS CE to understand where to find the correct Java installation, but this guide saved me combined with me just realizing that I have to run it as root. Guess I could avoid that, but who cares, it is my own laptop.

Anyhow, this is the admin console, so the next step will be to deploy applications from Eclipse, but that will be another day…

@Update: Not a problem at all to get rid of the root:root

> su
> cd /opt
> chown -R myuser:mygroup IBM/
> exit
> cd IBM/WebSphere/CeAppServer/bin
> ./start-server.sh

…server started…

Found new hardware wizard keeps appearing

Had a problem at work, my laptop running Windows XP kept notifying me every second “Found new hardware Nokia 6280”. A bit tricky to get rid of it, found the solution way down on this post

GO INTO DEVICE MANAGER
GO TO VIEW
SELECT SHOW HIDDEN DEVICES
CLICK THE PLUS SIGN NEXT TO PRINTERS….
IS THEIR AN EXCLAMATION POINT ? if so select properties check and see what it says
TRY SELECTING DISABLE from the properties of it OR SELECT UNINSTALL SEE IF THE PRINTER STILL WORKS

Killed the problem!!

The Maven Ant plugin and JAVA_HOME

I’ve spent some time, with great help from two of my colleagues, creating a pom.xml using the Maven Ant plugin to call Ant targets in the build.xml file downloaded along with the source code for JMeter. Got the plugin working without to much struggle, but when trying to call “ant compile” from Maven “mvn compile” I got an error saying that no compiler was found since the JAVA_HOME variable was pointing to “…\jdk\jre” But all attempts to change the variable to “..\jdk” just returned the same error. Very strange since I could compile other Maven-projects without any problems and calling compile using Ant directly caused no problem.

But, then as always, Google to the rescue. The line below in bold was all what I needed.

<execution>
<id>compile</id>
<phase>compile</phase>
<configuration>
<property name="build.compiler" value="extJavac"/>
<tasks>
<ant antfile="${basedir}/build.xml">
<target name="compile" />
</ant>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>

Found a post where someone else had got an error trying to use the maven-antrun plugin. It is in fact a property passed on to Ant, see ant.apache.org/manual/CoreTasks/javac.html

Wonderful day for cross country skiing

After I had spent some hours editing my videoclips using Kino when all of a sudden Kino decided to lock itself, causing me to loose about 10 minutes of work I used the kill-command on Kino and went out skiing instead. About -7 today, and a clear sunny day, absolutely wonderful day for skiing. My second time this season, so I focused on doublepole and also diagonal without poles. I must say I was not aware of how hard diagonal is for my back when not using poles, good training!!

Was out for about 1 hour and 45 minutes, skiing across Nøklevatn where the picture is taken.

Now I know I have to go to bed

Have spent some hours today trying to figure out how to edit video and create DVD’s when running Ubuntu. After some reading I ended up trying Kino. First challenge was to import the files from my camera, the Canon FS11. The actual import is not that hard, just plug the USB and navigate in the folder structure of the camera and import.

But, there is an issue with the files on the camera, they are saved using the MOD-file format. Found this post at srixmk.blogspot.com describing how to convert them to avi-format. I used the script but changed it a bit. I wanted to convert the files to .DV, which is the format KINO wants. Thanks to another post that was solved easily as well. So now I have a script which changes the default name of the files to the format yyyyMMddHHMM.dv while converting them to DV and afterwards just deletes the MOD-file. I named the script convertmodfiles.sh, thanks to srixmk for making the script which I just edited a bit.

Then I started testing KINO, using tutorials like “Making movies with KINO” and the “Adding titles and credits. But I could not get it to work, since I did not find “DV Titler” in the drop down menu of available vidoe filters. After very much cursing, I suddenly realized, even though I started to get really tired, that first of all: You don’t need to install DVTitler separately as a plugin, it is included when installing KINO, but…it is labled in the drop down menu as “Titler”. Gotta learn to use my eyes…doh…

So now to bed!