2010-11-07

grub2 dual boot

I have two hdd's, one sata named sda and an old ide named hdb. It has happened that I had to install Windows on the latter, and this is what I had to do in order to configure dual boot.

touch /etc/grub.d/15_windows
chmod a+x /etc/grub.d/15_windows

Then edit that file as follows:

#! /bin/sh -e
echo "Adding Windows" >&2
cat << EOF
menuentry "Windows XP" {
set root=(hd1,1)
drivemap -s hd0 hd1
#drivemap (hd0) (hd1)
#drivemap (hd1) (hd0)
#set root=(hd0)
chainloader +1
}
EOF

2010-03-15

how to retrieve document from filenet image manager

Useful scriptable commands to quickly retrieve documents from IM.

#
# prefetch
#
docfetch -s $ID

#
# store on file
#
echo "OBjecttofile 1 $SSN $ID 1 $BASEDIR/$ID.pdf" > $TMPFILE
echo "Q" >> $TMPFILE
CSM_tool < $TMPFILE

2010-01-21

oracle random function

You can find useful information here.

E.g.: Generating a random number from a range, between 1 to 1000.
SQL> select dbms_random.value(1,1000) num from dual;

2009-12-12

broken java networking

If your Java networking is broken and any traffic always
results in a "java.net.SocketException: Network is unreachable" error, then here comes a quick fix:

  1. edit /etc/sysctl.d/bindv6only.conf
  2. change value net.ipv6.bindv6only=1 into 0
  3. invoke-rc.d procps restart

Volume too low with VIA

When your Linux box has a VIA motherboard and the sound is too low you might want to configure Via DXS sliders in alsamixer. Debian people read bug #532613.

2009-12-01

FileNet GUID Regular Expression

That's the regexp to match a GUID:
"^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$"

2009-11-23

WSVR0028I: The product has expired

This explains how to get rid of the WSVR0028I error.
Solution is about the /properties/was.license file, which can be copied among different systems and always return the following MD5 checksum: c60f4e18d530bf4e7c8315e23fd1dbf9.