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

World: r3wp

[!Liquid] any questions about liquid dataflow core.

Mario
18-May-2007
[362]
Now they want me to add proxy handling to the rooms but the proxy 
should be handled only by some users (that's why I plan to have a 
controll room and not an extra button in computer rooms)
Maxim
18-May-2007
[363x2]
so at some point, you will have to add some intermediate nodes (plugs 
in liquid) to control the states themselves. before sendin them to 
the actual dependent systems.
so the control room is only available for that user?
Mario
18-May-2007
[365x3]
I've added flexybility putting the rooms in separate files and not 
in the script (as two school are using the same program), than I 
check the user of the LAN (I use the environment variables)
The xcript runs in a webpage with plugin so the user cannot change 
the envvars
Only some teachers will be able to have some buttons/nodes/handlers
Maxim
18-May-2007
[368]
is the gui an actual picture of the school's layout.
Mario
18-May-2007
[369x2]
The plugin posts data to a CGI on the proxy and that's how I can 
control the proxy and store requests for repair
The gui has the rooms names as buttons. When you press the room name 
its layout (made of buttons) is shown along with a standard feedback 
layout (a form to send requests via CGI POST)
Maxim
18-May-2007
[371]
ok, so what do you have to manage about the proxy?
Mario
18-May-2007
[372x5]
I can maybe put some user-data to buttons to contain attributes
The min goal with the proxy is to open a specific room at a specifica 
time up to a specific hour or up to a limit hour (when the school 
closes)
min=main
Asking more the "open" rooms should be coloured in a different way 
so all teachers know thet Internet is available.
It might be that a single computer should be opened instead of opening 
the whole room
Maxim
18-May-2007
[377]
hum... and the proxy configuration is handled by small cgi requests?
Mario
18-May-2007
[378x3]
Are you thinking about security risks?
I compress the CGI request so it's not readable
I POST compressed data
Maxim
18-May-2007
[381x4]
you see, what I see here is that the actuall application data is 
on the server and your browser based plugins are just synchronised 
to it.
so using cgi for that kind of think (for liquid) is almost impossible, 
cause the viewers need to get the information BACK.
if someone else changes my setup, I have to be able to receive it.
so in reality, each time a computer opens up a view of the current 
state of each thing, it should have its own listener port.
Mario
18-May-2007
[385]
When the gui starts I show servers state. As soon as a teacher clicks 
a button for a room he is changing the state...
Maxim
18-May-2007
[386x2]
but now you add the concept that "another" computer changes your 
state... you have to be made aware of that change.
so unless you can listen to someone, you will never know.
Mario
18-May-2007
[388]
I see...
Maxim
18-May-2007
[389x2]
liquid can help you automate the process easily, but you still need 
to allow each thing, to be aware of itself.
or rather, of the other things it relates to.
Mario
18-May-2007
[391x2]
Can I poll a status update from the server each, let's say, 2 mins?
The poll results should generate a data flow...
Maxim
18-May-2007
[393x4]
yes
actually, internally that is how liquid functions, it asks for state 
of dependencies.
this is the purpose of the  instigate function.
I am at the point of making my liquid net module for liquid, which 
would alleviate the need for a cgi-based system in your setup.
Mario
18-May-2007
[397]
I am wondering what to do: on one hand I'd really like to create 
a liquid application, on the other hand I must finish the program 
in a few days...
Maxim
18-May-2007
[398x2]
but its nowhere near ready... I'm starting to look at the discrepancies 
of tcp/ip and liquid models.
hehe, right now... with the cgi in between, I don't think you'll 
get a lot more out of building it in liquid...
Mario
18-May-2007
[400]
haw should the net module work? ?services?
Maxim
18-May-2007
[401x3]
if elixir where ready for release, then, yes it would be a simple 
click and drag... but alas, its not there yet..
it will be direct tcp intercommunication in between nodes.
using encryption if you have those options in your license.
Mario
18-May-2007
[404]
I will try to use the liquid concepts adding attributes to the nodes 
and do a "classical" plugin for the proxy
Maxim
18-May-2007
[405x3]
it should be possible to add an adaptor in order to plug a liquid 
system within a reb service, but thats a later stage.
if I had just a bit more time, I'd be glad to help, but comming back 
from the devcon has but a strain on my time (a lot of time to make 
up at work and at home)
plus I am working on getting a quick Revault demo site ASAP.
Mario
18-May-2007
[408]
Nevr mind, Maxim. Talking about this with you suggested me easier 
way to implement such services and this is an help too!
Maxim
18-May-2007
[409]
no problem, I'm happy to help.
Mario
18-May-2007
[410]
During the devCon I "saw" some GUI while you were presenting your 
programs, are those scripts available to the public?
Maxim
18-May-2007
[411]
but seeing people's real use cases helps me see where to put the 
time on whatever I do next, and your example shows me that I am dead 
on my priorities  :-)