Login | Register

June 2005

Upgrades Complete

Jun/23/2005 08:03 PM

Yesterday marked the two year anniversary of Cameron's Thoughts. I have completed the site upgrades as planned as you can now see. If anyone has any comments or thoughts, please feel free to share them. This has been a huge project for me, and I have learned a lot about PHP, CSS, XHTML, and Movable Type. This has been a lot of fun, I still have many more ideas I plan to implement in the near future. This new design will make it very easy for me to expand upon what I already have.

Website Upgrade

Jun/17/2005 08:52 PM

Big news! On the 22nd, Cameron's Thoughts will hit the two year anniversary. I have been working on a site redesign to be released on that date. Amazing, I set a schedule on different parts of the upgrades needed to be completed by, and I actually followed it through. Today was the big day. Today was the next I set for the actual coding to be completed by. I think everything is all set. Over the weekend I will be doing final testing and working out any bugs. Then next week I will transition the new design over to the live server. I'm pretty excited about all this. This has been a huge project that I have been working on for a long time. I am happy for this to be coming to a completion. This will be a fresh clean and simple design. The underlying code is standards based and very accessible. It will be very easy for me to improve in the future also. All the underlying templates used for this site are completely modular and I can be used over for new additions and upgrades. Plus, a simple module change will affect all pages, no need to change endless numbers of templates for each minor change.
More details will follow, but, get ready for the 22nd.

New Car

Jun/14/2005 05:42 PM

I am now the owner of a 2005 Scion xA. I picked up the car on Saturday and am loving it. Best car I have ever owned. That's all for now :)

Sitemaps - Latest Update

Jun/06/2005 11:39 AM

I have updated my sitemap and the new one is now based on Niall Kennedy's template that he created. This template outputs the exact same sitemap I had setup before, but that one was using the sitemap generator and a config.xml file along with a urllist.txt file that was outputted using Movable Type. This new template just outputs the XML file straight from Movable Type. The template I created outputs the main index page, all individual archives and also monthly and category archive links in the sitemap.

Here is my latest template:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">

<url>
<loc><$MTBlogURL encode_xml="1"$></loc>
<changefreq>daily</changefreq>
<MTEntries lastn="1">
<lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
</MTEntries>
<priority>1.0</priority>
</url>

<MTArchiveList archive_type="Individual">
<url>
<loc><$MTArchiveLink encode_xml="1"$></loc>
<lastmod><$MTArchiveDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
<priority>0.8</priority>
</url>
</MTArchiveList>

<MTArchiveList archive_type="Category">
<url>
<loc><$MTArchiveLink encode_xml="1"$></loc>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
</MTArchiveList>

<MTArchiveList archive_type="Monthly">
<url>
<loc><$MTArchiveLink encode_xml="1"$></loc>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
</MTArchiveList>

</urlset>

To set this up on your own installation, simply copy the code into a new index template and set it to output as sitemap.xml or whateveryouwant.xml.

Easier Sitemaps with Movable Type

Jun/03/2005 01:39 PM

It seems that Niall Kennedy has also posted a way to setup Google Sitemaps on a Movable Type blog. His method is much simpler actually, though it doesn't currently have a way to do more than Indivudual pages. Maybe I will modify my way so it just uses that single XML file. When I first read the protocol specs, I thought that the XML files had to be gzipped, but I guess thats not a requirement. So, there is no real need to use Googles python script to zip the files up.

Google Sitemaps

Jun/03/2005 10:32 AM

I just seen that Google came out with a new Sitemap feature. This is kind of cool as it allows you to basically tell search engines what pages you have available instead of them just having to find them. So, I went ahead and setup a sitemap using the Python script they have made available. To do this, I simply downloaded the script, copied the sitemap_gen.py to a folder on my server. Then I created the following config.xml file and saved it in the same folder:

<?xml version="1.0" encoding="UTF-8"?>

<site
base_url="http://www.cbulock.com/"
store_into="/home/cbulock/public_html/sitemap.xml.gz"
verbose="1"
>

<urllist path="urllist.txt" encoding="UTF-8" />

</site>

What this does is looks for a urllist.txt file that contains all the URL's for the map. It then outputs a sitemap.xml.gz file that search engines (just Google currently) can use. To create the urllist.txt file, I created a new index template in Movable Type. The index template simply outputs the urllist.txt file to the same directoryas the sitemap_gen.py and config.xml. This template just outputs all the Individual, Monthly, and Category archive page links. I also placed a link to my main index page to. The Movable Type template looks like this:

http://www.cbulock.com/ changefreq=daily priority=1.0

<MTArchiveList archive_type="Individual">
<$MTArchiveLink encode_xml="1"$> lastmod=<$MTArchiveDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$> priority=0.8
</MTArchiveList>

<MTArchiveList archive_type="Category">
<$MTArchiveLink encode_xml="1"$> changefreq=weekly priority=0.7
</MTArchiveList>

<MTArchiveList archive_type="Monthly">
<$MTArchiveLink encode_xml="1"$> changefreq=monthly priority=0.5
</MTArchiveList>

The changefreq and priority attributes can be changed. All the details on how to use those can be found on the Sitemap Generator instruction page.

After you have the script uploaded, the config.xml file setup and the urllist.txt outputted by Movable Type, you can then run the script. This requires telnet or SSH access to your server. The commands are also listed on Googles instruction page. I have setup a cron job that runs the script once a day. And that's about all that's required to get this up and running.

There is still some more work on the template that I plan on doing. For instance, I have a number of pages that are generated by a seperate blog. I will need to add those to the map and also set it up to give the lastmod attribute to every page. I only spent about 20 minutes on the template so far. To see my latest updates to the template, here is the latest copy of the template that I am using.