<?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>yoki.org</title>
	<atom:link href="http://www.yoki.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yoki.org</link>
	<description>just random stuff</description>
	<lastBuildDate>Tue, 21 Feb 2012 16:34:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Beta testing Buienalarm v2</title>
		<link>http://www.yoki.org/2012/01/19/beta-testing-buienalarm-v2/</link>
		<comments>http://www.yoki.org/2012/01/19/beta-testing-buienalarm-v2/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 08:35:12 +0000</pubDate>
		<dc:creator>Franklin</dc:creator>
				<category><![CDATA[Buienalarm]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[buienradar]]></category>

		<guid isPermaLink="false">http://www.yoki.org/?p=38411</guid>
		<description><![CDATA[Right now, I&#8217;m working on a new version of Buienalarm with some highly requested features. I&#8217;m announcing new versions on Google+ when I build them. If you want to help me out testing those builds (and if you live in &#8230; <a href="http://www.yoki.org/2012/01/19/beta-testing-buienalarm-v2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Right now, I&#8217;m working on a new version of Buienalarm with some highly requested features. I&#8217;m announcing <a href="https://plus.google.com/108662659693284960910/posts/EtVxesNn8hW" title="Buienalarm beta versions on Google+" target="_blank">new versions on Google+</a> when I build them. If you want to help me out testing those builds (and if you live in or around the Netherlands), please send me a notice on Google+.</p>
<p>For those that were a bit worried after Tweakers.net <a href="http://tweakers.net/nieuws/78626/weergegevens-buienradar-blijven-gratis-voor-ontwikkelaars.html" title="'Buienradar starts asking money'" target="_blank">announced</a> (in Dutch) that developers should start paying for using the Buienradar data in their apps: no worries! I still have permission to use the precipitation forecast data in Buienalarm.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yoki.org/2012/01/19/beta-testing-buienalarm-v2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hibernation on newer MacBook Pros</title>
		<link>http://www.yoki.org/2011/12/15/hibernation-on-newer-macbook-pros/</link>
		<comments>http://www.yoki.org/2011/12/15/hibernation-on-newer-macbook-pros/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 11:24:36 +0000</pubDate>
		<dc:creator>Franklin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[macbook pro]]></category>

		<guid isPermaLink="false">http://www.yoki.org/?p=36932</guid>
		<description><![CDATA[Apparently, since Apple started shipping MacBook Pros (MBPs), the original way of sleeping used on the Powerbook wasn&#8217;t ported over to the MBP. On Powerbooks, if you would let it go to sleep, it would just keep RAM powered on, &#8230; <a href="http://www.yoki.org/2011/12/15/hibernation-on-newer-macbook-pros/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Apparently, since Apple started shipping MacBook Pros (MBPs), the original way of sleeping used on the Powerbook wasn&#8217;t ported over to the MBP. On Powerbooks, if you would let it go to sleep, it would just keep RAM powered on, sleep almost instantly, and wake rapidly. An MBP also keeps RAM powered on by default, but also writes its memory contents to a sleep image. The machine still wakes rapidly, but sleeping takes a lot more time. In my case, it needs to write 4 gigabytes of RAM to that sleep image (which resides in /var/vm/ by the way). I don&#8217;t like putting my MBP in my bag while I don&#8217;t have the audible confirmation of the fans that it&#8217;s turned off, so I decided to write a bash script with some <a title="Set newer portable Macs' sleep mode" href="http://www.macworld.com/article/53471/2006/10/sleepmode.html" target="_blank">information about different sleep modes</a> in the back of my head.</p>
<p><span id="more-36932"></span></p>
<p>The information that I found was that there are basically three (or five) different sleep modes:</p>
<ol start="0">
<li value="0"><strong>Fast sleep mode </strong>— RAM is still powered on, and nothing is written to the hard drive. Sleeping is fast, and waking is fast. Advantage: it&#8217;s <strong>fast</strong>!</li>
<li value="1"><strong>Hibernation</strong> — RAM contents are written to disk and the MBP just powers down. Sleeping takes some time, and waking takes some time. Advantage: no additional power is needed to stay in hibernation mode.</li>
<li value="3"><strong>Safe sleep mode</strong> — RAM contents are written to disk, and RAM is still powered on. Sleeping takes some time, and waking is fast. Advantage: if the MBP runs out of battery while in safe sleep mode, hibernation mode is entered automatically, so no data will be lost.</li>
<li value="5">Same as 1, but for MBPs that use secure virtual memory.</li>
<li value="7">Same as 3, but for MBPs that use secure virtual memory.</li>
</ol>
<p>In OS X, you can manipulate power management settings using <code>pmset</code>. To see what mode your MBP is currently in, issue the following command in a terminal:</p>
<p style="text-align: center;"><code>pmset -g | grep hibernatemode</code></p>
<p><code></code>You&#8217;ll probably see that your MBP is in hibernatemode 3. To change the hibernatemode, you can issue the following command:</p>
<p style="text-align: center;"><code>sudo pmset -a hibernatemode n</code></p>
<p>where n is the number of the desired sleep mode in the list above.</p>
<p>To make life a bit easier, I wrote a script to make these changes on the command line. You can <a title="Download the hibernate script" href="http://www.yoki.org/wp-content/uploads/2011/12/hibernate" target="_blank">download the script</a>, or just copy/paste the lines that I&#8217;ve pasted below into a file on your harddrive. Call it <code>hibernate</code> and put it in <code>~/bin/</code> and make sure that <code>~/bin/</code> is in your PATH environment variable. Don&#8217;t forget to make it executable as well! I assume that you know how to do all that. If not, please leave a comment. <img src='http://www.yoki.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The script takes three parameters:</p>
<ul>
<li><strong>-f</strong> — Enables fast sleep mode.</li>
<li><strong>-h</strong> — Enables hibernate mode.</li>
<li><strong>-s</strong> — Enabled safe sleep mode, which is default on newer MacBook Pros.</li>
</ul>
<div>Without parameters, it prints usage information and the current sleep mode. Here comes the script.</div>
<pre class="brush:bash">#!/bin/bash
case "$1" in
	-f) 	sudo pmset -a hibernatemode 0
		result=$?
		if [ $result -eq 0 ];then
			sudo rm /var/vm/sleepimage
			echo "Fast sleep enabled and sleep image removed"
			exit 0
		else
			echo "Password incorrect or not entered?"
			exit 1
		fi
		;;
	-h)	sudo pmset -a hibernatemode 1
		result=$?
		if [ $result -eq 0 ];then
			echo "Hibernate enabled"
			exit 0
		else
			echo "Password incorrect or not entered?"
			exit 1
		fi
		;;
	-s)	sudo pmset -a hibernatemode 3
		result=$?
		if [ $result -eq 0 ];then
			echo "Safe sleep enabled"
			exit 0
		else
			echo "Password incorrect or not entered?"
			exit 1
		fi
		;;
	*)	echo "Hibernate script by Franklin van Velthuizen"
		echo "usage: hibernate [-fhs]"
		echo "-f	Enable fast sleep mode"
		echo "-h	Enable hibernation mode"
		echo "-s	Enable safe sleep mode (default on newer MacBook Pros)"
		echo ""
		currentmode=`pmset -g | grep hibernatemode`
		set -- junk $currentmode
		shift
		if [ -n "${2+x}" ]; then
			if [ $2 -eq 0 ]; then
				echo "Current mode: Fast sleep mode"
			else if [ $2 -eq 1 ]; then
				echo "Current mode: Hibernation mode"
			else if [ $2 -eq 3 ]; then
				echo "Current mode: Safe sleep mode"
			else
				echo "Current mode: unknown"
			fi fi fi
		else
			echo "Current mode: unknown"
		fi
		exit 1
		;;
