Sunday, July 29, 2007

PrabhuDc.net spruced up!!

Check out my website http://prabhudc.net with all the new looks and effects. I have used Scriptaculous/Protoype libraries liberally for the effects. Also the image effect under the "About me" was done using the Lightbox module. All thanks and Kudos to original developers. You guys make the world a better place to live!!!

Drupal script | Page not found

The other day I thought of trying the Scriptaculous and prototype libraries on my Drupal based webpage. I got the latest version of Drupal(5.2) and installed it on my local system for developing fast. I got the effect pretty easily by changing the page mode to "Full HTML" and adding the required HTML tags.
script src="/javascripts/prototype.js" type="text/javascript"

Now that it things are fine I planned to do the same on my website online. But it wasn't easy as I imagined it to be. Damn thing was repeatedly failing and throwing 403's. There was not much mentioned in the system log either. After some time I figured out that it gets messed up while it parses the "script" tag. I tried updating the Drupal library and also got the latest update of JQuery. But that didn't get me anywhere better. I was somehow determined to get it running at any cost. I finally figured out a work around. I moved the script tags to the page.tpl.php. Bingo!! Just what I wanted.
Note that each and every theme has a page.tpl.php under its respective directory. So in case you have configured a rotating theme and haven't made the required changes in all the pages, your users might be bumping into "Page not found".

Friday, July 20, 2007

Famous?


Am I famous. I just gave a search of my name prabhudc in google and got 101hits. Thats amazing! Well actually I am not famous, Google crawled into the website and has indexed every damn page. These guys are pretty good.

Monday, July 16, 2007

Feisty Fawn!

My Lappy can't get any better than this. Its got the latest version of UBUNTU and Microsoft Windows Vista Ultimate on it. I aint impressed very much by vista though. UBUNTU is like awesome,sweet,sexy and sleek. It comes loaded with all the important apps and also lists a good number of updates which you could make use of. Damn thing had the ability to sneak into Vista and get account details. Impressive. The previous Ubuntu I had used was Breezy Badger. It was quite difficult configuring audio and video, but this time it was just a click away and I already started watching movies.
It rocks man!!! Canonical Corp. rocks!!! Open Source rocks!!! Linux rocks!!!

Sunday, July 15, 2007

Grep a DataStage dataset

Here is how you could run a grep command on a DataStage dataset.
First set the environment.
/apps/Ascential/DataStage/DSEngine> . dsenv
Then you will be good to go. Remember, Orchadmin works only from the bin folder.
/apps/Ascential/DataStage/PXEngine.700.1/bin> orchadmin dump DataSetWithPathName.ds | grep -i "Field Name"

Shell scripting | Convert system date to Oracle Format.

Here is a small scriptling that basically can be used to get the system date and convert it into Oracle format. This script basically can compare the system date with the date got from Oracle and mail someone whether the comparison was a success or else.

#!/bin/bash
a=`sqlplus -s / b=`date +"%m-%h-%Y"|tr [a-z] [A-Z]` # Obtaining the system date and converting it to Oracle format
if [ "$a" = "$b" ]; # Comparing if the dates are same. This was just the logic I had required in my script. Could be different for you.
then flag=0;
else flag=1;
fi;

if [ "$flag" = 0 ];
then echo "Dates are same. Body of the mail"|mail -s "Subject of the mail" yourname@yoursite.com;
else
echo "Dates are different, Body of the mail"|mail -s "Subject of the mail" yourname@yoursite.com;
fi;

##################END######################
test.sql can be obtained as following. Remember, test.sql could have been made inline with the redirection operator "<<".

SET echo off;
SET pagesize 0;
SET heading off;
select MY_DATE
from MY_TABLE;

Thursday, July 05, 2007

FF is back.

He Guys,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Firefox 3 Alpha 4 is around the corner scheduled to be released this month end. To get further info on this you could refer the link http://blog.wired.com/monkeybites/2007/04/first_look_fire.html. Seems like they have done some fine tuning for better speeds, though most of the changes are behind scenes and may not be very evident to a normal user.


Powered by ScribeFire.