<?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>Misty thoughts</title>
	<atom:link href="http://blog.kfirbreger.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kfirbreger.com</link>
	<description></description>
	<lastBuildDate>Thu, 25 Feb 2010 20:49:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting session ID in Drupal 6</title>
		<link>http://blog.kfirbreger.com/2010/02/25/getting-session-id-in-drupal-6/</link>
		<comments>http://blog.kfirbreger.com/2010/02/25/getting-session-id-in-drupal-6/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 20:49:22 +0000</pubDate>
		<dc:creator>Kfir</dc:creator>
				<category><![CDATA[guide]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.kfirbreger.com/?p=257</guid>
		<description><![CDATA[
Drupal saves its sessions in the sessions table. One can always query they table to get the session ID. There is however a faster way.
If the user is logged it, the session id can be found with the following code:

global $user;
$user->sid;

In any case the session id can also be read from the cookie:

$_COOKIE[session_name()];

]]></description>
			<content:encoded><![CDATA[<p>
Drupal saves its sessions in the sessions table. One can always query they table to get the session ID. There is however a faster way.<br />
If the user is logged it, the session id can be found with the following code:</p>
<pre>
global $user;
$user->sid;
</pre>
<p><span>In any case the session id can also be read from the cookie:</span></p>
<pre>
$_COOKIE[session_name()];
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.kfirbreger.com/2010/02/25/getting-session-id-in-drupal-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Theming a form in Drupal 6</title>
		<link>http://blog.kfirbreger.com/2010/02/23/theming-a-form-in-drupal-6/</link>
		<comments>http://blog.kfirbreger.com/2010/02/23/theming-a-form-in-drupal-6/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 11:07:19 +0000</pubDate>
		<dc:creator>Kfir</dc:creator>
				<category><![CDATA[Me]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[form api]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[theming]]></category>

		<guid isPermaLink="false">http://blog.kfirbreger.com/2010/02/23/theming-a-form-in-drupal-6/</guid>
		<description><![CDATA[Form theming in drupal 6 is quite flexible. One of the nicest tricks is the ability to theme the form in stages. Calling drupal_render on a part of the form will not only return the rendered version of it, but it will also mark that part as rendered so that when you call the final [...]]]></description>
			<content:encoded><![CDATA[<p>Form theming in drupal 6 is quite flexible. One of the nicest tricks is the ability to theme the form in stages. Calling drupal_render on a part of the form will not only return the rendered version of it, but it will also mark that part as rendered so that when you call the final drupal_render over the whole form, it will not re-render the parts already rendered.</p>
<p>Remember that in order for the form to function correctly there are some hidden fields in every form that must be added to the form. Also drupal needs to generate the form tag. Therefore it is my advise, after doing the custom rendering of the parts you want, add a general render of the form. this will reduce the chance of problems with form submission.</p>
<p>Special thanks to Rolf van de Krol, for this tip.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kfirbreger.com/2010/02/23/theming-a-form-in-drupal-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sir Richard Francis Burton</title>
		<link>http://blog.kfirbreger.com/2009/08/31/sir-richard-francis-burton/</link>
		<comments>http://blog.kfirbreger.com/2009/08/31/sir-richard-francis-burton/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 08:52:42 +0000</pubDate>
		<dc:creator>Kfir</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[thoughts]]></category>

		<guid isPermaLink="false">http://blog.kfirbreger.com/?p=221</guid>
		<description><![CDATA[Sir Richard Francis Burton: "'The more I study religions the more I am convinced that man never worshipped anything but himself.'"
(Via Quotes of the Day.)
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.quotationspage.com/quote/758.html">Sir Richard Francis Burton</a>: "'The more I study religions the more I am convinced that man never worshipped anything but himself.'"</p>
<p>(Via <a href="http://www.quotationspage.com/qotd.html">Quotes of the Day</a>.)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kfirbreger.com/2009/08/31/sir-richard-francis-burton/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The history of Johnnie Walker in 6min</title>
		<link>http://blog.kfirbreger.com/2009/08/29/the-history-of-johnnie-walker-in-6min/</link>
		<comments>http://blog.kfirbreger.com/2009/08/29/the-history-of-johnnie-walker-in-6min/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 07:28:59 +0000</pubDate>
		<dc:creator>Kfir</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[thoughts]]></category>

		<guid isPermaLink="false">http://blog.kfirbreger.com/?p=192</guid>
		<description><![CDATA[
The first whiskey I ever drank was a Johnnie Walker Red Label. It was horrible. Burned my mouth completely. I was, as can be expected young and knew nothing about whiskey, aside form the name. And that it was apparently "cool" to drink. So I tried. After that one sip I stayed of whiskey for [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>The first whiskey I ever drank was a Johnnie Walker Red Label. It was horrible. Burned my mouth completely. I was, as can be expected young and knew nothing about whiskey, aside form the name. And that it was apparently "cool" to drink. So I tried. After that one sip I stayed of whiskey for over two years.</p>
<p>The second tim eI tasted whiskey, it was a Johnnie Walker Black label. It was strong, burning, and delightful. I do not know what has changed in those two years or if something changed at all. Maybe if I had tried the black first instead of the red, I would be set right off the start. For the next three years or so I only drank Johnnie Blacks.</p>
<p>As my taste evolved I stated trying more whiskeys. Like most people I started to value the single malts more and more. Eventually completely abandoning the blended sorts, of which Johnnie was my darling. Nowadays I have at home a small collection of singles, out of which I drink a glass almost daily. Whiskey has definitely become my favorite strong drink. Johnnie had a lot to do with it</p>
<p>That is why I was so delighted to see this 6 minute film over the history of Johnnie Walker. Even if you are not a fan of the drink, or the brand, it is worth 6 minutes of your time</p></div>
<div><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/S5QknFnqhhs&amp;hl=en&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/S5QknFnqhhs&amp;hl=en&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<div>
<p>Update: Unfortunatley the film was removed due to copy-write violations. quite unfortunate</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.kfirbreger.com/2009/08/29/the-history-of-johnnie-walker-in-6min/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Byline review</title>
		<link>http://blog.kfirbreger.com/2009/08/29/byline-review/</link>
		<comments>http://blog.kfirbreger.com/2009/08/29/byline-review/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 07:18:43 +0000</pubDate>
		<dc:creator>Kfir</dc:creator>
				<category><![CDATA[reviews]]></category>
		<category><![CDATA[byline]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[rss reader]]></category>

		<guid isPermaLink="false">http://blog.kfirbreger.com/?p=181</guid>
		<description><![CDATA[For a while now I have been using Google Reader as my rss reader. Managing feeds was simple, though not ideal and it was accessible from just about any computer. Better yet, I did not need to find way to sync between all my different rss readers, which was starting to get tiresome. On the iPhone [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.phantomfish.com/byline.html"><img class="alignright size-full wp-image-209" title="Byline icon" src="http://blog.kfirbreger.com/wp-content/uploads/2009/08/bylineicon.png" alt="Byline icon" width="128" height="128" /></a>For a while now I have been using Google Reader as my rss reader. Managing feeds was simple, though not ideal and it was accessible from just about any computer. Better yet, I did not need to find way to sync between all my different rss readers, which was starting to get tiresome. On the iPhone the situation was a bit different. Even though Google Reader on the iPhone is reasonable, it felt slugish and not very natural. Running in mobile safari, that was of course, to be expected.</p>
<p>I decided it was time to look for a dedicated rss reader for the iPhone. I was looking for an application that offered syncing with Google Reader, and that was about it.  I decided to try Byline from Phantom Fish. I have been using Byline for a month now and am very happy with it. So much so I decided to write my first app review about it. Let me give you a closer look at it.</p>
<div>
<ul>
<li><strong>The icon:</strong> Clear and unique enough to not be confused with other apps. The icon is definitely beautiful, though in my opinion it could have been a bit more abstract.</li>
<li><strong>Setting up:</strong> Setting up is as simple as logging into your google account. Works well.</li>
<li><strong>Usage:</strong> The app is responsive and slick. It feels fast and the UI is very natural. I cant imagine going back to Google Reader.</li>
<li><strong>Sync:</strong> Syncing works really well. I can't remember having any kind of trouble with it.</li>
</ul>
<p>As I mentioned before, Byline also caches the feeds so that you can read while offline. Traveling around europe regularly, it is possible for me to use my rss reader without the need to pay ridiculous amounts of money for roaming data (1 voor 100kb).</p></div>
<p>All in all I am very happy with Byline. It does everything I wanted it to do, and it does it well. What I am missing is the ability to view entries per feed instead of per group. However this is a minor complain seeing the overall experience.<br />
In fact I liked the use of Byline so much, I switched back to an rss reader app on my computers as well. Readers that sync with Google Reader that is. Look at <a title="Phantom Fish Byline" href="http://www.phantomfish.com/byline.html" target="_blank">Phantom Fishs</a> Byline page for screenshots and video demo. Or use the link bellow to go directly to the app store.</p>
<p><img class="aligncenter size-full wp-image-213" title="Get Byline on the app store" src="http://blog.kfirbreger.com/wp-content/uploads/2009/08/appstore.png" alt="Get Byline on the app store" width="224" height="73" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kfirbreger.com/2009/08/29/byline-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opposite directions</title>
		<link>http://blog.kfirbreger.com/2009/08/28/opposite-directions/</link>
		<comments>http://blog.kfirbreger.com/2009/08/28/opposite-directions/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 06:54:47 +0000</pubDate>
		<dc:creator>Kfir</dc:creator>
				<category><![CDATA[thoughts]]></category>
		<category><![CDATA[justice scalia]]></category>
		<category><![CDATA[law]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://blog.kfirbreger.com/?p=201</guid>
		<description><![CDATA[You probably heard about justice Scalia of the American supreme court saying executing an innocent man is not unlawful because he was found guilty in a legal trial. New findings which can acquit said innocent man, are, for justice Scalia, no reason not not proceed with what a court has found to be just.
That may [...]]]></description>
			<content:encoded><![CDATA[<p>You probably heard about justice Scalia of the American supreme court saying executing an innocent man is not unlawful because he was found guilty in a legal trial. New findings which can acquit said innocent man, are, for justice Scalia, no reason not not proceed with what a court has found to be just.<br />
That may sound strange, even scary coming from a supreme court justice. The thing is, I have seen this kind of thinking before from people who give service to society. Sometimes they seem to loose sight of what is actually the grand reason for them being there. They stop seeing their system as a system that gives service to society, but that society is there so obey their wonderful system.</p>
<p>This I believe is exactly what happened to justice Scalia. He lost sight of the reason he is there. To serve society. Executing an innocent man does not do that in any way. Look at it from the other direction, and you can see how he reasons.</p>
<p>One must ask himself if someone who completely lost sight of what its all about could, or should, remain in his position.</p>
<p>For more information on this case read <a href="http://writ.news.findlaw.com/dorf/20090826.html">this</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kfirbreger.com/2009/08/28/opposite-directions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bolt&#8217;s new world record at the Berlin world championship</title>
		<link>http://blog.kfirbreger.com/2009/08/22/bolts-new-world-record-at-the-berlin-world-championship/</link>
		<comments>http://blog.kfirbreger.com/2009/08/22/bolts-new-world-record-at-the-berlin-world-championship/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 11:57:11 +0000</pubDate>
		<dc:creator>Kfir</dc:creator>
				<category><![CDATA[sport]]></category>
		<category><![CDATA[100m]]></category>
		<category><![CDATA[usain bolt]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[world record]]></category>

		<guid isPermaLink="false">http://blog.kfirbreger.com/?p=196</guid>
		<description><![CDATA[



Look carefully at Usain as he moves. There is a lot of side movement still present. If he can improve his technique, I believe he might break the 9.5 sec barrier. How wonderful it is to see this man run!

]]></description>
			<content:encoded><![CDATA[<div>
<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/JR81cx87_ko&#038;hl=en&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/JR81cx87_ko&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>
</div>
<div>
<p>Look carefully at Usain as he moves. There is a lot of side movement still present. If he can improve his technique, I believe he might break the 9.5 sec barrier. How wonderful it is to see this man run!</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.kfirbreger.com/2009/08/22/bolts-new-world-record-at-the-berlin-world-championship/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool longboard video</title>
		<link>http://blog.kfirbreger.com/2009/07/14/first-longboard-post/</link>
		<comments>http://blog.kfirbreger.com/2009/07/14/first-longboard-post/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 13:34:21 +0000</pubDate>
		<dc:creator>Kfir</dc:creator>
				<category><![CDATA[sport]]></category>
		<category><![CDATA[longboard]]></category>
		<category><![CDATA[skateboard]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.kfirbreger.com/?p=178</guid>
		<description><![CDATA[
For a while now I have been thinking about buying along board. It looks a like a lot of fun and I am sure it will improve my snowboarding. For some inspiration, here is one amazing longboard video




]]></description>
			<content:encoded><![CDATA[<div>
<p>For a while now I have been thinking about buying along board. It looks a like a lot of fun and I am sure it will improve my snowboarding. For some inspiration, here is one amazing longboard video</p>
</div>
<div>
<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1712514&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=1712514&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="375"></embed></object>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.kfirbreger.com/2009/07/14/first-longboard-post/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to truly disable drupal cache</title>
		<link>http://blog.kfirbreger.com/2009/05/29/how-to-truly-disable-drupal-cache/</link>
		<comments>http://blog.kfirbreger.com/2009/05/29/how-to-truly-disable-drupal-cache/#comments</comments>
		<pubDate>Fri, 29 May 2009 10:26:05 +0000</pubDate>
		<dc:creator>Kfir</dc:creator>
				<category><![CDATA[guide]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.kfirbreger.com/?p=168</guid>
		<description><![CDATA[

Drupal, like most CMSes uses cache intensively to speed things up. In a production site that is exactly what you what. However when developing, cache can cause you much pain.



If your an expert in drupal you probably already realized when you need to clear the cache in order to see changes and when not too. [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>
Drupal, like most CMSes uses cache intensively to speed things up. In a production site that is exactly what you what. However when developing, cache can cause you much pain.</p>
</div>
<div>
<p>
If your an expert in drupal you probably already realized when you need to clear the cache in order to see changes and when not too. the developer module even makes it quite easy to do. However for me, and I am quite sure to quite a lot of other people it is not that clear.
</p>
</div>
<div>
<p>"Wait", you might say. "Drupal has a disable cache setting". You would be right to say that. Only it doesn't completely disable the cache, only part of the cache, namely the page caching. To truly disable cache you need to do a bit of a hacking to the cache code. Yes I know they say to never hack core (cache is part of the core drupal release). for me this was worth it. I figure as long as you remember its there and don't use it in production you should be fine. The following piece of code needs to be added in <code>include/cache.inc</code>. There are two functions there that you need to edit:</p>
<ul>
<li><code>cache_get</code></li>
<li><code>cache_set</code></li>
</ul>
<p>In <code>cache_get</code> place the code right after the <code>global $user</code>. In <code>cache_set</code>  place it at the start of the function. Here is the code that you need to add.<br />
<code><br />
if(variable_get('cache', CACHE_DISABLED) == CACHE_DISABLED) {<br />
    return 0;<br />
}<br />
</code><br />
Kudos for this hack goes to Rolf van der Krol. Cheers mate.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.kfirbreger.com/2009/05/29/how-to-truly-disable-drupal-cache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A few more pictures</title>
		<link>http://blog.kfirbreger.com/2009/05/24/a-few-more-pictures/</link>
		<comments>http://blog.kfirbreger.com/2009/05/24/a-few-more-pictures/#comments</comments>
		<pubDate>Sun, 24 May 2009 19:49:14 +0000</pubDate>
		<dc:creator>Kfir</dc:creator>
				<category><![CDATA[Me]]></category>
		<category><![CDATA[365]]></category>

		<guid isPermaLink="false">http://blog.kfirbreger.com/?p=129</guid>
		<description><![CDATA[This posts cover a few days worth of picture.

The 20/5 I took my camera with me to work to make some pictures of the vila and its surrounding. This gate is the starting point of the path I jog on regularly. The sun was just coming up, it was all really wonderful to watch.




The next [...]]]></description>
			<content:encoded><![CDATA[<div>This posts cover a few days worth of picture.</p>
<div>
<p>The 20/5 I took my camera with me to work to make some pictures of the vila and its surrounding. This gate is the starting point of the path I jog on regularly. The sun was just coming up, it was all really wonderful to watch.</p>
<p><img class="size-medium wp-image-130" title="Wooden Path" src="http://blog.kfirbreger.com/wp-content/uploads/2009/05/img_7650.jpg" alt="The start of a path in the woods next to the DOP villa"  width="450" height="299"/>
</div>
<div>
<p>
The next picture is for the 21/5. That was a Thursday and Eran arrived for a visit. Made a mas out of Aharale and Mine plans to go climbing in France. Totally worth it though. Its great seeing Eran, which I have not seen for a very long time.</p>
<p><img class="size-medium wp-image-133" title="Eran" src="http://blog.kfirbreger.com/wp-content/uploads/2009/05/img_0038.jpg" alt="Eran sitting in Oliver's garden" width="338" height="450" /></p>
</div>
<div>
<p>The picture for the 22 is not dramatic. Unfortunately I have had little time to actually take pictures that day, so I stuck the camera outside the living room picture and snapped a few shots.</p>
<p><img class="size-medium wp-image-137" title="Living room view" src="http://blog.kfirbreger.com/wp-content/uploads/2009/05/img_7657.jpg" alt="Plantsoen park from out apartment window" width="450" height="299" /></p>
</div>
<div>
<p>On Saturday the 23, Paula returned from her hiking vacation in the lake district. While I was waiting for her ship to dock up, I came across this sign. I just had to take a picture of it. Quite brilliant if you ask me.<br />
<img class="size-medium wp-image-138" title="Important sign" src="http://blog.kfirbreger.com/wp-content/uploads/2009/05/img_7658.jpg" alt="Beware of dropping with car into water?" width="450" height="299" /></p>
</div>
<div>
<p>Today Ellen, Eran Paula and I went hiking in the dunes to the west of Den Haag. It was a beautiful day and we really enjoyed the landscape. It changes from city to forest to dunes to beach, all within a few km walk. I snapped this in one of out breaks, just before we broke out of the forest and into the dunes. I love the way the water and the light play with each other in this picture.</p>
<p><img class="size-medium wp-image-139" title="Water reflections" src="http://blog.kfirbreger.com/wp-content/uploads/2009/05/img_7678.jpg" alt="Some play of water and light." width="450" height="299" /></p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.kfirbreger.com/2009/05/24/a-few-more-pictures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
