From dl at userneed.com Wed Jun 1 05:07:07 2005 From: dl at userneed.com (Denis Lamotte) Date: Wed Jun 1 05:00:07 2005 Subject: [Instiki] problem instiki on textdrive Message-ID: <429D7ABB.7060200@userneed.com> i have 2 port open on textdrive. i have 2 configuration for the same server ServerName corporateblogging.shoob.net ProxyPass / http://shoob.net:2508/ ProxyPassReverse / http://shoob.net:2508/ an the standard configuration of the same subdomain created through webmin Virtual Server Handles all requests to the address 70.84.216.2 on port 80. Server Name corporateblogging.shoob.net Map to URL http://shoob.net:2508/ Virtual Server Handles all requests to the address 70.84.216.2 on port 80.Server Name corporateblogging.shoob.net Document Root /home/shoobnet/domains/corporateblogging.shoob.net/web/public when i launch instiki on textrive trough the command line with: --command-- ruby /home/myhome/instiki/instiki.rb --daemon --port 2508 --storage /home/myhome/instiki/storage/ -b 70.84.216.2 --command-- or shoob.net instead of 70.84.216.2 sometimes it work, sometimes not but event when it worked i 've an rails error when trying to submiting the first form create_system. the rails error is just rails error because i'm on production. so a added at the beginning in config/environments/production.rb --production.rb-- begin RAILS_DEFAULT_LOGGER = Logger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}.log") rescue StandardError RAILS_DEFAULT_LOGGER = Logger.new(STDERR) RAILS_DEFAULT_LOGGER.level = Logger::WARN RAILS_DEFAULT_LOGGER.warn( "Rails Error: Unable to access log file. Please ensure that log/#{RAILS_ENV}.log exist s and is chmod 0666. " + "The log level has been raised to WARN and the output directed to STDERR until the pro blem is fixed." ) end [ActiveRecord, ActionController, ActionMailer].each { |mod| mod::Base.logger ||= RAILS_DEF AULT_LOGGER } RAILS_DEFAULT_LOGGER.level = Logger::WARN ..... --production.rb-- is anybody get an idea of what to do, because i've already spend one day trying various alternative but always having this problem Best regards Lamotte Denis From alex at verk.info Wed Jun 1 18:15:20 2005 From: alex at verk.info (Alexey Verkhovsky) Date: Wed Jun 1 18:07:44 2005 Subject: [Instiki] problem instiki on textdrive In-Reply-To: <429D7ABB.7060200@userneed.com> References: <429D7ABB.7060200@userneed.com> Message-ID: Denis Lamotte wrote: > when i launch instiki on textrive trough the command line with: > --command-- > ruby /home/myhome/instiki/instiki.rb --daemon --port 2508 --storage > /home/myhome/instiki/storage/ -b 70.84.216.2 > --command-- > or shoob.net instead of 70.84.216.2 > > sometimes it work, sometimes not but event when it worked i 've an > rails error when trying to submiting the first form create_system. Looks like --daemon option is broken now. Having thought about it for a while, I'm fairly confident that all these problems are caused by starting the Madeleine thread before the fork. If anybody knows how to pass some initialization block to WEBRick (to be executed after the fork), please tell me or send me a patch. I haven't figured it out so far. Madeleine thread in this line: ApplicationController.wiki = WikiService.instance Otherwise, the only solution I see at the moment is to copy/paste the forking code from WEBRick::Daemon#start into script/server, right after options parsing. Ugly, but would do the trick also. By the way, another good topic for a patch (along the same lines of "how do I run Instiki in a production environment") is some option(s) to control logging. Something like --log '/path/to/log' and maybe also --access_log '/path/to/access_log' for people who want access.log to be separated from all the Rails logging. May be also some option(s) to limit the verboseness of the Rails log (by default it's quite talkative). -- Best regards, Alexey Verkhovsky Ruby Forum: http://ruby-forum.org (moderator) RForum: http://rforum.andreas-s.net (co-author) Instiki: http://instiki.org (maintainer) From simon at spiffin.net Sat Jun 4 07:58:01 2005 From: simon at spiffin.net (Simon Finch) Date: Sat Jun 4 07:50:57 2005 Subject: [Instiki] Removing 'published' from published links Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello I'm trying to set up a domain showing only the 'published' parts of my wiki. I'm using a simple ProxyPass to hide the port number (and wiki name) and direct browsers to the published pages: ProxyPass /images ! ProxyPass /javascripts ! ProxyPass /stylesheets ! ProxyPass / http://example.com:2500/wiki/published ProxyPassReverse / http://example.com:2500/wiki/published/ This works fine .. except that wiki-word links to other pages insert an extra '/published' in the URL, so the links don't work. I've tried editing web.rb and removing '/published/' from the when :publish links .. but that seems to have no effect. Could anyone suggest a way of either: - - directing users to the published web initially (then I can remove 'published' from the ProxyPass and the 'published' links will work) OR - - leaving the ProxyPass as it is and hacking instiki so that it removes the '/published/' from wiki-word published links? Thank you Simon -----BEGIN PGP SIGNATURE----- Version: PGP Desktop 9.0.1 (Build 2153) iQA/AwUBQqGXTYGgfQ/L8pLqEQKY/wCggouvAhcLJYmNoZdPTqropjiQLTQAn16B /TGKhCxDUJZPI6hurUALcvMp =aOhN -----END PGP SIGNATURE----- From alex at verk.info Sat Jun 4 16:03:16 2005 From: alex at verk.info (Alexey Verkhovsky) Date: Sat Jun 4 15:55:48 2005 Subject: [Instiki] Removing 'published' from published links In-Reply-To: References: Message-ID: <42A20904.4060609@verk.info> Simon Finch wrote: >I'm trying to set up a domain showing only the 'published' parts of >my wiki. > > Tweaking config/routes.rb should be the easiest way to do it, methinks. Alex From singhk at cs.tcd.ie Wed Jun 8 12:31:08 2005 From: singhk at cs.tcd.ie (Kulpreet Singh) Date: Wed Jun 8 12:26:57 2005 Subject: [Instiki] Moving Contents from one instiki to the other? Message-ID: <200506081731.08809.singhk@cs.tcd.ie> Hi, In my enthusiasm, I started two different instiki's, say instiki-a and instiki-b on two different hosts, Both of the above instiki's are running one "web" each. Say web-1 on instiki-a and web-2 on instiki-b. Realising this is a redundant set up I want to move one of the webs, say web-2 from instiki-b to insiki-a. My first naive urge was to simply copy over the contents from the storage directory and over. Then I started looking at the code, realising I will need to understand atleast a bit about rails before I do anything meaningful. Thus this mail. Is it possible to premanently move contents of a "web" from one instiki to another? The move should alllow the moved web to still act as a wiki. Would appreciate any help. Regards Kulpreet -- Home is where .emacs is From assaph at gmail.com Wed Jun 8 19:29:27 2005 From: assaph at gmail.com (Assaph Mehr) Date: Wed Jun 8 19:25:14 2005 Subject: [Instiki] Moving Contents from one instiki to the other? In-Reply-To: <200506081731.08809.singhk@cs.tcd.ie> References: <200506081731.08809.singhk@cs.tcd.ie> Message-ID: <3ff47be9050608162979fb9530@mail.gmail.com> > Realising this is a redundant set up I want to move one of the webs, say web-2 > from instiki-b to insiki-a. > > My first naive urge was to simply copy over the contents from the storage > directory and over. Then I started looking at the code, realising I will need > to understand atleast a bit about rails before I do anything meaningful. Thus > this mail. > > Is it possible to premanently move contents of a "web" from one instiki to > another? The move should alllow the moved web to still act as a wiki. The storage directory contains snapshots of the data for the whole service. Services are linked to the TCP/IP port number they run on, and each service may contain several wikis. I you just need it on one machine, you can copy over the sub-directory (with the port number) to machine a, name it as a different number, and access it on a different port (e.g. http://instiki-a:2501/ instead of http://instiki-a:2500/ for the original wiki-a). A better solution is to export the web from instiki-b as textile/markdown and import it back into a new web on the instiki-a machine. You should first create a new web (go to 'edit web' and near the bottom there's a link to crate a new web) and then import the exported web into this one. Automatic imports are there, but disables, in Instiki 0.10.x. You either need to hack the source to enable them (look at the list archives on how to do this) or you can do this manually by recreating the pages from their content in the zip file. HTH, Assaph From singhk at cs.tcd.ie Fri Jun 10 11:21:36 2005 From: singhk at cs.tcd.ie (Kulpreet Singh) Date: Fri Jun 10 11:17:24 2005 Subject: [Instiki] Moving Contents from one instiki to the other? In-Reply-To: <3ff47be9050608162979fb9530@mail.gmail.com> References: <200506081731.08809.singhk@cs.tcd.ie> <3ff47be9050608162979fb9530@mail.gmail.com> Message-ID: <200506101621.36983.singhk@cs.tcd.ie> My problem on setting up a multiple web still remains. I do not want to create another instance of the process or bind to more than I port. To achieve the same, when I try and "create a web" from the "Edit Web" page, the interface runs smoothly and comes back to the homepage for the old web. There is no confirmation for the creation of the new web, further I only see the following in the logs - Processing AdminController#create_web (for 127.0.0.1 at Fri Jun 10 15:49:59 BST 2005) Parameters: {"action"=>"create_web", "controller"=>"admin"} Rendering admin/create_web within layouts/default Rendering layouts/default (200 OK) Completed in 0.00993 (100 reqs/sec) | Rendering: 0.00853 (85%) 134.226.32.57 - - [10/Jun/2005:15:49:59 BST] "GET /create_web HTTP/1.0" 200 2942 http://quill.dsg.cs.tcd.ie:2500/kulpreetsstiki/edit_web -> /create_web Processing AdminController#create_web (for 127.0.0.1 at Fri Jun 10 15:50:19 BST 2005) Parameters: {"name"=>"testing", "system_password"=>"hidden", "action"=>"create_web", "controller"=>"admin", "address"=>"testing"} Redirected to http://quill.dsg.cs.tcd.ie:2500/ Completed in 0.00287 (348 reqs/sec) 134.226.32.57 - - [10/Jun/2005:15:50:19 BST] "POST /create_web HTTP/1.0" 302 98 http://quill.dsg.cs.tcd.ie:2500/create_web -> /create_web Processing WikiController#index (for 127.0.0.1 at Fri Jun 10 15:50:19 BST 2005) Parameters: {"action"=>"index", "controller"=>"wiki"} Redirected to http://quill.dsg.cs.tcd.ie:2500/kulpreetsstiki/show/HomePage Completed in 0.00278 (359 reqs/sec) 134.226.32.57 - - [10/Jun/2005:15:50:19 BST] "GET / HTTP/1.0" 302 126 http://quill.dsg.cs.tcd.ie:2500/create_web -> / Processing WikiController#show (for 127.0.0.1 at Fri Jun 10 15:50:19 BST 2005) Parameters: {"action"=>"show", "id"=>"HomePage", "controller"=>"wiki", "web"=>"kulpreetsstiki"} Rendering wiki/page within layouts/default Rendering layouts/default (200 OK) Completed in 0.11924 (8 reqs/sec) | Rendering: 0.11661 (97%) 134.226.32.57 - - [10/Jun/2005:15:50:19 BST] "GET /kulpreetsstiki/show/HomePage HTTP/1.0" 200 5772 http://quill.dsg.cs.tcd.ie:2500/create_web -> /kulpreetsstiki/show/HomePage Then I try and put the "/testing/show/HomePage" in my location bar to see if I can get to the new web. I only get a message saying "no such web". I see the following in the log. Processing WikiController#show (for 127.0.0.1 at Fri Jun 10 15:51:30 BST 2005) Parameters: {"action"=>"show", "id"=>"HomePage", "controller"=>"wiki", "web"=>"testing"} Completed in 0.00094 (1068 reqs/sec) 134.226.32.57 - - [10/Jun/2005:15:51:30 BST] "GET /testing/show/HomePage HTTP/1.0" 404 21 - -> /testing/show/HomePage This makes me ask the question, is the multiple web feature truly supported? Regards Kulpreet On Thursday 09 June 2005 12:29 am, Assaph Mehr wrote: > > Realising this is a redundant set up I want to move one of the webs, say > > web-2 from instiki-b to insiki-a. > > > > My first naive urge was to simply copy over the contents from the storage > > directory and over. Then I started looking at the code, realising I will > > need to understand atleast a bit about rails before I do anything > > meaningful. Thus this mail. > > > > Is it possible to premanently move contents of a "web" from one instiki > > to another? The move should alllow the moved web to still act as a wiki. > > The storage directory contains snapshots of the data for the whole > service. Services are linked to the TCP/IP port number they run on, > and each service may contain several wikis. > > I you just need it on one machine, you can copy over the sub-directory > (with the port number) to machine a, name it as a different number, > and access it on a different port (e.g. http://instiki-a:2501/ instead > of http://instiki-a:2500/ for the original wiki-a). > > A better solution is to export the web from instiki-b as > textile/markdown and import it back into a new web on the instiki-a > machine. > You should first create a new web (go to 'edit web' and near the > bottom there's a link to crate a new web) and then import the exported > web into this one. Automatic imports are there, but disables, in > Instiki 0.10.x. You either need to hack the source to enable them > (look at the list archives on how to do this) or you can do this > manually by recreating the pages from their content in the zip file. > > HTH, > Assaph > > _______________________________________________ > Instiki-users mailing list > Instiki-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users -- Home is where .emacs is From assaph at gmail.com Tue Jun 14 00:40:19 2005 From: assaph at gmail.com (Assaph Mehr) Date: Tue Jun 14 00:35:57 2005 Subject: [Instiki] Moving Contents from one instiki to the other? In-Reply-To: <200506101621.36983.singhk@cs.tcd.ie> References: <200506081731.08809.singhk@cs.tcd.ie> <3ff47be9050608162979fb9530@mail.gmail.com> <200506101621.36983.singhk@cs.tcd.ie> Message-ID: <3ff47be905061321404bd1d97c@mail.gmail.com> As far as I can see, the only thing that will cause the below listed redirection is a failure to authenticate with the system password. Since I can create new webs just fine, I have to ask: are you sure you entered the right password? This should be the password to the whole system, the one you set when you first created the service, not the edit password for the web. HTH, Assaph On 6/11/05, Kulpreet Singh wrote: > Processing AdminController#create_web (for 127.0.0.1 at Fri Jun 10 15:50:19 > BST 2005) > Parameters: {"name"=>"testing", "system_password"=>"hidden", > "action"=>"create_web", "controller"=>"admin", "address"=>"testing"} > Redirected to http://quill.dsg.cs.tcd.ie:2500/ > Completed in 0.00287 (348 reqs/sec) > 134.226.32.57 - - [10/Jun/2005:15:50:19 BST] "POST /create_web HTTP/1.0" 302 > 98 > http://quill.dsg.cs.tcd.ie:2500/create_web -> /create_web > > > Processing WikiController#index (for 127.0.0.1 at Fri Jun 10 15:50:19 BST > 2005) > Parameters: {"action"=>"index", "controller"=>"wiki"} > Redirected to http://quill.dsg.cs.tcd.ie:2500/kulpreetsstiki/show/HomePage > Completed in 0.00278 (359 reqs/sec) > 134.226.32.57 - - [10/Jun/2005:15:50:19 BST] "GET / HTTP/1.0" 302 126 > http://quill.dsg.cs.tcd.ie:2500/create_web -> / From rbrigleb at gmail.com Thu Jun 23 20:58:38 2005 From: rbrigleb at gmail.com (Raymond Brigleb) Date: Thu Jun 23 20:53:58 2005 Subject: [Instiki] AJAX feature idea Message-ID: Just an idea... what if Instiki had a feature whereby each document could have a slider at the top, showing all of the revision numbers in a timeline... as you drag the slider, you see your changes. Kind of an AJAX diff, with a bit of that Yahoo search thing thrown in. It could have an icon to toggle the feature - when it was turned on, it would automatically load all revisions for each page and could toggle between them (via the slider). When it was turned off (express mode?), only the current (or current and previous) revisions were loaded. I'm not offering to write this, as I can barely code myself out of a paper bag yet. Just wanted to share an idea. I dub this feature "Instiki Fingers." -raymond From derek at derekgulbranson.com Fri Jun 24 19:10:14 2005 From: derek at derekgulbranson.com (Derek Gulbranson) Date: Fri Jun 24 19:05:41 2005 Subject: [Instiki] How to escape HTML Message-ID: <9B8E6106-BE8F-452E-8B1C-BEA0D2E5A4F6@derekgulbranson.com> Is there a way to escape HTML using Textile? I want to copy and paste a bunch of html but Textile inserts a bunch of line breaks and shows the comments. I want to render the html, not show the code. Seems there must be a simple thing I'm missing, google wasn't that productive. -Derek Gulbranson From assaph at gmail.com Sun Jun 26 04:08:23 2005 From: assaph at gmail.com (Assaph Mehr) Date: Sun Jun 26 04:03:43 2005 Subject: [Instiki] How to escape HTML In-Reply-To: <9B8E6106-BE8F-452E-8B1C-BEA0D2E5A4F6@derekgulbranson.com> References: <9B8E6106-BE8F-452E-8B1C-BEA0D2E5A4F6@derekgulbranson.com> Message-ID: <3ff47be90506260108259b7a14@mail.gmail.com> Hi Derek, On 6/25/05, Derek Gulbranson wrote: > Is there a way to escape HTML using Textile? I want to copy and paste > a bunch of html but Textile inserts a bunch of line breaks and shows > the comments. I want to render the html, not show the code. Seems > there must be a simple thing I'm missing, google wasn't that productive. Not sure exactly what the problem is. Normally HTML is processed as usual, without textile intervention. (This behaviour can be overriden if you want to disallow raw html in pages by turning on the 'safe mode' option in the web setup page). Anyway, If you want RedCloth to stay out of a particular section, just wrap it with and tags. HTH, Assaph