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)
Month: January 2010
[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