<?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>Sebastian Skuse</title>
	<atom:link href="http://seb.skus.es/feed/" rel="self" type="application/rss+xml" />
	<link>http://seb.skus.es</link>
	<description></description>
	<lastBuildDate>Tue, 18 Sep 2012 18:29:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Git &#8220;days worked on repository&#8221;</title>
		<link>http://seb.skus.es/2012/05/git-days-worked-on-repository/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=git-days-worked-on-repository</link>
		<comments>http://seb.skus.es/2012/05/git-days-worked-on-repository/#comments</comments>
		<pubDate>Mon, 28 May 2012 10:49:19 +0000</pubDate>
		<dc:creator>sebskuse</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://seb.skus.es/?p=124</guid>
		<description><![CDATA[Recently I needed to get the number of days i&#8217;d worked on a project. I decided to use my Git commit history to do this. After a bit of tinkering around I came up with this solution. There&#8217;s probably a &#8230; <a href="http://seb.skus.es/2012/05/git-days-worked-on-repository/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Recently I needed to get the number of days i&#8217;d worked on a project. I decided to use my Git commit history to do this. After a bit of tinkering around I came up with this solution.</p>
<p>There&#8217;s probably a better way to do this, but this is what I came up with:</p>
<ol>
<li>Get the dates of all commits from now till the 1st of May 2012</li>
<li>Pull out the first 10 characters (Tue May 22, for example)</li>
<li>Filter by uniqueness</li>
<li>Count the number of lines returned.</li>
</ol>
<p><code><br />
git log --pretty=format:"%ad" --after="1 May 2012" | cut -c -10 | uniq | wc -l<br />
</code></p>
<p>(Note you&#8217;ll probably need to change the code to pull out only your commits, on this repository i&#8217;m the only committer.)</p>
]]></content:encoded>
			<wfw:commentRss>http://seb.skus.es/2012/05/git-days-worked-on-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone: Get to Bluetooth directly</title>
		<link>http://seb.skus.es/2011/11/iphone-get-to-bluetooth-directly/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=iphone-get-to-bluetooth-directly</link>
		<comments>http://seb.skus.es/2011/11/iphone-get-to-bluetooth-directly/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 21:26:25 +0000</pubDate>
		<dc:creator>sebskuse</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://seb.skus.es/?p=112</guid>
		<description><![CDATA[New little &#8216;app&#8217; that I made with a few minutes spare this evening: Access the bluetooth pane of Settings.app on your iPhone / iPod Touch / iPad running iOS5 with two clicks directly from the home screen without having to &#8230; <a href="http://seb.skus.es/2011/11/iphone-get-to-bluetooth-directly/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>New little &#8216;app&#8217; that I made with a few minutes spare this evening: Access the bluetooth pane of Settings.app on your iPhone / iPod Touch / iPad running iOS5 with two clicks directly from the home screen without having to traverse the unwieldy Settings.app.</p>
<p>Installing:</p>
<ol>
<li>Open Safari and navigate <a href="http://www.devx.co.uk/bluetooth/" title="here">here</a>.</li>
<li>Select the icon in the bottom toolbar three from the left &#8211; the box with an arrow.</li>
<li>Select Add to Home Screen.</li>
<li>Click Add at the top right.</li>
<li>Done!</li>
</ol>
<p>Now all you have to do to open Bluetooth is open the app on your home screen and click the image in the center of the screen. Easy!</p>
<p>On the technical side of things I tried to get this working so when you select it on the homescreen it opens it directly without any user interaction (giving one-press access to Bluetooth). Seemingly this isn&#8217;t possible. I may be wrong &#8211; anyone with any ideas on this let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://seb.skus.es/2011/11/iphone-get-to-bluetooth-directly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hunspell-PHP wrapper</title>
		<link>http://seb.skus.es/2011/09/hunspell-php-wrapper/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hunspell-php-wrapper</link>
		<comments>http://seb.skus.es/2011/09/hunspell-php-wrapper/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 09:34:47 +0000</pubDate>
		<dc:creator>sebskuse</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://seb.skus.es/?p=108</guid>
		<description><![CDATA[I needed a Hunspell wrapper for PHP yesterday, as we&#8217;re looking at replacing the Google Spellchecking API with a hosted solution. After a bit of searching on Google I couldn&#8217;t find one that fitted the needs of our current project. So &#8230; <a href="http://seb.skus.es/2011/09/hunspell-php-wrapper/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I needed a <a title="Hunspell" href="http://hunspell.sourceforge.net/">Hunspell</a> wrapper for PHP yesterday, as we&#8217;re looking at replacing the Google Spellchecking API with a hosted solution. After a bit of searching on Google I couldn&#8217;t find one that fitted the needs of our current project.</p>
<p>So i&#8217;ve created a simple one (<a href="https://gist.github.com/1244667">fork on github</a>).</p>
<p>It supports input &amp; output in UTF-8 (as we&#8217;re using this for parsing Arabic), and can output in two modes:</p>
<ul>
<li>a standard PHP array keyed on the misspelled word, or</li>
<li>It can mimic the Google Spellchecking API, which means it can be a direct drop-in replacement for this service.</li>
</ul>
<div><span style="font-size: small;"><span style="line-height: 24px;">The second method is useful for us, as it means we can simply redirect the spellchecking endpoints and get the new hosted solution without changing any parsing code.</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://seb.skus.es/2011/09/hunspell-php-wrapper/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Photo &#8211; On top of Mountbatten</title>
		<link>http://seb.skus.es/2011/09/photo-on-top-of-mountbatten/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=photo-on-top-of-mountbatten</link>
		<comments>http://seb.skus.es/2011/09/photo-on-top-of-mountbatten/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 21:15:58 +0000</pubDate>
		<dc:creator>sebskuse</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://seb.skus.es/?p=102</guid>
		<description><![CDATA[I took a photo the other day on top of the Mountbatten building, and a number of people have asked for the full high-resolution version of the photo. It was taken with my iPhone 4, so the quality isn&#8217;t fantastic, &#8230; <a href="http://seb.skus.es/2011/09/photo-on-top-of-mountbatten/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="attachment_103" class="wp-caption alignright" style="width: 310px"><a href="http://seb.skus.es/wp-content/uploads/2011/09/IMG_0575.jpg"><img class="size-medium wp-image-103" title="Mountbatten" src="http://seb.skus.es/wp-content/uploads/2011/09/IMG_0575-300x224.jpg" alt="The Mountbatten building" width="300" height="224" /></a><p class="wp-caption-text">Mountbatten</p></div>
<p>I took a photo the other day on top of the <a title="Mountbatten building" href="http://en.wikipedia.org/wiki/File:ZeplerMountbattenHDR.jpg">Mountbatten building</a>, and a number of people have asked for the full high-resolution version of the photo.</p>
<p>It was taken with my iPhone 4, so the quality isn&#8217;t fantastic, but here it is -</p>
]]></content:encoded>
			<wfw:commentRss>http://seb.skus.es/2011/09/photo-on-top-of-mountbatten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove pesky network .DS_Store&#8217;s</title>
		<link>http://seb.skus.es/2011/08/remove-pesky-network-ds_stores/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=remove-pesky-network-ds_stores</link>
		<comments>http://seb.skus.es/2011/08/remove-pesky-network-ds_stores/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 17:51:12 +0000</pubDate>
		<dc:creator>sebskuse</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://seb.skus.es/?p=87</guid>
		<description><![CDATA[Mostly for my own future benefit here, but others may find it useful. One of the most annoying things with OSX + network shares is the fact it dumps its .DS_Store&#8217;s all over the place. Thankfully it&#8217;s fairly easy to &#8230; <a href="http://seb.skus.es/2011/08/remove-pesky-network-ds_stores/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://seb.skus.es/wp-content/uploads/2011/08/Screen-Shot-2011-08-31-at-18.39.47.png"><img src="http://seb.skus.es/wp-content/uploads/2011/08/Screen-Shot-2011-08-31-at-18.39.47-300x258.png" alt="" title="Secrets" width="300" height="258" class="alignright size-medium wp-image-89" /></a></p>
<p>Mostly for my own future benefit here, but others may find it useful. One of the most annoying things with OSX + network shares is the fact it dumps its .DS_Store&#8217;s all over the place. Thankfully it&#8217;s fairly easy to get rid of them.</p>
<p>Step 1, disable OSX from dumping these in network shares to start with, by using <a href="http://secrets.blacktree.com/" title="Secrets" target="_blank">Secrets</a>. Find the setting called &#8220;Use .DS_Stores on network&#8221; and disable it.</p>
<p>Step 2, Stick this in a file on the remote server, and make it executable (<code>chmod +x filename</code>):<br />
<code><br />
#!/bin/bash<br />
find . -name *.DS_Store -printf \"%p\"\ \  | xargs rm<br />
</code></p>
<p>Save the file in the parent folder to the ones that contain the .DS_Store files. For example I have this file stored in /var/media. This will locate all .DS_Stores in this folder and all subsequent subfolders, and remove them leaving the rest of your files and folders untouched.</p>
<p>You could also edit the first argument of the find command so that it looks in a specific folder, but for ease of use (and portability) i&#8217;ve just set it to the current directory (.).</p>
<p>This probably isn&#8217;t the most elegant solution, but it works!</p>
]]></content:encoded>
			<wfw:commentRss>http://seb.skus.es/2011/08/remove-pesky-network-ds_stores/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
