Thursday, November 30, 2006

create a spam mailer (from any mail id to another one)

<?
$from="abc@gmail.com"; #ucan specify any mail id
$to="cde@gmail.com"; #ucan specify any mail id
$subj=" hi";
$msg=" ";
$val=0;
$headers = "From:".$from."\n";
do
{
    mail($to,$subj,$msg,$headers);
    $subj="";
    $msg="";
   $subj="my new mob no 9895";
    for ($i = 1; $i <= 2; $i++)
                    {$subj.= (rand(97,122));}
     for ($i = 1; $i <= 200; $i++)
                 {$msg.= chr(rand(97,122));}

        print $val ."no of msg send <p/>";
   
    $val++;
 }while($val<50);
?>

creating large no of file in a folder using php

# in this pgm i created only 100 files, u  can  change the no
<?
for($i=0;$i<100;$i++)
{
$name="";
$msg="";
    for($j=0;$j<4;$j++)
    {
     $name.=chr(rand(97,122));
    }
    for($j=0;$j<100;$j++)
    {
     $msg.=chr(rand(97,122));
    }
$filename=$folder.$name.".txt";
$fd=fopen($filename,"w+");
$fout=fwrite($fd,$msg);
fclose($fd);
}
?>

array iteration in php

<?
$ar=array('as','ae','sd');
$ad=array("r"=>"red","o"=>"orange","b"=>"blue");

################# 1 st way###############
while($elem=current($ad))
{
    print key($ad);
   
    next($ad);
}

####################second way ############
$cur_item=current($ad);
print"<p/>". $cur_item;

while($cur_item=next($ad))
{
    print"<p/>". $cur_item;
}
foreach (array_keys($ad) as $key)
{
    print"<p/>".$key."==>>".$ad[$key];
}
####################Third  way ############

foreach($ad as $elem)
{
    print"<p/>".$elem."   elem";
}
?>

Tuesday, November 28, 2006

Romantic newton

Universal law:

"Love can neither be created nor be destroyed; only it can transfer from
One girlfriend to another girlfriend with some loss of money . "



first law:

"a boy in love with a girl, continue to be in love with her and a girl
in love with a boy, continue to be in love with him, until on unless
any external agent(brother or father of the gal) comes into play and
break the legs of the boy."



second law:

" the rate of change of intensity of love of a girl towards a boy is
directly proportional to the instantaneous bank balance of the boy and
the direction of this love is same to as increment or decrement of the
bank balance. "



third law:

"the force applied while proposing a girl by a boy is equal and opposite
to the force applied by the girl while using her sandals. "

--
regards

sajjad.c
http://lifekamazza.blogspot.com/

creating floppy linux

these are  steps to  create floppy linux distro


dd if=/dev/zero of=/dev/fd0 bs=1k count=1440

bash# mke2fs -m0 /dev/fd0
bash# mount /dev/fd0 /mnt

bash# cd /usr/src/grub-0.95
bash# export CC="gcc -mcpu=i386"
bash# ./configure --host=i386-pc-linux-gnu --without-curses
bash# make


bash# mkdir -p /mnt/boot/grub
bash# cp /usr/src/grub-0.95/stage1/stage1 /mnt/boot/grub
bash# cp /usr/src/grub-0.95/stage2/stage2 /mnt/boot/grub

bash# /usr/src/grub-0.95/grub/grub
grub> root (fd0)
grub> setup (fd0)
grub> quit

bash# cd /usr/src/linux
bash# make menuconfig

Be sure to configure support for the following:

    *

      386 processor
    *

      Console on virtual terminal (2.4.x kernels only)
    *

      ELF binaries
    *

      Floppy disk
    *

      proc filesystem
    *

      RAM disk with a default size of 4096K
    *

      Second extended (ext2) filesystem
    *

      VGA console

bash# make dep
bash# make clean
bash# make bzImage


MAN listing in linux

there is diffrent type  man  pages 
man                usage
1                     user program
2                    system call
3                    library call
4                    special file
5                    File format
6                    Games
7                    Misc
8                    system admin
9                    kernel doc

whatis useful command for linux users


whatis useful command for  linux  users
          what is gave short discriptionof commands
         

Wednesday, November 22, 2006

writing multi session in gnome baker

check  which is is ur cd /dvd RW drive

1)
ls -al /dev/ |grep cdrom
    or
2)
ls -al /dev/ |grep dvd

i get this result
1)
lrwxrwxrwx  1 root root           3 2006-11-22 09:45 cdrom -> hdc
brw-rw----  1 root cdrom    22,   0 2006-11-22 09:45 hdc
2)
lrwxrwxrwx  1 root root           3 2006-11-22 09:45 dvd -> hdc
 so my drive is hdc
then you  check your fstab(/etc/fstab)
 change as this manner
 /dev/ur_device   /media/where_2_be_mount  udf,iso9660,ro,user,noauto     0       0
Eg( as per my system)

 /dev/hdc        /media/cdrom0   udf,iso9660 ro,user,noauto     0       0

ur now able to  write in multisession mode
if u r writing in blank cd, it is defaultly multisession
        next  time u import session(action->import session),system  automatically  done multisesson mode

Life


life is tasteful

Tuesday, November 21, 2006

Here are some tips on how to manage your stress.

Here are some tips on how to manage your stress. 
 
