Thursday, 11th March 2010.

Posted on Tuesday, 27th January 2009 by Balazs

In DB2 if you need to populate a table, you need to use INSERT INTO, like in this example:
INSERT INTO new_table
SELECT col1,col2 FROM source_table
WHERE col1=’something’;

and if you need to populate query variable, you need to use SELECT INTO, like in this example:
SELECT * INTO :var1, :var2, :var3FROM table_name
WHERE col1= ’something’;
Source: DB2 Documentation

Tags: , , , , , , ,
Posted in DB2 | Comments (Comments)

Posted on Friday, 23rd January 2009 by Balazs

In a world of storage on demand and virtualized environments, adding more storage on the fly has become simple even on Linux machines without expensive software like Veritas storage manager.  Here is how to proceed:

need to use LVM or LVM 2
add the new disk as an LVM capable physical volume: pvcreate /dev/sdb (or hdX)
add the [...]

Tags: , , , ,
Posted in Linux | Comments (Comments)

Posted on Wednesday, 7th January 2009 by Balazs

If you need to make sure that data incoming from a data source is integer, you can use:
if ( $variable =~ m/^[d]*$/ ) { print “integern”; }
More info is on SitePoint.

Tags: , , ,
Posted in Perl | Comments (Comments)

Posted on Wednesday, 7th January 2009 by Balazs

Trying to install the IBM JDK 64bit I came across the following error:
libstdc++.so.5 is needed by ibm-java2-x86_64-sdk-5.0-8a.0.x86_64
It turns out that yum has a neat feature to show what package provides a given component:
yum whatprovides libstdc++.so.5
gave the answer, and
yum install compat-libstdc++-33.i386
took care of installingthe missing package.

Tags: , , ,
Posted in Linux | Comments (Comments)

Posted on Wednesday, 7th January 2009 by Balazs

After an upgrade to CentOS 5 / RHEL 5 we got the following error:
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Public key for openldap-2.3.27-8.el5_2.4.x86_64.rpm is not installed

It turns out that the key needs to be loaded and yum has not tried to load the key properly. The following manual key loading [...]

Tags: , , , ,
Posted in Linux | Comments (Comments)

Posted on Wednesday, 7th January 2009 by Balazs

During an audit, we noticed that one of our Red Hat 5 / CentOS 5 servers wasn’t getting the security patches.  Upon running the yum update command manually, we discovered that it fails with:
Error: kernel conflicts with e2fsprogs < 1.37-4
The problem turned out to be the presence of a number if 32bit packages. To [...]

Tags: , , ,
Posted in Linux | Comments (Comments)

Posted on Wednesday, 7th January 2009 by Balazs

Everyone knows the Shift+PrtScr trick to take a screen shot with a PC.  I had to take a snapshot from RDP within and OS X session and I did not have a PC keyboard attached.  That led me to discover that the Mac is way more powerful than the PC for screen shots right out [...]

Tags: , , ,
Posted in Mac OS X, Technology | Comments (Comments)

Posted on Sunday, 4th January 2009 by Balazs

Perl announced a couple of weeks ago that it is switching from Perforce SCM to Git.  Is it time to review what SCM to use for managing distributed projects?

Tags: , , , , , ,
Posted in Perl | Comments (Comments)

Posted on Saturday, 3rd January 2009 by Balazs

A friend of mine just introduced me to Google’s design tool called SketchUp
I you need to build 3D models for fun or for your work, this is definitely a tool to try.

Tags: , , ,
Posted in Technology | Comments (Comments)

Posted on Saturday, 3rd January 2009 by Balazs

For those of us that are still forced to used 32bit MySQL, there is a table size limit of 4GB by default (even though the file size limit on those systems is 4TB on ext3 – 2TB on NTFS).  Here is what to do to lift that limit:
ALTER TABLE tbl_name MAX_ROWS=1000000000 AVG_ROW_LENGTH=nnn;
You have to specify [...]

Tags:
Posted in Technology | Comments (Comments)