<?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>Shawn's Weblog</title>
	<atom:link href="http://shawnthunt.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://shawnthunt.wordpress.com</link>
	<description>Blog on computer science and computer engineering topics</description>
	<lastBuildDate>Mon, 12 Jan 2009 18:40:00 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='shawnthunt.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/9a0537e4d21316264c930b7fa3223d69?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Shawn's Weblog</title>
		<link>http://shawnthunt.wordpress.com</link>
	</image>
			<item>
		<title>Matlab : Sort all rows of a matrix by a certain column</title>
		<link>http://shawnthunt.wordpress.com/2009/01/12/matlab-sort-all-rows-of-a-matrix-by-a-certain-column/</link>
		<comments>http://shawnthunt.wordpress.com/2009/01/12/matlab-sort-all-rows-of-a-matrix-by-a-certain-column/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 18:39:36 +0000</pubDate>
		<dc:creator>shawnthunt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[matlab]]></category>

		<guid isPermaLink="false">http://shawnthunt.wordpress.com/2009/01/12/matlab-sort-all-ows-of-a-matrix-by-a-certain-column/</guid>
		<description><![CDATA[From: http://kb.iu.edu/data/afrd.html
In Matlab, how can I sort all of the rows of a matrix according to one of the columns?
If you wish to sort all the rows of a matrix in Matlab according to one of the columns, the general syntax for the command to use is:
[OldRowNumber, NewRowNumber] = sort(OldMatrix(:,SortColumn)); NewMatrix = OldMatrix(NewRowNumber,:);
Suppose, for example, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=27&subd=shawnthunt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2>From: <a href="http://kb.iu.edu/data/afrd.html">http://kb.iu.edu/data/afrd.html</a></h2>
<h2>In Matlab, how can I sort all of the rows of a matrix according to one of the columns?</h2>
<p>If you wish to sort all the rows of a matrix in Matlab according to one of the columns, the general syntax for the command to use is:</p>
<p><span class="example">[OldRowNumber, NewRowNumber] = sort(OldMatrix(:,SortColumn)); NewMatrix = OldMatrix(NewRowNumber,:);</span></p>
<p>Suppose, for example, you would like to rearrange the example matrix below (Figure 1) according to the value of the third column, so that your results would be as shown in Figure 2:</p>
<h4>Figure 1</h4>
<p><span class="example">A = [1 2 3 3 0 9 6 5 4]</span></p>
<h4>Figure 2</h4>
<p><span class="example">B = [1 2 3 6 5 4 3 0 9]</span></p>
<p>You would use the following command:</p>
<p><span class="example">[x, i] = sort(A(:,3)); B = A(i,:);</span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shawnthunt.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shawnthunt.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shawnthunt.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shawnthunt.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shawnthunt.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shawnthunt.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shawnthunt.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shawnthunt.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shawnthunt.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shawnthunt.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=27&subd=shawnthunt&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://shawnthunt.wordpress.com/2009/01/12/matlab-sort-all-rows-of-a-matrix-by-a-certain-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">shawnthunt</media:title>
		</media:content>
	</item>
		<item>
		<title>Matlab :: Get Clicks on an Image</title>
		<link>http://shawnthunt.wordpress.com/2009/01/05/matlab-get-clicks-on-an-image/</link>
		<comments>http://shawnthunt.wordpress.com/2009/01/05/matlab-get-clicks-on-an-image/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 14:23:52 +0000</pubDate>
		<dc:creator>shawnthunt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[matlab]]></category>

		<guid isPermaLink="false">http://shawnthunt.wordpress.com/2009/01/05/matlab-get-clicks-on-an-image/</guid>
		<description><![CDATA[This was taken from: http://users.ox.ac.uk/~scro1300/mosaic.htm
function
[X, Y] = ginput2(n)
X = []; Y = [];
fori=1:n
[px py ] = ginput(1);
X = [X ; px];
Y = [Y ; py];
plot( px, py, &#8216;r+&#8217;);
text_handle = text( px+5, py, num2str(i) );
set(text_handle,&#8216;Color&#8217;,[0 1 0])
end
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=26&subd=shawnthunt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This was taken from: <a href="http://users.ox.ac.uk/~scro1300/mosaic.htm">http://users.ox.ac.uk/~scro1300/mosaic.htm</a></p>
<p><span style="font-family:Courier New;color:#0000ff;font-size:.75em;">function</span></p>
<p><font size="2" face="Courier New"><font size="2" face="Courier New">[X, Y] = ginput2(n)</font></font></p>
<p>X = []; Y = [];</p>
<p><font color="#0000FF" size="2" face="Courier New"><font color="#0000FF" size="2" face="Courier New"><font color="#0000FF" size="2" face="Courier New">for</font></font></font><font size="2" face="Courier New"><font size="2" face="Courier New">i=1:n</font></font></p>
<p>[px py ] = ginput(1);</p>
<p>X = [X ; px];</p>
<p>Y = [Y ; py];</p>
<p>plot( px, py, <font color="#A020F0" size="2" face="Courier New"><font color="#A020F0" size="2" face="Courier New"><font color="#A020F0" size="2" face="Courier New">&#8216;r+&#8217;</font></font></font><font size="2" face="Courier New"><font size="2" face="Courier New">);</font></font></p>
<p>text_handle = text( px+5, py, num2str(i) );</p>
<p>set(text_handle,<font color="#A020F0" size="2" face="Courier New"><font color="#A020F0" size="2" face="Courier New"><font color="#A020F0" size="2" face="Courier New">&#8216;Color&#8217;</font></font></font><font size="2" face="Courier New"><font size="2" face="Courier New">,[0 1 0])</font></font></p>
<p><font color="#0000FF" size="2" face="Courier New"><font color="#0000FF" size="2" face="Courier New"><font color="#0000FF" size="2" face="Courier New">end</font></font></font></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shawnthunt.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shawnthunt.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shawnthunt.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shawnthunt.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shawnthunt.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shawnthunt.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shawnthunt.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shawnthunt.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shawnthunt.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shawnthunt.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=26&subd=shawnthunt&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://shawnthunt.wordpress.com/2009/01/05/matlab-get-clicks-on-an-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">shawnthunt</media:title>
		</media:content>
	</item>
		<item>
		<title>Matlab Block Comments</title>
		<link>http://shawnthunt.wordpress.com/2008/12/23/matlab-block-comments/</link>
		<comments>http://shawnthunt.wordpress.com/2008/12/23/matlab-block-comments/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 13:40:06 +0000</pubDate>
		<dc:creator>shawnthunt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[matlab]]></category>

		<guid isPermaLink="false">http://shawnthunt.wordpress.com/2008/12/23/matlab-block-comments/</guid>
		<description><![CDATA[Use the tags &#8220;%{&#8221; and &#8220;%}&#8221;, e.g.:
%{
projective transformation notes:
[up vp wp] = [x y w] * tInv
u = up / wp
v = vp / wp
tInv = [ A D G
B E H
C F I]
u = (Ax + By + C) / (Gx + Hy + 1)
v = (Dx + Ey + F) / (Gx + [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=20&subd=shawnthunt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Use the tags &#8220;%{&#8221; and &#8220;%}&#8221;, e.g.:</p>
<p>%{</p>
<p>projective transformation notes:</p>
<p>[up vp wp] = [x y w] * tInv<br />
u = up / wp<br />
v = vp / wp</p>
<p>tInv = [ A D G<br />
B E H<br />
C F I]</p>
<p>u = (Ax + By + C) / (Gx + Hy + 1)<br />
v = (Dx + Ey + F) / (Gx + Hy + 1)</p>
<p>%}</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shawnthunt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shawnthunt.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shawnthunt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shawnthunt.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shawnthunt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shawnthunt.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shawnthunt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shawnthunt.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shawnthunt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shawnthunt.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=20&subd=shawnthunt&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://shawnthunt.wordpress.com/2008/12/23/matlab-block-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">shawnthunt</media:title>
		</media:content>
	</item>
		<item>
		<title>Correlation Coefficient (Pearson)</title>
		<link>http://shawnthunt.wordpress.com/2008/12/04/correlation-coefficient-pearson/</link>
		<comments>http://shawnthunt.wordpress.com/2008/12/04/correlation-coefficient-pearson/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 00:51:34 +0000</pubDate>
		<dc:creator>shawnthunt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://shawnthunt.wordpress.com/?p=18</guid>
		<description><![CDATA[Here is a C++ function to find the correlation coefficient of two matrices:
float corr(float *x, float *y, int n)
{
float ax=0.0, ay=0.0;
float xt=0.0, yt=0.0;
float sxx=0.0, syy=0.0, sxy=0.0;
// find the means first
for (int i=0; i&#60;n; i++) {
ax += x[i];
ay += y[i];
}
ax /= n;
ay /= n;
// compute the correlation coeffcient
for (int i=0; i&#60;n; i++) {
xt = x[i]-ax;
yt = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=18&subd=shawnthunt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Here is a C++ function to find the correlation coefficient of two matrices:</p>
<p>float corr(float *x, float *y, int n)<br />
{<br />
float ax=0.0, ay=0.0;<br />
float xt=0.0, yt=0.0;<br />
float sxx=0.0, syy=0.0, sxy=0.0;</p>
<p>// find the means first<br />
for (int i=0; i&lt;n; i++) {<br />
ax += x[i];<br />
ay += y[i];<br />
}</p>
<p>ax /= n;<br />
ay /= n;</p>
<p>// compute the correlation coeffcient<br />
for (int i=0; i&lt;n; i++) {<br />
xt = x[i]-ax;<br />
yt = y[i]-ay;<br />
sxx += xt*xt;<br />
syy += yt*yt;<br />
sxy += xt*yt;<br />
}</p>
<p>return sxy/sqrt(sxx*syy);</p>
<p>} // end corr</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shawnthunt.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shawnthunt.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shawnthunt.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shawnthunt.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shawnthunt.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shawnthunt.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shawnthunt.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shawnthunt.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shawnthunt.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shawnthunt.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=18&subd=shawnthunt&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://shawnthunt.wordpress.com/2008/12/04/correlation-coefficient-pearson/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">shawnthunt</media:title>
		</media:content>
	</item>
		<item>
		<title>Visual Studio 2008 Error on GetPrivateProfileStringW</title>
		<link>http://shawnthunt.wordpress.com/2008/09/23/visual-studio-2008-error-on-getprivateprofilestringw/</link>
		<comments>http://shawnthunt.wordpress.com/2008/09/23/visual-studio-2008-error-on-getprivateprofilestringw/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 13:20:01 +0000</pubDate>
		<dc:creator>shawnthunt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://shawnthunt.wordpress.com/?p=15</guid>
		<description><![CDATA[error C2664: &#8216;GetPrivateProfileStringW&#8217; : cannot convert parameter 1 from &#8216;const char *&#8217; to &#8216;LPCWSTR&#8217;
Under Property Settings &#124; General, set the Character set to &#8220;Use Multi-Byte Character Set&#8221;

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=15&subd=shawnthunt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>error C2664: &#8216;GetPrivateProfileStringW&#8217; : cannot convert parameter 1 from &#8216;const char *&#8217; to &#8216;LPCWSTR&#8217;</p>
<p>Under Property Settings | General, set the Character set to &#8220;Use Multi-Byte Character Set&#8221;</p>
<p><a href="http://shawnthunt.files.wordpress.com/2008/09/config.jpg"><img class="alignnone size-medium wp-image-16" title="VS2008 Settings" src="http://shawnthunt.files.wordpress.com/2008/09/config.jpg?w=300&#038;h=208" alt="" width="300" height="208" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shawnthunt.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shawnthunt.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shawnthunt.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shawnthunt.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shawnthunt.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shawnthunt.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shawnthunt.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shawnthunt.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shawnthunt.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shawnthunt.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=15&subd=shawnthunt&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://shawnthunt.wordpress.com/2008/09/23/visual-studio-2008-error-on-getprivateprofilestringw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">shawnthunt</media:title>
		</media:content>

		<media:content url="http://shawnthunt.files.wordpress.com/2008/09/config.jpg?w=300" medium="image">
			<media:title type="html">VS2008 Settings</media:title>
		</media:content>
	</item>
		<item>
		<title>Firefox losing settings</title>
		<link>http://shawnthunt.wordpress.com/2008/09/13/firefox-losing-settings/</link>
		<comments>http://shawnthunt.wordpress.com/2008/09/13/firefox-losing-settings/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 23:56:22 +0000</pubDate>
		<dc:creator>shawnthunt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://shawnthunt.wordpress.com/?p=13</guid>
		<description><![CDATA[This has happened twice on me now, both time in Ubuntu 8.04.  The thing that ended up working was to delete the .mozilla folder in my home directory, remove Firefox, and install it again.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=13&subd=shawnthunt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This has happened twice on me now, both time in Ubuntu 8.04.  The thing that ended up working was to delete the .mozilla folder in my home directory, remove Firefox, and install it again.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shawnthunt.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shawnthunt.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shawnthunt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shawnthunt.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shawnthunt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shawnthunt.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shawnthunt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shawnthunt.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shawnthunt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shawnthunt.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shawnthunt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shawnthunt.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=13&subd=shawnthunt&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://shawnthunt.wordpress.com/2008/09/13/firefox-losing-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">shawnthunt</media:title>
		</media:content>
	</item>
		<item>
		<title>Perl script, Project Euler</title>
		<link>http://shawnthunt.wordpress.com/2008/09/06/perl-script-project-euler/</link>
		<comments>http://shawnthunt.wordpress.com/2008/09/06/perl-script-project-euler/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 23:11:32 +0000</pubDate>
		<dc:creator>shawnthunt</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[project euler]]></category>

		<guid isPermaLink="false">http://shawnthunt.wordpress.com/?p=9</guid>
		<description><![CDATA[So, the bioinformatics class uses Perl.  I looked into Perl a long time ago and it never really appealed to me but it seems like computer science classes love it and Java.  I have been wanting to try some of the problems over at Project Euler out for a while and thought this would be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=9&subd=shawnthunt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So, the bioinformatics class uses Perl.  I looked into Perl a long time ago and it never really appealed to me but it seems like computer science classes love it and Java.  I have been wanting to try some of the problems over at Project Euler out for a while and thought this would be an ideal time.  I wish I had the time to try more but I probably won&#8217;t &#8212; desides, there are more interesting problems that have my interest right now.  Here is Perl script to find solution 1.</p>
<p><em></p>
<p></em></p>
<p><em>#!/usr/bin/perl</em></p>
<p><em># problem number 1 from project euler</em></p>
<p><em>use strict;</p>
<p>use warnings;</em></p>
<p><em>my $sum = 0;</em></p>
<p><em>my $i = 0;</p>
<p>for ($i = 1; $i &lt; 1000; $i++) {</em></p>
<p><em>if ($i % 3 == 0 || $i % 5 == 0) {</p>
<p>$sum = $sum + $i;</p>
<p>}</em></p>
<p><em>}</em></p>
<p><em># print the answer</p>
<p>print &#8220;The sum of all of the multiples of 3 and 5 below 1000 is $sum\n\n&#8221;;</em></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shawnthunt.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shawnthunt.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shawnthunt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shawnthunt.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shawnthunt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shawnthunt.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shawnthunt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shawnthunt.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shawnthunt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shawnthunt.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shawnthunt.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shawnthunt.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=9&subd=shawnthunt&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://shawnthunt.wordpress.com/2008/09/06/perl-script-project-euler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">shawnthunt</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing R-project on Ubuntu</title>
		<link>http://shawnthunt.wordpress.com/2008/09/05/installing-r-project-on-ubuntu/</link>
		<comments>http://shawnthunt.wordpress.com/2008/09/05/installing-r-project-on-ubuntu/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 17:14:49 +0000</pubDate>
		<dc:creator>shawnthunt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://shawnthunt.wordpress.com/?p=5</guid>
		<description><![CDATA[I thought I would get the R software loaded for a bioinformatics class I am taking this semester on my Ubuntu machine.  Here are the packages that were needed before I could compile it:
sudo apt-get install build-essential
sudo apt-get install gfortran
sudo apt-get install libreadline5-dev
sudo apt-get install xorg-dev
./configure
make
sudo make install
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=5&subd=shawnthunt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I thought I would get the R software loaded for a bioinformatics class I am taking this semester on my Ubuntu machine.  Here are the packages that were needed before I could compile it:</p>
<p><em>sudo apt-get install build-essential</em></p>
<p><em>sudo apt-get install gfortran</em></p>
<p><em>sudo apt-get install libreadline5-dev</em></p>
<p><em>sudo apt-get install xorg-dev</em></p>
<p><em>./configure</em></p>
<p><em>make</em></p>
<p><em>sudo make install</em></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/shawnthunt.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/shawnthunt.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shawnthunt.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shawnthunt.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shawnthunt.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shawnthunt.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shawnthunt.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shawnthunt.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shawnthunt.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shawnthunt.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shawnthunt.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shawnthunt.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shawnthunt.wordpress.com&blog=4682810&post=5&subd=shawnthunt&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://shawnthunt.wordpress.com/2008/09/05/installing-r-project-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">shawnthunt</media:title>
		</media:content>
	</item>
	</channel>
</rss>