May 20, 2010

Gradle and IntelliJ IDEA

Posted in Dev at 8:14 by djn

At work, I’ve been migrating a legacy build system to gradle. We use IntelliJ IDEA as IDE and the integration between the two is quite barebones.

Inspired by Felipe Cypriano, I extended his task to sync dependencies from Gradle to IDEA in a multiproject build.

It creates a library file for each subproject and each configuration (if it contains any dependencies). Project dependencies are ignored.

Read more for source🙂

Read the rest of this entry »

October 12, 2009

Daniel J. Nielsen on Twitter

Posted in Geeky at 15:19 by djn

I’ve gone Twitter! Not quite sure what to make of it yet. We will see.

Scanning the SCSI bus on linux.

Posted in Geeky at 10:05 by djn

Useful page.

Basically, it boils down to echo - - - >/sys/class/scsi_host/host$NUMBER/scan where $NUMBER in most cases is 0.

July 1, 2009

Oracle and TNS-listener

Posted in Geeky at 12:03 by djn

At work, we are currently migrating to Oracle. Quite a learning curve… We experienced interruptions in the service from the TNS-listener, and the JDBC driver would return

ORA-12519, TNS:no appropriate service handler found

Poking around the Oracle installation, I noticed that the file /oracle/diag/tnslsnr/ora-dev/listener/trace/listener.log contained a lot of:

WARNING: Subscription for node down event still pending

Digging deeper, I found this page. So I added the line:


to the listener.ora and now it seems that our TNS-listener is behaving nicely🙂

June 4, 2009

Shortcut to console on VMs in ESXi

Posted in Geeky at 13:48 by djn

I’ve been annoyed that to access the console of a running virtual machine, I must open VMware Infrastructure Client, login to the host and find server and then click open console.

Luckily VMware Remote Console (available via VMware server or VMware Workstation) supports connecting to ESXi.

I create a shortcut pointing to:

"C:\Program Files\Common Files\VMware\VMware Remote Console Plug-in\vmware-vmrc.exe" -h esxhost -u user -p password -m "[myDatastore] myDir/myServer.vmx"

And voila! shortcut to a console🙂 To obtain the argument to -m, I opened the settings view via Infrastructure Client, clicked “Options” and copied the field “Virtual Machine Configuration File”.

Hope this helps someone else!

May 20, 2009

Seam and hot deployment

Posted in Geeky at 11:37 by djn

I found a link, providing a feature I’ve been missing: hot deployment with IDEA.

However, do notice that hot deployment of JPA and EJB’s is still not possible (as far as I know, do correct me!) and require a complete redeploy of the app.

May 15, 2009

Confluence @ work

Posted in Geeky at 13:19 by djn

At work, we are currently evaluating Confluence for our intranet / wiki needs. As with all collaboration tools, I feel that the success depends on whether we all actually start using it. I’m hoping it will go well, as we need a bit more structure on our knowledge sharing.

April 6, 2009

Playing around with Date and Calendar in Java

Posted in Dev at 10:49 by djn

Dates and Calendars in Java can be a risky business. Read more here.

A rule-of-thumb when comparing dates and calendars (or performing other operations) is to convert it to UTC and then back afterwards.

March 25, 2009

Bookmarks sync

Posted in Geeky at 14:13 by djn

At home, I use  browsers on Mac OS X (Safari, Firefox) and sometimes on Vista (Firefox). At work I use Vista (Firefox). Maintaining bookmarks between these browsers has been a pain.

Recently, I decided to try Foxmarks/Xmarks. Seems to work nicely🙂

March 20, 2009

Compiling ubuntu kernels

Posted in Geeky at 11:17 by djn

I still compile kernels for the Danish Vikings CSS clan. However, when using ubuntu 8.10 there is an error in the make-kpgk package as described here: Bug #280173 in linux Ubuntu: “Recompile ubuntu kernel”. Adding a --arch=i386 or equivalent for x64 does the trick.

(Yes, apparently I’m still alive.)

Next page


Get every new post delivered to your Inbox.