From infobox-news at gmx.net Thu Jan 4 11:51:03 2007 From: infobox-news at gmx.net (JS) Date: Thu, 04 Jan 2007 17:51:03 +0100 Subject: mouseHole =?UTF-8?B?d29uwrR0IHN0YXJ0IG9uIGRlYmlhbg==?= Message-ID: <459D3077.6040301@gmx.net> Hi list, i?ve got a problem to start mouseHole on a debian system. The installation was succesfull without any problems, but now when i will start with ruby bin/mouseHole the script hang up. I show you my last rows: /var/mouseHole/lib/mouseHole/proxyhandler.rb:4: warning: already initialized constant REQUEST_PATH SQL (0.004737) SELECT name FROM sqlite_master WHERE type = 'table' SQL (0.002179) SELECT name FROM sqlite_master WHERE type = 'table' MouseHole::Models::SchemaInfo Load (0.002037) SELECT * FROM mousehole_schema_infos LIMIT 1 SQL (0.003622) PRAGMA table_info(mousehole_schema_infos) can anyone help. what can i do, or where i have to look more in deep. 2all a happy new year and thx a lot for any idea josu From why at hobix.com Sat Jan 6 02:24:37 2007 From: why at hobix.com (why the lucky stiff) Date: Sat, 6 Jan 2007 01:24:37 -0600 Subject: + running junebug under mh2 Message-ID: <20070106072437.GG25653@beekeeper.hobix.com> MouseHole2 is built on Camping, so you can put Camping apps right in the ~/.mouseHole/ directory and they'll startup. Camping's blog example, Tepee, etc. Junebug is written in Camping and follows Camping's rules, but is distributed as a Gem. So I looked into what it would take to run it under MouseHole 2. Yeah, these five lines: require 'junebug/config' JUNEBUG_ROOT = ENV['JUNEBUG_ROOT'] = File.join(Junebug::Config.rootdir, "deploy") require(Junebug::Config.script) def Junebug.config; {'startpage' => 'Home_Page'}; end Junebug.create To install Junebug: gem install junebug. Then put the above code in a new file ~/.mouseHole/junebug.app.rb. And start up mouseHole and it'll be mounted at http://localhost:3704/junebug. _why From why at hobix.com Sat Jan 6 02:26:23 2007 From: why at hobix.com (why the lucky stiff) Date: Sat, 6 Jan 2007 01:26:23 -0600 Subject: mouseHole =?iso-8859-1?Q?won=B4?= =?iso-8859-1?Q?t?= start on debian In-Reply-To: <459D3077.6040301@gmx.net> References: <459D3077.6040301@gmx.net> Message-ID: <20070106072623.GH25653@beekeeper.hobix.com> On Thu, Jan 04, 2007 at 05:51:03PM +0100, JS wrote: > i?ve got a problem to start mouseHole on a debian system. The > installation was succesfull without any problems, but now when i will > start with ruby bin/mouseHole the script hang up. > > I show you my last rows: > > /var/mouseHole/lib/mouseHole/proxyhandler.rb:4: warning: already > initialized constant REQUEST_PATH > SQL (0.004737) SELECT name FROM sqlite_master WHERE type = 'table' > SQL (0.002179) SELECT name FROM sqlite_master WHERE type = 'table' > MouseHole::Models::SchemaInfo Load (0.002037) SELECT * FROM > mousehole_schema_infos LIMIT 1 > SQL (0.003622) PRAGMA table_info(mousehole_schema_infos) > > can anyone help. what can i do, or where i have to look more in deep. Actually, you did it fine. MouseHole is running. Go to http://localhost:3704/ in your browser. You can get some other options by running: mouseHole --help _why From infobox-news at gmx.net Sat Jan 6 04:42:27 2007 From: infobox-news at gmx.net (JS) Date: Sat, 06 Jan 2007 10:42:27 +0100 Subject: mouseHole =?ISO-8859-1?Q?won=B4t_start_on_debian?= In-Reply-To: <20070106072623.GH25653@beekeeper.hobix.com> References: <459D3077.6040301@gmx.net> <20070106072623.GH25653@beekeeper.hobix.com> Message-ID: <459F6F03.4070009@gmx.net> Thx to u2, i didn?t see the wood for the trees. It was my fault, and a little problem with the ip-adress. So now it?s running. But there is another problem with the proxylike.user.rb Can i run the script with MouseHole 2 beta? It will not properly work, when i try to install via the auto-detect or via the remote-server where i deposit the script. With the MouseHole 1 there was no problem to use the script, it works fine. Actually i deposit the script into the $HOME/.mouseHole Folder and under the Your installed apps it is listed. But always when I try to get http://mouseHoleProxy:37004/http://www.google.com mouseHole redirects me to http://mouseHoleProxy:37004/doorway are there some more trees? Sorry, but i hope u can help me one more time. I will try to reach, that proxylike is working with mouseHole 2, so that i can pass requests via the mouseHoleScript directly with no proxy settings configured in my browser. Thanks a lot and have a nice weekend josu why the lucky stiff schrieb: > On Thu, Jan 04, 2007 at 05:51:03PM +0100, JS wrote: > >> i?ve got a problem to start mouseHole on a debian system. The >> installation was succesfull without any problems, but now when i will >> start with ruby bin/mouseHole the script hang up. >> >> I show you my last rows: >> >> /var/mouseHole/lib/mouseHole/proxyhandler.rb:4: warning: already >> initialized constant REQUEST_PATH >> SQL (0.004737) SELECT name FROM sqlite_master WHERE type = 'table' >> SQL (0.002179) SELECT name FROM sqlite_master WHERE type = 'table' >> MouseHole::Models::SchemaInfo Load (0.002037) SELECT * FROM >> mousehole_schema_infos LIMIT 1 >> SQL (0.003622) PRAGMA table_info(mousehole_schema_infos) >> >> can anyone help. what can i do, or where i have to look more in deep. >> > > Actually, you did it fine. MouseHole is running. Go to http://localhost:3704/ > in your browser. You can get some other options by running: > > mouseHole --help > > _why > > From why at hobix.com Sat Jan 6 11:00:06 2007 From: why at hobix.com (why the lucky stiff) Date: Sat, 6 Jan 2007 10:00:06 -0600 Subject: mouseHole =?iso-8859-1?Q?won=B4?= =?iso-8859-1?Q?t?= start on debian In-Reply-To: <459F6F03.4070009@gmx.net> References: <459D3077.6040301@gmx.net> <20070106072623.GH25653@beekeeper.hobix.com> <459F6F03.4070009@gmx.net> Message-ID: <20070106160005.GJ25653@beekeeper.hobix.com> On Sat, Jan 06, 2007 at 10:42:27AM +0100, JS wrote: > But there is another problem with the proxylike.user.rb > Can i run the script with MouseHole 2 beta? Ohh, good question. So, MH2 syntax is much different from MH1. I've put a bunch of working MH2 scripts (including ProxyLike) here in this directory: _why From why at hobix.com Thu Jan 11 12:00:00 2007 From: why at hobix.com (why the lucky stiff) Date: Thu, 11 Jan 2007 11:00:00 -0600 Subject: ! mouseHole 1.9.87 Message-ID: <20070111165959.GJ91817@beekeeper.hobix.com> I've release a gem for r87 of MouseHole. I'm not ready to call it version 2, yet. * This release works with Hoodwink.d. You can get the script by logging in to http://hoodwink.d/. It's in the top menu. Save the script to ~/.mouseHole/. * Mounts can now be added quickly to scripts. An example would be a script that keeps track of blogs you visit. If it notices an Atom feed, it'll store a link to that blog. You might then create a page at http://mh/blogs/list, which shows all of the blogs visited so far. To add that page: class Blogs < MouseHole::App mount "blogs/list" do |page| page.status = 200 page.body = "...list of blogs..." end end * To do fun stuff with XmlHttpRequest, you might want to mount on websites out in the wild. For example, Hoodwink'd has a 'hoodwinkd/preview' mount which allows a user to quickly preview their post. class Hoodwinkd < MouseHole::App mount "hoodwinkd/preview", :on => :all do |page| ... end end This will now be mounted on all websites. So, if the user is on del.icio.us, they can hit the URL http://del.icio.us/TOKEN/hoodwinkd/preview. (Where TOKEN is the app's 32-character unique token.) * The `mount_path` method can be use to construct the unique URL. >> mount_path("hoodwinkd/preview") => "/TOKEN/hoodwinkd/preview" I won't go into the doorblock changes yet, since they are still really rough and I need some finer examples. But, if you want to see what it can do, try out the improved Junebug script[1]. _why [1] http://whytheluckystiff.net/mouseHole/junebug.app.rb From why at hobix.com Thu Jan 11 14:57:52 2007 From: why at hobix.com (why the lucky stiff) Date: Thu, 11 Jan 2007 13:57:52 -0600 Subject: ! mouseHole 1.9.92 Message-ID: <20070111195752.GL91817@beekeeper.hobix.com> Like so: gem install mouseHole --source http://code.whytheluckystiff.net * Updated to include static bits (images, css) so that the gem actually works. _why From infobox-news at gmx.net Fri Jan 12 13:39:27 2007 From: infobox-news at gmx.net (JS) Date: Fri, 12 Jan 2007 19:39:27 +0100 Subject: problems running a user script on mh2 on debian Message-ID: <45A7D5DF.1020304@gmx.net> Hi list, i?ve got another problem with mh2. I think mousehole never reaches my user-script, because the innerhtml never changes and under the doorway/apps is a failure like Camping Problem! MouseHole::Controllers::RApps.GET ArgumentError comparison of String with nil failed: .... i have read the archive mailinglist but found nothing. after this will work, i?ve got another question. how can i make it, that my script will load without being in the .mouseHole folder and named like your-script.user.rb thank?s a lot and have a nice weekend josu From infobox-news at gmx.net Tue Jan 16 10:15:23 2007 From: infobox-news at gmx.net (JS) Date: Tue, 16 Jan 2007 16:15:23 +0100 Subject: mh2 and proxylike.user.rb Message-ID: <45ACEC0B.6060008@gmx.net> Hi mh2-List, i?ve got a problem with the mh2 and the proxylike script. They won?t work together. the proxylike.user.rb is in the ~.mouseHole Folder. mh2 located the file and under doorway\apps mh2 noticed me "This app is broken". If I change the single line in proxylike.user.rb mount "http:" do |page| to mount "proxylike" do |page| the mh2 notice under apps is "Run pages through the proxy..." my problem is, that the mh2 script now don?t know were the proxylike script is. Can anyone tell me how to inport and run the proxlike.user.rb into mh2? Thx a lot josu From why at hobix.com Wed Jan 17 17:55:39 2007 From: why at hobix.com (why the lucky stiff) Date: Wed, 17 Jan 2007 16:55:39 -0600 Subject: mh2 and proxylike.user.rb In-Reply-To: <45ACEC0B.6060008@gmx.net> References: <45ACEC0B.6060008@gmx.net> Message-ID: <20070117225539.GA59541@beekeeper.hobix.com> On Tue, Jan 16, 2007 at 04:15:23PM +0100, JS wrote: > i?ve got a problem with the mh2 and the proxylike script. They won?t > work together. Oops, you're right. Try mh2 from svn. I've also updated ProxyLike: Sory bout that. _why From infobox-news at gmx.net Thu Jan 18 05:44:48 2007 From: infobox-news at gmx.net (JS) Date: Thu, 18 Jan 2007 11:44:48 +0100 Subject: mh2 and proxylike.user.rb In-Reply-To: <20070117225539.GA59541@beekeeper.hobix.com> References: <45ACEC0B.6060008@gmx.net> <20070117225539.GA59541@beekeeper.hobix.com> Message-ID: <45AF4FA0.5080101@gmx.net> sorry, but there is always a problem with proxylike.user.rb and mh2. mh2 always said broken app. i modified the app so that i knew were the problem is, but i don?t know how to fix it. i load the proxylike.user.rb directly from your given path into my .mousehole folder. when comment out the mount block, mh2 said installed app proxylike and when i comment in these 2 lines as given: mount "http:" do |page| # mH = "http://#{ page.headers['host'] }/" # uri = URI(page.location.to_s[1..-1]) # page.document = # uri.open(:proxy => mH) do |f| # base_uri = uri.dup # base_uri.path = '/' # base_href f.read, base_uri, mH # end end mh2 said borken app. and list the following error message: /var/www/_test/mouseHole2/lib/mouseHole/app.rb:227:in `mount': cannot mount ProxyLike app on path `http:'. Try something under `/ProxyLike'. * from /var/www/_test/mouseHole2/lib/mouseHole/app.rb:106:in `eval' * from (eval):16 the eval mehtod in app.rb notice that there is a error, when mh2 will mount the script. in app.rb in the mount mehtod is a line which couldn?t be right app.rb: #this if clause always will be execute the else part, because path is different to name if path.to_s =~ %ri (@default_handlers ||= []) << [:mount, path.to_s.gsub(%r!^/!, ''), MouseHole::MountHandler.new(b), opts] else raise MountError, "cannot mount #{name} app on path `#{path}'. Try something under `/#{name}'." end is it the correct proxylike.user.rb or have i getting somthing wrong. thank you for your help grettz josu why the lucky stiff schrieb: > On Tue, Jan 16, 2007 at 04:15:23PM +0100, JS wrote: > >> i?ve got a problem with the mh2 and the proxylike script. They won?t >> work together. >> > > Oops, you're right. Try mh2 from svn. I've also updated ProxyLike: > > > Sory bout that. > > _why > > From why at hobix.com Thu Jan 18 11:43:46 2007 From: why at hobix.com (why the lucky stiff) Date: Thu, 18 Jan 2007 10:43:46 -0600 Subject: mh2 and proxylike.user.rb In-Reply-To: <45AF4FA0.5080101@gmx.net> References: <45ACEC0B.6060008@gmx.net> <20070117225539.GA59541@beekeeper.hobix.com> <45AF4FA0.5080101@gmx.net> Message-ID: <20070118164346.GH59541@beekeeper.hobix.com> On Thu, Jan 18, 2007 at 11:44:48AM +0100, JS wrote: > mh2 said borken app. and list the following error message: > /var/www/_test/mouseHole2/lib/mouseHole/app.rb:227:in `mount': cannot > mount ProxyLike app on path `http:'. Try something under `/ProxyLike'. > > * from /var/www/_test/mouseHole2/lib/mouseHole/app.rb:106:in `eval' > * from (eval):16 This should be fixed in Subversion. $ svn co https://code.whytheluckystiff.net/svn/mouseHole/trunk mh2 $ cd mh2 $ bin/mouseHole I'll be releasing a new gem soon. _why From lwu.two at gmail.com Sat Jan 27 06:19:33 2007 From: lwu.two at gmail.com (Leslie Wu) Date: Sat, 27 Jan 2007 03:19:33 -0800 Subject: mousehole proxylike.rb Message-ID: <78ec96990701270319u434639f4qdc601884f7e02cde@mail.gmail.com> FYI, running MH2 on my MacBook Pro, I've found that installing http://whytheluckystiff.net/mouseHole/proxylike.user.rb and trying to use the proxylike behavior doesn't work if I specify http://localhost:3704/http://www.boingboing.net/ It seems I have to say http://127.0.0.1:3704/http://www.boingboing.net/ for whatever reason. Also, should these scripts in svn: http://code.whytheluckystiff.net/mouseHole/browser/trunk/samples?rev=100 be updated to these? http://whytheluckystiff.net/mouseHole/ ~L -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mousehole-scripters/attachments/20070127/9eb49219/attachment.html From why at hobix.com Sun Jan 28 02:14:56 2007 From: why at hobix.com (why the lucky stiff) Date: Sun, 28 Jan 2007 01:14:56 -0600 Subject: mousehole proxylike.rb In-Reply-To: <78ec96990701270319u434639f4qdc601884f7e02cde@mail.gmail.com> References: <78ec96990701270319u434639f4qdc601884f7e02cde@mail.gmail.com> Message-ID: <20070128071456.GF21066@beekeeper.hobix.com> On Sat, Jan 27, 2007 at 03:19:33AM -0800, Leslie Wu wrote: > FYI, running MH2 on my MacBook Pro, I've found that installing > http://whytheluckystiff.net/mouseHole/proxylike.user.rb and trying to use > the proxylike behavior doesn't work if I specify > http://localhost:3704/http://www.boingboing.net/ So, does the doorway come up when you hit http://localhost:3704/ then? > Also, should these scripts in svn: > http://code.whytheluckystiff.net/mouseHole/browser/trunk/samples?rev=100 > > be updated to these? > http://whytheluckystiff.net/mouseHole/ So true! _why From lwu.two at gmail.com Mon Jan 29 03:48:14 2007 From: lwu.two at gmail.com (Leslie Wu) Date: Mon, 29 Jan 2007 00:48:14 -0800 Subject: mousehole proxylike.rb In-Reply-To: <20070128071456.GF21066@beekeeper.hobix.com> References: <78ec96990701270319u434639f4qdc601884f7e02cde@mail.gmail.com> <20070128071456.GF21066@beekeeper.hobix.com> Message-ID: <78ec96990701290048u2aa4b190r560c52814812b130@mail.gmail.com> On 1/27/07, why the lucky stiff wrote: > > > the proxylike behavior doesn't work if I specify > > http://localhost:3704/http://www.boingboing.net/ > > So, does the doorway come up when you hit http://localhost:3704/ > then? Yep, the doorway comes up, it's just that in trying to use proxylike on my MacBook Pro, http://localhost:3704/http://www.boingboing.net/ # ERROR: Connection refused - connect(2) http://127.0.0.1:3704/http://www.boingboing.net/ # No problem Dunno why. > be updated to these? > > http://whytheluckystiff.net/mouseHole/ > > So true! I put up a little MouseHoleTwo wiki node and patched mh2 to support Mongrel daemonize. To make proxylike pass other headers through, I had to add this kind of code: class Array def to_h self.inject({}) do |hash, value| hash[value.first] = value.last ; hash end end end # ... options = {:proxy => mH}.merge(page.headers.to_h) options.delete "host" page.document = uri.open(options) do |f| So far, I can login to Yahoo but GMail and Flickr don't yet seem to work, as I haven't figured out if there's an easy way to let cookies pass through the mousehole... Is someone gobbling up my cookies?! ~L -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mousehole-scripters/attachments/20070129/4d73b5df/attachment.html From xavier-list at rhnh.net Mon Jan 29 04:18:08 2007 From: xavier-list at rhnh.net (Xavier Shay) Date: Mon, 29 Jan 2007 20:18:08 +1100 Subject: mousehole proxylike.rb In-Reply-To: <78ec96990701290048u2aa4b190r560c52814812b130@mail.gmail.com> References: <78ec96990701270319u434639f4qdc601884f7e02cde@mail.gmail.com> <20070128071456.GF21066@beekeeper.hobix.com> <78ec96990701290048u2aa4b190r560c52814812b130@mail.gmail.com> Message-ID: <1170062288.5442.40.camel@puma> > So far, I can login to Yahoo but GMail and Flickr don't yet seem to > work, as I haven't figured out if there's an easy way to let cookies > pass through the mousehole... Is someone gobbling up my cookies?! At my last job I tried patching up mousehole to pass through another proxy which involved passing on certain headers, but couldn't get it working. I found the LiveHeaders (or something) extension for firefox really handy in testing. Unfortunately I don't have the code anymore, but I'd be interested in anything you get going. I had the added burden of having to go through an NTLM proxy, which is not really fun at all. Xavier From lwu.two at gmail.com Mon Jan 29 16:57:22 2007 From: lwu.two at gmail.com (Leslie Wu) Date: Mon, 29 Jan 2007 13:57:22 -0800 Subject: mousehole proxylike.rb In-Reply-To: <1170062288.5442.40.camel@puma> References: <78ec96990701270319u434639f4qdc601884f7e02cde@mail.gmail.com> <20070128071456.GF21066@beekeeper.hobix.com> <78ec96990701290048u2aa4b190r560c52814812b130@mail.gmail.com> <1170062288.5442.40.camel@puma> Message-ID: <78ec96990701291357o3b99f17boa50947b919be8e87@mail.gmail.com> On 1/29/07, Xavier Shay wrote: > > At my last job I tried patching up mousehole to pass through another > proxy which involved passing on certain headers, but couldn't get it > working. I found the LiveHeaders (or something) extension for firefox > really handy in testing. Unfortunately I don't have the code anymore, > but I'd be interested in anything you get going. I had the added burden > of having to go through an NTLM proxy, which is not really fun at all. My setup now: OS X, mouseHole (hpricot, camping, and ruby 1.8.5) from latest svn trunk, mongrel 1.0.1, and Firefox 2.0.0.1 (with the switchproxy tool to test more quickly). I have LiveHeaders, but have been visiting http://www.ericgiguere.com/tools/http-header-viewer.html through mH2 to see what headers get sent through. Setting the proxy to http://127.0.0.1:3704 and visiting Eric's header viewer page seems to suggest that headers such as cookie and user-agent are getting passed through the mh2ole. When I SwitchProxy to None, the same headers seem to show up. Does that help? It's at least one data point on what modern mh2 can do :) ~L -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mousehole-scripters/attachments/20070129/e7c0c09c/attachment.html