Monthly Archives: May 2009

Improving Retrieval Times on DB2 Indexes

These ideas are derived and quoted from “Best practices for tuning DB2 UDB v8.1 and its databases” CREATE INDEX has a number of options that allow for significant performance gains: Optimizing for SELECT: use PCTFREE 0 if index is on … Continue reading

Posted in DB2 | Tagged , , | View Comments

XQuery and pureXML in DB2

I just came across the following two articles that have some good pointers for using the native XML capabilities of DB2: Using DB2 XQuery to extract data mining results stored as PMML: this article is a great introduction to XQuery … Continue reading

Posted in DB2 | Tagged , , , | View Comments

Setting up Apache Authentication with htpasswd / htaccess

Authentication in Apache is done through htaccess, either from the configuration file, or from the .htaccess file in a given directory. Note that only full directories can be easily protected with this method. Here is how: (first log in to … Continue reading

Posted in AIX, Cloud Computing, Hosting Support, Linux, Mac OS X, OpenBSD, Services, Technology | Tagged , , | View Comments

How to change a link everywhere throughout one or multiple websites?

To do a recursive search and replace in a file system tree, the most effective way is to work directly on the file system. Using a tool like DreamWeaver is slow and cumbersome. Unix offers perl and find, which combined … Continue reading

Posted in Perl | Tagged | View Comments

How to add a secure cert to IIS on Windows

To add an SSL cert to IIS 5 on Windows, you need two separate steps: Create a p12 (pkcs12) cert file: cat server.key server.crt > server.pem openssl pkcs12 -export -in server.pem -out server.p12 -name “server” Import the p12 file into … Continue reading

Posted in Windows | Tagged , | View Comments

Connection pooling with mod_perl

I found this info in the PostgreSQL archives. Here areĀ  2 methods: Best method from Dan Lyke: Apache::DBI will pool across Perl programs, and you don’t have to change anything in your scripts. Next best method from Gilles DAROLD: in … Continue reading

Posted in DB2, Perl | Tagged , , , , , | View Comments

Making Perl Module Fails on RedHat

If the build fials because of a makefile error, it is most likely due to an encoding error during the generation of the makefile. That type of error is described in the RedHat Bugzilla report #87682 and the solution given … Continue reading

Posted in Perl | Tagged | View Comments

How to install Perl modules on a Unix / Linux server

From the command line, as the root user, run: # perl -MCPAN -e shell And then at the cpan command line run: cpan> install Module::Name Alternatively, using sudo on one line, as any user you can directly intall a module … Continue reading

Posted in Perl | Tagged | View Comments

How to find the full email headers (a.k.a. internet headers) in Outlook?

To be able to report SPAM, Viruses, or any other problem with email, the system administrators need the full email headers. These can be easily found in Netscape or Mozilla Thunderbird, just by viewing the raw message source, or by … Continue reading

Posted in Windows | Tagged , | View Comments

How to set up PPTP on Win2k

Setting up a folder for PPTP access: Right click and select properties Select Sharing tab Check “Share this folder” and give it a share name Click the permissions button, and make sure that only the right user(s) have permission Setting … Continue reading

Posted in Windows | Tagged , | View Comments