<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>cstrieby's CS462 Lab Notebook</title>
	<atom:link href="http://cs462cstrieby.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cs462cstrieby.wordpress.com</link>
	<description>Adventures with AWS</description>
	<lastBuildDate>Thu, 16 Apr 2009 02:27:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='cs462cstrieby.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>cstrieby's CS462 Lab Notebook</title>
		<link>http://cs462cstrieby.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cs462cstrieby.wordpress.com/osd.xml" title="cstrieby&#039;s CS462 Lab Notebook" />
	<atom:link rel='hub' href='http://cs462cstrieby.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Approval Client</title>
		<link>http://cs462cstrieby.wordpress.com/2009/04/15/approval-client/</link>
		<comments>http://cs462cstrieby.wordpress.com/2009/04/15/approval-client/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 02:27:03 +0000</pubDate>
		<dc:creator>cstrieby</dc:creator>
				<category><![CDATA[cs462 lab notes]]></category>
		<category><![CDATA[cs462]]></category>
		<category><![CDATA[lab6]]></category>

		<guid isPermaLink="false">http://cs462cstrieby.wordpress.com/?p=44</guid>
		<description><![CDATA[Lesson learned: Ubiquity is not the ideal platform for the approval client.  At least not the way I was trying to use it.  I spent a few hours working to figure out a way to implement the client in ubiquity but it was not meant to be. So, Prism to the rescue.  I created a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=44&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lesson learned: <a href="http://labs.mozilla.com/projects/ubiquity/" target="_blank">Ubiquity</a> is not the ideal platform for the approval client.  At least not the way I was trying to use it.  I spent a few hours working to figure out a way to implement the client in ubiquity but it was not meant to be.</p>
<p>So, <a href="http://labs.mozilla.com/projects/prism/" target="_blank">Prism</a> to the rescue.  I created a webpage locally that could interface with AWS.  I like the way my client works but I&#8217;m sure that it&#8217;s not as impressive as some of the clients created by other students.  After spending so long on the dead end that was Ubiquity I wanted to approach it in a way that I was fairly sure of the time requirements to finish it.  One of the benefits of doing it with Prism is that I had a chance to become more familiar with jQuery.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cs462cstrieby.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cs462cstrieby.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cs462cstrieby.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cs462cstrieby.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cs462cstrieby.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cs462cstrieby.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cs462cstrieby.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cs462cstrieby.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cs462cstrieby.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cs462cstrieby.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cs462cstrieby.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cs462cstrieby.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cs462cstrieby.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cs462cstrieby.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=44&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cs462cstrieby.wordpress.com/2009/04/15/approval-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/647dc440c8e03560544aa6763266cc62?s=96&#38;d=identicon" medium="image">
			<media:title type="html">cstrieby</media:title>
		</media:content>
	</item>
		<item>
		<title>Lab 5 &#8211; Processing Server</title>
		<link>http://cs462cstrieby.wordpress.com/2009/04/13/lab-5-processing-server/</link>
		<comments>http://cs462cstrieby.wordpress.com/2009/04/13/lab-5-processing-server/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 16:06:12 +0000</pubDate>
		<dc:creator>cstrieby</dc:creator>
				<category><![CDATA[cs462 lab notes]]></category>
		<category><![CDATA[cs462]]></category>
		<category><![CDATA[lab5]]></category>

		<guid isPermaLink="false">http://cs462cstrieby.wordpress.com/?p=41</guid>
		<description><![CDATA[As everyone has been saying the lab wasn&#8217;t too difficult after doing lab 4.  The most difficult part was figuring out the image processing.  Fortunately, python has PIL which does most functions without too much trouble. I spent the most time figuring out how to add text to the image and make it slightly transparent [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=41&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As everyone has been saying the lab wasn&#8217;t too difficult after doing lab 4.  The most difficult part was figuring out the image processing.  Fortunately, python has <a href="http://www.pythonware.com/library/pil/handbook/imagedraw.htm" target="_blank">PIL</a> which does most functions without too much trouble.</p>
<p>I spent the most time figuring out how to add text to the image and make it slightly transparent so the background could show through.  In the end I had to create a new transparent image with PIL, draw the text to that image, and paste that image onto the main image.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cs462cstrieby.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cs462cstrieby.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cs462cstrieby.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cs462cstrieby.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cs462cstrieby.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cs462cstrieby.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cs462cstrieby.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cs462cstrieby.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cs462cstrieby.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cs462cstrieby.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cs462cstrieby.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cs462cstrieby.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cs462cstrieby.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cs462cstrieby.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=41&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cs462cstrieby.wordpress.com/2009/04/13/lab-5-processing-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/647dc440c8e03560544aa6763266cc62?s=96&#38;d=identicon" medium="image">
			<media:title type="html">cstrieby</media:title>
		</media:content>
	</item>
		<item>
		<title>Lab 4 &#8211; So it goes on</title>
		<link>http://cs462cstrieby.wordpress.com/2009/04/10/lab-4-so-it-goes-on/</link>
		<comments>http://cs462cstrieby.wordpress.com/2009/04/10/lab-4-so-it-goes-on/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 05:17:17 +0000</pubDate>
		<dc:creator>cstrieby</dc:creator>
				<category><![CDATA[cs462 lab notes]]></category>
		<category><![CDATA[cs462]]></category>
		<category><![CDATA[lab4]]></category>

		<guid isPermaLink="false">http://cs462cstrieby.wordpress.com/?p=36</guid>
		<description><![CDATA[I spent a little more time researching before diving into coding for this lab and I think it paid off.  I found a recipe for how to daemonize a python script and a decent example of how to use SQS with boto. I&#8217;ve encountered an odd issue with sqs messages.  I can write to the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=36&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I spent a little more time researching before diving into coding for this lab and I think it paid off.  I found a <a href="http://www.onlamp.com/python/pythoncook2/solution.csp?day=1" target="_blank">recipe</a> for how to daemonize a python script and a <a href="http://pcworld.about.com/od/webbasedapplications/Hooking-Your-Apps-into-Amazon.htm" target="_blank">decent example</a> of how to use SQS with boto.</p>
<p>I&#8217;ve encountered an odd issue with sqs messages.  I can write to the &#8220;commentprocess&#8221; queue and read what I write but can&#8217;t seem to see any other messages and the TA approval client doesn&#8217;t seem to see what I&#8217;ve put on the message queue.  I&#8217;ve triple checked that I have the queue name correct.  The only thing I can imagine it might be is that I am running from outside of the AWS network (doing testing from my machinge) and so I can only see messages I place on it and not the others.  Unfortunately, at the moment all instances are filled so I am unable to test it from within AWS.</p>
<p>Update: It seems that it had to do with RawMessage vs. Message objects.  If I made sure I was reading and writing RawMessages to the queue things seem to work.</p>
<p>Using the recipe above, creating a daemon ended up being really easy.  I had a few bugs to work out but nothing big.  The dumbest thing I tended to do with great frequency was forget to actually connect to SDB, SQS, or S3 before trying to use them.  Yeah, it does help to connect before use.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cs462cstrieby.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cs462cstrieby.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cs462cstrieby.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cs462cstrieby.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cs462cstrieby.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cs462cstrieby.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cs462cstrieby.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cs462cstrieby.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cs462cstrieby.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cs462cstrieby.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cs462cstrieby.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cs462cstrieby.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cs462cstrieby.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cs462cstrieby.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=36&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cs462cstrieby.wordpress.com/2009/04/10/lab-4-so-it-goes-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/647dc440c8e03560544aa6763266cc62?s=96&#38;d=identicon" medium="image">
			<media:title type="html">cstrieby</media:title>
		</media:content>
	</item>
		<item>
		<title>Lab 3 &#8211; Implementation Notes</title>
		<link>http://cs462cstrieby.wordpress.com/2009/04/07/lab-3-implementation-notes/</link>
		<comments>http://cs462cstrieby.wordpress.com/2009/04/07/lab-3-implementation-notes/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 20:54:28 +0000</pubDate>
		<dc:creator>cstrieby</dc:creator>
				<category><![CDATA[cs462 lab notes]]></category>
		<category><![CDATA[cs462]]></category>
		<category><![CDATA[lab3]]></category>

		<guid isPermaLink="false">http://cs462cstrieby.wordpress.com/?p=28</guid>
		<description><![CDATA[The first thing I had to overcome in Lab 3 was figuring out how to use boto correctly.  For some reason I forgot that you need to use the AWS key and the AWS secret key to connect.  Somehow I thought it would magically know who I was and what I wanted.  Once I added [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=28&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The first thing I had to overcome in Lab 3 was figuring out how to use boto correctly.  For some reason I forgot that you need to use the AWS key and the AWS secret key to connect.  Somehow I thought it would magically know who I was and what I wanted.  Once I added the following variables to my script and used them, it worked great.</p>
<blockquote>
<pre>AWSKey=AWS_Access_Key_ID
AWSSecret=AWS_Secret_Access_Key</pre>
</blockquote>
<p>Second issue was in calculating the correct return value for /ratesubmit.  Unfortunately, just using the provided formula results in an answer that is different from that given by the TA&#8217;s implementation.  Unless I am missing something really obvious, the formula provided is not the same one used by the TA implementation.</p>
<p>Other fun stuff to work out included getting used to the SimpleDB query language (which wasn&#8217;t too hard considering the examples given by Devlin) and working through lists, dictionaries, and json in python.</p>
<p>I found a couple of small display issues with my lab 2 while working on this lab.  The first is that I display the rating on /list/recent even though the TA server does not.  The second is that the rating isn&#8217;t truncated to 2 decimal places on /list/popular.  Minor errors but errors just the same.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cs462cstrieby.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cs462cstrieby.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cs462cstrieby.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cs462cstrieby.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cs462cstrieby.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cs462cstrieby.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cs462cstrieby.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cs462cstrieby.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cs462cstrieby.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cs462cstrieby.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cs462cstrieby.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cs462cstrieby.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cs462cstrieby.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cs462cstrieby.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=28&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cs462cstrieby.wordpress.com/2009/04/07/lab-3-implementation-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/647dc440c8e03560544aa6763266cc62?s=96&#38;d=identicon" medium="image">
			<media:title type="html">cstrieby</media:title>
		</media:content>
	</item>
		<item>
		<title>Lab2 &#8211; Webserver Notes</title>
		<link>http://cs462cstrieby.wordpress.com/2009/02/18/lab2-webserver-notes/</link>
		<comments>http://cs462cstrieby.wordpress.com/2009/02/18/lab2-webserver-notes/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 21:34:26 +0000</pubDate>
		<dc:creator>cstrieby</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cs462]]></category>
		<category><![CDATA[lab2]]></category>

		<guid isPermaLink="false">http://cs462cstrieby.wordpress.com/?p=20</guid>
		<description><![CDATA[First hurdle: Reconfiguring apache to allow .css stylesheets to be served up.  Turns out I needed to add a directive to the &#60;Directory&#62; section of httpd.conf to send .css files to the default handler. &#60;FilesMatch "\.(htm&#124;html&#124;css&#124;js&#124;png&#124;jpe?g&#124;gif)$"&#62; SetHandler default-handler &#60;/FilesMatch&#62; Useful commands and paths for local development on Ubuntu: sudo /etc/init.d/apache2 restart /etc/apache2/ /var/www/ I spent [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=20&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First hurdle: Reconfiguring apache to allow .css stylesheets to be served up.  Turns out I needed to add a directive to the &lt;Directory&gt; section of httpd.conf to send .css files to the default handler.</p>
<blockquote>
<pre>&lt;FilesMatch "\.(htm|html|css|js|png|jpe?g|gif)$"&gt;
SetHandler default-handler
&lt;/FilesMatch&gt;</pre>
</blockquote>
<p>Useful commands and paths for local development on Ubuntu:</p>
<blockquote>
<pre>sudo /etc/init.d/apache2 restart
/etc/apache2/
/var/www/</pre>
</blockquote>
<p>I spent a lot of time trying to find a way to post a file without using pycurl but after searching for and trying several different things just gave up and decided it wasn&#8217;t worth the effort.  Pycurl took a little getting used to but worked great once I gave up on the idea of being able to receive a file and post it back out without saving it to the disk in between.  It looks like libcurl has support for sending a buffer into the function but I couldn&#8217;t find a way to recreate the behavior in pycurl.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cs462cstrieby.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cs462cstrieby.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cs462cstrieby.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cs462cstrieby.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cs462cstrieby.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cs462cstrieby.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cs462cstrieby.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cs462cstrieby.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cs462cstrieby.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cs462cstrieby.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cs462cstrieby.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cs462cstrieby.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cs462cstrieby.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cs462cstrieby.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=20&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cs462cstrieby.wordpress.com/2009/02/18/lab2-webserver-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/647dc440c8e03560544aa6763266cc62?s=96&#38;d=identicon" medium="image">
			<media:title type="html">cstrieby</media:title>
		</media:content>
	</item>
		<item>
		<title>Lab 1 &#8211; Other Issues</title>
		<link>http://cs462cstrieby.wordpress.com/2009/01/21/lab-1-other-issues/</link>
		<comments>http://cs462cstrieby.wordpress.com/2009/01/21/lab-1-other-issues/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 01:34:08 +0000</pubDate>
		<dc:creator>cstrieby</dc:creator>
				<category><![CDATA[cs462 lab notes]]></category>
		<category><![CDATA[cs462]]></category>
		<category><![CDATA[lab1]]></category>

		<guid isPermaLink="false">http://cs462cstrieby.wordpress.com/?p=11</guid>
		<description><![CDATA[Zip File Password &#8211; Resolved I had thought about using the system zip command but was hoping for a python solution.  After discussing it with other students before class I decided the system zip command would probably be the quickest and least painful way to accomplish the task. S3 Connectivity from AMI &#8211; Resolved I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=11&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h4>Zip File Password &#8211; Resolved</h4>
<p>I had thought about using the system zip command but was hoping for a python solution.  After discussing it with other students before class I decided the system zip command would probably be the quickest and least painful way to accomplish the task.</p>
<h4>S3 Connectivity from AMI &#8211; Resolved</h4>
<p>I didn&#8217;t think about the fact that I needed to install the boto s3 libraries on the AMI in order to be able to use them in the user data retrieval script.  Up to version 3 of my AMI.  Hopefully the last for this lab.</p>
<h4>Bootstrapping Not Working for Lab Script &#8211; Resolved</h4>
<p>Okay, this is odd.  I have a test user data script that downloads google&#8217;s front page and saves it to a text file in the root directory.  This works great.  I have a second user data script that downloads the package from S3, unzips it and runs a secondary script.  This script doesn&#8217;t work when used in the user data field but works great if run from the commandline within the instance.  I can copy it over into a new file and it runs, I can run it from the saved file in tmp that the bootstrapper creates and it runs, but it won&#8217;t run on its own.  No clue.  Doesn&#8217;t make sense to me.</p>
<p>Update (23 Jan): I forgot to include full paths in the user data script.  Once I put in full paths, the script worked like a champ.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cs462cstrieby.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cs462cstrieby.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cs462cstrieby.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cs462cstrieby.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cs462cstrieby.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cs462cstrieby.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cs462cstrieby.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cs462cstrieby.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cs462cstrieby.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cs462cstrieby.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cs462cstrieby.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cs462cstrieby.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cs462cstrieby.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cs462cstrieby.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=11&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cs462cstrieby.wordpress.com/2009/01/21/lab-1-other-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/647dc440c8e03560544aa6763266cc62?s=96&#38;d=identicon" medium="image">
			<media:title type="html">cstrieby</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello, World!</title>
		<link>http://cs462cstrieby.wordpress.com/2009/01/21/hello-world/</link>
		<comments>http://cs462cstrieby.wordpress.com/2009/01/21/hello-world/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 15:41:32 +0000</pubDate>
		<dc:creator>cstrieby</dc:creator>
				<category><![CDATA[cs462 lab notes]]></category>
		<category><![CDATA[cs462]]></category>
		<category><![CDATA[lab1]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The title was the default for the first post but I thought it appropriate given the lab assignment. For reference, here is some information that I found to be useful while working on this lab last night: httpd -k {start&#124;stop&#124;restart} &#8211; Changes state of apache ZipFile.setpassword(pwd) &#8211; allows for setting password (untested as of yet, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=1&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The title was the default for the first post but I thought it appropriate given the lab assignment.</p>
<p>For reference, here is some information that I found to be useful while working on this lab last night:</p>
<ul>
<li>httpd -k {start|stop|restart} &#8211; Changes state of apache</li>
<li><span style="text-decoration:line-through;">ZipFile.setpassword(pwd) &#8211; allows for setting password (untested as of yet, but seems like it&#8217;ll work)</span></li>
<li>/var/www/html &#8211; default directory for apache webserver</li>
<li>/etc/httpd/conf &#8211; directory with apache configuration files</li>
<li>ps aux | grep httpd &#8211; check if apache daemon is running</li>
<li>http://webpython.codepoint.net/mod_python_tutorial &#8211; tutorial for getting mod_python up and running</li>
<li>pg. 225-226 in book for setup of services</li>
</ul>
<p>The most important configuration for apache after getting mod_python installed is adding</p>
<blockquote>
<pre>   SetHandler mod_python
   PythonHandler mod_python.publisher
   PythonDebug On</pre>
</blockquote>
<p>to the Directory section of apache.conf.</p>
<p>Also, when adding bootstrapping code to the server, remember it&#8217;s</p>
<blockquote>
<pre>chmod +x</pre>
</blockquote>
<p>not</p>
<blockquote>
<pre>chmod -x</pre>
</blockquote>
<p>Wasted a few minutes finding that error.  I should have just copied the text given instead of retyping it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cs462cstrieby.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cs462cstrieby.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cs462cstrieby.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cs462cstrieby.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cs462cstrieby.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cs462cstrieby.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cs462cstrieby.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cs462cstrieby.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cs462cstrieby.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cs462cstrieby.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cs462cstrieby.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cs462cstrieby.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cs462cstrieby.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cs462cstrieby.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cs462cstrieby.wordpress.com&amp;blog=6262926&amp;post=1&amp;subd=cs462cstrieby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cs462cstrieby.wordpress.com/2009/01/21/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/647dc440c8e03560544aa6763266cc62?s=96&#38;d=identicon" medium="image">
			<media:title type="html">cstrieby</media:title>
		</media:content>
	</item>
	</channel>
</rss>
