Saturday, 30 August 2008

Mounting External Hard Drive in Ubuntu Linux


Try the following
Applications -> Accessories -> Terminal
sudo apt-get update
sudo apt-get install ntfs-3g
sudo mkdir /media/sdb1
sudo mount -t ntfs-3g /dev/sdb1 /media/sdb1
ls -la /media/sdb1



3D Desktop effects could not be enabled in Ububtu Linux


To resolve this problem, We should have aiglx. Try the following

sudo gedit /etc/X11/xorg.conf

We have to look down some till a entry like "ServerLayout" section and put in

Option "AIGLX" "true"

Then save your stuff and restart X by pressing ctrl+alt+backspace


How to Turn off Tool Tips of GNOME in Ubuntu Linux


Check out the following link.



http://geekybits.blogspot.com/2007/07/ubuntu-tip-turning-off-tooltips.html

How to Change Kubuntu Linux Theme


To change the actual theme kubuntu,we can use KDE Display Manager (KDM) , For that we need to install a package called kdmtheme. Once we have installed it, a new item in System Settings appears called KDM Theme Manager. We can now use it to install KDM themes.

We can download more themes from

www.KDE-Look.org


How to Change the Mount Point for CD ROM


We have to to edit /etc/fstab, which contains all the settings used to mount your devices including CD drives and floppy drives.
If we want the CD drive mounted on /mnt/cdrom, change the follwoing entry from

/dev/hdc /media/cdrom

to

/dev/hdc /mnt/cdrom


As an alternative to changing the mount point, you can use a symbolic link in order to get a desired path:

ln -s /media/cdrom /mnt/cdrom

C++ Tutorial with Good Examples



A Good web site to learn C++

http://www.functionx.com/cpp/



Running Ubuntu Linux without GUI


Remove all the entries in
/etc/X11/default-display-manager file.

Now, reboot your machine, it automatically boots without GUI(Without starting X server).
If you want to start the X server, just give

#gdm


Variable Declaration in C++


To declare a variable as a character, use the C++ keyword char followed by a valid C++ name. Here is an example:

char Gender;
With a byte variable declared like that, you can give the variable a starting value. Giving a value to a variable is referred to as initializing it. Initializing a variable is done with the = operator. The syntax used is:
VariableName = Value;
Since a char variable represents one symbol, to initialize it, enclose the initial value in single quotes. Here is an example:
char Answer = 'y';
You can also initialize a variable by including its value between parentheses as follows;

   char Answer('y');

What Happens When We Google




Saturday, 9 August 2008

How to change the size of a drop down menu


We can use CSS and the 'select' selector. i.e.:
<style type="text/css">
select {
height: 12px;
width: 100px;
max-height: 12px
}
</style>

(or)
<style type="text/css">
select {
font-family: Verdana, Arial, sans-serif;
font-size: 0.8em;
}
</style>

Different Type of Font Sizes are listed below

xx-small
x-small
small
medium
large
x-large
xx-large

The Default size is medium