Re: metacard for CGI

2002-03-06 Thread andu

Alex Shaw wrote:

> Hi Andu
> 
> I've just started to develop private projects using cmc.exe & a combination
> of ASP so I would definately appreciate some documentation. What I have
> working so far (on win xp pro & iis) is working fine but I haven't tried
> anything tricky yet.. like calling a mc stack that accesses a valentina db

It was not my intention to start a How-To Metacard/Rev for cgi scripting
but rather to document the actual usage of the engine for this purpose
and get a feel for what others who do cgi work with MC think about it.
My motivation was selfish: if I promote MC to my clients for their web
applications I need to have answers for a lot of questions.
That being said, I would definitely enjoy sharing and learning on this
subject, my only reservation, as in the past, is that there isn't much
to talk about about cgi scripting which would be any different from
general MC scripting. 
As it was mentioned earlier, a trick to avoid the hardship of debugging
is to do the script in a stack (you can use the debugger and error
messages) and just replace the handler when you copy it to the cgi
script. 
Calling a stack from a script is done with "start using theStack" and
using "the result" from the handler called in the stack but I didn't try
using externals. I did however use other programs (database) with the
shell() function.

In terms of recommendations I think Linux is the best platform for this
kind of stuff followed by OS X/Darwin and NT family. MacOS up to 9.x is
just for wasting time with appleEvents. I also recommend using, for
example Sendmail or equivalent and shell() for email as opposed to MC's
sockets in combination with "wait for messages" for reasons of
reliability not to mention that with a line of code you are done.
Maybe I should do a How-To, after all...;-) Time is a problem.

> 
> regards
> alex
> 
> ___
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard

-- 

Regards, Andu Novac
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard for CGI

2002-03-06 Thread Terry Judd

>Terry Judd wrote:
>>
>>  >
>>  >>
>>  >>  And debugging is a pain in the butt.  :)
>>  >
>>  >Yes, we should get at least a line/word number in an error message but
>>  >since the number of Metacard/CGI users is 4 so far, I don't expect we
>>  >can dare ask for features.
>>
>>  I think you might find that there are a lot more than 4 if some of
>>  these issues were sorted out up front.
>
>I'm all for it, speak up your mind and... who knows.

Well the main issue for me is good documentation and a diverse 
selection of working examples. I need to be able to get up to speed 
(and be productive) quickly and both of these would help no end.

Cheers,

Terry...

-- 
___
Dr Terry Judd

Lecturer in Instructional Design / Multimedia Developer
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Email: [EMAIL PROTECTED]
Phone: 03 9344 0187
Fax: 03 9344 4998
___
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard for CGI

2002-03-06 Thread Alex Shaw


>Date: Mon, 04 Mar 2002 12:28:39 -0500
>From: andu <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: metacard for CGI
>Reply-To: [EMAIL PROTECTED]
>
>I am putting together some documentation regarding the use of
>metatalk/rev for CGI scripts and I wanted to ask the list for some
>feedback:
>
>-how many of you are currently using metatalk/rev for CGI
>-the context(tasks performed) it is being used as well as the
>environment (production/tests/platform)
>-the approximate amount of traffic handled by the CGIs
>-your location (if this is sensitive in any way, please send it to me
>off the list, I only need this info for statistics)
>-if any of you are using other script languages for CGI (PHP, ASP, etc.)
>I'd appreciate some feedback as to how does metatalk/rev compare in
>terms of productivity/performance with the other language(s)
>-the main disadvantage you see in using metatalk/rev for CGI scripting
>*besides some difficulty with debugging*

Hi Andu

I've just started to develop private projects using cmc.exe & a combination 
of ASP so I would definately appreciate some documentation. What I have 
working so far (on win xp pro & iis) is working fine but I haven't tried 
anything tricky yet.. like calling a mc stack that accesses a valentina db

regards
alex

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard for CGI

2002-03-06 Thread andu

