Browser Bar for mouseHole

Posted by Jessica Tue, 24 Apr 2007 23:06:00 GMT

Add the following line to any of your user scripts in your .mouseHole folder to add a browser bar at the top of every page your view with mouseHole; like this…
def rewrite(page)
  document.search('//a[@href]') do |link|
    href = URI(link.attributes['href']) rescue nil
    next unless href && href.host && href.host != page.location.host
    link.after '<span style="font-size:8px">[' + href.host + ']</span>'
  end

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

end

Oh and don’t forget to place any icons in the static/images folder in your mouseHole application.

-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… but that might be dangerous!-

UPDATE:

Here’s how to submit a site to del.icio.us via the browser bar by getting the page url.

Step 1: save the request in proxyhandler.rb as $request. A global… bad I know :-( I’m still figuring out how mouseHole works. Maybe the best thing to do would be to write the value out to the database?

Step 2: add submit html to a user script or create a new one (I call mine browserbar.rb), like this…

document.search("body").prepend("<a href=\"http://del.icio.us/jowensbysandifer?url=" 
+ $request.to_s + "&submit=save&jump=no\">" 
+" <img src=\"http://127.0.0.1:3704/doorway/static/images/delicious.gif\" /></a>")

Step 3: Restart mouseHole.

Review of Ubuntu Hacks

Posted by Jessica Mon, 09 Apr 2007 05:24:00 GMT

Why read Ubuntu Hacks?

  1. If Ubuntu is the entry-level Linux distro, then Ubuntu Hacks is the book that helps the entry-level user take advantage of the great software and tools Linux has to offer.
  2. I would have saved myself a lot of effort if I owned this book on the day that I install Ubuntu on my machine.
  3. In many ways, Ubuntu Hacks is an introduction to the software available to all Linux users. So, if you are looking for some “real Ubuntu hacks”, you may be disappointed, but that is ok; that just means that the title of the book is a bit of a misnomer, but it doesn’t necessarily mean that the books isn’t valuable.
  4. Some subjects (like kernel building) aren’t really examined with much detail and refer users to seek help elsewhere.
  5. The command-line based instructions are great for those new to using the terminal. There are quite a few hacks that provide visual instructions only, but Ubuntu Hacks had far less GUI-based instructions than the other Ubuntu books I perused at the bookstore.
  6. If you aren’t a techie, but you want to explore Linux and its myriad of software options, Ubuntu Hacks is for you.
  7. A lot of the hacks in Ubuntu Hacks you can figure out on your own or find on the internet.
  8. Things that I would like to know about Linux/Ubuntu that weren’t addressed in Ubuntu Hacks:
    • File system organization… whys and best practices (i.e. Hack #101 – Get a good visual picture of the linux file system in your head)
    • A brief history of Linux, Debian and Ubuntu (i.e. Hack #102 – How to tell friends & family about Ubuntu in a non-freakish way)

designed by jowensbysandifer