<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Design Build Test Repeat</title>
	<atom:link href="http://designbuildtestrepeat.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://designbuildtestrepeat.wordpress.com</link>
	<description>Voluntarily cast upon the waves of outrageous fortune, this lowly geek flops from peak to peak of the technological ocean. Linux, Windows, C, Ruby, Python and embedded systems all attempt to pull our stalwart hero down. Will he survive alone or will the lifeboat of corporate servitude be too tempting.</description>
	<lastBuildDate>Tue, 09 Jun 2009 09:52:04 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='designbuildtestrepeat.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/93fffdab6f8d025ffff8d8ccfcf2173b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Design Build Test Repeat</title>
		<link>http://designbuildtestrepeat.wordpress.com</link>
	</image>
			<item>
		<title>AIB Phishing attempt or just stupid use of email</title>
		<link>http://designbuildtestrepeat.wordpress.com/2009/06/09/aib-phishing-attempt-or-just-stupid-use-of-email/</link>
		<comments>http://designbuildtestrepeat.wordpress.com/2009/06/09/aib-phishing-attempt-or-just-stupid-use-of-email/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 09:52:04 +0000</pubDate>
		<dc:creator>Diarmuid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://designbuildtestrepeat.wordpress.com/?p=45</guid>
		<description><![CDATA[I just got an email from what purports to be Allied Irish Banks p.l.c. , &#60;info@aib.ie&#62; , with a reply address of do-not-reply@aib.ie. with a subject of &#8220;Internet Banking Update&#8221; .
 
There is indeed a new look website that has been up for a few weeks, but asking to download a form and follow instructions [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=45&subd=designbuildtestrepeat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I just got an email from what purports to be <span><span style="color:#00681c;">Allied Irish Banks p.l.c. , </span></span><span><span>&lt;info@aib.ie&gt; , with a reply address of </span></span><span>do-not-reply@aib.ie. with a subject of </span><span>&#8220;Internet Banking Update&#8221; .</span></p>
<p><span> </span></p>
<div class="wp-caption alignnone" style="width: 970px"><img title="AIB Email" src="http://designbuildtestrepeat.files.wordpress.com/2009/06/screenshot-1.png?w=960&#038;h=404" alt="AIB Email" width="960" height="404" /><p class="wp-caption-text">AIB Email</p></div>
<p><span>There is indeed a new look website that has been up for a few weeks, but asking to download a form and follow instructions raised alarm bells. </span></p>
<p><span>The attached form is an HTML page containing loads of image and script links back to the AIB wensite, but teh critical line is the form submit which points at </span>http://212.34.134.245/webmail/themes/tmp/index.php.</p>
<p>The Geo IP report on teh ip address suggests it is a Madrid based computer.</p>
<div class="wp-caption alignnone" style="width: 743px"><img title="Geo IP report" src="http://designbuildtestrepeat.files.wordpress.com/2009/06/screenshot-2.png?w=733&#038;h=162" alt="Geo IP Report" width="733" height="162" /><p class="wp-caption-text">Geo IP Report</p></div>
<p>The actual HTML form looks like this</p>
<div id="attachment_51" class="wp-caption alignnone" style="width: 714px"><img class="size-full wp-image-51" title="AIB Phishing form" src="http://designbuildtestrepeat.files.wordpress.com/2009/06/screenshot-3.png?w=704&#038;h=549" alt="AIB Phishing form" width="704" height="549" /><p class="wp-caption-text">AIB Phishing form</p></div>
<p>If you put in rubbish values, the javascript throws a series of errors and the form also expects that all the security codes are filled in. This is of course because AIB requires the use of a 1 time only card for funds transfers.</p>
<p>All in all a pretty basic attempt a social engineering, but all the same it would probably get quite a few people.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designbuildtestrepeat.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designbuildtestrepeat.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designbuildtestrepeat.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designbuildtestrepeat.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designbuildtestrepeat.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designbuildtestrepeat.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designbuildtestrepeat.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designbuildtestrepeat.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designbuildtestrepeat.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designbuildtestrepeat.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=45&subd=designbuildtestrepeat&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://designbuildtestrepeat.wordpress.com/2009/06/09/aib-phishing-attempt-or-just-stupid-use-of-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/200f08d8e17b46729ef55df2cdc70205?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Diarmuid</media:title>
		</media:content>

		<media:content url="http://designbuildtestrepeat.files.wordpress.com/2009/06/screenshot-1.png" medium="image">
			<media:title type="html">AIB Email</media:title>
		</media:content>

		<media:content url="http://designbuildtestrepeat.files.wordpress.com/2009/06/screenshot-2.png" medium="image">
			<media:title type="html">Geo IP report</media:title>
		</media:content>

		<media:content url="http://designbuildtestrepeat.files.wordpress.com/2009/06/screenshot-3.png" medium="image">
			<media:title type="html">AIB Phishing form</media:title>
		</media:content>
	</item>
		<item>
		<title>Be anonymous no more</title>
		<link>http://designbuildtestrepeat.wordpress.com/2009/02/10/be-anonymous-no-more/</link>
		<comments>http://designbuildtestrepeat.wordpress.com/2009/02/10/be-anonymous-no-more/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 11:14:55 +0000</pubDate>
		<dc:creator>Diarmuid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://designbuildtestrepeat.wordpress.com/?p=37</guid>
		<description><![CDATA[Twitter is the most important tool in the universe.
Without it how would we know that a plane was in the Hudson before the people in the plane knew? How would we know that the  Mars rovers actually were sentient (I twitter therefore I am not a robot)? How would we know that Stephen Fry [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=37&subd=designbuildtestrepeat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Twitter is the most important tool in the universe.</p>
<p>Without it how would we know that a plane was in the Hudson before the people in the plane knew? How would we know that the  <a title="Mars Rovers" href="http://twitter.com/marsrover" target="_blank">Mars rovers</a> actually were sentient (I twitter therefore I am not a robot)? How would we know that <a title="Stephen Fry" href="http://twitter.com/stephenfry" target="_blank">Stephen Fry</a> is a fancy dressing pugilist with a penchant for sculpting dead bodies while making bad music? Twitter that&#8217;s how.</p>
<p>But who are these 12,345 close friends that sit on every choice morsel of cranial excreta that oozes from your finder tips. Sure, twitter shows a few pictures, but how can one appreciate the wholeness of the twitteverse in a 6&#215;6 matrix? A 10&#215;10 matrix should do it. And that is what my good friend Walter Higgins has done with  <a title="Twitter Mosaic" href="http://sxoop.com/twitter/mosaic.pl" target="_blank">Twitter Mosaic</a> from his company, Sxoop Technologies.</p>
<p>Never again will you be have to walk in public, worried that you, a rare and delicate example of the heaving mass of humanity, are anonymous. No, now you will be able to shout (manically but silently) with passion to the unbelievers that I, @(add twitter name here) am an early adopter, a fully fledged, paid up member of the technoarti and the you, dull drones, are doomed to never know what it feels to be part of  The Collective.</p>
<p>Ah go on. Buy a T.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designbuildtestrepeat.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designbuildtestrepeat.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designbuildtestrepeat.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designbuildtestrepeat.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designbuildtestrepeat.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designbuildtestrepeat.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designbuildtestrepeat.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designbuildtestrepeat.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designbuildtestrepeat.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designbuildtestrepeat.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=37&subd=designbuildtestrepeat&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://designbuildtestrepeat.wordpress.com/2009/02/10/be-anonymous-no-more/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/200f08d8e17b46729ef55df2cdc70205?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Diarmuid</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu &#8211; dual boot on Medio/Aldi mini laptop</title>
		<link>http://designbuildtestrepeat.wordpress.com/2008/09/10/ubuntu-dual-boot-on-medioaldi-mini-laptop/</link>
		<comments>http://designbuildtestrepeat.wordpress.com/2008/09/10/ubuntu-dual-boot-on-medioaldi-mini-laptop/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 09:50:26 +0000</pubDate>
		<dc:creator>Diarmuid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Aldi]]></category>
		<category><![CDATA[Medion]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://designbuildtestrepeat.wordpress.com/?p=35</guid>
		<description><![CDATA[I bought a mini laptop from Aldi, the E1210. It&#8217;s only 1.2 Kg, 1.6 GHz, 1 Gb ram, 80 GB HD. It has windows XP home which works very well, but I need Ubuntu. I wanted to keep the install of XP so here is how I did it. There is no CD so I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=35&subd=designbuildtestrepeat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I bought a mini laptop from Aldi, the E1210. It&#8217;s only 1.2 Kg, 1.6 GHz, 1 Gb ram, 80 GB HD. It has windows XP home which works very well, but I need Ubuntu. I wanted to keep the install of XP so here is how I did it. There is no CD so I used USB drives.</p>
<ol>
<li>On my main laptop running Ubuntu I used UNetbootin to create a Parted Magic usb stick</li>
<li>On the Medion I booted from the USB disk and used the UI QParted to resize the XP disk to be 40 GB. For some reason I had to do the partitioning this way as the Ubuntu installer would not allow me to resize the exisiting 80 GB partition.</li>
<li>Then I rebooted into XP and formated the unused space as a fat32 drive</li>
<li>Then I used UNetbootin to create a Ubuntu 8.01 USB disk.</li>
<li>I booted the Medion using the Ubuntu disk.</li>
<li>I ran the install and when the partition choice came up the empty drive (SDA2) was pre selected.</li>
<li>The install went fine and then I had a dual boot with no CD used.</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/designbuildtestrepeat.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/designbuildtestrepeat.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designbuildtestrepeat.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designbuildtestrepeat.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designbuildtestrepeat.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designbuildtestrepeat.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designbuildtestrepeat.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designbuildtestrepeat.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designbuildtestrepeat.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designbuildtestrepeat.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designbuildtestrepeat.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designbuildtestrepeat.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=35&subd=designbuildtestrepeat&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://designbuildtestrepeat.wordpress.com/2008/09/10/ubuntu-dual-boot-on-medioaldi-mini-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/200f08d8e17b46729ef55df2cdc70205?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Diarmuid</media:title>
		</media:content>
	</item>
		<item>
		<title>SMS over 3G and Bluetooth from Python</title>
		<link>http://designbuildtestrepeat.wordpress.com/2008/06/26/sms-over-3g-and-bluetooth-from-python/</link>
		<comments>http://designbuildtestrepeat.wordpress.com/2008/06/26/sms-over-3g-and-bluetooth-from-python/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 17:11:07 +0000</pubDate>
		<dc:creator>Diarmuid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://designbuildtestrepeat.wordpress.com/?p=34</guid>
		<description><![CDATA[I wrote a fairly well received blog post on using those nice 3G modems from Vodafone and O2 in Linux to send SMS. It was based on using the modems through minicom, but since minicom uses a straight serial connection it is possible to use the modems through code, in my case Python.
The following code [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=34&subd=designbuildtestrepeat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I wrote a fairly well received blog post on using those nice 3G modems from Vodafone and O2 in Linux to send SMS. It was based on using the modems through minicom, but since minicom uses a straight serial connection it is possible to use the modems through code, in my case Python.</p>
<p>The following code shows how to send an SMS via a 3G USB modem.<br />
<code><br />
import serial</code><br />
def SendVia3G():</p>
<p>ser = serial.Serial(&#8216;/dev/ttyUSB1&#8242;, 115200, timeout=1)<br />
ser.write(&#8216;ATZ\r&#8217;)<br />
ser.write(&#8216;AT+CMGF=1\r&#8217;)<br />
ser.write(&#8216;AT+CMGS=&#8221;+353868276XXX&#8221;\r&#8217;)<br />
ser.write(&#8216;SMS over 3G but from Python\n&#8217;)<br />
ser.write(chr(26))<br />
line = ser.readline()   #read a &#8216;\n&#8217; terminated line<br />
print line<br />
ser.close()</p>
<p>Obviously the  serial extensions for python have to be installed. I use apt.<br />
<code>apt-get install python-serial</code></p>
<p>You can also use some similiar code to send the SMS via a mobile phone that is connected via bluetooth</p>
<p><code>apt-get install python-serial python-bluetooth<br />
</code></p>
<p>import bluetooth<br />
import serial</p>
<p>def SendViaBluetooth():<br />
sockfd = bluetooth.BluetoothSocket(bluetooth.RFCOMM)<br />
sockfd.connect((&#8216;00:12:D2:7A:XX:XX&#8217;, 1)) # BT Address<br />
sockfd.send(&#8216;ATZ\r&#8217;)<br />
sockfd.send(&#8216;AT+CMGF=1\r&#8217;)<br />
sockfd.send(&#8216;AT+CMGS=&#8221;+353868276XXX&#8221;\r&#8217;) # TO PhoneNumber<br />
sockfd.send(&#8216;SMS over Bluetooth\n&#8217;)<br />
sockfd.send(chr(26)) # CTRL+Z<br />
sockfd.close(</p>
<p>You might need to mess around with python and bluetooth to make sure the channel is right for your phone (1 above in the connect line). 1 is for Nokias.</p>
<p>I&#8217;ve created a little class (although it&#8217;s a while since I wrote this and I may have got inspiration from somewhere as it looks too good to be my code!!!) that makes using the E220 a little easier in more complicated use cases.</p>
<p>import bluetooth<br />
import serial</p>
<p>class HuaweiModem(object):<br />
def __init__(self):<br />
self.open()</p>
<p>def open(self):<br />
self.ser = serial.Serial(&#8216;/dev/ttyUSB2&#8242;, 115200, timeout=1)<br />
self.SendCommand(&#8216;ATZ\r&#8217;)<br />
self.SendCommand(&#8216;AT+CMGF=1\r&#8217;)</p>
<p>def close(self):<br />
self.ser.close()</p>
<p>def SendSMS(self, address, message):<br />
command = &#8216;AT+CMGS=&#8221;%s&#8221;\r&#8217;%address<br />
self.SendCommand(command,getline=False)<br />
command = &#8216;%s\n&#8217;%message<br />
self.SendCommand(command,getline=False)<br />
self.SendCommand(chr(26),getline=False)</p>
<p>def GetAllSMS(self):<br />
self.ser.flushInput()<br />
self.ser.flushOutput()</p>
<p>command = &#8216;AT+CMGL=&#8221;all&#8221;\r&#8217;<br />
print self.SendCommand(command,getline=False)<br />
self.ser.timeout = 2<br />
data = self.ser.readline()<br />
print data</p>
<p>while data !=&#8221;:<br />
data = self.ser.readline()<br />
if data.find(&#8216;+cmgl&#8217;)&gt;0:<br />
print data</p>
<p>def SendCommand(self,command, getline=True):<br />
self.ser.write(command)<br />
data = &#8221;<br />
if getline:<br />
data = self.ReadLine()<br />
return data</p>
<p>def ReadLine(self):<br />
data = self.ser.readline()<br />
print data<br />
return data</p>
<p>h = HuaweiModem()<br />
h.GetAllSMS()<br />
h.SendSMS(&#8216;+353868276XXX&#8217;,'A Nice message from Bluekulu.com&#8217;)<br />
h.close()</p>
<p>Happy texting!!! and check out www.Bluekulu.com. Bluetooth Marketing Specialists.</p>
<p><span style="color:#ff6600;">Apologies for the formating but WordPress is deleting the leading spaces from the code above. Use this <a title="SMS over 3G" href="http://www.bluekulu.com/files/3GSMS.pyy" target="_blank">link </a>to get a </span><span style="color:#ff0000;"><span style="color:#ff6600;">text file</span>.</span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/designbuildtestrepeat.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/designbuildtestrepeat.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designbuildtestrepeat.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designbuildtestrepeat.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designbuildtestrepeat.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designbuildtestrepeat.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designbuildtestrepeat.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designbuildtestrepeat.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designbuildtestrepeat.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designbuildtestrepeat.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designbuildtestrepeat.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designbuildtestrepeat.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=34&subd=designbuildtestrepeat&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://designbuildtestrepeat.wordpress.com/2008/06/26/sms-over-3g-and-bluetooth-from-python/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/200f08d8e17b46729ef55df2cdc70205?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Diarmuid</media:title>
		</media:content>
	</item>
		<item>
		<title>I can change the world&#8230; well a web page anyway!!!</title>
		<link>http://designbuildtestrepeat.wordpress.com/2008/05/29/i-can-change-the-world-well-a-web-page-anyway/</link>
		<comments>http://designbuildtestrepeat.wordpress.com/2008/05/29/i-can-change-the-world-well-a-web-page-anyway/#comments</comments>
		<pubDate>Thu, 29 May 2008 12:38:40 +0000</pubDate>
		<dc:creator>Diarmuid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://designbuildtestrepeat.wordpress.com/?p=33</guid>
		<description><![CDATA[Via have released a design of one of their ultra small laptops under CC. I tried to download the CAD files but something was wrong. I contacted them through the site and got an email back from Tim Brown, International Marketing Manager (straight to the top with me; no messing with minions there) who said [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=33&subd=designbuildtestrepeat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Via have released a <a title="Via Open Book" href="http://www.viaopenbook.com/" target="_blank">design </a>of one of their ultra small laptops under CC. I tried to download the CAD files but something was wrong. I contacted them through the site and got an email back from Tim Brown, International Marketing Manager (straight to the top with me; no messing with minions there) who said that I had to register first, an instruction that was on the site, but not clear. Anyway I went to the site today and they have removed the registration for download req. so now you just have to accept the CC license and download away.</p>
<p>But the files are in Pro E format, not a package that most people have lying around. I&#8217;ve suggested that they supply the designs as Rhino 3D files as Rhino provide a free evaluation download. We&#8217;ll see how that goes.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/designbuildtestrepeat.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/designbuildtestrepeat.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designbuildtestrepeat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designbuildtestrepeat.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designbuildtestrepeat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designbuildtestrepeat.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designbuildtestrepeat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designbuildtestrepeat.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designbuildtestrepeat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designbuildtestrepeat.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designbuildtestrepeat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designbuildtestrepeat.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=33&subd=designbuildtestrepeat&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://designbuildtestrepeat.wordpress.com/2008/05/29/i-can-change-the-world-well-a-web-page-anyway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/200f08d8e17b46729ef55df2cdc70205?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Diarmuid</media:title>
		</media:content>
	</item>
		<item>
		<title>eBox-2300-SX &#8211; really small computing with a gotcha</title>
		<link>http://designbuildtestrepeat.wordpress.com/2008/04/30/ebox-2300-sx-really-small-computing-with-a-gotcha/</link>
		<comments>http://designbuildtestrepeat.wordpress.com/2008/04/30/ebox-2300-sx-really-small-computing-with-a-gotcha/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 23:52:47 +0000</pubDate>
		<dc:creator>Diarmuid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux voyage ebox]]></category>

		<guid isPermaLink="false">http://designbuildtestrepeat.wordpress.com/?p=32</guid>
		<description><![CDATA[I recently bought a few of these  eBox-2300-SX  computers. Really small and pretty cheap at 90 USD.  For various reasons I did not know that these were the SX version. The chip is a 300 mHz 486 and a previous one that looked very similar had worked a charm. I&#8217;ll tell you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=32&subd=designbuildtestrepeat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I recently bought a few of these <strong> eBox-2300-SX </strong> computers. Really small and pretty cheap at 90 USD.  For various reasons I did not know that these were the SX version. The chip is a 300 mHz 486 and a previous one that looked very similar had worked a charm. I&#8217;ll tell you this. The SX bit is important. It means there is no maths co processor on board the chip (it&#8217;s like computing back in 1988). The critical thing is that most Linux distros assume the co processor otherwise the kernel has to be compiled to include math emulation  (Debian did so in sarge but has stopped since).  I managed to install Debian sarge on the computer&#8217;s compact flash, but it was sloooooow. Bogomips of 116.99. I use some arm chips that are 260 bogomips or so.</p>
<p>The other thing is that the Ethernet drivers are not available, but must be compiled into the kernel as well.<br />
Punkytse over at voyage Linux has kindly recompiled his great little Debian based distro. to include  math emulation. I hope he now includes the Ethernet drivers in it too.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/designbuildtestrepeat.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/designbuildtestrepeat.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designbuildtestrepeat.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designbuildtestrepeat.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designbuildtestrepeat.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designbuildtestrepeat.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designbuildtestrepeat.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designbuildtestrepeat.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designbuildtestrepeat.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designbuildtestrepeat.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designbuildtestrepeat.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designbuildtestrepeat.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=32&subd=designbuildtestrepeat&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://designbuildtestrepeat.wordpress.com/2008/04/30/ebox-2300-sx-really-small-computing-with-a-gotcha/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/200f08d8e17b46729ef55df2cdc70205?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Diarmuid</media:title>
		</media:content>
	</item>
		<item>
		<title>Huawei E220 on Linux for SMS</title>
		<link>http://designbuildtestrepeat.wordpress.com/2008/04/29/huawei-e220-on-linux-for-sms/</link>
		<comments>http://designbuildtestrepeat.wordpress.com/2008/04/29/huawei-e220-on-linux-for-sms/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 15:14:18 +0000</pubDate>
		<dc:creator>Diarmuid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://designbuildtestrepeat.wordpress.com/?p=31</guid>
		<description><![CDATA[The E220 as sold by many mobile phone operators has transformed business use of the web. No more is the sales force tied to poor wifi coverage, dial up connections or 56k GPRS speeds. The E200 gives 3G speeds of 7.2 Mbit in a very nice tidy package.
I develop mini computers for use in remote [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=31&subd=designbuildtestrepeat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The E220 as sold by many mobile phone operators has transformed business use of the web. No more is the sales force tied to poor wifi coverage, dial up connections or 56k GPRS speeds. The E200 gives 3G speeds of 7.2 Mbit in a very nice tidy package.</p>
<p>I develop mini computers for use in remote locations. These are used for a number of purposes, but particularily Bluetooth Marketing (www.bluekulu.com). The use of the E200 has allowed me to quickly add in both internet access for the device and now I have SMS working. This will be used to both trigger an action on the computer or indeed let it SMS out reports.</p>
<p>In this short article I explain how to set up the E200 for use as an SMS transmitter and receiver on Linux.</p>
<p><span id="more-31"></span>Setting up the E220 for use as a modem to allow 3G on Linux is well documented on the web, but there are a few articles that really made a difference in getting it going for me.</p>
<p><a href="http://www.theirishpenguin.com/2008/03/26/getting-the-huawei-e870-to-work-on-kubuntu-and-mobile-internet-from-o2/">The Irish Penguin » Blog Archive » Getting the Huawei E870 to work on Kubuntu (and Mobile Internet from O2)</a></p>
<p><a href="http://www.nslu2-linux.org/wiki/HowTo/AddUsb3gModem">NSLU2-Linux &#8211; HowTo / AddUsb3gModem browse</a></p>
<p>However, the SMS side is poorly documented.</p>
<p>I have put together a simple script that can be used to put the modem in the right state and that then launches minicom.</p>
<blockquote><p>#!/bin/bash<br />
rmmod usb-storage<br />
rmmod usb-serial<br />
mknod /dev/ttyUSB0 c 188 0<br />
mknod /dev/ttyUSB1 c 188 1<br />
mknod /dev/ttyUSB2 c 188 2<br />
modprobe usbserial vendor=0&#215;12d1 product=0&#215;1003<br />
sleep 10<br />
sudo /home/broadcast/bin/huaweiAktBbo-i386.out<br />
sleep 3 # wait for the USB host to settle down&#8230;<br />
sudo minicom</p></blockquote>
<p>In minicom I used the following settings</p>
<blockquote><p>Minicom settings<br />
Serial Device      : /dev/ttyUSB0<br />
Bps/Par/Bits       : 115200 8N1<br />
Hardware  No<br />
Software Flow Control : Yes</p></blockquote>
<p>Once you set these settings as the default, restart minicom. (CTRLA z x)</p>
<p>You are now in a position to send commands to the modem. The general format is AT+Some_Command. Some that will work straigh away are.</p>
<blockquote><p>AT+COPS=?      #get network names</p>
<p>AT+CIMI             #Get IMSI Number</p>
<p>AT+CGMI           #Get manufacturer name</p></blockquote>
<p>To send SMS&#8217;s you need to put the device in &#8220;Text&#8221; mode. This is done by sending the following command:</p>
<blockquote><p>AT+CMGF=1  # Puts the mode in text mode</p></blockquote>
<p>To send an SMS do the following:</p>
<blockquote><p>AT+CMGS=&#8221;+35386827XXXX&#8221;<br />
&gt; 3G Rocks!!!!<br />
CTRL-Z</p></blockquote>
<p>When you type in the line with the phone number the &#8220;&gt;&#8221; will come up automatically. Type in your message and when you are finished type in CTRLZ (as in ctrl key and z at the same time).</p>
<p>Good so far? But how about incoming messages. Have no fear, DBTR is here!!!</p>
<blockquote><p>AT+CMGL=&#8221;all&#8221;    #To get a list of SMS&#8217;s type in :</p>
<p>AT+CMGR=0        #get an individual message</p>
<p>AT+CMGD=n       #Delete a message where n is the number returned by the list above.</p></blockquote>
<p>There are quite a few other commands that the Huawei understands. I&#8217;ll post them later.</p>
<p>To hangup just do CTRLA x.</p>
<p>I hope this makes using the Huawei a bit easier. Now if anyone can tell me why incoming HTPP requests don&#8217;t work on Vodafone Ireland,  I&#8217;d be happy to hear from them.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/designbuildtestrepeat.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/designbuildtestrepeat.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designbuildtestrepeat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designbuildtestrepeat.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designbuildtestrepeat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designbuildtestrepeat.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designbuildtestrepeat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designbuildtestrepeat.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designbuildtestrepeat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designbuildtestrepeat.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designbuildtestrepeat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designbuildtestrepeat.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=31&subd=designbuildtestrepeat&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://designbuildtestrepeat.wordpress.com/2008/04/29/huawei-e220-on-linux-for-sms/feed/</wfw:commentRss>
		<slash:comments>44</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/200f08d8e17b46729ef55df2cdc70205?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Diarmuid</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenId: Microsoft&#8217;s take on it</title>
		<link>http://designbuildtestrepeat.wordpress.com/2008/01/31/openid-microsofts-take-on-it/</link>
		<comments>http://designbuildtestrepeat.wordpress.com/2008/01/31/openid-microsofts-take-on-it/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 13:28:06 +0000</pubDate>
		<dc:creator>Diarmuid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://designbuildtestrepeat.wordpress.com/?p=29</guid>
		<description><![CDATA[I&#8217;ve being following the progress of OpenID with interest and I blogged about it before. I toyed with an alternative called ClosedID and even checked to see if ClosedID.org was free. It was &#8230; but not anymore. Microsoft has it as of 12th January. It is registered to the OfficeLive.com domain but has info about [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=29&subd=designbuildtestrepeat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve being following the progress of OpenID with interest and I blogged about it before. I toyed with an alternative called ClosedID and even checked to see if <a href="http://www.ClosedID.org" title="ClosedID.org" target="_blank">ClosedID.org</a> was free. It was &#8230; but not anymore. Microsoft has it as of 12th January. It is registered to the OfficeLive.com domain but has info about the University of Washington&#8217;s Network Security Lab. Their home page spiel is little cryptic:</p>
<p><i>The identity is the most important property that man could have during and even after his life.  We academically research the one identification method in closed environment.</i></p>
<p>&#8220;The one identification method&#8221;!!!!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/designbuildtestrepeat.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/designbuildtestrepeat.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designbuildtestrepeat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designbuildtestrepeat.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designbuildtestrepeat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designbuildtestrepeat.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designbuildtestrepeat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designbuildtestrepeat.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designbuildtestrepeat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designbuildtestrepeat.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designbuildtestrepeat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designbuildtestrepeat.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=29&subd=designbuildtestrepeat&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://designbuildtestrepeat.wordpress.com/2008/01/31/openid-microsofts-take-on-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/200f08d8e17b46729ef55df2cdc70205?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Diarmuid</media:title>
		</media:content>
	</item>
		<item>
		<title>Amazon Web Services &#8211; SimpleDB will be huge</title>
		<link>http://designbuildtestrepeat.wordpress.com/2007/12/14/amazon-web-services-simpledb-will-be-huge/</link>
		<comments>http://designbuildtestrepeat.wordpress.com/2007/12/14/amazon-web-services-simpledb-will-be-huge/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 17:13:23 +0000</pubDate>
		<dc:creator>Diarmuid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AWS SimpleDB Amazon Database]]></category>

		<guid isPermaLink="false">http://designbuildtestrepeat.wordpress.com/2007/12/14/amazon-web-services-simpledb-will-be-huge/</guid>
		<description><![CDATA[Amazon have announced a database product in their Web services offering, calling it (in another Ronseal moment) &#8220;SimpleDB&#8221;. It provides spreadsheet lookup type access to data.

It looks like a great complement to the 3 other big systems.
EC2 for virtual computers, S3 for storage and SQS for message queue. Up etill now, the only way to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=28&subd=designbuildtestrepeat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Amazon have announced a database product in their Web services offering, calling it (in another <a href="http://en.wikipedia.org/wiki/Does_exactly_what_it_says_on_the_tin" title="It does exactly what it says on the tin!!" target="_blank">Ronseal</a> moment) &#8220;SimpleDB&#8221;. It provides spreadsheet lookup type access to data.</p>
<p><img src="http://g-ecx.images-amazon.com/images/G/01/00/00/01/05/38/51/105385110._V1309942_.gif" alt="Amazon SimpleDB" height="81" width="318" /></p>
<p>It looks like a great complement to the 3 other big systems.</p>
<p>EC2 for virtual computers, S3 for storage and SQS for message queue. Up etill now, the only way to store volatile data was in S3 as files, but lookup was limited to searching by name.  I use it for storing content generated by users, so I can search by bucket_name/username/datetime/extension/ and then I can get the list of filenames. That&#8217;s fine for data that is structured just so and you only want to search for it via that particular search sequence. It would be impossible, for instance to search for all data created on a particular day. SimpleDB changes that. Now I can search by type, date, name, username, etc as I wish.</p>
<p>The task now is to remove all Mysql requirments. Oh and thanks to the AWS team for inviting me to be on Beta. They called me one of their &#8220;most active developers&#8221;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/designbuildtestrepeat.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/designbuildtestrepeat.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designbuildtestrepeat.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designbuildtestrepeat.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designbuildtestrepeat.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designbuildtestrepeat.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designbuildtestrepeat.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designbuildtestrepeat.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designbuildtestrepeat.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designbuildtestrepeat.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designbuildtestrepeat.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designbuildtestrepeat.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=28&subd=designbuildtestrepeat&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://designbuildtestrepeat.wordpress.com/2007/12/14/amazon-web-services-simpledb-will-be-huge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/200f08d8e17b46729ef55df2cdc70205?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Diarmuid</media:title>
		</media:content>

		<media:content url="http://g-ecx.images-amazon.com/images/G/01/00/00/01/05/38/51/105385110._V1309942_.gif" medium="image">
			<media:title type="html">Amazon SimpleDB</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Amazon AWS to serve up Openstreetmap data</title>
		<link>http://designbuildtestrepeat.wordpress.com/2007/12/09/using-amazon-aws-to-serve-up-openstreet-map-data/</link>
		<comments>http://designbuildtestrepeat.wordpress.com/2007/12/09/using-amazon-aws-to-serve-up-openstreet-map-data/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 18:14:46 +0000</pubDate>
		<dc:creator>Diarmuid</dc:creator>
				<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Openstreetmap]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[maps]]></category>

		<guid isPermaLink="false">http://designbuildtestrepeat.wordpress.com/2007/12/09/using-amazon-aws-to-serve-up-openstreet-map-data/</guid>
		<description><![CDATA[Openstreetmap is a FOSS project that allows anyone to help with creating a fully open source street map of the world. Users upload GPS data to a central server where they or others can annotate and create street-maps . The resulting street-maps are as good as Goggle maps, Yahoo or Microsoft. The coverage is great [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=27&subd=designbuildtestrepeat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://openstreetmap.org/" title="http://openstreetmap.org/" target="_blank">Openstreetmap </a>is a FOSS project that allows anyone to help with creating a fully open source street map of the world. Users upload GPS data to a central server where they or others can annotate and create street-maps . The <a href="http://a.tile.openstreetmap.org/10/511/340.png" title="http://a.tile.openstreetmap.org/10/511/340.png" target="_blank">resulting street-maps</a> are as good as Goggle maps, Yahoo or Microsoft. The coverage is great in the dense urban centers and not so good in the country side.  As part of this project they have created some great tools and leveraged some others.</p>
<p>But you ask, why bother when <a href="http://maps.google.com/" title="http://maps.google.com/" target="_blank">Google </a>and co. are so generous with their data? Well, nothing is free and while Google can afford to let you use this data at home for nothing, they do restrict use of the data for commercial applications. They specifically do not allow system that connects a GPS to their map. Yahoo and AFAICT, Microsoft are the same.</p>
<p>OSM on the other hand, allow you to do pretty much anything you want with their data. They provide a great interface using <a href="http://www.openlayers.org/" title="www.openlayers.org/">OpenLayers</a>, that gives the now commonplace, ajax &#8220;slippy map&#8221;. They use a great map renderer call <a href="http://www.mapnik.org" title="www.mapnik.org" target="_blank">Mapnik </a>that actually creates the little images that make up the web map. While their images can be used freely, even in commercial applications, They are served from some hardware that is under allot of strain, and they encourage use of caches on your local servers.</p>
<p>I am developing a GPS tracking system for cars, trucks and boats and I want to do this as cheaply as possible. While I could use Google, et al, I don&#8217;t want to get into licensing, etc. So I am going to run my own OSM servers and I am going to do it on Amazon AWS.</p>
<h2>Technical Details follow!! You&#8217;ve been warned.</h2>
<p><span id="more-27"></span> I used an <a href="http://www.ubuntu.com/" title="http://www.ubuntu.com/" target="_blank">Ubuntu </a>Dapper Drake 6.06. LTS server AMI with all the usual build tools. I downloaded mapnik 0.4.0 and compiled. I downloaded <a href="http://artem.dev.openstreetmap.org/files/world_boundaries.tar.bze" title="http://artem.dev.openstreetmap.org/files/world_boundaries.tar.bz2" target="_blank">World Boundaries</a> and extracted to /mnt/spatialdata. I copied <a href="http://svn.openstreetmap.org/applications/rendering/mapnik/" title="http://svn.openstreetmap.org/applications/rendering/mapnik/" target="_blank">generate_tiles.py</a> and osm.xml to /mnt. I modified osm.xml to reflect the new path locations as well as removed all the postgresql calls (OSM stored all the road data in sql but I had trouble getting it going so I have left that for now). I then modified generate_tiles.py to only do an area around the <a href="http://www.peoplesrepublicofcork.com/" title="http://www.peoplesrepublicofcork.com/" target="_blank">South of Ireland</a> and to write all data to /mnt/tiles. I added <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=134&amp;categoryID=47" title="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=134&amp;categoryID=47" target="_blank">S3.py</a> to /usr/src and modified generate_tiles.py to add in that directory as a src (sys.path.append(&#8216;usr/src&#8217;)). I then added in code to upload the new tile to Amazon S3 in the osmtiles bucket.</p>
<p>I added the following lines above the &#8220;def minmax (a,b,c):&#8221; line. It assumes that you have set the environment variables properly.</p>
<address>os.sys.path.append(&#8216;/usr/src&#8217;)</address>
<address>import S3</address>
<address>BUCKET_NAME = &#8220;osmtiles&#8221; </address>
<address>conn = S3.AWSAuthConnection()</address>
<p> Then after the file is created locally I add these line:</p>
<address>        try:<br />
filedata = open(tile_uri, &#8216;rb&#8217;).read()<br />
content_type = &#8216;image/png&#8217;<br />
response = conn.put(BUCKET_NAME,&#8217;1.0.0/basic/&#8217;+ tile_shortname, S3.S3Object(filedata),<br />
{&#8216;x-amz-acl&#8217;: &#8216;public-read&#8217;, &#8216;Content-Type&#8217;: content_type,&#8217;title&#8217;: tile_shortname})<br />
print response.http_response.status<br />
except Exception, ex:<br />
print ex<br />
print tile_uri </address>
<address> </address>
<p>where tile_shortname is = zoom + &#8216;/&#8217; + str_x + &#8216;/&#8217; + str_y + &#8216;.png&#8217; . Thus files are created like the following on S3.</p>
<p><img src="http://osmtiles.s3.amazonaws.com/1.0.0/basic2/10/485/340.png" alt="West Cork, Ireland" height="256" width="256" /> with a path of  <a href="http://osmtiles.s3.amazonaws.com/1.0.0/basic2/10/485/340.png" title="http://osmtiles.s3.amazonaws.com/1.0.0/basic2/10/485/340.png" target="_blank">http://osmtiles.s3.amazonaws.com/1.0.0/basic2/10/485/340.png</a>.</p>
<p>These files can then be used in an Open Layers map. <a href="http://www.lukulu.com/map/tilesv2.htm" title="http://www.lukulu.com/map/tilesv2.htm" target="_blank">http://www.lukulu.com/map/tilesv2.htm</a></p>
<p>I also wrote a script to store the World Boundaries file on S3. I used a file splitter and created 20 segments. I also did the same for the planet.osm file (which contains the road data) which is 2 GB. There is no cost for data transfer between EC2 and S3 so I won&#8217;t have to pay to download these again for a while.</p>
<h2>So What?</h2>
<p>OK, so you ask, what is the big deal. Well, you may be right, it is not such a big deal, but what this means is that I can use Amazon EC2 to create my maps, the use Amazon S3 to store them. The only load on my servers is dishing up the map holding page. The java script for the map comes from the OpenLayers site. I do have to pay for storage of the files and transmission costs, but it means I have an app that can scale and is being served by one of the fastest pipes in the business.</p>
<h2>Where to from here</h2>
<p>I only ran my scripts for a few minutes as I just wanted the coast lines but if neccessar one could build a more sophisticated system. You could have a local script that creates messages on the Simple Queue Service that would tell running scripts which tiles to render. Thus popular locations (particular cities) could be prioritised. I can see for my requirement that I only want certain areas to be rendered in high detail.  I would develop a tool to allow me to create the bounding boxes easily, create the messages and then my script would render just those areas. I could see this being useful also when changing the format of the osm.xml. Of course, you could launch 20 instances of the AMI doing the processing to get the images rendered quickly.</p>
<p>Also, while serving images from s3 is easy and there is a cost for storage there is alos a cost per request. As each pan of a map loads up new images, this could be an issue. Running instances on Amazon have up to 160 GB of &#8220;storage&#8221;. I say &#8220;storage&#8221; because if you turn off the instance, data in /mnt is gone (it is preserved through reboots). When an instance is run it could download from s3 a tar&#8217;d file of a standard set of tiles. The web server would the serve the files. Dynamic DNS could be used, but this area is in flux at the moment with Amazon (NATting, etc.</p>
<p>I am going to implement most of the above and see how well it works. I&#8217;m quite enthusiastic that this could work very well for mapping in other areas too, e.g Mining, Geophysics, etc</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/designbuildtestrepeat.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/designbuildtestrepeat.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designbuildtestrepeat.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designbuildtestrepeat.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designbuildtestrepeat.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designbuildtestrepeat.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designbuildtestrepeat.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designbuildtestrepeat.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designbuildtestrepeat.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designbuildtestrepeat.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designbuildtestrepeat.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designbuildtestrepeat.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designbuildtestrepeat.wordpress.com&blog=419356&post=27&subd=designbuildtestrepeat&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://designbuildtestrepeat.wordpress.com/2007/12/09/using-amazon-aws-to-serve-up-openstreet-map-data/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/200f08d8e17b46729ef55df2cdc70205?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Diarmuid</media:title>
		</media:content>

		<media:content url="http://osmtiles.s3.amazonaws.com/1.0.0/basic2/10/485/340.png" medium="image">
			<media:title type="html">West Cork, Ireland</media:title>
		</media:content>
	</item>
	</channel>
</rss>