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

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

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.
Henrik
9-Aug-2010
[8747]
Note the docs describe version 005 to 007, whie I have 008 here.
Graham
9-Aug-2010
[8748x2]
I think what I am suggesting is a MVC approach, and so clearly the 
template at the bottom is my View, and the code at the top is the 
Model and Controller.  I imagine that it would be quite simple to 
change the View with this approach
So, in this page you could have a selection of Views ready to render 
depending on user input.
Graham
10-Aug-2010
[8750x5]
I've posted an outline of the parse rule on the same page http://rebol.wik.is/Cheyenne/Page_Title/HTML_dialect

Any parse experts care to comment ...
Rule is now working ... recurses thru the div blocks
sample template and actual ouput http://rebol.wik.is/Cheyenne/Page_Title/HTML_dialect_demo

This uses the Yahoo YUI grid t1 example
http://developer.yahoo.com/yui/examples/grids/grids-t1.html
A html dialect that builds tables and such would be used outside 
of the template.. which only does a simple substitution
Oldes
10-Aug-2010
[8755]
Endo: I think it's possible to encap the Cheyenne server including 
RSP files, but it would require some hacking the code.
Kaj
10-Aug-2010
[8756]
Wasn't Doc planning a virtual file system for that?
Oldes
10-Aug-2010
[8757]
It's possible.
AdrianS
10-Aug-2010
[8758]
Henrik, is version 008 of your dialect not fully baked? What have 
you added since 007? If you could put it up on your site, I guess 
I could just diff the files to see. Also, when you say the docs describe 
005 to 007, do you mean to say that some of the docs are no longer 
relevant since they refer to the older version?
Henrik
10-Aug-2010
[8759]
AdrianS, it's about a year since I last touched it, so I can't remember 
the details. Going to see if I can find 008 build...
AdrianS
10-Aug-2010
[8760]
thanks
Henrik
10-Aug-2010
[8761x2]
http://97.107.135.89/www.hmkdesign.dk/project.rsp?id=html-dialect&page=downloads
further discussions can continue in the !HTML Dialect group
Terry
10-Aug-2010
[8763]
I've been thinking of how to separate code from display and have 
come up with the following ideas


I've seen much benefit when exchanging one syntax for another, especially 
when the 'other' moves away from a standard.
Gregg
10-Aug-2010
[8764]
Very nice Graham! 

What is the final 'div for at the end of the div-rule rule?
Terry
10-Aug-2010
[8765x2]
Oops, meant to say "I haven't seen much benefit"
or just read my original post as sarcasm :0
Graham
10-Aug-2010
[8767]
Gregg - that final 'div rule was for debugging the rule :)