<?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: Tag script</title>
    <link>http://www.jessirae.com/blog/articles/tag/script</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <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 -0500</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 -0500</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>
  </channel>
</rss>
