Wednesday, January 28, 2009

Trixbox IP address configuration

To configure the IP address of the trixbox you can use the following vi (UNIX) commands...
  • netconfig - configure IP
  • ifconfig - view IP

Monday, January 26, 2009

PHP MySql connection

If you're developing a PHP web page and you wanna pull some data from your MySql database you can use this code...

$link = mysql_connect("$db_host","$db_user","$db_password");
mysql_select_db($db_name,$link);
if (!$link){
die("MySQLError". mysql_error());
}

$db_host - your host
$db_user - your MySql username
$db_password - your MySql password
$db_name - your MySql database name

Making Windows XP boot faster

Steps:

1. Open notepad.exe, type "del c:\windows\prefetch\ntosboot-*.* /q" (without the quotes) & save as "ntosboot.bat" in c:\
2. From the Start menu, select "Run..." & type "gpedit.msc".
3. Double click "Windows Settings" under "Computer Configuration" and double click again on "Shutdown" in the right window.
4. In the new window, click "add", "Browse", locate your "ntosboot.bat" file & click "Open".
5. Click "OK", "Apply" & "OK" once again to exit.
6. From the Start menu, select "Run..." & type "devmgmt.msc".
7. Double click on "IDE ATA/ATAPI controllers"
8. Right click on "Primary IDE Channel" and select "Properties".
9. Select the "Advanced Settings" tab then on the device or 1 that doesn't have 'device type' greyed out select 'none' instead of 'autodetect' & click "OK".
10. Right click on "Secondary IDE channel", select "Properties" and repeat step 9.
11. Reboot your computer.

Creating hidden folder

Keep your folders hidden without settingt its attribute as hidden...
Steps:
  1. Create a new folder somewhere on your hard drive
  2. When you name it hold down "Alt" and press "0160" this will create an invisible space so it will apper as if it has no name.
  3. Then right click in and select "Properties" select the tab "Customize" and select "Change icon" scroll along and you should see a few blank spaces click on any one and click ok when you have saved the settings, the folder will be invisible to hide all your personal files.

Unattended Windows XP/2003 setup

An unattended Windows XP/2003 install can install all your software and settings along with Windows, and without you having to click a button or press a key,completely automated. Learn how over here:

http://unattended.msfn.org

Make your unattended setup now!

Speedup menus in Windows XP

Steps:
  1. Go to Start > Run > Regedt32
  2. Go to HKEY_CURRENT_USER\Control Panel\Desktop
  3. Locate the key called "MenuShowDelay" and it is probably set to 400.
  4. Change that value to 150.
  5. Reboot your computer.
  6. You should notice a slight increase in the speed of your menus

Show hidden files using DOS command

Simple and useful tip...
On the command prompt just type
dir /ah
if the list is too long u can use
dir /ah/p/w
hello there... can i ask?
do you know how to disable the window key and the ctrl+alt+delete keys using vb.Net?
can you teach me how....
i am friend of alex fernandez...
 i juz want to integrate it into my system...
tenx..
i'll visit your blogsite na lang ....