phil's blog

Drupal Optimize CSS Files Creates Problem With 

Well, I managed to run into a nasty little problem with a Drupal theme that was all caused by the funky characters: 

The problem happened when enabling Drupals "Optimize CSS Files" which basically kept the optimized css file from rendering anything in my style.css file. After scratching my head for a while and trying to do some searches on "Drupal " which led me no where, I decided to to a generic Google search for "" which led me to this very helpful stack overflow page.

Brother Control Center Won't Open On Windows 7 Fix

If you run across this page, I didn't have time to document in detail how to install the control center... I'll try to get to it later. Hopefully you can deduce how to do it from the steps below. These steps "should" work for both the Brother Control Center 3 as well as the Brother Control Center 4 software suites.

Moving Drupal Modules To Contrib Causes Fatal Error

Moving Drupal modules around, is usually a pretty painless thing as long as you disable the module first. Some folks say that you need to uninstall the module before moving it, but I have found that 90% of the modules out there, don't mind being moved around as long as they are disabled first.

PHP date() date_create() strtotime() options

OK, so I linked to the following information on a Drupal help page, thinking the page would be available for at least the next 10 years... I was wrong. It's gone. Doing some digging though I was fortunately able to find the information again and decided this time to copy it and archive it for my own records in case the new location decides to vanish as well...

Unix Command Line Stuff Worth Remembering

Here you will find a list of different UNIX style commands that come in handy while operating a *NIX based operating system. I personally am not a big fan of command line stuff considering the advancements in technology make it completely dated, however others in the community will heavily disagree...

Since I have to do some UNIX / Linux type of stuff now and again, I have compiled a list of commands that I don't feel like remembering because I use them maybe once every six months.

Drupal Drush Slow

Drush for Drupal is an awesome command line tool that allows you to do all sorts of things from a command line interface.

I recently ran into a situation where Drush started running extremely slow for me for no apparent reason. Looking at the CPU usage through top, I noticed "php-cli" was running at 99% while trying to do something with Drush and it would take 10+ seconds for Drush to finish, and sometimes it wouldn't finish at all, forcing me to Ctrl+c.

How To Add A User Contact Form To Drupal Panels

I recently wanted the ability to add a node authors contact form, to a panel. If you don't know what Panels are, check them out. It's the future of Drupal IMHO and panels lets you lay out a website in row/column format, dragging and dropping just about any piece of information you want. It's beautiful.

Edit FastCGI Config For cPanel

I migrated hosts from a shared server package (managed by host) to a VPS package (managed by me) and ran into a http error 0 error on drupal... After about 2 hours of research, I ran across a wonderful blog post out on munkeyonline.co.uk with a handful of tips on how to possibly solve the error.

About halfway down the page is an area titled: "Check FastCGI config" which the author has a single line posted, fixing my issue: "add" MaxRequestLen 15728640 to conf file /etc/httpd/conf.d/fcgid.conf

If you are on a cPanel hosting package, you'll want to add the "FcgidMaxRequestLen" to your:

Force Enable Disabled Or Incompatible Addons In Firefox

There are several ways to forcefully enable disabled or "incompatible" addons in Firefox, but they ultimately do the same thing. I recently started having issues with the 32bit version of Firefox, stealing 1GB - 1.5GB of memory from my system if I had more than 3-4 tabs open. (I usually average about 8 - 15) Knowing the 32bit probably wasn't handling the memory right, I decided to try out the nightly x64 build to see if it would help my memory situation.