Saturday, August 23, 2008

Checking size of a file or directory in Megabytes in Linux

Hi all,

just a small thing but if you want to find the size of a file or directory in Linux, use the following command:

root@gaurav$>du -H file/directory name

Replace the file/direcotry name 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

Hope that helped. 

Cheers!!!!!!!!!

Wednesday, August 6, 2008

LINUX CBT IPV6 rapidshare links

Hi all,

these are the rapidshare links for linux cbt IP Version 6.0

http://rapidshare.com/files/44521580/LinuxCBT_IPv6_Edition.nfo.html
http://rapidshare.com/files/44521686/LinuxCBT.IPv6.Edition.sfv.html
http://rapidshare.com/files/44527716/LinuxCBT.IPv6.Edition.rar.html
http://rapidshare.com/files/44548346/LinuxCBT.IPv6.Edition.r00.htm
http://rapidshare.com/files/44562437/LinuxCBT.IPv6.Edition.r01.html
http://rapidshare.com/files/44617742/LinuxCBT.IPv6.Edition.r02.html
http://rapidshare.com/files/44706825/LinuxCBT.IPv6.Edition.r03.html
http://rapidshare.com/files/44819836/LinuxCBT.IPv6.Edition.r04.html
http://rapidshare.com/files/44846543/LinuxCBT.IPv6.Edition.r05.html
http://rapidshare.com/files/44902016/LinuxCBT.IPv6.Edition.r06.html
http://rapidshare.com/files/44925386/LinuxCBT.IPv6.Edition.r07.html
http://rapidshare.com/files/44921393/LinuxCBT.IPv6.Edition.r08.html

RAPIDSHARE LINKS FOR LINUX CBT EL-5

HI all,
enjoy these links for linux cbt rhel 5

http://rapidshare.com/files/133941022/LinuxCBT_-_RHEL5.part01.rar
http://rapidshare.com/files/133945575/LinuxCBT_-_RHEL5.part02.rar
http://rapidshare.com/files/133949889/LinuxCBT_-_RHEL5.part03.rar
http://rapidshare.com/files/133954257/LinuxCBT_-_RHEL5.part04.rar
http://rapidshare.com/files/133822485/LinuxCBT_-_RHEL5.part05.rar
http://rapidshare.com/files/133828310/LinuxCBT_-_RHEL5.part06.rar
http://rapidshare.com/files/133834050/LinuxCBT_-_RHEL5.part07.rar
http://rapidshare.com/files/133839809/LinuxCBT_-_RHEL5.part08.rar
http://rapidshare.com/files/133845460/LinuxCBT_-_RHEL5.part09.rar
http://rapidshare.com/files/133851250/LinuxCBT_-_RHEL5.part10.rar
http://rapidshare.com/files/133856915/LinuxCBT_-_RHEL5.part11.rar
http://rapidshare.com/files/133862751/LinuxCBT_-_RHEL5.part12.rar
http://rapidshare.com/files/133868829/LinuxCBT_-_RHEL5.part13.rar
http://rapidshare.com/files/133875093/LinuxCBT_-_RHEL5.part14.rar
http://rapidshare.com/files/133881082/LinuxCBT_-_RHEL5.part15.rar
http://rapidshare.com/files/133887439/LinuxCBT_-_RHEL5.part16.rar
http://rapidshare.com/files/133893788/LinuxCBT_-_RHEL5.part17.rar
http://rapidshare.com/files/133900085/LinuxCBT_-_RHEL5.part18.rar
http://rapidshare.com/files/133906507/LinuxCBT_-_RHEL5.part19.rar
http://rapidshare.com/files/133912505/LinuxCBT_-_RHEL5.part20.rar
http://rapidshare.com/files/133918086/LinuxCBT_-_RHEL5.part21.rar
http://rapidshare.com/files/133923602/LinuxCBT_-_RHEL5.part22.rar
http://rapidshare.com/files/133929163/LinuxCBT_-_RHEL5.part23.rar
http://rapidshare.com/files/133934515/LinuxCBT_-_RHEL5.part24.rar
http://rapidshare.com/files/133936081/LinuxCBT_-_RHEL5.part25.rar

Password:  4U_bySettler

Rapidshare links for LINUX CBT FOR AWK AND SED

Hi all, these are the links for linux cbt for awk and sed

http://rapidshare.com/files/83930832/LinuxCBT.Awk-Sed.Edition.RIP-fJr.part1.rar
http://rapidshare.com/files/83930841/LinuxCBT.Awk-Sed.Edition.RIP-fJr.part2.rar
http://rapidshare.com/files/83930470/LinuxCBT.Awk-Sed.Edition.RIP-fJr.part3.rar

Password: Hello

Monday, July 7, 2008

Writing, compiling and executing a Qt program on Windows XP

Hi all,

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:
#include
#include

int main(int argc, char* argv[])
{
QApplication app(argc,argv);
QPushButton button;
button.setText("FIRST BUTTON");
button.show();
return app.exec();
}

Then execute the following standard commands one by one:
qmake -projects
qmake
make
This will create 3 make files namely Makefile, Makefile.Debug, Makefile.Release.
To create an executable: type the command: make -f Makefile.Release
This creates a release folder. The executable is in this release folder. Change to this folder and execute the exe.
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.
That's it you are on your way to bigger things in Qt

HAPPY PROGRAMMING
For any queries leave your comments and I will get back to you soon.

Cheers!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

MANDELBROT

INSTALLING QT ON WINDOWS XP

Hi all,

This is the trickiest installation I have done. The trick is to have the right information and it is that on a Windows machine only the commercial release 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, for Qt open source edition install a mingw compiler on your system. 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 (NOTE:-To check all the environment variables that are set on your machine, type the following command: set on a windows console.). This is done using "set" command from the console as follows
  1. set LIB=
  2. set INCLUDE=

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.
  1. Unzip the Qt folder to C: drive so you have a qt source folder in C:\
  2. 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 PATH=%PATH%;C:\Dev-Cpp\bin;C:\Dev-Cpp\lib. 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: set LIB=%LIB%C:\Dev-Cpp\lib;C:\qt-win-opensource-src-4.3.4\lib( I unzipped Qt folder to C:\ drive, if you choose some other path then change it accordingly). set INCLUDE=%INCLUDE%:C:\Dev-Cpp\include;C:\qt-win-opensource-src-4.3.4\include.
  3. Then switch to the qt folder i.e where you have unzipped the qt source folder. In my case it is C:\qt-win-opensource-src-4.3.4. From there type the command: configure -platform win32-g++ 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.
  4. When qt is configured run the following command to build qt for your system: mingw32-make. 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.
  5. Finally add Qt bin directory's path to your PATH variable as PATH=%PATH%;C:\qt-win-opensource-src-4.3.4\bin (in my case).

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.

Cheers!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thursday, March 27, 2008

Travel Advisory To India

HI ALL,

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.
  1. Never ever fall into a trap if some one tries desperately to befriend you.
  2. Stay clear of secluded spots.
  3. 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.
  4. 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.
  5. 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.
  6. 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).
  7. 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.
  8. 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.
  9. Do not try the street food because only Indian people have the digestive system to filter this stuff.
  10. 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.
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.
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.

Happy touring India