Skip to main content

Posts

Showing posts from 2011

Capturing echo Output into a Variable in PHP

Hi Guys, This is cool stuff. Did you ever know that you can capture the echo output in your PHP code? Since the echo function is void (which means returns nothing) you might have thought that is not possible on this Earth right? I thought that too. But guess what, this as easy as 4 lines.. :O Code:    ob_start();    echo 'Hello World!';    $hello_str   = ob_get_contents();    ob_end_clean(); That will store your "Hello World!" string into the $hello_str variable without actually echoing it on the browser. Give it a try fellas! ;-) Cheers.

How to fix Eclipse Helios Crash on Fedora 15

Hi Techies, If you are a Eclipse user, I believe that you would have already faced to this issue by now. I got the same issue and found this great article . It actually worked for me. So why don't you go ahead and give it a try.... ;-) Link : http://www.korri.net/blog/2011/5/6-how-to-fix-eclipse-helios-crashes-on-fedora-15.html Happy Coding Guys..... :-)

BandLuxe Dongle is not Working on Fedora Linux?

Isn't your 3G USB Dongle/Modem is not working on Fedora Linux? Don't worry there is a simple solution for this. But remember BandLuxe is supported by Fedora 13 onwards. Issue is sometimes it can't identify the proper mode for your dongle. Your dongle has 2 interfaces. CD-ROM 3G Modem On a windows operating system these modes are switched easily with the shipped driver. Early days on Fedora 13 it perfectly identified my USB dongle as a 3G Modem. Right after I plugged in the device the NetworkManger Applet started showing the 3G network. For some reason this functionality isn't there now. The usb_modswitch  (for those who don't know about this. This is the tool that do the mode switch for your device. Apparently this works as the driver) is still there though, and all the configurations are seems to be ok. Somehow its not doing what its expected to do anymore. So I had to find a solution for this. Finally I've found one. The trick is done using sd