Wateen sending stupid letters!!

Wateen has been sending some really stupid mails (yes, letters via normal mail). See the one attached that I received today in the afternoon, it was dispatched on 23rd Jan 2009. Click on it for larger preview

Wateen's stupid letters

I am a subscriber of Wateen WiMax since 24th Dec 2007, apart from the three months tenure (Aug-Nov 2008) when there were no coverage, I have been its active user.

After receiving and reading through the letter that is dated 21st Jan 2009 and dispatched on 23rd Jan 2009, I am pretty sure that the people at Wateen do not know how to operate things especially their billing, marketing and support departments.

CSS for input field depending on input field type

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

input[type="text"] {
   background-color: #FFFF00;
   border: solid 1px;

}
input[type="button"],input[type="submit"] {
   background-color: #336600;
   color: #FFFFFF;
}

and use it with your forms without adding any classes etc.

<form id="form1" method="post">
  <input id="textfield" name="textfield" type="text" />
  <input id="button" name="button" type="submit" value="Submit" />
</form>

Take a look at the screenshot of the example page 🙂

css3 input type style demo

TortoiseSVN 1.5.6.14908 bug on Windows Vista

Lately, I have been getting the following errors while running or attempting to run Tortoise SVN 1.5.6.14908 on my Windows Vista Business Edition.

TortoiseSVN error on Vista 01

TortoiseSVN error on Vista 02

So what I did was, download the latest Nightly Build from tortoise website and it solved the issue. Hope it helps somebody.

Ubuntu: Setting default gateway / ip etc

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

sudo nano /etc/network/interfaces

You can edit everything there as shown in the screenshot below (click to enlarge)

Ubuntu network interface

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

Digsby Review

digsby
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

digsby-buddy-list

digsby-facebook

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

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

wget http://your-server-ip:2086/xml-api/listaccts --http-user=myuser --http-password=mypass --output-document=listaccts.xml

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 xml file.

http://your-server-ip:2086/xml-api/listaccts

(again, substitute your-server-ip with the actual WHM ip address / FQDN)

Enjoy!