PHP Hash (bcrypt) Passwords with Random Salt

We all know storing passwords in clear text in your database is rude. Yet, many do it because it makes a website easy for testing or password recovery. Programmers often don’t hash passwords because we are lazy. But, I’m developing a WordPress security product. So, I should make an effort to securely hash passwords. It’s just polite really. I know many of my users will set their password as Password1, but even so, I’d like to hash passwords.

Read On →

Portland Drupal Group Gets a little Awesome

Have you ever had a client ask for everything to be red? Or perhaps it was auto playing audio on every page load? Well, check these awesome sites out. Portland is a Drupal epicenter. The Drupal community comes together strongly in many places around the world and Portland’s Drupal User Group is no exception. Once a month we gather for conference quality presentations about all sorts of advanced Drupal topics. Last night our fantastic host, Jason, Yee (JYee) did something different.

Read On →

Remove category from WordPress URLs

The theme I use for this website creates a blog by using a separate category in WordPress for blog posts. Normally I prefer to use static pages for non-blog pages, and rely on posts for the blogging feature. This method is easy to set up and creates an easy to manage, less confusing installation. However, category-based blogging came built into the theme, and tearing it out would be a lot of wasted effort.

Read On →

Running PHP via Cron

Three very annoying things I never, ever want to forget (again) about running PHP via the command line using cron: Cron has strange paths so, include (‘./common.php’); will not work! You have to use (‘common.php’); If you have blank lines in your output file, check for blank lines before and after your PHP tags Remember to specify the full path to your script Tip: Remember to redirect error output 2>1& when using php via cron, and also don’t forget to append to your log file with >> operator.

Read On →

Top 10 WordPress Plugin Lists

Source: http://www.flickr.com/photos/littlejohncollection/ The popularity of WordPress makes it an amazing tool for making successful websites. However, WordPress does a terrible job at cleaning up their plugin and theme directory. So, finding good plugins is challenging. One of the most common services I do for my clients is select plugins. As an example, searching for SEO plugins brings up 30 pages of plugins or over 600 plugins! Fortunately, the plugin most people use, All-In-One SEO, is near the top.

Read On →

Ubuntu unable to mount windows share

I haven’t been able to get my Ubuntu laptop on Windows network for years. This is the best walk through I’ve found. Unfortunately, my apt-get is broken… so I couldn’t do apt-get install win-bind. But, one of the other steps solved the problem. smbtree returns: cli_start_connection: failed to connect to JANES (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL Walk through that hasn’t resolved the problem yet: http://ubuntuforums.org/showthread.php?t=1169149 sudo /etc/init.d/networking restart does not work in Ubuntu 10.04!

Read On →

Upgrading to 10.10 wasn't a perfect 10.

Upgrading Ubuntu has always been difficult. I put myself through the updater before doing a fresh install hoping I can either fix the problems or, at least, experience them before giving up and using a fresh install. One of my favorite Canonical bloggers asked why do people insist on fresh installs. Hopefully this post sheds some light on why upgrades still hurt. Most of my problems stem from the fact that I install programs on my system and change a few minor settings here and there.

Read On →

Who Does Google Think I Am?

Google keeps track of everything you search for and every website that you visit from Google. They also keep track of every website you visit that has Google Analytics on it. Yes, that’s pretty much every site on the Internet including, this one. Well, now you can check a link from Google and find out who Google thinks you are. They also let you give them free advertising data, or the chance to corrupt their data about you.

Read On →

WordPress Images Won't Align

WordPress relies on themes to allow users to align images and create captions. If your theme doesn’t support alignment or captions, you’ll find adding images to WordPress to be very frustrating. WordPress provides documentation to fix this problem, but it’s requires that you edit your theme’s CSS file: .aligncenter, div.aligncenter { display: block; margin-left: auto; margin-right: auto; } .alignleft { float: left; } .alignright { float: right; } Backup your Theme First Before you edit your WordPress theme, always make sure you have a backup because WordPress editor does not allow you to undo mistakes.

Read On →