<?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>Of Code and Me</title>
	<atom:link href="http://eliasbland.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://eliasbland.wordpress.com</link>
	<description>Somewhere to write down all the stuff I&#039;m going to forget and then need</description>
	<lastBuildDate>Fri, 13 Jan 2012 14:47:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='eliasbland.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Of Code and Me</title>
		<link>http://eliasbland.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://eliasbland.wordpress.com/osd.xml" title="Of Code and Me" />
	<atom:link rel='hub' href='http://eliasbland.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Setting child divider on an ExpandableListView causes weird flashing overlay on some Samsung phones</title>
		<link>http://eliasbland.wordpress.com/2011/11/29/setting-child-divider-on-an-expandablelistview-causes-weird-flashing-overlay-on-some-samsung-phones/</link>
		<comments>http://eliasbland.wordpress.com/2011/11/29/setting-child-divider-on-an-expandablelistview-causes-weird-flashing-overlay-on-some-samsung-phones/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 14:22:59 +0000</pubDate>
		<dc:creator>Rupert Bates</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Error]]></category>

		<guid isPermaLink="false">http://eliasbland.wordpress.com/?p=523</guid>
		<description><![CDATA[This is a weird niche bug which I&#8217;m documenting here in case I need it in future. Affected devices: I have only seen it occur on a Samsung Galaxy S2 but I&#8217;m guessing it probably happens on any 2.x Samsung device running TouchWiz (it doesn&#8217;t happen on the Nexus S) Steps to reproduce: Create an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=523&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a weird niche bug which I&#8217;m documenting here in case I need it in future.</p>
<p><strong>Affected devices:</strong><br />
I have only seen it occur on a Samsung Galaxy S2 but I&#8217;m guessing it probably happens on any 2.x Samsung device running TouchWiz (it doesn&#8217;t happen on the Nexus S)</p>
<p><strong>Steps to reproduce:</strong><br />
Create an activity with an ExpandableListView and set the childDivider property of the ExpandableListView to any colour, say red for ease of viewing</p>
<p><pre class="brush: java;">

&lt;ExpandableListView android:id=&quot;@+id/pageBundles&quot;
                        android:layout_width=&quot;fill_parent&quot;
                        android:layout_height=&quot;fill_parent&quot;
                        android:childDivider=&quot;@color/red&quot;
                        android:cacheColorHint=&quot;@color/white&quot;/&gt;
</pre></p>
<p>Now if you scroll the list for a while, particularly if you sort of wiggle it up and down quickly and then let it go the list will be completely covered by a solid block of the colour specified in the childDivider property. This will remain for a few seconds and then disappear.</p>
<p>To fix this issue just remove the childDivider property setting</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eliasbland.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eliasbland.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eliasbland.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eliasbland.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eliasbland.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eliasbland.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eliasbland.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eliasbland.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eliasbland.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eliasbland.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eliasbland.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eliasbland.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eliasbland.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eliasbland.wordpress.com/523/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=523&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eliasbland.wordpress.com/2011/11/29/setting-child-divider-on-an-expandablelistview-causes-weird-flashing-overlay-on-some-samsung-phones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc7ffd9d99152f554e9779bb745d6c50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rupert Bates</media:title>
		</media:content>
	</item>
		<item>
		<title>Phone number code puzzle</title>
		<link>http://eliasbland.wordpress.com/2011/11/04/phone-number-code-puzzle/</link>
		<comments>http://eliasbland.wordpress.com/2011/11/04/phone-number-code-puzzle/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 13:53:00 +0000</pubDate>
		<dc:creator>Rupert Bates</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Scala]]></category>

		<guid isPermaLink="false">http://eliasbland.wordpress.com/?p=513</guid>
		<description><![CDATA[Once upon a time I was presented with the following test in an interview: Given a mapping of digits to an array of characters, ie. "1"={}, "2"={"A","B","C"}, "3"={"D","E","F"}, etc. Print out all the string permutations a given input of digits maps to. So for instance the string &#8220;23&#8243; should return: AD AE AF BD BE [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=513&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Once upon a time I was presented with the following test in an interview:</p>
<p>Given a mapping of digits to an array of characters, ie.<br />
<code>"1"={},<br />
"2"={"A","B","C"},<br />
"3"={"D","E","F"}, </code><br />
etc.</p>
<p>Print out all the string permutations a given input of digits maps to.<br />
So for instance the string &#8220;23&#8243; should return:<br />
AD<br />
AE<br />
AF<br />
BD<br />
BE<br />
BF<br />
CD<br />
CE<br />
CF</p>
<p>Another way to think of this is a function that returns all the possible combinations of letters the digits could represent if they were keypresses on a standard phone keypad. </p>
<p>I did a pretty bad job at this when I was asked it, partly because it was quite late at night, and partly because it&#8217;s not the sort of thing you find yourself doing that often, but today I found myself with a little bit of spare time on my hands and thought I&#8217;d give it another go.</p>
<p>I chose to do it in Scala rather than in Java which I had used last time and of course this led to the solution being much more elegant and succinct. If fact this is exactly the sort of problem that demonstrates the value of functional programming.</p>
<p><pre class="brush: scala;">
import collection.immutable.{List, Map}
import java.lang.String

object PhoneNumbers extends App {
  val input = &quot;1234&quot;
  val data = Map(
    0 -&gt; List(&quot;0&quot;),
    1 -&gt; List(&quot;1&quot;),
    2 -&gt; List(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;),
    3 -&gt; List(&quot;d&quot;, &quot;e&quot;, &quot;f&quot;),
    4 -&gt; List(&quot;g&quot;, &quot;h&quot;, &quot;i&quot;),
    5 -&gt; List(&quot;j&quot;, &quot;k&quot;, &quot;l&quot;),
    6 -&gt; List(&quot;m&quot;, &quot;n&quot;, &quot;o&quot;),
    7 -&gt; List(&quot;p&quot;, &quot;q&quot;, &quot;r&quot;, &quot;s&quot;),
    8 -&gt; List(&quot;t&quot;, &quot;u&quot;, &quot;v&quot;),
    9 -&gt; List(&quot;w&quot;, &quot;x&quot;, &quot;y&quot;, &quot;z&quot;)
  )
  getCombinations(input.substring(0, 1), input.substring(1))
    .foreach(f =&gt; Console.println(f))

  def getCombinations(current: String, remaining: String): List[String] = {
    val vals = data(Integer.parseInt(current));
    if (remaining.length() == 0)
      return vals

    val restOfString = getCombinations(remaining.substring(0, 1), remaining.substring(1))

    vals
      .map(f =&gt; restOfString.map(f2 =&gt; f + f2))
      .flatten
  }
}

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eliasbland.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eliasbland.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eliasbland.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eliasbland.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eliasbland.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eliasbland.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eliasbland.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eliasbland.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eliasbland.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eliasbland.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eliasbland.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eliasbland.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eliasbland.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eliasbland.wordpress.com/513/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=513&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eliasbland.wordpress.com/2011/11/04/phone-number-code-puzzle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc7ffd9d99152f554e9779bb745d6c50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rupert Bates</media:title>
		</media:content>
	</item>
		<item>
		<title>Speaking at JAX London 2011</title>
		<link>http://eliasbland.wordpress.com/2011/10/01/speaking-at-jax-london-2011/</link>
		<comments>http://eliasbland.wordpress.com/2011/10/01/speaking-at-jax-london-2011/#comments</comments>
		<pubDate>Sat, 01 Oct 2011 17:15:53 +0000</pubDate>
		<dc:creator>Rupert Bates</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[guardian.co.uk]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://eliasbland.wordpress.com/?p=510</guid>
		<description><![CDATA[I am going to be giving a talk about the development of the recently released Guardian app for Android at the Jax 2011 conference. The session is on the 2nd of November, more details here<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=510&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am going to be giving a talk about the development of the recently released Guardian app for Android at the Jax 2011 conference.<br />
The session is on the 2nd of November, more details <a href="http://jaxlondon.com/2011/speaker/#6614">here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eliasbland.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eliasbland.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eliasbland.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eliasbland.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eliasbland.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eliasbland.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eliasbland.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eliasbland.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eliasbland.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eliasbland.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eliasbland.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eliasbland.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eliasbland.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eliasbland.wordpress.com/510/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=510&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eliasbland.wordpress.com/2011/10/01/speaking-at-jax-london-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc7ffd9d99152f554e9779bb745d6c50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rupert Bates</media:title>
		</media:content>
	</item>
		<item>
		<title>Guardian App On Android V 1.0</title>
		<link>http://eliasbland.wordpress.com/2011/09/07/guardian-app-on-android-v-1-0/</link>
		<comments>http://eliasbland.wordpress.com/2011/09/07/guardian-app-on-android-v-1-0/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 14:58:08 +0000</pubDate>
		<dc:creator>Rupert Bates</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[guardian.co.uk]]></category>

		<guid isPermaLink="false">http://eliasbland.wordpress.com/?p=506</guid>
		<description><![CDATA[Finally! The project I&#8217;ve been working on for the last 5 months goes live&#8230; https://market.android.com/details?id=com.guardian And: http://www.guardian.co.uk/help/insideguardian/2011/sep/07/guardian-android-app<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=506&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Finally! The project I&#8217;ve been working on for the last 5 months goes live&#8230;<br />
<a href="https://market.android.com/details?id=com.guardian">https://market.android.com/details?id=com.guardian</a><br />
And:<br />
<a href="http://www.guardian.co.uk/help/insideguardian/2011/sep/07/guardian-android-app">http://www.guardian.co.uk/help/insideguardian/2011/sep/07/guardian-android-app</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eliasbland.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eliasbland.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eliasbland.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eliasbland.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eliasbland.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eliasbland.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eliasbland.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eliasbland.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eliasbland.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eliasbland.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eliasbland.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eliasbland.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eliasbland.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eliasbland.wordpress.com/506/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=506&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eliasbland.wordpress.com/2011/09/07/guardian-app-on-android-v-1-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc7ffd9d99152f554e9779bb745d6c50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rupert Bates</media:title>
		</media:content>
	</item>
		<item>
		<title>Generate a changelog for the current branch in Git</title>
		<link>http://eliasbland.wordpress.com/2011/09/02/generate-a-changelog-for-the-current-branch-in-git/</link>
		<comments>http://eliasbland.wordpress.com/2011/09/02/generate-a-changelog-for-the-current-branch-in-git/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 15:04:40 +0000</pubDate>
		<dc:creator>Rupert Bates</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://eliasbland.wordpress.com/?p=503</guid>
		<description><![CDATA[I find it useful to be able to quickly generate a list of all changes in the current branch which have not yet been merged into master. It&#8217;s a good way to come up with a change list when doing a release for instance. To do this in git you can use the following: git [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=503&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I find it useful to be able to quickly generate a list of all changes in the current branch which have not yet been merged into master. It&#8217;s a good way to come up with a change list when doing a release for instance. To do this in git you can use the following:<br />
<code><br />
git log master.. --pretty="%s"<br />
</code><br />
This assumes that you are on a branch which is off master (if you are on master you could use the path ..my-branch) and that the changes have not yet been merged into master, and it will give you a list showing only the commit messages, ready for copying and pasting into that release note.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eliasbland.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eliasbland.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eliasbland.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eliasbland.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eliasbland.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eliasbland.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eliasbland.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eliasbland.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eliasbland.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eliasbland.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eliasbland.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eliasbland.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eliasbland.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eliasbland.wordpress.com/503/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=503&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eliasbland.wordpress.com/2011/09/02/generate-a-changelog-for-the-current-branch-in-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc7ffd9d99152f554e9779bb745d6c50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rupert Bates</media:title>
		</media:content>
	</item>
		<item>
		<title>Speed up Google apps account login with Empathy chat client in Ubuntu</title>
		<link>http://eliasbland.wordpress.com/2011/08/03/speed-up-google-apps-account-login-with-empathy-chat-client-in-ubuntu/</link>
		<comments>http://eliasbland.wordpress.com/2011/08/03/speed-up-google-apps-account-login-with-empathy-chat-client-in-ubuntu/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 10:25:24 +0000</pubDate>
		<dc:creator>Rupert Bates</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux empathy]]></category>

		<guid isPermaLink="false">http://eliasbland.wordpress.com/?p=494</guid>
		<description><![CDATA[When I first set up the Empathy chat client to connect to my Google apps account it took a ridiculous amount of time to load the contacts, usually over 10 minutes, and this was every time I logged in. By changing the settings on the account though I got it to work pretty much instantaneously. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=494&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When I first set up the Empathy chat client to connect to my Google apps account it took a ridiculous amount of time to load the contacts, usually over 10 minutes, and this was every time I logged in.</p>
<p>By changing the settings on the account though I got it to work pretty much instantaneously.</p>
<p>Settings:</p>
<p>Login ID: your email address<br />
Password: your password</p>
<p>Under advanced settings:</p>
<p>Check &#8216;Encryption Required&#8217; checkbox<br />
Resource: Home<br />
Server: talk.google.com<br />
Port: 5223<br />
Check &#8216;Use old SSL&#8217; checkbox</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eliasbland.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eliasbland.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eliasbland.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eliasbland.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eliasbland.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eliasbland.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eliasbland.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eliasbland.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eliasbland.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eliasbland.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eliasbland.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eliasbland.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eliasbland.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eliasbland.wordpress.com/494/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=494&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eliasbland.wordpress.com/2011/08/03/speed-up-google-apps-account-login-with-empathy-chat-client-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc7ffd9d99152f554e9779bb745d6c50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rupert Bates</media:title>
		</media:content>
	</item>
		<item>
		<title>How to save the position of a ScrollView when the orientation changes in Android</title>
		<link>http://eliasbland.wordpress.com/2011/07/28/how-to-save-the-position-of-a-scrollview-when-the-orientation-changes-in-android/</link>
		<comments>http://eliasbland.wordpress.com/2011/07/28/how-to-save-the-position-of-a-scrollview-when-the-orientation-changes-in-android/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 14:29:37 +0000</pubDate>
		<dc:creator>Rupert Bates</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://eliasbland.wordpress.com/?p=495</guid>
		<description><![CDATA[To save and restore the scroll position of a ScrollView when the phone orientation changes you can do the following: Save the current position in the onSaveInstanceState method: Then restore the position in the onRestoreInstanceState method, note that we need to post a runnable to the ScrollView to get this to work:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=495&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To save and restore the scroll position of a ScrollView when the phone orientation changes you can do the following:<br />
Save the current position in the onSaveInstanceState method:<br />
<pre class="brush: java;">
    protected void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
        outState.putIntArray(&quot;ARTICLE_SCROLL_POSITION&quot;,
                new int[]{ mScrollView.getScrollX(), mScrollView.getScrollY()});
    }
</pre></p>
<p>Then restore the position in the onRestoreInstanceState method, note that we need to post a runnable to the ScrollView to get this to work:<br />
<pre class="brush: java;">
    protected void onRestoreInstanceState(Bundle savedInstanceState) {
        super.onRestoreInstanceState(savedInstanceState);
        final int[] position = savedInstanceState.getIntArray(&quot;ARTICLE_SCROLL_POSITION&quot;);
        if(position != null)
            mScrollView.post(new Runnable() {
                public void run() {
                    mScrollView.scrollTo(position[0], position[1]);
                }
            });
    }
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eliasbland.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eliasbland.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eliasbland.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eliasbland.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eliasbland.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eliasbland.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eliasbland.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eliasbland.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eliasbland.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eliasbland.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eliasbland.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eliasbland.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eliasbland.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eliasbland.wordpress.com/495/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=495&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eliasbland.wordpress.com/2011/07/28/how-to-save-the-position-of-a-scrollview-when-the-orientation-changes-in-android/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc7ffd9d99152f554e9779bb745d6c50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rupert Bates</media:title>
		</media:content>
	</item>
		<item>
		<title>Make the backspace key work in Firefox on Linux</title>
		<link>http://eliasbland.wordpress.com/2011/07/21/make-the-backspace-key-work-in-firefox-on-linux/</link>
		<comments>http://eliasbland.wordpress.com/2011/07/21/make-the-backspace-key-work-in-firefox-on-linux/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 10:55:27 +0000</pubDate>
		<dc:creator>Rupert Bates</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://eliasbland.wordpress.com/?p=491</guid>
		<description><![CDATA[To make the backspace key in Firefox on Linux take you back to the previous page as it does on other platforms and in other browsers do the following: put about:config in the address bar and hit enter scroll down to browser.backspace_action and double click it set the value to 0<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=491&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To make the backspace key in Firefox on Linux take you back to the previous page as it does on other platforms and in other browsers do the following:</p>
<ol>
<li>put <em>about:config</em> in the address bar and hit enter</li>
<li>scroll down to browser.backspace_action and double click it</li>
<li>set the value to 0</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eliasbland.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eliasbland.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eliasbland.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eliasbland.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eliasbland.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eliasbland.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eliasbland.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eliasbland.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eliasbland.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eliasbland.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eliasbland.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eliasbland.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eliasbland.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eliasbland.wordpress.com/491/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=491&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eliasbland.wordpress.com/2011/07/21/make-the-backspace-key-work-in-firefox-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc7ffd9d99152f554e9779bb745d6c50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rupert Bates</media:title>
		</media:content>
	</item>
		<item>
		<title>Commit working directory changes to a new branch in git</title>
		<link>http://eliasbland.wordpress.com/2011/07/01/commit-working-directory-changes-to-a-new-branch-in-git/</link>
		<comments>http://eliasbland.wordpress.com/2011/07/01/commit-working-directory-changes-to-a-new-branch-in-git/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 15:30:31 +0000</pubDate>
		<dc:creator>Rupert Bates</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://eliasbland.wordpress.com/?p=486</guid>
		<description><![CDATA[To create and checkout a new branch in git taking any uncommitted changes with you use: git checkout -b my_new_branch<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=486&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><code>To create and checkout a new branch in git taking any uncommitted changes with you use: </code></p>
<p><code>git checkout -b my_new_branch</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eliasbland.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eliasbland.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eliasbland.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eliasbland.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eliasbland.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eliasbland.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eliasbland.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eliasbland.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eliasbland.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eliasbland.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eliasbland.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eliasbland.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eliasbland.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eliasbland.wordpress.com/486/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=486&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eliasbland.wordpress.com/2011/07/01/commit-working-directory-changes-to-a-new-branch-in-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc7ffd9d99152f554e9779bb745d6c50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rupert Bates</media:title>
		</media:content>
	</item>
		<item>
		<title>Get your Android application to fill up the whole screen on a tablet</title>
		<link>http://eliasbland.wordpress.com/2011/06/24/get-your-android-application-to-fill-up-the-whole-screen-on-a-tablet/</link>
		<comments>http://eliasbland.wordpress.com/2011/06/24/get-your-android-application-to-fill-up-the-whole-screen-on-a-tablet/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 19:30:30 +0000</pubDate>
		<dc:creator>Rupert Bates</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://eliasbland.wordpress.com/?p=473</guid>
		<description><![CDATA[When I got hold of a Android 3 tablet, the first thing I did was to run one of the apps I&#8217;ve developed on it to see how it looked. I was surprised to see that it just ran in a little window, much like IPhone apps do on an IPad. Fortunately getting the app [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=473&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When I got hold of a Android 3 tablet, the first thing I did was to run one of the apps I&#8217;ve developed on it to see how it looked. I was surprised to see that it just ran in a little window, much like IPhone apps do on an IPad.</p>
<p>Fortunately getting the app to fill the whole screen just required the following line after the &lt;application&gt; section in my AndroidManifest.xml:</p>
<p><pre class="brush: xml;">

&lt;uses-sdk  android:targetSdkVersion=&quot;9&quot;/&gt;

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eliasbland.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eliasbland.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eliasbland.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eliasbland.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eliasbland.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eliasbland.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eliasbland.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eliasbland.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eliasbland.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eliasbland.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eliasbland.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eliasbland.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eliasbland.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eliasbland.wordpress.com/473/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eliasbland.wordpress.com&amp;blog=1089842&amp;post=473&amp;subd=eliasbland&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eliasbland.wordpress.com/2011/06/24/get-your-android-application-to-fill-up-the-whole-screen-on-a-tablet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc7ffd9d99152f554e9779bb745d6c50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rupert Bates</media:title>
		</media:content>
	</item>
	</channel>
</rss>
