<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">
    <title>Andy's Notebook</title>
    
    
    <link rel="alternate" type="text/html" href="http://www.andysnotebook.com/" />
    <id>tag:typepad.com,2003:weblog-1598290</id>
    <updated>2010-01-19T22:24:01+00:00</updated>
    <subtitle>The very occasional musings of a glue merchant...</subtitle>
    <generator uri="http://www.typepad.com/">TypePad</generator>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/AndysNotebook" /><feedburner:info uri="andysnotebook" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry>
        <title>.net and ISA Server - a match made in hell?</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AndysNotebook/~3/U2xa7YNXZq0/the-joys-of-net-and-isa-server.html" />
        <link rel="replies" type="text/html" href="http://www.andysnotebook.com/2010/01/the-joys-of-net-and-isa-server.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a00e54f0e24bd88340120a7c5106b970b</id>
        <published>2010-01-19T22:24:01+00:00</published>
        <updated>2010-01-19T22:28:47+00:00</updated>
        <summary>I've been looking at the bandwidth consumption of a .net based webapp and working with the developers to implement many of the common recommendations for improving front-end performance - minifying, gzipping, cache-control headers etc - we've noticed some improvements in...</summary>
        <author>
            <name>Andy Davies</name>
        </author>
        
        <category scheme="http://sixapart.com/ns/types#tag" term="performance caching web .net proxy" />
        
