Category Archives: Tips and tricks

Tips and tricks

Add a new virtual volume to an LVM partition of a virtual VMWare system running a RedHat type Operating System

    Add a new drive to your virtual machine using the graphical VMware tool, currently VMware vSphere Reboot the virtual machine so the new drive can be seen by the host Operating System Launch the command vgdisplay as root … Continue reading

Posted in Tips and tricks | Tagged , , , | Leave a comment

Linux: find the dependent packages

Sometimes, you would like to update a package, but you are not sure what other packages depend on it.   If you are on Fedora, Redhat or CentOS, this simple command will definitely help you: repoquery –whatrequires –installed –recursive packagename … Continue reading

Posted in Tips and tricks | Tagged , , , , | Leave a comment

Modify the default character encoding for the Vim text editor

By default, Vim tries to detect the character encoding of a file when it is edited and it will use that encoding when saving the file. In case of UTF-8 files, Vim will search for a BOM at the beginning … Continue reading

Posted in Tips and tricks | Tagged , , , , | Leave a comment

Create registry file (.reg) equivalent to the RegSvr32 command

If you have already programmed a bit in OLE/ActiveX/Shell extensions/etc. in the Microsoft world, you already know the RegSvr32 command used to register/unregister these dll components. The regsvr32.exe command only calls the DllRegisterServer entry point, i.e. a method with that … Continue reading

Posted in Tips and tricks | Tagged , , , , , , , , , | 1 Comment

Workaround the Grub installation issue in Debian Wheezy

The current testing version of Debian, aka Wheezy, contains a rather annoying bug that prevents the installation of Grub, the multi-OS bootstrapper of Linux. Although this bug will be corrected at some point in the possibly near future, it is … Continue reading

Posted in Tips and tricks | Tagged , , , | 11 Comments

How to “OSGIfy” an Oracle jdbc driver with Spring Roo

If you want to use Spring Roo to reverse engineer an existing Oracle database, you need to bundle the Oracle driver in an OSGI format (this is not required if you want to use Spring Roo with Oracle in a … Continue reading

Posted in Tips and tricks | Tagged , , , , , , | 13 Comments

Windows: find the location of the executables

After having answered this question for Linux/Unix, I have encountered the same need for Windows. This is what I have found. Since Windows Server 2003 (including Vista and Windows 7), you can use the “where” command. Before Windows Server 2003 … Continue reading

Posted in Tips and tricks | Tagged , , , , | Leave a comment