<?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>Opthumb</title>
	<atom:link href="http://www.opthumb.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.opthumb.com</link>
	<description>Actionscript, Rails, Ruby, and CSS discovery</description>
	<lastBuildDate>Thu, 22 Oct 2009 17:55:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Conditional logic in functions</title>
		<link>http://www.opthumb.com/2009/conditional-logic-in-functions/10/</link>
		<comments>http://www.opthumb.com/2009/conditional-logic-in-functions/10/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 17:44:51 +0000</pubDate>
		<dc:creator>jphillips</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/?p=143</guid>
		<description><![CDATA[When defining a class method in ruby, you can put conditional logic around the function declaration. This allows you to define separate methods based on your environment. Example: if VERBOSE def trace(message) puts message end else def trace(message) print &#8220;.&#8221; end end]]></description>
			<content:encoded><![CDATA[<p>When defining a class method in ruby, you can put conditional logic around the function declaration.  This allows you to define separate methods based on your environment.  </p>
<p>Example:</p>
<p>  if VERBOSE<br />
    def trace(message)<br />
      puts message<br />
    end<br />
  else<br />
    def trace(message)<br />
      print &#8220;.&#8221;<br />
    end<br />
  end</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2009/conditional-logic-in-functions/10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ruby Library hpricot</title>
		<link>http://www.opthumb.com/2009/ruby-library-hpricot/10/</link>
		<comments>http://www.opthumb.com/2009/ruby-library-hpricot/10/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 13:55:08 +0000</pubDate>
		<dc:creator>jphillips</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/?p=141</guid>
		<description><![CDATA[hpricot provides a nice dom traversal library for web scraping. When using hpricot to parse xml docs, I discovered that Hpricot automatically downcases xml nodes. XML files generated by Microsoft Excel generate nodes with capital letters. example: becomes: doc:/workbook kind of a small thing, that I&#8217;m documenting for myself.]]></description>
			<content:encoded><![CDATA[<p>hpricot provides a nice dom traversal library for web scraping.  When using hpricot to parse xml docs, I discovered that Hpricot automatically downcases xml nodes.  XML files generated by Microsoft Excel generate nodes with capital letters.  </p>
<p>example:<br />
<Workbook></p>
<p>becomes:<br />
doc:/workbook</p>
<p>kind of a small thing, that I&#8217;m documenting for myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2009/ruby-library-hpricot/10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mysql wordpress site url change</title>
		<link>http://www.opthumb.com/2009/mysql-wordpress-site-url-change/10/</link>
		<comments>http://www.opthumb.com/2009/mysql-wordpress-site-url-change/10/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 16:10:01 +0000</pubDate>
		<dc:creator>jphillips</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/?p=139</guid>
		<description><![CDATA[Mysql statement for changing site url: UPDATE {table_prefix}wp_options SET option_value = replace(option_value, ‘http://oldlocation’, ‘http://newlocation’) WHERE option_name = ‘home’ OR option_name = ’siteurl’;]]></description>
			<content:encoded><![CDATA[<p>Mysql statement for changing site url:</p>
<p>UPDATE {table_prefix}wp_options SET option_value = replace(option_value, ‘http://oldlocation’, ‘http://newlocation’) WHERE option_name = ‘home’ OR option_name = ’siteurl’;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2009/mysql-wordpress-site-url-change/10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Model.find_each</title>
		<link>http://www.opthumb.com/2009/modelfind_each/10/</link>
		<comments>http://www.opthumb.com/2009/modelfind_each/10/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 13:59:36 +0000</pubDate>
		<dc:creator>jphillips</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/?p=137</guid>
		<description><![CDATA[If you&#8217;re recursively looping through all your active record models, using Model.find_each is more efficient than Model.all.each. This incrementally polls the database without requiring the entire result set to load into memory.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re recursively looping through all your active record models, using Model.find_each is more efficient than Model.all.each.  This incrementally polls the database without requiring the entire result set to load into memory.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2009/modelfind_each/10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Injecting backup databases</title>
		<link>http://www.opthumb.com/2009/injecting-backup-databases/06/</link>
		<comments>http://www.opthumb.com/2009/injecting-backup-databases/06/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 14:39:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/?p=133</guid>
		<description><![CDATA[Here&#8217;s a command for inserting .sql files into a new database mysql -u root -p database_name < db.sql]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a command for inserting .sql files into a new database</p>
<p>mysql -u root -p database_name < db.sql</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2009/injecting-backup-databases/06/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding your adobe serial numbers</title>
		<link>http://www.opthumb.com/2009/finding-your-adobe-serial-numbers/05/</link>
		<comments>http://www.opthumb.com/2009/finding-your-adobe-serial-numbers/05/#comments</comments>
		<pubDate>Wed, 13 May 2009 19:22:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/?p=130</guid>
		<description><![CDATA[I recently upgraded my computer to a macbook pro and realized that I didn&#8217;t record which of my company&#8217;s serial numbers I had used. I definitely didn&#8217;t want to duplicate our licenses forcing me to retrieve the serial number I had entered 6 months ago. In Mac OSX, I found the serial number located in: [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded my computer to a macbook pro and realized that I didn&#8217;t record which of my company&#8217;s serial numbers I had used.  I definitely didn&#8217;t want to duplicate our licenses forcing me to retrieve the serial number I had entered 6 months ago.  </p>
<p>In Mac OSX, I found the serial number located in: Users > Shared > Adobe > ISO-19770 in a file called &#8220;Creative Suite 4 Design Standard-DesignSuiteStandard-CS4-Mac-GM-en_US.swtag&#8221;.  The file wasn&#8217;t immediately recognized by any application but can be opened by any text editor.  Scroll all the way to the bottom of the file, and you&#8217;ll see:</p>
<p> </sat:license_linkage><br />
<sat:serial_number>xxxxxxxxxxxxxxxx</sat:serial_number><br />
</sat:software_asset_tag></p>
<p>Voila&#8230;.. your current serial number.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2009/finding-your-adobe-serial-numbers/05/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Switched up the blog theme</title>
		<link>http://www.opthumb.com/2009/switched-up-the-blog-theme/03/</link>
		<comments>http://www.opthumb.com/2009/switched-up-the-blog-theme/03/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 03:36:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/2009/switched-up-the-blog-theme/03/</guid>
		<description><![CDATA[Figured I would switch up the theme of my site a little. Need to get my flickr, twitter and delicious feeds in here]]></description>
			<content:encoded><![CDATA[<p>Figured I would switch up the theme of my site a little. Need to get my flickr, twitter and delicious feeds in here</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2009/switched-up-the-blog-theme/03/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Quick function for moving a sprite to the highest depth</title>
		<link>http://www.opthumb.com/2009/quick-function-for-moving-a-sprite-to-the-highest-depth/03/</link>
		<comments>http://www.opthumb.com/2009/quick-function-for-moving-a-sprite-to-the-highest-depth/03/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 02:37:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/2009/quick-function-for-moving-a-sprite-to-the-highest-depth/03/</guid>
		<description><![CDATA[private function moveToHighestDepth(displayObject:*):void{ var curParent = displayObject.parent; curParent.removeChild(displayObject); curParent.addChild(displayObject); }]]></description>
			<content:encoded><![CDATA[<p>
<pre language="Actionscript" line="1">private function moveToHighestDepth(displayObject:*):void{
      var curParent = displayObject.parent;
      curParent.removeChild(displayObject);
      curParent.addChild(displayObject);
 }</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2009/quick-function-for-moving-a-sprite-to-the-highest-depth/03/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash NetStream request headers</title>
		<link>http://www.opthumb.com/2009/flash-netstream-request-headers/03/</link>
		<comments>http://www.opthumb.com/2009/flash-netstream-request-headers/03/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 03:27:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/?p=122</guid>
		<description><![CDATA[For the past few weeks I&#8217;ve been experimenting with different ways of serving up flv&#8217;s through different servers (ie&#8230;. nginx with installed streaming module). However, we wanted to see how S3 would deal with our need for streaming video. S3 does not support the ability to change a get param into a request header for [...]]]></description>
			<content:encoded><![CDATA[<p>For the past few weeks I&#8217;ve been experimenting with different ways of serving up flv&#8217;s through different servers (ie&#8230;. nginx with installed streaming module).  However, we wanted to see how S3 would deal with our need for streaming video.  S3 does not support the ability to change a get param into a request header for doing byte offsets.  Why is this important?&#8230; typically, flvs served up by youtube and other services allow requests to pass in the start point of the stream.  This allows a user to fast-forward past the download buffer to any section of a video.  The servers are returning pieces of the video file.<br />
I always wondered why this was such a big deal requiring specific modules to be compiled into nginx until I started playing around with http headers directly.  So&#8230;.. here&#8217;s the deal.  S3 (a service of amazon), allows requesting byte offsets through HTTP Headers.  This is great, but alas&#8230;. Adobe has let me down.  HTTP Headers cannot be implemented through the NetStream Class even though the documentation says otherwise.  The HTTP Headers supported by the netstream class are proprietary and only work with Flash Communication Server.  This is completely ridiculous.<br />
This also manifests in a couple other ways.  You may have noticed that NetStream documentation shows an event attached to videos: NetStream.Play.Complete .  I expected this event to be called when the video finished playing&#8230;. but nothing happened.  After a little digging, it turns out that NetStream.Play.Complete is only available if you&#8217;re serving up videos from Flash Communication Server.<br />
Flash video is one of the most frustrating things to deal with because of their closed source pos http request that&#8217;s clearly broken.  Anywho&#8230; I feel like this is a pretty serious issue that needs to be fixed.  Why can we use HTTP headers to request data, but not to request a stream?  It just doesn&#8217;t make any sense.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2009/flash-netstream-request-headers/03/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset lost admin password in wordpress</title>
		<link>http://www.opthumb.com/2009/reset-lost-admin-password-in-wordpress/03/</link>
		<comments>http://www.opthumb.com/2009/reset-lost-admin-password-in-wordpress/03/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 20:46:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/?p=119</guid>
		<description><![CDATA[Good quick tip on how to reset an admin password in wordpress. http://www.corey-m.com/blog/?p=325]]></description>
			<content:encoded><![CDATA[<p>Good quick tip on how to reset an admin password in wordpress.</p>
<p><a href="http://www.corey-m.com/blog/?p=325">http://www.corey-m.com/blog/?p=325</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2009/reset-lost-admin-password-in-wordpress/03/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

