colors:
<select name="colors">
<option>White</option>
<option>Red</option>
<option selected>Green</option>
<option>Blue</option>
</select>
Thursday, December 30, 2010
Set a selected item for select tag in HTML, web design
In this example Green will be the selected item(pay attention to where the selected statement is placed) :
Wednesday, December 29, 2010
Configuration about PHP server, HOWTO
If you are wondering about the configuration of the PHP server you have, you can simply make a PHP file with following command :
and simply place the file in the localhost folder and browse it in an Internet Browser. You would simply have all the information you need. The result will be something like the picture down here(Take from Wiki)
<?php
phpinfo();
?>
and simply place the file in the localhost folder and browse it in an Internet Browser. You would simply have all the information you need. The result will be something like the picture down here(Take from Wiki)
Start X from shell, Ubuntu
First method, Use init script
sudo /etc/init.d/gdm start
sudo /etc/init.d/kdm start
Second method, type startx command :
startx
If nothing works, type xinit to star X server without KDE:
xinit
Now start kde with following :
startkde
sudo /etc/init.d/gdm start
sudo /etc/init.d/kdm start
Second method, type startx command :
startx
If nothing works, type xinit to star X server without KDE:
xinit
Now start kde with following :
startkde
Tuesday, December 28, 2010
add a user to Ubuntu from Shell/terminal
useradd -m -s /bin/bash userName
passwd userName
cd /home
ls -l
mkdir scheiber ----> if it already does not exist
chmod 0700 scheiber
chown -R scheiber:scheiber scheiber
passwd userName
cd /home
ls -l
mkdir scheiber ----> if it already does not exist
chmod 0700 scheiber
chown -R scheiber:scheiber scheiber
Switch between X login and shell, Ubuntu
Use the Ctrl-Alt-F1 shortcut keys to switch to the first console.
To switch back to Desktop mode, use the Ctrl-Alt-F7 shortcut keys.
To switch back to Desktop mode, use the Ctrl-Alt-F7 shortcut keys.
Monday, December 27, 2010
How to Group your Radio Buttons
First add your Radio Buttons to the panel and then select all radio buttons you want to group and set their buttonGroup property (choose the group name from the combo box).
How to add tabbed panel to Java Frame in Netbeans
Select tabbed pane, right click on it and then go to Add From Palette, and selecting another Panel(not tabbed panel again) from there to add another tab.
For renaming the tab righ click on it and choose Edit Text.
For renaming the tab righ click on it and choose Edit Text.
To change the tabs order you can simply right click on the panel and click on Change Order and then re-order the tabs order as you wish.
Saturday, December 25, 2010
AVG detects Chrome as a Trojan threat
The AVG 8.5 seems to have problem. Either update to AVG 9.0 or 2011 free versions (this error is mainly being observed in AVG 8.5) OR revert back virus definition of Avg to previous state.
Revert update to previous version :
Tools -> Advance setting -> Update
and use the Manage to revert ! After that try installing it !
Revert update to previous version :
Tools -> Advance setting -> Update
and use the Manage to revert ! After that try installing it !
Tuesday, December 14, 2010
Live Writer, a Multi weblog solution
You got several websites and you want to publish something with not much differences in all of them. Then Live Writer is the right tool for you. It lets you add different weblogs(from Wordpress, blogger, etc) and update them with couple of clicks. There are other solutions that can publish one post(exactly the same thing) on several weblogs, but they lack some WYSIWYG feature or they simply do not work with some of your weblogs(Wordpress in my case). I can recommend this MS tool for bloggers
Download Live Writer from here.
List of people available in one IRC chat channel
- List of people available in one IRC chat channel
/who
- Gives the real name of the given nickname/username
/who nickname
Subscribe to:
Posts (Atom)