Mark Luetzelschwab wrote:
> 
> >Andu wrote:
> -the main disadvantage you see in using metatalk/rev for CGI scripting
> *besides some difficulty with debugging*
> 
> As someone who took a look at MC and decided to go with ASP..here are
> some things that I would really miss if I went back to MC (in the
> order of importance). Everything that I mention can (is) be done
> using cmc.exe - but its a pain.
> 
> 1. Request.Form / Request.QueryString
> These allow me to grab the form data by name and any items in
> the query string.  No parsing necessary.
> 
> Possible Syntax:
> http://www.metacard.com?userid=10101
> Request_QueryString("user_id") would return 10101
> 
> Similarly, if you posted the data instead of putting
> it in the URL..
> Request_Form("user_id") would return 10101
> 
> If these got separated far, far away from the read from stdin, you
> could write a debugger far, far easier by simply simulating the input
> and output.
> 
> 2. Server Variables
> Is it a POST, GET, who from..
> 
> Possible Syntax:
> Request_ServerVariables("REQUEST_METHOD")
> 
> 3. Session Variables
> Not really necessary if MC is acting as a server to other MC
> clients, but very necessary for any kind of web applications that
> have more than one page -- using hidden form elements is the other
> option, but a pain.  Session variables stay alive between pages - but
> are only available to the person who started the session.
> 
> Possible Syntax:
> Session_Set("variable_name",10101)
> put Session_Get("variable_name") would return 10101
> 
> 4. ODBC
> Sure, MC can be a decent database - but its really nice to be
> able to do the database connections.  All I really need is a
> connection, a way to execute queries, and a table of the outputs.
> Simple enough ;)
> 
> 4. XML support, though I'm still whacking away at an xml_lib, so that
> might be a non-issue.
> 
> Hope this helps.

Thanks.

All good points with few exceptions. Not to forget that ASP, PHP were
created exclusively for web use and being able to run as modules to the
server gives them some of the advantages you mention above. I'm more
familiar with PHP which indeed has a whole bunch of built in functions
that would require, at best, many lines of code in Metacard to achieve
the same results.
As usual, the key to adding more functionality (and popularity) to
Metacard cgis is to have a significant number of people request those
features which make ASP and PHP the better choice besides the language
itself. Most important is probably a Metacard module for the main web
servers.

> 
> -ml
> 
> --
> ___
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard

-- 

Regards, Andu Novac
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard for CGI

2002-03-06 Thread Mark Luetzelschwab

>Andu wrote:
-the main disadvantage you see in using metatalk/rev for CGI scripting
*besides some difficulty with debugging*

As someone who took a look at MC and decided to go with ASP..here are 
some things that I would really miss if I went back to MC (in the 
order of importance). Everything that I mention can (is) be done 
using cmc.exe - but its a pain.

1. Request.Form / Request.QueryString
These allow me to grab the form data by name and any items in 
the query string.  No parsing necessary.

Possible Syntax:
http://www.metacard.com?userid=10101
Request_QueryString("user_id") would return 10101

Similarly, if you posted the data instead of putting 
it in the URL..
Request_Form("user_id") would return 10101

If these got separated far, far away from the read from stdin, you 
could write a debugger far, far easier by simply simulating the input 
and output.


2. Server Variables
Is it a POST, GET, who from..

Possible Syntax:
Request_ServerVariables("REQUEST_METHOD")


3. Session Variables
Not really necessary if MC is acting as a server to other MC 
clients, but very necessary for any kind of web applications that 
have more than one page -- using hidden form elements is the other 
option, but a pain.  Session variables stay alive between pages - but 
are only available to the person who started the session.

Possible Syntax:
Session_Set("variable_name",10101)
put Session_Get("variable_name") would return 10101


4. ODBC
Sure, MC can be a decent database - but its really nice to be 
able to do the database connections.  All I really need is a 
connection, a way to execute queries, and a table of the outputs. 
Simple enough ;)


4. XML support, though I'm still whacking away at an xml_lib, so that 
might be a non-issue.

Hope this helps.

-ml

-- 
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard for CGI

2002-03-06 Thread Robert Brenstein

>  Subject: metacard for CGI
>  Reply-To: [EMAIL PROTECTED]
>
>  I am putting together some documentation regarding the use of
>  metatalk/rev for CGI scripts and I wanted to ask the list for some
>  feedback:
>
>  -how many of you are currently using metatalk/rev for CGI

