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.

Restoring a Snapshot Fails with Insufficient Permissions Error

You can find some very useful hints here.

2009-11-07

Quick encoding mov to avi using mencoder

mencoder -ovc lavc -lavcopts vcodec=mpeg4 -oac mp3lame -lameopts vbr=3 file.mov

How to setup BOINC on your Debian box

I've found this troubleshooting page very useful.

If unable to connect via Boinc Manager, remember to add your ip and pwd (the one written into /var/lib/boinc-client/gui_rpc_auth.cfg) in Advanced > Select computer.

2009-10-23

no confirm on windows ftp client

If you don't want to be bothered with answering whether you'd like to retrieve every single file you specify with mget, then start the FTP client using the ``-i'' argument, like so:
ftp -i 127.0.0.1

2009-10-14

FileNet Image Manager BES_convert fails

When performing "initfnsw start", if you get:

2009/10/14 16:12:06.296 161,0,1008 BES_convert (2944.3060.20 0xb80.bf4) ... SSD(2944): Can't bind dn_len, size=2

2009/10/14 16:12:06.406 211,1,13 TM_daemon_ctl -f 344 -p 0x64c -c 0x1 (3072.2688.1 0xc00.a80) ... [SERIOUS] Exec of 'BES_convert' returned non-zero status of '0x3'.

2009/10/14 16:12:06.406 211,1,11 TM_daemon_ctl -f 344 -p 0x64c -c 0x1 (3072.2688.1 0xc00.a80) ... [SERIOUS] A failure occurred while waiting for a process to complete.

2009/10/14 16:12:06.406 211,1,13 TM_daemon_ctl -f 344 -p 0x64c -c 0x1 (3072.2688.1 0xc00.a80) ... [SERIOUS] Error (0xd301000d) encountered during initialization of IS software!

2009/10/14 16:12:06.406 211,1,11 TM_daemon_ctl -f 344 -p 0x64c -c 0x1 (3072.2688.1 0xc00.a80) ... [INFO] syslog semaphore has been re-established.

2009/10/14 16:12:06.406 211,1,11 TM_daemon_ctl -f 344 -p 0x64c -c 0x1 (3072.2688.1 0xc00.a80) ... [INFO] Software will now be shutdown due to previous error.

You can recover with:
fn_util initsec
initfnsw start

[info]

2009-10-09

how to u/mount drives on windows command line

Creates, deletes, or lists a volume mount point.

MOUNTVOL [drive:]path VolumeName
MOUNTVOL [drive:]path /D
MOUNTVOL [drive:]path /L

path Specifies the existing NTFS directory where the mount
point will reside.
VolumeName Specifies the volume name that is the target of the mount
point.
/D Removes the volume mount point from the specified directory
/L Lists the mounted volume name for the specified directory.

2009-10-06

FileNet Content Engine 3.5 - Verity Indexing Stopped

Here are some pointers regarding indexing and what to look for when comes to figuring out if there are problems.

1) Gather CE trace logs, specifically ContentSearch and ContentRM. Turn on all the trace options/flags for both of these logs.
You can view the ContentRM CE trace log and see the items being queued for indexing by looking for the phrase "sending filename to CBR indexer". If the indexing failed, you'll see "indexing failed, updating all requests".

You should see signs of indexing the ContentRM with a call to IndexIQFile, like this example below.
2005/07/27 22:31:33.418 0ed4 0000 -> CFN_Indexer::IndexIQFile 2005/07/27
22:31:33.418 0ed4 0000 C:\Program Files\FileNet\Content Engine\Log \IndexQueue\000000065{529A1CC0-7CB8-456D-B37D-51D05248E179}001000
{0C3C9546-8729-4DB3-A567-85DD4260E93A}.IQ

2) Verity SHOULD log errors to ContentSearch trace if there is a problem with indexing a specific item.

If a Verity Indexing submit request fails there will be an error in the event log 'An error occurred in a Verity VDK method call.' on the File Store Service computer. To get detailed info the best place to start is the ContentSearch trace, which will contain output from the Verity call-backs. Normally Verity (through the VDK, CS used K2) doesn't fail the submit request if files are missing, or can't be indexed - it logs it in the callbacks and returns success.

