Blaze Blog

Archive For: Projects

May19

Off On Vacation But Hire Me!

By Andy in News, Projects

Bucket and SpadeI’m off on a much needed vacation (my first for more than 3 years!). My current projects are drawing to a close in the coming week (announcements to come) and then I’ll be away until June 25th.

When I return my project plate will be almost entirely empty for the first time since I started freelancing.

Although that last statement is a little scary, it’s refreshing to know that I’ll have the opportunity to review some of the fantastic projects I have to turn down every week because my plate has been full.

Once I get back from vacation, I’ll be reviewing project specs and sending out proposals. If you need an extra pair of hands from the end of June, please take a look at my services and portfolio and see if you like what I do.

I’ll be checking in on my email while I’m away, so I’ll do my best to answer any urgent questions.

Take it easy, see you in June!

Jan29

Updating Durable to v0.2.3!

I’ve just finished yet another update to Durable. The theme is now fully compatible with Wordpress version 2.1.

With versions prior to 0.2.3 and Wordpress 2.1, problems arose with the links menu and category clouds. This was basically down to the deprecated category functions and back-end changes to the way categories work in Wordpress 2.1.

Anyway, all is fixed, I’d like to go into it more, but it’s late and I’m off to bed.

Anyone using Wordpress 2.1 or thinking about upgrading should definitely download this version. It’s backwards compatible with Wordpress versions lower than 2.1, you just won’t see any difference.

Download Durable v0.2.3

Update: Durable v0.2.5 has been released to address some unforseen errors in the menu.

Jan3

Minor Site Updates and a New Portfolio

Previously on this site I was using some javascript to detect your browser window size. If it was below 1024×768 then the left hand column would collapse and the site would shrink to fit in an 800×600 resolution.

Resolution Stats

I’ve decided to remove this and stick with a 1024 width for a couple of reasons. Firstly, I’ve been checking my logs, and less than 5% of visitors run a resolution smaller than 1024×768. It seems as though most people have decided to dump that aging monitor in the past couple of years. Even global numbers for people running 800×600 are only around 1.2 people out of every 10.

The second reason for sticking to 1024×768 and above is that it seems a lot of people who view this site are running widescreen displays. People with widescreen displays rarely maximize their windows so that they can utilize the extra width to show two windows side by side. So even if their resolution is high, their actual window size may be much smaller, which would give them the low resolution design still.

Sticking with 1024 seems to be the best solution for everyone. It makes me feel better knowing that everyone is seeing the full design as intended and not a simplified design because their browser window is sized too small.

Folio Screen

Finally, I’ve updated my portfolio page with some new work and greater detail. I can also now show my role on each project whether it be design, development or both. Go take a look when you get a chance!

Nov9

Changing Domains with a 301 Redirect

By Andy in Development, Projects

When I moved from my old “cssdev.com” domain to “blazenewmedia.com” I didn’t want to lose my search engine rankings, indexed pages, or bust old bookmarks. Here’s how I did it.

301

Firstly, my biggest problem was I used Wordpress for my old blog. This site runs on Textpattern (for now), so all my old post archive links from Wordpress don’t match the same format as the their Textpattern alternatives.

Here’s an example. When someone visits an article from my old site, they might hit up the following address:

http://www.cssdev.com/archives/2006/03/19/css-tweak/

Now, in Textpattern this same article can be found at a much simpler link:

http://www.blazenewmedia.com/articles/css-tweak/

So, how can I make my old Wordpress installation forward people to a new Textpattern formatted link, while still saving my search engine rankings, and ensuring the new page gets re-indexed in the same position?

301 Redirects to the Rescue

By sending a “301: Moved Permanently” header to the browser, it’s possible to tell anyone who visits my old Wordpress installation that the content has moved for good.

Not only that, search engine spiders will follow this redirect and re-index all of my pages in place of the old ones. This preserves search engine rankings and prevents people from seeing a whole bunch of dead links when they find my old site on Google.

To get this to work with Wordpress, all I had to do was place a few lines of PHP code into the “index.php’ file in the root of the site. This file is the hub that all Wordpress pages run through.

Here’s the PHP code I used to send a 301 redirect:

header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.blazenewmedia.com/blog/");
die;

That solved redirecting, but that didn’t solve my problem with incompatible URLs between Wordpress and Textpattern.

To fix this problem, I needed to grab the page that the user had requested, reformat it so that it matched Textpattern’s formatting, then forward them to the new link.

This was done with the following code:

/**
 * Get the requested page: eg /archives/2006/03/19/css-tweak/
 */
$requestedPage = $_SERVER['REQUEST_URI'];

/**
 * Split the requested page
 * into and array of sections
 * using the "/" as a splitter.
 */
$reqArray = explode("/", $requestedPage); 

/**
 * Check to see if the second, third
 * and fourth sections (starts at 0)
 * are numbers, if they are we can
 * assume these are dates.
 */
if( is_numeric($reqArray[1]) &&
    is_numeric($reqArray[2]) &&
    is_numeric($reqArray[3]) ) {

 /**
  * Send the correct 301 header.
  */
 header("HTTP/1.1 301 Moved Permanently");

 /**
  * Send them to the new textpattern
  * formatted URL. We know that the last
  * section of the URL is the same (/css-tweak/)
  * so we can append that to the end of the URL.
  */
 header("Location: http://www.blazenewmedia.com/articles/" . $reqArray[4]);
 die; // stop anything else from executing.
}

I’ve had the new site up for just over a week now. Google has already almost completely re-indexed my new site. The links to my old CssDev site are reducing by the day. Soon, all the old CssDev links will be completely converted over to Blaze. It works!

If you’re looking to change your domain, or move your site, 301’s are definitely the way to go. With a little PHP knowledge you can also handle redirecting old bookmarked links, even if the formatting has changed. For me, 301’s have worked flawlessly.

Oct31

Introducing Blaze New Media

By Andy in News, Projects

“What’s going on!” I hear you cry. Well, don’t worry, if you’re looking for CssDev, then you’re in the right place. Things have changed a little around here, “Blaze New Media” is the new name.

CssDev to Blaze New MediaAfter long consideration, and some lengthy site development, I’ve decided to put CssDev into early retirement. I say retirement, but really the only thing that has gone is the design and name. You can still find all of the old CssDev content in its rightful place, all bookmarks and back links will redirect to to the appropriate place on this site.

So why the change? Well, I came to the conclusion that it was silly to run the two sites separately when the content of both sites complimented each other so well.

All of the blog content of CssDev has been moved into the Blaze Blog section, then tagged and archived within the correct categories. Projects like the Durable Wordpress theme and CSS Tweak have been moved into their own dedicated projects section. Everything has fit together nicely.

On the more technical side of things, this site is running on the Textpattern Content Management System (CMS). I really love using CMS’ for sites that I create, I don’t think I’ll go back to creating pain static sites, ever. Using a CMS really cuts out the organizational mayhem you encounter when the number of pages and amount of content inevitably increases. I’ve actually been using Wordpress as a CMS for a couple of recent projects, I prefer its approach to content management. If time allows I’ll eventually transfer this site over to Wordpress.

As for the design, I’ve taken the minimalist approach, really because I want the content to speak for itself. If people are visiting here mainly to read something and get an idea of what I offer, I want to give them the best chance of doing that. No need to crowd people with intrusive design elements. I’m pleased with the final outcome, although the design is relatively simple, I think it still represents my style and approach.

Finally, welcome to Blaze New Media. I hope you enjoy the things you find as much as I’ve enjoyed creating them.