me for one...

>  -the context(tasks performed) it is being used as well as the
>  environment (production/tests/platform)

I run MC in combination with Valentina database engine under Mac OS 
9.2 to provide access to a few online (private) databases and 
programmatically produce web pages (for public use) from some of 
them. Databases contain course information and personnel data.

>  -the approximate amount of traffic handled by the CGIs

Relatively small and comes in peaks when there are update deadlines. 
At present, there are less than 50 potential users but this will 
change next semester when class and exam signups is added.

>  -your location (if this is sensitive in any way, please send it to me
>  off the list, I only need this info for statistics)

University of Postdam with some 12000 students but I am serving only 
one of the departments.

>  -if any of you are using other script languages for CGI (PHP, ASP, etc.)
>  I'd appreciate some feedback as to how does metatalk/rev compare in
>  terms of productivity/performance with the other language(s)

I used to script CGIs in AppleScript and looked into RB as 
alternative to MC. MC is my choice for the task as I need flexibility 
in handling text, easy access to the database, and being able to 
produce quickly decent interfaces for my own use. AS is too slow and 
inflexible. RB would be faster but it falls behind on other points.

>  -the main disadvantage you see in using metatalk/rev for CGI scripting
>  *besides some difficulty with debugging*

Debugging CGIs in any language is a pain. That is a nature of that 
software. I think the biggest disadvantage of MC is in performance 
limitations, but that comes to play only for more heavily used sites.

Robert
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard for CGI

2002-03-05 Thread Sjoerd Op 't Land

andu wrote/ schreef:

> Subject: metacard for CGI
> Reply-To: [EMAIL PROTECTED]
> 
> I am putting together some documentation regarding the use of
> metatalk/rev for CGI scripts and I wanted to ask the list for some
> feedback:
> 
> -how many of you are currently using metatalk/rev for CGI
Me. What I think is important, is security. We want MC to be available as
widespread as Pearl, but admins don't want it on their systems, because
there is no wrapper.

Keep on the good work, Andu!

Regards, / Groeten,
Sjoerd

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard for CGI

2002-03-05 Thread andu

Terry Judd wrote:
> 
> >
> >>
> >>  And debugging is a pain in the butt.  :)
> >
> >Yes, we should get at least a line/word number in an error message but
> >since the number of Metacard/CGI users is 4 so far, I don't expect we
> >can dare ask for features.
> 
> I think you might find that there are a lot more than 4 if some of
> these issues were sorted out up front.

I'm all for it, speak up your mind and... who knows.

> 
> Terry...
> --
> -
> Dr Terry Judd
> Instructional designer / Multimedia developer
> Biomedical Multimedia Unit
> The University of Melbourne
> AUSTRALIA
> -
> ___
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard

-- 

Regards, Andu Novac
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard for CGI

2002-03-05 Thread Terry Judd

>
>>
>>  And debugging is a pain in the butt.  :)
>
>Yes, we should get at least a line/word number in an error message but
>since the number of Metacard/CGI users is 4 so far, I don't expect we
>can dare ask for features.

I think you might find that there are a lot more than 4 if some of 
these issues were sorted out up front.

Terry...
-- 
-
Dr Terry Judd
Instructional designer / Multimedia developer
Biomedical Multimedia Unit
The University of Melbourne
AUSTRALIA
-
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard for CGI

2002-03-05 Thread Richard MacLemale

Andu wrote:
> 
> I have an even better one; after having convinced people to go with
> Metacard for various reasons the next question that needs to be answered
> (and a good one too) is what happens if you, the Metacard programmer,
> get hit by a car tomorrow (knock on wood), is there a viable replacement
> in sight?
> 
>> 
>> And debugging is a pain in the butt.  :)
> 
> Yes, we should get at least a line/word number in an error message but
> since the number of Metacard/CGI users is 4 so far, I don't expect we
> can dare ask for features.

