<?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>Peter Krantz &#187; General</title>
	<atom:link href="http://www.peterkrantz.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peterkrantz.com</link>
	<description>A blog about technology, visualization, music and unmanned vehicle experiments</description>
	<lastBuildDate>Mon, 12 Jul 2010 14:47:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Implement open data for EU institutions</title>
		<link>http://www.peterkrantz.com/2010/eu-institution-psi/</link>
		<comments>http://www.peterkrantz.com/2010/eu-institution-psi/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 14:42:47 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Open data]]></category>
		<category><![CDATA[e-Gov]]></category>
		<category><![CDATA[egov]]></category>
		<category><![CDATA[gov2.0]]></category>
		<category><![CDATA[open data]]></category>
		<category><![CDATA[psi]]></category>
		<category><![CDATA[transparency]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/?p=352</guid>
		<description><![CDATA[Jonathan Gray of the Open Knowledge Foundation participated in a conference of the Communia project, a European thematic network on the digital public domain. In a great post about the meeting at the OKFN blog, he recommends two improvements to the current PSI work; 1: Broaden the scope of the PSI Directive to include publicly [...]]]></description>
			<content:encoded><![CDATA[<p>Jonathan Gray of the Open Knowledge Foundation participated in a conference of the <a href="http://www.communia-project.eu/">Communia project</a>, a European thematic network on the digital public domain. In a great post about the meeting at the OKFN blog, <a href="http://blog.okfn.org/2010/07/08/opening-up-european-public-sector-information-two-recommendations/">he recommends two improvements to the current PSI work</a>; 1: Broaden the scope of the PSI Directive to include publicly funded cultural heritage organisations and 2: Broaden the evidence base for opening up PSI.</p>
<h2>A third recommendation</h2>
<p>An important value of public sector information is the increased transparency in government decision making. A <a href="http://en.wikipedia.org/wiki/Directive_%28European_Union%29">European Union directive</a> only affects member states and not EU institutions. We are therefore at risk of missing out on increased transparency in EU institutions that the PSI directive may bring to governments in the member states. Also, government <a href="http://ww2.unhabitat.org/cdrom/TRANSPARENCY/html/transpc.html">transparency is often considered to be a contributing factor in reducing corruption</a>.</p>
<p><strong>Therefore, it would be great if there was a plan, similar to the PSI directive, that made sure that EU institutions also started providing machine readable data in order to increase transparency and reduce the risk of corruption.</strong></p>
<p>Currently, it seems to be up to each institution to do what they want. Maybe that is why the <a href="http://publications.europa.eu/index_en.htm">Publications Office of the European Union</a> decided to charge  10,000 EUR for access to electronic versions of the EUR-Lex database (that contains the directives and other legal acts). This move makes it difficult for new actors in the legal information industry to include EU data in their products which leads to reduced competition.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2010%2Feu-institution-psi%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2010/eu-institution-psi/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Joining the Swedish eGovernment Delegation</title>
		<link>http://www.peterkrantz.com/2009/joining-the-swedish-egovernment-delegation/</link>
		<comments>http://www.peterkrantz.com/2009/joining-the-swedish-egovernment-delegation/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 11:14:43 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/2009/joining-the-swedish-egovernment-delegation/</guid>
		<description><![CDATA[A while ago I was offered a position with the Swedish eGovernment Delegation. I will be working with IT standardisation issues and the next revision of guidelines for public websites.]]></description>
			<content:encoded><![CDATA[<p>A while ago I was offered a position with the <a href="http://en.edelegationen.se/">Swedish eGovernment Delegation</a>. </p>
<p>I will be working with IT standardisation issues and the next revision of guidelines for public websites.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2009%2Fjoining-the-swedish-egovernment-delegation%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2009/joining-the-swedish-egovernment-delegation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Solving Project Euler Problems With Ioke</title>
		<link>http://www.peterkrantz.com/2009/project-euler-in-ioke/</link>
		<comments>http://www.peterkrantz.com/2009/project-euler-in-ioke/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 18:26:10 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Ioke]]></category>
		<category><![CDATA[euler]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/?p=256</guid>
		<description><![CDATA[For those of you that have been following Ola Bini's work on <a href="http://ioke.org/">Ioke</a>, the dynamic language for the JVM, I am happy to report that the current release 0.1.1 is usable enough to solve <a href="http://projecteuler.net/">Project Euler</a> problems with. I wanted to learn more about Ioke and the best way to learn a new language is to use it on your own. So, here is some example Ioke code for some of the simpler Project Euler problems.]]></description>
			<content:encoded><![CDATA[<p>For those of you that have been following Ola Bini&#8217;s work on <a href="http://ioke.org/">Ioke</a>, the dynamic language for the JVM, I am happy to report that the current release 0.1.1 is usable enough to solve <a href="http://projecteuler.net/">Project Euler</a> problems with. I wanted to learn more about Ioke and the best way to learn a new language is to use it on your own. So, here is some example Ioke code for some of the simpler Project Euler problems.</p>
<h2>Problem 1</h2>
<p>If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000.</p>
<p>Brute force version below.</p>
<pre class="brush: jscript;">
n = 1
sum = 0
while(n &lt; 1000,
      if(n % 3 == 0 or n % 5 == 0, sum += n)
      n++
)
sum println
</pre>
<p>Or, as a one-liner after a suggestion from Ola:</p>
<p>(1..999) select(n, n % 3 == 0 or n % 5 == 0) fold(+) println </p>
<h2>Problem 2</h2>
<p>Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, &#8230; Find the sum of all the even-valued terms in the sequence which do not exceed four million.</p>
<pre class="brush: plain;">
sum = 0
fibs = [0, 1]
current_fib = 0
while(current_fib &lt; 4000000,
    current_fib = fibs[0] + fibs[1]
    if(current_fib % 2 == 0, sum += current_fib)
    fibs[0] = fibs[1]
    fibs[1] = current_fib
)
sum println
</pre>
<h2>Problem 3</h2>
<p>The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143?</p>
<p>Using brute force for this one. Faster and more elegant would have been the Rho algorithm.</p>
<pre class="brush: jscript;">
start = 600851475143
num = start
factor = 2

while(factor * factor &lt;= num,
    if(num % factor == 0,
        factor println
        num = num / factor,
        factor++
    )
)

if(num != 1, num println)
</pre>
<h2>Problem 5</h2>
<p>2520 is the smallest number that can be divided by each of the numbers  from 1 to 10 without any remainder. What is the smallest number that is evenly divisible by all of the numbers from 1 to 20?</p>
<p>First, as the numbers 1 to 10 are factors in the numbers 11 to 20 we only need to check divisibility for the the latter. Starting of by setting up methods for greatest common divisor and least common multiple. Brute forcing this by looping over an incremented number will not work in the current version of Ioke (takes a couple of hours). Brute forcing it in Ruby took a couple of seconds.</p>
<pre class="brush: jscript;">
gcd = method(a, b,
    if(b == 0, a,
        gcd(b, a % b)
    )
)

lcm = method(a, b,
    (a / gcd(a, b)) * b
)

(11..20) inject(number, n, lcm(number, n)) println
</pre>
<h2>Problem 18</h2>
<p>Find the maximum total from top to bottom of the triangle below. This solution also works for problem 67 (a much bigger triangle).</p>
<p>By moving from bottom to top, calculating each cell&#8217;s maximum sum and replacing the value with it we&#8217;ll end up with the total in the first cell in the triangle.</p>
<pre class="brush: jscript;">
triangle = [
[75],
[95, 64],
[17, 47, 82],
[18, 35, 87, 10],
[20, 04, 82, 47, 65],
[19, 01, 23, 75, 03, 34],
[88, 02, 77, 73, 07, 63, 67],
[99, 65, 04, 28, 06, 16, 70, 92],
[41, 41, 26, 56, 83, 40, 80, 70, 33],
[41, 48, 72, 33, 47, 32, 37, 16, 94, 29],
[53, 71, 44, 65, 25, 43, 91, 52, 97, 51, 14],
[70, 11, 33, 28, 77, 73, 17, 78, 39, 68, 17, 57],
[91, 71, 52, 38, 17, 14, 91, 43, 58, 50, 27, 29, 48],
[63, 66, 04, 68, 89, 53, 67, 30, 73, 16, 69, 87, 40, 31],
[04, 62, 98, 27, 23, 09, 70, 98, 73, 93, 38, 53, 60, 04, 23],
]

;; We replace cells from the bottom up by finding the max sum for each
;; position in the triangle.

current_row = triangle length - 2

while(current_row &gt; -1,
    pos = 0
    while(pos &lt; triangle[current_row] length,
        triangle[current_row][pos] = triangle[current_row][pos] + \
        ([triangle[current_row + 1][pos], triangle[current_row + 1][pos + 1]] sort)[1]
        pos++
    )

    current_row = current_row - 1
)

triangle[0][0] println
</pre>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2009%2Fproject-euler-in-ioke%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2009/project-euler-in-ioke/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Building your own Twitter client with Fluid and jQuery</title>
		<link>http://www.peterkrantz.com/2008/twitter-client-with-fluid-and-jquery/</link>
		<comments>http://www.peterkrantz.com/2008/twitter-client-with-fluid-and-jquery/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 23:50:28 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Markup]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/?p=169</guid>
		<description><![CDATA[Update: I have made some significant changes to Twoot and it now works well as my primary twitter client. Check out the TODO and README over at Github for more information on features etc. Like many before me, I was searching (unsuccessfully) for a decent twitter client. There are many, but most seem to be [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> I have made some significant changes to Twoot and it now works well as my primary twitter client. Check out the <a href="http://github.com/peterk/twoot/tree/master">TODO and README over at Github</a> for more information on features etc.</p>
<p>Like many before me, I was searching (unsuccessfully) for a decent twitter client. There are many, but most seem to be ad sponsored or based on a rather hefty framework like AIR (which by now, I guess, has been <a href="http://diveintomark.org/archives/2008/07/04/adobe-9">silently installed on my computer anyhow</a>).</p>
<p>Custom apps have major implications for usability so I decided to roll my own. I wanted to try out <a href="http://www.fluidapp.com/">Fluid</a>, the <a href="http://labs.mozilla.com/2007/10/prism/">Prism</a>-like app to contain web apps in their own process/window, to see if it is possible to build a complete open source ad-free twitter client in a single web page only using javascript and HTML.</p>
<p>So, I <a href="http://www.cuil.com/search?q=jquery%20twitter%20plugin&amp;sl=long">cuiled</a> for a <a href="http://jquery.com/">jQuery</a> twitter plugin but had to <a href="http://www.google.se/search?q=jquery+twitter+plugin">google</a> it to find it. Some minor modifications to the code by the fine folks at <a href="http://tweet.seaofclouds.com/">SeaOfClouds</a> and adding a method to post new status messages gave this native-looking OS X twitter client (HUD-style to the left, default style to the right and HUD avatars style below):</p>
<p><img style="float:left" src="http://www.peterkrantz.com/wp-content/uploads/2008/10/twoot-hud.png" alt="Twoot in HUD style" /></p>
<p><img src="http://www.peterkrantz.com/wp-content/uploads/2008/08/screenshot.gif" alt="Custom twitter client with Fluid and javascript" /></p>
<p><img src="http://www.peterkrantz.com/wp-content/uploads/2008/10/twoot-hud-black-avatars.jpg" alt="Twoot with avatars" /></p>
<p>Thank&#8217;s to the twitter json api it was trivial to query my own friend feed and display it in Safari. Then, I used Fluid to create a self contained OSX app that displays my static HTML page. Googling a <a href="http://www.iconarchive.com/show/dragon-soft-icons-by-artua/User-icon.html">nice application icon</a> makes it much better-looking in the taskbar. I decided to call it &#8220;Twoot&#8221;. Twoot consumes little memory and plays nice with embedded URLs (they open in a new Firefox tab).</p>
<p>Unfortunately, Fluid does not allow you to distribute the created app so you will have to roll your own by:</p>
<ol>
<li>Download and install <a href="http://fluidapp.com/">Fluid</a>.</li>
<li>Create a folder called &#8220;twoot&#8221; in your home directory.</li>
<li>Download the <a href="http://github.com/peterk/twoot/tree/master">twoot html, js and css files from github</a> and place in the twoot folder.</li>
<li><del>Edit twoot.js and set your twitter username and password.</del> (Enter credentials in the basic auth form when launching app the first time).</li>
<li>Open Fluid and create a new app by pointing to the twoot.htm file (e.g. file:///users/you/twoot/twoot.htm) and set a nice icon.</li>
<li>Save the app as &#8220;Twoot&#8221;.</li>
<li>Your new twitter client is ready! Run it and resize as required, set the window to floating, kill tabs etc. Change the twoot.css and html file to customize it further.</li>
</ol>
<p><strong>Simple API:s are wonderful for usability!</strong></p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2008%2Ftwitter-client-with-fluid-and-jquery%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2008/twitter-client-with-fluid-and-jquery/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>Reducing distractions, increasing productivity</title>
		<link>http://www.peterkrantz.com/2008/reducing-distractions/</link>
		<comments>http://www.peterkrantz.com/2008/reducing-distractions/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 21:43:27 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Agile]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/?p=163</guid>
		<description><![CDATA[I spend a lot of time in front of my computer every day. I discovered that over time, I have added so much attention-stealing stuff to my main work environment that I feel constantly interrupted. You get growl notifications, tweets, new email sounds, new email icons, RSS feed notifications and IM alerts. Time to reduce the attention-stealing clutter!]]></description>
			<content:encoded><![CDATA[<p>I have been trying to reduce distractions in my computing environment lately. Apparently, <a href="http://www.thenewatlantis.com/publications/the-myth-of-multitasking">our brains aren&#8217;t wired properly for task switching</a>:</p>
<blockquote><p>&#8230;research has also found that multitasking contributes to the release of stress hormones and adrenaline, which can cause long-term health problems if not controlled, and contributes to the loss of short-term memory.</p></blockquote>
<p>I spend a lot of time in front of my computer every day. I discovered that over time, I have added so much attention-stealing stuff to my main work environment that I feel constantly interrupted. You get growl notifications, tweets, new email sounds, new email icons, RSS feed notifications and IM alerts. When you are reading stuff on the web you are constantly bugged by the <a href="http://gizmodo.com/gadgets/gadgets/the-latest-in-advertising-technology-166598.php">latest in advertising technology</a>.</p>
<p>So, starting a couple of weeks ago I decided to remove attention-stealing stuff from my work environment. A short list so far:</p>
<ol>
<li> Disabling Growl notifications for everything but really important stuff. <em>Done!</em></li>
<li>Turning off new email notfications for Outlook (on my Windows computer at work). <em>Done!</em></li>
<li>Reduced ads in internet content by installing <a href="http://adblockplus.org/en/">Adblock plus</a> in FF3. <em>Done!</em></li>
<li><span style="text-decoration: line-through;">Removed MailPlane icon from taskbar</span>. Set &#8220;Do not disturb&#8221; mode in MailPlane. <em>Done!</em></li>
<li>Turning off IM for long periods of time during the day. <em>Done!</em></li>
<li>Scheduling RSS reading to specific time slots during the day. <em>Hard!</em></li>
<li>Turning off notification sounds in Windows. <em>Done!</em></li>
<li>Hiding the windows taskbar to get rid of spinning mini-icons in the right-hand corner. <em>Done!</em></li>
<li>Turning off yellow alert popups from stuff in the Windows taskbar (like &#8220;A network cable was disconnected&#8221; &#8211; who the hell decided that that was a brilliant idea!?). <em>Not sure how yet.</em></li>
<li>Creatign a consistent editing environment for blogs and wikis with the <a href="http://universaleditbutton.org/Universal_Edit_Button">Universal Edit Button</a>. Done when they&#8217;ve fixed the Delicious extension incompatibility.</li>
</ol>
<p>I am feeling a lot more focussed already. The biggest improvement was from turning of new email notifications in Outlook at work.  I guess the experience is similar to what people are getting from the <a href="http://www.xpday.net/Xpday2007/session/PomodoroTechnique.html">pomodoro technique</a>.</p>
<p>The next step is to reduce clutter in my blogs to stop annoying other people. Mark Pilgrim gave <a href="http://diveintomark.org/archives/2008/06/21/minimalism">some interesting tips in a blog post</a> a while ago and I have implemented some of them already. Who the hell needs a visible RSS link (or RSS for that matter, now that we have <a href="http://en.wikipedia.org/wiki/Atom_(standard)">Atom</a>)? I am thinking about removing the whole category list as well. Do people ever click items in the category list?</p>
<p>It would be great if all apps could share a standard API to set a &#8220;do not disturb mode&#8221; toggable via a keyboard shortcut or a small timer app that allowed you to schedule this mode throughout the workday.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2008%2Freducing-distractions%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2008/reducing-distractions/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Beta testing the Ballmer Tee</title>
		<link>http://www.peterkrantz.com/2008/ballmer-tee-v/</link>
		<comments>http://www.peterkrantz.com/2008/ballmer-tee-v/#comments</comments>
		<pubDate>Wed, 28 May 2008 16:06:19 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/?p=159</guid>
		<description><![CDATA[My son has the dubious pleasure of being the primary beta tester of T-shirt messages. This time it is the first draft of the model that will be called "Ballmer". Turned out pretty OK...]]></description>
			<content:encoded><![CDATA[<p>My son has the dubious pleasure of being the primary beta tester of T-shirt messages. This time it is the first draft of the model that will be called &#8220;Ballmer&#8221;. Turned out pretty OK&#8230;</p>
<p><img class="alignnone size-full wp-image-158" title="beta1-ballmer-tee" src="http://www.peterkrantz.com/wp-content/uploads/2008/05/beta1-ballmer-tee.jpg" alt="T-shirt print including a mirrored head of someone called Ballmer flanked by two flying chairs." width="500" height="374" /></p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2008%2Fballmer-tee-v%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2008/ballmer-tee-v/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dear lazyweb, please pimp our balcony</title>
		<link>http://www.peterkrantz.com/2008/pimp-our-balcony/</link>
		<comments>http://www.peterkrantz.com/2008/pimp-our-balcony/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 17:45:07 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/?p=148</guid>
		<description><![CDATA[Spring is in the air and it is time to start using the balcony. Currently it is in a state of decay and mainly used to store old furniture. I am out of ideas what to make of it. Can you help? Measurements below.]]></description>
			<content:encoded><![CDATA[<p>Spring is in the air and it is time to start using the balcony. Currently it is in a state of decay and mainly used to store old furniture. I am out of ideas what to make of it. Can you help? Measurements below.</p>
<p><img class="aligncenter size-full wp-image-149" title="balcony" src="http://www.peterkrantz.com/wp-content/uploads/2008/04/balcony.gif" alt="balcony" width="500" height="261" /></p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2008%2Fpimp-our-balcony%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2008/pimp-our-balcony/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The day the Routers Died&#8230;</title>
		<link>http://www.peterkrantz.com/2008/the-day-the-routers-died/</link>
		<comments>http://www.peterkrantz.com/2008/the-day-the-routers-died/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 21:21:57 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/2008/the-day-the-routers-died/</guid>
		<description><![CDATA[This pretty much speaks for itself. If I am not mistaken our own packet pro <a href="http://stupid.domain.name/">Patrik Fälström</a> is visible in the audience at the end of the clip.]]></description>
			<content:encoded><![CDATA[<p>This pretty much speaks for itself. If I am not mistaken our own packet pro <a href="http://stupid.domain.name/">Patrik Fälström</a> is visible in the audience at the end of the clip.</p>
<p><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/_y36fG2Oba0&#038;rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/_y36fG2Oba0&#038;rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2008%2Fthe-day-the-routers-died%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2008/the-day-the-routers-died/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Intricacies of PHP compared to Ruby</title>
		<link>http://www.peterkrantz.com/2008/php-for-beginners/</link>
		<comments>http://www.peterkrantz.com/2008/php-for-beginners/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 09:25:19 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/2008/php-for-beginners/</guid>
		<description><![CDATA[Via Tim Bray’s blog I found zestyping’s “Why PHP should never be taught”. In it he provides some interesting PHP code that will be difficult for beginners to understand.]]></description>
			<content:encoded><![CDATA[<p>Via <a href="http://www.tbray.org/ongoing/When/200x/2007/12/31/Year-Sweep-Tech">Tim Bray&#8217;s blog</a> I found <a href="http://zestyping.livejournal.com/124503.html">zestyping&#8217;s &#8220;Why PHP should never be taught&#8221;</a>. In it he provides some interesting PHP code that will be difficult for beginners to understand:</p>
<pre>
$a = 0;
$b = "eggs";
$c = "spam";
</pre>
<p>yields:</p>
<pre>
a == b
b != c
a == c
a == d
b != d
c != d
</pre>
<p>(Please note that d hasn&#8217;t been defined). In the comments, people freak out and tell him that this behaviour is defined in the documentation. I guess that makes it even worse. </p>
<p>Trying the same thing in Ruby:</p>
<p>a = 0<br />
b = &#8220;eggs&#8221;<br />
c = &#8220;spam&#8221;</p>
<p>a == b<br />
=> false</p>
<p>b == c<br />
=> false</p>
<p>a == c<br />
=> false</p>
<p>a == d<br />
NameError: undefined local variable or method &#8216;d&#8217; for main:Object from (irb):7</code></p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2008%2Fphp-for-beginners%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2008/php-for-beginners/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Re-enacting Video Transition Effects</title>
		<link>http://www.peterkrantz.com/2007/video-transition-effects/</link>
		<comments>http://www.peterkrantz.com/2007/video-transition-effects/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 08:48:43 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Trends]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/2007/video-transition-effects/</guid>
		<description><![CDATA[Please note the video progress bar. Via Jim Carlberg&#8217;s Finstilt.se.]]></description>
			<content:encoded><![CDATA[<p>Please note the video progress bar.</p>
<p><object width="425" height="353"><param name="movie" value="http://www.youtube.com/v/xfmJ6m97HqQ"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/xfmJ6m97HqQ" type="application/x-shockwave-flash" wmode="transparent" width="425" height="353"></embed></object></p>
<p>Via <a href="http://www.finstilt.se/2007/08/16/trampolineffekter/">Jim Carlberg&#8217;s Finstilt.se</a>.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2007%2Fvideo-transition-effects%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2007/video-transition-effects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
