<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>An Engineering Diary &#187; Web Design</title>
	<atom:link href="http://asifhamza.com/tag/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://asifhamza.com</link>
	<description>Mis-adventures of a tinkerer</description>
	<lastBuildDate>Mon, 31 Jan 2011 16:26:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>A New look and a New host</title>
		<link>http://asifhamza.com/2009/04/a-new-look-and-a-new-host/</link>
		<comments>http://asifhamza.com/2009/04/a-new-look-and-a-new-host/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 21:28:00 +0000</pubDate>
		<dc:creator>AsifHamza</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://asifhamza.com/2009/03/a-new-look-and-a-new-host/</guid>
		<description><![CDATA[Last week I decided to make two radical changes to my blog. Create a new a new theme and in the process learn something about CSS and web design. Move my blog from the free wordpress.com hosting site and onto &#8230; <a href="http://asifhamza.com/2009/04/a-new-look-and-a-new-host/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last week I decided to make two radical changes to my blog.</p>
<ol>
<li>Create a new a new theme and in the process learn something about CSS and web design.</li>
<li>Move my blog from the free <a href="http://www.wordpress.com" target="_blank">wordpress.com</a> hosting site and onto a paid host and in the process learn something about website hosting.</li>
</ol>
<p>The result is the site you viewing now. Not too shabby for a first attempt. If I don’t say so myself.</p>
<h2>Web Design with CSS and XHTML</h2>
<p>I was getting a bit tired of the my current  theme at the time and thought the time was ripe for a bit of a change. But none of the free wordpress themes I found appealed to me. I wanted a theme that was easy on the eyes, had fluid columns and was widget ready. After trawling through hundreds of themes, I decided to try my hand at creating one myself. And the more I thought about it, the more excited I became. The prevailing wisdom on the web though, is that website design is not for amateurs. You need to consider SEO, readability, colours, and in some countries their are laws on accessibility as well. But nothing ventured, nothing gained.</p>
<p>First, I needed a good book.</p>
<p>I’ve always loved the <a href="http://headfirstlabs.com/" target="_blank">Head First series of books</a> with their fun and witty format. I tend to stick with books that tell story and have lots of colourful pictures. Luckily for me, they have a book on web design.</p>
<div class="wlWriterEditableSmartContent" style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px">
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td width="400" valign="top"><a title="Head First Web Design (A Brain Friendly Guide)" href="http://www.amazon.com/exec/obidos/ASIN/0596520301/assbl05-20"><img style="float:left" src="http://images.amazon.com/images/P/0596520301.01.MZZZZZZZ.jpg" border="0" alt="" align="left" />Head First Web Design (A Brain Friendly Guide)</a></p>
<p><strong>ISBN</strong>: 0596520301<br />
<strong>ISBN-13</strong>: 9780596520304</td>
</tr>
</tbody>
</table>
</div>
<p>Of course, even with a book that’s entertaining to read, I still get a little impatient try things out. So after  reading a first few chapters, I started sketching out a few designs. I settled on a three column design with a header across the page and a menu below that.</p>
<p>Once I had and idea of what I wanted, it was time to put the design into practice. That&#8217;s where the Head First book falls short. It discusses web<em> design</em> but it does teach you website <em>creation</em>. Head First has a <a href="http://www.amazon.com/exec/obidos/ASIN/059610197X/assbl05-20" target="_blank">different book</a> on that.</p>
<p>Luckily, a friend loaned me a book on CSS.</p>
<div class="wlWriterEditableSmartContent" style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px">
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td width="400" valign="top"><a title="Stylin' with CSS: A Designer's Guide (2nd Edition) (Voices That Matter)" href="http://www.amazon.com/exec/obidos/ASIN/0321525566/assbl05-20"><img style="float:left" src="http://images.amazon.com/images/P/0321525566.01.MZZZZZZZ.jpg" border="0" alt="" align="left" />Stylin&#8217; with CSS: A Designer&#8217;s Guide (2nd Edition) (Voices That Matter)</a></p>
<p><strong>ISBN</strong>: 0321525566<br />
<strong>ISBN-13</strong>: 9780321525567</td>
</tr>
</tbody>
</table>
</div>
<p>As with the previous book, I went through the first few chapters and learnt the basics of CSS. The syntax was easier and intuitive. But when it came to advanced layout techniques, it was a nightmare. Browser incompatibilities, box model, quirks mode -  I could not get the hang of it fast enough. But <a href="http://matthewjamestaylor.com/" target="_blank">Mathew James Taylor</a> does have the hang of it. He has <a href="http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks" target="_blank">tutorials</a> on how to create quirks mode free layouts in CSS. I tried to following one of them but there’s some serious dark magic in there. So I ended up using his <a href="http://matthewjamestaylor.com/blog/ultimate-3-column-holy-grail-pixels.htm" target="_blank">3 column liquid layout</a> instead.</p>
<p>Once the CSS was in place, it was just a matter of playing around with colours and tweaking things here and there, referring to the two books above where necessary, and <a href="http://max.limpag.com/2006/09/01/how-to-convert-any-web-template-into-a-wordpress-theme/" target="_blank">converting the final design to a wordpress theme</a>.</p>
<p>When I was satisfied I had a good enough design (for me at least) , I started looking for a place to host the site.</p>
<h2>Web Hosting with Servage</h2>
<p>You never quite realize how many web hosting companies are out there until you do a search for one. And each one of those companies have there fair share of horror stories. So the best way to find a reliable hosting site is probably word of mouth. A friend of mine was hosting his website for the past two years on <a href="http://www.servage.net/?coupon=cust68241" target="_blank">Servage</a> and had no issues. I decided to give them a try.</p>
<p><a href="http://www.servage.net/?coupon=cust68241" target="_blank"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" src="http://asifhamza.com/http://asifhamza.com/wp-content/uploads/2009/04/servagebanner.gif" border="0" alt="Servage Web Hosting" width="644" height="86" /></a></p>
<p>Servage offers the following</p>
<ul>
<li>750 GB of Space</li>
<li>7500 GB Monthly Data Transfer</li>
<li>Unlimited emails</li>
<li>Free domain or domain transfer</li>
<li>Unlimited domains</li>
<li>Autoinstaller for the most popular web scripts</li>
</ul>
<p>And many more features you can read about on their <a href="http://www.servage.net/?coupon=cust68241" target="_blank">website</a>.</p>
<p>Once I had my account, I used the one click autoinstaller feature to install wordpress and setup the mysql database. WordPress version 2.6.2 was installed so I used the wordpress update feature to update the installation to version 2.7.  Simple an easy!</p>
<p>Next, I exported my blog from the <a href="http://www.wordpress.com/" target="_blank">wordpress.com</a> site and imported into my <a href="http://asifhamza.com">http://asifhamza.com</a> site. All the content was now on a different server, but there were still a few issues that needed to be ironed out.</p>
<h3>The Case of the Missing Sidebars</h3>
<p>For some reason my sidebars were not visible on the new site. After some fruitless googling I finally figured out the problem. My custom wordpress theme had a file called SideBar.php which describes how to render widget ready sidebars. The sidebars where showing up when I tested on my windows vista laptop since Windows filenames are not case-sensitive. But my site was hosted on Linux where filenames are case-sensitive. The wordpress theme engine was looking for sidebar.php not SideBar.php. A quick file rename solved that problem.</p>
<h3>The Case of the Missing Images</h3>
<p>The second problem I found was that all the images were still linking back to the old site instead of the new even though they had been successfully imported. The old links were still embedded in the relevant posts. While I could have gone to each post and manually edit the urls, I used an <a href="http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/" target="_blank">Update Urls</a> from <a href="http://www.velvetblues.com" target="_blank">Velvet Blues</a>. 20 seconds later, the problems was solved.  As an added bonus, I found some helpful articles on blogging, wordpress and web design on their <a href="http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/" target="_blank">site</a>.</p>
<h3>The  Case of the Unco-operative Permalinks</h3>
<p>The final problem I encountered was that my permalinks were no longer working. From experience I know that this is usually caused by the apache mod_rewrite plug-in not being enabled on the web server. A quick search on the Servage’s wiki and I found out that mod_rewrite could be enabled by enabling .htaccess support. All links were working within the hour.</p>
<p>Now that everything is up and running, I think it looks pretty good. Not matter what anyone else says! I spent the next week signing up for <a href="http://www.google.com/analytics/" target="_blank">Google analytics</a> and <a href="http://www.google.com/webmasters/tools" target="_blank">Google webmaster tools</a> and looking for nice plug-ins. I also ending up with a better appreciation of the power of CSS. Its amazing what you can do with xml and a stylesheet and I don’t think I’ve even scratched the surface.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://asifhamza.com/2009/04/a-new-look-and-a-new-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