<content type="xhtml" xml:lang="en-GB" xml:base="http://www.andysnotebook.com/"><div xmlns="http://www.w3.org/1999/xhtml">I've been looking at the bandwidth consumption of a .net based webapp and working with the developers to implement many of the common recommendations for improving front-end performance - minifying, gzipping, cache-control headers etc - we've noticed some improvements in performance but we've also noticed some oddities.<p><span><span><span><span><br /></span></span></span></span></p><p><span><span><span><span>.net has the ability to embed static resources e.g. javascript, css etc., in a .dll and then these can be served to the browser using a special handler - ScriptResource.axd for the Microsoft AJAX framework and WebResource.axd for others.</span></span></span></span></p><p><span><span><span><span><span>Typically these appear in a web page looking something like this:</span></span></span></span></span></p><p><span style="font-family: Courier;">&lt;script src="/WebResource.axd?d=D_qnz75P-Xnx_WWFT0nC0A2&amp;t=633926346394042220" type="text/javascript"&gt;&lt;/script&gt; <br /><br />&lt;script src="/ScriptResource.axd?d=ki7GLYn2P5z-CEtE0SsvKYJhnTEkD13edwjg24cmxWe4aD03WzKyGXQD45nYCFy70&amp;t=633178683580000000 type="text/javascript"&gt;&lt;/script&gt;</span></p><p>(The d in the query string uniquely identifies the resource, and t is a timestamp)</p><p>The WebForms javascript that's served via WebResource.axd, hasn't been minified or gzipped but at least it has some cache-control headers. The scripts served out but ScriptResource.axd are somewhat better, the release versions are minified, gzipped if the browser supports it, and served with a long expiry time, so should be ideal for caching.</p><p>Why Microsoft chose URL handlers instead of nice plain and simple static files is beyond me (but then most of the .net framework seems to be about over complicating simple things)</p><p /><p>The traffic to our production servers is monitored via Oracle REUI which allows us to slice and dice the information in it's cubes so we can see response times, which URLs are requested most frequently, what's consuming the most bandwidth etc.</p><p>After making several changes to try to reduce bandwidth consumption, ScriptResource.axd was still at the top of the pile of URLs by bandwidth and it wasn't clear why until we started looking at our users environments in a bit more details.</p><p>Most of our customers are schools and they generally have a gateway cache of some form, increasingly this appears to be ISA Server.</p><p>By default ISA Server removes the accept-encoding header so users will get the uncompressed versions of scripts and other compressible resources (Steve Souders covers this in <a href="http://www.amazon.co.uk/exec/obidos/ASIN/0596522304/andsnot-21" target="_blank">Even Faster Websites</a>). There are some scripts around that will change this setting but it appears not many people have implemented them.<br /><span><br /><span>Also ISA Server doesn't cache URLs with query string parameters (I can see the point of this) but it means that by default all those .net resources that are served using WebResource.axd and ScriptResource.axd aren't being cached.</span></span></p><p>There are ways of using the asp:ScriptManager control to replace the ScriptResource.axd URLs with references to static files but there appears to be no way of doing that for WebResource.axd</p><p /><p>It appears Microsoft have managed to develop a web framework and a proxy caching product that don't work well together... t<span>he words arse and elbow spring to mind...</span> <br /><span><br /><span>(Over the next few weeks I'll be spending some time looking further into this and also comparing the ISA Server behaviour with the Squid based proxies that some of the other schools in the UK have. I'll report back when I know more)</span></span></p><p /><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/AndysNotebook/~4/U2xa7YNXZq0" height="1" width="1" /></div></content>


    <feedburner:origLink>http://www.andysnotebook.com/2010/01/the-joys-of-net-and-isa-server.html</feedburner:origLink></entry>
    <entry>
        <title>From RSS to delicious via ping.fm and twitterfeed</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AndysNotebook/~3/HTVHu_Wh7X8/from-rss-to-delicious-using-pingfm-and-twitterfeed.html" />
        <link rel="replies" type="text/html" href="http://www.andysnotebook.com/2009/01/from-rss-to-delicious-using-pingfm-and-twitterfeed.html" thr:count="2" thr:updated="2009-11-30T09:46:09+00:00" />
        <id>tag:typepad.com,2003:post-61891246</id>
        <published>2009-01-26T23:06:44+00:00</published>
        <updated>2009-01-26T23:06:44+00:00</updated>
        <summary>One of my continuing frustrations in the love/hate relationship I have with delicious is there's no easy way of getting items from an RSS feed into delicious. I've got stuff I've 'liked' in FriendFeed, starred items in Google reader, favourites...</summary>
        <author>
            <name>Andy Davies</name>
        </author>
        
        <category scheme="http://sixapart.com/ns/types#tag" term="automation" />
        <category scheme="http://sixapart.com/ns/types#tag" term="delicious" />
        <category scheme="http://sixapart.com/ns/types#tag" term="howto" />
        <category scheme="http://sixapart.com/ns/types#tag" term="mashup" />
        <category scheme="http://sixapart.com/ns/types#tag" term="ping.fm" />
        <category scheme="http://sixapart.com/ns/types#tag" term="rss" />
        <category scheme="http://sixapart.com/ns/types#tag" term="twitterfeed" />
        
