<?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>Kristian Lunde</title>
	<atom:link href="http://www.klunde.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.klunde.net</link>
	<description>www.klunde.net</description>
	<lastBuildDate>Wed, 01 Feb 2012 23:57:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Zend_View and base paths outside the application directory</title>
		<link>http://www.klunde.net/2012/02/01/zend_view-and-base-paths-outside-the-application-directory/</link>
		<comments>http://www.klunde.net/2012/02/01/zend_view-and-base-paths-outside-the-application-directory/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 23:57:01 +0000</pubDate>
		<dc:creator>Kristian Lunde</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.klunde.net/?p=571</guid>
		<description><![CDATA[I&#8217;ve recently been working on a Zend application (v1.11.11) that required several views directories and they had to be located outside the application directory. The documentation says that you can have as many view basePaths as you like, which sounds great. The only problem is that the Zend_Controller_Action_Helper_ViewRenderer checks that the alternative basePaths are located [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.klunde.net%2F2012%2F02%2F01%2Fzend_view-and-base-paths-outside-the-application-directory%2F" onclick="urchinTracker('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.klunde.net_2F2012_2F02_2F01_2Fzend_view-and-base-paths-outside-the-application-directory_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.klunde.net%2F2012%2F02%2F01%2Fzend_view-and-base-paths-outside-the-application-directory%2F&amp;source=kristianlunde&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve recently been working on a Zend application (v1.11.11) that required several views directories and they had to be located outside the application directory. The documentation says that you can have as many view basePaths as you like, which sounds great. The only problem is that the Zend_Controller_Action_Helper_ViewRenderer checks that the alternative basePaths are located within the default basePath (APPLICATION_PATH &#8220;/views/&#8221;). </p>
<p>The easiest way of resolving this is to add the full path to the directory like this:</p>
<p><code><br />
APPLICATION_PATH . '/views/../../themes/my-theme/';<br />
</code></p>
<p>The example below is from my Bootstrap file:<br />
<code><br />
protected function _initView() {<br />
  $view = new Zend_View();</p>
<p>  $view->setBasePath(APPLICATION_PATH . '/views/../../themes/my-theme/');<br />
  $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();<br />
  $viewRenderer->setView($view);<br />
  Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);<br />
  return $view;<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.klunde.net/2012/02/01/zend_view-and-base-paths-outside-the-application-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automated backups with Amazon S3</title>
		<link>http://www.klunde.net/2011/05/21/automated-backups-to-amazon-s3/</link>
		<comments>http://www.klunde.net/2011/05/21/automated-backups-to-amazon-s3/#comments</comments>
		<pubDate>Sat, 21 May 2011 21:04:20 +0000</pubDate>
		<dc:creator>Kristian Lunde</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Real Life]]></category>
		<category><![CDATA[amazonS3]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[jetS3t]]></category>

		<guid isPermaLink="false">http://www.klunde.net/?p=557</guid>
		<description><![CDATA[I recently decided that I my half hearted backups to an external drive wasn&#8217;t really good enough, so I started to look at alternatives. Note, this howto is for Mac and *nix system, if you need a windows version please try to google it. I tried Crash plan, considered a extended dropbox plan but none [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.klunde.net%2F2011%2F05%2F21%2Fautomated-backups-to-amazon-s3%2F" onclick="urchinTracker('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.klunde.net_2F2011_2F05_2F21_2Fautomated-backups-to-amazon-s3_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.klunde.net%2F2011%2F05%2F21%2Fautomated-backups-to-amazon-s3%2F&amp;source=kristianlunde&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently decided that I my half hearted backups to an external drive wasn&#8217;t really good enough, so I started to look at alternatives. </p>
<p>Note, this howto is for Mac and *nix system, if you need a windows version please try to <a href="http://www.google.no/search?q=automated+backup+to+amazon+s3+windows" onclick="urchinTracker('/outgoing/www.google.no/search?q=automated+backup+to+amazon+s3+windows&amp;referer=');">google it</a>. </p>
<p>I tried <a href="http://www.crashplan.com/" onclick="urchinTracker('/outgoing/www.crashplan.com/?referer=');">Crash plan</a>, considered a extended <a href="http://www.dropbox.com/" onclick="urchinTracker('/outgoing/www.dropbox.com/?referer=');">dropbox</a> plan but none of them seemed like the correct solution (still I love dropbox, its a great app). I ended up registering an Amazon S3 account. </p>
<p>After a quick google search I found this brilliant little blog post <a href="http://smv.unige.ch/members/risoldi/otherdocs/using-amazon-s3-for-personal-backups" onclick="urchinTracker('/outgoing/smv.unige.ch/members/risoldi/otherdocs/using-amazon-s3-for-personal-backups?referer=');">&#8220;Using Amazon S3 for personal backups&#8221;</a> which describe how to use <a href="http://jets3t.s3.amazonaws.com/downloads.html" onclick="urchinTracker('/outgoing/jets3t.s3.amazonaws.com/downloads.html?referer=');">jetS3t</a> to semi automate the synchronization of the iPhoto library on a Mac OSX. </p>
<p>I am not going to repeat the instructions found on the <a href="http://smv.unige.ch/members/risoldi/otherdocs/using-amazon-s3-for-personal-backups" onclick="urchinTracker('/outgoing/smv.unige.ch/members/risoldi/otherdocs/using-amazon-s3-for-personal-backups?referer=');">&#8220;Using Amazon S3 for personal backups&#8221;</a> blog post, I did however have to do a few minor tweaks to get it to work, I also extended the functionality slightly, to enable a fully automated backup solution. </p>
<p>JetS3t has had a few releases since the <a href="http://smv.unige.ch/members/risoldi/otherdocs/using-amazon-s3-for-personal-backups" onclick="urchinTracker('/outgoing/smv.unige.ch/members/risoldi/otherdocs/using-amazon-s3-for-personal-backups?referer=');">&#8220;Using Amazon S3 for personal backups&#8221;</a> article was written, I downloaded <a href="http://jets3t.s3.amazonaws.com/downloads.html" onclick="urchinTracker('/outgoing/jets3t.s3.amazonaws.com/downloads.html?referer=');">jets3t-0.8.1.zip</a>.  Adding the link of the jetS3t directory to the path in .profile didn&#8217;t work for me (I&#8217;m on Mac osX 10.6), so I added it to my .bash_profile file. You can find .bash_profile in /Users/<em>YOUR-USERNAME</em>/, you&#8217;ll have to replace <em>YOUR-USERNAME</em> with your proper username of course. Other than that I followed the examples in <a href="http://smv.unige.ch/members/risoldi/otherdocs/using-amazon-s3-for-personal-backups" onclick="urchinTracker('/outgoing/smv.unige.ch/members/risoldi/otherdocs/using-amazon-s3-for-personal-backups?referer=');">&#8220;Using Amazon S3 for personal backups&#8221;</a>.</p>
<p>Once that was in place and worked properly I started to add some custom scripts.</p>
<p>1. Create a scripts directory in your home directory<br />
2. Create a logs directory in the scripts directory</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">&nbsp;<span class="kw3">cd</span> </div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">mkdir</span> scripts</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">mkdir</span> scripts<span class="sy0">/</span>logs</div>
</li>
</ol>
</div>
<p>2. Navigate to your scripts directory and create a amazon-s3-backup.sh file. </p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">cd</span> scripts</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">touch</span> amazon-s3-backup.<span class="kw2">sh</span></div>
</li>
</ol>
</div>
<p>3. Use your favourite text editor  to add the following code to the script</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#Backup iPhoto</span></div>
</li>
<li class="li1">
<div class="de1">synchronize.<span class="kw2">sh</span> UP YOUR-IPHOTO-BUCKET <span class="sy0">/</span>Users<span class="sy0">/</span>YOUR-USERNAME<span class="sy0">/</span>Pictures<span class="sy0">/</span>iPhoto\ Library <span class="sy0">&gt;&gt;</span> logs<span class="sy0">/</span>amazon-s3-iphoto-backup.log</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#Backup Documents</span></div>
</li>
<li class="li1">
<div class="de1">synchronize.<span class="kw2">sh</span> UP YOUR-DOCUMENTS-BUCKET <span class="sy0">/</span>Users<span class="sy0">/</span>YOUR-USERNAME<span class="sy0">/</span>Documents <span class="sy0">&gt;&gt;</span> logs<span class="sy0">/</span>amazon-s3-document-backup.log</div>
</li>
</ol>
</div>
<p>Replace <em>YOUR-IPHOTO-BUCKET</em> with the amazon S3 bucket you want to use, and replace <em>YOUR-USERNAME</em> with your username on your mac or *nix system. We pipe the output from the sync process to files in the logs directory, one log file for the iphoto and one log file for the documents process.</p>
<p>4. Edit your crontab. The crontab is a file where you can add files that you want to automatically execute on a regular basis. </p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">crontab -e</div>
</li>
</ol>
</div>
<p>5. Add the script to your crontab, I&#8217;ve chosen to run it once a week at 20:00 every Sunday, which is expressed by (0 20 * * 0). </p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">&nbsp;<span class="nu0">0</span> <span class="nu0">20</span> <span class="sy0">*</span> &nbsp;<span class="sy0">*</span> <span class="nu0">0</span> <span class="sy0">/</span>Users<span class="sy0">/&lt;</span>em<span class="sy0">&gt;</span>YOUR-USERNAME<span class="sy0">&lt;/</span>em<span class="sy0">&gt;/</span>scripts<span class="sy0">/</span>amazon-s3-backup.<span class="kw2">sh</span></div>
</li>
</ol>
</div>
<p>6. Save your cronjob</p>
<p>There you go, now you&#8217;ll backup your iPhoto library and Documents every Sunday at 20:00 as long as your computer is turned on and online. You can of course tweak when and how often you want to sync to Amazon S3, you can read more about scheduling cron jobs at <a href="http://en.wikipedia.org/wiki/Cron" onclick="urchinTracker('/outgoing/en.wikipedia.org/wiki/Cron?referer=');">wikipedia</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.klunde.net/2011/05/21/automated-backups-to-amazon-s3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Review: PHP5 Social Networking</title>
		<link>http://www.klunde.net/2011/05/06/review-php5-social-networking/</link>
		<comments>http://www.klunde.net/2011/05/06/review-php5-social-networking/#comments</comments>
		<pubDate>Fri, 06 May 2011 20:34:51 +0000</pubDate>
		<dc:creator>Kristian Lunde</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.klunde.net/?p=551</guid>
		<description><![CDATA[Packt publishing contacted me couple of months back, asking me if I was interested in reviewing &#8220;PHP5 Social Networking&#8221; by Michael Peacock. The title intrigued me as I&#8217;ve built several social networking applications and I was interested in seeing Michaels approach to this. The first chapter starts by defining social networking, it looks at the [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.klunde.net%2F2011%2F05%2F06%2Freview-php5-social-networking%2F" onclick="urchinTracker('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.klunde.net_2F2011_2F05_2F06_2Freview-php5-social-networking_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.klunde.net%2F2011%2F05%2F06%2Freview-php5-social-networking%2F&amp;source=kristianlunde&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.packtpub.com/" onclick="urchinTracker('/outgoing/www.packtpub.com/?referer=');">Packt publishing</a> contacted me  couple of months back, asking me if I was interested in reviewing <a href="http://www.amazon.co.uk/PHP-Social-Networking-Michael-Peacock/dp/1849512388/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1304713910&#038;sr=8-1" onclick="urchinTracker('/outgoing/www.amazon.co.uk/PHP-Social-Networking-Michael-Peacock/dp/1849512388/ref=sr_1_1?ie=UTF8_038_s=books_038_qid=1304713910_038_sr=8-1&amp;referer=');">&#8220;PHP5 Social Networking&#8221;</a> by <a href="http://www.michaelpeacock.co.uk/" onclick="urchinTracker('/outgoing/www.michaelpeacock.co.uk/?referer=');">Michael Peacock</a>. The title intrigued me as I&#8217;ve built several social networking applications and I was interested in seeing Michaels approach to this. </p>
<p>The first chapter starts by defining social networking, it looks at the most known social networks out there. It also reviews available social network software out there such as <a href="http://www.elgg.org/" onclick="urchinTracker('/outgoing/www.elgg.org/?referer=');">Elgg</a>, <a href="http://drupal.org/" onclick="urchinTracker('/outgoing/drupal.org/?referer=');">drupal</a> and <a href="http://www.joomla.org/" onclick="urchinTracker('/outgoing/www.joomla.org/?referer=');">joomla</a>. The approach taken in this book is to roll out an own application from scratch with no base framework. The basics of this framework is described in chapter 2 and 3. </p>
<p>Chapter 4 to 10 deals with the core elements of social networks, such as friends, friend requests, statuses, streams, messaging and events. Each chapter describe how to the functionality should work, a detailed implementation plan is shown and ideas for further development is discussed.</p>
<p>Chapter 11 show the reader how the application easily can support an API, I really like that Michael chose to add this chapter as I think it is a crucial element to any social network that is going to go somewhere. </p>
<p>Maintenance, security and deployment is discussed  in chapter 12. I find this chapter a bit odd as it describe very basic steps to get the application up and running on the production server. I would have liked to see more about automated deployment in this chapter.</p>
<p>All social network sites need to get users and hopefully generate some revenue, this is the topic of chapter 13 which describe solutions and approaches to marketing, SEO techniques and monetization. </p>
<p>The last chapter is &#8220;Planning for growth&#8221; a very important chapter in my mind. It describes approaches for profiling of web applications, server scaling, redundancy and more. </p>
<p>It is a well written book with good examples and it describes the build of the application in detail so the user easily can follow and copy the examples. I would definitely recommend this book to novice developers as it is a good introduction to a lot of good programming practices. It can also be a decent book to read if you are an experienced developer that want to learn more about the core concepts of building a social network. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.klunde.net/2011/05/06/review-php5-social-networking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reviewing &#8220;PHP 5 Social Networking&#8221;</title>
		<link>http://www.klunde.net/2011/02/08/reviewing-php-5-social-networking/</link>
		<comments>http://www.klunde.net/2011/02/08/reviewing-php-5-social-networking/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 12:51:49 +0000</pubDate>
		<dc:creator>Kristian Lunde</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Real Life]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.klunde.net/?p=544</guid>
		<description><![CDATA[Packt Publishing has asked me to review Michael Peacocks &#8220;PHP 5 Social Networking&#8221; something I&#8217;ve happily agreed to do. I am expecting to receive the book soon and look forward to read it. Social networks and PHP is something I&#8217;ve worked quite a bit with and I am interested to see Michaels take on this [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.klunde.net%2F2011%2F02%2F08%2Freviewing-php-5-social-networking%2F" onclick="urchinTracker('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.klunde.net_2F2011_2F02_2F08_2Freviewing-php-5-social-networking_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.klunde.net%2F2011%2F02%2F08%2Freviewing-php-5-social-networking%2F&amp;source=kristianlunde&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.packtpub.com/" onclick="urchinTracker('/outgoing/www.packtpub.com/?referer=');">Packt Publishing</a> has asked me to review Michael Peacocks &#8220;<a href="https://www.packtpub.com/php-create-powerful-dynamic-social-networking-website/book" onclick="urchinTracker('/outgoing/www.packtpub.com/php-create-powerful-dynamic-social-networking-website/book?referer=');">PHP 5 Social Networking</a>&#8221; something I&#8217;ve happily agreed to do. I am expecting to receive the book soon and look forward to read it. Social networks and PHP is something I&#8217;ve worked quite a bit with and I am interested to see Michaels take on this topic.</p>
<p>I&#8217;ll be posting the review as soon as I&#8217;ve finished the book. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.klunde.net/2011/02/08/reviewing-php-5-social-networking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lunde Development &#8211; In Business</title>
		<link>http://www.klunde.net/2010/10/05/lunde-development-in-business/</link>
		<comments>http://www.klunde.net/2010/10/05/lunde-development-in-business/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 08:54:04 +0000</pubDate>
		<dc:creator>Kristian Lunde</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Real Life]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.klunde.net/?p=530</guid>
		<description><![CDATA[Say hi to Lunde Development. The 3rd of August 2010 was the first official day of my own company, Lunde Development. I had at that point already been working with the company ideas and proposals for a while and was able to hit the ground running with my first project already secured. Since then I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.klunde.net%2F2010%2F10%2F05%2Flunde-development-in-business%2F" onclick="urchinTracker('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.klunde.net_2F2010_2F10_2F05_2Flunde-development-in-business_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.klunde.net%2F2010%2F10%2F05%2Flunde-development-in-business%2F&amp;source=kristianlunde&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Say hi to Lunde Development.</p>
<p>The 3rd of August 2010 was the first official day of my own company, Lunde Development. I had at that point already been working with the company ideas and proposals for a while and was able to hit the ground running with my first project already secured. Since then I&#8217;ve had several cool clients such as <a href="http://www.hoverstate.com" onclick="urchinTracker('/outgoing/www.hoverstate.com?referer=');">hoverState</a> a high-end US based digital agency, the Newcastle based software company <a href="http://www.band-x.org" onclick="urchinTracker('/outgoing/www.band-x.org?referer=');">Band-X</a> and <a href="http://www.sharperecruitment.co.uk/" onclick="urchinTracker('/outgoing/www.sharperecruitment.co.uk/?referer=');">Sharpe Recruitment</a> a recruitment agency in Newcastle. You can read more about these projects on my <a href="http://www.kristianlunde.com/en/portfolio" onclick="urchinTracker('/outgoing/www.kristianlunde.com/en/portfolio?referer=');">portfolio page</a>.</p>
<p>The future looks bright for Lunde Development and I enjoy every second of running my own business, it is challenging, I learn so much and most important of all, it is fun. </p>
<p>Please check out <a href="http://www.kristianlunde.com" onclick="urchinTracker('/outgoing/www.kristianlunde.com?referer=');">http://www.kristianlunde.com</a>. </p>
<p>You know where to go if you need a new web site, a piece of software or consultancy <img src='http://www.klunde.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.klunde.net/2010/10/05/lunde-development-in-business/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zend_Input_Filter and the Alnum Validator</title>
		<link>http://www.klunde.net/2010/07/18/zend_input_filter-and-the-alnum-validator/</link>
		<comments>http://www.klunde.net/2010/07/18/zend_input_filter-and-the-alnum-validator/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 21:00:28 +0000</pubDate>
		<dc:creator>Kristian Lunde</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Zend]]></category>
		<category><![CDATA[Zend_Input_Filter]]></category>
		<category><![CDATA[Zend_Validate_Alnum]]></category>

		<guid isPermaLink="false">http://www.klunde.net/?p=518</guid>
		<description><![CDATA[The Zend_Input_Filter is a very useful tool when you need to validate and filter the input to your application. It allows you to both filter and validate the input without a lot of hassle. One of the cool features it has is that it allows you to add the validators you need and meta commands [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.klunde.net%2F2010%2F07%2F18%2Fzend_input_filter-and-the-alnum-validator%2F" onclick="urchinTracker('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.klunde.net_2F2010_2F07_2F18_2Fzend_input_filter-and-the-alnum-validator_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.klunde.net%2F2010%2F07%2F18%2Fzend_input_filter-and-the-alnum-validator%2F&amp;source=kristianlunde&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The <a href="http://framework.zend.com/manual/en/zend.filter.input.html" onclick="urchinTracker('/outgoing/framework.zend.com/manual/en/zend.filter.input.html?referer=');">Zend_Input_Filter</a> is a very useful tool when you need to validate and filter the input to your application. It allows you to both filter and validate the input without a lot of hassle. One of the cool features it has is that it allows you to add the validators you need and meta commands to each validator. For instance you can set an <a href="http://framework.zend.com/manual/en/zend.validate.set.html" onclick="urchinTracker('/outgoing/framework.zend.com/manual/en/zend.validate.set.html?referer=');">Alnum</a> validator to allow empty fields, set a default text and so on. </p>
<p>I came over this annoying issue the other day when I tried to setup the Alnum validator to allow white spaces and have a few meta commands attached to the validator chain. The <a href="http://framework.zend.com/manual/en/zend.filter.input.html" onclick="urchinTracker('/outgoing/framework.zend.com/manual/en/zend.filter.input.html?referer=');">manual</a> says that you can do this:</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1"><span class="re1">$validators</span> <span class="sy0">=</span> <span class="kw3">array</span><span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="st0">&#39;month&#39;</span> &nbsp; <span class="sy0">=&gt;</span> <span class="kw3">array</span><span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;Digits&#39;</span><span class="sy0">,</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1">// string</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">new</span> Zend_Validate_Int<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="co1">// object instance</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">array</span><span class="br0">&#40;</span><span class="st0">&#39;Between&#39;</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">12</span><span class="br0">&#41;</span> &nbsp;<span class="co1">// string with constructor arguments</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
</ol>
</div>
<p>Which I assumed would also work like this:</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1"><span class="re1">$validators</span> <span class="sy0">=</span> <span class="kw3">array</span><span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="st0">&#39;name&#39;</span> &nbsp; <span class="sy0">=&gt;</span> <span class="kw3">array</span><span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;Alnum&#39;</span><span class="sy0">,</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">new</span> Zend_Validate_Alnum<span class="br0">&#40;</span><span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="co1">//allow whitespaces</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&#39;default&#39;</span> <span class="sy0">=&gt;</span> <span class="st0">&#39;&#39;</span><span class="sy0">,</span> &nbsp;<span class="co1">//meta command 1</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&#39;presence&#39;</span> <span class="sy0">=&gt;</span> <span class="st0">&#39;required&#39;</span><span class="sy0">,</span> <span class="co1">//meta command 2</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
</ol>
</div>
<p>This does not work though. You need to remove the validator type string and replace it with an instance of the Zend_Validate_Alnum validator to get it to accept whitespaces and meta commands. This is the right way to do it:</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1"><span class="re1">$validators</span> <span class="sy0">=</span> <span class="kw3">array</span><span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="st0">&#39;name&#39;</span> &nbsp; <span class="sy0">=&gt;</span> <span class="kw3">array</span><span class="br0">&#40;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">new</span> Zend_Validate_Alnum<span class="br0">&#40;</span><span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="co1">//allow whitespaces</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&#39;default&#39;</span> <span class="sy0">=&gt;</span> <span class="st0">&#39;&#39;</span><span class="sy0">,</span> <span class="co1">//meta command 1</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&#39;presence&#39;</span> <span class="sy0">=&gt;</span> <span class="st0">&#39;required&#39;</span><span class="sy0">,</span> <span class="co1">//meta command 2</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
</ol>
</div>
<p>The entire script ends up looking like this:</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$filters</span> <span class="sy0">=</span> <span class="kw3">array</span><span class="br0">&#40;</span><span class="st0">&#39;name&#39;</span> <span class="sy0">=&gt;</span> <span class="st0">&#39;StringTrim&#39;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$validators</span> <span class="sy0">=</span> &nbsp;<span class="kw3">array</span><span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="st0">&#39;name&#39;</span> &nbsp; <span class="sy0">=&gt;</span> <span class="kw3">array</span><span class="br0">&#40;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">new</span> Zend_Validate_Alnum<span class="br0">&#40;</span><span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="co1">//allow whitespaces</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&#39;default&#39;</span> <span class="sy0">=&gt;</span> <span class="st0">&#39;&#39;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&#39;presence&#39;</span> <span class="sy0">=&gt;</span> <span class="st0">&#39;required&#39;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$input</span> <span class="sy0">=</span> <span class="kw2">new</span> Zend_Input_Filter<span class="br0">&#40;</span><span class="re1">$filter</span><span class="sy0">,</span> <span class="re1">$input</span><span class="sy0">,</span> <span class="re1">$this</span><span class="sy0">-&gt;</span><span class="me1">getRequest</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">-&gt;</span><span class="me1">getParams</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.klunde.net/2010/07/18/zend_input_filter-and-the-alnum-validator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The big move</title>
		<link>http://www.klunde.net/2010/06/19/the-big-move/</link>
		<comments>http://www.klunde.net/2010/06/19/the-big-move/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 18:00:48 +0000</pubDate>
		<dc:creator>Kristian Lunde</dc:creator>
				<category><![CDATA[Real Life]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[Newcastle]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.klunde.net/?p=509</guid>
		<description><![CDATA[There is a lot of things going right now. We (@ramonahz, my daughter and myself) have decided to move back to Norway. We have thought about this for a while now and finally made the decision a few weeks ago. The main reason for moving back is that we want to be closer to our [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.klunde.net%2F2010%2F06%2F19%2Fthe-big-move%2F" onclick="urchinTracker('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.klunde.net_2F2010_2F06_2F19_2Fthe-big-move_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.klunde.net%2F2010%2F06%2F19%2Fthe-big-move%2F&amp;source=kristianlunde&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>There is a lot of things going right now. We (<a href="http://www.twitter.com/ramonahz" onclick="urchinTracker('/outgoing/www.twitter.com/ramonahz?referer=');">@ramonahz</a>, my daughter and myself) have decided to move back to Norway. We have thought about this for a while now and finally made the decision a few weeks ago. The main reason for moving back is that we want to be closer to our family, and not restrict our daughter to only see her grandparents a few times a year.</p>
<p>The move has affected my work slightly, I have resigned from my position at MySapient LTD and are now looking to do some freelance work from Norway. I also have a few other interesting things coming up, but I&#8217;ll leave that for a later blog post.</p>
<p>We have already started the process of moving back, and we&#8217;ll be leaving Newcastle and the UK on the 26th of July. We have spent almost 2 years in Newcastle, I have met some amazing people during these past two years, made some good friends and worked for two really cool companies. I am really going to miss living here, but hey, I&#8217;ll be back to visit soon.</p>
<p>Arrivederci Newcastle.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klunde.net/2010/06/19/the-big-move/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>CentOS, where is all my memory gone?</title>
		<link>http://www.klunde.net/2010/01/15/centos-where-is-all-my-memory-gone/</link>
		<comments>http://www.klunde.net/2010/01/15/centos-where-is-all-my-memory-gone/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 22:25:03 +0000</pubDate>
		<dc:creator>Kristian Lunde</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.klunde.net/?p=478</guid>
		<description><![CDATA[I encountered a rather strange issue on one of MySapients CentOS 5 servers the other day, the server seemed to run fine, without any issues what so ever, but it seem to run very low on memory. In fact it only had 150MB memory available of a total 4GB. This obviously caused me a bit [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.klunde.net%2F2010%2F01%2F15%2Fcentos-where-is-all-my-memory-gone%2F" onclick="urchinTracker('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.klunde.net_2F2010_2F01_2F15_2Fcentos-where-is-all-my-memory-gone_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.klunde.net%2F2010%2F01%2F15%2Fcentos-where-is-all-my-memory-gone%2F&amp;source=kristianlunde&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I encountered a rather strange issue on one of <a href="http://www.mysapient.com" onclick="urchinTracker('/outgoing/www.mysapient.com?referer=');">MySapients</a> CentOS 5 servers the other day, the server seemed to run fine, without any issues what so ever, but it seem to run very low on memory. In fact it only had 150MB memory available of a total 4GB. </p>
<p>This obviously caused me a bit of a worry, but after some digging around I found the answer, linux is borrowing unused memory to do disk caching. Memory is automatically reassigned when the server needs to allocate memory to other services, in other words there is nothing to worry about.</p>
<p>There is a good site about this describing this functionality in more detail, you can read it at:</p>
<p><a href="http://www.linuxatemyram.com/" onclick="urchinTracker('/outgoing/www.linuxatemyram.com/?referer=');">http://www.linuxatemyram.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.klunde.net/2010/01/15/centos-where-is-all-my-memory-gone/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My Bookshelf &amp; openbook</title>
		<link>http://www.klunde.net/2009/11/22/my-bookshelf-openbook/</link>
		<comments>http://www.klunde.net/2009/11/22/my-bookshelf-openbook/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 23:19:54 +0000</pubDate>
		<dc:creator>Kristian Lunde</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[openbook]]></category>

		<guid isPermaLink="false">http://www.klunde.net/?p=469</guid>
		<description><![CDATA[Yesterday I installed the openbook plugin for wordpress on this site. My intentions was to build a &#8220;My bookshelf&#8221; page similar to what Mats Lindh and Trond Huso have on their sites. I installed the plugin without any problems but the layout was a bit nasty. I don&#8217;t know if that was because of the [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.klunde.net%2F2009%2F11%2F22%2Fmy-bookshelf-openbook%2F" onclick="urchinTracker('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.klunde.net_2F2009_2F11_2F22_2Fmy-bookshelf-openbook_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.klunde.net%2F2009%2F11%2F22%2Fmy-bookshelf-openbook%2F&amp;source=kristianlunde&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Yesterday I installed the <a href="http://wordpress.org/extend/plugins/openbook-book-data/" onclick="urchinTracker('/outgoing/wordpress.org/extend/plugins/openbook-book-data/?referer=');">openbook</a> plugin for wordpress on this site. My intentions was to build a &#8220;My bookshelf&#8221; page similar to what <a href="http://e-mats.org/" onclick="urchinTracker('/outgoing/e-mats.org/?referer=');">Mats Lindh</a> and Trond Huso have on their sites. </p>
<p>I installed the plugin without any problems but the layout was a bit nasty. I don&#8217;t know if that was because of the theme I am running on this site or if the openbook markup was messed up. Anyway I rewrote the html and css for the openbooks template on its configuration page and added some custom css to the site to get it working. </p>
<p>This is my openbook template:</p>
<div class="geshi no html">
<ol>
<li class="li1">
<div class="de1">&lt;li&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;div class=&quot;medium&quot;&gt;[OB_COVER_MEDIUM]&lt;/div&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;div class=&quot;description&quot;&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;div class=&quot;title&quot;&gt;[OB_TITLE]&lt;/div&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;div class=&quot;meta-1&quot;&gt;Written by: [OB_AUTHORS]&lt;/div&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;div class=&quot;publisher-year&quot;&gt;[OB_PUBLISHER] [OB_PUBLISHYEAR]&lt;/div&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;div class=&quot;category&quot;&gt;[OB_LINK_WORLDCAT][OB_DOT][OB_READONLINE][OB_DOT][OB_LINK_LIBRARYTHING][OB_DOT][OB_LINK_GOOGLEBOOKS][OB_DOT][OB_LINK_BOOKFINDER]&lt;/div&gt;[OB_COINS]
</div>
</li>
<li class="li1">
<div class="de1">&lt;/div&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;div class=&quot;clearboth&quot;&gt;&lt;/div&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;/li&gt;</div>
</li>
</ol>
</div>
<p>This is the css I added:</p>
<div class="geshi no css">
<ol>
<li class="li1">
<div class="de1">ul<span class="re1">.books</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">list-style-type</span><span class="sy0">:</span> <span class="kw2">none</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">ul<span class="re1">.books</span> li <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">border-bottom</span><span class="sy0">:</span> <span class="re3">1px</span> <span class="kw2">solid</span> <span class="re0">#ccc</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">margin-bottom</span><span class="sy0">:</span> <span class="re3">15px</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">padding-bottom</span><span class="sy0">:</span> <span class="re3">15px</span><span class="sy0">;</span> </div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">ul<span class="re1">.books</span> li div<span class="re1">.medium</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;float<span class="re2">:left</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">margin-right</span><span class="sy0">:</span> <span class="re3">10px</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">ul<span class="re1">.books</span> li div<span class="re1">.medium</span> img <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;width<span class="re2">:<span class="re3">120px</span></span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">ul<span class="re1">.books</span> li div<span class="re1">.description</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">float</span><span class="sy0">:</span> <span class="kw1">left</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">width</span><span class="sy0">:</span> <span class="re3">450px</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">ul<span class="re1">.books</span> li div<span class="re1">.description</span> div <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">font-size</span><span class="sy0">:</span> <span class="re3">11px</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">padding-top</span><span class="sy0">:</span> <span class="re3">5px</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">ul<span class="re1">.books</span> li div<span class="re1">.clearboth</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">clear</span><span class="sy0">:</span> <span class="kw2">both</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>At last I added this custom html in the &#8220;my bookshelf&#8221; page:</p>
<div class="geshi no html">
<ol>
<li class="li1">
<div class="de1">&lt;ul class=&quot;books&quot;&gt;
</div>
</li>
<li class="li1">
<div class="de1"><i>[No Book Data for this Book Number]</i> 
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><i>[No Book Data for this Book Number]</i> 
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><i>[No Book Data for this Book Number]</i> 
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&lt;/ul&gt;</div>
</li>
</ol>
</div>
<p>You can see the result here: <a href="http://www.klunde.net/my-bookshelf">My Bookshelf </a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klunde.net/2009/11/22/my-bookshelf-openbook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great article on Super Columns and Cassandra</title>
		<link>http://www.klunde.net/2009/11/21/great-article-on-super-columns-and-cassandra/</link>
		<comments>http://www.klunde.net/2009/11/21/great-article-on-super-columns-and-cassandra/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 16:37:17 +0000</pubDate>
		<dc:creator>Kristian Lunde</dc:creator>
				<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Cassandra]]></category>

		<guid isPermaLink="false">http://www.klunde.net/?p=445</guid>
		<description><![CDATA[This is a great article describing super columns and the general structure of cassandra. A must read for NoSQL newbies. http://arin.me/code/wtf-is-a-supercolumn-cassandra-data-model]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.klunde.net%2F2009%2F11%2F21%2Fgreat-article-on-super-columns-and-cassandra%2F" onclick="urchinTracker('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.klunde.net_2F2009_2F11_2F21_2Fgreat-article-on-super-columns-and-cassandra_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.klunde.net%2F2009%2F11%2F21%2Fgreat-article-on-super-columns-and-cassandra%2F&amp;source=kristianlunde&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a great article describing super columns and the general structure of cassandra. A must read for NoSQL newbies. </p>
<p><a href="http://arin.me/code/wtf-is-a-supercolumn-cassandra-data-model" onclick="urchinTracker('/outgoing/arin.me/code/wtf-is-a-supercolumn-cassandra-data-model?referer=');">http://arin.me/code/wtf-is-a-supercolumn-cassandra-data-model</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.klunde.net/2009/11/21/great-article-on-super-columns-and-cassandra/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

