Archive for December, 2006

Installing BitTorrent via YUM

By Jamsi • Dec 27th, 2006 • Category: Linux

Are you trying to install BitTorrent on Centos using YUM? By default it won’t work.
I tried a rpm -i bittorrent, but it reported that I needed 6 python dependencies.
Screw that. What to save some time? Try this!

cd /etc/yum.repos.d
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo

Next open up this file (/etc/sysconfig/rhn/sources) and add this line;

yum kb-centos-extras http://centos.karan.org/el4/extras/stable/$ARCH/RPMS

Next all you have to do [...]



Having troubles with Unrouteable address messages?!?

By Jamsi • Dec 21st, 2006 • Category: Linux

Use the following exim command to debug and find where your config has gone wrong!
/usr/sbin/exim -d -bt test@domain.com



Remove all Postfix queue items

By Jamsi • Dec 20th, 2006 • Category: Linux

Handy!
postsuper -d ALL

-d queue_id
Delete one message with the named queue ID from the
named mail queue(s) (default: [...]



Important Exim Commands

By Jamsi • Dec 11th, 2006 • Category: Linux

How many mails on the Queue
exim -bpr | grep “



Selecting where row value is null

By Jamsi • Dec 8th, 2006 • Category: SQL

Don’t ask me why, but I ALWAYS forget how to select results from an mSQL database where the value is null. It’s just weird.
I always try
select * from table where colname = null
or
select * from table where colname = ”
But the correct way is to select using IS NULL!
select * from table where colname [...]



Check all function for Datagrids

By Jamsi • Dec 1st, 2006 • Category: ASP.NET

I had the need to create a datagrid check all function, similar to those that you see in yahoo, gmail, hotmail etc.
My Datagrid looked like this;

With the datagrid code above, make sure you modify the jsSelectAll parameters!
1st var: The name of your datagrid (In my example, dgList)
2nd var: The name of your check all checkbox
I [...]