| Subcribe via RSS

New Look

June 21st, 2008 | No Comments | Tagged as: , ,

I guess the original look for WhistlinDixie didn’t last long; two weeks by my count. I didn’t stray far in finding my new theme, though.

My original theme was Big Blue from Blog Oh! Blog, which I found in the WordPress themes directory. While it wasn’t bad looking, it never really pleased me. In fact, I kind of considered it a placeholder until I could find a better one.

Since I exhausted the WordPress themes directory, I decided to see if Blog Oh! Blog had any other free WordPress themes. To my surprise, they come out with new themes quite often, many of which are free. While browsing through their catalog, I came across a theme called Statement. It immediately appealed to me, unlike anything I saw in the WordPress theme directory. I quickly downloaded and installed it.

I noticed that some of the widgets that I was using were part of the new theme, such as the search widget, the archives widget, and the syndicate widget, so I removed them from my sidebars. I also changed the category listings on the posts to tags listings and removed the tags listings from the ends of the posts.

I then noticed that the page logo was a graphic, not text. I looked at the description for the theme, and it mentioned that the original PSD for the default logo was included with the theme. Excited, I opened up Paint.NET and opened the logo.psd, only to find that Paint.NET choked on it. I checked to make sure that I had the PSD file handler extension installed, which I did, and that it was the newest version, which it was (released over a year ago). (I don’t think it makes sense to distribute a free theme that basically depends on a costly graphics editing program.) Bummed out, I went and got out my Photoshop CS2 disks to install the trial version so that I could get the site logo fixed up. Once I got PS installed, I opened up the file, only to find that I lacked the font that the logo originally used.

At this point, I noticed that the banner was on a solid background, without gradients. This would make it very easy to roll my own graphic without needing the original for anything except color references. I grabbed the GIF version of the logo and picked the background color out of it and started up a new Paint.NET image. I decided to use the Blue Highway font since it closely matched the font originally used in the logo. A little pixel pushing later and I had a new logo.

Hope you enjoy the new look. Hopefully, this one will last a little longer than the first one.

Move Complete

June 7th, 2008 | No Comments | Tagged as: , ,

About six months ago, I started becoming unhappy with Nucleus CMS, my blogging platform. First, it had no native support for tagging, which I prefer to categories. To get this functionality, I had to get a plugin, np_tags, and then manually integrate that plugin into my site’s skin. At first, this worked fine, except that you could not view the tag pages (to see all of the posts that had a specific tag). When the update to version 3.31 came out, I applied it and went on with my life. One day while I was looking at my site, I noticed that pretty much everything that did any navigation away from the from page was broken. It took me a whole evening to fix this issue, and I was still left with broken tags.

I finally decided that enough was enough and that I would switch to another blogging platform. My two primary options were Wordpress and Drupal. I knew that both of them could work due to their popularity and wide-spread use. My primary criterion then became ease-of-migration from Nucleus. After a little reading, I discovered that, to move my content into Drupal, I would not only be on my own, but also have to learn Drupal’s API since direct database manipulation is not supported and is known to break things. Since I wanted to do this conversion quickly, I opted to go with Wordpress.

I started out by getting a skin that I liked (Big Blue 0.1 by Bob) and installing some useful plugins. I then did a little tweaking to the plugins to get their widgets to mesh with the skin. Then the real work started.

Getting my data from Nucleus to Wordpress ended up being more difficult that I initially expected. Being a programmer, I have done database work before, so I knew SQL relatively well. I figured I would just need to write a few INSERTs and that would be it. I started by diagramming the relevant parts of each schema and figuring out how I would map one schema into the other. For the posts and comments tables, this was a straightforward transformation, requiring a single INSERT for each, as well as an UPDATE for the posts table. Then came the tags.

In np_tags, the tags for all of the posts are stored in the nucleus_plug_tag table. Instead of doing the sensible thing and putting a tag in each row and allowing a post to be referenced by multiple rows, each post had exactly one row in the table with its tags stored like /tag1/,/tag2/,/tag3/. This was a pain in the butt to break apart using only SQL. I ended up having to write a couple of stored procedures (in MySQL, where I have no experience, instead of T-SQL, where I have had some fun in the past) to break the tags into something manageable in SQL. I finally got all of my data migrated last night, two weeks after I started. (Note, I was not able to work on it last weekend since I went home for my brother’s high school graduation.)

