<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Article RSS Feed</title>
    <link>http://your-web-site.com/rss/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>The main blog feed for my Web site.</description>
    
    
        <item>
          <title>Magic Erasers are awesome</title>
          <description>&lt;p&gt;So if you haven&amp;#8217;t already bought &lt;a href=&quot;http://www.marware.com/PRODUCTS/MacBook/Macbook-Protection-Pack-Deluxe&quot;&gt;something like this&lt;/a&gt;... don&amp;#8217;t! I&amp;#8217;ve found a solution (one among many, just google &amp;#8216;clean macbook&amp;#8217; and you&amp;#8217;ll get a slew of hits), and it is the &lt;a href=&quot;http://mrclean.com/en_US/products/eraser_extra_power.shtml&quot;&gt;Mr. Clean Magic Eraser&lt;/a&gt;. Not only do they take crayon and spaghetti sauce off of painted walls without damage (at least walls with a matte finish), but they also get that icky brown junk off of your laptop. Here is a high contrast photo of the before shot:&lt;/p&gt;</description>
          <pubDate>Sun, 21 Sep 2008 20:13:00 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2008/09/21/magic-erasers-are-awesome/</guid>
          <link>http://your-web-site.com/articles/2008/09/21/magic-erasers-are-awesome/</link>
        </item>
    
        <item>
          <title>Mail Fetcher - Fetch Email from Ruby and Rails</title>
          <description>&lt;p&gt;I recently had to write something to fetch emails from a GMail account and process the emails to check if the email was a bounce (bad email address). If so, the person in the system associated with the bounced email would be deleted from the database. I did some searching for such thing and found this:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer&quot;&gt;How to receive emails with Rails&lt;/a&gt;&lt;/p&gt;

About half way down the page you see an example for polling emails from a POP3 server (edited for space):
&lt;pre&gt;
require 'net/pop'
require File.dirname(__FILE__) + '/../config/environment'

logger = RAILS_DEFAULT_LOGGER

logger.info &quot;Running Mail Importer...&quot; 
Net::POP3.start(&quot;mail.server.net&quot;, nil, &quot;username&quot;, &quot;password&quot;) do |pop|
  if pop.mails.empty?
    logger.info &quot;NO MAIL&quot; 
  else
    pop.mails.each do |email|

      begin
        logger.info &quot;receiving mail...&quot; 
        Mailman.receive(TMail::Mail.parse(email.pop))
        email.delete
      rescue Exception =&gt; e
        logger.error e.message
      end

    end
  end
