<?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>Tutorials for my future selves</title>
	<atom:link href="http://www.tonyhschu.ca/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tonyhschu.ca</link>
	<description>A reference for some of you and the rest of me</description>
	<lastBuildDate>Thu, 21 May 2009 06:25:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How this blog works &#8211; 200905 edition</title>
		<link>http://www.tonyhschu.ca/2009/05/20/how-this-blog-works/</link>
		<comments>http://www.tonyhschu.ca/2009/05/20/how-this-blog-works/#comments</comments>
		<pubDate>Thu, 21 May 2009 02:37:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tonyhschu.ca/?p=1</guid>
		<description><![CDATA[My name is Tony Hang Shing Chu. ... <strong>Disclaimer</strong> - this blog is essentially a reference for me, because my memory is so bad.  I need to remember and document every trick I try to pull in my design/programming work, else I will forget them all.  (Hence the name, "Tutorial for my future selves.")]]></description>
			<content:encoded><![CDATA[<p>This is a WordPress blog.  I have done so many sites in WordPress lately that it&#8217;s starting to be hard to keep track.  Maybe I should back track a bit &#8230;</p>
<div class="span-14 large">My name is Tony Hang Shing Chu.  I am a web designer.  As of this post (May 20th, 2009) I work at the <a href="http://www.ubc.ca">University of British Columbia</a>&#8217;s <a href="http://www.publicaffairs.ubc.ca/">Public Affairs office</a> as a web coordinator.  This is my (so called) professional blog, where I promise I will try to be a professional, and blog about respectable, work related things like web design &amp; programming &amp; volunteering &amp; stuff.</div>
<div class="span-8 last notice box"><strong>Disclaimer</strong> &#8211; this blog is essentially a reference for me, because my memory is so bad.  I need to remember and document every trick I try to pull in my design/programming work, else I will forget them all.  (Hence the name, &#8220;Tutorial for my future selves.&#8221;) Some of you may find some of this useful, but I make no guarantees about the fitness/applicability of anything I post here.  I&#8217;ll try to be helpful though, if ever any of you have questions for me.</div>
<div class="span-18 prepend-3 append-3 last business">
<h3>Getting down to business</h3>
<p>How does this blog work?  Right now it is a theme package that makes use of the <a href="http://www.blueprintcss.org">css framework from blueprintcss.org</a>.  I have left the site-wide css and the html structure as bare bone as wordpress would allow.  This was done in hopes that I can try to do the <a href="http://jasonsantamaria.com/articles/a-new-day/">&#8220;art directed&#8221; blog thing that Jason Santa Maria proposed</a>.  We&#8217;ll see how well I can follow through with this.</div>
<div  class="span-8">
<h3>Some WordPress trickery</h3>
<p>I am essentially making extensive use of custom fields.  I define some CSS rules as a custom field with the key &#8220;styles&#8221;.  The header.php script looks for this and attaches it if it is there.  CSS rules defined in the custom fields will override any default styles on the site.  I have a similar set up with javascript, leveraging <a href="http://jquery.com">JQuery</a>&#8217;s document-on-load functionality.</p>
<h3>Benefit of good defaults</h3>
<p><strong class="large">Why use blueprint &#038; jquery?</strong>  I am trying to get good defaults.  Blueprint (like other CSS frameworks) works out the kinks of cross-browser css design.  I can focus on creating the layout I want for each post.  Similarly, using jQuery establishes a common set of functionality I can leverage.  <em>With these defaults in place, I am free to override them to my heart&#8217;s content, while knowing I have something decent to fall back on.</em></p>
<p>I will try to explain this in more detail in a seperate post.
</p></div>
<div class="span-14 prepend-1 append-1 last">
<h3>When I said trickery, I am not kidding</h3>
<pre class="box">&lt;?php $styles = get_post_meta($post-&gt;ID, 'styles', true);
// Custom Field - http://codex.wordpress.org/Using_Custom_Fields ?&gt;
&lt;?php if($styles!=''): // If we actually got some javascript ?&gt;
&lt;style type="text/css" media="screen,projection"&gt;
&lt;?php echo $styles ?&gt;
&lt;/style&gt;
&lt;?php
endif; // End style custom script
?&gt;</pre>
</div>
<div class="span-12 prepend-6 append-6 last">
<p><strong class="large">Actually</strong>, I should really write a separate post to document all the trickery here.  I will leave my first post here for now.  I hope you enjoyed this &#8230; haha.</p>
<p>Tony</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.tonyhschu.ca/2009/05/20/how-this-blog-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
