<?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>Nathan&#039;s Blog</title>
	<atom:link href="http://www.nathankowald.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nathankowald.com/blog</link>
	<description>Useful information, web programming and books</description>
	<lastBuildDate>Sun, 04 Jul 2010 19:07:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Phone Photos</title>
		<link>http://www.nathankowald.com/blog/2010/06/phone-photos/</link>
		<comments>http://www.nathankowald.com/blog/2010/06/phone-photos/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 23:04:42 +0000</pubDate>
		<dc:creator>Nathan Kowald</dc:creator>
				<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://www.nathankowald.com/blog/?p=102</guid>
		<description><![CDATA[By simply removing &#8216;$&#8217; signs from prices, people are less intimidated by them. In six days the iPhone 4 is released. In two days I&#8217;ve had my 3GS for a year. Since getting my 3GS I&#8217;ve updated my moblog never. Here&#8217;s a selection of photos from the past year that should have gone into my [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>By simply removing &#8216;$&#8217; signs from prices, people are less intimidated by them.</p>
<p>In six days the iPhone 4 is released. In two days I&#8217;ve had my 3GS for a year.<br />
Since getting my 3GS I&#8217;ve updated my <a title="Nathan's Moblog" href="http://www.nathankowald.com/moblog/">moblog</a> never.<br />
Here&#8217;s a selection of photos from the past year that should have gone into my moblog. Here we go.</p>
<div id="attachment_149" class="wp-caption alignnone" style="width: 747px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo23.png"><img class="size-large wp-image-149  " title="Kurt Vonnegut - Slaughterhouse Five" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo23-1024x768.png" alt="Kurt Vonnegut - Slaughterhouse Five" width="737" height="553" /></a><p class="wp-caption-text">He had a tremendous wang, incidentally. You never know who&#39;ll get one.</p></div>
<p>This paragraph made my day. It&#8217;s from the book &#8216;Slaughterhouse Five&#8217; by Kurt Vonnegut.<br />
Here&#8217;s an amusing anecdote about Kurt Vonnegut:</p>
<blockquote><p>In the mid 1950s, Vonnegut worked very briefly for Sports Illustrated magazine, where he was assigned to write a piece on a racehorse that had jumped a fence and attempted to run away. After staring at the blank piece of paper on his typewriter all morning, he typed, &#8220;The horse jumped over the fucking fence,&#8221; and left.</p></blockquote>
<div id="attachment_108" class="wp-caption alignnone" style="width: 330px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo16.png"><img title="ZOMG" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo16.png" alt="ZOMG" width="320" height="480" /></a><p class="wp-caption-text">I associate the word &#39;ZOMG&#39; with my friend Daniel</p></div>
<p>I associate the word &#8216;ZOMG&#8217; with my friend Daniel.<br />
Incidentally, &#8216;Words with Friends&#8217; is a great iPhone app.</p>
<div id="attachment_151" class="wp-caption alignnone" style="width: 747px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo181.png"><img class="size-large wp-image-151  " title="For the person who empties my bin, thank you!" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo181-1024x768.png" alt="For the person who empties my bin, thank you!" width="737" height="553" /></a><p class="wp-caption-text">For the person who empties my bin, thank you!</p></div>
<p>I left this note and Kinder chocolate for the cleaner of my work office. I meant it as a nice gesture. I worried later the cleaner might think I was being a dick. My bin is emptied nightly, it&#8217;s great.</p>
<p>The next morning I was relieved to find this response.</p>
<div id="attachment_152" class="wp-caption alignnone" style="width: 747px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo19.png"><img class="size-large wp-image-152  " title="Yes thank you" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo19-1024x768.png" alt="Yes thank you" width="737" height="553" /></a><p class="wp-caption-text">Yes thank you</p></div>
<div id="attachment_153" class="wp-caption alignnone" style="width: 747px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo17.png"><img class="size-large wp-image-153  " title="Fixie Shop, near Soho" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo17-1024x768.png" alt="Fixie Shop, near Soho" width="737" height="553" /></a><p class="wp-caption-text">Fixie Shop, near Soho</p></div>
<p>I took this photo for my friend Mark, though never sent it to him. It&#8217;s a fixed gear bicycle shop I walked past a while ago in Soho, London.<br />
Mark has done a fixed gear bicycle conversion himself. See his documented conversion on his blog: <a href="http://solirossi.wordpress.com/">http://solirossi.wordpress.com</a></p>
<div id="attachment_154" class="wp-caption alignnone" style="width: 747px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/IMG_0614.png"><img class="size-large wp-image-154  " title="Stork Nest Live from Dumbravioara, Romania, Europe" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/IMG_0614-1024x768.png" alt="Stork Nest Live from Dumbravioara, Romania, Europe" width="737" height="553" /></a><p class="wp-caption-text">Stork Nest Live from Dumbravioara, Romania, Europe</p></div>
<p>My friend Jason sent me a link to this Stork Nest webcam. I had it on my second monitor all day.<br />
Here&#8217;s the webcam: <a title="Stork Nest Webcam" href="http://www.justin.tv/milvus#r=D9MLLPE" target="_blank">http://www.justin.tv/milvus#r=D9MLLPE<br />
</a></p>
<div id="attachment_161" class="wp-caption alignnone" style="width: 563px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo1.png"><img class="size-large wp-image-161  " title="Have you seen me?" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo1-768x1024.png" alt="Have you seen me?" width="553" height="737" /></a><p class="wp-caption-text">Have you seen me?</p></div>
<p>The missing cat wrote the headline.</p>
<div id="attachment_155" class="wp-caption alignnone" style="width: 747px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo14.png"><img class="size-large wp-image-155  " title="Uterus" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo14-1024x768.png" alt="Uterus" width="737" height="553" /></a><p class="wp-caption-text">Uterus</p></div>
<p>This arrangement of cloths reminds me of a uterus.</p>
<div id="attachment_145" class="wp-caption alignnone" style="width: 460px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/tumblr_kzv2by1RRr1qaaut4o1_500.gif"><img class="size-full wp-image-145  " title="Animated Uterus" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/tumblr_kzv2by1RRr1qaaut4o1_500.gif" alt="Animated Uterus" width="450" height="338" /></a><p class="wp-caption-text">Animated Uterus</p></div>
<div id="attachment_156" class="wp-caption alignnone" style="width: 563px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo20.png"><img class="size-large wp-image-156  " title="Big-ass keys" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo20-768x1024.png" alt="Big-ass keys" width="553" height="737" /></a><p class="wp-caption-text">Big-ass keys</p></div>
<p>I found a keyboard with large keys in the bin at work. I salvaged the keys.</p>
<div id="attachment_157" class="wp-caption alignnone" style="width: 563px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo9.png"><img class="size-large wp-image-157  " title="Tooligan: well named" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo9-768x1024.png" alt="Tooligan: well named" width="553" height="737" /></a><p class="wp-caption-text">Tooligan: well named</p></div>
<p>Tooligan: well named matchbox car &#8211; seen in Sainsbury&#8217;s.</p>
<div id="attachment_158" class="wp-caption alignnone" style="width: 563px"><a href="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo6.png"><img class="size-large wp-image-158  " title="Sylvanian families" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/06/photo6-768x1024.png" alt="Sylvanian families" width="553" height="737" /></a><p class="wp-caption-text">Sylvanian families</p></div>
<p>My sister used to have a whole mess of these cute creatures.</p>
<h3>Recently Loved Web Articles  <a href="http://del.icio.us/rss/n8kowald/shared"><img class="noborder" title="Subscribe to my loved articles feed" src="http://www.nathankowald.com/images/feed-small.png" alt="" /></a></h3>
<ul class="lovedarticles">
<li><a href="http://www.zdnet.com.au/inside-australia-s-data-retention-proposal-339303862.htm">Inside Australia&#8217;s data retention proposal &#8211; Communications &#8211; News</a></li>
<li><a href="http://en.wikipedia.org/wiki/Kurt_Vonnegut#Self-assessment">Kurt Vonnegut &#8211; Wikipedia, the free encyclopedia</a> &#8211; <em>Kurt Vonnegut&#8217;s eight rules for writing a short story</em></li>
<li><a href="http://www.noblesoftwaresolutions.com/Tips_And_Tricks/Word/Easy_Horizontal_Line.htm">Horizontal Lines Made Easy in Word</a></li>
<li><a href="http://www.smashingmagazine.com/2010/06/15/spice-up-your-website-with-jquery-goodness/">Spicing Up Your Website With jQuery Goodness &#8211; Smashing Magazine</a></li>
<li><a href="http://farm5.static.flickr.com/4043/4606951165_9d5135f268_b.jpg">4606951165_9d5135f268_b.jpg (JPEG Image, 1024×723 pixels)</a></li>
<li><a href="http://www.buzzfeed.com/normallyodd/wtf-winnie-the-pooh-slightly-nsfw-tc/">WTF Winnie The Pooh [PIC]</a></li>
<li><a href="http://data.london.gov.uk/blog/boost-londons-software-developer-community-and-smes-tfl-lifts-all-restrictions-commercial-reuse">Boost for London&#8217;s Software Developer Community and SME&#8217;s as TfL lifts all restrictions on commercial reuse of its data | London DataStore</a></li>
<li><a href="http://millionwordyear.com/megaword2010/?p=3882">Opinion : Anatomy of the LILE « The Million Word Year</a> &#8211; <em>Great blog post.</em></li>
<li><a href="http://www.photographercat.com/">Cooper: Photographer Cat</a></li>
<li><a href="http://www.flickr.com/photos/36844288@N00/sets/72157624079183751/">Hidden posters of Notting Hill Gate Tube station, 2010 &#8211; a set on Flickr</a></li>
</ul>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.nathankowald.com/blog/2010/06/phone-photos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using SilverStripe CMS</title>
		<link>http://www.nathankowald.com/blog/2010/03/using-silverstripe-cms/</link>
		<comments>http://www.nathankowald.com/blog/2010/03/using-silverstripe-cms/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 15:09:18 +0000</pubDate>
		<dc:creator>Nathan Kowald</dc:creator>
				<category><![CDATA[cms]]></category>
		<category><![CDATA[silverstripe]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.nathankowald.com/blog/?p=10</guid>
		<description><![CDATA[I&#8217;ve just finished my first website using SilverStripe &#8211; a free Content Management System (CMS) built with PHP. I used Google a lot to find answers to questions I had; this post is a list of these questions and answers. My Server Environment Server: Windows Server 2003 R2 WAMP: The Uniform Server &#8211; (with the [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished my first website using <a href="http://www.silverstripe.org/">SilverStripe</a> &#8211; a free Content Management System (CMS) built with PHP.<br />
I used Google a lot to find answers to questions I had; this post is a list of these questions and answers.</p>
<p><a href="http://www.silverstripe.org/"><img class="alignnone size-medium wp-image-38" title="SilverStripe-Logo-with-words" src="http://www.nathankowald.com/blog/wp-content/uploads/2010/03/SilverStripe-Logo-with-words-for-printing-300x292.png" alt="SilverStripe-Logo-with-words" width="300" height="292" /></a></p>
<h2>My Server Environment</h2>
<p><strong>Server:</strong> Windows Server 2003 R2<br />
<strong>WAMP:</strong> <a href="http://www.uniformserver.com/">The Uniform Server</a> &#8211;  (with the latest Apache, MySQL, PHP)<br />
<strong>SilverStripe Version:</strong> 2.3.7</p>
<h2>Things I had to Google</h2>
<h3>Change the breadcrumb separator</h3>
<p>This arrow symbol (») is used as the default breadcrumb separator.<br />
You can change this by editing <tt>/sapphire/core/model/SiteTree.php</tt></p>
<p>Search <tt>SiteTree.php</tt> for the variable named <tt>$breadcrumbs_delimeter</tt>.<br />
Update the breadcrumb separator to what you want.</p>
<pre class="php">/**
* Delimit breadcrumb-links generated by BreadCrumbs()
*
* @var string
*/
public static $breadcrumbs_delimiter = " » ";
</pre>
<h3>editor.css stylesheet not being used in HTML editor</h3>
<p>I came across a bug where SilverStripe would not use my editor stylesheet in the HTML editor.<br />
This can by fixed by adding the following line to <tt>mysite/_config.php</tt></p>
<pre class="php">HtmlEditorConfig::get('cms')-&gt;setOption('content_css', 'cms/css/editor.css, mysite/css/editor.css');
</pre>
<p><em>Alter the third parameter of the setOption method to the path where your <tt>editor.css</tt> file is located.</em></p>
<h3>Targeting Mac Firefox</h3>
<p>The following code with some minor tweaks can be used to target any browser / OS.<br />
I&#8217;m adding it here to show how easy it is to create variables for use in your templates.</p>
<p>To add a variable that can be used in your templates edit <tt>/mysite/code/Page.php</tt></p>
<p>Add this function:</p>
<pre class="php">function isMacFF() {
    // Get the user agent
    $userAgent = $_SERVER['HTTP_USER_AGENT'];

    $browser  = "Firefox";
    $os = "Mac OS X";
    $version = ""; // You could add version or anything else you are looking for here

    // Check the string is in the user agent
    $browserTest = strpos($userAgent, $browser);
    $osTest = strpos($userAgent, $os);

    // If both conditions are true we know it is Firefox for Mac
    // Add more conditions if you are testing for anything else
    if ($browserTest == true &amp;&amp; $osTest == true)  {
        return TRUE;
    } else {
        return FALSE;
    }
}
</pre>
<p>Thanks to <a href="http://archivist.incutio.com/viewlist/css-discuss/86391">George Ornbo</a> for this OS/browser targeting PHP code.</p>
<p>In your main page template add this:</p>
<pre class="php">&lt;% if isMacFF %&gt;

&lt;% end_if %&gt;
</pre>
<p><em>Changing <tt>/themes/apprenticeshipsfirst/css/mac_ff.css</tt> to the path of your Mac+FF CSS file.</em></p>
<p>I would have used <tt>&lt;% require themedCSS(mac_ff) %&gt;</tt> to add the stylesheet but I found it adds the Mac+FF stylesheet regardless of the conditional statement.</p>
<h3>Creating a Dynamic Sitemap</h3>
<p>Creating a dynamic sitemap is simple with SilverStripe.<br />
Follow the instruction here: <a href="http://doc.silverstripe.org/doku.php?id=tutorial:site-map">http://doc.silverstripe.org/doku.php?id=tutorial:site-map</a></p>
<h3>Admin area breaks</h3>
<p>While using SilverStripe I ran into an error where duplicating a webform page resulted in the admin area breaking. When the error occured a JavaScript alert popped up informing me something went wrong.<br />
After this I was unable to get to the admin area.</p>
<p>To fix this:<br />
Put site into dev mode.<br />
You do this by <strong>adding</strong> the following line of code to <tt>/saphire/_config.php</tt> :</p>
<pre class="php">Director::set_environment_type("dev");
</pre>
<p>Comment out the line in the offending file &#8211; this is listed in the error message once the site is put into dev mode. In my case I commented out a line that throws an exception &#8211; in the <tt>Object.php</tt> file.</p>
<pre class="php">//throw new Exception("Object-&gt;__call(): the method '$method' does not exist on '$this-&gt;class'");
</pre>
<p>Now rebuild your SilverStripe database by visiting <tt>http://yoursite.com/dev/build</tt>.<br />
Don&#8217;t worry, this rebuild won&#8217;t delete any of your site&#8217;s content. After the rebuild visit your admin area which you should be able to get into again.<br />
Complete the action you were trying to do before you received the error then restore this line by removing your comment.</p>
<h3>404 page not being used</h3>
<p>In my SilverStripe installation a 404 page existed but when I typed in a URL that didn&#8217;t exist it would not use this 404 page.<br />
It instead showed a SilverStripe themed error page saying:</p>
<p><tt><strong>Website Error Not Found</strong><br />
The website server has not been able to respond to your request.</tt></p>
<p>After Googling the problem I found you have to publish this default 404 page before it will be used by SilverStripe.<br />
To publish, select your &#8216;Page Not Found&#8217; page and click &#8216;Save and Publish&#8217;.<br />
Do a site flush by adding <tt>?flush=all</tt> to the URL and it will now use this custom 404 page.</p>
<h3>Website not displayed using The Uniform Server</h3>
<p>I chose <a href="http://www.uniformserver.com/">The Uniform Server</a> as my all-in-one WAMP solution.<br />
I chose this because it installs with strict security settings enabled and can be used on a production server.<br />
When using it for the first time I ran into the problem where when I logged out of the Remote Desktop Connection for my production server it would stop serving my website.<br />
I found out The Uniform Server can be run as a standard program &#8211; running via logged in user &#8211; or it can be run as a service.<br />
When using this on a production server you want to run this as a service. To run as a service follow these directions: <a href="http://wiki.uniformserver.com/index.php/5.0-Nano:_Install_and_Run#Run_as_a_Service_.28Vista_and_W7.29">http://wiki.uniformserver.com/index.php/5.0-Nano:_Install_and_Run#Run_as_a_Service_.28Vista_and_W7.29</a></p>
<h2>Useful Links</h2>
<ul>
<li><a href="http://doc.silverstripe.org/doku.php?id=built-in-page-controls">http://doc.silverstripe.org/doku.php?id=built-in-page-controls</a></li>
<li><a href="http://doc.silverstripe.org/doku.php?id=installation-on-windows-wamp">http://doc.silverstripe.org/doku.php?id=installation-on-windows-wamp</a></li>
<li><a href="http://www.silverstripe.org/modules/">http://www.silverstripe.org/modules/</a> &#8211; hard to find on the website</li>
<li><a href="http://www.silverstripe.org/stable-download/">http://www.silverstripe.org/stable-download/</a></li>
</ul>
<h2>Conclusion</h2>
<p>SilverStripe is easy to install, use and extend.<br />
SilverStripe comes with all the features I was looking for:</p>
<ul>
<li>Intuitive content editing</li>
<li>Search engine friendly URLs (&#8216;this-page&#8217; format)</li>
<li>User Management</li>
<li>Runs on Windows Server 2003</li>
<li>Developed with PHP</li>
<li>Works with Apache, MySQL</li>
<li>Easy to use templating system</li>
</ul>
<p>The functionality it lacked I was able to add with a <a href="http://www.silverstripe.org/modules/">module</a>.</p>
<p>I&#8217;ve used Joomla and Drupal CMS in the past and found SilverStripe much easier and quicker to build a website with.<br />
SilverStripe templates are great, using normal HTML with custom tags.<br />
The editing interface is simple and easy to use. The admin interface is more intuitive than any other CMS I&#8217;ve used.</p>
<p>I recommend SilverStripe to anyone looking for a good, free CMS.</p>
<p>Thanks to <a href="http://www.schaefer.id.au/">Reece</a> for getting me onto SilverStripe.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.nathankowald.com/blog/2010/03/using-silverstripe-cms/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
