<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Christer's blog o' fun</title>
	<atom:link href="http://cogo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cogo.wordpress.com</link>
	<description>Christer Edvartsen's blog about ... things!</description>
	<lastBuildDate>Mon, 30 Nov 2009 14:26:22 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='cogo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a603d434808d78330c3c26e0190a6814?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Christer's blog o' fun</title>
		<link>http://cogo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cogo.wordpress.com/osd.xml" title="Christer&#8217;s blog o&#8217; fun" />
		<item>
		<title>New Zend Framework book</title>
		<link>http://cogo.wordpress.com/2009/11/30/new-zend-framework-book/</link>
		<comments>http://cogo.wordpress.com/2009/11/30/new-zend-framework-book/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 14:26:22 +0000</pubDate>
		<dc:creator>christer</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://cogo.wordpress.com/?p=938</guid>
		<description><![CDATA[ The other day I received a book &#8212; Zend Framework 1.8 &#8211; Web Application Development &#8212; for review. I&#8217;ll read through it as soon as I can and write a review that I will publish on my blog.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=938&subd=cogo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignleft size-full wp-image-940" title="Zend Framework 1.8 - Web Application Development" src="http://cogo.files.wordpress.com/2009/11/zend_book_image.jpg?w=100&#038;h=123" alt="Book cover" width="100" height="123" /> The other day I received a book &#8212; <a href="http://www.packtpub.com/zend-framework-1-8-web-application-development?utm_source=cogo.wordpress.com&amp;utm_medium=bookrev&amp;utm_content=blog&amp;utm_campaign=mdb_001402" target="_blank">Zend Framework 1.8 &#8211; Web Application Development</a> &#8212; for review. I&#8217;ll read through it as soon as I can and write a review that I will publish on my blog.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cogo.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cogo.wordpress.com/938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cogo.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cogo.wordpress.com/938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cogo.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cogo.wordpress.com/938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cogo.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cogo.wordpress.com/938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cogo.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cogo.wordpress.com/938/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=938&subd=cogo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cogo.wordpress.com/2009/11/30/new-zend-framework-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c7f00126a1c4ba53bba8f7f37e347a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cogo</media:title>
		</media:content>

		<media:content url="http://cogo.files.wordpress.com/2009/11/zend_book_image.jpg" medium="image">
			<media:title type="html">Zend Framework 1.8 - Web Application Development</media:title>
		</media:content>
	</item>
		<item>
		<title>1:1 NAT with a Linksys WRT54GL router (with Tomato firmware)</title>
		<link>http://cogo.wordpress.com/2009/11/29/11-nat-with-a-linksys-wrt54gl-router-with-tomato-firmware/</link>
		<comments>http://cogo.wordpress.com/2009/11/29/11-nat-with-a-linksys-wrt54gl-router-with-tomato-firmware/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 13:33:17 +0000</pubDate>
		<dc:creator>christer</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NAT]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[tomato]]></category>

		<guid isPermaLink="false">http://cogo.wordpress.com/?p=923</guid>
		<description><![CDATA[For a long time I have used a Debian based machine called megatron as a gateway at home. Megatron had two NIC&#8217;s where one was connected to an SDSL modem, and the other was connected to a Linksys WRT54GL router (which is running the Tomato firmware). These two switched places a while back so that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=923&subd=cogo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For a long time I have used a <a href="http://www.debian.org/" target="_blank">Debian</a> based machine called <a href="http://en.wikipedia.org/wiki/Megatron_(Transformers)" target="_blank">megatron</a> as a gateway at home. Megatron had two NIC&#8217;s where one was connected to an SDSL modem, and the other was connected to a Linksys WRT54GL router (which is running the <a href="http://www.polarcloud.com/tomato" target="_blank">Tomato firmware</a>). These two switched places a while back so that the router is connected to the modem, and megatron is behind the router. There are a couple of services running on megatron that needs to be accessible from the internets, so I had to do some iptables magic on the router to be able to do this. This post is more of a reminder to myself of how to do this, but there might be someone else out there who wants to do the exact same thing.</p>
<p>Earlier megatron had two official ip addresses (I have 5 from my ISP) on the NIC connected to the modem. One of them is used for SSL traffic to megatron and the other is used for everything else. The setup now is that megatron only has one NIC with two internal addresses: 192.168.1.10 and 192.168.1.11. My router has three addresses. Lets say these are: 193.n.n.122, 193.n.n.123 and 193.n.n.124. The first one is the one I will let the router have and the other two I will forward to megatron.</p>
<p>First I had to add two addresses to the router since it only had one. To do this I logged in the router using ssh and ran the following commands:</p>
<pre class="brush: bash;">
# Add ip addresses
ifconfig vlan1:1 193.n.n.123 netmask 255.255.255.248 broadcast 193.n.n.127
ifconfig vlan1:2 193.n.n.124 netmask 255.255.255.248 broadcast 193.n.n.127
</pre>
<p>To test if these two worked I simply pinged the new ip addresses.</p>
<p>Now I needed to tell the router to forward traffic on these two addresses to the ip&#8217;s specified on megatron. iptables to the rescue:</p>
<pre class="brush: bash;">
# To megatron
iptables -t nat -I PREROUTING -p all -d 193.n.n.123 -j DNAT --to-destination 192.168.1.10
iptables -t nat -I PREROUTING -p all -d 193.n.n.124 -j DNAT --to-destination 192.168.1.11

# From megatron
iptables -t nat -I POSTROUTING -p all -s 192.168.1.10 -j SNAT --to-source 193.n.n.123
iptables -t nat -I POSTROUTING -p all -s 192.168.1.11 -j SNAT --to-source 193.n.n.124

# Accept all ports
iptables -I FORWARD -p tcp -d 192.168.1.10 -j ACCEPT
iptables -I FORWARD -p tcp -d 192.168.1.11 -j ACCEPT
</pre>
<p>And that&#8217;s that really. One last thing I had to do was to make these changes permanent. This can be done by putting the ifconfig and iptables commands in this post in the Administration-&gt;Scripts part of the Tomato web-gui. Click on Administration and then Scripts in the gui and enter the commands in the firewall tab:</p>
<p><img src="http://cogo.files.wordpress.com/2009/11/tomato-scripts1.png?w=927&#038;h=592" alt="" title="Tomato firewall scripts" width="927" height="592" class="alignnone size-full wp-image-935" /></p>
<p>Remember to click the save button on the bottom of the page after these changes.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cogo.wordpress.com/923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cogo.wordpress.com/923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cogo.wordpress.com/923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cogo.wordpress.com/923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cogo.wordpress.com/923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cogo.wordpress.com/923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cogo.wordpress.com/923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cogo.wordpress.com/923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cogo.wordpress.com/923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cogo.wordpress.com/923/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=923&subd=cogo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cogo.wordpress.com/2009/11/29/11-nat-with-a-linksys-wrt54gl-router-with-tomato-firmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c7f00126a1c4ba53bba8f7f37e347a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cogo</media:title>
		</media:content>

		<media:content url="http://cogo.files.wordpress.com/2009/11/tomato-scripts1.png" medium="image">
			<media:title type="html">Tomato firewall scripts</media:title>
		</media:content>
	</item>
		<item>
		<title>Photos from Kalymnos</title>
		<link>http://cogo.wordpress.com/2009/11/12/photos-from-kalymnos-2/</link>
		<comments>http://cogo.wordpress.com/2009/11/12/photos-from-kalymnos-2/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:46:08 +0000</pubDate>
		<dc:creator>christer</dc:creator>
				<category><![CDATA[Climbing]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Trips]]></category>
		<category><![CDATA[kalymnos]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://cogo.wordpress.com/?p=920</guid>
		<description><![CDATA[Check out some photos from my trip to Kalymnos in September/October over at my flickr account.
Some previews:


       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=920&subd=cogo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Check out some <a href="http://www.flickr.com/photos/cogocogo/sets/72157622500130675/" target="_blank">photos from my trip to Kalymnos in September/October</a> over at my flickr account.</p>
<p>Some previews:</p>
<p><a title="Me at Grande Grotta by cogocogo, on Flickr" href="http://www.flickr.com/photos/cogocogo/4091713055/"><img src="http://farm3.static.flickr.com/2730/4091713055_56308bab78.jpg" alt="Me at Grande Grotta" width="333" height="500" /></a></p>
<p><a title="Louis at Grande Grotta by cogocogo, on Flickr" href="http://www.flickr.com/photos/cogocogo/4095543842/"><img src="http://farm3.static.flickr.com/2502/4095543842_c74a5736a6.jpg" alt="Louis at Grande Grotta" width="333" height="500" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cogo.wordpress.com/920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cogo.wordpress.com/920/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cogo.wordpress.com/920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cogo.wordpress.com/920/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cogo.wordpress.com/920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cogo.wordpress.com/920/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cogo.wordpress.com/920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cogo.wordpress.com/920/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cogo.wordpress.com/920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cogo.wordpress.com/920/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=920&subd=cogo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cogo.wordpress.com/2009/11/12/photos-from-kalymnos-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c7f00126a1c4ba53bba8f7f37e347a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cogo</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2730/4091713055_56308bab78.jpg" medium="image">
			<media:title type="html">Me at Grande Grotta</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2502/4095543842_c74a5736a6.jpg" medium="image">
			<media:title type="html">Louis at Grande Grotta</media:title>
		</media:content>
	</item>
		<item>
		<title>From Kalymnos #3</title>
		<link>http://cogo.wordpress.com/2009/10/15/from-kalymnos-3/</link>
		<comments>http://cogo.wordpress.com/2009/10/15/from-kalymnos-3/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 12:38:45 +0000</pubDate>
		<dc:creator>christer</dc:creator>
				<category><![CDATA[Climbing]]></category>
		<category><![CDATA[Trips]]></category>
		<category><![CDATA[kalymnos]]></category>
		<category><![CDATA[vacation]]></category>

		<guid isPermaLink="false">http://cogo.wordpress.com/?p=918</guid>
		<description><![CDATA[Sorry about the total lack of updates from this years trip to Kalymnos. I&#8217;ve been busy doing everything else than sitting on my computer. Now we&#8217;re only a couple hours away from starting the trip back to Norway. It&#8217;s been a great month of climbing, and I&#8217;ll most likely come back some other time. I&#8217;ll [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=918&subd=cogo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Sorry about the total lack of updates from this years trip to Kalymnos. I&#8217;ve been busy doing everything else than sitting on my computer. Now we&#8217;re only a couple hours away from starting the trip back to Norway. It&#8217;s been a great month of climbing, and I&#8217;ll most likely come back some other time. I&#8217;ll try to post some pictures in a day or two!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cogo.wordpress.com/918/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cogo.wordpress.com/918/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cogo.wordpress.com/918/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cogo.wordpress.com/918/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cogo.wordpress.com/918/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cogo.wordpress.com/918/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cogo.wordpress.com/918/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cogo.wordpress.com/918/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cogo.wordpress.com/918/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cogo.wordpress.com/918/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=918&subd=cogo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cogo.wordpress.com/2009/10/15/from-kalymnos-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c7f00126a1c4ba53bba8f7f37e347a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cogo</media:title>
		</media:content>
	</item>
		<item>
		<title>From Kalymnos #2</title>
		<link>http://cogo.wordpress.com/2009/09/19/from-kalymnos-2/</link>
		<comments>http://cogo.wordpress.com/2009/09/19/from-kalymnos-2/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 16:51:47 +0000</pubDate>
		<dc:creator>christer</dc:creator>
				<category><![CDATA[Climbing]]></category>
		<category><![CDATA[Trips]]></category>
		<category><![CDATA[kalymnos]]></category>
		<category><![CDATA[vacation]]></category>

		<guid isPermaLink="false">http://cogo.wordpress.com/?p=916</guid>
		<description><![CDATA[A few more days have gone by and I&#8217;m still living the &#8220;hard&#8221; life at Kalymnos. We (as in Louis which I&#8217;m here with and myself) have been climbing today and we&#8217;ll go out again tomorrow. When tomorrow is at an end we have been here for a week and have climbed 5 days. We [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=916&subd=cogo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A few more days have gone by and I&#8217;m still living the &#8220;hard&#8221; life at Kalymnos. We (as in Louis which I&#8217;m here with and myself) have been climbing today and we&#8217;ll go out again tomorrow. When tomorrow is at an end we have been here for a week and have climbed 5 days. We have done some very nice routes as well! I&#8217;ll include a tick list when I get home from this place for those who might be interested in that.</p>
<p>We have been bathing and swimming every day as well. It&#8217;s about 21 degress in the ocean here so it&#8217;s quite nice. It&#8217;s very refreshing to take a quick dip after climbing all day long. We are going out to eat today since we forgot to take anything out of the freezer yesterday.</p>
<p>You&#8217;ll hear from me later!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cogo.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cogo.wordpress.com/916/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cogo.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cogo.wordpress.com/916/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cogo.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cogo.wordpress.com/916/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cogo.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cogo.wordpress.com/916/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cogo.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cogo.wordpress.com/916/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=916&subd=cogo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cogo.wordpress.com/2009/09/19/from-kalymnos-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c7f00126a1c4ba53bba8f7f37e347a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cogo</media:title>
		</media:content>
	</item>
		<item>
		<title>From Kalymnos</title>
		<link>http://cogo.wordpress.com/2009/09/15/from-kalymnos/</link>
		<comments>http://cogo.wordpress.com/2009/09/15/from-kalymnos/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 17:03:54 +0000</pubDate>
		<dc:creator>christer</dc:creator>
				<category><![CDATA[Climbing]]></category>
		<category><![CDATA[Trips]]></category>
		<category><![CDATA[kalymnos]]></category>
		<category><![CDATA[vacation]]></category>

		<guid isPermaLink="false">http://cogo.wordpress.com/?p=914</guid>
		<description><![CDATA[So, we&#8217;ve been here for a couple of days now. We arrived around 1800 on Sunday and didn&#8217;t do much that evening. The room we are staying in is not really that good. The &#8220;kitchen&#8221; is a small portable gadget with one plate to cook on and a fridge that barely works. Not too great [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=914&subd=cogo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So, we&#8217;ve been here for a couple of days now. We arrived around 1800 on Sunday and didn&#8217;t do much that evening. The room we are staying in is not really that good. The &#8220;kitchen&#8221; is a small portable gadget with one plate to cook on and a fridge that barely works. Not too great if you want to make rice, sauce and some meat. We have been talking about looking for some other place to stay if there are better options regarding the kitchen around here. Since we&#8217;re staying here for over a month it would be nice to have a decent place to make some food.</p>
<p>Today we are having a resting day after a long climbing day yesterday. We went to the capitol of the island earlier today and picked up some food since there is no butcher shop around here. We also spent some hours sleeping in the sun on the beach after a short swim. It&#8217;s a hard life we are living here&#8230;</p>
<p>We are going to climb tomorrow and Thursday and we&#8217;ll rest on Friday again. I&#8217;ll write some more later and post some pictures as well. There won&#8217;t be too many pictures until some more of our friends arrive here. When it&#8217;s only the two of us climbing there is no opportunity to snap some photos as well.</p>
<p>Anyhoo, hope everyone back home is having as great a time as myself. Later everyone!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cogo.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cogo.wordpress.com/914/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cogo.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cogo.wordpress.com/914/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cogo.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cogo.wordpress.com/914/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cogo.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cogo.wordpress.com/914/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cogo.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cogo.wordpress.com/914/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=914&subd=cogo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cogo.wordpress.com/2009/09/15/from-kalymnos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c7f00126a1c4ba53bba8f7f37e347a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cogo</media:title>
		</media:content>
	</item>
		<item>
		<title>Firefox + Spotify in Wine</title>
		<link>http://cogo.wordpress.com/2009/09/10/firefox-spotify-in-wine/</link>
		<comments>http://cogo.wordpress.com/2009/09/10/firefox-spotify-in-wine/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 12:03:42 +0000</pubDate>
		<dc:creator>christer</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[spotify]]></category>
		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://cogo.wordpress.com/?p=909</guid>
		<description><![CDATA[I run Ubuntu on all my workstations. I also run Spotify in Wine and use Firefox 3.0 as browser of choice. Until now I haven&#8217;t been able to click on the spotify:* links in Firefox and have it open them in Spotify. The following small changes made this possible:
Start Firefix and enter about:config in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=909&subd=cogo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I run <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> on all my workstations. I also run <a href="http://www.spotify.com/en/" target="_blank">Spotify</a> in <a href="http://www.winehq.org/" target="_blank">Wine</a> and use <a href="http://www.mozilla.com/en-US/firefox/" target="_blank">Firefox 3.0</a> as browser of choice. Until now I haven&#8217;t been able to click on the <em>spotify:*</em> links in Firefox and have it open them in Spotify. The following small changes made this possible:</p>
<p>Start Firefix and enter <em>about:config</em> in the address bar. Click past the warning that comes up, right click somewhere in the list of settings and click on <em>new -&gt; boolean</em>. Create the following setting:</p>
<pre>network.protocol-handler.expose.spotify</pre>
<p>and set it to <strong>false</strong>.</p>
<p>Right click again to add another setting:</p>
<pre>network.protocol-handler.external.spotify</pre>
<p>Set this to <strong>true</strong>.</p>
<p>Now, lets create a small shell script that Firefox can use to start Spotify. I chose to place it in the Spotify installation folder:</p>
<pre>vim ~/.wine/drive_c/Program\ Files/Spotify/spotify.sh</pre>
<p>Enter the following:</p>
<pre>#!/bin/bash
wine "$HOME/.wine/drive_c/Program Files/Spotify/spotify.exe" /uri "$1"</pre>
<p>Then make the file executable with the following command:</p>
<pre>chmod +x ~/.wine/drive_c/Program\ Files/Spotify/spotify.sh</pre>
<p>Now, click on a spotify link (<a href="http://open.spotify.com/track/2hvR3XzdUoSnoREtyTVnQx" target="_blank">like this one for instance</a>) and select the newly created shell script to see the magic happen!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cogo.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cogo.wordpress.com/909/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cogo.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cogo.wordpress.com/909/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cogo.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cogo.wordpress.com/909/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cogo.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cogo.wordpress.com/909/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cogo.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cogo.wordpress.com/909/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=909&subd=cogo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cogo.wordpress.com/2009/09/10/firefox-spotify-in-wine/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c7f00126a1c4ba53bba8f7f37e347a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cogo</media:title>
		</media:content>
	</item>
		<item>
		<title>Soon off to Kalymnos</title>
		<link>http://cogo.wordpress.com/2009/09/09/soon-off-to-kalymnos/</link>
		<comments>http://cogo.wordpress.com/2009/09/09/soon-off-to-kalymnos/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 13:57:59 +0000</pubDate>
		<dc:creator>christer</dc:creator>
				<category><![CDATA[Climbing]]></category>
		<category><![CDATA[Trips]]></category>
		<category><![CDATA[greece]]></category>
		<category><![CDATA[kalymnos]]></category>
		<category><![CDATA[vacation]]></category>

		<guid isPermaLink="false">http://cogo.wordpress.com/?p=907</guid>
		<description><![CDATA[In about 4 days I will arrive at Kalymnos, Greece for a month of sport climbing together with a friend, and I&#8217;ll stay there until the 15th of October.
Our plan is to go climbing every other day. I wanted to bring my bike so I could get some mileage done on the non-climbing days but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=907&subd=cogo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In about 4 days I will arrive at <a href="http://en.wikipedia.org/wiki/Kalymnos" target="_blank">Kalymnos</a>, Greece for a month of sport climbing together with a friend, and I&#8217;ll stay there until the 15th of October.</p>
<p>Our plan is to go climbing every other day. I wanted to bring my bike so I could get some mileage done on the non-climbing days but there was no room for it on the plane from Athens to Kalymnos (which is a smaller Propeller aircraft). I&#8217;ll probably try to do some swimming and hiking instead. I also have some plans to read some books while there. I&#8217;ll bring <a href="http://en.wikipedia.org/wiki/World_Without_End_(Follett_novel)" target="_blank">World Without End</a> by <a href="http://en.wikipedia.org/wiki/Ken_Follett" target="_blank">Ken Follett</a> and some other smaller books.</p>
<p>I&#8217;ll bring my camera and some lenses as well and I&#8217;ll hopefully be able to snap some nice climbing pictures (pictures from last year is <a href="http://www.flickr.com/photos/cogocogo/sets/72157608233763758/" target="_blank">available in this set</a> over at flickr.com). The last couple of weeks some other guys will join us there so it&#8217;ll be easier to fix myself high up in some route and take some pictures of the other guys.</p>
<p>When I&#8217;m really bored (can&#8217;t really see how that will happen) I&#8217;ll probably get some coding done as well. :)</p>
<p>I&#8217;ll keep you all updated!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cogo.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cogo.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cogo.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cogo.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cogo.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cogo.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cogo.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cogo.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cogo.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cogo.wordpress.com/907/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=907&subd=cogo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cogo.wordpress.com/2009/09/09/soon-off-to-kalymnos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c7f00126a1c4ba53bba8f7f37e347a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cogo</media:title>
		</media:content>
	</item>
		<item>
		<title>Finished Birkebeinerrittet last Saturday</title>
		<link>http://cogo.wordpress.com/2009/09/01/finished-birkebeinerrittet-last-saturday/</link>
		<comments>http://cogo.wordpress.com/2009/09/01/finished-birkebeinerrittet-last-saturday/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 08:18:42 +0000</pubDate>
		<dc:creator>christer</dc:creator>
				<category><![CDATA[Cycling]]></category>
		<category><![CDATA[bicycle]]></category>
		<category><![CDATA[birkebeiner]]></category>
		<category><![CDATA[birken]]></category>
		<category><![CDATA[mountain bike]]></category>
		<category><![CDATA[race]]></category>

		<guid isPermaLink="false">http://cogo.wordpress.com/?p=896</guid>
		<description><![CDATA[Last Saturday I raced in Birkebeinerrittet which is a mountain bike race in Norway over the mountains from Rena to Lillehammer. The race is about 94,6km and it&#8217;s the worlds biggest mountain bike race with ~16.000 contestants. My group started at 13:20 so I left Fredrikstad around 07:15 together with Linda so I&#8217;d have plenty [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=896&subd=cogo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Last Saturday I raced in <a href="http://www.birkebeiner.no/" target="_blank">Birkebeinerrittet</a> which is a mountain bike race in Norway over the mountains from Rena to Lillehammer. The race is about 94,6km and it&#8217;s the worlds biggest mountain bike race with ~16.000 contestants. My group started at 13:20 so I left Fredrikstad around 07:15 together with Linda so I&#8217;d have plenty of time. I arrived early and managed to get a good 45 minute warm up by cycling around Rena before the race started. During my warm up it started to rain and I got some messages from a couple of friends of mine that the track was extremely muddy and slippery. <a href="http://cogo.wordpress.com/2009/08/03/finished-my-first-bicycle-race/">I raced in Grenserittet</a> earlier this year and thought that it couldn&#8217;t be much worse than that&#8230; boy was I wrong. Take a look at <a href="http://www.amot.gs.hm.no/birken/rittet2009/forhold/index.html" target="_blank">some pictures from the event</a> and you&#8217;ll understand.</p>
<p>The trip over the mountains did not exactly go as planned though. After 3,16km&#8217;s my cycle computer stopped working. It has been this way once before and that was at the Grenserittet race. I&#8217;m guessing this computer doesn&#8217;t want me to enter these races. Now, this was only a small beginning. When I stood on the top of the so called raisin hill (Rosinbakken) at the ~55km mark I had managed to break my glasses (which was a major bummer in these conditions), puncture twice and split my chain 3 times. Since I only had one extra tube in my backpack I actually had to patch the tube the second time around which was not too easy when everything is covered in mud. I got quite cold during this ordeal as well so it wasn&#8217;t to pleasant to get back on the seat. Since my chain (and the rest of the bike for that matter) was covered in mud it&#8217;s easier to break it if you don&#8217;t have the correct oil and bit of luck. The last time I sat mending my chain some other guy broke his chain as well so we sat down and shared a laugh and a bun with raisins (which was fitting since we were sitting at the top of the raisin hill).</p>
<p>After all this I lost all motivation and did not ride very fast and efficient to the finish line. I finished the race in 5 hours and 54 minutes which was way more than my intentions. Hopefully the weather will be better next year and that I&#8217;ll have a bit more luck with my bike. <a href="http://e-mats.org/2009/08/i-survived-2/" target="_blank">Mats finished the race in 5.24</a> wihch was a big improvement from last year.</p>
<p>I&#8217;ve uploaded some <a href="http://www.flickr.com/photos/cogocogo/sets/72157622079049259/" target="_blank">photos of my bike</a> after the race to flickr:</p>
<p><a href="http://www.flickr.com/photos/cogocogo/3876772883/" title="My bike by cogocogo, on Flickr"><img src="http://farm3.static.flickr.com/2651/3876772883_cbdb6d7019.jpg" width="500" height="333" alt="My bike" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cogo.wordpress.com/896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cogo.wordpress.com/896/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cogo.wordpress.com/896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cogo.wordpress.com/896/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cogo.wordpress.com/896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cogo.wordpress.com/896/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cogo.wordpress.com/896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cogo.wordpress.com/896/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cogo.wordpress.com/896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cogo.wordpress.com/896/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=896&subd=cogo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cogo.wordpress.com/2009/09/01/finished-birkebeinerrittet-last-saturday/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c7f00126a1c4ba53bba8f7f37e347a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cogo</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2651/3876772883_cbdb6d7019.jpg" medium="image">
			<media:title type="html">My bike</media:title>
		</media:content>
	</item>
		<item>
		<title>Force Zend_Http_Client_Adapter_Test to fail</title>
		<link>http://cogo.wordpress.com/2009/08/17/force-zend_http_client_adapter_test-to-fail/</link>
		<comments>http://cogo.wordpress.com/2009/08/17/force-zend_http_client_adapter_test-to-fail/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 13:25:21 +0000</pubDate>
		<dc:creator>christer</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Work related]]></category>
		<category><![CDATA[phpunit]]></category>
		<category><![CDATA[unit tests]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[Zend_Http_Client]]></category>

		<guid isPermaLink="false">http://cogo.wordpress.com/?p=892</guid>
		<description><![CDATA[At work we have a component in our internal framework for fetching content from remote sources. The component utilizes something called availability caching which means that it will cache the remote content and use it when the remote server is down. We use Zend_Http_Client internally and to fully test our component we needed the remote [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=892&subd=cogo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>At work we have a component in our internal framework for fetching content from remote sources. The component utilizes something called availability caching which means that it will cache the remote content and use it when the remote server is down. We use <a href="http://framework.zend.com/manual/en/zend.http.html" target="_blank">Zend_Http_Client</a> internally and to fully test our component we needed the remote server (which is not really a remote server at all in our test suite) to fail on demand.</p>
<p>In our tests we simply use the <a href="http://framework.zend.com/manual/en/zend.http.client.adapters.html#zend.http.client.adapters.test" target="_blank">Zend_Http_Client_Adapter_Test</a> adapter with the Zend_Http_Client instance instead of the default adapter. Using this we can tell the client what to return so we can make sure our own component behaves like it should. I implemented a method in the test adapter called <em>setNextRequestWillFail()</em> which takes a boolean flag as a parameter. The result when calling this method with <em>boolean true</em> is that the adapter will throw a Zend_Http_Client_Adapter_Exception exception on the next request. This allowed us to force the &#8220;remote server&#8221; to fail so we could test our availability cache.</p>
<p>The fix has been commited to Zend Framework trunk and will hopefully be added soon.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cogo.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cogo.wordpress.com/892/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cogo.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cogo.wordpress.com/892/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cogo.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cogo.wordpress.com/892/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cogo.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cogo.wordpress.com/892/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cogo.wordpress.com/892/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cogo.wordpress.com/892/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cogo.wordpress.com&blog=66533&post=892&subd=cogo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cogo.wordpress.com/2009/08/17/force-zend_http_client_adapter_test-to-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c7f00126a1c4ba53bba8f7f37e347a3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cogo</media:title>
		</media:content>
	</item>
	</channel>
</rss>