<?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>The Toothpick&#039;s Blog &#187; Website</title>
	<atom:link href="http://wordpress.thetoothpick.com/category/website/feed/" rel="self" type="application/rss+xml" />
	<link>http://wordpress.thetoothpick.com</link>
	<description>Kevin Arthur</description>
	<lastBuildDate>Sun, 08 Jun 2008 23:44:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Dynamic Website</title>
		<link>http://wordpress.thetoothpick.com/2007/dynamic-website/</link>
		<comments>http://wordpress.thetoothpick.com/2007/dynamic-website/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 01:04:35 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://wordpress.thetoothpick.com/2007/12/16/dynamic-website/</guid>
		<description><![CDATA[The way that I originally created my website was by creating a template in Dreamweaver, and creating a new page based on that template for each new web page.&#160; Dreamweaver automatically updates any page based on a template when that template is saved.&#160; Thus, every page had it&#8217;s own coded copy of the header, the ]]></description>
			<content:encoded><![CDATA[<p>The way that I originally created my <a href="http://thetoothpick.com" target="_blank">website</a> was by creating a template in Dreamweaver, and creating a new page based on that template for each new web page.&nbsp; Dreamweaver automatically updates any page based on a template when that template is saved.&nbsp; Thus, every page had it&#8217;s own coded copy of the header, the sidebar, and the footer.&nbsp; I figured out that all this does is create a lot of unnecessarily repeated code.&nbsp; So I decided to try something else.</p>
<p>I created a new sub-domain, <a href="http://dynamic.testing.thetoothpick.com/" target="_blank">dynamic.testing.thetoothpick.com</a>, and deleted everything on it.&nbsp; I created &#8220;index.php,&#8221; and started coding the layout.&nbsp; I wanted to do this entirely by coding (not using Dreamweaver&#8217;s layout feature), because it&#8217;s a lot easier to get it to do exactly what you want.&nbsp; I still used Dreamweaver (it&#8217;s got a pretty a pretty advanced coding setup), mainly because of the integrated FTP directory synchronization.&nbsp; Also, I decided to go with div tags instead of tables (they&#8217;re just easier to work with, although arguably harder to center).</p>
<p>I put in the first two div tags, for the header and the title, and then the div tag for the main part of the page.&nbsp; I created a div tag within this for the sidebar (I floated it on the left), then put in the div tag for the actual page content (I floated this on the right).&nbsp; I made a clearing div tag after this (still in the larger container), and closed the container tag. Then, I made the div tag for the footer.</p>
<p>In properties.css, I made a rule for the div tags in the main column, gave them a width of 740 (not sure why that number, it was the one my table layout used), made both margins &#8220;auto&#8221; (effectively centering the column on the page). I then made individual rules for each div tag (I used the main column rule as the class, and the individual rule as the id).&nbsp; I put things like background in each individual rule, and, in the rule for the clearing div, I cleared the floats on both sides.</p>
<p>Clearing the floats in the clearing div made it so that no matter how long the sidebar or main content is, the container would encompass both of them.&nbsp; However, if the main content was longer than the sidebar, there would be a gap between the end of the sidebar and the footer.&nbsp; So I made a image that was as wide as the sidebar, one pixel high, and the same color as the sidebar background, and made this the background of the main content div (as well as left aligning it and setting it to repeat on the y-axis).</p>
<p>Now for dynamically getting the page title/content.&nbsp; I made a directory called &#8220;pages,&#8221; and made .php files for each page.&nbsp; In the root folder, I made function.php, and in that a function that compared the <font face="Courier New">$page</font> variable passed to it (which was set in index.php to the value of <font face="Courier New">$_GET['p']</font>) to values stored in an array, which defined every page I had created, and returned true if it matched a value.&nbsp; I called this in another function, which would <font face="Courier New">include &#8220;/pages/$page.php&#8221;</font> if <font face="Courier New">$page</font> was a valid page.&nbsp; I also made another function, that returned the value of <font face="Courier New">$pages[$page]</font> (<font face="Courier New">$pages</font> is the array of defined pages), again, if <font face="Courier New">$page</font> was a valid page.&nbsp; I also made provisions for if the requested page&nbsp; <em>isn&#8217;t</em> defined.&nbsp; That way, I could set <font face="Courier New">$title</font> to <font face="Courier New">getTitle($page)</font>, <font face="Courier New">echo $title</font> in the title of document and underneath the page header, and simply call get(<font face="Courier New">$page</font>) in the main content area.&nbsp; I also included files for the sidebar and footer, so I could easily update them without changing the whole page.</p>
<p>I tested it out in IE, and it looked perfect (well, exactly like it had before).&nbsp; So I sent it to my friend.&nbsp; She mentioned a gap between two of the div tags (where they didn&#8217;t meet).&nbsp; That was when I realized I hadn&#8217;t tested it in Firefox (or Opera, for that matter, or Safari).&nbsp; I looked at the page in Firefox, and, sure enough, there was a pretty noticeable place where the div tags didn&#8217;t meet.&nbsp; In Opera, same thing, but a different place.&nbsp; I went into the CSS, and put borders around every div tag, just to see where one ended and the next began. I went back, and in both browsers, there were pretty big borders, but no gaps.&nbsp; So I tried putting borders around just the affected div tags, and the same thing happened.&nbsp; I made two new CSS files, one for Firefox, and one for Opera, made a border around the top and bottom of them, and changed the color to the color of the rest of the div tags (#006600), and put php if statements around the two statements importing them (if the browser was Firefox, import firefox.css, same for Opera).&nbsp; I asked my friend too look at it again, and she said it was fine.&nbsp; I checked in both Firefox and Opera, and it looked fine in both.</p>
<p>So, index.php is now 33 lines, as apposed to 120.&nbsp; And I only need one copy of every line.&nbsp; I can also link to other documents with /?p=sites, not /sites.php.</p>
<p>Oh, and by the way, the site described here is now what you see when you go to <a href="http://thetoothpick.com">http://thetoothpick.com</a>.</p>
<hr />
<p><small>&copy; Kevin for <a href="http://wordpress.thetoothpick.com">The Toothpick&#039;s Blog</a>, 2007. |
<a href="http://wordpress.thetoothpick.com/2007/dynamic-website/">Permalink</a> |
<a href="http://wordpress.thetoothpick.com/2007/dynamic-website/#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://wordpress.thetoothpick.com/2007/dynamic-website/&amp;title=Dynamic Website">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.thetoothpick.com/2007/dynamic-website/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>thetoothpick.com Design Update</title>
		<link>http://wordpress.thetoothpick.com/2007/thetoothpickcom-design-update/</link>
		<comments>http://wordpress.thetoothpick.com/2007/thetoothpickcom-design-update/#comments</comments>
		<pubDate>Sun, 09 Sep 2007 19:55:30 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://wordpress.thetoothpick.com/2007/09/09/thetoothpickcom-design-update/</guid>
		<description><![CDATA[Did I seriously neglect to post about my design overhaul? Oh well&#8230; &#160;I changed the layout of http://thetoothpick.com/ from the kind of blocky, straight thing it was to&#8230; well, kind of like a capsule.&#160; It&#8217;s easier to show: I&#8217;m going to experiment a bit with the header (I&#8217;ve given up trying to include the desert ]]></description>
			<content:encoded><![CDATA[<p>Did I seriously neglect to post about my design overhaul? Oh well&#8230;</p>
<p>&nbsp;I changed the layout of <a href="http://thetoothpick.com/">http://thetoothpick.com/</a> from the kind of blocky, straight thing it was to&#8230; well, kind of like a capsule.&nbsp; It&#8217;s easier to show:</p>
</p>
<div class="wlWriterSmartContent" id="0E22F29F-1D77-4799-8869-F298745B9709:980b4d7a-2390-43c1-9cb3-5c8a6a9f7154" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; width: 446px; padding-top: 0px"><img src="http://wordpress.thetoothpick.com/uploadedImages/thetoothpick.comDesignUpdate_A8E4/200709091218430997.jpg"></div>
</p>
<p>I&#8217;m going to experiment a bit with the header (I&#8217;ve given up trying to include the desert picture I had before).&nbsp; I&#8217;ve found an image editor for Linux that will let you create/modify images (including adding text), from the command line, and someone&#8217;s created a PHP extension for it.&nbsp; Now, all I&#8217;ve got to do is figure out how to install it on my server (I don&#8217;t own/control it).&nbsp; I guess I could just ask IX, but I&#8217;m not sure they&#8217;d do&nbsp;it. In all honesty, I&#8217;d prefer to host the website on my own computer, but that&#8217;s more or less out of the question (my SharePoint site is already unbelievably slow. I didn&#8217;t post about that either, did I? I&#8217;ll get to that later).</p>
<p>I&#8217;ll keep changing this from time to time, but it&#8217;s gonna look a lot like that for a while.&nbsp; My change log&#8217;s looking unused (yea, I&#8217;m keeping one.&nbsp; And I&#8217;ve managed to almost lost it twice&#8230;).&nbsp; If anyone&#8217;s got any suggestions, let me know.</p>
<hr />
<p><small>&copy; Kevin for <a href="http://wordpress.thetoothpick.com">The Toothpick&#039;s Blog</a>, 2007. |
<a href="http://wordpress.thetoothpick.com/2007/thetoothpickcom-design-update/">Permalink</a> |
<a href="http://wordpress.thetoothpick.com/2007/thetoothpickcom-design-update/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://wordpress.thetoothpick.com/2007/thetoothpickcom-design-update/&amp;title=thetoothpick.com Design Update">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.thetoothpick.com/2007/thetoothpickcom-design-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>School is out!</title>
		<link>http://wordpress.thetoothpick.com/2007/school-is-out/</link>
		<comments>http://wordpress.thetoothpick.com/2007/school-is-out/#comments</comments>
		<pubDate>Wed, 20 Jun 2007 17:25:05 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Running]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://wordpress.thetoothpick.com/2007/06/20/school-is-out/</guid>
		<description><![CDATA[It is. It doesn&#8217;t really feel like it though&#8230; Well, kinda does. But whatever.&#160; It is.&#160; Which is why I&#8217;ve started playing Rainbow Six Vegas.&#160; Dam that game&#8217;s fun&#8230; Fuck. I still haven&#8217;t gone back to Deviant Art yet.&#160; I&#8217;ve been kinda putting it off&#8230; cause there&#8217;s going to be so much to do. I&#8217;m ]]></description>
			<content:encoded><![CDATA[<p>It is. It doesn&#8217;t really feel like it though&#8230; Well, kinda does. But whatever.&nbsp; It is.&nbsp; Which is why I&#8217;ve started playing Rainbow Six Vegas.&nbsp; Dam that game&#8217;s fun&#8230;</p>
<p>Fuck. I still haven&#8217;t gone back to Deviant Art yet.&nbsp; I&#8217;ve been kinda putting it off&#8230; cause there&#8217;s going to be so much to do. I&#8217;m sure I&#8217;ve got tons of stuff to catch up on at WL, if the sarge hasn&#8217;t kicked me out yet =/.</p>
<p>Running. Started running again yesterday&#8230; Dam I&#8217;m out of shape&#8230; but it wasn&#8217;t as bad as it could have been,&nbsp;I guess.</p>
<p>Cub Scout Day Camp. Incredibly fun. I&#8217;m an assistant den chief, so I just sit down and watch the kids being dealt with by some other person who&#8217;s running a station or something. Owen (the den chief) just kinda leaves sometimes, so i&#8217;ve got to take care of them. 11:45-5&#8230; :(</p>
<p>&nbsp;I might start Drivers Ed at some point.&nbsp; Soon. I hope. :D.</p>
<p>Anyway, Oljato (scout camp) next week, then free time :D.&nbsp; Maybe I&#8217;ll work on my website a bit more (which, by the way, got a <a href="http://thetoothpick.com/">logo</a>), and explore Linux (I&#8217;ve got it installed on another machine, and whenever I try to run Firefox, it tells me I&#8217;m missing a library that is most defiantly there, with a link to it in multiple bin folders. -_-).&nbsp; I guess that&#8217;s all for now :D.</p>
<hr />
<p><small>&copy; Kevin for <a href="http://wordpress.thetoothpick.com">The Toothpick&#039;s Blog</a>, 2007. |
<a href="http://wordpress.thetoothpick.com/2007/school-is-out/">Permalink</a> |
<a href="http://wordpress.thetoothpick.com/2007/school-is-out/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://wordpress.thetoothpick.com/2007/school-is-out/&amp;title=School is out!">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.thetoothpick.com/2007/school-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TheToothpick.com Launches (with new error messages)</title>
		<link>http://wordpress.thetoothpick.com/2007/thetoothpickcom-launches-with-new-error-messages/</link>
		<comments>http://wordpress.thetoothpick.com/2007/thetoothpickcom-launches-with-new-error-messages/#comments</comments>
		<pubDate>Thu, 07 Jun 2007 06:32:00 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://wordpress.thetoothpick.com/2007/06/06/thetoothpickcom-launches-with-new-error-messages/</guid>
		<description><![CDATA[I&#8217;ve moved everything from my testing site to my main site. I&#8217;m basically done editing my page, so there&#8217;s no use keeping it on a testing directory. I&#8217;ll still use it as my testing site (I use Dreamweaver, which lets you upload things to a separate testing folder). Â  The error messages are&#8230; simple. But ]]></description>
			<content:encoded><![CDATA[</p>
<p>I&#8217;ve moved everything from my testing site to my main site. I&#8217;m basically done editing my page, so there&#8217;s no use keeping it on a testing directory. I&#8217;ll still use it as my testing site (I use Dreamweaver, which lets you upload things to a separate testing folder).</p>
<p>Â </p>
<p>The error messages are&#8230; simple. But less simple than before.</p>
<p>Â </p>
<div class="wlWriterSmartContent" id="605EEA63-B54B-4e6d-A290-F5E9E8229FC1:296dde3e-3fb9-47af-a39f-6177419dc8a8" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Source: <a href="http://thetoothpick.com/wow_error">http://thetoothpick.com/wow_error</a><br/><br/><img src="http://wordpress.thetoothpick.com/images/TheToothpick.comLaunches_139C7/6.6.2007.11.24.55PM.850.jpg"></div>
<p>Â </p>
<p>That&#8217;s about it for now&#8230;</p>
<hr />
<p><small>&copy; Kevin for <a href="http://wordpress.thetoothpick.com">The Toothpick&#039;s Blog</a>, 2007. |
<a href="http://wordpress.thetoothpick.com/2007/thetoothpickcom-launches-with-new-error-messages/">Permalink</a> |
<a href="http://wordpress.thetoothpick.com/2007/thetoothpickcom-launches-with-new-error-messages/#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://wordpress.thetoothpick.com/2007/thetoothpickcom-launches-with-new-error-messages/&amp;title=TheToothpick.com Launches (with new error messages)">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.thetoothpick.com/2007/thetoothpickcom-launches-with-new-error-messages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>sandbox.thetoothpick.com</title>
		<link>http://wordpress.thetoothpick.com/2007/sandboxthetoothpickcom/</link>
		<comments>http://wordpress.thetoothpick.com/2007/sandboxthetoothpickcom/#comments</comments>
		<pubDate>Thu, 07 Jun 2007 03:18:08 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://wordpress.thetoothpick.com/2007/06/06/sandboxthetoothpickcom/</guid>
		<description><![CDATA[By modding the CNAME values in the DNS record for thetoothpick.com, my sandbox site (which is still hosted on my desktop) is now accessible from http://sandbox.thetoothpick.com. which really serves no purpose whatsoever, except to bring it to my domain. Centralization, you know? &#169; Kevin for The Toothpick&#039;s Blog, 2007. &#124; Permalink &#124; No comment &#124; ]]></description>
			<content:encoded><![CDATA[<p>By modding the CNAME values in the DNS record for thetoothpick.com, my sandbox site (which is still hosted on my desktop) is now accessible from <a href="http://sandbox.thetoothpick.com">http://sandbox.thetoothpick.com</a>. which really serves no purpose whatsoever, except to bring it to my domain. Centralization, you know?</p>
<hr />
<p><small>&copy; Kevin for <a href="http://wordpress.thetoothpick.com">The Toothpick&#039;s Blog</a>, 2007. |
<a href="http://wordpress.thetoothpick.com/2007/sandboxthetoothpickcom/">Permalink</a> |
<a href="http://wordpress.thetoothpick.com/2007/sandboxthetoothpickcom/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://wordpress.thetoothpick.com/2007/sandboxthetoothpickcom/&amp;title=sandbox.thetoothpick.com">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.thetoothpick.com/2007/sandboxthetoothpickcom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
