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 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:

session_start();
include(“classes/Database.class.php”);
include(“classes/User.class.php”);

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

Change it to this:

include(“classes/Database.class.php”);
include(“classes/User.class.php”);
session_start();

… 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

C:\wamp\bin\apache\apache2.2.22\conf\extra

UTF-8/Unicode support in MySQL with Linux

Create a file if you don’t have it

/etc/mysql/conf.d/utf8.cnf

…add this:

[mysqld]
init_connect=’SET collation_connection = utf8_unicode_ci; SET NAMES utf8;’
default-character-set=utf8
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake

 

 

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:
http://blog.cihar.com/archives/2011/03/01/phpmyadmin-theme-survey-results

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 PHPMyAdmin.net:
http://www.phpmyadmin.net/home_page/themes.php

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!

© 2014 Mike Homme

Theme by Anders NorenUp ↑