3) Check the sysinfo log (under the indexing folder in the file store
physical location, typically : C:\\
\index\fs0
Look for errors “unable to open” and UNC paths. Permissions errors can indicate that the user that is running the FSS may not have adequate permissions to the FileStore folder (see step 10).

4) Look in same folder : C:\\\index\fs0
“lock” files .lck. Believe that removing them from that folder may release the indexing mechanism if it was locked by Verity when it hit a previous error. I.e. Collection.lck

5) If nothing is being indexed, check the indexing folder “parts” folder for current entries (this is a bit more difficult if there are multiple indexes since you’ll have to check every one of them). Check that the files have recent date time stamps. If they are rather old and yet the system has been up for a while, the indexing isn’t running correctly.

6) If nothing is being indexed, look on the CE, there is a folder under the installation folder that holds items waiting to be indexed. If the CBR halts for any reason, ...\FileNet\Content Engine\Log\IndexQueue will begin to fill up with files. Once indexing resumes, the number of files in the folders should go back down until it reaches zero (then the indexing process will have caught up with the current system requests).

7) When is indexing completed? The number of files in...\FileNet\Content Engine\Log\IndexQueue will be zero and queue entries such as the following will appear in the ContentSearch CE trace log:

2005/06/10 01:04:13.632 05d4 0000 VdkCollectionSubmit AOK 2005/06/10 01:04:13.632 05d4 0000 VdkCollectionSubmit: \\3lfsusda\fn_fs \FS_FS2_upg\index\fs0 <656>

[Thanks Fintan]

2009-09-08

Low Fragmentation Heap for FileNet Content Engine

If you ever get this error generated by Filenet Content Engine 3.5:

PID=864, TID=860, Fnk_CatService.exe hr=0x80070032(The network request is not supported.) Lfh.cpp[122] ($Revision: 1.2 $): An error occurred in a Win32 API method call. (function HeapSetInformation(), Enable the Low Fragmentation Heap on Object Store Default Heap failed. See MS kb929136 for LFH instructions. GFlags and debuggers should not be used with LFH.).

Modify the registry at
HKLM\Software\FileNet\ECM\Content Engine\Client\

and add the following:

DWORD EnableLFHClientCRT=0
DWORD EnableLFHClientDefault=0

More info available here.

2009-09-04

VMware disks created by an unsupported version

When you get the following error on VMware:

One or more of the disks used by this virtual machine was created by an unsupported version of VMware Server. To power on or upgrade the virtual machine, either remove the unsupported disks(s) or use a version of VMware Server that supports this version of the disks. Below is a list of the disks and their reported versions.

You can perform the following:

1) Edit file.VMX
2) Modify virtualHWVersion = "n"; n might be 4 for example
3) Edit the smallest file.VMDK (the one without -flat)
4) Modify ddb.virtualHWVersion = "n", the same way as before

Register Websphere as a service

I have installed Websphere 6.1 on Windows but it only registered Dmgr as a service: how can I register nodeagent and the appsrv as well?

Here are the commands to launch:

WASService -add nodeagent -servername nodeagent -profilePath "C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01"

WASService -add server1 -servername server1 -profilePath "C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01"

2009-09-03

Windows the great & "Insufficient system resources to complete the requested service" error while copying a file

Some people found out that turing off the antivirus can help. It didn't work for me, anyway. Not even by using xcopy or xcopy /Z as someone else suggested.

What I need to do is perform a local copy using ftp. If your source drive is an external hd, you may want to add that path to ftp and download it locally. You can find some info about that here.

2009-05-20

enlarge your disk - vmware virtual disk

assumptions: the disk is system volume (i.e. there's only C:).
Also, there's no snapshot: if there's any, they should be removed for this to work as described.

1) increase virtual disk file size:
vmware-vdiskmanager -x 20Gb vmdiskfile.vmdk

2) add it as hd to another vm.
note: once the other vm has booted, the "new" hd should already automagically have a letter assigned. if not, then there's probably a snapshot and the process won't work (point 7 won't, at least).

3) inside the booted vm open a dos window and run: diskpart
4) list volume
5) set volume=X
6) list volume, just to verify
7) extend

That's it. Shutdown, remove the disk and go back to the original vm.

2009-05-12

IE8 compatibility mode

To have your IE8 render a page like IE7 used to do, you have to add the following to your page:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

By doing so, IE8 will render that page just like IE7 would do.