<content type="xhtml" xml:lang="en-GB" xml:base="http://www.andysnotebook.com/"><div xmlns="http://www.w3.org/1999/xhtml"><p>One of my continuing frustrations in the love/hate relationship I have with delicious is there's no easy way of getting items from an RSS feed into delicious.</p><p>I've got stuff I've 'liked' in FriendFeed, starred items in Google reader, favourites on Slideshare, Twitter
etc,  that I want to pull directly into
one place and that place is delicious, but it seems delicious aren't interested in making my life easy.<br /><br />Apart from bitching on the delicious forums, I've been fiddling with various ways of filling the gap for a while and finally I think I've found a way of partially filling it using <a href="http://ping.fm">ping.fm</a> and <a href="http://twitterfeed.com">twitterfeed</a>. It's got a few limitations but it may be good enough for now.</p><p>Here's a list of the steps needed to get things up and working:</p><ul>
<li>If you don't have a <a href="http://ping.fm">ping.fm</a> account already, head over and create one</li>
</ul>
<ul>
<li>Add your delicious account so that ping.fm can post to it (warning you have to give them your delicious password)</li>
</ul>
<ul>
<li>Add some form of micro-blogging/blogging account too. This is needed for the link from twitterfeed to work, I used tumblr (but again I have to give my tumblr password, has no-one heard of OAuth?)</li>
</ul>
<ul>
<li>Now head over to <a href="http://twitterfeed.com">twitterfeed</a>, and create an account if you need one.</li>
</ul>
<ul>
<li>Create a new feed for ping.fm</li>
</ul>
<p style="margin-left: 40px;">You'll need your ping.fm API key which you can get from <a href="http://http://ping.fm/key">ping.fm/key</a>, and you'll also need to pick a posting method - I chose 'microblogging' ( but I wasn't able to make any choice until I added the tumblr account)</p><p style="margin-left: 40px;">Add in the details of the feed you want to push into delicious along with how often the feed should be checked - I choose to have the feeds checked as often as possible and have as many items as I can pushed across.</p><p style="margin-left: 40px;">By default twitterfeed shortens URLs using tinyurl, you can either stick with this or choose an alternative (I used bit.ly, but that's just a personal preference)</p><p style="margin-left: 40px;">Finally in the field 'Prefix each tweet with' add '@de ', this tells ping.fm to forward the item to delicious</p><ul>
<li>Repeat the above step for as many feeds as you want to pull into delicious</li>
</ul>
<p /><p>Hopefully, if everything is right you should soon have items arriving in your delicious account. </p><p>The approach does have a few drawbacks though:</p><ul>
<li>twitterfeed shortens the URLs, and delicious has no way of expanding them, so the tags from other users can't be applied to bookmark. The original URL being destroyed will also be a problem for people who use delicious to keep track of others who bookmark their blog posts.</li>
</ul>
<ul>
<li>The first time twitterfeed does it's thing it only collects the most recent RSS item so all the other items remain uncollected.</li>
</ul>
<ul>
<li>twitterfeed only collects five items at time from each feed so it may be possible to build up a backlog if you added a lot of items to your feed</li>
</ul>
<ul>
<li>You have to give ping.fm your delicious login details and probably login details for another service too</li>
</ul>
<ul>
<li>The bookmarks bypass my delicious inbox and I'm not sure whether this is a good thing or not - I don't always want to keep all the items I like of Friendfeed, or star in Google Reader so having them arrive in the inbox for a final last filter seems like a good idea</li>
</ul>
<ul>
<li>If a item already has tags in the feed delicious can't make use of them.</li>
</ul>
<p><br />As a word of warning I've also got no idea what happens if one of the items already exists in my delicious collection and ping.fm tries to add it from a feed, so perhaps I need to check that.</p><p>It's an imperfect solution but I'm going to give it a go for a while to see how it works, ultimately this is something delicious and other social bookmarking sites should provide, indeed if one of the other sites introduces the ability to add bookmarks from RSS I'm likely to jump ship and leave delicious behind.</p><p>Finally if you do decide to go down this route think about making a donation to twitterfeed, Mario offers a great service for free.</p><p>(Oh and thanks to Scoble, who's <a href="http://friendfeed.com/e/bb215e6d-5093-41c5-9491-30ec55f6b2eb/Testing-world-wide-domination-without-duplication/">broadcast of his plan for world domination</a> led me to checkout ping.fm)<br /><br />If anyone comes up with any improvements or alternative ways of tacking this, I'd be very interested in hearing them.</p><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/AndysNotebook/~4/HTVHu_Wh7X8" height="1" width="1" /></div></content>


    <feedburner:origLink>http://www.andysnotebook.com/2009/01/from-rss-to-delicious-using-pingfm-and-twitterfeed.html</feedburner:origLink></entry>
    <entry>
        <title>Alas, twitter cripples SMS in the UK (and elsewhere)</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AndysNotebook/~3/fJgd289CiK4/alas-twitter-scraps-sms-sending-in-the-uk-and-elsewhere.html" />
        <link rel="replies" type="text/html" href="http://www.andysnotebook.com/2008/08/alas-twitter-scraps-sms-sending-in-the-uk-and-elsewhere.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-54171228</id>
        <published>2008-08-14T11:36:23+01:00</published>
        <updated>2008-08-14T11:36:23+01:00</updated>
        <summary>Woke up this morning to an email from twitter saying they were scrapping outbound SMS messages for the portion of the world that charges for sending rather than receiving text messages i.e. anywhere that's not the US, Canada or India....</summary>
        <author>
            <name>Andy Davies</name>
        </author>
        
        <category scheme="http://sixapart.com/ns/types#tag" term="sms" />
        <category scheme="http://sixapart.com/ns/types#tag" term="twitter" />
        
<content type="xhtml" xml:lang="en-GB" xml:base="http://www.andysnotebook.com/"><div xmlns="http://www.w3.org/1999/xhtml"><p>Woke up this morning to an email from twitter saying they were scrapping outbound SMS messages for the portion of the world that charges for sending rather than receiving text messages i.e. anywhere that's not the US, Canada or India. </p><p>The same message is on their blog too - <a href="http://blog.twitter.com/2008/08/changes-for-some-sms-usersgood-and-bad.html">Changes for Some SMS Users—Good and Bad News</a> - and despite the title there was no good news in the post, only the vague promise that they'd introduce new local SMS numbers for unspecified countries within Europe in the coming weeks and months.</p><p>I can understand why they've done this - the costs of sending all the messages must burn through money - but by removing the service before a replacement is available I think they've screwed up.</p><p>Unlike the US, Canada and India, most of the world charges people for sending text messages but they also offer a way to charging people for receiving messages via <a href="http://en.wikipedia.org/wiki/Reverse_SMS_billing">SMS reverse billing</a>. </p><p>In my view, twitter should have had this option up and ready to go before scrapping their existing SMS service. I guess the danger for them is that their users will continue to migrate to other service (<a href="http://identi.ca/">http://identi.ca/</a> for example) or other ways of being notified e.g. RSS on phones, damaging their future revenue streams.</p><p>Perhaps the fact twitter are US based limits their understanding as to how people use mobile phones and how the networks work in the rest of the world?</p><p>Also as twitter is pretty open (via rss and the API), perhaps there's also an opportunity for someone to set up a third party service to provide and charge for SMS updates?</p><p>Of course this screws up my traffic bot (<a href="http://twitter.com/UK_M5_Traffic">uk_m5_traffic</a>) as it relies on twitter to send out the SMS notifications. In the short term I can set up the feed reader on my phone to update from the RSS feed but longer term I guess I'll need to see what twitter do and what other options I've got.</p><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/AndysNotebook/~4/fJgd289CiK4" height="1" width="1" /></div></content>


    <feedburner:origLink>http://www.andysnotebook.com/2008/08/alas-twitter-scraps-sms-sending-in-the-uk-and-elsewhere.html</feedburner:origLink></entry>
    <entry>
        <title>Have you ever launched a product you've been ashamed of?</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AndysNotebook/~3/Dt6t6J4HR7E/have-you-ever-launched-a-product-youve-been-ashamed-of.html" />
        <link rel="replies" type="text/html" href="http://www.andysnotebook.com/2008/05/have-you-ever-launched-a-product-youve-been-ashamed-of.html" thr:count="2" thr:updated="2009-06-30T11:53:31+01:00" />
        <id>tag:typepad.com,2003:post-50283246</id>
        <published>2008-05-22T23:17:47+01:00</published>
        <updated>2008-05-22T23:17:47+01:00</updated>
        <summary>In a few weeks time the product I've spent the last eighteen months on will launch. I've built and launched products before and despite their quirks and issues I've been proud of them all, but this time it's different, this...</summary>
        <author>
            <name>Andy Davies</name>
        </author>
        
        
<content type="xhtml" xml:lang="en-GB" xml:base="http://www.andysnotebook.com/"><div xmlns="http://www.w3.org/1999/xhtml">In
a few weeks time the product I've spent the last eighteen months on
will launch. I've built and launched products before and despite their
quirks and issues I've been proud of them all, but this time it's
different, this time I have an almost overwhelming feeling of sadness.<br /><br />I'd
describe myself as a pragmatic perfectionist (I like things done right
but the closer the deadlines get the more pragmatic I become), but this time
I seem to have run out of pragmatism. <br /><br />Part
of me (I'm not sure how much) doesn't care about this product any
more and I find that really sad as I care about what I do but the
effort it's taken to get it this far and the frustrations
involved in development have taken their toll. When I told my wife
about how I felt she just put her arms around me as she understood the
magnitude of what it meant (no chance of me ever complaining that my
wife doesn't understand me!).<br /><br />Functionally the product appears to work OK,
but there's so much that's clunky and inconsistent about the way it's
been built, behaves and looks, and in the time we've had for
development many of them could have been addressed.<br /><br />The
problem as I see it is that the software development side of the
product was outsourced and I don't think the company I work for picked
the right partner or have learnt from their previous experiences with this
partner.<br /><br />In general I believe product
development is far too important to outsource, as "no-one cares about
your product like you do". I knew the development was being outsourced
when I joined, but at the time I just finished a contract job and
needed another so was in the position of "beggars can't be choosers"<br /><br />The
product had already had a few false starts before I arrived but between
us we finally got it really moving early last year some of the early
prototypes were promising but the immaturity of our partner quickly
started to show through.<br /><br />Their web
development techniques seemed to be stuck at around five years ago, all
tables and no semantic markup or styles, where there were styles they
tended to be in-line rather than an in a stylesheet so you could never
be sure that a change in style would be reflected across the product.
Their javascript was quite frankly appalling (badly structured and
indecipherable) and I'm sure they wouldn't have accepted the same
quality of code in the web-services components of the product.<br /><br />I've
spent the last year teaching a development team about everything from
web development techniques (semantic markup, how to use css, why they should use a library like jquery
(or prototype etc.) instead of writing their own DOM manipulation
code), through web infrastructure (how caching can make a huge
difference to the performance of our product - we're serving quite a
lot of media rich content, the role load-balancing has in scaling and
high availability) though to how we can't make users decisions for them
(if the user wants to delete something, let them just warn them of the
consequences before they do).<br /><br />Even now I'm
not sure how much of what I've tried to teach them has stuck, sometimes
I see glimmers that it has and sometimes I see the old ways are back,
all I know is that this product has just been all take with no return
and I need something back, so it's time to find something else to move
on to...<br /><br />(I will try to write more about this product, what's gone wrong and what I think I've learnt in the next couple of weeks, just need a bit more time to reflect first)<xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/AndysNotebook/~4/Dt6t6J4HR7E" height="1" width="1" /></div></content>


    <feedburner:origLink>http://www.andysnotebook.com/2008/05/have-you-ever-launched-a-product-youve-been-ashamed-of.html</feedburner:origLink></entry>
    <entry>
        <title>Feed readers and social bookmarking - a missing link?</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AndysNotebook/~3/whpNqlcHEHU/why-isnt-there.html" />
        <link rel="replies" type="text/html" href="http://www.andysnotebook.com/2008/04/why-isnt-there.html" thr:count="1" thr:updated="2008-05-08T20:58:22+01:00" />
        <id>tag:typepad.com,2003:post-48429992</id>
        <published>2008-04-14T22:12:51+01:00</published>
        <updated>2008-04-14T22:12:51+01:00</updated>
        <summary>Why isn't there an easy way of getting items from a feed reader into a social bookmarking service? Like many people (or is it just the geeks?) I use Google Reader to keep up-to-date with news and opinions from around...</summary>
        <author>
            <name>Andy Davies</name>
        </author>
        
        <category scheme="http://sixapart.com/ns/types#tag" term="google+reader del.icio.us rss microformats feed+re" />
        
<content type="html" xml:lang="en-GB" xml:base="http://www.andysnotebook.com/">
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;Why isn't there an easy way of getting items from a feed reader into a social bookmarking service? &lt;/p&gt;

&lt;p&gt;Like many people (or is it just the geeks?) I use Google Reader to keep up-to-date with news and opinions from around the web, and del.icio.us to bookmark the interesting things I come across. A couple of weeks ago MichaelSearcy's analysis of &lt;a href="http://googlesystem.blogspot.com/2008/03/googles-broken-bookmarking-systems.html"&gt;Google's Broken Bookmarking Systems&lt;/a&gt; popped up and got me thinking about how I could get more out of the Reader/del.icio.us combination and what it would take. &lt;/p&gt;

&lt;p&gt;
In Reader I tend to mark items I want to read later or keep for the future with a star, sometimes I get around to reading them again, and sometimes I get around to adding them to del.icio.us but sometimes despite my best intentions I don't and slowly I'm building up two parallel sets of items I want to keep, one in Reader and one in del.icio.us. &lt;/p&gt;

&lt;p&gt;What I need is an easy way to get items I want to keep from Reader into del.icio.us - currently I either have to open the item up in a new browser tab and then use the del.icio.us toolbar to add it, or use a Greasemonkey script to add the ability to post straight to del.icio.us from Reader and it's not always how I want to work.&lt;/p&gt;

&lt;p&gt;What I want to be able to do is mark something as shared in Reader and have it appear in my del.icio.us inbox and from there I can choose to save it (being able to delete items from the inbox would be helpful too).&lt;/p&gt;

&lt;p&gt;Reader already produces a feed for shared items (and other the labels if you know how to get at them), but del.icio.us doesn't have any way of consuming feeds and they don't seem too keen on the idea of adding it.&amp;nbsp; I've had a brief scan of some of the other social bookmarking sites and they don't seem to support getting bookmarks from a feed either, so perhaps there's an opportunity for someone?&lt;/p&gt;

&lt;p&gt;For the second part of the puzzle I'd like a way of having any tags I attach Reader to be included in the feed, this is something del.icio.us does with its feeds so Reader could do it via something like &lt;a href="http://microformats.org/wiki/xfolk"&gt;xFolk microformat&lt;/a&gt;, then not only will my shared items arrive in my del.icio.us inbox but they'll also arrive with tags already attached.&lt;/p&gt;

&lt;p&gt;Data portability and how private data can be shared between social services is a hot topic but right now, I'd settle for services that can share my public information!&lt;/p&gt;

&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/AndysNotebook/~4/whpNqlcHEHU" height="1" width="1"/&gt;</content>


    <feedburner:origLink>http://www.andysnotebook.com/2008/04/why-isnt-there.html</feedburner:origLink></entry>
    <entry>
        <title>Ideas for improving my twitter traffic bot</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AndysNotebook/~3/Ij_CRHCi6iw/twitterbot.html" />
        <link rel="replies" type="text/html" href="http://www.andysnotebook.com/2008/03/twitterbot.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-47443372</id>
        <published>2008-03-25T12:43:29+00:00</published>
        <updated>2008-03-25T12:43:29+00:00</updated>
        <summary>The bot I built for keeping me up-to-date with traffic conditions on the M5 has proved handy a few times but it also suffers from a couple of drawbacks... It only covers the M5, and the whole of the M5...</summary>
        <author>
            <name>Andy Davies</name>
        </author>
        
        
<content type="html" xml:lang="en-GB" xml:base="http://www.andysnotebook.com/">
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;The bot I built for keeping me up-to-date with traffic conditions on the M5 has proved handy a few times but it also suffers from a couple of drawbacks...&lt;br /&gt; &lt;/p&gt;

&lt;p&gt;It only covers the M5, and the whole of the M5 at that, if someone wants updates on the M4, or&amp;nbsp; just part of the M5 there's no way for them to choose the information that's relevant to them.

&lt;/p&gt;

&lt;p&gt;TwitterFeed also introduces a time delay and even on it's most frequent setting it will only check a feed every 30 minutes - as we found out on Friday morning when we ran into a jam just north of the M4/M5 interchange only to hear our phones get the text message telling us there was a hold up!





&lt;/p&gt;



&lt;p&gt;So I've been thinking about building a new bot that would allow someone to choose the roads (and parts of)&amp;nbsp; they want to receive updates for.&lt;/p&gt;

&lt;p&gt;The bot would allow people to send it messages about the roads they're interested in, grab the traffic feed from the Highways Agency (and perhaps other feeds) on a regular basis, and when there's something to tell people message them via twitter.&lt;/p&gt;

&lt;p&gt;I'm thinking of something that's quite similar to &lt;a href="http://www.mytrade.com/api/twitter/"&gt;mytrade's twitter bot&lt;/a&gt; in concept but needs to be more frequent in it's updates. The language used to communicate with the bot also needs to allow richer concepts as in stock watching terms it needs to support not just broadcasting prices, but broadcasting when a price crosses a user set threshold. &lt;/p&gt;

&lt;p&gt;The things I'm looking at right now are:&lt;/p&gt;

&lt;p&gt;The syntax for communicating with the bot - something similar to the syntax of mytrade's bot might be good enough but I need to have a hunt around to see what alternatives are about. (I'm not sure I like twitter's format for direct messaging and wonder whether !username might be fit better with the @username format used elsewhere on twitter, but there's not a lot I can do about that!)&lt;/p&gt; 

&lt;p&gt;Whether to use the REST API or Jabber / XMPP for communicating with twitter. The API pages suggest using Jabber / XMPP for bots that use direct messages so perhaps I'll follow their advice to begin with.&lt;/p&gt;



&lt;p&gt;So time to brush off my coding skills and as I (hopefully) make some progress I'll add some updates here.&lt;/p&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/AndysNotebook/~4/Ij_CRHCi6iw" height="1" width="1"/&gt;</content>


    <feedburner:origLink>http://www.andysnotebook.com/2008/03/twitterbot.html</feedburner:origLink></entry>
    <entry>
        <title>Some other online tools for filtering RSS</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AndysNotebook/~3/b5waOstR3Mg/other-ways-of-f.html" />
        <link rel="replies" type="text/html" href="http://www.andysnotebook.com/2008/03/other-ways-of-f.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-46608764</id>
        <published>2008-03-07T12:19:45+00:00</published>
        <updated>2008-03-07T12:19:45+00:00</updated>
        <summary>UK_M5_Traffic currently uses Yahoo Pipes to filter and manipulate the RSS feed it's based on but I came across a post on Read Write Web that lists some other online tools that might be worth exploring. ZapTXT looks to be...</summary>
        <author>
            <name>Andy Davies</name>
        </author>
        
        
<content type="xhtml" xml:lang="en-GB" xml:base="http://www.andysnotebook.com/"><div xmlns="http://www.w3.org/1999/xhtml"><p>UK_M5_Traffic currently uses Yahoo Pipes to filter and manipulate the RSS feed it's based on but I came across a post on <a href="http://www.readwriteweb.com/archives/6_ways_to_filter_your_rss_feeds.php">Read Write Web</a> that lists some other online tools that might be worth exploring. <a href="http://www.zaptxt.com/">ZapTXT</a> looks to be the most interesting but won't send text messages outside the US and Canada at the moment.</p>

<p>In the short term I'll probably carry on using Pipes as I'm now using it's regex features to cut down the message to make it a bit more punchy and readable.</p><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/AndysNotebook/~4/b5waOstR3Mg" height="1" width="1" /></div></content>


    <feedburner:origLink>http://www.andysnotebook.com/2008/03/other-ways-of-f.html</feedburner:origLink></entry>
    <entry>
        <title>Roll your own traffic alerts using twitter and Yahoo Pipes</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AndysNotebook/~3/GIOX94Boln4/roll-your-own-t.html" />
        <link rel="replies" type="text/html" href="http://www.andysnotebook.com/2008/03/roll-your-own-t.html" thr:count="4" thr:updated="2008-05-05T01:32:42+01:00" />
        <id>tag:typepad.com,2003:post-46607754</id>
        <published>2008-03-05T14:55:08+00:00</published>
        <updated>2008-03-05T14:55:08+00:00</updated>
        <summary>In the early hours of Tuesday morning there was a three lorry smash on the M5 just north of Bristol resulting in diesel and olive oil being spilt all over the road and a closed motorway. A work colleague sent...</summary>
        <author>
            <name>Andy Davies</name>
        </author>
        
        
<content type="xhtml" xml:lang="en-GB" xml:base="http://www.andysnotebook.com/"><div xmlns="http://www.w3.org/1999/xhtml"><p>In the early hours of Tuesday morning there was a three lorry smash on the M5 just north of Bristol resulting in diesel and olive oil being spilt all over the road and a closed motorway. A work colleague sent Nic (my wife) a text message to let her know but unfortunately it arrived just after she had got on the motorway and so the fifteen (ish) miles to work took three hours!

</p>

<p>During her three hours stuck on the motorway we had a few calls and of course there were questions about why wasn't there a way of letting people know about traffic problems so they could take alternate routes came up (either via signs before you get on the motorway or via text messages etc.)</p>

<p>A quick Google found a few sites that would send a text message when there were traffic problems but they wanted to charge a minimum of 50p a text!</p>

<p>So ever curious, I wondered how hard could it be to roll a free version of my own?<br /> </p>

<p>In the UK, the Highways Agency conveniently provides RSS feeds for traffic incidents - <a href="http://www.highways.gov.uk/traffic/11278.aspx">http://www.highways.gov.uk/traffic/11278.aspx</a> - now all that I needed was a way to filter the feed and fire off a text message.</p>

<p>I've played with Yahoo Pipes in the past so it was my first port of call to filter the whole of the UK feed for just incidents affecting the M5. If you're interested the pipe's here: <a href="http://pipes.yahoo.com/andydavies/m5traffic">http://pipes.yahoo.com/andydavies/m5traffic</a> (<a href="http://www.timandkathy.co.uk/journal/">Tim</a> later pointed out that I could skip this step and just use the M5 feed instead, but I might add a date and time to the message so I haven't changed from Pipes yet).</p>



<p>So now the feed contains just the incidents affecting the M5, what ways are there of firing off a text message? A quick email to <a href="http://www.under-score.org.uk/mailman/listinfo/underscore">underscore</a> about RSS to SMS conversion and back came the suggestion of using Twitter and it's API (again, thanks to Tim).</p>

<p>After playing for a while with trying to drive Twitter's API from Yahoo Pipes and deciding against it, I found <a href="http://twitterfeed.com/">twitter feed</a>. twitter feed does what it says on the tin - takes a feed and uses it to update a twitter account</p>

<p>So create a new twitter account - imaginatively named <a href="http://twitter.com/UK_M5_Traffic">UK_M5_Traffic</a> - use twitter feed to link it to the Yahoo Pipe, set my main twitter account to follow it and send me a text message when it's updated and there it is, a free automatic alert system for traffic incidents on the M5.</p>

<p>The first message through was a bit on the useless side as it just used the title from the item and the title doesn't contain enough information about where the problem is, but switching twitter feed to use the description fixed that. As twitter can only display 140 characters, the end of the message gets cut off but there's enough information for it to be useful.</p>

<p>If anyone wants to keep an eye on the M5, the final result is here: <a href="http://twitter.com/UK_M5_Traffic">http://twitter.com/UK_M5_Traffic</a><br /> </p><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/AndysNotebook/~4/GIOX94Boln4" height="1" width="1" /></div></content>


    <feedburner:origLink>http://www.andysnotebook.com/2008/03/roll-your-own-t.html</feedburner:origLink></entry>
 
</feed><!-- ph=1 --><!-- nhm:dynamic-ssi -->
