World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Oldes 3-Aug-2010 [8697] | not tested, but if you want to start something on windows start up, just add link into this folder> C:\Documents and Settings\<%your-user-name%>\Start Menu\Programs\Startup (if you have english windows) The folder names are localized so it will look different in other languages) |
Graham 3-Aug-2010 [8698x6] | This is for windows 2003 .. I suspect that the user needs to login for startup links to work? |
Found this in misc/service.r ; TBD: replace alert function by a call to MessageBox win32 API (would work with both Core&View) alert: func [msg /local svs][ svs: system/view/screen-face svs/pane: reduce [ make face [ offset: (system/view/screen-face/size - 200x50) / 2 size: 400x100 pane: make face [ size: 380x80 offset: 0x24 text: msg ] ] ] show svs open-events wait [] clear svs/pane show svs ] | |
So, looks like doc hasn't got round to replacing this code which is called later on by this alert "ERROR : installing a service requires Administrator rights!" | |
ok, so get it running as a service you need to run as administrator first, and then use the "run as service" menu | |
Well, I get the "congratulations you're running Cheyenne" page .. but nothing else is working | |
ie. the cgi, rsp and rsp web app are not | |
Graham 4-Aug-2010 [8704] | I wonder how slow it might be to use a coding style where each page is represented by a Rebol object, and to display the page back to the browser client, you have a render function that iteractively calls the render function of each element of the object. the object initializes by reading the session and request objects when it is first instantiated |
Endo 5-Aug-2010 [8705] | is there any work about running encrypted rsp pages on cheyenne? just like zend encoder for php? |
Graham 5-Aug-2010 [8706] | what's an encrypted page? |
Kaj 5-Aug-2010 [8707] | The performance of an object compositing system would depend mostly on how each object performs in delivering its rendering. If each object is fast enough, the composition is doable |
Graham 5-Aug-2010 [8708] | This who process could be controlled by a VID dialect that creates the object that then generates the page |
Kaj 5-Aug-2010 [8709x2] | Yep |
My web framework works along those lines, but it doesn't use objects in that place | |
Graham 5-Aug-2010 [8711] | I'd imagine it could be quite the killer app .. a dialect that generates a web page for you switching between YUI, jQuery or whatever JS framework |
Kaj 5-Aug-2010 [8712] | That's more in the direction of Weblocks |
Graham 5-Aug-2010 [8713] | Where's your framework? |
Kaj 5-Aug-2010 [8714] | On my disk :-) |
Graham 5-Aug-2010 [8715x3] | Ahh.. Maxware |
The html dialects I've seen before don't address the issues of JS frameworks ... | |
Might make an interesting project ... | |
Kaj 5-Aug-2010 [8718] | Not really; it's running a number of sites, including the Syllable sites. It has also performed the final distribution build of the last Syllable Server release. But it's not published |
Graham 5-Aug-2010 [8719x3] | I've in the process of rewriting a site I built 3 years ago in YUI and it is so tedious and repetitive. |
Ideal target for dialecting | |
So, does your dialect build QM sites ? | |
Kaj 5-Aug-2010 [8722x3] | I'm not using an HTML dialect; at least not as a requirement. The dialects I have are text, not REBOL |
So I'm doubtful people even here would understand my design decisions even if I would publish it | |
For example, I did the Try REBOL site with it on top of QM, but I'm working on replacing QM fully | |
Graham 5-Aug-2010 [8725] | with ...? |
Kaj 5-Aug-2010 [8726] | My framework. They're both MVC-style |
Janko 5-Aug-2010 [8727x2] | Endo: I will need a rebol code obfuscator for making one of cheyenne webapps also run locally. I don't know how encryptor would work since local app would have to decrypt it to run it so others can see that and decrypt it also in same way. |
but I haven't yet started coding it. | |
Graham 6-Aug-2010 [8729] | 5-Aug-2010/20:58:17-7:00 : make object! [ code: 200 type: 'syntax id: 'invalid arg1: "tuple" arg2: "247hvs.cloud-ehr.net" arg3: none near: "(line 171) 247hvs.cloud-ehr.net [" where: none ] when using this for a webapp |
Endo 6-Aug-2010 [8730x2] | @janko: I use Zend Encoder to encode my PHP scripts before give them to my customers, so they cannot see/change my scripts. Zend Optimizer is a free tool which installed on IIS or Apache, it simply reads the encoded php files decode them and execute. It really difficult to crack it, not impossible ofcourse but it gives enough security to protect sources. |
I thought that it can be easily adopted in Cheyenne to read & execute encoded RSP files. | |
Graham 9-Aug-2010 [8732x3] | I've been thinking of how to separate code from display and have come up with the following ideas http://rebol.wik.is/Cheyenne/Page_Title/HTML_dialect Basically the idea is to create all the html, js, css beforehand, and then emit in a template. When the parser runs through the layout block, it builds all the CSS and JS links. Once it reaches the body, it recursively parses the div tags building and closing them. In the same way html, head and body tags are built and closed. |
Hopefully this will result in more maintainable code .. as the whole page is now Rebol. And like classical programming, we "define" all our variables first .. and then use them later on. | |
Has anyone done anything similar already? | |
Henrik 9-Aug-2010 [8735] | yes, I wrote the HTML dialect to do a similar thing, though not with direct mapping of HTML tags to REBOL words. |
Graham 9-Aug-2010 [8736] | I get the idea that your dialect is much more low level ... |
Henrik 9-Aug-2010 [8737] | actually it's more high level. you get loops and mapping of blocks and objects to tables, etc. |
Graham 9-Aug-2010 [8738] | are you still using it? |
Henrik 9-Aug-2010 [8739x2] | yes, it's used on my website. |
and I use it also on the R2 and R3 pages for GUI images, that I serve locally, as you have seen. | |
Graham 9-Aug-2010 [8741] | Have you got any examples for the pages on your sites? |
Henrik 9-Aug-2010 [8742x2] | I can see if I can pull a few out. The reason the HTML dialect is not published yet, is because the docs contain examples about redirecting, and coincidentally, redirects to an empty page. :-) |
perhaps I can remove those parts for now... | |
Graham 9-Aug-2010 [8744] | http://www.hmkdesign.dk/rebol/html-dialect/docs/0.0.7/html-dialect.html |
Henrik 9-Aug-2010 [8745] | yes, you can use that for now. |
Graham 9-Aug-2010 [8746] | I think I might develop my idea a little to see if I can get anywhere with it. |
older newer | first last |