From jenspetr at gmail.com Tue Dec 5 02:22:01 2006 From: jenspetr at gmail.com (Jens-Petr Mikhailovich) Date: Mon, 4 Dec 2006 23:22:01 -0800 Subject: the mouse's trunk Message-ID: I just sync'ed my mouseHole tree and found that I am unable to get the samples working. The doorway leading to the apps blurted the following after trying each of the samples individually: - ProxyLike ArgumentError: (eval):1:in `method_missing': wrong number of arguments (1 for 2) - google ArgumentError: (eval):5:in `method_missing': wrong number of arguments (1 for 2) My camping/hpricot/markaby/mongrel/activerecord/sqlite3 gems or installs via svn are all up to date. Might someone have a suggestion? - jens -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mousehole-scripters/attachments/20061204/4d2094bb/attachment-0001.html From cboyce at sonic.net Thu Dec 7 00:44:52 2006 From: cboyce at sonic.net (Chris Boyce) Date: Wed, 6 Dec 2006 21:44:52 -0800 Subject: New mouseHole Message-ID: Howdy, I just came across mouseHole earlier this evening and am very interested in using it, but I'm not sure of the right forum to post my questions. I'm sure the author doesn't want to provide individual email support, but I didn't see any sort of public forum on the wiki for mouseHole. Where is the best place to ask questions? -Chris From xavier-list at rhnh.net Thu Dec 7 01:16:12 2006 From: xavier-list at rhnh.net (Xavier Shay) Date: Thu, 07 Dec 2006 17:16:12 +1100 Subject: New mouseHole In-Reply-To: References: Message-ID: <1165472172.5161.30.camel@puma> > Where is the best place to ask questions? Here I would venture. At the very least you have an audience of 1 :) Xavier From cboyce at sonic.net Thu Dec 7 15:59:52 2006 From: cboyce at sonic.net (Chris Boyce) Date: Thu, 7 Dec 2006 12:59:52 -0800 Subject: New mouseHole In-Reply-To: References: Message-ID: Well, I shall ask away then! I have got it installed and working, but I can't seem to get user scripts to work correctly. The documentation leads me to believe simply clicking on a user script will load it, though I have looked through the user scripts listed in the wiki and no new scripts appear on the mouseHole 'apps' page. I've also tried manually saving them in ~/.mouseHole/userScripts/ , but to no avail. I tried looking in the source code for where it references the userScripts directly but was unable to find it. I'm using the version checked out from the trunk, though now that I look at it it does say it's version 2 beta. Is this a known problem, or am I perhaps doing something incorrectly? Thanks for your time, -Chris On 12/6/06, Chris Boyce wrote: > Howdy, > I just came across mouseHole earlier this evening and am very > interested in using it, but I'm not sure of the right forum to post my > questions. I'm sure the author doesn't want to provide individual > email support, but I didn't see any sort of public forum on the wiki > for mouseHole. Where is the best place to ask questions? > > -Chris > From xavier-list at rhnh.net Thu Dec 7 18:30:51 2006 From: xavier-list at rhnh.net (Xavier Shay) Date: Fri, 08 Dec 2006 10:30:51 +1100 Subject: New mouseHole In-Reply-To: References: Message-ID: <1165534251.5078.6.camel@puma> > I have got it installed and working, but I can't seem to get user > scripts to work correctly. Things changed a bit in v2. IIRC, you the script needs to be named the same as the filename, and also you don't need the ".user" bit. I don't think this is documented anywhere... Have a look at http://rhnh.svnrepository.com/svn/public/ruby/pgpirate/ It works with v2, so hopefully you'll be able to adapt it to your needs. The patch doesn't affect any of the loading stuff, so you shouldn't have to apply it. In fact, it shouldn't be necessary with the latest hpricot updates, I just haven't gotten around to fixing my code :S If you still have trouble let me know and I'll actually dig into my code. Good luck, Xavier From whateley at gmail.com Thu Dec 7 21:00:17 2006 From: whateley at gmail.com (Brendan Taylor) Date: Thu, 7 Dec 2006 19:00:17 -0700 Subject: New mouseHole In-Reply-To: <1165534251.5078.6.camel@puma> References: <1165534251.5078.6.camel@puma> Message-ID: <20061208020017.GA4107@nyarlathotep.ed.shawcable.net> On Fri, Dec 08, 2006 at 10:30:51AM +1100, Xavier Shay wrote: > > I have got it installed and working, but I can't seem to get user > > scripts to work correctly. > Things changed a bit in v2. > IIRC, you the script needs to be named the same as the filename, and > also you don't need the ".user" bit. Yay, I can use MouseHole again! I thought I was the only one having this problem. Renaming the file gets me halfway there, but it looks like the latest SVN has changed the "name" attribute-setter-thing to "title". Here's a really simple script that works (it needs to be saved as ~/.mouseHole/dosomework.rb ): class DoSomeWork < MouseHole::App title "Do some work!" namespace 'http://necronomicorp.com/projects/mousehole' description 'Blocks time sinks.' version "0.1" + url("http://slashdot.org/*") + url("http://*.slashdot.org/*") + url("http://reddit.com/*") + url("http://*.reddit.com/*") def rewrite(page) document.innerHTML = "shouldn't you be doing something more useful?" end end -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/mousehole-scripters/attachments/20061207/422dbb97/attachment.bin From cboyce at sonic.net Thu Dec 7 21:47:02 2006 From: cboyce at sonic.net (Chris Boyce) Date: Thu, 7 Dec 2006 18:47:02 -0800 Subject: New mouseHole In-Reply-To: <20061208020017.GA4107@nyarlathotep.ed.shawcable.net> References: <1165534251.5078.6.camel@puma> <20061208020017.GA4107@nyarlathotep.ed.shawcable.net> Message-ID: Sweet!! Your test script works for me. Now I can unleash the wrath of my mediocre (just learning) Ruby skills on my web browsing! On 12/7/06, Brendan Taylor wrote: > On Fri, Dec 08, 2006 at 10:30:51AM +1100, Xavier Shay wrote: > > > I have got it installed and working, but I can't seem to get user > > > scripts to work correctly. > > Things changed a bit in v2. > > IIRC, you the script needs to be named the same as the filename, and > > also you don't need the ".user" bit. > > Yay, I can use MouseHole again! > I thought I was the only one having this problem. > > Renaming the file gets me halfway there, but it looks like the latest > SVN has changed the "name" attribute-setter-thing to "title". > > Here's a really simple script that works (it needs to be saved as > ~/.mouseHole/dosomework.rb ): > > class DoSomeWork < MouseHole::App > title "Do some work!" > namespace 'http://necronomicorp.com/projects/mousehole' > description 'Blocks time sinks.' > version "0.1" > + url("http://slashdot.org/*") > + url("http://*.slashdot.org/*") > + url("http://reddit.com/*") > + url("http://*.reddit.com/*") > > def rewrite(page) > document.innerHTML = "shouldn't you be doing something more useful?" > end > end > > > _______________________________________________ > Mousehole-scripters mailing list > Mousehole-scripters at rubyforge.org > http://rubyforge.org/mailman/listinfo/mousehole-scripters > > > From jenspetr at gmail.com Thu Dec 7 23:55:46 2006 From: jenspetr at gmail.com (Jens-Petr Mikhailovich) Date: Thu, 7 Dec 2006 20:55:46 -0800 Subject: New mouseHole In-Reply-To: <20061208020017.GA4107@nyarlathotep.ed.shawcable.net> References: <1165534251.5078.6.camel@puma> <20061208020017.GA4107@nyarlathotep.ed.shawcable.net> Message-ID: On 12/7/06, Brendan Taylor wrote: > > > > [?] > > class DoSomeWork < MouseHole::App > title "Do some work!" > namespace 'http://necronomicorp.com/projects/mousehole' > description 'Blocks time sinks.' > version "0.1" > + url("http://slashdot.org/*") > + url("http://*.slashdot.org/*") > + url("http://reddit.com/* ") > + url("http://*.reddit.com/*") > > def rewrite(page) > document.innerHTML = "shouldn't you be doing something more useful?" > end > end I gave this user script a try and it doesn't seem to work for me. I can load the doorway on port 3704 (which is a little strange given the documentation's repeated mention of 37004) and the script shows, but when i change my proxy settings to use mouseHole, it loads blank pages for all domains and spews the following message: Thu Dec 07 20:38:10 -0800 2006: ERROR: Hostname not known: slashdot.org The first line output seems a little troubling as well: /Users/petr/blackhole/mouseHole/trunk/lib/mouseHole/proxyhandler.rb:4: warning: already initialized constant REQUEST_PATH Might anyone have a suggestion? I am using the bloody nosed version of just about everything, mouseHole and hpricot from svn HEAD and the latest gems of camping/markaby/mongrel/activerecord/sqlite-ruby (1.5.177, 0.5 , 0.3.18, 1.14.4.5618 and 1.1.0.1 respectively) all on Mac OS X 10.4.8 of course. Here is the ouput from a verbose run: % ruby bin/mouseHole -v /Users/petr/blackhole/mouseHole/trunk/lib/mouseHole/proxyhandler.rb:4: warning: already initialized constant REQUEST_PATH SQL (0.000682) SELECT name FROM sqlite_master WHERE type = 'table' SQL (0.000213) SELECT name FROM sqlite_master WHERE type = 'table' -- create_table("mousehole_schema_infos") SQL (0.007451 ) CREATE TABLE mousehole_schema_infos ("id" INTEGER PRIMARY KEY NOT NULL, "version" float) -> 0.0082s MouseHole::Models::SchemaInfo Load (0.001352) SELECT * FROM mousehole_schema_infos LIMIT 1 SQL (0.000576) PRAGMA table_info(mousehole_schema_infos) == MouseHole::Models::CreateMouseHole: migrating ============================== -- create_table(:mousehole_apps) SQL (0.008126) CREATE TABLE mousehole_apps ("id" INTEGER PRIMARY KEY NOT NULL NOT NULL, "script" varchar(255), "uri" varchar(255), "active" integer DEFAULT 1 NOT NULL, "matches" text, "created_at" datetime) -> 0.0095s == MouseHole::Models::CreateMouseHole: migrated (0.0097s) ===================== SQL (0.002940) INSERT INTO mousehole_schema_infos ("version") VALUES(1.0 ) SQL (0.001322) PRAGMA table_info(mousehole_apps) MouseHole::Models::App Load (0.000314) SELECT * FROM mousehole_apps WHERE (mousehole_apps."script" = 'dosomework.rb' ) LIMIT 1 SQL (0.003525) INSERT INTO mousehole_apps ("script", "matches", "uri", "active", "created_at") VALUES(' dosomework.rb', NULL, NULL, 1, '2006-12-07 20:37:00') Thu Dec 07 20:38:10 -0800 2006: ERROR: Hostname not known: slashdot.org Thu Dec 07 20:38:20 -0800 2006: ERROR: Hostname not known: reddit.com Thu Dec 07 20:38:20 -0800 2006: ERROR: Hostname not known: reddit.com Thu Dec 07 20:38:25 -0800 2006: ERROR: Hostname not known: reddit.com Thu Dec 07 20:38:26 -0800 2006: ERROR: Hostname not known: reddit.com best regards, - jens -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mousehole-scripters/attachments/20061207/ef5b1058/attachment-0001.html From cboyce at sonic.net Thu Dec 7 23:58:37 2006 From: cboyce at sonic.net (Chris Boyce) Date: Thu, 7 Dec 2006 20:58:37 -0800 Subject: SSL support Message-ID: So I've been tinkering around with using the proxy now, and am starting to get a feel for doing basic things like rewriting web pages. I seem to be having problems with SSL though. When I try to go to a site with https:, I just get a page that says "NOT FOUND", and it doesn't seem to hit my rewrite script at all. Scanning the source code, I see references to https, so I wonder if this is another case of me doing something incorrectly, or is SSL not supported at the moment? Thanks again for your help, this software is awsome! -Chris From daniels at pronto.com.au Fri Dec 8 00:53:21 2006 From: daniels at pronto.com.au (Daniel Sheppard) Date: Fri, 8 Dec 2006 16:53:21 +1100 Subject: SSL support In-Reply-To: Message-ID: > pages. I seem to be having problems with SSL though. When I try to go > to a site with https:, I just get a page that says "NOT FOUND", and it Well, since SSL is specifically designed to prevent anything messing with or reading the messages in transit, it's pretty difficult to make mousehole do anything with it. You should set your browser to bypass mousehole for https. From xavier-list at rhnh.net Fri Dec 8 01:21:33 2006 From: xavier-list at rhnh.net (Xavier Shay) Date: Fri, 08 Dec 2006 17:21:33 +1100 Subject: SSL support In-Reply-To: References: Message-ID: <1165558893.5078.14.camel@puma> > or is SSL not supported at the > moment? Sent to the list on 8 Nov 2006: > currently mouseHole doesn't support SSL connection. We would need to > implement a ruby SOCKS server for that I think. And I'm not even sure > that the connection wouldn't be crypted between the browser and the > remote server. Cheers, Xavier From jenspetr at gmail.com Tue Dec 12 14:42:07 2006 From: jenspetr at gmail.com (Jens-Petr Mikhailovich) Date: Tue, 12 Dec 2006 11:42:07 -0800 Subject: New mouseHole In-Reply-To: References: <1165534251.5078.6.camel@puma> <20061208020017.GA4107@nyarlathotep.ed.shawcable.net> Message-ID: On 12/7/06, Jens-Petr Mikhailovich wrote: > > [?] > Might anyone have a suggestion? I am using the bloody nosed version of just > about everything, mouseHole and hpricot from svn HEAD and the latest gems of > camping/markaby/mongrel/activerecord/sqlite-ruby (1.5.177, 0.5 , 0.3.18, > 1.14.4.5618 and 1.1.0.1 respectively) all on Mac OS X 10.4.8 of course. > Might anyone be running mousehole from svn HEAD on mac os x? I am beginning to think that perhaps it just is not compatible presently. - jens -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mousehole-scripters/attachments/20061212/1d6b92b6/attachment.html From jenspetr at gmail.com Mon Dec 18 01:13:03 2006 From: jenspetr at gmail.com (Jens-Petr Mikhailovich) Date: Sun, 17 Dec 2006 22:13:03 -0800 Subject: New mouseHole In-Reply-To: References: <1165534251.5078.6.camel@puma> <20061208020017.GA4107@nyarlathotep.ed.shawcable.net> Message-ID: On 12/12/06, Jens-Petr Mikhailovich wrote: > > On 12/7/06, Jens-Petr Mikhailovich wrote: > > > > [?] > > > Might anyone have a suggestion? I am using the bloody nosed version of > > just about everything, mouseHole and hpricot from svn HEAD and the latest > > gems of camping/markaby/mongrel/activerecord/sqlite-ruby ( 1.5.177, 0.5, > > 0.3.18, 1.14.4.5618 and 1.1.0.1 respectively) all on Mac OS X 10.4.8 of > > course. > > > > Might anyone be running mousehole from svn HEAD on mac os x? I am > beginning to think that perhaps it just is not compatible presently. > > - jens I finally figured it out! Apparently the hoodwink.d DNS server and mouseHole are star crossed lovers of sorts. As a last ditch effort, I ran mouseHole in debug mode and watched the multitude of resolution errors float on by. It got me thinking that I should try and revert my DNS settings - I removed the hoodwink.d DNS server from my system settings and voila, mouseHole worked. Is this a known issue and I just did a poor job reading the documentation? - jens -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mousehole-scripters/attachments/20061217/b8df0b36/attachment.html