<?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>woblog &#187; twitter</title>
	<atom:link href="http://www.whiteoctober.co.uk/blog/tag/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whiteoctober.co.uk/blog</link>
	<description>great stuff about the web</description>
	<lastBuildDate>Mon, 05 Dec 2011 16:53:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>A stack of twits</title>
		<link>http://www.whiteoctober.co.uk/blog/2010/06/29/a-stack-of-twits/</link>
		<comments>http://www.whiteoctober.co.uk/blog/2010/06/29/a-stack-of-twits/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 12:57:29 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Web technologies]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.whiteoctober.co.uk/blog/?p=566</guid>
		<description><![CDATA[Here at White October towers we pride ourselves on not knowing everything. This is what the internet was made for. So when we are stumped on a problem we hit the Google. These days however our first point of call for any technical programming problems is Stack Overflow. A quick search of that site usually [...]]]></description>
			<content:encoded><![CDATA[<p>Here at White October towers we pride ourselves on not knowing everything. This is what the internet was made for. So when we are stumped on a problem we hit the <a href="http://google.co.uk">Google</a>. These days however our first point of call for any technical programming problems is <a href="http://stackoverflow.com/">Stack Overflow</a>. A quick search of that site usually turns up someone else with a similar problem and if we are very lucky someone has posted up a solution. If not we post up a question and people will try their best to post an answer.</p>
<p>As we find it a good resource we try and answer questions on things we know about, in turn for answers you get points and sometimes badges.  The badges/points side of things is a little childish but very addictive and a more productive use of time than <a href="http://youtube.com">Youtube</a>.</p>
<p>Recently <a href="http://blog.stackoverflow.com/2010/05/stack-exchange-api-public-beta-starts/">Stack Overflow released an API</a> and I thought that joining Stack Overflow and <a href="http://twitter.com">Twitter</a> together sounded like a fun reason to play with both websites&#8217; APIs.</p>
<p>So <a href="http://stackoftwits.com">Stack of Twits</a> was born and <a href="http://stackapps.com/questions/924/a-stack-of-twits-tweeting-all-over-your-stack">unleashed to the world last night</a>. Simply it sends you a message on <a href="http://twitter.com/">Twitter</a> when a question matches your set of  keywords.</p>
<p><a href="http://www.whiteoctober.co.uk/blog/wp-content/uploads/2010/06/screen_shot.png"><img class="aligncenter size-medium wp-image-571" title="screen_shot" src="http://www.whiteoctober.co.uk/blog/wp-content/uploads/2010/06/screen_shot-300x183.png" alt="" width="300" height="183" /></a></p>
<p>I built the site using our framework of choice <a href="http://www.symfony-project.org/">symfony</a> very quickly. It only took me a few hours over the course of a week or so to get it together. While building it I have made a PHP wrapper for the Stack Overflow API and the plan is to open source this work. Any interest in it pre release please comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whiteoctober.co.uk/blog/2010/06/29/a-stack-of-twits/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple shorten url using bit.ly and php</title>
		<link>http://www.whiteoctober.co.uk/blog/2009/11/23/simple-shorten-url-using-bit-ly-and-php/</link>
		<comments>http://www.whiteoctober.co.uk/blog/2009/11/23/simple-shorten-url-using-bit-ly-and-php/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 14:10:11 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[bitly]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.whiteoctober.co.uk/blog/?p=415</guid>
		<description><![CDATA[Inspired by the simple tweet to twitter function by Fabian Potencier I have built a stupidly simple url shorter for bit.ly. Something you are probably going to want to do if you are sending tweets via PHP. function shorten($url, $login, $apikey) { $api_url = "http://api.bit.ly/shorten?version=2.0.1&#38; longUrl=".urlencode($url)."&#38;login=".$login."&#38; apiKey=".$apikey; $ret = file_get_contents($api_url); $data = json_decode($ret); if($data instanceof [...]]]></description>
			<content:encoded><![CDATA[<p>Inspired by the simple <a href="http://fabien.potencier.org/article/20/tweeting-from-php">tweet</a> to <a href="http://twitter.com">twitter</a> function by <a href="http://fabien.potencier.org">Fabian Potencier</a> I have built a stupidly simple url shorter for <a href="http://bit.ly">bit.ly</a>. Something you are probably going to want to do if you are sending tweets via PHP.</p>
<pre><code>function shorten($url, $login, $apikey)
{
  $api_url = "http://api.bit.ly/shorten?version=2.0.1&amp;
                    longUrl=".urlencode($url)."&amp;login=".$login."&amp;
                    apiKey=".$apikey;
  $ret = file_get_contents($api_url);
  $data = json_decode($ret);
  if($data instanceof stdClass &amp;&amp; property_exists($data, "errorCode") &amp;&amp; $data-&gt;errorCode==0)
  {
    foreach($data-&gt;results as $result)
    {
      if(isset($result-&gt;shortUrl))
      {
        return $result-&gt;shortUrl;
      }
    }
  }
  return $url;
}</code></pre>
<p>In the application where I am using this function I have defined the login name and api key as constants, so you can do away with 2 function calls.</p>
<p>Also handily it returns the original url if <a href="http://bit.ly">bit.ly</a> fails.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whiteoctober.co.uk/blog/2009/11/23/simple-shorten-url-using-bit-ly-and-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

