<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5755835785367240982</id><updated>2011-08-02T21:42:29.549-07:00</updated><category term='Linux Kernel'/><category term='Qt-4.3.4 installation on Windows XP'/><category term='FIRST QT PROGRAM ON WINDOWS'/><title type='text'>Life Is A Sojourn</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-7072409592466672395</id><published>2009-06-30T09:22:00.000-07:00</published><updated>2009-06-30T09:26:00.067-07:00</updated><title type='text'>Using Select() per Thread</title><content type='html'>void &amp;lt;ProtocolClass&amp;gt;::run()&lt;br /&gt;{&lt;br /&gt;    int fd = mPort-&amp;gt;GetFileDescriptor();&lt;br /&gt;    fd_set readfs;&lt;br /&gt;    int maxfd=fd + 1;&lt;br /&gt;    int res;&lt;br /&gt;    &lt;br /&gt;    struct timeval Timeout;&lt;br /&gt;    Timeout.tv_usec=0;&lt;br /&gt;    Timeout.tv_sec=3;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   //BYTE  ack_message_frame[ACKNOWLEDGE_FRAME_SIZE];&lt;br /&gt;   while(true)&lt;br /&gt;   {&lt;br /&gt;        usleep(10);&lt;br /&gt;        FD_ZERO(&amp;amp;readfs);&lt;br /&gt;        FD_SET(fd,&amp;amp;readfs); &lt;br /&gt;        res=select(maxfd,&amp;amp;readfs,NULL,NULL,NULL);&lt;br /&gt;        if(res&amp;lt;0)&lt;br /&gt;           perror(&amp;quot;\nselect failed&amp;quot;);&lt;br /&gt;        else if( res==0)&lt;br /&gt;                        puts(&amp;quot;TIMEOUT&amp;quot;);&lt;br /&gt;        else if(FD_ISSET(fd,&amp;amp;readfs))&lt;br /&gt;        {//IF INPUT RECEIVED&lt;br /&gt;                qDebug(&amp;quot;************RECEIVED DATA****************&amp;quot;);&lt;br /&gt;        FlushBuf();&lt;br /&gt;        qDebug(&amp;quot;\nReading data into a read buffer&amp;quot;);&lt;br /&gt;        int bytes_read=mPort-&amp;gt;ReadPort(mBuf,1000);&lt;br /&gt;        mFrameReceived=false;&lt;br /&gt;        for(int i=0;i&amp;lt;bytes_read;i++)&lt;br /&gt;        {&lt;br /&gt;            qDebug(&amp;quot;%x&amp;quot;,mBuf[i]);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //if complete frame has been received, write the acknowledge message frame to the port.&lt;br /&gt;        if(bytes_read&amp;gt;0)&lt;br /&gt;        {&lt;br /&gt;                qDebug(&amp;quot;\nAbout to Process Received bytes&amp;quot;);&lt;br /&gt;            ProcessReceivedBytes(mBuf,bytes_read);&lt;br /&gt;            qDebug(&amp;quot;\n Processed Received bytes&amp;quot;);&lt;br /&gt;            if(mFrameReceived)&lt;br /&gt;        {&lt;br /&gt;        int no_bytes=mPort-&amp;gt;WritePort(mAcknowledgeMessage,ACKNOWLEDGE_FRAME_SIZE);&lt;br /&gt;            }//if frame received&lt;br /&gt;        }//if bytes read &amp;gt; 0&lt;br /&gt;        } //if input received&lt;br /&gt;    }//end while&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The above is the code for using select call to monitor serial port in a Qt thread's run function. This code cannot be found anywhere else. It's been tested on RHEL4 Qt 4.2.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-7072409592466672395?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/7072409592466672395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=7072409592466672395' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/7072409592466672395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/7072409592466672395'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2009/06/using-select-per-thread.html' title='Using Select() per Thread'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-748854531898017219</id><published>2009-03-27T18:58:00.000-07:00</published><updated>2009-03-27T19:00:43.273-07:00</updated><title type='text'>Compiling a multithreaded program</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;If sample.c is our program consisting of code leveraging POSIX threads for multithreading on a Linux platform then the following command is used to compile the program.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;gcc -o sample sample.c -lpthread&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Cheers!!!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-748854531898017219?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/748854531898017219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=748854531898017219' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/748854531898017219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/748854531898017219'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2009/03/compiling-multithreaded-program.html' title='Compiling a multithreaded program'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-9073952197877011578</id><published>2009-03-27T18:55:00.000-07:00</published><updated>2009-03-27T18:58:16.959-07:00</updated><title type='text'>Finding out dependencies of an executable in Linux</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;ldd command is used to find out the dynamic dependencies of an executable in a Linux/Unix environment.&lt;br /&gt;&lt;br /&gt;ldd &lt;executable file&gt;&lt;br /&gt;&lt;br /&gt;will list out all the dynamic libraries used by the executable.It is a great tool to find out the missing modules needed by the executable.&lt;br /&gt;&lt;br /&gt;Cheers!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-9073952197877011578?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/9073952197877011578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=9073952197877011578' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/9073952197877011578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/9073952197877011578'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2009/03/finding-out-dependencies-of-executable.html' title='Finding out dependencies of an executable in Linux'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-1188391179141311912</id><published>2009-03-27T18:48:00.000-07:00</published><updated>2009-03-27T18:54:53.700-07:00</updated><title type='text'>Debugging C,C++ programs on Linux Platform</title><content type='html'>HI all,&lt;br /&gt;&lt;br /&gt;Generally everyone use gdb for debugging C,C++ programs in Linux. There is another tool called valgrind that is an amalgamation of a host of other tools for debugging.For examples memcheck which is used to debug memory related issues, helgrind which is used to debug multithreading programs. The tool is open source and packages exist for all distributions. Usage&lt;br /&gt;&lt;br /&gt;valgrind --tool=&lt;tool name ex. memcheck or helgrind etc&gt; &lt;executable&gt;&lt;br /&gt;&lt;br /&gt;Though I must say that you have to read the documentation about the concerned tool to find out exactly what is the meaning of the messages generated by every tool otheriwse its difficult to comprehend the out genereated by the tool for your executable.&lt;br /&gt;&lt;br /&gt;Cheers!!!!!!!!!!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-1188391179141311912?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/1188391179141311912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=1188391179141311912' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/1188391179141311912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/1188391179141311912'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2009/03/debugging-cc-programs-on-linux-platform.html' title='Debugging C,C++ programs on Linux Platform'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-4700644618176142710</id><published>2009-03-27T18:44:00.000-07:00</published><updated>2009-03-27T18:47:48.697-07:00</updated><title type='text'>Note about pthread_exit</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;A little note about usage of pthread_exit() while using multithreading on a Linux platform. pthread_exit() is used to kill a process for which it is called but it doesn't release the resource held by the thread immedeatly, this leads to increase in the memory footprint when a thread is killed. To complete this process use &lt;span style="font-weight:bold;"&gt;pthread_join()&lt;/span&gt; or &lt;span style="font-weight:bold;"&gt;pthread_detach()&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Cheers!!!!!!!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-4700644618176142710?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/4700644618176142710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=4700644618176142710' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/4700644618176142710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/4700644618176142710'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2009/03/note-about-pthreadexit.html' title='Note about pthread_exit'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-6333588920956637720</id><published>2008-11-16T09:43:00.000-08:00</published><updated>2008-11-16T09:50:00.545-08:00</updated><title type='text'>Finding where GRUB stages are installed</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;The following command when entered in GRUB prompt will list out the drive in which GRUB stage 1 is intalled:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;grub&gt; find /boot/grub/stage1&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;for me it resulted in:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;(hd0,5)  ------&gt; internal 80 GB SATA&lt;br /&gt;(hd1,0)  ---------&gt;External USB Western Digital passport &lt;/span&gt;&lt;br /&gt;This was because earlier I had grub on internal hard disk which I erased from MBR. And second was for the USB Western Digital passport drive.&lt;br /&gt;&lt;br /&gt;One other command that is helpful is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;grub-install --recheck /dev/sdb&lt;/span&gt;&lt;br /&gt;This installs grub on the selected drive, WD in my case.&lt;br /&gt;&lt;br /&gt;But for a fool proof method use root and setup commands from inside grub prompt to install grub.&lt;br /&gt;&lt;br /&gt;Cheers!!!!!!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-6333588920956637720?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/6333588920956637720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=6333588920956637720' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/6333588920956637720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/6333588920956637720'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/11/finding-where-grub-stages-are-installed.html' title='Finding where GRUB stages are installed'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-3229713485381670392</id><published>2008-11-16T08:41:00.000-08:00</published><updated>2008-11-16T09:41:34.478-08:00</updated><title type='text'>Installing Fedora Core 9 on Western Digital Passport</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;Here was the scenario: I have an 80 GB SATA hard drive. I have Windows XP installed on it. Now my idea was to keep my current hard disk configuration unchanged and install a flavour of Linux on an external drive (which is generally a USB interface). With this intention I bought a &lt;span style="font-weight:bold;"&gt;160 GB Western Digital Passport USB drive (an excellent drive I must say)&lt;/span&gt;. I decided to install latest version of fedora &lt;span style="font-weight:bold;"&gt;FEDORA CORE 9&lt;/span&gt;. When I plug in my external disk the resultant device identities are:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/dev/sda -------&gt; 80 GB SATA&lt;br /&gt;/dev/sdb -------&gt; 160 GB WESTERN DIGITAL PASSPORT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Now I started out the installation of fedora, choose "linux expert" by typing in at the boot prompt when you boot from fedora CD. But I just followed the normal install routine&lt;br /&gt;2. Did a fresh install, and selected my Western digital drive for installation. Then I did a custom partition of the drive. For every partition I also gave the drive on which to partition i.e /dev/sdb&lt;br /&gt;3. Now I selected the External drive to install GRUB. &lt;br /&gt;4. The installation went perfect and everything was done. Then I did a reboot and through the fedora CD went into the rescue mode by typing "linux rescue" at boot prompt. &lt;br /&gt;5. Select No for Network service when ask and skip the next dialogue box that comes up, you will now be taken up to the shell promp sh.3.2#&lt;br /&gt;6. In my case my boot partition was /dev/sdb1 and root partition was /dev/sdb2. Enter the following set of commands:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;mkdir /mnt/source&lt;br /&gt;mkdir /mnt/source/boot&lt;br /&gt;mount /dev/sdb2 /mnt/source&lt;br /&gt;mount /dev/sdb1 /mnt/source/boot&lt;br /&gt;chroot /mnt/source&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Remember to execute boot commands in that order. The chroot is to use paths relative to the root directory. &lt;br /&gt;7. Now we will create the initrd image to include modules for USB so that we can boot from our external drive. For this enter the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;mkinitrd --with-usb --preload ehci-hcd --preload usb-storage --preload scsi_mod --preload sd_mod&lt;br /&gt;/boot/initrd_usb.gz 2.6.25-14.fc9.i686&lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;The last part of the command is the kernel version. Substitute for the kernel version that you are installing. &lt;br /&gt;8. This with create an initrd image by the name &lt;span style="font-style:italic;"&gt;"initrd_usb.gz"&lt;span style="font-weight:bold;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;Now you have to replace the &lt;span style="font-style:italic;"&gt;intird-&lt;kernel version&gt;&lt;/span&gt; entry from the grub.conf file in /boot/grub directory with the "initrd_usb.gz" that we have just created. Also remember to remove the initrd image present in /boot directory before going for a reboot. &lt;br /&gt;9. Now enter the following set of commands:&lt;br /&gt;exit -------&gt; this will exit the chroot&lt;br /&gt;umount /mnt/source/boot&lt;br /&gt;umount /mnt/source&lt;br /&gt;exit --------&gt; to reboot&lt;br /&gt;&lt;br /&gt;10. Enter in the bios on reboot and make you boot drive to point to External Drive, in my case Western Digital passport from the First boot device options. Make Sure first that your BIOS supports booting from external drives. Now my PC was bought in 2005 so you have a benchmark as to your BIOS will boot from the USB drive or not.&lt;br /&gt;&lt;br /&gt;------------- THE ABOVE PROCEDURE IS THE STANDARD WHICH ONE HAS TO FOLLOW ALWAYS ----------------&lt;br /&gt;&lt;br /&gt;But I followed the above procedure in 2 scenarios.&lt;br /&gt;&lt;br /&gt;1. Initially, in my first attempt, I also had fedora installed on the internal SATA disk. And I followed the above procedure to intsall FEDORA 9 on my WD drive but the booting stopped after diplaying GRUB at startup and nothing happend not even the stage 1. Then using an UBUNTU LIVE CD fiesty fawn I did a "grub-install /dev/sdb". And now I was fucked because I had tinkered the GRUB on my internal hard disk. I wasn't able to boot into windows also. This is a common occurrence to almost any individual that tinkers with GRUB. But there is nothing to worry here if you have Windows 98 CD. Just boot from it and at the command prompt use the command:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;fdisk /mbr&lt;/span&gt;&lt;br /&gt;This will fix remove GRUB from your mbr and you will atleast boot into your windows partition. &lt;br /&gt;But this was only a part of the story. Now if I boot up using USB I would get to GRUB STAGE 1.5 and Error 17 would come up and bump, nothing happend. &lt;br /&gt;2. Then I again installed FEDORA 9.Though this time I didn't have GRUB Installed in my internal drive. I followed the install procedure and installed grub from the UBUNTU LIVE CD FIESTY FAWN, by typing "grub" to get into the grub command line&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;grub&gt; root (hd1,0)&lt;br /&gt;grub&gt; setup (hd1)&lt;br /&gt;grub&gt; quit &lt;/span&gt;&lt;br /&gt;Voila!! I had set up grub on my external drive explicitly. &lt;br /&gt;Did a reboot and bingo I got to the stage where I got the splash screen displaying boot options, but when I selected fedora it again gave me Error 17: unknown file system type 0x7 Press an key to continue.......... and on key press it again return to menu. &lt;br /&gt;I edited the menu option by pressing "e" and changed the root (&lt;span style="font-weight:bold;"&gt;hd1&lt;/span&gt;,0) to root (&lt;span style="font-weight:bold;"&gt;hd0&lt;/span&gt;,0) pressed enter and then "b" to boot with selected option and then HURRRRRRRRRRAHHHHHHHHHHH, my 4 days of hand banging into every blog concerning GRUB finally paid of. From here one can figure out that when you boot from a disk which has GRUB on it, GRUB assumes that the drive is hd0 though when you install it can see multiple drives and gives it some other number i.e hd1 or hd2 etc. Thus when you boot up remember to change it to hd0 as it did at the grub command edit feature. To make this permanent, boot into the drive and changed the grub.conf entry and you're done. &lt;br /&gt;&lt;br /&gt;Fellas this has been an exhausting exercise and I had been working for close to 35+ hours on getting my drive to boot up. I am now adept at handling any of your queries in this regard. Feel free to comment and/or query. I will be more than happy to every problem of yours.&lt;br /&gt;And lastly, thanks to all the linux community forums, its members and other netizens whose little pieces of information I have gathered to get things to work. But I must admit that there was no single place where I could get all of it. So clubbed everything together here, for every individual to refer to. I hope this helps, and apologies for any typos. I have rechecked all commands here. They have been practically implemented in process and so they work 100%.&lt;br /&gt;&lt;br /&gt;Cheers!!!!!!!!!!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-3229713485381670392?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/3229713485381670392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=3229713485381670392' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/3229713485381670392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/3229713485381670392'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/11/installing-fedora-core-9-on-western.html' title='Installing Fedora Core 9 on Western Digital Passport'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-6373100608149508817</id><published>2008-09-11T05:59:00.000-07:00</published><updated>2008-09-11T06:00:41.823-07:00</updated><title type='text'>Forouzan's Data Communications And Networks PDF</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;The following is the link for pdf of Forouzan's best selling book.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://rapidshare.com/files/69848244/Data.Communications.Networking.Devices.-.Fourth.Edition.rar"&gt;http://rapidshare.com/files/69848244/Data.Communications.Networking.Devices.-.Fourth.Edition.rar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Cheers!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-6373100608149508817?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/6373100608149508817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=6373100608149508817' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/6373100608149508817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/6373100608149508817'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/09/forouzans-data-communications-and.html' title='Forouzan&apos;s Data Communications And Networks PDF'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-1971427009162005238</id><published>2008-08-23T09:12:00.000-07:00</published><updated>2008-08-23T09:20:29.835-07:00</updated><title type='text'>Checking size of a file or directory in Megabytes in Linux</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;just a small thing but if you want to find the size of a file or directory in Linux, use the following command:&lt;br /&gt;&lt;br /&gt;root@gaurav$&gt;&lt;strong&gt;du -H &lt;i&gt;&lt;strong&gt;file/directory name&lt;/strong&gt;&lt;/i&gt;&lt;strong&gt; &lt;i&gt;&lt;file dir=""&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;file dir=""&gt;Replace the &lt;file dir=""&gt;&lt;i&gt;&lt;strong&gt;file/direcotry&lt;/strong&gt;&lt;/i&gt;&lt;/file&gt;&lt;strong&gt;&lt;file dir=""&gt;&lt;i&gt; name&lt;/i&gt;&lt;/file&gt;&lt;/strong&gt;&lt;file dir=""&gt; with the file or directory name you want to know the size of or don't include it if you want to know the size of every file and/or directory in the current directory&lt;/file&gt;&lt;strong&gt;&lt;i&gt;&lt;file dir=""&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;file dir=""&gt;Hope that helped.&lt;strong&gt;&lt;i&gt;&lt;file dir=""&gt; &lt;br /&gt;&lt;strong&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/strong&gt;Cheers!!!!!!!!!&lt;strong&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-1971427009162005238?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/1971427009162005238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=1971427009162005238' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/1971427009162005238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/1971427009162005238'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/08/checking-size-of-file-or-directory-in.html' title='Checking size of a file or directory in Megabytes in Linux'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-7698286101857886153</id><published>2008-08-06T06:18:00.000-07:00</published><updated>2008-08-06T06:20:18.316-07:00</updated><title type='text'>LINUX CBT IPV6 rapidshare links</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;these are the rapidshare links for linux cbt IP Version 6.0&lt;br /&gt;&lt;br /&gt;http://rapidshare.com/files/44521580/LinuxCBT_IPv6_Edition.nfo.html&lt;br /&gt;http://rapidshare.com/files/44521686/LinuxCBT.IPv6.Edition.sfv.html&lt;br /&gt;http://rapidshare.com/files/44527716/LinuxCBT.IPv6.Edition.rar.html&lt;br /&gt;http://rapidshare.com/files/44548346/LinuxCBT.IPv6.Edition.r00.htm&lt;br /&gt;http://rapidshare.com/files/44562437/LinuxCBT.IPv6.Edition.r01.html&lt;br /&gt;http://rapidshare.com/files/44617742/LinuxCBT.IPv6.Edition.r02.html&lt;br /&gt;http://rapidshare.com/files/44706825/LinuxCBT.IPv6.Edition.r03.html&lt;br /&gt;http://rapidshare.com/files/44819836/LinuxCBT.IPv6.Edition.r04.html&lt;br /&gt;http://rapidshare.com/files/44846543/LinuxCBT.IPv6.Edition.r05.html&lt;br /&gt;http://rapidshare.com/files/44902016/LinuxCBT.IPv6.Edition.r06.html&lt;br /&gt;http://rapidshare.com/files/44925386/LinuxCBT.IPv6.Edition.r07.html&lt;br /&gt;http://rapidshare.com/files/44921393/LinuxCBT.IPv6.Edition.r08.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-7698286101857886153?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/7698286101857886153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=7698286101857886153' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/7698286101857886153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/7698286101857886153'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/08/linux-cbt-ipv6-rapidshare-links.html' title='LINUX CBT IPV6 rapidshare links'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-1844637820860946671</id><published>2008-08-06T06:12:00.000-07:00</published><updated>2008-08-06T06:14:19.350-07:00</updated><title type='text'>RAPIDSHARE LINKS FOR LINUX CBT EL-5</title><content type='html'>HI all,&lt;br /&gt;enjoy these links for linux cbt rhel 5&lt;br /&gt;&lt;br /&gt;http://rapidshare.com/files/133941022/LinuxCBT_-_RHEL5.part01.rar&lt;br /&gt;http://rapidshare.com/files/133945575/LinuxCBT_-_RHEL5.part02.rar&lt;br /&gt;http://rapidshare.com/files/133949889/LinuxCBT_-_RHEL5.part03.rar&lt;br /&gt;http://rapidshare.com/files/133954257/LinuxCBT_-_RHEL5.part04.rar&lt;br /&gt;http://rapidshare.com/files/133822485/LinuxCBT_-_RHEL5.part05.rar&lt;br /&gt;http://rapidshare.com/files/133828310/LinuxCBT_-_RHEL5.part06.rar&lt;br /&gt;http://rapidshare.com/files/133834050/LinuxCBT_-_RHEL5.part07.rar&lt;br /&gt;http://rapidshare.com/files/133839809/LinuxCBT_-_RHEL5.part08.rar&lt;br /&gt;http://rapidshare.com/files/133845460/LinuxCBT_-_RHEL5.part09.rar&lt;br /&gt;http://rapidshare.com/files/133851250/LinuxCBT_-_RHEL5.part10.rar&lt;br /&gt;http://rapidshare.com/files/133856915/LinuxCBT_-_RHEL5.part11.rar&lt;br /&gt;http://rapidshare.com/files/133862751/LinuxCBT_-_RHEL5.part12.rar&lt;br /&gt;http://rapidshare.com/files/133868829/LinuxCBT_-_RHEL5.part13.rar&lt;br /&gt;http://rapidshare.com/files/133875093/LinuxCBT_-_RHEL5.part14.rar&lt;br /&gt;http://rapidshare.com/files/133881082/LinuxCBT_-_RHEL5.part15.rar&lt;br /&gt;http://rapidshare.com/files/133887439/LinuxCBT_-_RHEL5.part16.rar&lt;br /&gt;http://rapidshare.com/files/133893788/LinuxCBT_-_RHEL5.part17.rar&lt;br /&gt;http://rapidshare.com/files/133900085/LinuxCBT_-_RHEL5.part18.rar&lt;br /&gt;http://rapidshare.com/files/133906507/LinuxCBT_-_RHEL5.part19.rar&lt;br /&gt;http://rapidshare.com/files/133912505/LinuxCBT_-_RHEL5.part20.rar&lt;br /&gt;http://rapidshare.com/files/133918086/LinuxCBT_-_RHEL5.part21.rar&lt;br /&gt;http://rapidshare.com/files/133923602/LinuxCBT_-_RHEL5.part22.rar&lt;br /&gt;http://rapidshare.com/files/133929163/LinuxCBT_-_RHEL5.part23.rar&lt;br /&gt;http://rapidshare.com/files/133934515/LinuxCBT_-_RHEL5.part24.rar&lt;br /&gt;http://rapidshare.com/files/133936081/LinuxCBT_-_RHEL5.part25.rar&lt;br /&gt;&lt;br /&gt;Password:  4U_bySettler&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-1844637820860946671?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/1844637820860946671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=1844637820860946671' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/1844637820860946671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/1844637820860946671'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/08/rapidshare-links-for-linux-cbt-el-5.html' title='RAPIDSHARE LINKS FOR LINUX CBT EL-5'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-8375080928787431591</id><published>2008-08-06T05:48:00.000-07:00</published><updated>2008-08-06T05:55:48.603-07:00</updated><title type='text'>Rapidshare links for LINUX CBT FOR AWK AND SED</title><content type='html'>Hi all, these are the links for linux cbt for awk and sed&lt;br /&gt;&lt;br /&gt;&lt;a href="http://rapidshare.com/files/83930832/LinuxCBT.Awk-Sed.Edition.RIP-fJr.part1.rar%20%20http://rapidshare.com/files/83930841/LinuxCBT.Awk-Sed.Edition.RIP-fJr.part2.rar%20%20http://rapidshare.com/files/83930470/LinuxCBT.Awk-Sed.Edition.RIP-fJr.part3.rar"&gt;http://rapidshare.com/files/83930832/LinuxCBT.Awk-Sed.Edition.RIP-fJr.part1.rar&lt;/a&gt;&lt;br /&gt;&lt;a href="http://rapidshare.com/files/83930841/LinuxCBT.Awk-Sed.Edition.RIP-fJr.part2.rar"&gt;http://rapidshare.com/files/83930841/LinuxCBT.Awk-Sed.Edition.RIP-fJr.part2.rar&lt;/a&gt;&lt;br /&gt;&lt;a href="http://rapidshare.com/files/83930470/LinuxCBT.Awk-Sed.Edition.RIP-fJr.part3.rar"&gt;http://rapidshare.com/files/83930470/LinuxCBT.Awk-Sed.Edition.RIP-fJr.part3.rar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Password: Hello&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-8375080928787431591?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/8375080928787431591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=8375080928787431591' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/8375080928787431591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/8375080928787431591'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/08/rapidshare-links-for-linux-cbt-for-awk.html' title='Rapidshare links for LINUX CBT FOR AWK AND SED'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-2463029281629979452</id><published>2008-07-07T09:08:00.000-07:00</published><updated>2008-08-23T09:09:41.629-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FIRST QT PROGRAM ON WINDOWS'/><title type='text'>Writing, compiling and executing a Qt program on Windows XP</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;To compile a qt program first make a folder and make a cpp file in this folder and add the appropriate code. For your reference I created a C:\Qt\First and then added a main.cpp with the following contents:&lt;br /&gt;&lt;span&gt;#include &lt;qapplication&gt; &lt;qapplication&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;#include &lt;qpushbutton&gt; &lt;qpushbutton&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;int main(int argc, char* argv[])&lt;/span&gt;&lt;br /&gt;&lt;span&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span&gt;        QApplication app(argc,argv);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;        QPushButton button;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;        button.setText("FIRST BUTTON");&lt;/span&gt;&lt;br /&gt;&lt;span&gt;        button.show();&lt;/span&gt;&lt;br /&gt;&lt;span&gt;        return app.exec();&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then execute the following standard commands one by one:&lt;br /&gt;&lt;span&gt;qmake -projects&lt;/span&gt;&lt;br /&gt;&lt;span&gt;qmake&lt;/span&gt;&lt;br /&gt;&lt;span&gt;make&lt;/span&gt;&lt;br /&gt;This will create 3 make files namely Makefile, Makefile.Debug, Makefile.Release.&lt;br /&gt;To create an executable: type the command:&lt;span&gt; &lt;span&gt;make -f Makefile.Release&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;This creates a release folder. The executable is in this release folder. Change to this folder and execute the exe.&lt;br /&gt;Remember that every time you change your code, compile your program with the above command to recreate the release which reflects the changes that you have made.&lt;br /&gt;That's it you are on your way to bigger things in Qt&lt;br /&gt;&lt;br /&gt;HAPPY PROGRAMMING&lt;br /&gt;For any queries leave your comments and I will get back to you soon.&lt;br /&gt;&lt;br /&gt;Cheers!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;br /&gt;&lt;br /&gt;MANDELBROT&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-2463029281629979452?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/2463029281629979452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=2463029281629979452' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/2463029281629979452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/2463029281629979452'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/07/writing-compiling-and-executing-qt.html' title='Writing, compiling and executing a Qt program on Windows XP'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-1134225318923396835</id><published>2008-07-07T06:56:00.000-07:00</published><updated>2008-07-07T07:33:17.208-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Qt-4.3.4 installation on Windows XP'/><title type='text'>INSTALLING QT ON WINDOWS XP</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;This is the trickiest installation I have done. The trick is to have the right information and it is that on a Windows machine &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;only the commercial release&lt;/span&gt; is compatible with Microsoft Visual Studio so if you are stuck with strange errors creeping up when you try to install open source edition with msvc option you know where is the problem. Thus,&lt;span style="font-weight: bold;"&gt; for Qt open source edition install a mingw compiler on your system.&lt;/span&gt; The mingw homepage (mingw.org) sucks, the download links have nothing to download, it is the worst website of all open source projects. The work around for this is to download Bloodshed Dev C++. This will install everything that you need to start your installation for Qt. Do remember that if you have microsoft visual studio installed clear the environment variables MSYS, LIB and INCLUDE (&lt;span style="color: rgb(0, 0, 153);"&gt;NOTE:-To check all the environment variables that are set on your machine, type the following command: &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(0, 0, 153);"&gt;set&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt; on a windows console.&lt;/span&gt;).  This is done using "set" command from the console as follows&lt;br /&gt;&lt;ol&gt;&lt;li&gt;set LIB=&lt;/li&gt;&lt;li&gt;set INCLUDE=&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;This clears any entries for visual studio from LIB and INCLUDE. Now comes the steps that you need to take to install qt. I am using Qt-4.3.3 open source edition.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Unzip the Qt folder to C: drive so you have a qt source folder in C:\&lt;br /&gt;&lt;/li&gt;&lt;li&gt;I have Bloodshed Dev C++ installed in C:\Dev-Cpp. Add the bin and library sub folder of this folder to your PATH variable using &lt;span style="font-weight: bold; font-style: italic;"&gt;PATH=%PATH%;C:\Dev-Cpp\bin;C:\Dev-Cpp\lib&lt;/span&gt;. This would relieve you all the hassles of finding and installing a mingw compiler as Bloodshed Dev C++ automatically installs them for you. Also change your LIB and INCLUDE environment variables (after clearing the visual studio entries) to point to Dev-Cpp and Qt lib and include folder. I made the following changes on the console: &lt;span style="font-weight: bold; font-style: italic;"&gt;set LIB=%LIB%C:\Dev-Cpp\lib;C:\qt-win-opensource-src-4.3.4\lib&lt;/span&gt;( I unzipped Qt folder to C:\ drive, if you choose some other path then change it accordingly). &lt;span style="font-weight: bold; font-style: italic;"&gt;set INCLUDE=%INCLUDE%:C:\Dev-Cpp\include;C:\qt-win-opensource-src-4.3.4\include&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Then switch to the qt folder i.e where you have unzipped the qt source folder. In my case it is &lt;span style="font-weight: bold;"&gt;C:\qt-win-opensource-src-4.3.4&lt;/span&gt;. From there type the command:                  &lt;span style="font-weight: bold; font-style: italic;"&gt;configure -platform win32-g++&lt;/span&gt; to configure Qt for your system. The command will only fail if you haven't set the path for the mingw based compiler correctly other wise in a matter of 5-10 minutes your version of qt will be ready to be built.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;When qt is configured run the following command to build qt for your system:           &lt;span style="font-weight: bold; font-style: italic;"&gt;mingw32-make.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt; If you face any errors during this step it is most likely that you have visual studio installed and environment variables like LIB, INCLUDE AND MSYS set to point to exe's needed by visual studio. Clearing these variables and setting them as I have explained above will relieve you of your hassles. &lt;/li&gt;&lt;li&gt;Finally add Qt bin directory's path to your PATH variable as&lt;span style="font-weight: bold; font-style: italic;"&gt; PATH=%PATH%;C:\qt-win-opensource-src-4.3.4\bin&lt;/span&gt; (in my case).&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;I hope this does the trick for all of you geeks who were hitting a dead end while installing Qt on your windows machines. For any further queries you can send a comment and I will try to answer them to the best of my abilities.&lt;br /&gt;&lt;br /&gt;Cheers!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-1134225318923396835?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/1134225318923396835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=1134225318923396835' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/1134225318923396835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/1134225318923396835'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/07/installing-qt-on-windows-xp.html' title='INSTALLING QT ON WINDOWS XP'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-2487924173995829967</id><published>2008-03-27T09:01:00.000-07:00</published><updated>2008-03-27T09:30:19.146-07:00</updated><title type='text'>Travel Advisory To India</title><content type='html'>HI ALL,&lt;br /&gt;&lt;br /&gt;Well for all the foreign nationals visiting India there are few points that you must strictly adhere to if you do not want to turn your Indian picnic into a nightmare. Women travelers should be extra cautious while visiting India. Crime against women is a norm in India.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Never ever fall into a trap if some one tries desperately to befriend you.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Stay clear of secluded spots.&lt;/li&gt;&lt;li&gt;Do not travel or party late nights. Call of a night at max 11:00 pm. It is always better to be safe than sorry.&lt;/li&gt;&lt;li&gt;Most guides and travel agents will try to rip off so cross check with your fellow Indian travelers with the correct fares and prices of commodities.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Be extra cautious about your baggage and guard against even children, as in the garb of their innocent looks they will make do with your booty.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Stay away from cheap accommodation. In the past 3-4 years there have been many instances of rape by the staffers of these cheap hotels (or motels as they are called in the US).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;For female travelers, it is better if they have a male company otherwise it is very dangerous to tour India. Also for the female travelers, despite the hot weather it is always advisable to wear clothes that cover most of your body as it eliminate any unwarranted attention from some (in fact most) Indian men with hight testosterone drives. &lt;/li&gt;&lt;li&gt;Drink only bottled water. Some good one are BISLERI, AQUAFINA, KINGFISHER etc. Insist on these two as other ones are cheap duplicates that compromise both on your money and health.&lt;/li&gt;&lt;li&gt;Do not try the street food because only Indian people have the digestive system to filter this stuff. &lt;/li&gt;&lt;li&gt;Lastly if you are traveling with your teen aged children (especially girls), make a point that they are with you all the time. The case in point is the molestation of British girls by some Keralite hooligans on the new years night 2008 and the more recent Scarlette Keeling murder case.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Being an Indian citizen it is my responsibility that whoever visits my country has a pleasant and happy time. It absolutely disgust me to see violent crimes being committed against tourist especially women. The above 10 points are to be kept in mind by any traveler visiting India and believe me it will nullify at least 70 percent chance of the tourist getting into trouble. I think Women travelers should strictly follow the above 10 points to ward off any unnecessary hiccups in their visit to India. The rest is up to the destiny of the individual travelers.&lt;br /&gt;Lastly and most importantly, follow your intuition and gut feeling because even the airports are not safe in India. This is proven by the fact that cases of molestation are common place at the IGI airport New Delhi.&lt;br /&gt;&lt;br /&gt;Happy touring India&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-2487924173995829967?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/2487924173995829967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=2487924173995829967' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/2487924173995829967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/2487924173995829967'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/03/travel-advisory-to-india.html' title='Travel Advisory To India'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-8985739507028668300</id><published>2008-03-26T06:53:00.000-07:00</published><updated>2008-08-23T09:12:04.005-07:00</updated><title type='text'>Most Indian Men Are Lechers</title><content type='html'>Hi all, being an Indian male gives you a free hand in giving the females a tough time. Having observed the psyche of Indian men especially over a period of time I find them chauvinist, lecherous towards the fairer sex. In market places I quite often see men and boys ogling at women (don't ask me places where they focus there eyes on). At crowded places they never miss any opportunity to get there hands on a women's assets, testimony to it are the famous incidents of eve teasing in Mumbai during the last 2 new year revelries. Today as well while buying fruits I could see a group of boys ogling and passing obscene comments on two foreigner girls. Seriously there has to be done something about it. It is happening all too often and the audacity of these people is scaling new proportions day by day.&lt;br /&gt;I find these men and boys very weak from inside that is the reason they want to show there manly side by resorting to such petty things. It would rather do there future some good if they could spend this time on some constructive endeavors. I always believe that harassing a female or abusing her body is the worst sin that anyone could commit but the same is being committed with such impunity that it has become a norm rather than an exception. If a stand is not taken against these crimes then GOD save Indian women.&lt;br /&gt;All the talk about our culture is sheer nonsense and bullshit. In the garb of our cultural heritage all the wrong that could be committed against women is committed. How many of us realize and accept rape within marriage? These are  just some of the issues about which I am really concerned and would soon file a public interest litigation to do my bit. Till then if any of you feel the same as me, your comments are always welcome.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-8985739507028668300?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/8985739507028668300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=8985739507028668300' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/8985739507028668300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/8985739507028668300'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/03/most-indian-men-are-lechers.html' title='Most Indian Men Are Lechers'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-6532039862899132802</id><published>2008-01-05T00:13:00.000-08:00</published><updated>2008-01-05T00:30:25.246-08:00</updated><title type='text'>Installing Qt on linux</title><content type='html'>Download Qt's latest version from www.trolltech.com, I downloaded the source in tar.gz form and compiled it on my machine. It took 1+ hours (Intel 2.4 Ghz. 256Mb RAM running RedHat). It'll  jetset on latest machines.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Switch to the directory containing the source and type the following command: &lt;span style="color:#ff0000;"&gt;tar -zxvf &lt;downloaded-qt-file&gt;.tar.gz&lt;/span&gt;&lt;/li&gt;&lt;li&gt;It will create a directory with extracted contents and tar.gz removed. Change to this directory.&lt;/li&gt;&lt;li&gt;Type the following command: &lt;span style="color:#ff0000;"&gt;./configure&lt;/span&gt; This checks for the dependencies(i.e other softwares if any, required to install qt).&lt;/li&gt;&lt;li&gt;Then type: &lt;span style="color:#ff0000;"&gt;gmake&lt;/span&gt;. This compiles your qt source code.&lt;/li&gt;&lt;li&gt;Then type: &lt;span style="color:#ff0000;"&gt;gmake install&lt;/span&gt;. This installs qt on your machine.&lt;/li&gt;&lt;li&gt;Note that if you have qt installed on your machine already then to use  its latest version you have to set the path of your qt bin file, which you can do by typing the following commands:&lt;/li&gt;&lt;/ol&gt;&lt;span style="color:#ff0000;"&gt;PATH=&lt;path/to/qt&gt;/bin:$PATH&lt;br /&gt;export PATH &lt;/span&gt;&lt;br /&gt;For example on my machine after step 5 qt version 4.3.2 was installed in&lt;br /&gt;/usr/local/Trolltech/Qt. Thus I used the following command:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;PATH = /usr/local/Trolltech/Qt/bin:$PATH&lt;br /&gt;export PATH&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;You can also set the PATH variable in your .bash_profile file, but the above method saves you the hassles of editing the file. So take your pick and get on the Qt bandwagon. For any queries regarding installation on the linux box especially redhat contact me on this blog.&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-6532039862899132802?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/6532039862899132802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=6532039862899132802' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/6532039862899132802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/6532039862899132802'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2008/01/installing-qt-on-linux.html' title='Installing Qt on linux'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5755835785367240982.post-6523684356141063339</id><published>2007-12-30T01:15:00.000-08:00</published><updated>2007-12-30T01:44:57.518-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Kernel'/><title type='text'>Some Facts about Linux Source Code</title><content type='html'>Hi all, I have been fascinated by the Linux/Unix OS from the time I started to use them. The Linux OS gives another meaning to freedom and this is where it truly scores over big brother Microsoft. The source code is free, any user can play with it and use his/her creative faculties to get added functionalities.&lt;br /&gt;The Linux kernel is made up of 6 million lines of C code and takes up 230MB of disk space. Written in a book form it would atleast take up 50,000 pages. The code is not commented and thus trying to understand it, is the challenge and beauty of working on the Linux kernel. The major part of the kernel are the ones implementing memory management.&lt;br /&gt;These are very few snippets that I found when consulting various books. I would be updating the information about the linux kernel and Linux Os in general. Till then Keep blogging.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5755835785367240982-6523684356141063339?l=gauravparihar82.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gauravparihar82.blogspot.com/feeds/6523684356141063339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5755835785367240982&amp;postID=6523684356141063339' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/6523684356141063339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5755835785367240982/posts/default/6523684356141063339'/><link rel='alternate' type='text/html' href='http://gauravparihar82.blogspot.com/2007/12/some-facts-about-linux-source-code.html' title='Some Facts about Linux Source Code'/><author><name>Mandelbrot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
