Yahoo! 360° News | Beta Feedback
Start your own Yahoo! 360° page

Alex

Top Page  |  Blog  |  Feeds  |  Friends  |  Lists

  • Work: Yahoo !
  • School: Carmel Garden

Add

Alex is not connected to you in Yahoo! 360°.

Last updated Sun Jun 25, 2006 Member since February 2006

do not be too bothered by others words if our conscience is clear !!!

1 - 5 of 18 First | < Prev | Next > | Last

Here & There Full Post View | List View

Speaking from the Heart

Thunderbird config to refresh all imap folders
Under Edit ->Preferences -> Advanced -> Config Editor set the following parameter

user_pref("mail.check_all_imap_folders_for_new", true);

And if you don't want the sending bar that pops up set the following parameter

user_pref("mailnews.show_send_progress", false);


Tags: thunderbird, imap, refresh
Wednesday April 18, 2007 - 02:20pm (IST) Permanent Link | 0 Comments
Proxy Management in Firefox
Are you really bugged by the need to keep changing your browser proxy setting to access blocked sites ?

FoxyProxy is the answer to all your proxy woes.

If you are using a proxy proxy.com to access all sites running on port 7777 then do the following :

1. Add proxy.com as proxy
2. Then for that proxy add a pattern like http://*:7777
3. Select "use proxies based on pattern"

Bingo, now all http access to port 7777 will be routed through proxy.com.

If there is redirection involved, please add both the url patterns (the redirected to and redirected from) to that particular proxy.

Tags: firefox, proxy
Friday March 16, 2007 - 02:14pm (IST) Permanent Link | 0 Comments
Perl Script for the Day
Requirement : Obtain line no and first field (if it is a number) from the following datafile


31726108012^Abicyclepatrolpuyallup^A0^B
31726228012^Acommercialguardseattlesecurity^A0^B
31726230512^Aconstructionguardkentsecurity^A0^B
31726241512^Aeventfederalguardsecurityway^A0^B

^A indicates ctrl + A

perl -n -e '@line= split /^A/,$_ ; if (int($line[0]) != 0) { print "$. " . $line[0] ."\n" }' datafile

$. gives us the line no.
int(any non numeric value) will return 0.

To generate ctrl A use the following key combination ctrl + v + a. The output generated will be as follows :

5 31726228012
6 31726230512
7 31726241512
8 31726254012
Tags: perl, spit, control, int
Friday March 16, 2007 - 02:03pm (IST) Permanent Link | 0 Comments
Transforming Unix Timestamps in logs to date
Logfiles in older unix systems and monitoring systems just log the unix timestamp as the first field in the enteries. When we try to pull out data for a particular date, then it becomes tricky. The following code snippet will help pulling out data for a particular date quite easily

cat <logfile> | perl -lane '$_=$F[0]; s/\[//g ;s/\]//g; $date=`date -r $_` ; chomp($date); $out=$date . " " ; foreach(@F[1..scalar(@F)]) { chomp($_); $out=$out. $_." "; }; print $out'

After the perl snippet you can use commands like grep to filter out data based on date.

alexj:~> cat sample.log

[1173070745] ns__exec<207.126.228.89>: check_disk!--warning=15%!--critical=10%!-p!/home!-m: code=0
[1173070775] ns__stats<207.126.228.89>: 1.2.14
[1173070832] ns__exec<207.126.228.89>: check_mysql_variable!-p=var!-u=check_var: code=0

alexj:~> cat sample.log | perl -lane '$_=$F[0]; s/\[//g ;s/\]//g; $date=`date -r $_` ; chomp($date); $out=$date . " " ; foreach(@F[1..scalar(@F)]) { chomp($_); $out=$out. $_." "; }; print $out'
Sun Mar 4 20:59:05 PST 2007 ns__exec<207.126.228.89>: check_disk!--warning=15%!--critical=10%!-p!/home!-m: code=0
Sun Mar 4 20:59:35 PST 2007 ns__stats<207.126.228.89>: 1.2.14
Sun Mar 4 21:00:32 PST 2007 ns__exec<207.126.228.89>: check_mysql!-p=xx!-u=xx: code=0

Some alternate way to do it :

cat file | perl -p -e 's/^\[(\d+)\] /localtime($1)/e;' //source philip


Code snippet just to pre append time to every line :

perl -p 'print time, " ";' //thanx philp

Tags: perl, log, timestamp
Monday March 5, 2007 - 10:33am (IST) Permanent Link | 0 Comments
Could not acquire the session semaphore
Error 409: Could not acquire the session semaphore in time. Please be patient.


This is an issue with the login when WebSphere Portal does not have Internet access. The "retrieving data" error message indicates that the portlets are not able to access the Internet, which is true since portal does not have access to the Internet. The initial /myportal page will not render until the sample portlets that need to get information from the internet experience a timeout. Therefore, you can do one of the following:

  1. Remove the portlets from the page.
  2. Deactivate the portlets on the page.
  3. Enable the portal to access the Internet.
Looks like airtel uses Websphere Portal :)

Tags: airtel, bill, websphere
Monday March 5, 2007 - 10:13am (IST) Permanent Link | 0 Comments

Add Here & There to your personalized My Yahoo! page:

Add to My Yahoo!RSS About My Yahoo! & RSS
1 - 5 of 18 First | < Prev | Next > | Last