Absolutely Tech

Icon

Yes!! Its absolutely tech…

[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);
}
?>

Read the rest of this entry »

Post to Twitter Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Reddit Post to StumbleUpon

[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 while to figure out how to restore the partition.
Read the rest of this entry »

Post to Twitter Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Reddit Post to StumbleUpon

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 use it again, but I didn’t want to logon to windows for doing that. I knew there had to be an alternative in Ubuntu (Geeks play guitar too :D ). Fortunately, I found two packages in repos which could work similar and better than guitar pro. Best of all, they are free.

To install them, type the following in terminal:

For tuxguitar:

$ sudo apt-get install tuxguitar

For kguitar (It is for Kubuntu/KDE users):

$ sudo apt-get install kguitar

I found tuxguitar to be more feature-rich and bug free. Try ‘em both to see what suits you.

Cheers!

Post to Twitter Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Reddit Post to StumbleUpon

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 ctype_alpha() does precisely the same thing. However, I still believe there should be a standard function having prefix ‘is_’ for alphabets too.

Cheers

Post to Twitter Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Reddit Post to StumbleUpon

[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 own username.

Restart your computer to check that the problem has been fixed.

Cheers!

Post to Twitter Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Reddit Post to StumbleUpon

Number Of People Who Visited This Blog

[ 38114 ]

Email subscription

Enter your email address: