<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>a.muse: Category ruby &amp; rails</title>
    <link>http://www.jessirae.com/blog/articles/category/ruby</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Recap from Ruby Coding Group: 8-11-07</title>
      <description>&lt;ul&gt;
	&lt;li&gt;Make sure Ruby, Rails, MySql &amp;#38; Subversion are installed and working properly on your machine.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;ul&gt;
	&lt;li&gt;Create 2 databases: atlrug01_development &amp;#38; atlrug01_test&lt;/li&gt;
	&lt;/ul&gt;


	&lt;ul&gt;
	&lt;li&gt;Login to Assembla where the atlrug coding project 1 is being hosted.  You need to be invited to the atlrug project in order to checkout the project with subversion.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;ul&gt;
	&lt;li&gt;Checkout the atlrug project: svn co http://tools.assembla.com/svn/atlrug.  You will have to enter your assembla password and username in order to check the project out.&lt;/li&gt;
	&lt;/ul&gt;


&lt;hr /&gt;

	&lt;p&gt;Here are two options for syncing the data between development databases in rails:&lt;/p&gt;


	&lt;p&gt;1.  export and import sql&amp;#8212;using a command like this one&amp;#8230;&lt;/p&gt;


	&lt;p&gt;mysql -u root -p atlrug01_development &amp;lt; /path/to/your/project/.../atlrug/atlrug01/trunk/atlrug01/db/development_data.sql&lt;/p&gt;


	&lt;p&gt;2. fixtures + yaml&lt;/p&gt;


	&lt;p&gt;I placed a rake task in lib/tasks that will take whatever is in the db and dump that into a yaml fixture located in test/fixtures.&lt;/p&gt;


	&lt;p&gt;After checking out the latest version of the project, you run rake db:migrate &amp;#38; rake db:fixtures:load to import the yaml to your db.&lt;/p&gt;


	&lt;p&gt;Full instructions here: http://snippets.dzone.com/posts/show/3393&lt;/p&gt;
</description>
      <pubDate>Wed, 26 Sep 2007 19:03:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:25a39c24-f714-415c-958d-e099cbf87778</guid>
      <author>Jessica</author>
      <link>http://www.jessirae.com/blog/articles/2007/09/26/recap-from-ruby-coding-group-8-11-07</link>
      <category>technology</category>
      <category>ruby &amp; rails</category>
      <category>atlanta</category>
      <category>group</category>
      <category>coding</category>
      <category>ruby</category>
      <trackback:ping>http://www.jessirae.com/blog/articles/trackback/12704</trackback:ping>
    </item>
    <item>
      <title>Digg is my guilty pleasure...</title>
      <description>&lt;p&gt;Dear Digg,&lt;/p&gt;


	&lt;p&gt;I just don&amp;#8217;t know how to quit you.  Your front page with its ultimate tutorial lists, &lt;span class="caps"&gt;DIY&lt;/span&gt; hacks, news of new software releases, links to photos of scantily-clad women &amp;#38; oh God, don&amp;#8217;t get me started on diggnation.  Digg, you make me feel&amp;#8230; inadequate.  There&amp;#8217;s always something new to tweak, new software to try, links to bookmark, news stories to, err&amp;#8230;&amp;#8217;research&amp;#8217;.  I can&amp;#8217;t keep up.&lt;/p&gt;


	&lt;p&gt;And who&amp;#8217;s fault is it that I feel inadequate?  Well, I certainly can&amp;#8217;t be the one to blame; you are everywhere!  Even after removing all digg artifacts from my browser, I cannot escape the &amp;#8216;digg this&amp;#8217; buttons &amp;#38; the &amp;#8216;top-on-digg&amp;#8217; widgets slopped on various blogs (I think there was one on this blog at one time). You are in my internetz, destroying my blankspaces &amp;#38; thus, my self-esteem (not that that is terribly hard).&lt;/p&gt;


	&lt;p&gt;I want my simple, pre-digg life back; a life where I did important things, like save kittens &amp;#38; write &amp;#8220;bad&amp;#8221; poetry.&lt;/p&gt;


	&lt;p&gt;Fortunately, my interest in mouseHole has given me reason to spend less time at digg and more time at code.whytheluckystiff.net/mouseHole/ (Google says I&amp;#8217;ve made 6 visits since the middle of this month! &amp;#38; that excludes all of the internet stalking I&amp;#8217;ve been doing at the library).  Now, I know what your&amp;#8217;e thinking&amp;#8230; &amp;#8220;Just write a nice little mouseHole script to removes all of the digg paraphernalia from around the web.&amp;#8221;  And writing such a script would be a smart thing for me to do; my time away from digg would result in more time away from digg.  But alas, I can&amp;#8217;t seem to quit you.  In fact, the &lt;a href="http://www.jessirae.com/blog/files/browserbar.rb"&gt;&lt;strong&gt;mouseHole script that I ended up writing&lt;/strong&gt;&lt;/a&gt; [1] uses your new &lt;span class="caps"&gt;API&lt;/span&gt; to display the number of diggs for the page I am currently viewing, along with (what else) a link to that page on digg.&lt;/p&gt;


	&lt;p&gt;&lt;img src="http://www.jessirae.com/blog/files/browserbar2.png" alt="" /&gt;&lt;/p&gt;


	&lt;p&gt;And you know, the thing is that I suck at writing Ruby.  Hell, I don&amp;#8217;t even know if I&amp;#8217;m a programmer yet.  I have lots to learn and do with Ruby; I don&amp;#8217;t have time for you &amp;#38; your front page and especially not for your comments or video podcasts.  Maybe you could meet me half way and make yourself a paid-members only site?  No?  Then, I am hopelessly yours.  Just promise me that you won&amp;#8217;t take &lt;em&gt;all&lt;/em&gt; of my time and that if you ever leave me for good, that you will return that little piece of my heart that I have given to you.&lt;/p&gt;


	&lt;p&gt;Lovingly, but irritatedly,&lt;/p&gt;


	&lt;p&gt;JessiRae&lt;/p&gt;


	&lt;p&gt;[1] Using this &lt;a href="http://code.google.com/p/digg-ruby/"&gt;Ruby Digg Wrapper&lt;/a&gt;, I added to the browserbar.rb mouseHole script that I &lt;a href="http://www.jessirae.com/blog/articles/2007/04/24/browser-bar-for-mousehole"&gt;created earlier&lt;/a&gt;.  The browserbar script places a list of links at the top of every page; the list forms a bar, similar to the plugins and quick links firefox makes available.  Yeah, sure you are making all of your web surfing known to digg, but that just makes the guilt stronger.  To use the digg &amp;#8220;plugin&amp;#8221;, place the digg.rb wrapper in your {mouseHole_root}/lib/mouseHole directory.&lt;/p&gt;
&lt;hr /&gt;

	&lt;p&gt;&lt;span class="caps"&gt;UPDATE&lt;/span&gt;:&lt;/p&gt;


	&lt;p&gt;Digg is &lt;a href="http://blog.digg.com/?p=74"&gt;sick right now.&lt;/a&gt; :-(&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://criticalmetrics.com/song/3015"&gt;Get well soon.&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 01 May 2007 12:18:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:cb40aec8-ae6a-4403-abfe-12e4d12bdf87</guid>
      <author>Jessica</author>
      <link>http://www.jessirae.com/blog/articles/2007/05/01/digg-is-my-guilty-pleasure</link>
      <category>technology</category>
      <category>ruby &amp; rails</category>
      <category>script</category>
      <category>ruby</category>
      <category>letter</category>
      <category>mouseHole</category>
      <category>digg</category>
      <trackback:ping>http://www.jessirae.com/blog/articles/trackback/12698</trackback:ping>
    </item>
    <item>
      <title>Browser Bar for mouseHole</title>
      <description>Add the following line to any of your user scripts in your &lt;code&gt;.mouseHole&lt;/code&gt; folder to add a browser bar at the top of every page your view with &lt;a href="http://code.whytheluckystiff.net/mouseHole/"&gt;mouseHole;&lt;/a&gt; like this&amp;#8230;
&lt;pre&gt;&lt;code&gt;def rewrite(page)
  document.search('//a[@href]') do |link|
    href = URI(link.attributes['href']) rescue nil
    next unless href &amp;#38;&amp;#38; href.host &amp;#38;&amp;#38; href.host != page.location.host
    link.after '&amp;lt;span style="font-size:8px"&amp;gt;[' + href.host + ']&amp;lt;/span&amp;gt;'
  end

#add the following line 
  document.search("body").prepend("&amp;lt;a href=\"http://del.icio.us/jowensbysandifer\"&amp;gt;" 
  +"&amp;lt;img src=\"http://127.0.0.1:3704/doorway/static/images/delicious.gif\" /&amp;gt;" 
  +"&amp;lt;/a&amp;gt;")
#just include your links to your favorite sites and you can check them... 
#   no matter where you are

end&lt;/code&gt;
&lt;/pre&gt;

	&lt;p&gt;Oh and don&amp;#8217;t forget to place any icons in the static/images folder in your mouseHole application.&lt;/p&gt;


	&lt;p&gt;&lt;del&gt;-Teehe!  And if I knew how to get the url to the script, I could submit sites to del.icio.us (or whatever site I wanted) via javascript&amp;#8230; but that might be dangerous!&lt;/del&gt;-&lt;/p&gt;
&lt;p&gt;&lt;span class="caps"&gt;UPDATE&lt;/span&gt;:&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s how to submit a site to del.icio.us via the browser bar by getting the page url.&lt;/p&gt;


	&lt;p&gt;&lt;em&gt;Step 1&lt;/em&gt;: save the request in proxyhandler.rb as &lt;code&gt;$request&lt;/code&gt;.  A global&amp;#8230; bad I know :-(
I&amp;#8217;m still figuring out how mouseHole works.  Maybe the best thing to do would be to write the value out to the database?&lt;/p&gt;


	&lt;p&gt;&lt;em&gt;Step 2&lt;/em&gt;: add submit html to a user script or create a new one (I call mine &lt;code&gt;browserbar.rb&lt;/code&gt;), like this&amp;#8230;&lt;/p&gt;


&lt;code&gt;&lt;pre&gt;
document.search("body").prepend("&amp;lt;a href=\"http://del.icio.us/jowensbysandifer?url=" 
+ $request.to_s + "&amp;#38;submit=save&amp;#38;jump=no\"&amp;gt;" 
+" &amp;lt;img src=\"http://127.0.0.1:3704/doorway/static/images/delicious.gif\" /&amp;gt;&amp;lt;/a&amp;gt;")
&lt;/pre&gt;&lt;/code&gt;

	&lt;p&gt;&lt;em&gt;Step 3&lt;/em&gt;: Restart mouseHole.&lt;/p&gt;</description>
      <pubDate>Tue, 24 Apr 2007 18:06:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:af7cf2a8-404d-41f1-8737-b6b0f2f53417</guid>
      <author>Jessica</author>
      <link>http://www.jessirae.com/blog/articles/2007/04/24/browser-bar-for-mousehole</link>
      <category>technology</category>
      <category>ruby &amp; rails</category>
      <category>script</category>
      <category>proxy</category>
      <category>browser</category>
      <category>ruby</category>
      <category>mouseHole</category>
      <trackback:ping>http://www.jessirae.com/blog/articles/trackback/12697</trackback:ping>
    </item>
    <item>
      <title>Installing Openssl on Ubuntu</title>
      <description>If you have tried to install Mechanize or any gem that requires openssl on &lt;a href="http://www.amazon.com/gp/product/067232993X?ie=UTF8&amp;#38;tag=classroommovi-20&amp;#38;linkCode=as2&amp;#38;camp=1789&amp;#38;creative=390957&amp;#38;creativeASIN=067232993X"&gt;Ubuntu&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=classroommovi-20&amp;#38;l=as2&amp;#38;o=1&amp;#38;a=067232993X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /&gt;
 or Debian, you may have encountered the following error&amp;#8230;
	&lt;blockquote&gt;
		&lt;p&gt;LoadError: no such file to load&amp;#8212;openssl&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;despite the fact that you have installed openssl with &amp;#8220;gem install libopenssl-ruby&amp;#8221;.&lt;/p&gt;


	&lt;p&gt;Thanks to &lt;a href="http://www.ruby-forum.com/topic/90083"&gt;this thread&lt;/a&gt;, I found out that in order to install openssl, you have to tell ruby how to compile the openssl extension, like this&amp;#8230;&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;cd /ruby-1.8.4/ext/openssl
ruby extconf.rb
make
make install&lt;/code&gt;&lt;/pre&gt;
&lt;center&gt;
&lt;iframe src="http://rcm.amazon.com/e/cm?t=classroommovi-20&amp;#38;o=1&amp;#38;p=26&amp;#38;l=ur1&amp;#38;category=computers_accesories&amp;#38;banner=12CKQQKWNWBNQ20V9X02&amp;#38;f=ifr" width="468" height="60" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"&gt;&lt;/iframe&gt;
&lt;/center&gt;</description>
      <pubDate>Sun, 11 Mar 2007 23:25:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:abdfc916-13cd-4918-bac5-f27f8b2ca23f</guid>
      <author>Jessica</author>
      <link>http://www.jessirae.com/blog/articles/2007/03/11/installing-openssl-on-ubuntu</link>
      <category>ruby &amp; rails</category>
      <category>debian</category>
      <category>ubuntu</category>
      <category>mechanize</category>
      <category>install</category>
      <category>make</category>
      <category>openssl</category>
      <category>ruby</category>
      <trackback:ping>http://www.jessirae.com/blog/articles/trackback/12692</trackback:ping>
    </item>
    <item>
      <title>Some things I learned last week...</title>
      <description>&lt;ol&gt;
	&lt;li&gt;You can&amp;#8217;t &lt;em&gt;really&lt;/em&gt; crop in Inkscape. :-(  But you can change the size of a svg drawing to get some perspective on how large or small the drawing will be after it is exported.&lt;/li&gt;
		&lt;li&gt;Ctrl + Alt + A opens align window in Inkscape.&lt;/li&gt;
		&lt;li&gt;To create &lt;a href="http://www.technomono.com/tutorials/gimp/stylish-text/index.php"&gt;Stylish Text&lt;/a&gt; with &lt;span class="caps"&gt;GIMP&lt;/span&gt; create a new layer, select a portion of the text to make shiny from original layer, copy and paste selection into new layer and change the color of the pasted portion.&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://www.31three.com/projects/tcc/"&gt;This&lt;/a&gt; is how good iterative web design goes.&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://www.ycombinator.com/s2007.html"&gt;Y Combinator&lt;/a&gt; is now accepting applications for summer 2007 funding.  Aahhh, if only I were confident and had a partner.&lt;/li&gt;
		&lt;li&gt;There are a &lt;a href="http://del.icio.us/tag/openidconsumer"&gt;number of sites&lt;/a&gt; that support OpenID.  What prevents someone from claiming your site as their own (other than it being against OpenID&amp;#8217;s policy)?&lt;/li&gt;
		&lt;li&gt;On the Rails deployment learning front, I discovered that &amp;#8216;require_dependency&amp;#8230;&amp;#8217; lines go in environment.rb and not in the controllers themselves (at least for how my hosting company has things set up).&lt;/li&gt;
	&lt;/ol&gt;
</description>
      <pubDate>Mon, 26 Feb 2007 13:51:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:d0672d81-f9de-45d5-bfed-2e40f9781e26</guid>
      <author>Jessica</author>
      <link>http://www.jessirae.com/blog/articles/2007/02/26/some-things-i-learned-last-week</link>
      <category>ruby &amp; rails</category>
      <category>technology</category>
      <category>GIMP</category>
      <category>openid</category>
      <category>design</category>
      <category>graphics</category>
      <category>inkscape</category>
      <trackback:ping>http://www.jessirae.com/blog/articles/trackback/11156</trackback:ping>
    </item>
    <item>
      <title>Grab all of the href links from a Page</title>
      <description>&lt;p&gt;Use &lt;a href="http://www.crummy.com/software/RubyfulSoup/"&gt;Rubyful Soup&lt;/a&gt; to get all of the hyperlinks on a page&amp;#8230;&lt;/p&gt;
	&lt;pre&gt;&lt;code&gt;soup = BeautifulSoup.new(page_content)
result = soup.find_all('a')
result.each { |tag| 
  urls[i] = tag['href']
  if urls[i].to_s.slice(0,1) != 'h' then
          #add first part of url to href link if link is internal
          urls[i] = home + urls[i]
  end
  i = i + 1
}&lt;/code&gt;&lt;/pre&gt;
</description>
      <pubDate>Tue, 06 Feb 2007 11:49:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:8a384738-4285-4d5e-aced-960850432165</guid>
      <author>Jessica</author>
      <link>http://www.jessirae.com/blog/articles/2007/02/06/grab-all-of-the-href-links-from-a-page</link>
      <category>ruby &amp; rails</category>
      <category>technology</category>
      <category>HTML</category>
      <category>soup</category>
      <category>rubyful</category>
      <category>ruby</category>
      <category>processing</category>
      <category>hyperlinks</category>
      <trackback:ping>http://www.jessirae.com/blog/articles/trackback/8754</trackback:ping>
    </item>
    <item>
      <title>Multiline Comments with Ruby</title>
      <description>&lt;p&gt;I didn&amp;#8217;t know that &lt;a href="http://www.amazon.com/gp/product/0672328844?ie=UTF8&amp;#38;tag=classroommovi-20&amp;#38;linkCode=as2&amp;#38;camp=1789&amp;#38;creative=390957&amp;#38;creativeASIN=0672328844"&gt;ruby&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=classroommovi-20&amp;#38;l=as2&amp;#38;o=1&amp;#38;a=0672328844" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /&gt;
 has multiline comments.&lt;/p&gt;


&lt;ul&gt;=begin                                                                                                            

	&lt;p&gt;Name:&lt;/p&gt;


	&lt;p&gt;Last Updated:&lt;/p&gt;


	&lt;p&gt;Location:&lt;/p&gt;


	&lt;p&gt;...&lt;/p&gt;


=end
&lt;/ul&gt;

	&lt;p&gt;Well, at least I &lt;a href="http://www.db75.com/new_blog/?p=158"&gt;wasn&amp;#8217;t the only one&lt;/a&gt;.&lt;/p&gt;
&lt;center&gt;
&lt;script type="text/javascript"&gt;&amp;lt;!&amp;#8212;
amazon_ad_tag = &amp;#8220;classroommovi-20&amp;#8221;; amazon_ad_width = &amp;#8220;728&amp;#8221;; amazon_ad_height = &amp;#8220;90&amp;#8221;; amazon_ad_logo = &amp;#8220;hide&amp;#8221;; amazon_ad_link_target = &amp;#8220;new&amp;#8221;; amazon_ad_price = &amp;#8220;retail&amp;#8221;; amazon_ad_border = &amp;#8220;hide&amp;#8221;; amazon_ad_discount = &amp;#8220;remove&amp;#8221;; amazon_color_link = &amp;#8220;000000&amp;#8221;;//&amp;#8212;&amp;gt;&lt;/script&gt;
&lt;script type="text/javascript" src="http://www.assoc-amazon.com/s/ads.js"&gt;&lt;/script&gt;&lt;/center&gt;</description>
      <pubDate>Thu, 25 Jan 2007 00:00:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:85d2e1d3-52d8-4430-a8ea-f9b4ee0ee0d6</guid>
      <author>Jessica</author>
      <link>http://www.jessirae.com/blog/articles/2007/01/25/multiline-comments-with-ruby</link>
      <category>ruby &amp; rails</category>
      <category>multiline</category>
      <category>ruby</category>
      <category>comments</category>
      <trackback:ping>http://www.jessirae.com/blog/articles/trackback/8064</trackback:ping>
    </item>
    <item>
      <title>Sitemap with Rails</title>
      <description>&lt;p&gt;I finally got around to generating a &lt;a href="http://www.jessirae.com/blog/sitemap.xml"&gt;sitemap&lt;/a&gt; for this site.  I used &lt;a href="http://blog.ipangels.com/blog/_archives/2005/6/18/951620.html"&gt;these instructions&lt;/a&gt; for creating sitemaps in rails.  Very simple and straight forward instructions.&lt;/p&gt;


	&lt;p&gt;Unfortunately, the sitemap created isn&amp;#8217;t valid according to google.  The xml document created has &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; tags instead of &lt;code&gt;&amp;lt;loc&amp;gt;&lt;/code&gt; tags which &lt;a href="https://www.google.com/webmasters/tools/docs/en/protocol.html"&gt;google webmaster&lt;/a&gt; requires.&lt;/p&gt;


	&lt;p&gt;&lt;img src="http://jessirae.com/blog/files/sitemap_errors.png" alt="" /&gt;&lt;/p&gt;


	&lt;p&gt;I am guessing that these errors mean that my sitemap is useless to Google.  Still looking for a solution and will post an update as soon as I find one.&lt;/p&gt;
</description>
      <pubDate>Sat, 20 Jan 2007 18:07:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:0eebc750-875c-4354-9ed2-da7aa39f02d8</guid>
      <author>Jessica</author>
      <link>http://www.jessirae.com/blog/articles/2007/01/20/sitemap-with-rails</link>
      <category>technology</category>
      <category>ruby &amp; rails</category>
      <category>google</category>
      <category>xml</category>
      <category>sitemap</category>
      <category>rails</category>
      <category>ruby</category>
      <trackback:ping>http://www.jessirae.com/blog/articles/trackback/7971</trackback:ping>
    </item>
    <item>
      <title>Install mouseHole on Ubuntu</title>
      <description>&lt;a href="http://code.whytheluckystiff.net/mouseHole/wiki"&gt;mouseHole&lt;/a&gt; is a personal proxy server written in ruby, allowing you to&amp;#8230;
	&lt;blockquote&gt;
		&lt;p&gt;rewrite the web as you view it, altering content and behavior as you browse. Basically, it&amp;#8217;s an alternative to Greasemonkey, which does similar things from inside the Firefox web browser.&lt;/p&gt;
	&lt;/blockquote&gt;


&lt;center&gt;&lt;img src="http://www.jessirae.com/blog/files/doorway2.png" alt="" /&gt;&lt;/center&gt;

	&lt;p&gt;To get mouseHole up and running, first install the required gems (json and sqlite3) if you don&amp;#8217;t already have them installed.  I encountered the following issues while installing those gems&amp;#8230;&lt;/p&gt;


&lt;ul&gt;&lt;strong&gt;Installing json&lt;/strong&gt;

	&lt;p&gt;&lt;a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/8382"&gt;lib/json/editor.rb:977:50: &amp;#8217;:&amp;#8217; not followed by identified or operator&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;The solution is to remove the colon from line 977.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Installing sqlite3&lt;/strong&gt;&lt;/p&gt;


The command for installing the sqlite3 gem is &lt;em&gt;gem install sqlite3-ruby&lt;/em&gt; and not gem install sqlite3.
&lt;/ul&gt;

	&lt;p&gt;Lastly, if you are running Debian or Ubuntu, visit &lt;em&gt;http://localhost:3704&lt;/em&gt; instead of &lt;em&gt;http://127.0.0.1:3704&lt;/em&gt; after starting mouseHole.&lt;/p&gt;
</description>
      <pubDate>Mon, 15 Jan 2007 00:23:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:45c3ef13-699f-4745-8c67-39fea4bf27cf</guid>
      <author>Jessica</author>
      <link>http://www.jessirae.com/blog/articles/2007/01/15/install-mousehole</link>
      <category>technology</category>
      <category>ruby &amp; rails</category>
      <category>ubuntu</category>
      <category>_why</category>
      <category>install</category>
      <category>ruby</category>
      <category>proxy</category>
      <category>mouseHole</category>
      <trackback:ping>http://www.jessirae.com/blog/articles/trackback/7750</trackback:ping>
    </item>
    <item>
      <title>One-liners</title>
      <description>&lt;p&gt;and Frequently used commands I can&amp;#8217;t seem to remember the exact syntax of.  Nothin&amp;#8217; fancy.
&lt;br /&gt;&lt;br /&gt;
&lt;strong&gt;Linux&lt;/strong&gt;
&lt;br /&gt;
&lt;code&gt;find . -name \*.* | xargs grep search_string&lt;/code&gt;&lt;/p&gt;


&lt;ul&gt;&lt;em&gt;navigate to folder you would like to search, enter this command with the search string you would like to find and this command lists all files containing that string&lt;/em&gt;&lt;/ul&gt;

&lt;code&gt;ps x -Ho pid,args&lt;/code&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;em&gt;lists all of the processes running&lt;/em&gt;&lt;/ul&gt;

&lt;code&gt;find / -name gcc&lt;/code&gt;&lt;br /&gt;
&lt;ul&gt;&lt;em&gt;finds all folders named gcc&lt;/em&gt;&lt;/ul&gt;

&lt;code&gt;
sed '/$/,/' /home/Desktop/jessirae &amp;gt; /home/Desktop/jessirae2
&lt;/code&gt;
&lt;ul&gt;&lt;em&gt;places a comma at the end of each line&lt;/em&gt;&lt;/ul&gt;
&lt;code&gt;
paste -sd '\0' - /home/Desktop/jessirae2 &amp;gt; /home/Desktop/jessirae3
&lt;/code&gt;
&lt;ul&gt;&lt;em&gt;The &lt;span class="caps"&gt;NEWLINE&lt;/span&gt; character of every line except the last line in each input file will be replaced with a separator&lt;/em&gt;&lt;/ul&gt;

	&lt;p&gt;&lt;strong&gt;Ruby&lt;/strong&gt;&lt;/p&gt;


&lt;code&gt;"&amp;lt;a href=\"http://www.oldurl.com\"&amp;gt;JessiRae.com&amp;lt;/a&amp;gt;".

gsub(/(http?:\/{2})\S+\.(\w+)(\S+)/,"http://www.jessirae.com/blog/")
&lt;/code&gt;&lt;br /&gt;
&lt;ul&gt;&lt;em&gt;global substitution replaces all instances of some expression in a string with some other string or performs some function on that string&lt;/em&gt;&lt;/ul&gt;

&lt;code&gt;
require 'open-uri'
....
open(url) {

      |page| page_content = page.read()

      page_content

    }

&lt;/code&gt;
&lt;ul&gt;&lt;em&gt;returns html from specified webpage&lt;/em&gt;&lt;/ul&gt;
</description>
      <pubDate>Sat, 06 Jan 2007 22:18:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:36d60141-af63-4c88-b93e-16687b804244</guid>
      <author>Jessica</author>
      <link>http://www.jessirae.com/blog/articles/2007/01/06/one-liners</link>
      <category>technology</category>
      <category>ruby &amp; rails</category>
      <category>gsub</category>
      <category>sed</category>
      <category>find</category>
      <category>paste</category>
      <category>string</category>
      <category>ruby</category>
      <category>commands</category>
      <category>linux</category>
      <trackback:ping>http://www.jessirae.com/blog/articles/trackback/7430</trackback:ping>
    </item>
  </channel>
</rss>

