Simple example of how PHP closures can be useful.

Shellshock or Bashbug Easy Fix

1. First, test to see if you’re vulnerable by running this command.

env X=”() { :;} ; echo busted” /bin/sh -c “echo completed”

If you see the word “busted”, you’re vulnerable.

If you see this:

bash: warning: x: ignoring function definition attempt
bash: error importing function definition for`x’

You’re not vulnerable.

2. The easy fix.

As root, issue the following command:

yum upgrade bash

You may need to confirm the upgrade, just type y and hit enter.

3. That’s it.

At this point, that’s all there is to it as far as I know. I’ll update if more information becomes available.

Add an existing user to existing group – Ubuntu Linux

usermod -a -G theGroup theUser

Installing Bugzilla on Ubuntu Linux

sudo apt-get install bugzilla3

Of course, change “3″ to which ever version you would like to install.

The script tried to execute a method or access a property of an incomplete object.

You’re getting the error “The script tried to execute a method or access a property of an incomplete object” after trying to access a property or method of an object you’ve stored in a $_SESSION variable in your PHP.

You’ve probably got some code that looks like this:

… trying to do something with the object, it’ll fail …

Change it to this:

… trying to do something with the object, it’ll work …

As you can see including your class definitions before you start the session (where your object is) is what makes this work.

So sure, makes total sense, PHP needs to know about your class definitions before you can access a session object that makes use of that class.

encodeURIComponent() and how it can help in your jQuery AJAX calls

I’ll refine this post to make it easier to read later but am publishing now, to get my thoughts out. Maybe it’ll help in this state.

For starters I’m working with PHP, MySQL, jQuery 1.5.1

When passing data from a jQueryUI dialog to a PHP script via AJAX (jQuery), which performs a very basic database transaction, either INSERT or UPDATE, and the POST’d data includes an amprasand, such as “I want to include this & that for fun”, everything after the “&” doesn’t make it into the record. Now you’re left with “I want to include this “, “& that for fun” doesn’t get inserted or added.

Obviously this is not what we want, right?

New Location for Adding Virtual Hosts in WAMP2.2


UTF-8/Unicode support in MySQL with Linux

Create a file if you don’t have it


…add this:

init_connect=’SET collation_connection = utf8_unicode_ci; SET NAMES utf8;’



PMAHomme – Wins phpMyAdmin 3.4 theme contest!

I’m excited to say that after two weeks of suspense, the “pmahomme” theme was selected as the winner of the phpMyAdmin Theme Contest. That means it will now be packaged as the official phpMyAdmin theme versions 3.4+.

I was also invited to join core development team to continue efforts on the theme (and maybe some HTML clean up here and there :) going forward.

Here are some of the results form the contest, if you’re interested:

Thanks to everyone all who voted. Look out for the latest version of phpMyAdmin coming soon!

A NEW phpMyAdmin theme for 2011

NOTE: I will not be updating the theme for versions of phpMyAdmin below 3.4 (the upcoming release). With the official release of PMA 3.4, pmahomme will be the new default theme.

phpMyAdmin has been on my list of must have applications for years. Sincerely I couldn’t go a day without it.

It’s a fantastic free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web.

As endearing as phpMyAdmin is, one of its features has bothered me for seven looong years… that is, the look and feel. The default theme is boring, old, and leaves much to the imagination. As a Web/UX developer, I couldn’t just live with it, right?!

With that, I’ve taken some time to give back to my beloved phpMyAdmin and created a theme that not only puts a positive spin on the user experience but provides a new, modern look and feel for one of the best open source applications of all time.

I’ll continue to update and fix browser bugs if folks begin to adopt this theme.

Please have a look and if you’re interested, you can:

Download pmaHomme v1.0 from

I hope you find it useful & tell your friends, enjoy!

© 2015 Mike Homme

Theme by Anders NorenUp ↑