Re: [AOLSERVER] wiki very slow

2008-03-18 Thread John Buckman

FYI, the new wiki server is timing out on me:
Safari could not open the page “http://dev.aolserver.com/wiki/”  
because the server stopped responding.


whereas  the old location (thanks) loads quickly:


http://panoptic.com/wiki/aolserver



And sorry to be a complainer, but the 7 second page load times you  
improved it to sound awfully long as well (but you're right, at least  
useable).


-john


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] requests question

2008-03-18 Thread Fenton, Brian
Hi Xavier,

I know this is 9 years old, but it should still be of some use in familiarising 
yourself with some of AOLserver's functionality. It certainly was for me and I 
think much of it is still true.
http://philip.greenspun.com/wtr/aolserver/introduction-1.html


best wishes
Brian


-Original Message-
From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On Behalf Of Xavier 
Bourguignon
Sent: 15 March 2008 22:08
To: AOLSERVER@LISTSERV.AOL.COM
Subject: Re: [AOLSERVER] requests question

Excellent, thank you, that was exactly what I was looking for.

On 15/03/2008, Michael A. Cleverly <[EMAIL PROTECTED]> wrote:
> On Sat, Mar 15, 2008 at 12:03 PM, Xavier Bourguignon
>  <[EMAIL PROTECTED]> wrote:
>  >  I want to call a procedure everytime a request starts and another proc
>  >  everytime a request ends.
>  >  Is this possible? If so how or where do I do that?
>
>
> The command you are seeking is ns_register_filter (see
>  http://aolserver.com/docs/devel/tcl/api/general.html#ns_register_filter).
>   Use either a preauth filter to call a procedure at the beginning of
>  the request and a trace filter to call one at the end of the request.
>
>  Michael
>
>
>
>  --
>  AOLserver - http://www.aolserver.com/
>
>  To Remove yourself from this list, simply send an email to <[EMAIL 
> PROTECTED]> with the
>  body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
> field of your email blank.
>


--
Xavier Bourguignon


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] wiki very slow

2008-03-18 Thread Dossy Shiobara
On 2008.03.18, John Buckman <[EMAIL PROTECTED]> wrote:
> FYI, the new wiki server is timing out on me:
>> Safari could not open the page “http://dev.aolserver.com/wiki/”  
>> because the server stopped responding.
>
> whereas  the old location (thanks) loads quickly:
>
>> http://panoptic.com/wiki/aolserver
>>
>
> And sorry to be a complainer, but the 7 second page load times you  
> improved it to sound awfully long as well (but you're right, at least  
> useable).

It _looks_ like the main HTML is generated and served in under 1.0
seconds, according to the comment at the bottom of the HTML:

>> 

So, the remaining 5-6 seconds is just page rendering time, loading the
various CSS and JS embedded objects, etc.

I'll try and see if there's any way to improve that, but I suspect there
won't be without a lot of overhauling of Mediawiki ... :-(

-- Dossy

-- 
Dossy Shiobara  | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] requests question

2008-03-18 Thread Xavier Bourguignon
Thank you Brian

On 18/03/2008, Fenton, Brian <[EMAIL PROTECTED]> wrote:
> Hi Xavier,
>
>  I know this is 9 years old, but it should still be of some use in 
> familiarising yourself with some of AOLserver's functionality. It certainly 
> was for me and I think much of it is still true.
>  http://philip.greenspun.com/wtr/aolserver/introduction-1.html
>
>
>  best wishes
>
> Brian
>
>
>
>  -Original Message-
>  From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On Behalf Of Xavier 
> Bourguignon
>  Sent: 15 March 2008 22:08
>  To: AOLSERVER@LISTSERV.AOL.COM
>  Subject: Re: [AOLSERVER] requests question
>
>  Excellent, thank you, that was exactly what I was looking for.
>
>  On 15/03/2008, Michael A. Cleverly <[EMAIL PROTECTED]> wrote:
>  > On Sat, Mar 15, 2008 at 12:03 PM, Xavier Bourguignon
>  >  <[EMAIL PROTECTED]> wrote:
>  >  >  I want to call a procedure everytime a request starts and another proc
>  >  >  everytime a request ends.
>  >  >  Is this possible? If so how or where do I do that?
>  >
>  >
>  > The command you are seeking is ns_register_filter (see
>  >  http://aolserver.com/docs/devel/tcl/api/general.html#ns_register_filter).
>  >   Use either a preauth filter to call a procedure at the beginning of
>  >  the request and a trace filter to call one at the end of the request.
>  >
>  >  Michael
>  >
>  >
>  >
>  >  --
>  >  AOLserver - http://www.aolserver.com/
>  >
>  >  To Remove yourself from this list, simply send an email to <[EMAIL 
> PROTECTED]> with the
>  >  body of "SIGNOFF AOLSERVER" in the email message. You can leave the 
> Subject: field of your email blank.
>  >
>
>
>  --
>  Xavier Bourguignon
>
>
>  --
>  AOLserver - http://www.aolserver.com/
>
>  To Remove yourself from this list, simply send an email to <[EMAIL 
> PROTECTED]> with the
>  body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
> field of your email blank.
>
>
>  --
>  AOLserver - http://www.aolserver.com/
>
>  To Remove yourself from this list, simply send an email to <[EMAIL 
> PROTECTED]> with the
>  body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
> field of your email blank.
>


-- 
Xavier Bourguignon


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] how do I

