World: r3wp
[!Liquid] any questions about liquid dataflow core.
older newer | first last |
Pekr 7-May-2007 [349] | think rebcode first :-) |
Maxim 7-May-2007 [350x2] | I did a VID dialect in Python... worked exactly like GLayout with the proportional resizing. |
same kind of list-based, free-form datatype and intutive. | |
Pekr 7-May-2007 [352] | what you used under the hood? wxWidgets? (PythonCard) |
Maxim 7-May-2007 [353x4] | tcl/tk directly . not a single imported widget lib. |
ended up with scroll panes, menues, tree views, all matter of buttons and fiels. | |
some very advanced GUIs where done with that engine... but alas, Its not my code, so I can't share it... | |
I don't even have a copy of it. | |
Maxim 18-May-2007 [357x2] | so continued from a discussion in VID+. |
trying to help mario here grasp how to model a system using liquid. | |
Mario 18-May-2007 [359x2] | I'd like to change the program to work with liquid but I have to be quick |
The computer rooms ask for repairs is an old script I wrote for the cshool | |
Maxim 18-May-2007 [361] | now you see, since the structure of dependencies and synchronisation actually define the system... what you connect to what will basically define how much flexibility you have in your system. |
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 [398] | but its nowhere near ready... I'm starting to look at the discrepancies of tcp/ip and liquid models. |
older newer | first last |