Good points.  MetaTalk is s much easier to learn than Perl, so it's
unfortunate that more folks aren't into it.  I've been in love with Darwin
mc since I ran the first echo.mt test.  As far as the debugger is concerned,
I usually end up copying my whole script and pasting it into a button script
in MetaCard for OS X, and then hitting the enter key and seeing where I've
made a syntax error.  Crude, but helpful.

Darwin mc is the coolest thing I've used in a long, long time.  Between OS X
Server and Darwin mc, I've got the ability to schedule and automate just
about anything I want on our network.  The more work the computer does, the
better.

:)
Richard MacLemale
Instructional Technology Specialist
James W. Mitchell High School
http://mitchellonline.pasco.k12.fl.us

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard for CGI

2002-03-05 Thread andu

Richard MacLemale wrote:
> 
> > Subject: metacard for CGI
> > Reply-To: [EMAIL PROTECTED]
> >
> > I am putting together some documentation regarding the use of
> > metatalk/rev for CGI scripts and I wanted to ask the list for some
> > feedback:
> >
> > -how many of you are currently using metatalk/rev for CGI
> 
> I am...

Thanks for the input.



> The biggest disadvantage is that no one has ever heard of it, and so you
> have to explain to people what it is and what it does.  And that's not a
> huge disadvantage when you are the network admin, but it's probably no fun
> when you are at the mercy on an internet provider.

I have an even better one; after having convinced people to go with
Metacard for various reasons the next question that needs to be answered
(and a good one too) is what happens if you, the Metacard programmer,
get hit by a car tomorrow (knock on wood), is there a viable replacement
in sight?

> 
> And debugging is a pain in the butt.  :)

Yes, we should get at least a line/word number in an error message but
since the number of Metacard/CGI users is 4 so far, I don't expect we
can dare ask for features. 

> 
> :)
> Richard MacLemale
> Instructional Technology Specialist
> James W. Mitchell High School
> http://mitchellonline.pasco.k12.fl.us
> 
> ___
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard

-- 

Regards, Andu Novac
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard for CGI

2002-03-05 Thread Richard MacLemale

> Subject: metacard for CGI
> Reply-To: [EMAIL PROTECTED]
> 
> I am putting together some documentation regarding the use of
> metatalk/rev for CGI scripts and I wanted to ask the list for some
> feedback:
> 
> -how many of you are currently using metatalk/rev for CGI

I am...

> -the context(tasks performed) it is being used as well as the
> environment (production/tests/platform)

I use Darwin mc running on both OS X client and OS X Server to do the
following tasks for teachers & myself...

1.  Darwin mc works with FileMaker Pro and AppleScript to automatically add
new students pulled from our district FMP server into our Macintosh Manager
2/OS X Server network.  New student accounts are created and home
directories are created with proper permissions and ownership.

2.  Darwin mc generates a web page form which can be used to add new users
to the network manually.

3.  Darwin mc lets teachers update their mailing list membership via a
custom generated web page.

4.  Darwin mc lets teachers create their own web pages from a template web
page.

5.  Darwin mc lets teachers look up student demographic and scheduling
information via a password protected web page.

> -the approximate amount of traffic handled by the CGIs

Traffic is pretty small.  We have over 100 staff members, but one copy of
Darwin mc handles everything above with no problem.  Darwin mc can process
the above requests extremely quickly.

> -your location (if this is sensitive in any way, please send it to me
> off the list, I only need this info for statistics)

High school with 1800 students.

> -if any of you are using other script languages for CGI (PHP, ASP, etc.)
> I'd appreciate some feedback as to how does metatalk/rev compare in
> terms of productivity/performance with the other language(s)

I have some students using PHP on our school web site but I'm not using it
myself.  There's no point in learning PHP because I know MetaTalk!  :)

> -the main disadvantage you see in using metatalk/rev for CGI scripting
> *besides some difficulty with debugging*

The biggest disadvantage is that no one has ever heard of it, and so you
have to explain to people what it is and what it does.  And that's not a
huge disadvantage when you are the network admin, but it's probably no fun
when you are at the mercy on an internet provider.

And debugging is a pain in the butt.  :)

:)
Richard MacLemale
Instructional Technology Specialist
James W. Mitchell High School
http://mitchellonline.pasco.k12.fl.us



___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard