07.01.09
Oracle and TNS-listener
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:
SUBSCRIBE_FOR_NODE_DOWN_EVENT_Listener=OFF
to the listener.ora and now it seems that our TNS-listener is behaving nicely
06.04.09
Shortcut to console on VMs in ESXi
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!
05.20.09
Seam and hot deployment
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.
05.15.09
Confluence @ work
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.
04.06.09
Playing around with Date and Calendar in Java
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.
03.25.09
Bookmarks sync
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
03.20.09
Compiling ubuntu kernels
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.)
11.17.08
intellijad-8
Long time no posts, so here is a heads up on a very usefull plugin for IntelliJ IDEA 8.0 (also available for earlier versions). It decompiles java code from on the fly and has an option for not storing it on disk. Very useful when working with jar files and not having the correct source attached.
09.29.08
Jboss, JMS and UIL2
At work, I’ve been struggling with a thread leak related to JMS and JBoss.
Thanks to Murrays posting I was able to resolve the issue!
Murray’s Blog » Blog Archive » JBoss thread leaking JMS problem
To translate into JEE 5 speak: Close your MessageProducer, your Session and your Connection after sending the message!
09.10.08
iTunes 8 – Hide Genre in browser
I’ve just updated my iTunes to version 8 on both my Vista and Mac. Unfortunately apple has decided to remove the option to hide the genres while browsing.
Luckily I found these pages:
Ocram’s Blog » Blog Archive » iTunes 8 – Hide Genre in browser/iTunes store links on Windows
And:
macosxhints.com – Disable the Genre column in the iTunes 8 Browser