<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AlexH &#187; Programming</title>
	<atom:link href="http://www.alexharford.com/category/computers/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alexharford.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 09 Sep 2008 22:09:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Paid EMIs from Amazon EC2</title>
		<link>http://www.alexharford.com/2007/07/06/paid-emis-from-amazon-ec2/</link>
		<comments>http://www.alexharford.com/2007/07/06/paid-emis-from-amazon-ec2/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 16:17:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.alexharford.com/2007/07/06/paid-emis-from-amazon-ec2/</guid>
		<description><![CDATA[New feature from Amazon EC2:
Paid AMIs allow AWS developers to charge other Amazon EC2 users for the use of AMIs they have created and shared. Sellers of AMIs set the price, and their customers then purchase one or more AMIs and are billed through Amazon.com for their use of these paid AMIs.
Right now, only a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=866">New feature from Amazon EC2</a>:</p>
<blockquote><p>Paid AMIs allow AWS developers to charge other Amazon EC2 users for the use of AMIs they have created and shared. Sellers of AMIs set the price, and their customers then purchase one or more AMIs and are billed through Amazon.com for their use of these paid AMIs.</p></blockquote>
<p>Right now, only a select group of people can create paid AMIs, but hopefully they will open it up to more in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexharford.com/2007/07/06/paid-emis-from-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Presentation</title>
		<link>http://www.alexharford.com/2007/06/28/drupal-presentation/</link>
		<comments>http://www.alexharford.com/2007/06/28/drupal-presentation/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 04:34:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.alexharford.com/2007/06/28/drupal-presentation/</guid>
		<description><![CDATA[Thanks to everyone who came out to the presentation tonight.
I&#8217;ve put the presentation online if you want to download it.  Hosted by S3, natch.  
Here are some links with some more information:

Amazon Web Services blog
S3Fox Organizer for Firefox
Web interface to AWS
EC2 plugin for Firefox
Amazon Web Services forums

]]></description>
			<content:encoded><![CDATA[<p>Thanks to everyone who came out to the presentation tonight.</p>
<p>I&#8217;ve put the <a href="http://static.vanlug.bc.ca/amazon_aws_presentation_drupal.odp">presentation</a> online if you want to download it.  Hosted by S3, natch. <img src='http://www.alexharford.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here are some links with some more information:</p>
<ul>
<li><a href="http://blog.awswebshop.com/">Amazon Web Services blog</a></li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/3247">S3Fox Organizer for Firefox</a></li>
<li><a href="http://awszone.com/">Web interface to AWS</a></li>
<li><a href="http://developer.amazonwebservices.com/connect/entry.jspa?entryID=609">EC2 plugin for Firefox</a></li>
<li><a href="http://developer.amazonwebservices.com/connect/forumindex.jspa">Amazon Web Services forums</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.alexharford.com/2007/06/28/drupal-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simply Amazing!</title>
		<link>http://www.alexharford.com/2007/06/06/simply-amazing/</link>
		<comments>http://www.alexharford.com/2007/06/06/simply-amazing/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 23:13:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.alexharford.com/2007/06/06/simply-amazing/</guid>
		<description><![CDATA[I cannot believe how cool this is!  Photosynth combines flickr.com with an image processing algorithm to create an infinitely zoomable image.
The Photosynth Technology Preview is a taste of the newest &#8211; and, we hope, most exciting &#8211; way to view photos on a computer. Our software takes a large collection of photos of a [...]]]></description>
			<content:encoded><![CDATA[<p>I cannot believe how cool this is!  <a href="http://labs.live.com/photosynth/">Photosynth</a> combines flickr.com with an image processing algorithm to create an infinitely zoomable image.</p>
<blockquote><p><span class="grayText">The <strong>Photosynth Technology Preview</strong> is a taste of the newest &#8211; and, we hope, most exciting &#8211; way to <strong>view photos</strong> on a computer. Our software takes a large collection of photos of a place or an object, analyzes them for similarities, and then displays the photos in a reconstructed <strong>three-dimensional space</strong>, showing you how each one relates to the next.In our collections, you can access <strong>gigabytes</strong> of photos in seconds, view a scene from nearly <strong>any angle</strong>, find similar photos with a single click, and zoom in to make the <strong>smallest detail</strong> as big as your monitor.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.alexharford.com/2007/06/06/simply-amazing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Swapping caps and ctrl keys in Windows</title>
		<link>http://www.alexharford.com/2007/05/11/swapping-caps-and-ctrl-keys-in-windows/</link>
		<comments>http://www.alexharford.com/2007/05/11/swapping-caps-and-ctrl-keys-in-windows/#comments</comments>
		<pubDate>Fri, 11 May 2007 15:38:12 +0000</pubDate>
		<dc:creator>alexh</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.alexharford.com/2007/05/11/swapping-caps-and-ctrl-keys-in-windows/</guid>
		<description><![CDATA[Another step in my mouse reduction:
Francis Tang: Geek Stuff &#124; Win2k/XP Ctrl-Caps swap
XEmacs/Emacs users will understand this well: the Ctrl key is in the wrong position on modern PC 102 key keyboards. A better place for the Ctrl key is where it used to be, i.e. where the Caps key is now.
Powered by ScribeFire.
]]></description>
			<content:encoded><![CDATA[<p>Another step in my mouse reduction:</p>
<p><a href="http://www.bii.a-star.edu.sg/homepage/exstaff/francis/Geek/ctrl-caps-swap_g.php">Francis Tang: Geek Stuff | Win2k/XP Ctrl-Caps swap</a></p>
<blockquote><p>XEmacs/Emacs users will understand this well: the Ctrl key is in the wrong position on modern PC 102 key keyboards. A better place for the Ctrl key is where it used to be, i.e. where the Caps key is now.</p></blockquote>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexharford.com/2007/05/11/swapping-caps-and-ctrl-keys-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MS Compiler</title>
		<link>http://www.alexharford.com/2007/03/12/ms-compiler/</link>
		<comments>http://www.alexharford.com/2007/03/12/ms-compiler/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 18:29:40 +0000</pubDate>
		<dc:creator>alexh</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.alexharford.com/2007/03/12/ms-compiler/</guid>
		<description><![CDATA[Fatal Error C1061 (C++)  
Nesting of code blocks exceeds the limit of 128 nesting levels. Simplify nesting.
It&#8217;s not nested you stupid compiler!&#160; It&#8217;s just a list of if &#8211; else if statements.&#160; Ah well.

powered by performancing firefox
]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn2.microsoft.com/en-us/library/dcda4f64.aspx">Fatal Error C1061 (C++)</a> <br /> <br />
<blockquote>Nesting of code blocks exceeds the limit of 128 nesting levels. Simplify nesting.</p></blockquote>
<p>It&#8217;s not nested you stupid compiler!&nbsp; It&#8217;s just a list of if &#8211; else if statements.&nbsp; Ah well.</p>
<p>
<p class="poweredbyperformancing">powered by <a href="http://performancing.com/firefox">performancing firefox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexharford.com/2007/03/12/ms-compiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>S3 and torrents</title>
		<link>http://www.alexharford.com/2007/03/09/s3-and-torrents/</link>
		<comments>http://www.alexharford.com/2007/03/09/s3-and-torrents/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 22:46:52 +0000</pubDate>
		<dc:creator>alexh</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.alexharford.com/2007/03/09/s3-and-torrents/</guid>
		<description><![CDATA[BP answers the question on how you can serve files through S3 initially to jumpstart the swarm, but avoid paying massive bandwidth bills.
BP&#8217;s Weblog: Fun with torrents, and Amazon S3
And, that&#8217;s what I did. I downloaded the original file, uploaded it to a bucket I have on S3. Then, I copied the generated S3 .torrent [...]]]></description>
			<content:encoded><![CDATA[<p>BP answers the question on how you can serve files through S3 initially to jumpstart the swarm, but avoid paying massive bandwidth bills.</p>
<p><a href="http://geekdom.net/blog/archives/2006/08/17/fun_with_torrents_and_amazon_s3.html">BP&#8217;s Weblog: Fun with torrents, and Amazon S3</a></p>
<blockquote><p>And, that&#8217;s what I did. I downloaded the original file, uploaded it to a bucket I have on S3. Then, I copied the generated S3 .torrent to my own server, and told the Nerd Vittles folks where to find it. Meanwhile, I had copied the original file up to my hosted server, and started up a seed there, as well (this saved me having to pay for an extra download from S3).</p></blockquote>
<p>The advice at the end of the post tells you how to do it.  Great idea!</p>
<p class="poweredbyperformancing">powered by <a href="http://performancing.com/firefox" >performancing firefox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexharford.com/2007/03/09/s3-and-torrents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>S3 can log traffic per key</title>
		<link>http://www.alexharford.com/2007/03/09/s3-can-log-traffic-per-key/</link>
		<comments>http://www.alexharford.com/2007/03/09/s3-can-log-traffic-per-key/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 22:25:58 +0000</pubDate>
		<dc:creator>alexh</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.alexharford.com/2007/03/09/s3-can-log-traffic-per-key/</guid>
		<description><![CDATA[This was one of my problems with using S3 for hosting purposes, is that I couldn&#8217;t find a way to track per key (file).&#160; Turns out it&#8217;s a beta feature right now.&#160; I doubt that it will be taken away though.
Server Access Logging Overview  
An Amazon S3 bucket can be configured to create access [...]]]></description>
			<content:encoded><![CDATA[<p>This was one of my problems with using S3 for hosting purposes, is that I couldn&#8217;t find a way to track per key (file).&nbsp; Turns out it&#8217;s a beta feature right now.&nbsp; I doubt that it will be taken away though.</p>
<p><a href="http://docs.amazonwebservices.com/AmazonS3/2006-03-01/ServerLogs.html">Server Access Logging Overview</a> <br /> <br />
<blockquote>An Amazon S3 bucket can be configured to create access log records for the requests made against it. An access log record contains details about the request such as the request type, the resource the request worked worked with, and the time and date that the request was processed. Server access logs are useful for many applications, because they give bucket owners insight into the nature of requests made by clients not under their control.</p></blockquote>
<p>In the log you get the following data, amongst other things:</p>
<p><i>
<ul>
<li>Request-URI  	&#8220;GET /mybucket/photos/2006/08/puppy.jpg?x-foo=bar&#8221;	The Request-URI part of the HTTP request message.</li>
<li>Bytes Sent  	2662992  	The number of response bytes sent, excluding HTTP protocol overhead, or &#8216;-&#8217; if zero.</li>
</ul>
<p></i><br />Perfect.</p>
<p>
<p class="poweredbyperformancing">powered by <a href="http://performancing.com/firefox">performancing firefox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexharford.com/2007/03/09/s3-can-log-traffic-per-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A solution to the digital dark age?</title>
		<link>http://www.alexharford.com/2007/03/01/a-solution-to-the-digital-dark-age/</link>
		<comments>http://www.alexharford.com/2007/03/01/a-solution-to-the-digital-dark-age/#comments</comments>
		<pubDate>Thu, 01 Mar 2007 17:08:27 +0000</pubDate>
		<dc:creator>alexh</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Genealogy]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.alexharford.com/2007/03/01/a-solution-to-the-digital-dark-age/</guid>
		<description><![CDATA[Something I worry about is the archiving of my data.&#160; We take a lot of pictures with Tracy&#8217;s SLR, and also some movies with our DV cam, and currently it&#8217;s backed up on a hard drive, and to DVD.&#160; But that&#8217;s still quite fragile, and I&#8217;d like to make sure our data could be preserved [...]]]></description>
			<content:encoded><![CDATA[<p>Something I worry about is the archiving of my data.&nbsp; We take a lot of pictures with Tracy&#8217;s SLR, and also some movies with our DV cam, and currently it&#8217;s backed up on a hard drive, and to DVD.&nbsp; But that&#8217;s still quite fragile, and I&#8217;d like to make sure our data could be preserved for future generations.&nbsp; Could this be a solution to the problem?</p>
<p><a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;taxonomyName=storage&amp;articleId=9011945&amp;taxonomyId=19&amp;intsrc=kc_top">Scientists: Data-storing bacteria could last thousands of years</a> <br /> <br />
<blockquote>Keio University Institute for Advanced Biosciences and Keio University Shonan Fujisawa Campus announced the development of the new technology, which creates an artificial DNA that carries up to more than 100 bits of data within the genome sequence, according to the JCN Newswire.</p>
<p>The universities said they successfully encoded &#8220;e= mc2 1905!&#8221; &#8212; Einstein&#8217;s theory of relativity and the year he enunciated it &#8212; on the common soil bacteria, Bacillius subtilis.</p></blockquote>
<p class="poweredbyperformancing">powered by <a href="http://performancing.com/firefox">performancing firefox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexharford.com/2007/03/01/a-solution-to-the-digital-dark-age/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing a substring in MySQL</title>
		<link>http://www.alexharford.com/2007/01/30/replacing-a-substring-in-mysql/</link>
		<comments>http://www.alexharford.com/2007/01/30/replacing-a-substring-in-mysql/#comments</comments>
		<pubDate>Tue, 30 Jan 2007 17:39:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.alexharford.com/2007/01/30/replacing-a-substring-in-mysql/</guid>
		<description><![CDATA[UPDATE tablename SET tablename.column = REPLACE( tablename.column,  &#8220;oldtext&#8221;,  &#8220;newtext&#8221;  )  WHERE tablename.column LIKE  &#8220;%oldtext%&#8221;
]]></description>
			<content:encoded><![CDATA[<p><span class="syntax"></span><span class="syntax_alpha syntax_alpha_reservedWord">UPDATE</span> tablename <span class="syntax_alpha syntax_alpha_reservedWord">SET</span> tablename.column <span class="syntax_punct">=</span> <span class="syntax_alpha syntax_alpha_functionName">REPLACE</span><span class="syntax_punct syntax_punct_bracket_open_round">(</span> tablename.column,  <span class="syntax_quote syntax_quote_double">&#8220;oldtext&#8221;</span><span class="syntax_punct syntax_punct_listsep">,</span>  <span class="syntax_quote syntax_quote_double">&#8220;newtext&#8221;</span>  <span class="syntax_punct syntax_punct_bracket_close_round">)</span>  <span class="syntax_alpha syntax_alpha_reservedWord">WHERE</span> <span class="syntax_alpha syntax_alpha_identifier">tablename.column</span> <span class="syntax_alpha syntax_alpha_reservedWord">LIKE</span>  <span class="syntax_quote syntax_quote_double">&#8220;%oldtext%&#8221;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexharford.com/2007/01/30/replacing-a-substring-in-mysql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Amazon EC2 and S3, what it is, and what it isn&#8217;t</title>
		<link>http://www.alexharford.com/2006/11/21/amazon-ec2-and-s3-what-it-is-and-what-it-isnt/</link>
		<comments>http://www.alexharford.com/2006/11/21/amazon-ec2-and-s3-what-it-is-and-what-it-isnt/#comments</comments>
		<pubDate>Tue, 21 Nov 2006 13:36:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.alexharford.com/2006/11/21/amazon-ec2-and-s3-what-it-is-and-what-it-isnt/</guid>
		<description><![CDATA[There is a lot of confusion going on about Amazon EC2.  I know I didn&#8217;t fully understand it when I signed up, but now that I&#8217;ve played with it for a while, I feel that I can comment on how it works.

It is a full Linux machine.  You can install anything on it. [...]]]></description>
			<content:encoded><![CDATA[<p>There is a lot of confusion going on about Amazon EC2.  I know I didn&#8217;t fully understand it when I signed up, but now that I&#8217;ve played with it for a while, I feel that I can comment on how it works.</p>
<ul>
<li>It is a full Linux machine.  You can install anything on it.  The only thing you can&#8217;t change is hardware.  Kernels are a bit complicated, but doable.  If there are things missing from the base images, the Amazon crew can provide it, if there is demand.</li>
<li>It&#8217;s on a ram disk.  That&#8217;s how you think about it.  If you turn off the power, it goes away.  BUT!  If you reboot, it&#8217;s still there.</li>
<li>You can save your images.  They get saved to S3, and can be reloaded in the future.  However, this is a time consuming process.</li>
</ul>
<p>What it&#8217;s not:</p>
<ul>
<li>Something that private data can be stored on.  There are too many variables, too many places a hacker can get in.  When I talk about private data, I mean something that is under NDA or legislated to be private.  I don&#8217;t mean passwords to a website.</li>
<li>An infinitely expandable server.  1GB RAM, 160GB disk space, that&#8217;s it.  If you want more, you create a new server, and it&#8217;s up to you to deal with load balancing, new hostnames, getting the data to the image, etc.</li>
</ul>
<p><small>Technorati Tags: <a rel="tag" href="http://technorati.com/tag/Amazon">Amazon</a>, <a rel="tag" href="http://technorati.com/tag/EC2">EC2</a>, <a rel="tag" href="http://technorati.com/tag/Elastic%20Computing%20Cloud">Elastic Computing Cloud</a>, <a rel="tag" href="http://technorati.com/tag/S3">S3</a>, <a rel="tag" href="http://technorati.com/tag/Simple%20Storage%20Server">Simple Storage Server</a>, <a rel="tag" href="http://technorati.com/tag/Web%20Hosting">Web Hosting</a>, <a rel="tag" href="http://technorati.com/tag/Data%20Center">Data Center</a>, <a rel="tag" href="http://technorati.com/tag/Utility%20Computing">Utility Computing</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexharford.com/2006/11/21/amazon-ec2-and-s3-what-it-is-and-what-it-isnt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

