Monthly Archives: December 2011

Disable virtual CD-ROM drive with built in software on Huawei and ZTE GSM modem devices

Huawei E220Like many of you out there I use mobile broadband as my Internet connection. What bugs me the most is that annoying virtual CD-ROM drive that pops out every time I put my stick in my USB connector. The idea is that average user has all of its modem drivers (of course Windows only) nearby. What's the use for that thing on our beloved Linux boxes? I know one. We can have fun disabling this annoyance once and for all. In this article I'll show you how to use your your Linux PC to disable virtual CD-ROM drive with built in software on Huawei and ZTE GSM modem devices.

Continue reading

Ambiance & Radiance themes from Ubuntu 10.10 Maverick on 10.04 Lucid Lynx

Ubuntu AmbianceI'm one of many people not satisfied with current Linux on desktop situation. I'm saying this with regards to Unity / Gnome3 story. Because of that I use Ubuntu 10.04 Lucid Lynx with Gnome 2 on all of my machines. But there is one thing I don't like on my Ubuntu 10.04 PC and that is default theme. In comparison with later Ubuntu version Ambiance and Radiance themes from Ubuntu 10.04 look unfinished. So lets fix this. In this article I'm bringing you Ambiance & Radiance themes deb packages from Ubuntu Maverick 10.10 backported to Ubuntu Lucid 10.04.

Continue reading

PHP function to get WordPress plugin version

Wordpress Logo BlueSo you're working on a WordPress plugin and you want to get current plugin version using PHP for display inside your plugin settings or on your plugin front end. Hardcoding the plugin version and changing it every release is no fun so in this article I'm bringing you my little PHP function I use with my Quick Chat for WordPress plugin to get current plugin version.

As always with WordPress development you need to be extra careful with your PHP and Javascript function names so you should prefix your every function with your plugin name. So here is PHP function you can use inside your plugin PHP file to get plugin version:

function plugin_name_get_version() {
    $plugin_data = get_plugin_data( __FILE__ );
    $plugin_version = $plugin_data['Version'];
    return $plugin_version;
}

Keep in mind that get_plugin_data() is available only on site backend. I guess it needs no additional explanation. Enjoy!