end
logger.info &quot;Finished Mail Importer.&quot;
&lt;/pre&gt;
</description>
          <pubDate>Sun, 17 Feb 2008 09:48:00 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2008/02/17/mail-fetcher---fetch-email-from-ruby-and-rails/</guid>
          <link>http://your-web-site.com/articles/2008/02/17/mail-fetcher---fetch-email-from-ruby-and-rails/</link>
        </item>
    
        <item>
          <title>Talking to Gmail with Ruby and Rails</title>
          <description>&lt;p&gt;Recently I came across a dilemma in trying to send and receive emails from a Rails app: Either install a full-blown postfix server on a Linux box (by full-blown, I mean account handling, POP/IMAP interface, anti-spam, anti-virus, etc etc), or use Google to handle all the emailing. So, me not being a Linux/sys-admin junkie, I strongly opted for the Google route (and after some persuasion the customer, thankfully, agreed :-). So I went about to find the best practices for working with Google Apps (http://www.google.com/a which is where you sign up). I came across &lt;a href=&quot;http://www.danielfischer.com/2008/01/09/how-to-use-gmail-as-your-mail-server-for-rails/&quot;&gt;this very helpful post&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You just install the mentioned plugin, create the appropriate mailer.yml file and you&amp;#8217;re good to go. ActionMailer will login as the specified account and send emails through that account. Genius! &lt;/p&gt;

&lt;p&gt;On a side note, I was able to get a Rails app to talk (no sending though, just receiving) to gmail by using the new net/pop library in the latest ruby and making the &lt;a href=&quot;http://siannopollo.blogspot.com/2008/02/mail-fetcher-fetch-email-from-ruby-and.html&quot;&gt;Mail Fetcher plugin&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;But back to the main point, being able to send through the Google Apps account. The technical stuff seems really easy now. Just send your emails out like normal and have some way to check responses either manually or programmatically like I showed above. You&amp;#8217;re golden, or so it seems. &lt;/p&gt;</description>
          <pubDate>Mon, 11 Feb 2008 09:47:00 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2008/02/11/talking-to-gmail-with-ruby-and-rails/</guid>
          <link>http://your-web-site.com/articles/2008/02/11/talking-to-gmail-with-ruby-and-rails/</link>
        </item>
    
        <item>
          <title>bash aliases</title>
          <description>&lt;p&gt;Bash aliases are such lovely things, so I thought I would share some of my favorites and maybe even get some feedback.&lt;/p&gt;


	&lt;p&gt;Most of my aliases are there to make software development more enjoyable and less time consuming. As such, most of them deal with the projects I have in my project directories. Here are some of the more interesting ones:&lt;/p&gt;


&lt;code&gt;&lt;pre&gt;
for bigdir in $(ls ~/Developer/Projects/ | cut -d' ' -f7)
do 
  for dir in $(ls ~/Developer/Projects/$bigdir)
    do
      alias cd$dir=&quot;cd ~/Developer/Projects/$bigdir/$dir&quot; 
      alias m$dir=&quot;cd$dir &amp;#38;&amp;#38; mate .&quot; 
      alias s$dir=&quot;cd$dir &amp;#38;&amp;#38; ss&quot; 
      alias g$dir=&quot;~/bin/svngrowl $dir&quot; 
      alias o$dir=&quot;osascript -e 'tell application \&quot;Terminal\&quot;'
        -e 'tell application \&quot;System Events\&quot;'
        -e 'tell process \&quot;Terminal\&quot; to keystroke \&quot;t\&quot; using command down'
        -e 'tell process \&quot;Terminal\&quot; to keystroke \&quot;t\&quot; using command down'
        -e 'end tell'
        -e 'do script \&quot;s$dir\&quot; in first tab of front window'
        -e 'do script \&quot;m$dir\&quot; in second tab of front window'
        -e 'do script \&quot;g$dir\&quot; in third tab of front window'
        -e 'do script \&quot;localhost\&quot; in second tab of front window'
        -e 'tell second tab of front window to set selected to true'
        -e 'end tell'&quot; 
    done
done

alias localhost=&quot;open http://localhost:3000&quot; 
alias addall=&quot;svn st | grep ? | cut -d' ' -f7 | xargs svn add&quot; 
alias removeall=&quot;svn st | grep ? | cut -d' ' -f7 | xargs rm -Rf&quot; 

for var in &quot;server&quot; &quot;generate&quot; &quot;console&quot; &quot;destroy&quot; &quot;plugin&quot; 
do
  alias s${var:0:1}=&quot;script/$var&quot; 
done
&lt;/pre&gt;&lt;/code&gt;</description>
          <pubDate>Sat, 03 Nov 2007 09:52:00 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2007/11/03/bash-aliases/</guid>
          <link>http://your-web-site.com/articles/2007/11/03/bash-aliases/</link>
        </item>
    
        <item>
          <title>Rails and SSL (https://)</title>
          <description>&lt;p&gt;So I recently had to have some secure routes for a site I am currently working on. If you are using deprec and deploying to a slicehost, getting the SSL certificate stuff working is a snap. If you want your whole site to be over SSL, then all you do is put in a permanent redirect to socket 443 in your app_name.conf file. But, if you need to do something interesting like go back and forth between http and https, then you need to do a little digging. &lt;/p&gt;

&lt;p&gt;Doing a google search doesn&amp;#8217;t bring up anything particularly useful in terms of going back and forth between http and https, but one thing did catch my eye. In your routes you can pass a protocol option to set which protocol you are going to use (something like http, file, svn, https, etc&amp;#8230;). I also had to dig through some code to find out how to pass that option in, since it gets set two different ways depending on what kind of route you are using. If you do a map.resource(s) route, then you have to set the option as &lt;code&gt;:requirements =&gt; {:protocol =&gt; ROUTES&lt;em&gt;PROTOCOL}&lt;/code&gt;, whereas if you just do a map.route&lt;/em&gt;name type route, then you just pass in &lt;code&gt;:protocol =&gt; ROUTES_PROTOCOL&lt;/code&gt;.&lt;/p&gt;</description>
          <pubDate>Tue, 28 Aug 2007 09:55:00 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2007/08/28/rails-and-ssl-https-/</guid>
          <link>http://your-web-site.com/articles/2007/08/28/rails-and-ssl-https-/</link>
        </item>
    
        <item>
          <title>Regular Expression Finding in TextMate</title>
          <description>&lt;p&gt;Recently I had to convert a list of items in a word doc over to a yaml file in order so that I could load the data into our database. The word doc only contained the data necessary that a human could read and understand what was needed (meta data), but looked nothing like what the final yaml needed to look like. So I had two options, either sit there for 2 hours typing everything by hand over to yaml, or spend 20 minutes learning how to use the regular expression finding feature in TextMate. I went with the latter and am oh so glad I did. $1 is now my friend.&lt;/p&gt;
&lt;p&gt;If you haven't tried it yet, play around with it ad see how awesome it can be!&lt;/p&gt;</description>
          <pubDate>Wed, 25 Apr 2007 10:06:00 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2007/04/25/regular-expression-finding-in-textmate/</guid>
          <link>http://your-web-site.com/articles/2007/04/25/regular-expression-finding-in-textmate/</link>
        </item>
    
        <item>
          <title>Selenium Remote Control Plugin!</title>
          <description>&lt;p&gt;I recently had a need to get the selenium testing working for another app I was working on and had to copy a bunch of files and whatnot, which I knew was bad. So I took about an hour the other morning and turned it into a plugin for all the world to enjoy.&lt;/p&gt; 

&lt;a href=&quot;http://selenium-rc.rubyforge.org/svn/trunk/&quot;&gt;Here's the repository&lt;/a&gt;. Enjoy!</description>
          <pubDate>Sun, 15 Apr 2007 10:07:00 GMT</pubDate>
          <guid>http://your-web-site.com/articles/2007/04/15/selenium-remote-control-plugin/</guid>
          <link>http://your-web-site.com/articles/2007/04/15/selenium-remote-control-plugin/</link>
        </item>
    
    
  </channel>
</rss>