It did not take me long to upload the new data to my blog so that I could look at it in all of it’s glory. I discovered rather quickly that Wordpress was doing some strange stuff to the contents of my posts. Whenever I post videos on the blog, I try to format the HTML so that I don’t have to scroll my text editor horizontally, typically leaving me with markup that looks something like:

<object
		width="400"
		height="315">
	<param
			name="video"
			value="something">
	</param>
	<embed
			width="400"
			height="315"
			video="something">
	</embed>
</object>

This was then transformed by Wordpress into:

<object<br />
		width="400"<br />
		height="315">
	<param<br />
			name="video"<br />
			value="something">
	</param>
	<embed <br />
			width="400"<br />
			height="315"<br />
			video="something">
	</embed>
</object>

which of course does not get rendered correctly by any browser. To fix this, I simply had to go and remove the line breaks from within the HTML tags and the problem was solved.

My next thing to fix was to redirect any requests for my RSS feed or the post pages to their new locations. The RSS feed was taken care of rather quickly using Apache’s mod_alias and RedirectPermanent. The posts were harder since I had to use Apache’s mod_rewrite. It took me about 45 minutes of fussing to get a rule that would work. The biggest problem that I ran into using mod_rewrite was how it acts differently between the http.conf file, where I am used to using it, and a .htaccess file, where I had to use it.

Today, I decided to host my feeds through FeedBurner so I can finally get some stats on my RSS feed. To do this, I used the FeedSmith plugin. After I set up my feeds with FeedBurner, I tried to view my RSS feed to make sure that it was being redirected to FeedBurner correctly. Sadly, this was not the case. While my comments feed was being redirected successfully, the same could not be said for my main feed. After trolling through the source for a bit, I gave up and just wrote a mod-alias redirect to redirect requests from the incorrectly functioning http://whistlindixie.us/feed/ URL to the correctly functioning http://whistlindixie.us/feed/rss2.

I also did a little source hacking this morning to tweak the calendar a bit to my liking (take up the full width of the column, attach a class to TDs with links in them) so that I can apply similar styles to it like I did with the calendar in my Nucleus blog. I am also going to work on the tag cloud to get it to display some different tags (right not it only displays the first so-many tags) and to get it to scale the font size properly.

So far, I am liking Wordpress, and I hope that by using Akismet and ReCaptcha that I won’t have to spend lots of time moderating my comments queue like Chris does. Let’s hope things keep going well.

Pictures, Finally!

October 3rd, 2007 | Comments Off | Tagged as:

I finally got off of my lazy butt and moved my photo galleries over to my new site. Well… sort of. Instead of moving the galleries to my site, I instead opted to put them on Flickr.

Flickr has allowed me to do all sorts of cool stuff, such as taging the photos for easier searching and also geo-tagging them (associating a photo with a geographical position). At the same time, I’ve also put up a ton of previously unpublished photos that I have taken since 2004.

Unfortunately, since I am not hosting my own photos, I cannot skin the gallery interface to match the look of WhistlinDixie. I guess that’s just the price that I have to pay for ease-of-use.

You can visit my photo gallery using the Photos tab at the top of the page.

The addition of photo galleries to this site also marks the end of any need for my old site, Solitary Confinement. This means that it is finally time to close its doors and have it redirect right to its new home, here.

R.I.P. Solitary Confinement (3 Feb 2005 – 3 Oct 2007)

The Links That Power The Web

May 12th, 2007 | Comments Off | Tagged as: , ,

Well, my links help anyway. Pop over to the Links page to see what I like. This list might expand over time. Also, I finally put together an about me page. It sucks, but, then again, that’s why I don’t write autobiographies for a living.

The gallery is slowly becoming a long-term project. I might start hacking away at it next weekend, but don’t expect something substantial for a while. I just got a little carried away with the schedule before.

Status Update

April 23rd, 2007 | Comments Off | Tagged as:

Finally got the tags to work. Only took an hour and a half of troubleshooting since the installation instructions were incorrect. Grr! Also, a little bonus, I got a calendar for easier browsing of the archives. Hacked it a bit to get the nifty tooltips to show up on the hover, but I think it turned out nicely. Hopefully, I’ll get the this links later this week and the gallery started this coming weekend.