2008-03-18 Thread Xavier Bourguignon
Hi everybody.

You must be sick of seeing my questions on this mailing list, but I
promise that I would not be asking them if I could find some good
documentation that made sense. I am not saying the existing doc is
rubbish, on the contrary, it is good, but I guess it is lacking in
content for the time being (that is my personal opinion). Anyway, here
is another of my silly questions :)

I have a URL mapped to a Tcl procedure like this: ns_register_proc
POST /login login

in my adp page called index.adp I have this:

username: 
password: 



In one of my Tcl file, I have a procedure called login. This procedure
gets called once the submit button is clicked. This procedure gets the
username and password from the form and processese them to check that
the username/password combination exists in the database.
If it does then I want to show the menu.adp page, if not, I want to
show the index.adp page again.
My problem is that I do not know what the call is to show either of
these adp pages from my Tcl procedure. I don't want to use ns_return
200 "text/html" "some_html_here" as I want to keep html separated from
Tcl as much as possible. I just want to be able to have a call that
says for example: playFile "menu.adp". Any Tcl variables set in the
procedure would be used in the menu.adp file if needed.

Thank you
-- 
Xavier Bourguignon


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] how do I

2008-03-18 Thread Don Baccus

On Mar 18, 2008, at 11:25 AM, Xavier Bourguignon wrote:



I have a URL mapped to a Tcl procedure like this: ns_register_proc
POST /login login

in my adp page called index.adp I have this:

   username: 
   password: 
   


In one of my Tcl file, I have a procedure called login. This procedure
gets called once the submit button is clicked. This procedure gets the
username and password from the form and processese them to check that
the username/password combination exists in the database.
If it does then I want to show the menu.adp page, if not, I want to
show the index.adp page again.


Look here: http://panoptic.com/wiki/aolserver/Ns_returnredirect

ns_returnredirect foo

tells the browser to redirect to the URL foo


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] how do I

2008-03-18 Thread Darren Ferguson
You could use ns_returnredirect if they do not exist redirect back to 
the login page, if they do exist then do not do the redirect.


Respectfully,
Darren Ferguson

Xavier Bourguignon wrote:

Hi everybody.

You must be sick of seeing my questions on this mailing list, but I
promise that I would not be asking them if I could find some good
documentation that made sense. I am not saying the existing doc is
rubbish, on the contrary, it is good, but I guess it is lacking in
content for the time being (that is my personal opinion). Anyway, here
is another of my silly questions :)

I have a URL mapped to a Tcl procedure like this: ns_register_proc
POST /login login

in my adp page called index.adp I have this:

username: 
password: 



In one of my Tcl file, I have a procedure called login. This procedure
gets called once the submit button is clicked. This procedure gets the
username and password from the form and processese them to check that
the username/password combination exists in the database.
If it does then I want to show the menu.adp page, if not, I want to
show the index.adp page again.
My problem is that I do not know what the call is to show either of
these adp pages from my Tcl procedure. I don't want to use ns_return
200 "text/html" "some_html_here" as I want to keep html separated from
Tcl as much as possible. I just want to be able to have a call that
says for example: playFile "menu.adp". Any Tcl variables set in the
procedure would be used in the menu.adp file if needed.

Thank you
  



--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] how do I

2008-03-18 Thread Xavier Bourguignon
Ok, but what do I do if they do exist? How do I say to aolserver that
I want to serve the menu.adp file?

Thank you

On 18/03/2008, Don Baccus <[EMAIL PROTECTED]> wrote:
> On Mar 18, 2008, at 11:25 AM, Xavier Bourguignon wrote:
>  >
>  >
>  > I have a URL mapped to a Tcl procedure like this: ns_register_proc
>  > POST /login login
>  >
>  > in my adp page called index.adp I have this:
>  > 
>  >username: 
>  >password: 
>  >
>  > 
>  >
>  > In one of my Tcl file, I have a procedure called login. This procedure
>  > gets called once the submit button is clicked. This procedure gets the
>  > username and password from the form and processese them to check that
>  > the username/password combination exists in the database.
>  > If it does then I want to show the menu.adp page, if not, I want to
>  > show the index.adp page again.
>
>
> Look here: http://panoptic.com/wiki/aolserver/Ns_returnredirect
>
>  ns_returnredirect foo
>
>  tells the browser to redirect to the URL foo
>
>
>
>  --
>  AOLserver - http://www.aolserver.com/
>
>  To Remove yourself from this list, simply send an email to <[EMAIL 
> PROTECTED]> with the
>  body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
> field of your email blank.
>


