<?xml version='1.0' encoding='UTF-8'?><rss version='2.0'><channel><title>Becker&apos;s Blog</title><link>http://www.stephenbeckeriv.com</link><lastBuildDate>Mon, 09 May 2011 07:56:19 PDT</lastBuildDate><language>en-us</language><item><title>Textport 0.0.4</title><link>http://stephenbeckeriv.com/main/index/Textport_0.0.4</link><guid>http://stephenbeckeriv.com/main/index/Textport_0.0.4</guid><pubDate>Mon, 09 May 2011 14:56:04 UTC</pubDate><description>The add-on process for mozilla I pretty slow. I understand its a volunteer group of people. I would not really gate my best feature on a group that does not have the companies best interests in mind. I had a preliminarily and needed to update. The first review was speedy but the second was taking for ever. I thought switching it to a full review might help but no luck so far. &amp;lt;br/&amp;gt;

Until then here is a copy of my &amp;lt;a href=&apos;https://addons.mozilla.org/firefox/downloads/file/117689/textport-0.0.4-tb.xpi?src=becker&apos;&amp;gt;textport 0.0.4&amp;lt;/a&amp;gt;</description></item><item><title>Textport</title><link>http://stephenbeckeriv.com/main/index/Textport</link><guid>http://stephenbeckeriv.com/main/index/Textport</guid><pubDate>Fri, 01 Apr 2011 03:42:36 UTC</pubDate><description>My first thunderbird extension. Texport is a plugin that allows you to export your email data using a template. The template are &amp;lt;a href=&apos;http://embeddedjs.com/&apos;&amp;gt;EJS&amp;lt;/a&amp;gt;. Texport also can export the contacts from a set of emails. Action can be taken on folder or selected emails. 
&amp;lt;br/&amp;gt;
Plugin to thunderbird that allows you to export your contact
information or message bodies to text files. This is enabled
in two menus. The first is the folder level menu. This will
preform the action on ever message in the folder. For larger
folders this can take a long time. I exported 19k message in
2 hours. The second is in the message panel level. Highlight
one or more messages to preform the actions on.
&amp;lt;br/&amp;gt;
Source: &amp;lt;a href=&apos;https://github.com/sbeckeriv/textport&apos;&amp;gt;https://github.com/sbeckeriv/textport&amp;lt;/a&amp;gt;
&amp;lt;br/&amp;gt; 
Thunderbird page: &amp;lt;a href=&apos;https://addons.mozilla.org/en-US/thunderbird/addon/textport/&apos;&amp;gt;https://addons.mozilla.org/en-US/thunderbird/addon/textport/&amp;lt;/a&amp;gt;

</description></item><item><title>thunderbird 3.1 and firebug 1.7b3</title><link>http://stephenbeckeriv.com/main/index/thunderbird_3.1_and_firebug_1.7b3</link><guid>http://stephenbeckeriv.com/main/index/thunderbird_3.1_and_firebug_1.7b3</guid><pubDate>Fri, 18 Mar 2011 01:21:31 UTC</pubDate><description>I wanted to start up a new thunderbird plugin project. I require 3 plugins. 1) extension developer. Its amazingly easy to install a dev build with this. 2) firebug. yes even for thunderbird. 3) firechrome. This gives me direct access to my running code.
&amp;lt;br/&amp;gt;
I prefer working with Mozilla based apps over Google&apos;s chrome.  </description></item><item><title>when the state runs things III</title><link>http://stephenbeckeriv.com/main/index/when_the_state_runs_things_III</link><guid>http://stephenbeckeriv.com/main/index/when_the_state_runs_things_III</guid><pubDate>Sun, 23 Jan 2011 04:37:18 UTC</pubDate><description>As a project I have been working on a website that scrapes data from the wa.liq state site. It was to include search, location based info, json data dump files for clients, and other fun features the state is to outdated to understand. I have had fun with selecting a brand type (Scotch) and a store (#28). I have a page which shows you the brands in stock but my page also shows you which brands they do not have that store but have at other stores. It also includes an approximate mile count to the closest store.&amp;lt;br/&amp;gt;

But as of Friday the state updated their website. Hooray! Not really. The site is still poor at best. The update comes with a new look. A look I do not like. There is a slight search improvement where you can search per brand type per city (not store like mine does. I was going to offer city). The usability of this also very poor. The find store now lacks the product you were looking for. &amp;lt;br/&amp;gt;

To top it all off they updated their system to some new version of ASP. It now includes value checking and javascript for form manipulations. It also holds the search part in an iframe so you have to see the ugly layout and buttons.&amp;lt;br/&amp;gt;

