r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Uniserve] Creating Uniserve processes

MikeL
1-Sep-2006
[323]
When I can get that simple part working then I want to add Make-Doc, 
my-sql-protocol and Andrew's ML dialect as services so I can get 
some leverage from these.
Graham
1-Sep-2006
[324x3]
I'm using Cheyenne with RSP, and Firebird.
Ask Doc for a copy of Cheyenne ...
but I think it's still in beta test ( extended ! )
MikeL
1-Sep-2006
[327]
Thanks I'll try that ... he hasn't been on AltMe since 05-Aug-2006. 
 For Cheyenne, do you have NTLM (Integrated Windows Authentication)?
Graham
1-Sep-2006
[328]
nope.
MikeL
1-Sep-2006
[329]
I also want to run Carl's blog.r from Uniserve.
Will
1-Sep-2006
[330x3]
Mike, her you can find latest released uniserve and there is also 
the NTLM:
http://softinnov.org/
Hello Name example:
<% validate [name -]%>

<html>

<body>

<%
either request/var/name [

	print [{Hello} request/var/name]

][

	print {<form method="POST" action="test.rsp">

	<input type="text" name="name">

	</form>}]

%>

</body>

</html>
and if you want to test for speed, you can ab (apache benchmark) 
http://wwd.francobianchi.ch/words.cgi;-)
MikeL
1-Sep-2006
[333]
Thanks Will - I have uniserve running and can serve up static webpages 
and the sample cgi that Doc provided. How do I allow RSP or ML to 
be loaded so that a page that uses them does not have to run as CGI 
and flag .rsp or .rhtml files as handled by RSP.
Will
1-Sep-2006
[334]
well in the release you dl the rsp support is "basic", I used a customized 
one but now I'm using Dock latest rsp, sorry but you should definitely 
ask Dock for latest version or wait till he release.
Volker
1-Sep-2006
[335]
Is there a good way to contact Doc?
Will
1-Sep-2006
[336]
did you try by email?
Oldes
1-Sep-2006
[337x2]
Hm, it was the hard part of the learning uniserve, but now I know, 
how to do-task. But the question now is - what if I need to do task 
once a day, I don't want the launched helper process to be still 
running in the background. Is there someone who can help?
Found a way - to modify on-received function in the task-master to 
send the task port with data to the service using on-task-done and 
than closing the task if needed from the service:-) If there is some 
other way how it should be done, let me know.
Pekr
1-Sep-2006
[339]
how do you feel about Uniserve so far - nice concept, isn't it?
Oldes
1-Sep-2006
[340]
Yes, I like it. I already transfered my MicroChat server to Uniserve 
kernel and Irc bot as well:-)
Pekr
1-Sep-2006
[341]
I thought that concept like that could be built-into rebol by default 
....
Oldes
1-Sep-2006
[342]
Why, it's good as it is and who knows how will look ports in R3
Dockimbel
4-Sep-2006
[343]
I have a much more recent version of UniServe almost ready to release, 
but docs are not updated and some of the protocols are still alpha. 
But with the current interest in UniServe, I'm thinking about releasing 
a beta version here this week.
Graham
4-Sep-2006
[344]
Not so busy now?
Oldes
4-Sep-2006
[345]
I'm using UniServ as a core for my MicroChat - http://box.lebeda.ws/~hmm/chat.html
:-)
Graham
4-Sep-2006
[346]
cool.
Dockimbel
4-Sep-2006
[347]
Busy, I am ;-). But there's a new version sitting on my hard drive 
which could be useful to some people here.
Graham
4-Sep-2006
[348x2]
no one there though
what are the arrows for?
Oldes
4-Sep-2006
[350]
You can move the yellow boxes:-) and all you say is visible here 
as well - http://www.informacezbrna.cz/
Graham
4-Sep-2006
[351]
yee gods .. .birds attacking me!
Oldes
4-Sep-2006
[352]
And the people talking now are puppets - they are recitating Plato's 
Gorgias
Graham
4-Sep-2006
[353]
bots
Oldes
4-Sep-2006
[354x2]
Just one - I'm sending it from my computer to the server
At this moment I'm able to connect it event with IRC servers, but 
I do it know just from home
Dockimbel
4-Sep-2006
[356]
Oldes, cool design !
Oldes
4-Sep-2006
[357]
I want do do more with it - this is just a test
Graham
4-Sep-2006
[358x2]
Doc, any updates on sending encrypted files ?
new flags on signalling end of file transmission?
Dockimbel
4-Sep-2006
[360]
I've added a new event : 'on-write-chunk to allow modification of 
the chunks of big files just before they are sent. This can be the 
hook to implement compression or encryption when sending big files.
Graham
4-Sep-2006
[361]
Great.
Dockimbel
4-Sep-2006
[362x2]
Adding an appropriate header and decoding it on the other end is 
still up to the programmer. (Same for adding some flags to signal 
start / end of transmission).
Btw, this new event is untested yet. I should be able to provide 
you a small prototype service and client protocol to show you how 
to use it.
Graham
4-Sep-2006
[364]
that would be necessary :)
Dockimbel
4-Sep-2006
[365]
It could be quite simple in fact (at least in theory) :


1) Send a first message telling the name and size of the file (unprocessed) 
to transmit
2) Send the file in parts (done automatically by Uniserve)

3) Catch the 'on-write-chunk event to process the chunk data (compress, 
encode...) then add a header containing :
     - size of the chunk

     - a sequence ID (an incremental counter starting with 1, 0 would 
     mean last chunk)
Dockimbel
6-Sep-2006
[366]
Please find here : http://softinnov.org/tmp/UniServe0919.zipa snapshot 
version of latest UniServe sources. It fixes some of the issues I've 
been asked about (UDP support for example). It's a beta version, 
no updated docs, no samples. ChangeLog in %uni-engine.r file. Any 
questions ? Ask them here, I'll answer as my available time permits.
Will
17-Sep-2006
[367]
.
Terry
22-Sep-2006
[368]
Hey Nenad..  Any encapping docs would be great.
Oldes
23-Sep-2006
[369x2]
And what exactlu do you want to know, just use #include instead of 
'do' and %prebol.r to build it.
but the modules are loaded when needed, so you should make some more 
improvements to make one-file build
Dockimbel
23-Sep-2006
[371]
Terry, with the release of Cheyenne (soon I hope), you'll get a complete 
working example of encap-fs library usage.
Pekr
23-Sep-2006
[372]
Cheyenne comes with sources? How is it different to Uniserve? Or 
is it just Uniserve based?