-- 
Xavier Bourguignon


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] how do I

2008-03-18 Thread Xavier Bourguignon
Thanks Don and Darren, I will look at the info.
I just find it strange that I have to REDIRECT to another url, to me
redirect means to go away from the current context to go to another,
usually another domain, but i may be wrong and my understanding needs
to be revised.

Thanks

On 18/03/2008, Xavier Bourguignon <[EMAIL PROTECTED]> wrote:
> Ok, but what do I do if they do exist? How do I say to aolserver that
>  I want to serve the menu.adp file?
>
>  Thank you
>
>
>  On 18/03/2008, Don Baccus <[EMAIL PROTECTED]> wrote:
>  > On Mar 18, 2008, at 11:25 AM, Xavier Bourguignon wrote:
>  >  >
>  >  >
>  >  > I have a URL mapped to a Tcl procedure like this: ns_register_proc
>  >  > POST /login login
>  >  >
>  >  > in my adp page called index.adp I have this:
>  >  > 
>  >  >username: 
>  >  >password: 
>  >  >
>  >  > 
>  >  >
>  >  > In one of my Tcl file, I have a procedure called login. This procedure
>  >  > gets called once the submit button is clicked. This procedure gets the
>  >  > username and password from the form and processese them to check that
>  >  > the username/password combination exists in the database.
>  >  > If it does then I want to show the menu.adp page, if not, I want to
>  >  > show the index.adp page again.
>  >
>  >
>  > Look here: http://panoptic.com/wiki/aolserver/Ns_returnredirect
>  >
>  >  ns_returnredirect foo
>  >
>  >  tells the browser to redirect to the URL foo
>  >
>  >
>  >
>  >  --
>  >  AOLserver - http://www.aolserver.com/
>  >
>  >  To Remove yourself from this list, simply send an email to <[EMAIL 
> PROTECTED]> with the
>  >  body of "SIGNOFF AOLSERVER" in the email message. You can leave the 
> Subject: field of your email blank.
>  >
>
>
>
> --
>
> Xavier Bourguignon
>


-- 
Xavier Bourguignon


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] how do I

2008-03-18 Thread Don Baccus

On Mar 18, 2008, at 12:26 PM, Xavier Bourguignon wrote:


Ok, but what do I do if they do exist? How do I say to aolserver that
I want to serve the menu.adp file?



If { ...login ok ... } {
ns_returnredirect someplace-interesting
}

Maybe I'm missing something ...


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] how do I

2008-03-18 Thread Don Baccus

On Mar 18, 2008, at 12:39 PM, Xavier Bourguignon wrote:


Thanks Don and Darren, I will look at the info.
I just find it strange that I have to REDIRECT to another url, to me
redirect means to go away from the current context to go to another,
usually another domain, but i may be wrong and my understanding needs
to be revised.



You're just telling the browser to go to some URL


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] how do I

2008-03-18 Thread Xavier Bourguignon
I see, ok, i'll get on with it.

Cheers everyone

On 18/03/2008, Don Baccus <[EMAIL PROTECTED]> wrote:
> On Mar 18, 2008, at 12:39 PM, Xavier Bourguignon wrote:
>
>  > Thanks Don and Darren, I will look at the info.
>  > I just find it strange that I have to REDIRECT to another url, to me
>  > redirect means to go away from the current context to go to another,
>  > usually another domain, but i may be wrong and my understanding needs
>  > to be revised.
>
>
>
> You're just telling the browser to go to some URL
>
>
>
>  --
>  AOLserver - http://www.aolserver.com/
>
>  To Remove yourself from this list, simply send an email to <[EMAIL 
> PROTECTED]> with the
>  body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
> field of your email blank.
>


-- 
Xavier Bourguignon


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


[AOLSERVER] Google Summer of Code

2008-03-18 Thread Matthew M. Burke
I just wanted to let everyone know that Tcl/Tk has been accepted as a 
Google Summer of Code mentoring organization for 2008.


I encourage you to post any AOLserver projects to our ideas page: 
http://wiki.tcl.tk/20832.  Also, if you know/work with students (or 
know/work with someone who knows/works with students), please encourage 
them to take a look at our projects.


Thanks,

Matt


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.