Blog Merge Complete

April 21st, 2007 | Comments Off | Tagged as:

I have completed moving the material from the blog and news pages of Solitary Confinement over to WhistlinDixie. However, I have left comments turned off for all of these items since they were posted in the past. Also, due to the basic nature of my previous site, there were no comments to begin with, so these posts will stay comment-less for perpetuity.

You may also notice that the site looks very different (as well as acts very different) from when it first started up. This is because when I started, I was using a CMS called GeekLog. After about a day, I decided that I did not like it and I also discovered that it had a rather small community built around it, meaning not much support. After playing around a bit, I decided to go with an application called Nucleus CMS. It is simpler and tailored for what I need: a blog. Nucleus also has a large, active user community, meaning a plethora of skins and plugins are available for it, making it much more flexible.

Outstanding tasks:

  • I have noticed that clicking on a tag in the tag cloud does not seem to actually bring up a page that contains all of the items that have that tag, but rather all items on the blog. I’ll take a look into that another day.
  • I still have to populate my links page (some CSS hacking will take place first to get some pretty menus) and my about page.
  • Then, and only then, will I get to getting Gallery2 up and running and port over my image galleries.

WhistlinDixie.us Comes Online

April 16th, 2007 | 1 Comment | Tagged as: ,

WhistlinDixie.us is here at last. I had previously written the blog Solitary Confinement hosted through Kettering University, but, due to artificial limitations placed on the servers by the IT department, was unable to ever make it into anything more than just a plain old website. Since they refused to install any kind of server-side programming environment (J2EE, PHP, ASP, etc) or database (it would make our servers too vulnerable), I was forced to make a static site that emulated a blog, minus the comments or any real features. With WhistlinDixie, I hope to achieve what I started out for in the beginning: a full-featured blog that is under my control.

In the future, I will work on porting over the old content from Solitary Confinement. I will start with the about 120 posts that I created during the life of the site. After that, I hope to get Gallery2 working and then port over my image galleries one-by-one (need to be careful with bandwidth limits).

Lastly, I would like to thank Chris at badger4life.com for providing the space from his hosting account with LunarPages.

Smaller Downloads = Happier Users

December 29th, 2006 | Comments Off | Tagged as:

I just performed an initial move to a paginated view for the blog. Previously, all blog entries that I had ever written were on the same page, leading to a 240kb download. It got to the point where it seemed to kill Dreamweaver, so I was forced to fix it if I wanted to use Dreamweaver for spell checking. So, I now have split the blog among six pages, each having at the most 21 posts. I have added a rudimentary page browsing widget at the bottom of each blog page to help with navigation. Page 1 contains the oldest posts and page 6 the most recent. Feel free to email me if you think that this is counterintuitive or could be improved. Enjoy!

The Power of Validation

November 18th, 2006 | Comments Off | Tagged as: ,

You can now rest easy at night because by entire now validates against XHTML 1.0 Transitional. I had been a bad boy up until now, telling the browser that my page was valid, but in fact not being so. For instance, I was bad and didn’t give any of my images alt attributes so that screen readers could give meaning to the images. Also, I was bad and started ids with numbers instead of alpha characters (a-z and A-Z). Anyway, all of these problems are now fixed and each and every page is valid according to the W3C HTML Validator.

The Magical Dying Links

November 6th, 2005 | Comments Off | Tagged as: ,

I pity the fool who bookmarked anything on my site other than http://www.kettering.edu/~lieb3331/. Why, you ask? It is because I just renamed all of my pages to have the extension of html instead of the htm that I had been using. I did this because I was migrating the site to the Apache server that is running on my laptop and I didn’t feel like reconfiguring it so that it would default to loading htm pages. While I was doing this, I realized that in a recent site-wide change I had destroyed my photo galleries. They are now fixed, so you actually see pictures now and can navigate around in it.

Speaking of photo galleries, I recently ran across a really neat photo gallery application. I am going to try implementing it on my website to replace my rather boring format that I am using right now. If it ends up being to my liking, you’ll get a chance to see it. If you want to see the gallery in action, check out its maker’s photo gallery.