Now, you can type directly in Devangari script on any text field on any website. Thanks to http://code.google.com/p/t13n/ Just drag the link below to your bookmarks bar: Drag this link to your bookmarks bar How to use After a webpage loads, just click on the bookmarklet to enable it. After enabling it, you can type… Continue reading Type in Devanagari in any field on any site
[HOW-TO] Converting case in MySQL
I had been wondering this for few days. I wanted a solution which could comvert first letter of text in some fields to uppercase and the rest to lower. I got time today and experimented a bit and found a very simple solution. CREATE TABLE temp_users ( fname VARCHAR( 50 ) NOT NULL email VARCHAR(… Continue reading [HOW-TO] Converting case in MySQL
[Solved] “Error saving media attachment.” error in WordPress
WordPress might give this error on uploading an image from media library. It means that wordpress isn’t able to save your file. It is really easy to fix. However, this may not work for all: Go to Settings->Media. Change the path in ‘Store uploads in this folder’ option to ‘wp-content/uploads’ (without the quotes). If this… Continue reading [Solved] “Error saving media attachment.” error in WordPress
[How-To] Use facebook chat with pidgin
Now that facebook supports XMPP protocol for its chat, any messenger which supports XMPP would be able to use facebook chat without much effort. Follow these steps to add your facebook chat to pidgin: Start the pidgin and press Ctrl+A to bring the Accounts dialog box. Click on Add. Select XMPP as protocol from the… Continue reading [How-To] Use facebook chat with pidgin
[How-To] Changing directory permissions from cPanel
This is not a difficult task but people often don’t know what directory permissions are. While we need not go into depth, just know 0755 is the recommended setting for all directories. For changing a directories permission from cPanel, follow the following steps: Login to your cPanel. Find File Manager and click on it. Select… Continue reading [How-To] Changing directory permissions from cPanel
[SOLVED] Flush(), ob_flush() not working in PHP (Disabling gzip through htaccess)
Flushing the output buffer doesn’t works in PHP sometimes no matter what you do. I had this code which would never work on my server but would perfectly fine on localhost. This was the code. <?php include(‘common.php’); ini_set(‘output_buffering’,’on’); ini_set(‘zlib.output_compression’, 0); //ini_set(‘implicit_flush’,1); ob_implicit_flush(); for($i=0;$i<10;$i++) { echo $i; echo str_repeat(” “, 500); ob_flush(); flush(); sleep(1); } ?>… Continue reading [SOLVED] Flush(), ob_flush() not working in PHP (Disabling gzip through htaccess)
[HOW-TO] Restore recovery partition on Asus 1005HA
A friend of mine who has Asus 1005HA deleted his recovery partition to free up disk-space. He didn’t knew what the consequences could be. He felt the need of recovery just few days after it and he realised that he couldn’t use the recovery mode anymore. He gave me his netbook. It took me a… Continue reading [HOW-TO] Restore recovery partition on Asus 1005HA
Guitar Pro alternative in Ubuntu
I am a big guitar freak. I play guitar all the time. A good friend for guitar learners is Guitar Pro on windows. Guitar pro is basically a tool which shows musical notations, plays them, show the notation on guitar tabs, change tempo etc. It helps beginners a lot. Today, I felt the need to… Continue reading Guitar Pro alternative in Ubuntu
Missing alphabet check (is_alpha) in PHP
Well, you might have seen a huge number of variable checks ranging from is_file(), is_array() to is_numeric() and is_int(). While developing a script today I wanted to check for alphabets. I directly used is_alpha() but to my surprise it wasn’t defined. I researched more into the matter and found ctypealpha() does precisely the same thing.… Continue reading Missing alphabet check (is_alpha) in PHP
[Solved] Unable to update .ICEauthority error on booting
I received this error after installing updates and restarting the computer. It was nothing but a file-permission issue. You can easily fix it. To solve it, type the follow these instructions: Go to Application menu->Accessories->Terminal or press Alt+F2 and type gnome-terminal and press enter. In terminal, type: sudo chown username:username .ICEauthority sudo chmod 0644 .ICEauthority Replace username with your… Continue reading [Solved] Unable to update .ICEauthority error on booting