On 04/15/2012 11:47 PM, Johnny Billquist wrote:
By the way, if people want to experiment with their own web pages on MIM, it is now possible.
See MIM::LB:[HTTPD]HTTPD.DOC for an explanation.
Cool!
http://madame.update.uu.se/~pihlgren
/P
On 2012-04-15 22:53, Mark Wickens wrote:
On 13/04/12 23:58, Johnny Billquist wrote:
By the way, anyone want to help do a first (simple) page with some
more meaningful content to serve from MIM/MADAME?
Johnny,
Are you asking for programmatic content or blurb? I'm happy to help with
blurb, not sure my BASIC skills are up to any programmatic stuff.
It was a request for Blurb, I think. The programming of the server and so on is something I know, but I'm lousy at all kind of graphic design and so on.
But for now, it's only possible to do static html pages.
I've been using WebSockets lately, they are a very cool and easy to use
HTML 5 technology to open a direct two way string based communications
mechanism. Mark Daniel has integrated them into WASD, long-term it might
be interesting to consider an implementation - it would open up a lot of
interesting possibilities without requiring a huge overhead.
Feel free to explain how it works to me, and maybe it is something we can work on in some fashion... :-)
By the way, if people want to experiment with their own web pages on MIM, it is now possible.
See MIM::LB:[HTTPD]HTTPD.DOC for an explanation.
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
On 13/04/12 23:58, Johnny Billquist wrote:
By the way, anyone want to help do a first (simple) page with some more meaningful content to serve from MIM/MADAME?
Johnny,
Are you asking for programmatic content or blurb? I'm happy to help with blurb, not sure my BASIC skills are up to any programmatic stuff.
I've been using WebSockets lately, they are a very cool and easy to use HTML 5 technology to open a direct two way string based communications mechanism. Mark Daniel has integrated them into WASD, long-term it might be interesting to consider an implementation - it would open up a lot of interesting possibilities without requiring a huge overhead.
Regards, Mark.
On 2012-04-15 04:49, Oleg Safiullin wrote:
Hmm, putting it all in some file, that can be read?
You can create a virtual terminal for CGI task and pass data through
terminal I/O :)
Yes, I thought about something like that, but that is weird. You would not be able to run any normal program (they would not understand the input coming in), and your CGI programs would need to some sort of "protocol" to understand that this is data from the server, compared to possibly something else...
But keep talking. Maybe there is something in this idea anyway...
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
On 2012-04-15 04:02, Johnny Billquist wrote:
On 2012-04-15 02:57, Brian Hechinger wrote:
On 4/13/2012 12:13 PM, Johnny Billquist wrote:
On 2012-04-13 16:44, Mark Benson wrote:
On 13 Apr 2012, at 15:11, Johnny Billquist <bqt at softjar.se
<mailto:bqt at softjar.se>> wrote:
On 2012-04-13 16:03, Mark Benson wrote:
I'm sure we could work something out. Do you have some experience with
web servers? I have one or two questions that you might help me
with...
Also, you could do some work on MIM, where the stack and tools are
already in place...
I work on AMP (apache/MySQL/PHP) for a living. I wouldn't ever claim to
be an expert on web servers but I know how apache works and where to
look up what I don't know ;)
Ah. Hmmm. I'm not sure how much that knowledge helps here, but maybe
it might be a good start anyway.
Right now, there is nothing like the CGI interface of Unix
web-servers. It might be something we could look at. The basic concept
of kicking off a subprocess, and using the output as the result is
nothing difficult. More tricky is the question of how to pass
information that in Apache and others are passed as environment
variables. Need to think about that one.
Scripting... Nothing exist yet. You could use IND, I guess, but it's
nothing like PHP. Also, no connection to any database as such from
IND. Using a HLL, like BASIC, you can always play with RMS, which
gives you lots of features. Or you could also go to Datatrieve...
I'd have to dust the cobwebs out of my brain, but I wrote a pretty
trivial web server years ago so I'm somewhat familiar with how that
works. It wasn't fancy and didn't do CGI or anything but I just might be
of some use, who knows! :)
If you have any questions let me know and I'll see what I can do.
It seems the web server is serving pages and jpegs now. Paul Konig
reported some kind of problem viewing my jpeg, so if people can report
the success/failure of that, it would help.
Otherwise, I'm about to extend it to be able to grab pages from peoples
home directories. Once that is done, people can try adding their own
pages on MIM, and we'll see what happens...
But the code is very small. The whole thing is 22 blocks of source code
so far. All in BASIC+2. Should be very easy to follow code. Basically
MIM::DU:[HTTPD]*.B2S. It's split into 7 files at the moment.
By the way. If anyone have any nice ideas, interesting approaches, or any comments on CGI interfaces, I'd be interested in hearing about it.
Being able to create dynamic web content would be nice, but I don't know how I should pass information in to the application. As far as I knpw/remember, Unix web-servers do this by setting up environment variables.
I guess it would perhaps be possible to use logical names in a similar fashion, but I fear that multiple tasks might interfere with each other in this usage. Also, logical names have length restrictions, which might be limiting. How long could I expect header names and values to be?
Hmm, putting it all in some file, that can be read?
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
On 2012-04-15 02:57, Brian Hechinger wrote:
On 4/13/2012 12:13 PM, Johnny Billquist wrote:
On 2012-04-13 16:44, Mark Benson wrote:
On 13 Apr 2012, at 15:11, Johnny Billquist <bqt at softjar.se
<mailto:bqt at softjar.se>> wrote:
On 2012-04-13 16:03, Mark Benson wrote:
I'm sure we could work something out. Do you have some experience with
web servers? I have one or two questions that you might help me with...
Also, you could do some work on MIM, where the stack and tools are
already in place...
I work on AMP (apache/MySQL/PHP) for a living. I wouldn't ever claim to
be an expert on web servers but I know how apache works and where to
look up what I don't know ;)
Ah. Hmmm. I'm not sure how much that knowledge helps here, but maybe
it might be a good start anyway.
Right now, there is nothing like the CGI interface of Unix
web-servers. It might be something we could look at. The basic concept
of kicking off a subprocess, and using the output as the result is
nothing difficult. More tricky is the question of how to pass
information that in Apache and others are passed as environment
variables. Need to think about that one.
Scripting... Nothing exist yet. You could use IND, I guess, but it's
nothing like PHP. Also, no connection to any database as such from
IND. Using a HLL, like BASIC, you can always play with RMS, which
gives you lots of features. Or you could also go to Datatrieve...
I'd have to dust the cobwebs out of my brain, but I wrote a pretty
trivial web server years ago so I'm somewhat familiar with how that
works. It wasn't fancy and didn't do CGI or anything but I just might be
of some use, who knows! :)
If you have any questions let me know and I'll see what I can do.
It seems the web server is serving pages and jpegs now. Paul Konig reported some kind of problem viewing my jpeg, so if people can report the success/failure of that, it would help.
Otherwise, I'm about to extend it to be able to grab pages from peoples home directories. Once that is done, people can try adding their own pages on MIM, and we'll see what happens...
But the code is very small. The whole thing is 22 blocks of source code so far. All in BASIC+2. Should be very easy to follow code. Basically MIM::DU:[HTTPD]*.B2S. It's split into 7 files at the moment.
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
On 04/14/2012 09:14 PM, Brian Hechinger wrote:
Remember libFTENS? I really need to resurrect that project.
Oh yes! You should definitely resurrect it.
-Dave
--
Dave McGuire, AK4HZ
New Kensington, PA
On 4/14/2012 9:02 PM, Dave McGuire wrote:
On 04/14/2012 08:57 PM, Brian Hechinger wrote:
On 4/13/2012 12:13 PM, Johnny Billquist wrote:
On 2012-04-13 16:44, Mark Benson wrote:
On 13 Apr 2012, at 15:11, Johnny Billquist<bqt at softjar.se
<mailto:bqt at softjar.se>> wrote:
On 2012-04-13 16:03, Mark Benson wrote:
I'm sure we could work something out. Do you have some experience with
web servers? I have one or two questions that you might help me with...
Also, you could do some work on MIM, where the stack and tools are
already in place...
I work on AMP (apache/MySQL/PHP) for a living. I wouldn't ever claim to
be an expert on web servers but I know how apache works and where to
look up what I don't know ;)
Ah. Hmmm. I'm not sure how much that knowledge helps here, but maybe
it might be a good start anyway.
Right now, there is nothing like the CGI interface of Unix
web-servers. It might be something we could look at. The basic concept
of kicking off a subprocess, and using the output as the result is
nothing difficult. More tricky is the question of how to pass
information that in Apache and others are passed as environment
variables. Need to think about that one.
Scripting... Nothing exist yet. You could use IND, I guess, but it's
nothing like PHP. Also, no connection to any database as such from
IND. Using a HLL, like BASIC, you can always play with RMS, which
gives you lots of features. Or you could also go to Datatrieve...
I'd have to dust the cobwebs out of my brain, but I wrote a pretty
trivial web server years ago so I'm somewhat familiar with how that
works. It wasn't fancy and didn't do CGI or anything but I just might be
of some use, who knows! :)
If you have any questions let me know and I'll see what I can do.
Seconded. In fact I'm working on a really, really simple one *right
now*, literally this weekend, on an ARM7-based system for work. It's
fun stuff!
Remember libFTENS? I really need to resurrect that project.
-brian
On 04/14/2012 08:57 PM, Brian Hechinger wrote:
On 4/13/2012 12:13 PM, Johnny Billquist wrote:
On 2012-04-13 16:44, Mark Benson wrote:
On 13 Apr 2012, at 15:11, Johnny Billquist <bqt at softjar.se
<mailto:bqt at softjar.se>> wrote:
On 2012-04-13 16:03, Mark Benson wrote:
I'm sure we could work something out. Do you have some experience with
web servers? I have one or two questions that you might help me with...
Also, you could do some work on MIM, where the stack and tools are
already in place...
I work on AMP (apache/MySQL/PHP) for a living. I wouldn't ever claim to
be an expert on web servers but I know how apache works and where to
look up what I don't know ;)
Ah. Hmmm. I'm not sure how much that knowledge helps here, but maybe
it might be a good start anyway.
Right now, there is nothing like the CGI interface of Unix
web-servers. It might be something we could look at. The basic concept
of kicking off a subprocess, and using the output as the result is
nothing difficult. More tricky is the question of how to pass
information that in Apache and others are passed as environment
variables. Need to think about that one.
Scripting... Nothing exist yet. You could use IND, I guess, but it's
nothing like PHP. Also, no connection to any database as such from
IND. Using a HLL, like BASIC, you can always play with RMS, which
gives you lots of features. Or you could also go to Datatrieve...
I'd have to dust the cobwebs out of my brain, but I wrote a pretty
trivial web server years ago so I'm somewhat familiar with how that
works. It wasn't fancy and didn't do CGI or anything but I just might be
of some use, who knows! :)
If you have any questions let me know and I'll see what I can do.
Seconded. In fact I'm working on a really, really simple one *right
now*, literally this weekend, on an ARM7-based system for work. It's
fun stuff!
-Dave
--
Dave McGuire, AK4HZ
New Kensington, PA