Long and short of it is that I am rewriting my parsers in mechanize. Its been fun to learn mechanize and its Javascript shortfalls. I thought all was lost when I read the Javascript and had mechanize mimic the code. I should be reparsing data by weekend&apos;s end. I take the update to the state site as a personal challenge. I will give the drinkers of Washington more features then they can dream of. When I am done here I am turning my sites to Oregon! &amp;lt;br/&amp;gt;

As long as the state is running things. </description></item><item><title>ruby bundle command line configs</title><link>http://stephenbeckeriv.com/main/index/ruby_bundle_command_line_configs</link><guid>http://stephenbeckeriv.com/main/index/ruby_bundle_command_line_configs</guid><pubDate>Sun, 23 Jan 2011 04:22:13 UTC</pubDate><description>I use DreamHostPS. Its why this page is so fast ;). Point really is that after downloading and installing libxslt-1.1.21 locally. I needed to configure nokogiri to use it. easy enough 
&amp;lt;br/&amp;gt;
&amp;lt;pre&amp;gt;
./configure --prefix=/home/sbecker/lib
make
make install
gem install nokogiri -- --with-xslt-include=/home/sbecker/lib/include/ --with-xslt-lib=/home/sbecker/lib/lib/ 
&amp;lt;/pre&amp;gt;
&amp;lt;br/&amp;gt;
Now comes along my 1 rails 3 app where bundle controls every gem I get to use. Ok easy. Add it to the Gemfile and move on. Nope. After searching around for stuff like &apos;gem bundle command line options&apos; I found one tiny mention of bundle config. Here is the code to set up your command line options. I am not in the mood to learn what it means or why. Maybe later.

&amp;lt;pre&amp;gt;
bundle config build.nokogiri --with-xslt-include=/home/sbecker/lib/include/ --with-xslt-lib=/home/sbecker/lib/lib/

&amp;lt;/pre&amp;gt;

Simple enough. Just new and not clear.</description></item><item><title>httpresponsecodes</title><link>http://stephenbeckeriv.com/main/index/httpresponsecodes</link><guid>http://stephenbeckeriv.com/main/index/httpresponsecodes</guid><pubDate>Wen, 29 Dec 2010 16:23:20 UTC</pubDate><description>When developing code that uses web services I often code for the error case. What if I get back a 404 or 500? This is what I should do. I often have a hard time testing this. Some times the service provides a way to trigger errors. Those calls often are all about the payload. 
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;
I have started a new website httpresponsecodes.com that will take a code like 200 and give you back a 200 response. You can also set the body. For example http://www.httpresponsecodes.com/200?response_body=cow
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;
Leaving of the response_body will return some details about the code. I dont have all the details on all the codes yet but 200 works fine. Its also one of the few that the browser renders fine.
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;
Examples:
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;
 &amp;lt;a href=&apos;http://www.httpresponsecodes.com/200?response_body=cow&apos;&amp;gt; 200 with body&amp;lt;/a&amp;gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;
 &amp;lt;a href=&apos;http://www.httpresponsecodes.com/200&apos;&amp;gt; 200 with details of 200&amp;lt;/a&amp;gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;
 &amp;lt;a href=&apos;http://www.httpresponsecodes.com/500?response_body={&amp;quot;zip&amp;quot;:20}&apos;&amp;gt; 500 with json http://www.httpresponsecodes.com/500?response_body={&amp;quot;zip&amp;quot;:20}&amp;lt;/a&amp;gt;</description></item><item><title>when the state runs things II</title><link>http://stephenbeckeriv.com/main/index/when_the_state_runs_things_II</link><guid>http://stephenbeckeriv.com/main/index/when_the_state_runs_things_II</guid><pubDate>Sun, 12 Dec 2010 18:00:39 UTC</pubDate><description>I picked up my liq site scraping again. I reworked my db using sql. I am going to use ruby 1.9.X and rails 3. It should be up soon. </description></item><item><title>when the state runs things</title><link>http://stephenbeckeriv.com/main/index/when_the_state_runs_things</link><guid>http://stephenbeckeriv.com/main/index/when_the_state_runs_things</guid><pubDate>Wen, 17 Mar 2010 08:13:34 UTC</pubDate><description>I live in yet another state that controls the liquor sales. PA is the other state. After talking with a coworker about some booze they showed me the state liquor store website. Turns out that they post the prices, stock and location of all the booze they carry. 
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; 

After a night of scripting I have 2 scripts. The first one finds the brands and prices. The second one finds the quantities of each brand and what store they are at. Then it stores it in a mongodb (many reasons i am using mongo but that is not for here)  
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; 
So after unscrewing dreamhost with rvm I finally have these scripts running on my server. But you say &amp;quot;big deal becker. what can you do with that data?&amp;quot;. To which I say .. 
&amp;lt;br /&amp;gt;&amp;lt;br/&amp;gt; 
The store at PORT ANGELES 1331 E FRONT STREET  PT ANGELES WA 98362-4616 currently has 176  .75 liter bottles in stock of MACNAUGHTONS 36 MTH CDN TRAVELER which by the way is 80 proof! It is being sold at 12.45 including tax. Its not on sale currently...
&amp;lt;br /&amp;gt;&amp;lt;br/&amp;gt; 
I have more data but its getting late and my screens are ready to run all night.</description></item><item><title>RVM</title><link>http://stephenbeckeriv.com/main/index/RVM</link><guid>http://stephenbeckeriv.com/main/index/RVM</guid><pubDate>Wen, 17 Mar 2010 08:03:17 UTC</pubDate><description>There is a new-ish gem called rvm that allows you to manage ruby vms and gems with a few simple commands. I just used it to unscrew my dreamhost server out of config hell with gems. In less then an hour i rebuild ruby 1.8.7 and ruby 1.9.1 and install most of the gems dreamhost gives a standard account. 
&amp;lt;br \&amp;gt;
I suggest looking at RVM very closely. I will never run another ruby box with out it.</description></item><item><title>Current projects</title><link>http://stephenbeckeriv.com/main/index/Current_projects</link><guid>http://stephenbeckeriv.com/main/index/Current_projects</guid><pubDate>Mon, 07 Dec 2009 06:02:25 UTC</pubDate><description>I am currently working on a dashboard for my life. It will include things like the weather, news, movie release dates, OneBusAway information and other fun stuff. I am building it with rails and mongomapper. I am hoping to hang a screen on my wall and have it powered by a mac mini. Step one is to get it all working. 
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;
Other projects: Revisited IMDB and updated it to run again thanks to someone who wanted to use it. The problem with scrapers is that the code needs to keep changing. I would like to build a parser for the imdb data files but until then.. 
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt; Which brings me to my next project. An interface to my movie collect. I think I have finally have a handle on my movies and my system setup correctly. I am going to build a movie server (non-streaming) on top of my dvd image collection. 
</description></item><item><title>Ruby and Divide By Zero</title><link>http://stephenbeckeriv.com/main/index/Ruby_and_Divide_By_Zero</link><guid>http://stephenbeckeriv.com/main/index/Ruby_and_Divide_By_Zero</guid><pubDate>Thr, 15 Oct 2009 21:37:03 UTC</pubDate><description>&amp;lt;pre&amp;gt;&amp;lt;pre&amp;gt;
&amp;lt;span class=&amp;quot;ident&amp;quot;&amp;gt;number&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;punct&amp;quot;&amp;gt;=&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;punct&amp;quot;&amp;gt;(&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;number&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;punct&amp;quot;&amp;gt;/&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;number&amp;quot;&amp;gt;0&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;punct&amp;quot;&amp;gt;.&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;ident&amp;quot;&amp;gt;to_f&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;punct&amp;quot;&amp;gt;)&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;comment&amp;quot;&amp;gt;#will not error&amp;lt;/span&amp;gt;
&amp;lt;span class=&amp;quot;ident&amp;quot;&amp;gt;number&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;punct&amp;quot;&amp;gt;=&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;number&amp;quot;&amp;gt;0&amp;lt;/span&amp;gt;  &amp;lt;span class=&amp;quot;keyword&amp;quot;&amp;gt;unless&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;number&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;punct&amp;quot;&amp;gt;&amp;amp;lt;=&amp;amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;ident&amp;quot;&amp;gt;number&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;comment&amp;quot;&amp;gt;# will return nil if its infinity or NaN&amp;lt;/span&amp;gt;
&amp;lt;/pre&amp;gt;&amp;lt;/pre&amp;gt; 

No more checking number.nan? || number.infinite? </description></item><item><title>busy</title><link>http://stephenbeckeriv.com/main/index/busy</link><guid>http://stephenbeckeriv.com/main/index/busy</guid><pubDate>Sun, 11 Oct 2009 03:34:56 UTC</pubDate><description>Been busy. Started a new job. Gist.com  Working on a few different ideas and been living. I hope to post something new soon.</description></item><item><title>greasemonkey day1</title><link>http://stephenbeckeriv.com/main/index/greasemonkey_day1</link><guid>http://stephenbeckeriv.com/main/index/greasemonkey_day1</guid><pubDate>Thr, 18 Jun 2009 16:10:01 UTC</pubDate><description>I just got a G1 phone and I was playing around with google charts. Turns out they do QR bar codes. It turns out that the barcode scanner on my G1 reads the QR. So I made a greasemonkey script that adds the barcode to the bottom of every page. (After the body tag until I figure it out more)

&amp;lt;a href=&amp;quot;http://deathbyescalator.com/barcode.user.js&amp;quot;&amp;gt;http://deathbyescalator.com/barcode.user.js&amp;lt;/a&amp;gt;

I can now just view a site, scan it and bookmark it on my phone.</description></item></channel></rss>
