World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Graham 25-Aug-2010 [8872x3] | temple is pre-cheyenne |
It looks like similar ideas are involved .. complete separation of layout from code | |
Interesting item from the past .. both Brett and Andrew have droppped out of the Rebol scene ... the latter not by choice though | |
florin 25-Aug-2010 [8875] | He passed away or rebol became illegal in his country? |
Graham 25-Aug-2010 [8876x2] | He lives in NZ .. I'm not aware of any laws against Rebol here |
But he did get sick .. | |
Gabriele 26-Aug-2010 [8878] | Temple is just an engine, so it can run in any context. It was mostly an experiment, and the HTML parser was very basic. I have a much better parser now, adapting the functions from Temple should not be hard. (left as a nice exercise to the reader :-) http://www.rebol.it/power-mezz/mezz/load-html.html |
Graham 26-Aug-2010 [8879x2] | still CGI though? |
Hmm... that makes 3 websites you keep your stuff? | |
Gabriele 26-Aug-2010 [8881x2] | load-html is just a function. |
i have some old stuff scattered around. i'm trying to put most of the newest stuff in the Power Mezz package which is on Sourceforge and www.rebol.it | |
Graham 26-Aug-2010 [8883] | what's colle...a used for? |
Gabriele 26-Aug-2010 [8884] | more "personal" / work in progress stuff. i've decided to put the Power Mezz on www.rebol.it instead because that seems to make more sense. |
Graham 26-Aug-2010 [8885] | so no more Apache directory listings? |
Graham 27-Aug-2010 [8886x2] | Doc says he will try and fix the 'alert issue ... though he's not sure it will fix the ability to run as a service |
He'll be back here in a few days to answer questiona | |
florin 28-Aug-2010 [8888] | Gabrielle: temple.r is dependent on utilities.r. Could not find it. |
Graham 28-Aug-2010 [8889x2] | FYI, Gabrielle is the female form of Gabriele |
check out http://www.colellachiara.com/soft/libs/ | |
florin 28-Aug-2010 [8891] | Thanks for the FYI |
Steeve 28-Aug-2010 [8892] | Gabrielle ! http://www.youtube.com/watch?v=7QS6Op-vV94 |
Graham 28-Aug-2010 [8893] | seems to be encrypted |
Steeve 28-Aug-2010 [8894] | at the end ? |
Graham 28-Aug-2010 [8895] | codec du francois |
Steeve 28-Aug-2010 [8896x2] | lol |
But I prefer this one Gabrielle = Gaby http://www.youtube.com/watch?v=mey8GokRFf4 | |
Graham 28-Aug-2010 [8898] | doc is going to kick us out of his group soon! |
Steeve 28-Aug-2010 [8899] | Don't Bother, I know how to deal with him :-) |
florin 29-Aug-2010 [8900] | Gabriele: in the temple.r file, the word CONTEXT is used to define some functions, then you export them with the 'export function defined in the utility.r file. Is there a 'best practice' about it as I don't see the difference compared to simply defining it within the scope of the file? |
Kaj 29-Aug-2010 [8901] | I think it's Gabriele's module system. Similar functionality is standard in REBOL 3. When you export explicitly, you can choose what to export and what to leave internal to the context, so you have minimum potential for conflicts with the global context |
florin 29-Aug-2010 [8902] | Got it. Pattern #1. |
Gabriele 30-Aug-2010 [8903] | Kaj: well, it's not my module system, but it's basically the same thing as using SET 'WORD instead of WORD: , except that it is more readable (a newbie can guess what "export" means, while it's harder to guess that SET 'WORD is different from WORD:) Florin: since R2 does not natively include the concept of "modules", all of us have been doing various things to avoid polluting the global context too much. I eventually got tired of all this and created this instead: http://www.rebol.it/power-mezz/mezz/module.html |
Dockimbel 3-Sep-2010 [8904] | Hi all, just to let you know that I'm upgrading Cheyenne websocket support to the last ws draft RFC, the handshaking part has changed and is not compatible with the previous version, causing all current Cheyenne ws apps to not work with latest browsers (like Chrome 6). |
Davide 3-Sep-2010 [8905] | I've made a func to calculate the challengin code given the header request. It was in the "I'm new" section, but it works nicely, I'm using it very often, so it's well tested. ws-chall: funct [header [string!]] [ cnt: funct [k] [ n: copy "" ns: 0 repeat x k [ if all [x >= #"0" x <= #"9"][ append n x ] if x = #" " [ ns: ns + 1 ] ] if ns = 0 [ return none ] (to decimal! n) / ns ] int-2-char: funct [n [integer! decimal!]] [ ;n: to decimal! n head insert insert insert insert make string! 4 to char! n / 16777216 to char! (n // 16777216) / 65536 to char! (n // 65536) / 256 to char! n // 256 ] attempt [ t: parse/all replace/all header crlf lf "^/" l: copy [] repeat x t [if n: find x ":" [insert tail l reduce [copy/part x (index? n) - 1 next n]]] l: head l k1: next select l "Sec-WebSocket-Key1" k2: next select l "Sec-WebSocket-Key2" k3: next next find header "^/^/" aux1: cnt k1 aux2: cnt k2 ] if any [none? aux1 none? aux2 none? k3] [return ""] to-string checksum/method rejoin [int-2-char aux1 int-2-char aux2 k3] 'md5 ] |
Dockimbel 3-Sep-2010 [8906x2] | Thanks for the code, but the handshake implementation was trivial. My current issue is the fact that the new ws draft is breaking HTTP specifications by using a GET request with a message body...WTF? I'm not the only one to find that odd: http://blog.iworks.at/?/archives/69-WebSockets-Handshake-non-HTTP-conforming.html |
SVN revision 87: websocket support updated to follow draft 76 specs (works with Chrome 6+) | |
Pekr 4-Sep-2010 [8908] | Is http://nodejs.orgsimilar to what websockets does? I found it when reading about upcoming Palm (HP) WebOS 2.0 release ... |
Graham 4-Sep-2010 [8909] | Terry has mentioned nodejs before .. it's an event driven web server ... nothing to do with web sockets per se |
Davide 4-Sep-2010 [8910] | node.js is a v8 javascript interpreter that could be used server-side to make tcp server. So, not only web server but server with persistent connection too, like web sockets. Javascript on the server side isn't a new idea, but V8 is very fast and more light without the html dom complexity. It's all event driven and seems very fun to play with it. |
Dockimbel 6-Sep-2010 [8911x3] | SVN revision 89: removed View engine dependency for displaying error messages produced by switching to Windows Service mode. |
if there are other "hot" issues to fix in Cheyenne, please let me know. | |
Btw, Windows Service mode seems to run OK under Windows 7 if Cheyenne is started with admin privileges (tested with an enpro kernel). | |
Henrik 6-Sep-2010 [8914] | Dockimbel, will you provide an encapped version again? Last time I had quite a mess figuring out what Cheyenne version worked with what REBOL version, so I just avoid upgrades unless there is an encapped version. |
Dockimbel 6-Sep-2010 [8915] | I distribute encapped versions only when making new releases. If you need a intermediary revision encapped, just let me know the OS and encap kernel and I'll make you one. Also, I think I should release a new version now, the current SVN code base seems stable enough now. |
Henrik 6-Sep-2010 [8916] | ok |
Dockimbel 6-Sep-2010 [8917] | hum...I forget about the SDK licensing issue, you can't distribute encapped binaries that allow running arbitrary REBOL code (Cheyenne allows that through CGI and RSP scripts). |
Henrik 6-Sep-2010 [8918] | ok |
amacleod 6-Sep-2010 [8919] | RE: SDK licensing issue: So you could not make an ecapped app that uses rebol as its scripting language? Like a paint program that allows you to make your own macros for repetitive tasks? |
Dockimbel 6-Sep-2010 [8920] | if your paint program allows anyone to run any Rebol script, then I guess no. |
Henrik 6-Sep-2010 [8921] | does it also say that if you use a plain enface? isn't this related to having access to pro/command features? |
older newer | first last |