<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Three till Seven</title>
	
	<link>http://www.3till7.net</link>
	<description>A geek's personal domain.</description>
	<lastBuildDate>Sat, 27 Jun 2009 15:25:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/3till7" type="application/rss+xml" /><feedburner:emailServiceId>3till7</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>C# and Visual Studio</title>
		<link>http://feedproxy.google.com/~r/3till7/~3/Q5_BkWHyBQ4/</link>
		<comments>http://www.3till7.net/2009/06/27/c-and-visual-studio/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 15:25:17 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[Daily life]]></category>
		<category><![CDATA[C-sharp]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=1924</guid>
		<description><![CDATA[Yarr, so work at HP has been good; I&#8217;m enjoying my time there.  I&#8217;ve worked from home a few times, which has been nice:  there&#8217;s nothing quite like coding in your pajamas and getting paid for it.  I&#8217;ve mainly been writing PL/SQL queries and programming in C#.  I was apprehensive about [...]]]></description>
			<content:encoded><![CDATA[<p>Yarr, so work at HP has been good; I&#8217;m enjoying my time there.  I&#8217;ve worked from home a few times, which has been nice:  there&#8217;s nothing quite like coding in your pajamas and getting paid for it.  I&#8217;ve mainly been writing PL/SQL queries and programming in C#.  I was apprehensive about the job to begin with because I knew I&#8217;d be working in Windows, and that&#8217;s unpleasant for me.  It still is unpleasant, and I get pissed off at Windows at least a couple times a day.  I get most annoyed when I want to do something simple, like right-click on a file or switch tabs in Firefox, and it sluuuuuuuugs along, sometimes even freezing the screen such that mouse cursor movements aren&#8217;t even shown.  My response is always &#8220;really?  it&#8217;s that hard to show me the right-click menu and be responsive about it?&#8221;.  It&#8217;s a decently fast computer, and I know the thing would be snappy in Ubuntu.</p>
<p>Anyway, I digress; C# is actually a fun language.  I got thrown into it because I needed to implement new features on an existing C# web service.  I was reading about the lambda operator and predicates yesterday.  It&#8217;s not <em>as</em> pretty, syntactically, as Ruby, but it&#8217;s still cool.</p>
<div class="synthi_code" style="display:block;" id="styled_synthi_4a470893bf23e">
<h2 class="synthi_header"> CSharp</h2>
<div class="csharp" style="font-family: monospace;">List&lt;int&gt; numbers = <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> List&lt;int&gt; <span style="color: #000000;">&#123;</span><span style="color: #FF0000;">1</span>, <span style="color: #FF0000;">2</span>, <span style="color: #FF0000;">3</span>, <span style="color: #FF0000;">4</span>, <span style="color: #FF0000;">5</span><span style="color: #000000;">&#125;</span>;<br />
IEnumerable&lt;int&gt; even = numbers.<span style="color: #0000FF;">Where</span><span style="color: #000000;">&#40;</span>curNum =&gt; curNum % <span style="color: #FF0000;">2</span> == <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>;</div>
</div>
<p>Whereas in Ruby:</p>
<div class="synthi_code" style="display:block;" id="styled_synthi_4a470893cc9a4">
<h2 class="synthi_header"> Ruby</h2>
<div class="ruby" style="font-family: monospace;">numbers = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">1</span>, <span style="color:#006666;">2</span>, <span style="color:#006666;">3</span>, <span style="color:#006666;">4</span>, <span style="color:#006666;">5</span><span style="color:#006600; font-weight:bold;">&#93;</span><br />
even = numbers.<span style="color:#CC0066; font-weight:bold;">select</span> <span style="color:#006600; font-weight:bold;">&#123;</span> |cur_num| cur_num % <span style="color:#006666;">2</span> == <span style="color:#006666;">0</span> <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</div>
<p>I&#8217;ve been working in Visual Studio 2008 and overall I like the IDE.  Intellisense is very convenient and VS&#8217;s debugger is great.  However, that hasn&#8217;t stopped me from banging my head on simple-seeming problems, such as collapsing all method definitions and then expanding all regions as soon as a file is opened.  I&#8217;ve posted <a href="http://stackoverflow.com/questions/1050944/environmentevent-macro-doesnt-complete">a question on Stack Overflow</a> about it, if you want to help out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/06/27/c-and-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.3till7.net/2009/06/27/c-and-visual-studio/</feedburner:origLink></item>
		<item>
		<title>visits and kung fu</title>
		<link>http://feedproxy.google.com/~r/3till7/~3/NO0BcPAAUns/</link>
		<comments>http://www.3till7.net/2009/05/15/visits-and-kung-fu/#comments</comments>
		<pubDate>Fri, 15 May 2009 22:23:02 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[Daily life]]></category>
		<category><![CDATA[academia]]></category>
		<category><![CDATA[movies]]></category>

		<guid isPermaLink="false">http://www.3till7.net/2009/05/15/visits-and-kung-fu/</guid>
		<description><![CDATA[I&#8217;m at my parents&#8217; house with Jon, wrapping up the last of our travelling around Kentucky.  We visited his family for three days and have been visiting mine for the past two; we&#8217;ll head back to Lexington this evening.  I&#8217;ve taken a lot of photos of the new kittens at my parents&#8217;, as [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m at my parents&#8217; house with Jon, wrapping up the last of our travelling around Kentucky.  We visited his family for three days and have been visiting mine for the past two; we&#8217;ll head back to Lexington this evening.  I&#8217;ve taken a lot of photos of the new kittens at my parents&#8217;, as well as my mom&#8217;s flowers, so I&#8217;ll post those when I&#8217;m back on my laptop with a fast connection.  I&#8217;ll also post some photos from graduation, too.  Ah, right:  <strong>I graduated from college!!</strong>  I got a B.S. in computer science, a minor in mathematics, and I graduated with honors and <em>cum laude</em>.  Now for a summer of work followed by more school to get that tricky Master&#8217;s degree&#8230;</p>
<p>I watched the movie <a href="http://www.imdb.com/title/tt0299977/">Hero</a> today with Jon because my dad told us, although apparently sarcastically, that we <em>had</em> to see it. He and my mom just hated it because of the flying around and lack of realism when they expected a historical drama.  I liked it pretty well, though I would have preferred the version with sub-titles instead of overdubbing since the voice acting was a bit hokey.  It was a gorgeous movie, and it makes me want to rewatch Crouching Tiger Hidden Dragon, which I don&#8217;t remember much of at this point.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/05/15/visits-and-kung-fu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.3till7.net/2009/05/15/visits-and-kung-fu/</feedburner:origLink></item>
		<item>
		<title>grad party, friend code, KDE 4</title>
		<link>http://feedproxy.google.com/~r/3till7/~3/z47BX-wxRCE/</link>
		<comments>http://www.3till7.net/2009/05/07/grad-party-friend-code-kde-4/#comments</comments>
		<pubDate>Thu, 07 May 2009 21:45:28 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[Daily life]]></category>
		<category><![CDATA[academia]]></category>
		<category><![CDATA[boyfriend]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[screenshots]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=1917</guid>
		<description><![CDATA[Oy, what a week!  I&#8217;ve worked at Lexmark every day since Monday, getting things finalized there and today was my last day.  My manager took me out to lunch with about twelve coworkers, which was very pleasant, getting to sit around and have a real lunch with these folks, instead of just grabbing a chicken [...]]]></description>
			<content:encoded><![CDATA[<p>Oy, what a week!  I&#8217;ve worked at Lexmark every day since Monday, getting things finalized there and today was my last day.  My manager took me out to lunch with about twelve coworkers, which was very pleasant, getting to sit around and have a real lunch with these folks, instead of just grabbing a chicken sandwich and working while I eat.  Then I rushed over to campus for an exit interview with the CS department, since I&#8217;m graduating.  And speaking of, that&#8217;s this Saturday&#8211;eeee!  Kathy&#8217;s having a graduation party that I&#8217;ll be attending, along with Jon and apparently a crap-ton of other people.  We&#8217;re going to have tasty Thai food and a chocolate cake, plus drinking afterward I think.  Then come Sunday, Jon and I are going to visit his extended family for a few days, which is exciting and a bit nervous for me since I haven&#8217;t met his grandparents or brother yet.  After that, we&#8217;re driving down to my parents&#8217; place and I&#8217;m selling my brother a TV and stand that I don&#8217;t want hanging around my place, plus giving my mom a cabinet which she&#8217;ll probably use for plants because she uses everything for plants.</p>
<p>Also!  I got high speed internet yesterday and now I can connect Animal Crossing City Folk to the intarwebz, so all y&#8217;all with a friend code can add me to your friend register.  Here&#8217;s my info:</p>
<p><strong>My name:</strong> Sarah<br />
<strong>City:</strong> Daplo<br />
<strong>Code:</strong> 3051-4270-0430</p>
<p>I start at Hewlett Packard on May 18, so I&#8217;ll have a nice week off between graduation and working.  That&#8217;s the week I&#8217;ll be visiting families, but also I hope to hang around the apartment and play Wii games, haha.  Tonight I&#8217;ll be going over to Kathy&#8217;s to mow her yard in exchange for doing a couple loads of laundry (the new place has no on-site laundry, bleh).</p>
<p>Last night after I got the snazzy &#8216;net connection, I got my PC install of Jaunty all upgraded and now I&#8217;m using KDE 4 instead of stupid old Gnome.  I&#8217;m quite tickled with it because things work nicely and it&#8217;s all pretty and customizable.  Here&#8217;s a screenshot for you:</p>
<div class="photo" style="width:300px;"><a href="/wp-content/uploads/2009/05/gimp_scr.png"><img title="KDE4 screenshot" src="/wp-content/uploads/2009/05/gimp_scr-300x187.png" alt="KDE4 screenshot" width="300" height="187" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/05/07/grad-party-friend-code-kde-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.3till7.net/2009/05/07/grad-party-friend-code-kde-4/</feedburner:origLink></item>
		<item>
		<title>Animal Crossing City Folk error</title>
		<link>http://feedproxy.google.com/~r/3till7/~3/P-8k0ngg1S4/</link>
		<comments>http://www.3till7.net/2009/05/03/animal-crossing-city-folk-error/#comments</comments>
		<pubDate>Sun, 03 May 2009 16:17:47 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[video games]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=1914</guid>
		<description><![CDATA[FYI for anyone who has a similar issue:  I tried to play Animal Crossing City Folk on the Wii and after opening up my game, it suddenly gave the Wii error message &#8220;An error has occurred&#8221;, along with telling me to hit Eject, remove the disc, and turn the power off.  I was able to [...]]]></description>
			<content:encoded><![CDATA[<p>FYI for anyone who has a similar issue:  I tried to play Animal Crossing City Folk on the Wii and after opening up my game, it suddenly gave the Wii error message &#8220;An error has occurred&#8221;, along with telling me to hit Eject, remove the disc, and turn the power off.  I was able to eject, but the power button didn&#8217;t work, nor did reset.  I had to unplug the cable from the back.  When I tried the disc again, it wouldn&#8217;t load my game, it just showed the schoolbus icon in the corner for &#8216;loading&#8217;.  The disc looked fine, and when I tried playing Super Paper Mario, another Wii game, it played fine.  (Thank goodness for that:  I&#8217;ve had my disc drive replaced once already and don&#8217;t want to again.)  I then noticed that I had an SD card in the slot and remembered I had taken a photo and saved it to the SD card the other day in City Folk.  I ejected that, reinserted City Folk, and it loaded my game fine.  Resetti came by and gave me the run-down about not hitting reset, blah blah, but everything appears fine now.  Maybe a fluke, but maybe starting the game with an SD card in the slot is problematic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/05/03/animal-crossing-city-folk-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.3till7.net/2009/05/03/animal-crossing-city-folk-error/</feedburner:origLink></item>
		<item>
		<title>partial move</title>
		<link>http://feedproxy.google.com/~r/3till7/~3/Am-FQOIsvQM/</link>
		<comments>http://www.3till7.net/2009/04/26/partial-move/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 13:13:35 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[Daily life]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=1912</guid>
		<description><![CDATA[I&#8217;m halfway moved into the new apartment because yesterday I took two carloads of boxes, bags, and miscellaneous stuff like my printer.  Loading the car is a pain because I currently live on the second story, so I have to go down some stairs and across the yard to reach the car.  With [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m halfway moved into the new apartment because yesterday I took two carloads of boxes, bags, and miscellaneous stuff like my printer.  Loading the car is a pain because I currently live on the second story, so I have to go down some stairs and across the yard to reach the car.  With the new place, I can park about ten feet away from my back door on the ground floor, so shazam, hauling stuff in is a snap.  My big accomplishments yesterday were:</p>
<ol>
<li>Sweeping and wet-Swiffering all the floors; I got the Febreezeified Swiffer cloths, too, so now my place smells all fruity</li>
<li>Changing the toilet seat from a janky white one with worn spots to a pretty new wooden one</li>
<li>Cleaning the sinks, counters, stove top, and toilet</li>
<li>Cleaning the wooden shelves in the closets</li>
</ol>
<p>There&#8217;s not a lick of carpet in the new place, for which I am glad because I hate dealing with the stuff when it isn&#8217;t new.  I hate dealing with carpet period, actually, even new carpet, because it invariably collects lots of hair and gets gross, and my vacuum sucks because it doesn&#8217;t suck enough so hair always remains in the carpet.  There&#8217;s some tan tile with tan grout in the bathroom and kitchen, plus that laminate wood snap-together flooring in the bedroom and living room.  I got <a href="http://www.target.com/Tulip-Shower-Curtain-Black-70x72/dp/B001ARSWGQ/qid=1240751399/ref=br_1_5/175-6802422-3449865?ie=UTF8&amp;node=16305851&amp;frombrowse=1&amp;rh=&amp;page=1">this snazzy shower curtain</a> yesterday at Target, and I think I&#8217;ll replace my two-apartment-old bath mat with a black one.  My back was so sore yesterday after I finished moving stuff and cleaning the floors.  The only piece of sit-down furniture I had in the new place, besides the toilet, was a fold-out camping chair, so I just collapsed in it for a spell.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/04/26/partial-move/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.3till7.net/2009/04/26/partial-move/</feedburner:origLink></item>
		<item>
		<title>apartment, HP, grad. classes</title>
		<link>http://feedproxy.google.com/~r/3till7/~3/MqMzQ6ibV2M/</link>
		<comments>http://www.3till7.net/2009/04/23/apartment-hp-grad-classes/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 16:37:41 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[Daily life]]></category>
		<category><![CDATA[academia]]></category>
		<category><![CDATA[family]]></category>
		<category><![CDATA[friends]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[reading]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=1895</guid>
		<description><![CDATA[Pfhew, so let&#8217;s see what&#8217;s going on in my life, since it&#8217;s been some time since I last updated with a real entry.  I&#8217;m moving this weekend to my new apartment, and it&#8217;s going to suck like all moves suck, but this one I&#8217;m hoping will be better, at least in some ways, than [...]]]></description>
			<content:encoded><![CDATA[<p>Pfhew, so let&#8217;s see what&#8217;s going on in my life, since it&#8217;s been some time since I last updated with a real entry.  I&#8217;m moving this weekend to my new apartment, and it&#8217;s going to suck like all moves suck, but this one I&#8217;m hoping will be better, at least in some ways, than previous moves because I tried to take a lot of crap that I don&#8217;t need home to my parents&#8217; house.  They kind of laughed about me basically using my old room as a storage shed.  In other ways, this move will suck more because I have more large furniture, including a couch, a 25&#8243; TV, a dresser, and a nightstand that I didn&#8217;t have before.  I&#8217;ve rented a truck and am getting Jon, Tony, Mark, Kathy, and Thom involved because they&#8217;re dear sweet people that can lift things.  I&#8217;m going to take them out for dinner or pie or something afterward as thanks.</p>
<p>I applied for and got accepted at a position at Hewlett Packard, otherwise known as Exstream Software, here in Lexington, so I&#8217;ll be working there this summer.  I&#8217;ll either be continuing there this fall part-time or working as a research assistant at UK; it depends on what one of my professors has in the way of R.A. positions.</p>
<p>I can&#8217;t remember having mentioned it before, but my graduate classes this fall will be algorithms, programming languages (Smalltalk, Lisp, and Ada, here I come!), and another class that sounded interesting about applying the scientific method to software development.</p>
<p>I&#8217;m currently rereading the Hatrack River series by Orson Scott Card and am on, in particular, Heartfire in the Alvin Wandering collection.  Yay for Verily Cooper, if anyone else reads/has read the series.</p>
<p>Thanks for commenting on the new theme, Melissa, Howard, and Lorina.  I just checked it in IE 7 myself and it seems all right&#8211;hooray!  I think I also may have fixed the wonky navigation stuff that I messed up last time, so hopefully all is well now.  I think I&#8217;ll modify this layout such that I can use it on <a href="http://portfolio.3till7.net/">my portfolio</a>, which is sadly neglected as far as nice layouts are concerned.  The cobbler&#8217;s children having no shoes and all that.</p>
<p>Looks like there&#8217;ll be some graduation celebration among my friends, come May.  Kathy&#8217;s having a party-type thing to which me, Jon, and Mark are invited, plus I&#8217;ll be getting together with Jon&#8217;s family to celebrate.  It&#8217;s kind of funny, Jon doesn&#8217;t want to walk for graduation at all, but his parents definitely want him to, whereas my parents don&#8217;t care for all the pomp and circumstance and aren&#8217;t coming, but I want to walk.  Kathy was just flabbergasted to hear my parents weren&#8217;t going to attend, but she doesn&#8217;t get how absolutely hermit-like they are.  My mom never went to any of her graduations, nor did either of them attend my brother&#8217;s college graduations.</p>
<p>This summer, if I don&#8217;t get absolutely sick of programming stuff at work, I&#8217;d like to bang around with some Rails stuff on my own for fun.  I&#8217;ve rediscovered my love of Mahjong, which I used to play all the time as a kid on our old PC, and now play on my iPod since EA made a very pretty version of it.  I was thinking it&#8217;d be an interesting challenge to implement a Rails version of the game.  It would have to handle different layers of tiles in order to know which tiles were movable and which weren&#8217;t, plus the design of the tiles would be fun.  Instead of the traditional Chinese symbols, there could be Firefox tiles and Tux tiles and Google tiles and Ruby tiles.  I asked Jon if he would be interested in working together on it, because he wants more Rails experience and I discovered this semester, through completing a <a href="http://setgame.com/">Set game</a> implementation with Tony and Mark, that working together on a Rails project, when everyone involved is enthusiastic and talented, is really fun.  He&#8217;s game, and I&#8217;m thinking we should try a Git repository instead of Subversion because my Git experience is very limited but so many people seem to enjoy it and even prefer it to Subversion, so there&#8217;s got to be some merit.  I remember liking the idea of being able to make local commits to save your progress and then only making full, remote commits when you have a working change.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/04/23/apartment-hp-grad-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.3till7.net/2009/04/23/apartment-hp-grad-classes/</feedburner:origLink></item>
		<item>
		<title>wonky nav</title>
		<link>http://feedproxy.google.com/~r/3till7/~3/5CWb6ofc3nU/</link>
		<comments>http://www.3till7.net/2009/04/21/wonky-nav/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 13:02:54 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[3till7.net]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=1893</guid>
		<description><![CDATA[Arrgh, I looked at 3till7 on a nice big Mac monitor at UK and saw that there was white around the canvas background and the main image in the Watercolor Flowers theme, which made it look wonky.  So I tried to fix it here on the Mac at school because it has Photoshop, but [...]]]></description>
			<content:encoded><![CDATA[<p>Arrgh, I looked at 3till7 on a nice big Mac monitor at UK and saw that there was white around the canvas background and the main image in the Watercolor Flowers theme, which made it look wonky.  So I tried to fix it here on the Mac at school because it has Photoshop, but darn it if I didn&#8217;t mess up the navigation images such that they look a bit off.  So I&#8217;ll fix it when I get a chance at home.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/04/21/wonky-nav/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.3till7.net/2009/04/21/wonky-nav/</feedburner:origLink></item>
		<item>
		<title>new theme:  Watercolor Flowers</title>
		<link>http://feedproxy.google.com/~r/3till7/~3/NGd3FSG8a4c/</link>
		<comments>http://www.3till7.net/2009/04/19/new-theme-watercolor-flowers/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 18:00:52 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[3till7.net]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=1886</guid>
		<description><![CDATA[Finally a new theme is available!  I banged around in Photoshop a couple weeks ago, following this tutorial and using this photo of mine.  I also tried to make use of these tips about web typography.
I haven&#8217;t tested the layout in IE yet, so I&#8217;d appreciate it if someone could do that and [...]]]></description>
			<content:encoded><![CDATA[<p>Finally a new theme is available!  I banged around in Photoshop a couple weeks ago, following <a href="http://psd.tutsplus.com/tutorials-effects/create-cool-watercolor-effects-in-photoshop/">this tutorial</a> and using <a href="http://www.flickr.com/photos/cheshire137/3406525164/">this photo of mine</a>.  I also tried to make use of <a href="http://www.smashingmagazine.com/2009/04/03/8-simple-ways-to-improve-typography-in-your-designs/">these tips about web typography</a>.</p>
<p>I haven&#8217;t tested the layout in IE yet, so I&#8217;d appreciate it if someone could do that and tell me what, if anything, looks wonky.  I&#8217;ve checked it in Firefox 3.0.9 and Safari 4 in OS X.</p>
<p>The currently available themes are <a href="/?wptheme=Watercolor Flowers">Watercolor Flowers</a> (the new default), <a href="/?wptheme=Burnt Cherry">Burnt Cherry</a> (the previous default), and <a href="/?wptheme=Round Black">Round Black</a>.</p>
<p>Also:  new <a href="/creative-works/essays/">essays</a> up from last semester.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/04/19/new-theme-watercolor-flowers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.3till7.net/2009/04/19/new-theme-watercolor-flowers/</feedburner:origLink></item>
		<item>
		<title>code reports Rake task</title>
		<link>http://feedproxy.google.com/~r/3till7/~3/wdhKA8tLJ5A/</link>
		<comments>http://www.3till7.net/2009/04/07/code-reports-rake-task/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 16:01:37 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=1863</guid>
		<description><![CDATA[This will run various Ruby Gems for creating code quality reports, store them in public/ in your Rails app, and create public/reports.html with links to each report.  You need Saikuro, Flog, Flay, Reek, and Roodi, since this Rake task uses them all.
Save this Rake task in your lib/tasks/ directory in your Rails app, and [...]]]></description>
			<content:encoded><![CDATA[<p>This will run various Ruby Gems for creating code quality reports, store them in public/ in your Rails app, and create public/reports.html with links to each report.  You need <a href="http://saikuro.rubyforge.org/">Saikuro</a>, <a href="http://ruby.sadi.st/Flog.html">Flog</a>, <a href="http://ruby.sadi.st/Flay.html">Flay</a>, <a href="http://github.com/kevinrutherford/reek/tree/master">Reek</a>, and <a href="http://github.com/martinjandrews/roodi/tree/master">Roodi</a>, since this Rake task uses them all.</p>
<p>Save this Rake task in your lib/tasks/ directory in your Rails app, and give it the extension .rake so that you can then run <code>rake metrics:make_all</code>.<br />
<span id="more-1863"></span></p>
<div class="synthi_code" style="display:block;" id="styled_synthi_4a470894497f3">
<h2 class="synthi_header"> Ruby</h2>
<div class="ruby" style="font-family: monospace;">namespace :metrics <span style="color:#9966CC; font-weight:bold;">do</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">def</span> get_mtime<span style="color:#006600; font-weight:bold;">&#40;</span>path<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; File.<span style="color:#9900CC;">mtime</span><span style="color:#006600; font-weight:bold;">&#40;</span>path<span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">strftime</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;%Y-%m-%d %I:%M %p&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; <br />
&nbsp; desc 'Generates Reek report'<br />
&nbsp; task :make_reek <span style="color:#9966CC; font-weight:bold;">do</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">require</span> 'find'<br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">require</span> 'fileutils'<br />
&nbsp; &nbsp; reek_dir_name = <span style="color:#996600;">&quot;reek&quot;</span><br />
&nbsp; &nbsp; reek_dir = <span style="color:#996600;">&quot;#{RAILS_ROOT}/public/#{reek_dir_name}&quot;</span><br />
&nbsp; &nbsp; index_file = <span style="color:#996600;">&quot;#{reek_dir}/index.html&quot;</span><br />
&nbsp; &nbsp; output_files = <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">&#125;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">unless</span> File.<span style="color:#9900CC;">exists</span>?<span style="color:#006600; font-weight:bold;">&#40;</span>reek_dir<span style="color:#006600; font-weight:bold;">&#41;</span> &amp;&amp; File.<span style="color:#9900CC;">directory</span>?<span style="color:#006600; font-weight:bold;">&#40;</span>reek_dir<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; FileUtils.<span style="color:#9900CC;">mkdir</span><span style="color:#006600; font-weight:bold;">&#40;</span>reek_dir<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Find.<span style="color:#9900CC;">find</span><span style="color:#006600; font-weight:bold;">&#40;</span>RAILS_ROOT<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> |path|<br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#40;</span>path =~ /<span style="color:#008000; font-style:italic;">#{RAILS_ROOT}\/app\// || path =~ /#{RAILS_ROOT}\/lib\//) &amp;&amp;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; path =~ /\.<span style="color:#9900CC;">rb</span>$/i<br />
&nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; output_file = <span style="color:#996600;">&quot;#{File.basename(path)}.txt&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; cmd = <span style="color:#996600;">&quot;reek #{path} &gt; #{reek_dir}/#{output_file}&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> cmd<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">system</span><span style="color:#006600; font-weight:bold;">&#40;</span>cmd<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; output_files<span style="color:#006600; font-weight:bold;">&#91;</span>path<span style="color:#006600; font-weight:bold;">&#93;</span> = output_file<br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;Writing index file to #{index_file}...&quot;</span><br />
&nbsp; &nbsp; paths = output_files.<span style="color:#9900CC;">keys</span>.<span style="color:#9900CC;">sort</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; File.<span style="color:#CC0066; font-weight:bold;">open</span><span style="color:#006600; font-weight:bold;">&#40;</span>index_file, 'w'<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> |file|<br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;html&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;head&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;&lt;title&gt;Reek Results for #{RAILS_ROOT}&lt;/title&gt;&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;/head&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;body&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;&lt;h1&gt;Reek Results for #{RAILS_ROOT}&lt;/h1&gt;&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;ol&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span></p>
<p>&nbsp; &nbsp; &nbsp; paths.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> |path|<br />
&nbsp; &nbsp; &nbsp; &nbsp; name = output_files<span style="color:#006600; font-weight:bold;">&#91;</span>path<span style="color:#006600; font-weight:bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;li&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; link_name = File.<span style="color:#9900CC;">basename</span><span style="color:#006600; font-weight:bold;">&#40;</span>name, '.<span style="color:#9900CC;">rb</span>.<span style="color:#9900CC;">txt</span>'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;a href=<span style="color:#996600;">&quot;' + name + '&quot;</span>&gt;' + link_name + '&lt;/a&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>' from ' + path<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;&lt;/li&gt;<span style="color:#000099;">\n</span>&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></p>
<p>&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;/ol&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;/body&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;/html&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></p>
<p>&nbsp; desc 'Generates public/reports.<span style="color:#9900CC;">html</span>'<br />
&nbsp; task :make_index <span style="color:#9966CC; font-weight:bold;">do</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">require</span> 'find'<br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">require</span> 'fileutils'<br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;<span style="color:#000099;">\n</span>Generating index of reports...&quot;</span><br />
&nbsp; &nbsp; reports = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#93;</span><br />
&nbsp; &nbsp; index_file = <span style="color:#996600;">&quot;#{RAILS_ROOT}/public/reports.html&quot;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Find.<span style="color:#9900CC;">find</span><span style="color:#006600; font-weight:bold;">&#40;</span>RAILS_ROOT + '/public'<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> |path|<br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; path =~ /flay_report\.<span style="color:#9900CC;">txt</span>$/ ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; path =~ /flog_report\.<span style="color:#9900CC;">txt</span>$/ ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; path =~ /roodi_report\.<span style="color:#9900CC;">txt</span>$/<br />
&nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; reports &lt;&lt; File.<span style="color:#9900CC;">basename</span><span style="color:#006600; font-weight:bold;">&#40;</span>path<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; File.<span style="color:#CC0066; font-weight:bold;">open</span><span style="color:#006600; font-weight:bold;">&#40;</span>index_file, 'w'<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> |file|<br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;html&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;head&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;&lt;title&gt;Reports for #{RAILS_ROOT}&lt;/title&gt;&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;/head&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;body&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;&lt;h1&gt;Reports for #{RAILS_ROOT}&lt;/h1&gt;&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;ol&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span></p>
<p>&nbsp; &nbsp; &nbsp; reek_file = <span style="color:#996600;">&quot;#{RAILS_ROOT}/public/reek/index.html&quot;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">if</span> File.<span style="color:#9900CC;">exists</span>?<span style="color:#006600; font-weight:bold;">&#40;</span>reek_file<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;li&gt;&lt;a href=<span style="color:#996600;">&quot;reek/index.html&quot;</span>&gt;Reek&lt;/a&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;, last updated #{get_mtime(reek_file)}&lt;/li&gt;&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></p>
<p>&nbsp; &nbsp; &nbsp; token_file = <span style="color:#996600;">&quot;#{RAILS_ROOT}/public/saikuro/index_token.html&quot;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">if</span> File.<span style="color:#9900CC;">exists</span>?<span style="color:#006600; font-weight:bold;">&#40;</span>token_file<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;li&gt;&lt;a href=<span style="color:#996600;">&quot;saikuro/index_token.html&quot;</span>&gt;Tokens&lt;/a&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;, last updated #{get_mtime(token_file)}&lt;/li&gt;&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></p>
<p>&nbsp; &nbsp; &nbsp; cyclo_file = <span style="color:#996600;">&quot;#{RAILS_ROOT}/public/saikuro/index_cyclo.html&quot;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">if</span> File.<span style="color:#9900CC;">exists</span>?<span style="color:#006600; font-weight:bold;">&#40;</span>cyclo_file<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;li&gt;&lt;a href=<span style="color:#996600;">&quot;saikuro/index_cyclo.html&quot;</span>&gt;Cyclomatic complexity&lt;/a&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;, last updated #{get_mtime(cyclo_file)}&lt;/li&gt;&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></p>
<p>&nbsp; &nbsp; &nbsp; reports.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> |name|<br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;li&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;a href=<span style="color:#996600;">&quot;' + name + '&quot;</span>&gt;' + name + '&lt;/a&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;, last updated #{get_mtime(RAILS_ROOT + '/public/' + name)}&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;/li&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></p>
<p>&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;/ol&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;/body&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; file.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span>'&lt;/html&gt;'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></p>
<p>&nbsp; desc 'Generates Roodi report'<br />
&nbsp; task :make_roodi <span style="color:#9966CC; font-weight:bold;">do</span> <br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;<span style="color:#000099;">\n</span>Generating Roodi report...&quot;</span><br />
&nbsp; &nbsp; cmd = <span style="color:#996600;">&quot;roodi <span style="color:#000099;">\&quot;</span>#{RAILS_ROOT}/**/*.rb<span style="color:#000099;">\&quot;</span> &gt; #{RAILS_ROOT}/public/roodi_report.txt&quot;</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> cmd<br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">system</span><span style="color:#006600; font-weight:bold;">&#40;</span>cmd<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></p>
<p>&nbsp; desc 'Generates Flay report'<br />
&nbsp; task :make_flay <span style="color:#9966CC; font-weight:bold;">do</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;<span style="color:#000099;">\n</span>Generating Flay report...&quot;</span><br />
&nbsp; &nbsp; cmd = <span style="color:#996600;">&quot;flay #{RAILS_ROOT}/app/ &gt; #{RAILS_ROOT}/public/flay_report.txt&quot;</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> cmd<br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">system</span><span style="color:#006600; font-weight:bold;">&#40;</span>cmd<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></p>
<p>&nbsp; desc 'Generates Saikuro report'<br />
&nbsp; task :make_saikuro <span style="color:#9966CC; font-weight:bold;">do</span><br />
&nbsp; &nbsp; saikuro_dir = <span style="color:#996600;">&quot;#{RAILS_ROOT}/public/saikuro/&quot;</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">unless</span> File.<span style="color:#9900CC;">exists</span>?<span style="color:#006600; font-weight:bold;">&#40;</span>saikuro_dir<span style="color:#006600; font-weight:bold;">&#41;</span> &amp;&amp; File.<span style="color:#9900CC;">directory</span>?<span style="color:#006600; font-weight:bold;">&#40;</span>saikuro_dir<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; FileUtils.<span style="color:#9900CC;">mkdir</span><span style="color:#006600; font-weight:bold;">&#40;</span>saikuro_dir<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;<span style="color:#000099;">\n</span>Generating Saikuro report...&quot;</span><br />
&nbsp; &nbsp; cmd = <span style="color:#996600;">&quot;saikuro -c -t -i #{RAILS_ROOT}/app/ -y 0 -w 11 -e 16 -o #{saikuro_dir}&quot;</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> cmd<br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">system</span><span style="color:#006600; font-weight:bold;">&#40;</span>cmd<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></p>
<p>&nbsp; desc 'Generates Flog report'<br />
&nbsp; task :make_flog <span style="color:#9966CC; font-weight:bold;">do</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;<span style="color:#000099;">\n</span>Generating Flog report...&quot;</span><br />
&nbsp; &nbsp; cmd = <span style="color:#996600;">&quot;flog #{RAILS_ROOT}/app/ &gt; #{RAILS_ROOT}/public/flog_report.txt&quot;</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">puts</span> cmd<br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">system</span><span style="color:#006600; font-weight:bold;">&#40;</span>cmd<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span></p>
<p>&nbsp; desc 'Generates all reports.'<br />
&nbsp; task :make_all <span style="color:#9966CC; font-weight:bold;">do</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">system</span><span style="color:#006600; font-weight:bold;">&#40;</span>'rake metrics:make_reek'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">system</span><span style="color:#006600; font-weight:bold;">&#40;</span>'rake metrics:make_roodi'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">system</span><span style="color:#006600; font-weight:bold;">&#40;</span>'rake metrics:make_flay'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">system</span><span style="color:#006600; font-weight:bold;">&#40;</span>'rake metrics:make_saikuro'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">system</span><span style="color:#006600; font-weight:bold;">&#40;</span>'rake metrics:make_flog'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">system</span><span style="color:#006600; font-weight:bold;">&#40;</span>'rake metrics:make_index'<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<span style="color:#9966CC; font-weight:bold;">end</span></div>
</div>
<p>Cross-posted to my <a href="http://snippets.dzone.com/user/moneypenny">DZone Snippets</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/04/07/code-reports-rake-task/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.3till7.net/2009/04/07/code-reports-rake-task/</feedburner:origLink></item>
		<item>
		<title>sortable arrays of symbols in Ruby</title>
		<link>http://feedproxy.google.com/~r/3till7/~3/rMBZRHpTmZw/</link>
		<comments>http://www.3till7.net/2009/04/07/sortable-arrays-of-symbols-in-ruby/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 15:58:58 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=1861</guid>
		<description><![CDATA[I got this error in my Rails app because I was trying to sort an array of symbols:  undefined method `' for :my_symbol:Symbol.  I defined the spaceship method for the Symbol class and included the Comparable module in order to have other comparison methods available for symbols.

 Ruby
class Symbol
&#160; include Comparable
&#160; def &#60;=&#62;&#40;other&#41;
&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>I got this error in my Rails app because I was trying to sort an array of symbols:  undefined method `<=>' for :my_symbol:Symbol.  I defined the spaceship method for the Symbol class and included the Comparable module in order to have other comparison methods available for symbols.</p>
<div class="synthi_code" style="display:block;" id="styled_synthi_4a47089490ada">
<h2 class="synthi_header"> Ruby</h2>
<div class="ruby" style="font-family: monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> Symbol<br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">include</span> Comparable</p>
<p>&nbsp; <span style="color:#9966CC; font-weight:bold;">def</span> &lt;=&gt;<span style="color:#006600; font-weight:bold;">&#40;</span>other<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">to_s</span> &lt;=&gt; other.<span style="color:#9900CC;">to_s</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<span style="color:#9966CC; font-weight:bold;">end</span></div>
</div>
<p>This lets me do things like the following:</p>
<pre>irb(main):007:0> [:c, :a, :d, :b, :e].sort
=> [:a, :b, :c, :d, :e]</pre>
<p>Cross-posted to my <a href="http://snippets.dzone.com/user/moneypenny">DZone Snippets</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/04/07/sortable-arrays-of-symbols-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.3till7.net/2009/04/07/sortable-arrays-of-symbols-in-ruby/</feedburner:origLink></item>
	</channel>
</rss>
