<?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>CrudVision - Lisa Seelye &#187; C</title>
	<atom:link href="http://www.crudvision.com/category/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.crudvision.com</link>
	<description>Lisa Seelye's Blog. Yay</description>
	<lastBuildDate>Tue, 13 Apr 2010 21:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>After a Hiatus&#8230;</title>
		<link>http://www.crudvision.com/2010/01/08/after-a-hiatus/</link>
		<comments>http://www.crudvision.com/2010/01/08/after-a-hiatus/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 01:28:08 +0000</pubDate>
		<dc:creator>Lisa Seelye</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[STOMP]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[rock climbing]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.crudvision.com/?p=135</guid>
		<description><![CDATA[So it&#8217;s been a long time since I&#8217;ve posted anything so I thought I&#8217;d give an update so that there is something here. I love my job to death! I work with awesome people and have a lot of cool stuff to do. I&#8217;m also climbing three times a week, which doesn&#8217;t leave me with [...]]]></description>
			<content:encoded><![CDATA[<p>So it&#8217;s been a long time since I&#8217;ve posted anything so I thought I&#8217;d give an update so that there is <em>something</em> here.</p>
<p>I love my job to death! I work with awesome people and have a lot of cool stuff to do. I&#8217;m also climbing three times a week, which doesn&#8217;t leave me with a lot of time to code or be at home. When I am home I&#8217;m working on a <a href="http://github.com/lisa/arduinostomp">STOMP library</a> for the <a href="http://arduino.cc">Arduino Ethernet Shield</a>.</p>
<p>The STOMP library is going to be used in part of a home automation system my partner and I are working on. I say &#8220;working on&#8221; because she&#8217;s just as busy as I am and doesn&#8217;t have much time to work on all of the projects she&#8217;s got on the go.</p>
<p>So I&#8217;m still around and just really busy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crudvision.com/2010/01/08/after-a-hiatus/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Random Snippet: Soundex</title>
		<link>http://www.crudvision.com/2007/09/23/random-snippet-soundex/</link>
		<comments>http://www.crudvision.com/2007/09/23/random-snippet-soundex/#comments</comments>
		<pubDate>Sun, 23 Sep 2007 15:17:34 +0000</pubDate>
		<dc:creator>Lisa Seelye</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.crudvision.com/2007/09/23/random-snippet-soundex/</guid>
		<description><![CDATA[This bit of code is the Soundex algorithm based on some C written by a friend of mine (Hi Jen!). She writes really compact C (read: hard to read) and it took me a long time to understand what the code she wrote did. So here is the annotated version of the code (correlates to [...]]]></description>
			<content:encoded><![CDATA[<p>This bit of code is the <a href="http://en.wikipedia.org/wiki/Soundex">Soundex</a> algorithm based on some C written by a friend of mine (Hi Jen!). She writes really compact C (read: hard to read) and it took me a long time to understand what the code she wrote did.</p>
<p>So here is the annotated version of the code (correlates to the <a href="http://en.wikipedia.org/wiki/Soundex#Rules">Rule numbers on Wikipedia</a>).</p>
<div class="igBar"><span id="lruby-2"><a href="#" onclick="javascript:showCodeTxt('ruby-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">RUBY:</span>
<div id="ruby-2">
<div class="ruby">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#EB7070;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#9966CC; font-weight:bold;">class</span> <span style="color:#CC0066; font-weight:bold;">String</span></div>
</li>
<li style="font-weight: bold;color:#8970EB;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; @@sem = <span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#006666;color:#800000;">0</span>,<span style="color:#006666;color:#800000;">1</span>,<span style="color:#006666;color:#800000;">2</span>,<span style="color:#006666;color:#800000;">3</span>,<span style="color:#006666;color:#800000;">0</span>,<span style="color:#006666;color:#800000;">1</span>,<span style="color:#006666;color:#800000;">2</span>,<span style="color:#006666;color:#800000;">0</span>,<span style="color:#006666;color:#800000;">0</span>,<span style="color:#006666;color:#800000;">2</span>,<span style="color:#006666;color:#800000;">2</span>,<span style="color:#006666;color:#800000;">4</span>,<span style="color:#006666;color:#800000;">5</span>,<span style="color:#006666;color:#800000;">5</span>,<span style="color:#006666;color:#800000;">0</span>,<span style="color:#006666;color:#800000;">1</span>,<span style="color:#006666;color:#800000;">2</span>,<span style="color:#006666;color:#800000;">6</span>,<span style="color:#006666;color:#800000;">2</span>,<span style="color:#006666;color:#800000;">3</span>,<span style="color:#006666;color:#800000;">0</span>,<span style="color:#006666;color:#800000;">1</span>,<span style="color:#006666;color:#800000;">0</span>,<span style="color:#006666;color:#800000;">2</span>,<span style="color:#006666;color:#800000;">0</span>,<span style="color:#006666;color:#800000;">2</span> <span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#008000; font-style:italic;"># Letter codes, Rule 3</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#EB7070;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#8970EB;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#9966CC; font-weight:bold;">def</span> to_soundex</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#EB7070;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; s = <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">upcase</span> </div>
</li>
<li style="font-weight: bold;color:#8970EB;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; chars = s<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;color:#800000;">1</span> .. <span style="color:#9900CC;">s</span>.<span style="color:#9900CC;">size</span> - <span style="color:#006666;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#CC0066; font-weight:bold;">split</span><span style="color:#006600; font-weight:bold;">&#40;</span>//<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#008000; font-style:italic;"># Split the word into characters to encode</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#EB7070;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ret = s<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;color:#800000;">0</span>,<span style="color:#006666;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#008000; font-style:italic;"># Rule 1</span></div>
</li>
<li style="font-weight: bold;color:#8970EB;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; chars.<span style="color:#9900CC;">each_index</span> <span style="color:#9966CC; font-weight:bold;">do</span> |i|</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#EB7070;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; c = chars<span style="color:#006600; font-weight:bold;">&#91;</span>i<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#8970EB;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">next</span> <span style="color:#9966CC; font-weight:bold;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> c &lt;'A' <span style="color:#9966CC; font-weight:bold;">or</span> c&gt; 'Z' <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#008000; font-style:italic;"># Not a letter</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#EB7070;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">next</span> <span style="color:#9966CC; font-weight:bold;">if</span> i&gt;<span style="color:#006666;color:#800000;">0</span> <span style="color:#9966CC; font-weight:bold;">and</span> c == chars<span style="color:#006600; font-weight:bold;">&#91;</span>i - <span style="color:#006666;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#008000; font-style:italic;"># Rule 4</span></div>
</li>
<li style="font-weight: bold;color:#8970EB;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; d = @@sem<span style="color:#006600; font-weight:bold;">&#91;</span> c<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span> - 'A'<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#008000; font-style:italic;"># Encode it</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#EB7070;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; ret += d.<span style="color:#9900CC;">to_s</span> <span style="color:#9966CC; font-weight:bold;">unless</span> d == <span style="color:#006666;color:#800000;">0</span> <span style="color:#008000; font-style:italic;"># Rule 2</span></div>
</li>
<li style="font-weight: bold;color:#8970EB;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#EB7070;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ret += <span style="color:#996600;">"0000"</span> <span style="color:#008000; font-style:italic;"># Rule 5</span></div>
</li>
<li style="font-weight: bold;color:#8970EB;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ret<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;color:#800000;">0</span>..<span style="color:#006666;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#008000; font-style:italic;"># Rule 5</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#EB7070;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></div>
</li>
<li style="font-weight: bold;color:#8970EB;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#9966CC; font-weight:bold;">end</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>It was fun to write and it works well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crudvision.com/2007/09/23/random-snippet-soundex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.568 seconds -->
