CSS for input field depending on input field type

How to, Tips and Tricks, Tutorials
If you need to do separate styling for input types (file, text, submit, reset and button) but does not want to use the conventional methods of applying different classes for every type. CSS 3 offers a very convenient method [css]input[type="text"] { background-color: #FFFF00; border: solid 1px; } input[type="button"],input[type="submit"] { background-color: #336600; color: #FFFFFF; }[/css] and use it with your forms without adding any classes etc. [code lang="xml"] <form id="form1" method="post"> <input id="textfield" name="textfield" type="text" /> <input id="button" name="button" type="submit" value="Submit" /> </form> [/code] Take a look at the screenshot of the example page :)
Read More

Ubuntu: Setting default gateway / ip etc

How to, Linux, Resources, Tips and Tricks, Tutorials, Ubuntu
If you want to specify a default gateway or ip address for your Ubuntu installation, try the following steps. Open SSH and type this command [code lang="plain"]sudo nano /etc/network/interfaces[/code] You can edit everything there as shown in the screenshot below (click to enlarge) [code lang="plain"] auto eth0 iface eth0 inet static address 192.168.1.231 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.77 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.1.253 192.168.1.226 dns-search nextbridge.org [/code]
Read More

Digsby Review

News, Resources, Reviews
I tried digsby after looking at a Yahoo Ad. It took me half an hour to download, install, run, test and decide to uninstall it. It is really very heavy, takes too many notification icons in the system tray and takes LOTS of resources. One of the things that I didn't like was that it shows me more details then I need, e.g. one of my acquaintances got a post on their WALL (in FaceBook), like I care? It does not function like the normal FaceBook. My experience was not too good so I dont recommend it to anyone. But if you are an enthusiast like me, go ahead and test drive it today :) Here are a couple of screenshots of Digsby
Read More

Using CPanel/WHM API to get detail list of all accounts

How to, Linux, Resources, Tips and Tricks, Tutorials, Ubuntu
Today I had this need to get a list of WHM Accounts using one of its APIs. I have never used it before but it was really simple to use. It returns an xml file that you can manipulate using your prefered language and store it in database for reporting etc. Here is what you need to do, connect to your server using SSH and run the following command [code lang="plain"]wget http://your-server-ip:2086/xml-api/listaccts --http-user=myuser --http-password=mypass --output-document=listaccts.xml[/code] Replace your-server-ip with your WHM's ip and myuser/mypass with the actual WHM/CPanel password. The resultant xml file will be saved as "listaccts.xml" in the same directory as you ran the command in. If you feel a bit insecure running these command over SSH then visit this page on your browser and save it as an…
Read More

Is Windows Live really stable?

News, Reviews, Thoughts
I just came up with this question today morning when I am not able to even check or see old mails in my Windows Live mail account. I had previously blogged about Windows Live policies on the number of email per hour and you know what? I cannot even get ANY email pass through that server to my hotmail live account even though my domain (and all its IPs) are not blacklisted. Check the screenshot that I have been redirected to since morning
Read More

Intall Apache, MySQL and PHP on Ubuntu 8.10

How to, Linux, OpenSource, Resources, Reviews, Tips and Tricks, Tutorials, Ubuntu
WARNING: Please use this method to install Apache, PHP and MySQL because its more suitable for most of your needs and has options to auto-upgrade your installation. The following method is obsolete and not recommended. After trying to install Apache, MySQL and PHP on Ubuntu 8.10 via several methods listed over the web. I opted for xampp package for linux. It is as easy as ABC Download the xampp linux package from their official website [code lang="plain"]wget http://nchc.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.7.tar.gz[/code] (I have selected NCHC, Taiwan as the mirror to download this package, you may try another) Extract the files [code lang="plain"]sudo tar xvfz xampp-linux-1.7.tar.gz -C /opt[/code] Chmod the files to have nobody ownership [code lang="plain"]sudo chown -R nobody:root /opt/lampp/[/code] Configure xampp security [code lang="plain"]sudo /opt/lampp/lampp security[/code] Start xampp with this command [code…
Read More

Download files from a http authenticated directory using wget

How to, Linux, OpenSource, Resources, Thoughts, Tips and Tricks, Tutorials, Ubuntu
I wanted to download something off a sub-domain using wget that I have password protected using .htaccess so the following command was NOT working [code lang="plain"]wget http://secure.asim.pk/myfiles.tar [/code] Luckily, we can pass two arguments to the same command and tell wget what the username and password is [code lang="plain"]wget http://secure.asim.pk/myfiles.tar --http-user=myuser --http-password=mypass [/code] Works Great!! If you are using Ubuntu 8.10, have not enabled root user and trying to download to a directory that has "nobody" or "root" as owner then try pre-pending it with sudo [code lang="plain"]sudo wget http://secure.asim.pk/myfiles.tar --http-user=myuser --http-password=mypass [/code]
Read More

How to Install Webmin in Ubuntu

How to, Linux, OpenSource, Resources, Reviews, Tips and Tricks, Tutorials, Ubuntu
From the little help that I can get over the internet, I found out that you need to install the following packages to prepare the system for Webmin installation. Run the following command over SSH or Ubuntu Desktop's terminal window (Applications -> Accessories -> Terminal). [code lang="plain"]sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl [/code] (Learn how to configure SSH on Ubuntu 8.10 if you want to have a remote access to your Ubuntu box). Download the latest version of Webmin by running the following command (visit webmin download section for newer versions) [code lang="plain"]wget http://ignum.dl.sourceforge.net/project/webadmin/webmin/1.500/webmin_1.500_all.deb [/code] Downloading Webmin After the package has been downloaded, run the following command to install it [code lang="plain"]sudo dpkg -i webmin_1.500_all.deb [/code] You should now be able to login to Webmin at…
Read More