Add an existing user to existing group – Ubuntu Linux

usermod -a -G whateverTheGroup mikeTheUser

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 fine, PHP needs to know about your class definitions before you can access a session object that makes use of that class, makes sense to me, now.

It’s tripped me up a few times because a) I don’t do a ton of PHP programming, so I forget, and b) I’ve always understood that session_start() should be the first line of code in a script. However, the latter is not the case if you’re doing OOPHP and working with classes. I’ll need to run this by my mentors, who are very procedural in their PHP.

Am I missing something, anyone?

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!

Active Scripting enabled but Javascript still doesn’t seem to work on Windows 2008 Server Enterprise?

To Fix the Problem:

Start > Control Panel > Programs & Features > (now look to the left) you will see a link Turn Windows Features On or Off, click it!

You’ll see a new window titled Server Manager, now look to the right and click the Configure IE ESC, adjust your settings, meaning TURN IT OFF!

Refresh your browser, Javascript and/or AJAX functions can now get back to work. I’ll elaborate on my thoughts about this “feature” later, but for now, to quickly post an easier-to-find solution I’ll publish it now, hope this helps!

Send your RHEL FTP users to jail

I’m running Red Hat Enterprise Linux and assume you have nano installed; if not vi works or any other editor. Also using PuTTY to access my server from windows.

To jail folks up we’ve taken this approach which I think is pretty straight forward.

1. Open a terminal, type:

nano /etc/passwd

2. Make two changes:

  • Set the user’s home directory to whatever the home directory is for the website they work on:
  • Set their login shell to /sbin/nologin

Save it by Ctrl+x, then hit the “y” key, then enter/return to confirm.

To finalize the deal, you must add their username to /etc/vsftpd/chroot_list.

© 2014 Mike Homme

Theme by Anders NorenUp ↑