esac</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.yoki.org/2011/12/15/hibernation-on-newer-macbook-pros/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slides from my session at Droidcon</title>
		<link>http://www.yoki.org/2011/11/24/slides-from-my-session-at-droidcon/</link>
		<comments>http://www.yoki.org/2011/11/24/slides-from-my-session-at-droidcon/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 09:35:07 +0000</pubDate>
		<dc:creator>Franklin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[droidcon]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[slides]]></category>

		<guid isPermaLink="false">http://www.yoki.org/?p=35534</guid>
		<description><![CDATA[Here are the slides that I&#8217;ve used during my yellow room session at the Dutch edition of Droidcon. The talked about how to integrate Google Analytics in your Android app. The response from the audience was positive, so I&#8217;m very &#8230; <a href="http://www.yoki.org/2011/11/24/slides-from-my-session-at-droidcon/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here are the slides that I&#8217;ve used during my yellow room session at the <a title="DroidconNL" href="http://droidcon.nl/" target="_blank">Dutch edition of Droidcon</a>. The talked about how to integrate Google Analytics in your Android app. The response from the audience was positive, so I&#8217;m very pleased with that!</p>
<p>I released <a title="Example code" href="http://www.yoki.org/droidconNL/droidconNL.zip">example code</a> as well to go along with the slides.</p>
<iframe src="http://www.slideshare.net/slideshow/embed_code/10303616" width="584" height="476" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe><br/><br/>
]]></content:encoded>
			<wfw:commentRss>http://www.yoki.org/2011/11/24/slides-from-my-session-at-droidcon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speaking at droidconNL 2011</title>
		<link>http://www.yoki.org/2011/10/30/speaking-at-droidconnl-2011/</link>
		<comments>http://www.yoki.org/2011/10/30/speaking-at-droidconnl-2011/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 20:33:04 +0000</pubDate>
		<dc:creator>Franklin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[droidcon]]></category>

		<guid isPermaLink="false">http://www.yoki.org/?p=32964</guid>
		<description><![CDATA[I am invited by the organizers of droidconNL to speak at their conference, which is to be held on November 22/23 in Amsterdam. During that conference, I will be talking about integrating Google Analytics in Android apps. I will also cover &#8230; <a href="http://www.yoki.org/2011/10/30/speaking-at-droidconnl-2011/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-32968 alignleft" style="border-style: initial; border-color: initial; border-width: 0px;" title="droidcon logo" src="http://www.yoki.org/wp-content/uploads/2011/10/droidcon_logo-300x93.png" alt="droidcon logo" width="300" height="93" />I am invited by the organizers of <a title="droidconNL" href="http://www.droidcon.nl/" target="_blank">droidconNL</a> to speak at their conference, which is to be held on November 22/23 in Amsterdam. During that conference, I will be talking about integrating Google Analytics in Android apps. I will also cover some of the caveats that you might encounter and how to overcome those by showing example code. So, if you&#8217;re interested, please come to my talk on November 23rd (the second day of the conference) at 12:30 PM in Room B. We&#8217;ll grab a drink afterwards. <img src='http://www.yoki.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Be sure to check out the <a title="droidconNL programme" href="http://droidcon.nl/?page_id=352" target="_blank">rest of the programme</a> as well. It includes speakers from Google and Research In Motion, as well as other interesting speakers. <a title="droidconNL tickets" href="http://droidcon.nl/?page_id=197" target="_blank">Tickets</a> are still available. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.yoki.org/2011/10/30/speaking-at-droidconnl-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Must-have Chrome extensions for Google+ users</title>
		<link>http://www.yoki.org/2011/07/17/must-have-chrome-extensions-for-google-users-2/</link>
		<comments>http://www.yoki.org/2011/07/17/must-have-chrome-extensions-for-google-users-2/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 09:59:01 +0000</pubDate>
		<dc:creator>Franklin</dc:creator>
				<category><![CDATA[Google+]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[google+]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.yoki.org/?p=27446</guid>
		<description><![CDATA[If you&#8217;re among the lucky few that have access to Google+, you might want to add a few Chrome extensions that will improve the &#8216;Google+ experience&#8217;. These are two extensions that I find very useful. Surplus — This extension let&#8217;s you &#8230; <a href="http://www.yoki.org/2011/07/17/must-have-chrome-extensions-for-google-users-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re among the lucky few that have access to <a title="Google+" href="http://plus.google.com/" target="_blank">Google+</a>, you might want to add a few Chrome extensions that will improve the &#8216;Google+ experience&#8217;. These are two extensions that I find very useful.</p>
<ol>
<li><a title="Surplus" href="https://chrome.google.com/webstore/detail/pfphgaimeghgekhncbkfblhdhfaiaipf" target="_blank">Surplus</a> — This extension let&#8217;s you add the red box for notifications to your Chrome extension bar. This way, you don&#8217;t have to be on any site of Google to see that you have new notifications. You can click on the red box and respond to those notifications, just like you would with the regular red box.</li>
<li><a title="+1 Plus One Extension" href="https://chrome.google.com/webstore/detail/bkeiokdfjgnaglohebonlmpimnpinahd?hl=nl" target="_blank">+1 Plus One Extension</a> — With this extension, you can +1 <em>any</em> website, even if it doesn&#8217;t contain one of those nifty +1 buttons itself.</li>
</ol>
<div>
<div id="attachment_27431" class="wp-caption alignleft" style="width: 250px"><a href="http://www.yoki.org/wp-content/uploads/2011/07/surplus.png" rel="lightbox[27446]"><img class="size-medium wp-image-27431 " title="Surplus" src="http://www.yoki.org/wp-content/uploads/2011/07/surplus-300x206.png" alt="" width="240" height="165" /></a><p class="wp-caption-text">Surplus</p></div>
<div id="attachment_27432" class="wp-caption alignleft" style="width: 250px"><a href="http://www.yoki.org/wp-content/uploads/2011/07/plusone.png" rel="lightbox[27446]"><img class="size-medium wp-image-27432 " title="+1 Plus One Extension" src="http://www.yoki.org/wp-content/uploads/2011/07/plusone-300x206.png" alt="" width="240" height="165" /></a><p class="wp-caption-text">+1 Plus One Extension</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.yoki.org/2011/07/17/must-have-chrome-extensions-for-google-users-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