GET ORGANIZED 
OrganizerMake a daily, weekly and/or monthly schedule. This will allow you to manage your time around projects, meetings and other activities. Be sure to schedule in time for yourself, do something that you enjoy that is not related to school or work! 
 
 
STOP PROCRASTINATING 
The longer you put off that project or deadline, the more stress it will cause when it's due. If you prepare ahead of time (schedule time on your calendar), you will avoid the unwanted stress. Plus getting it done ahead of time will provide you with free time to do as you please. 
 
 
LEARN TO SAY NO 
Sometimes others expect more from us than we can feasibly give. So don't be afraid to say no when your schedule is full. Let the person know that right now is a busy time, but you may be willing to help in the future. They will understand! 
 
 
MAKE USE OF CLASS TIME 
We love class!By going to class prepared and listening attentively, you will reduce your stress when it comes to test taking. Paying attention in class will allow you to retain the information and therefore you are already one step ahead in your studying! 
 
 
TAKE A BREAK 
If you are feeling overwhelmed, step back and analyze the situation. Go get some fresh air, take a short walk, grab a healthy snack, or visit the Cozy Melon Stress Room (see below). Watching television or talking on the phone on your break can be okay, but it's not the best idea. You may get sucked into a program or talk for too long and end up using more time than you had planned on. So be mindful of how you spend your break, because time is precious! 
 
 
LEARN TO RELAX 
Relaxation techniques can be very useful in lowering your stress and anxiety levels. Here are some examples: deep breathing, listening to soothing music, meditation, massage and visualization of positive experiences. 
 
 
TAKE CARE OF YOURSELF 
Exercise!Exercise will bring about positive physical and mental changes, which will help reduce stress. Eat your veggies!Eating fruits and vegetables are good vitamin sources for boosting the immune system. Avoid the use of "pick me ups" (sugar, caffeine, tobacco, or alcohol) as they will only provide a temporary fix to the problem. 
 
 
GET ENOUGH SLEEP 
Getting sufficient sleep each night will prepare you to take on the next day's tasks to the best of your ability. Feeling sleepy will only slow you down and put you further behind. Here are some sleeping tips to help you get the most out of your sleep time: go to bed at the same time and wake up at the same time everyday, get regular exercise (just not right before bed), keep the bedroom quiet while sleeping, and keep the room at a comfortable temperature. 
 
 
HAVE A SENSE OF HUMOR 
A good laugh is always a great way to relieve any stress you are dealing with. You may need to step back and learn not to take yourself so seriously. Laughter can have healing qualities. So stop what you are doing, read or look at something funny, and get other people involved. Laughter is contagious, so share this de-stressing activity with others who appear to be under stress. 
 
 
LIVE IN THE PRESENT 
There is no point in dwelling on the past; you cannot change it. You can only learn from your mistakes and try to avoid making the same ones in the future. So focus your attention on the goals at hand, not on missed opportunities. It will help relieve some of the pressure.



Wednesday, November 15, 2006

LINUS TORVALDS heroes of the past 60 years.

The European edition of the Time magazine has selected Linus Torvalds as one of the heroes of the past 60 years. >From the main article: 'In the 60 years that Time has been publishing an Atlantic edition, extraordinary people have emerged from the churn and turmoil, creativity and chaos of a period that witnessed the aftermath of world war, the toppling of communism in Central and Eastern Europe, the vanquishing of apartheid in South Africa, the advance of women, the failure of old certainties and the rise of new fears. These people are our heroes, and in this special anniversary issue, we celebrate them and their many achievements.' The article on Linus is titled 'By giving away his software, the Finnish programmer earned a place in history.' Linus is cited in the 'Rebels & Leaders' category along with Nelson Mandela, Mikhail Gorbachev, Margaret Thatcher, and others."

Tuesday, November 14, 2006

xyz

xyz

Monday, November 13, 2006

df very useful command in linux

report file system disk space usage
  If an argument is the absolute file name of a disk device node contain‐
       ing  a  mounted  file system, df shows the space available on that file
       system rather than on the file system containing the device node (which
       is  always  the  root file system).  This version of df cannot show the
       space available on unmounted file systems, because  on  most  kinds  of
       systems  doing  so requires very nonportable intimate knowledge of file
       system structures.
_________________________________________________________________
 a sample output from my  system
________________________________________________________________
Filesystem           1K-blocks Used Available Use% Mounted on
/dev/hda1             19322864   3160228  15181068  18% /
varrun                  253748        92    253656   1% /var/run
varlock                 253748         4    253744   1% /var/lock
udev                    253748       116    253632   1% /dev
devshm                  253748         0    253748   0% /dev/shm
lrm                     253748     18856    234892   8% /lib/modules/2.6.15-23-386/volatile
/dev/hda2             19228308   4714944  13536612  26% /home



orkut change your life style


Orkut
 googles friends network
make a revolution in  world wide
it connects people around the globe, u  can  easily  find ur old friends in this net work
if u have no orkut a/c , mail me , i will invite you
it is entirely in  google style
taste the wonder!!!!!!!!!!!!!!!1
--
regards

sajjad.c
http://lifekamazza.blogspot.com/

Thursday, November 09, 2006

command to show most used command in ur linux system

history |awk '{print$2}'|awk 'BEGIN{FS="|"}{print$1}'|sort|uniq -c|sort -r|head -10

Wednesday, November 08, 2006

hi friends
............just wait i will appear with insome days
you can contact me in
+919895099457
csajjad@gmail.com
csajjad( in orkut)