<?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>joey nelson &#187; work</title>
	<atom:link href="http://jnjnjn.com/category/work/feed/" rel="self" type="application/rss+xml" />
	<link>http://jnjnjn.com</link>
	<description></description>
	<lastBuildDate>Mon, 02 Aug 2010 13:11:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Walrus</title>
		<link>http://jnjnjn.com/129/walrus/</link>
		<comments>http://jnjnjn.com/129/walrus/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 03:16:37 +0000</pubDate>
		<dc:creator>joey</dc:creator>
				<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://jnjnjn.com/?p=129</guid>
		<description><![CDATA[Someday there might be an actual site for Walrus, but until then this will have to do!
]]></description>
			<content:encoded><![CDATA[<p>Someday there might be an actual site for <a href="http://wlrs.net/">Walrus</a>, but until then this will have to do!</p>
]]></content:encoded>
			<wfw:commentRss>http://jnjnjn.com/129/walrus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the office</title>
		<link>http://jnjnjn.com/62/the-office/</link>
		<comments>http://jnjnjn.com/62/the-office/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 04:29:16 +0000</pubDate>
		<dc:creator>joey</dc:creator>
				<category><![CDATA[portland]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://jnjnjn.com/62/the-office/</guid>
		<description><![CDATA[
One of the nice things about not living in LA is that we actually have some room.  This is where I spend a pretty huge chunk of my day and it makes life a lot better.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/subclub/2038175823/" title="office by subclub, on Flickr" class="photo"><img src="http://farm3.static.flickr.com/2401/2038175823_a2ba896c74.jpg" width="500" height="333" alt="office" /></a></p>
<p>One of the nice things about not living in LA is that we actually have some room.  This is where I spend a pretty huge chunk of my day and it makes life a lot better.</p>
]]></content:encoded>
			<wfw:commentRss>http://jnjnjn.com/62/the-office/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snap Preview Anywhere contest</title>
		<link>http://jnjnjn.com/28/snap-preview-anywhere-contest/</link>
		<comments>http://jnjnjn.com/28/snap-preview-anywhere-contest/#comments</comments>
		<pubDate>Tue, 27 Feb 2007 05:58:48 +0000</pubDate>
		<dc:creator>joey</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bloop.org/joey/2007/02/26/snap-preview-anywhere-contest/</guid>
		<description><![CDATA[I&#8217;ve spent the past couple of weeks at work building a web application for Snap&#8217;s latest contest and it just went live at contest.snap.com.  It allows users to submit ideas (for new features for a product) and lets them do some simple Digg-style voting.
The concept is very similar to the last Snap contest but [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent the past couple of weeks at work building a web application for <a href="http://snap.com">Snap</a>&#8217;s latest contest and it just went live at <a href="http://contest.snap.com">contest.snap.com</a>.  It allows users to submit ideas (for new features for a product) and lets them do some simple Digg-style voting.</p>
<p>The concept is very similar to <a href="http://bloop.org/joey/2006/05/18/snap-blog-launches/">the last Snap contest</a> but it&#8217;s now a standalone web application (instead of a half dozen hacky Wordpress plugins).  The site is actually a heavily-modified version of my message board software that runs <a href="http://omgtru.com">omgtru.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jnjnjn.com/28/snap-preview-anywhere-contest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding WIN32OLE method names in Ruby</title>
		<link>http://jnjnjn.com/13/finding-win32ole-method-names-in-ruby/</link>
		<comments>http://jnjnjn.com/13/finding-win32ole-method-names-in-ruby/#comments</comments>
		<pubDate>Wed, 21 Jun 2006 08:00:00 +0000</pubDate>
		<dc:creator>joey</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[watir]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[For the past couple months at work I&#8217;ve been using Watir, a Ruby library for controlling Internet Explorer, to automate some of the testing on our site.  But the Snap site is a beast, with an enormous amount of Javascript and hundreds of dynamically-modified divs.
Since Watir can bog down while iterating through 100+ div [...]]]></description>
			<content:encoded><![CDATA[<p>For the past couple months at work I&#8217;ve been using <a href="http://openqa.org/watir/">Watir</a>, a Ruby library for controlling Internet Explorer, to automate some of the testing on our site.  But the <a href="http://snap.com/#snap">Snap site is a beast</a>, with an enormous amount of Javascript and hundreds of dynamically-modified divs.</p>
<p>Since Watir can bog down while iterating through 100+ div objects, I&#8217;m working directly with WIN32OLE objects for certain things.</p>
<p>I&#8217;m very new to ruby. And WIN32OLE is weird. I had just been copying code from the watir library and modifying it to suit my needs, but today I had to do some more complicated stuff.  In ruby, you can view the available methods of any object by doing this:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby"><span style="color: #888888;">puts</span> foo.<span style="color: #F8320D;">methods</span></pre></div></div>

<p>But if you do that with a WIN32OLE object it doesn&#8217;t give you jack.  I finally managed to find a <a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/71620">ruby-talk post</a> from 3 years ago that shed some light on this.  So here&#8217;s a method that can pull it off:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby"><span style="color: #888888">class</span> WIN32OLE
  <span style="color: #888888">def</span> list_ole_methods
    method_names = ole_methods.<span style="color: #F8320D;">collect</span> <span style="color: #bbbbbb;">&#123;</span>|m| m.<span style="color: #F8320D;">name</span><span style="color: #bbbbbb;">&#125;</span>
    <span style="color: #888888;">puts</span> method_names.<span style="color: #F8320D;">sort</span>.<span style="color: #F8320D;">uniq</span>
  <span style="color: #888888">end</span>
<span style="color: #888888">end</span></pre></div></div>

<p>So doing:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby">foo.<span style="color: #F8320D;">list_ole_methods</span></pre></div></div>

<p>Will give you a long list of method names you can call with your object.</p>
<p>I realize this isn&#8217;t, uh, interesting, but hopefully the next tard trying to figure this stuff out will be able to find this post on Google.  </p>
<p>And just for the record, Watir fucking rules.  It easily outperformed every other automation tool we evaluated (many of which cost tens of thousands of dollars) and, not coincidentally, harnesses the power of an awesome language like Ruby.  A lot of the other packages we looked at use strange proprietary languages that aren&#8217;t really documented (because then they can talk you into taking a weeklong $8k training course) and can&#8217;t pull off half the stuff we&#8217;ve already done using Watir.</p>
]]></content:encoded>
			<wfw:commentRss>http://jnjnjn.com/13/finding-win32ole-method-names-in-ruby/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Snap blog launches</title>
		<link>http://jnjnjn.com/5/snap-blog-launches/</link>
		<comments>http://jnjnjn.com/5/snap-blog-launches/#comments</comments>
		<pubDate>Thu, 18 May 2006 23:00:00 +0000</pubDate>
		<dc:creator>joey</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The Snap blog has launched and pretty much all hell has broken loose.  Anyone who signs up can post to the blog with their &#8220;launch idea&#8221; and it will automatically get posted on the front page.  Then other users can vote on the best ideas, and the winner gets $5,000.  How could [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://blog.snap.com">Snap blog</a> has launched and pretty much all hell has broken loose.  Anyone who signs up can post to the blog with their &#8220;launch idea&#8221; and it will automatically get posted on the front page.  Then other users can vote on the best ideas, and the winner gets $5,000.  How could THAT go wrong?</p>
<p>I wrote several plugins for the blog, and it seems like the company is excited about releasing them to the public. This is pretty much the first significant stuff I&#8217;ve done with PHP and I really got to dig around in the guts of Wordpress to add some cool features:</p>
<p><strong>Simple Vote</strong><br />
Adds a Digg-style vote box to posts from a certain category.  Only registered users can vote.</p>
<p><strong>Simple Post</strong><br />
Allows <em>any</em> user to post to the blog from a watered down interface, regardless of their privileges.  Crazy, right?  This way we can let users post to the blog without giving them access to anything in the admin interface.</p>
<p><strong>Easy Author Info</strong><br />
Easily grab any author&#8217;s information.  For example, you could print out any author&#8217;s &#8220;About me&#8221; text like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #888888;">echo</span> get_easyauthor_attr<span style="color: #bbbbbb;">&#40;</span><span style="color: #F8320D;">$author_id</span>, <span style="color: #888888; background-color: #fbf6c5;">&quot;description&quot;</span><span style="color: #bbbbbb;">&#41;</span>;</pre></div></div>

<p>These scripts need to be cleaned up and made more configurable before they can be released, but hopefully that should be pretty soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://jnjnjn.com/5/snap-blog-launches/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
