Code Archives

Code snippets that make it from gisthub to here.

  1. gem install mysql – MySQL gem Not Installing

    I was getting some strange error tonight when installing ruby for my redmine install. At first phusion was reporting this error no such file to load — mysql (MissingSourceFile) So i figured I needed the mysql gem, well that returned an error too: # gem install mysql Building native extensions. This could take a while……

  2. Ubuntu + Webmin + Apache2 Errors

    Setting up a new server on MediaTemple (ve) tonight and I was getting some errors with webmin and Ubuntu 8. Apache2 was running fine but I couldn’t get webmin to start/stop the service. The error I was getting was: “Failed to start apache” “etc/lsb-base-logging.sh: line 22: /dev/console: Permission denied” … The solution was simple: When…

  3. How I use SVN:Externals in my Development Process

    SVN ( version control ) is one of the key ingredients in my development process, not because I work with other developers and version control is necessary but I need to keep things organized and in sync with other development environments ( e.g. my laptop ). In a future post I’ll explain the setup, since…

  4. Display a loading image until the page completes loading

    Similar to how GDGT.com has it’s loading.gif while the page completes this method will do something very similar. Right after the body I include the image inside a div: <div id="loading-image"> <img src="<?php bloginfo('template_url'); ?>/images/ajax-loader.gif" alt="Loading…" /> </div> Of course I’m using wordpress so you might need to include a different path for your ajax-loader.gif.…

  5. Replace or Remove the Carrington Theme Admin Panel

    One of the very first things I had to do to start using the Carrington Theme Framework was replace the admin menu with my own. For some reason, already ranted here in the forums, the core includes the admin panel. Remember, you shouldn’t hack away at  carrington-core/admin.php or any other core file ( if you…

  6. Short Post URLs

    I just noticed a trend recently ( maybe not too recent ) on how to make your WordPress Post URLs short for sharing, especially with Twitter’s character limit. I stumbled across Derek‘s post just the other day through a delicious share of Dean’s and since I’m working on a project with custom re-writes I thought…