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

Dockimbel
19-Jun-2011
[10801]
If you need a really simple one, they are several on rebol.org that 
could work for you, like Carl's micro web server script.
Henrik
22-Jun-2011
[10802x2]
back to my problem from april 19th: is anyone using webapps under 
a virtual host?
I have tried to use the testapp on Dockimbels request, but it serves 
only non-functioning rsp pages on http://hmkdesign.dk.
Dockimbel
22-Jun-2011
[10804]
Henrik, if you haven't solved yet your configuration issue, you should 
send me your working directory archived along with your configuration 
file, so I can see where is the issue.
Henrik
22-Jun-2011
[10805x2]
Unfortunately that woud take a while to pick apart as I have other 
pages running on that server.
The testapp script makes this error:

22/6-21:54:04.832205-[RSP] ##RSP Script Error:

        URL  = /show.rsp
        File = /home/henrikmk/sites/testapp/show.rsp


        ** Script Error : empty? expected series argument of type: series 
        port bitset
        ** Where: rsp-script
        ** Near:  [either empty? session/content [
print "<LI>No session variables</LI>"
] [
foreach [name value] session/content [
print [<LI> <B> name ":" </B> mold value </LI>]
]
]]
Dockimbel
22-Jun-2011
[10807x3]
Are you overwriting 'session word somehow?
Strange error, having a quick look in RSP.r code.
A session has not been started, which is not possible if it's in 
a webapp.
Henrik
22-Jun-2011
[10810x2]
Is this not the same as if app-init.r was never run?
it's the same as for my webapp. app-init.r never runs, when it's 
inside a virtual host.
Dockimbel
22-Jun-2011
[10812x2]
The session is controlled from the main process, the %app-init cannot 
interfere on session/content loading.
What Cheyenne version are you using?
Henrik
22-Jun-2011
[10814]
a fairly late one. I upgraded shortly before april 19th.
Pekr
24-Jun-2011
[10815]
There is following tweet of Rebol Tutorial. Any advice?

rebtut rebolution is fun

rebol cheyenne works on IP only http://88.191.118.45:2011/ not on 
domain name weird http://reboltutorial.com:2011
Dockimbel
24-Jun-2011
[10816]
He probably has not configured properly his virtual host.
nve
9-Jul-2011
[10817x3]
Does anyone has implemented %html.r extract from Magic! (from Olivier 
Auverlot) under Cheyenne ?
Does anyone is using QM from Chris RG under Cheyenne ?
What are the contribution to Cheyenne ?
Service by Maxim...
Kaj
9-Jul-2011
[10820]
I used QM with Cheyenne
nve
9-Jul-2011
[10821]
Kaj: Cool, is the site is online or just internal ?
Dockimbel
9-Jul-2011
[10822]
I am the author of the NT Services support for Cheyenne.
Kaj
9-Jul-2011
[10823x2]
Nicolas, TryREBOL used to run on QM for the interactivity, but I've 
replaced it with my own framework now
It's still in Syllable Server configured for Cheyenne, though
nve
10-Jul-2011
[10825]
And your own framework is intended to be public ?
PeterWood
10-Jul-2011
[10826]
I believe that  "modexpires" was contibuted by Will Arp
Kaj
10-Jul-2011
[10827]
Nicolas, no, my framework is intended to stay closed, at least for 
some time
nve
10-Jul-2011
[10828x3]
How to access to root-dir in Cheyenne ?
If you are within a Webapp, probe request/config will return virtual 
root.
But outside webapp, probe request/config will return root-dir defined 
in httpd.cfg
Dockimbel
10-Jul-2011
[10831]
Your webapp definition needs to contain a 'root-dir directive.
Maxim
10-Jul-2011
[10832]
nve, did you mean, what other external contributions have been done 
to cheyenne?

or where you looking for documentation (and the code) for the web-services 
module I did?
nve
11-Jul-2011
[10833]
Yes external contributions, sorry for my english.

I know that you did web-services module, but I want to know if there 
are another external module.
nve
13-Jul-2011
[10834]
I've been working on a micro MVC framework for Cheyenne.
Need to make a little documentation.
Use webapp power.
ddharing
5-Oct-2011
[10835x2]
FYI: I've been doing some web sockets testing with Cheyenne. It seems 
that the specification is still a fast moving target. The browsers 
are trying to keep up, but server implementations (like Cheyenne) 
are breaking. For example, the Cheyenne web socket samples work with 
Chrome 12 on Ubuntu, but not with Chrome 14 or Safari 5.1 on Windows. 
I'm going to try the iPad tomorrow.
A good site to test web socket support in your browser is http://websocketstest.com.
It will even show the specification draft that your browser supports. 
It's different in Chrome 12 and Chrome 14.
Kaj
5-Oct-2011
[10837]
Thanks, good info
Endo
5-Oct-2011
[10838]
http://www.websocket.org/is also a good site, it has good info 
about websockets.

by the way, if you use Opera Web Browser and want to test websockets, 
type opera:config to address bar, then type websocket to the search 
box and click on Enable WebSockets.
ddharing
5-Oct-2011
[10839]
Endo, thanks for the Opera info. I did not know that and could not 
get Opera to work today.


BTW, I don't think that websocket.org is keeping up. Like Cheyenne, 
I can't get Chrome 14 or Safari 5.1 on Windows to run the Echo test. 
Does it work for you? I tried 4 Windows machines running XP and Vista.
Endo
6-Oct-2011
[10840]
Hmm it is strange I just tested the echo test on the http://www.websocket.org/
site when I post the message above and it was working. I test it 
with Maxthon 3 browser. But now it doesn't work with either Opera 
 nor Maxthon..
Kaj
6-Oct-2011
[10841]
It doesn't work with Firefox, either
amacleod
17-Oct-2011
[10842x4]
<?php
$contact = array("name" => "Ben");
$contact_encoded = json_encode($contact);
header('Content-type: text/html');
echo $_GET['callback'] . "(" . $contact_encoded . ")";
?>
Anyone know the rebol equivalent to the above code?
And would it work in cheyenne?
I most interested in the call back line to send json encoded data...i 
can't get a jquery script to accept anything I send back
ChristianE
17-Oct-2011
[10846x2]
If you want to send JSON, you'd better set an apropriate MIME media 
type with e.g.

<% response/set-header 'Content-Type "application/json" %>


Cheyenne has no JSON converter, but you'll find something at http://www.ross-gill.com/page/JSON_and_REBOL
.
And maybe it's a good idea to try to serve some static JSON data 
first instead of generated data to narrow down where the problems 
are.
amacleod
17-Oct-2011
[10848]
Christian, The data in eh browser looks right now...thanks, but teh 
jquery script is still not working. I believe it has to do with the 
callback or lack there of ...
Gabriele
18-Oct-2011
[10849]
that seems to be returning javascript (ie. a call to a JS function), 
rather than JSON...
Andreas
18-Oct-2011
[10850]
(Which some people call JSONP.)