• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

AltME groups: search

Help · search scripts · search articles · search mailing list

results summary

worldhits
r4wp4382
r3wp44224
total:48606

results window for this page: [start: 37501 end: 37600]

world-name: r3wp

Group: !Cheyenne ... Discussions about the Cheyenne Web Server [web-public]
Endo:
11-Jul-2010
@Graham: you are using web sockets for a wierd job. The shortest 
explanaiton for web socket is: it is the way to trigger an event 
on the client side from the server side via already open tcp (http) 
connection. ofcourse that connection is full duplex, client and server 
both can send a utf8 encoded (currently no binary) string messages 
anytime.
Graham:
12-Jul-2010
Sure .. just wondering if it's easier to do thru web ports and if 
the server can notify me thru an open port when it succeeds or fails 
rather than me poll the server
Dockimbel:
12-Jul-2010
Notification thru websocket port: sure, you can have that, but you'll 
need: a ws client for REBOL, a websocket app and a RSP script for 
that (the websocket app will need a timer to trigger queries on a 
RSP script to get the email status or hack in local MTA data to get 
the info to avoid querying a RSP script).
Terry:
12-Jul-2010
Since the File API is asynchronous, files could be loaded and processed 
in the background while the user does other things. This could also 
be useful for creating web applications that work offline.
BrianH:
13-Jul-2010
And it's supposed to be 40x faster too, since the processing is done 
client-side.
Maxim:
13-Jul-2010
well remark allows you to do this on ther server... and you could 
cache it so its just processed once.
Terry:
14-Jul-2010
Section 9 "Connectionless push and other features" in the W3 doc 
is interesting.
Graham:
26-Jul-2010
heh .. I was looking and looking and trying to find new glasses ...!
Endo:
26-Jul-2010
no, it works, and the pick function is (in pop)
pick: func [
	"Read the Nth message from the POP port" 
	port
][
	read-message port 1
]
Endo:
26-Jul-2010
I confused because, first p simply calls pick, my pick function inside 
an attempt block, so it cannot return an error.

but "first port" returns an error, if no data. its not a big deal. 
but spent some hours on it, then I saw that "pick port 1" returns 
none instead of error (as expected)

So I don't know what is different between "first port" and "pick 
port 1"
Graham:
26-Jul-2010
and pick p 1000000 is the same?
Endo:
26-Jul-2010
ws protocol is event based in its specification, so made it as no-wait. 
then and event based protocol can be built on this.
NickA:
27-Jul-2010
Endo, for the moment, use 4 spaces for tabs, and you're formatting 
will stay intact.  I'll change the script to replace tabs with spaces.
Graham:
27-Jul-2010
At present I have to manually edit the httpd.cfg and restart ( maybe 
reloading works ) Cheyenne when I add a new user.
Graham:
27-Jul-2010
I'm wonding if I can just create a new httpd.cfg from a template, 
make the changes to support the port I want to provision, create 
a sym link in the new directory and then run from the sym link...
Janko:
27-Jul-2010
Graham: domain or maybe subdomain? if subdomain and maybe domain 
also you could probably put nginx in front of cheyenne and use rewrite 
rules to do this (depending on the concrete situation)
Graham:
27-Jul-2010
And that way I wouldn't have all the issues of mismatched ssl certificates
Janko:
27-Jul-2010
for subdomains it's simple (and much cheaper than domains, since 
you don't have to buy each one) .. you use rewrite rules and modify 
domain to a get parameter that cheyenne can act on
Graham:
27-Jul-2010
And is it easy to redirect subdomains to other ip addresses?
Janko:
30-Jul-2010
what would be the best way to resize and crop an image after it's 
uploaded on cheyenne .. using commandline imgmagick, I think oldes 
was making an magemagick binding once?, are there more light ways, 
can pure rebol do it?
Janko:
30-Jul-2010
Very cool Oldes! Thanks a lot! (and cool galery on that page)
Graham:
2-Aug-2010
Godaddy allows you to create up to 99 subdomains for each domain, 
and if I choose forwarding with masking, then the browser redirects 
but the address bar remains unchanged
Oldes:
2-Aug-2010
First of all you must add DNS A records to point to your IP adress. 
And then setup your server (Cheyenne, Apache, Nginx..) to resolve 
the full subdomain.domain names.
Kaj:
2-Aug-2010
I think you want multiple subdomains, one for each user, and you 
can simplify that by defining one catch-all IP number in DNS. Then 
define all the virtual hosts in Cheyenne. You do have to add every 
subdomain to Cheyenne, but this way you don't have to maintain DNS 
for each
Will:
2-Aug-2010
if u want something nicer, multicast dns, and a superfast and well 
thought out control panel, check out dnsmadeeasy.com
Graham:
3-Aug-2010
I used encmd now ... but it still appears in the system tray.  I 
right click on the system tray icon, and use "run as a service" and 
then it stops running
Graham:
3-Aug-2010
and disappears from the running processes
Oldes:
3-Aug-2010
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
ok, so get it running as a service you need to run as administrator 
first, and then use the "run as service" menu
Graham:
3-Aug-2010
ie. the cgi, rsp and rsp web app are not
Graham:
4-Aug-2010
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
Graham:
5-Aug-2010
I've in the process of rewriting a site I built 3 years ago in YUI 
and it is so tedious and repetitive.
Janko:
5-Aug-2010
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.
Endo:
6-Aug-2010
@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.
Graham:
9-Aug-2010
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.
Graham:
9-Aug-2010
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.
Henrik:
9-Aug-2010
actually it's more high level. you get loops and mapping of blocks 
and objects to tables, etc.
Henrik:
9-Aug-2010
and I use it also on the R2 and R3 pages for GUI images, that I serve 
locally, as you have seen.
Henrik:
9-Aug-2010
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. :-)
Graham:
9-Aug-2010
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
Graham:
10-Aug-2010
sample template and actual ouput http://rebol.wik.is/Cheyenne/Page_Title/HTML_dialect_demo

This uses the Yahoo YUI grid t1 example
Graham:
10-Aug-2010
A html dialect that builds tables and such would be used outside 
of the template.. which only does a simple substitution
Terry:
10-Aug-2010
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.
Graham:
10-Aug-2010
Ok, removed the 'div and fixed a few typos
Graham:
10-Aug-2010
Terry, I'm trying to get away from mixing html and rebol inside the 
view part of the page ...  this type of stuff   Hello <%= select 
session/content 'username %> ... looks hard to maintain.
Graham:
10-Aug-2010
I've looked at some php pages with js , sql etc and it just looks 
like a nightmare to maintain
Kaj:
11-Aug-2010
That's why web devs love it so much. Job security and status as magicians
Graham:
11-Aug-2010
I think the term is alchemist, and not magician!
Terry:
11-Aug-2010
looks hard to maintain.


In PHP, I process/generate all the hypertext, and avoid the 'dynamic' 
aspect of web page creation altogether, so my page templates look 
like so;

<html>
<head>
<?= $cssincludes ?> // CSS
<?= $headincludes?> // JQuery, specific javascript functions  
</head>
<body>
<?= $body ?>
</body>
</html>
Oldes:
11-Aug-2010
As long as you have just simple pages, it's fine. You can use this 
with RSP easily as well.. but if you want to look at "hard to maintain" 
PHP code.. and have good nerves..just download Magento's sources 
and try to figure out what's going on.
Graham:
22-Aug-2010
This is a little odd .... I created a PDF and sent it back to the 
browser using the response, and application pdf, and the browser's 
security prevents it from downloading ....on some of the user's PC's 
( at a hospital ), but if I write the pdf to the disk and then redirect 
the browser to the file in the www directory, there's no complaint!
Oldes:
23-Aug-2010
Use wireshark and check for differencies
Graham:
23-Aug-2010
The difference is between a GET and POST ... I wonder if the hospital 
has configure their security this way
Oldes:
23-Aug-2010
And cannot you store the generated PDF in temp and redirect to it's 
location using the GET request?
florin:
24-Aug-2010
Graham: Terry, I'm trying to get away from mixing html and rebol 
inside the view part of the page ...  this type of stuff   Hello 
<%= select session/content 'username %> ... looks hard to maintain.
florin:
24-Aug-2010
Wicket and Click are great example of how to get away from using 
scripting inside template files or even tags.
florin:
24-Aug-2010
The question is the remark you make to Terry: I'm trying to get away 
from mixing html and rebol inside the view part of the page ...  
this type of stuff   Hello <%= select session/content 'username %> 
... looks hard to maintain.
Graham:
24-Aug-2010
So chyenne loads page.html and does what?
Graham:
24-Aug-2010
And is it inside a webapp?
Graham:
25-Aug-2010
and most html is dynamically generated for me ...
Graham:
25-Aug-2010
I'm assuming that the JS and HTML are part of your template
Graham:
25-Aug-2010
well, the current rsp script name may be accessible ..and if so, 
you can just load in the html page
Graham:
25-Aug-2010
so your "rsp" page could be .html and the template .htm
florin:
25-Aug-2010
And so I did. Then I used the app-init.r to test the results, and 
the before and after page intercept did not work.
Graham:
25-Aug-2010
and does rsp execute at all?
Graham:
25-Aug-2010
and it does when you use a rsp extension
florin:
25-Aug-2010
The re-usability that you are looking for (i.e. the JS, etc) could 
be met with a simple configuration file and page fragements.
Graham:
25-Aug-2010
but .. show me the pudding and I'll eat it :)
florin:
25-Aug-2010
:) We need to write some code then. See ya. And thanks for the time.
florin:
25-Aug-2010
I don't find much use of rebol view. I'm interested in browser based 
stuff, and that's the only way I'd spend time with rebol. I'd love 
to take a look at Temple.
Graham:
25-Aug-2010
Interesting item from the past .. both Brett and Andrew have droppped 
out of the Rebol scene ... the latter not by choice though
Gabriele:
26-Aug-2010
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
Gabriele:
26-Aug-2010
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:
27-Aug-2010
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
Kaj:
29-Aug-2010
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
Gabriele:
30-Aug-2010
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
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:
4-Sep-2010
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
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.
Dockimbel:
6-Sep-2010
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).
Dockimbel:
6-Sep-2010
This is what the SDK license says (so related to any encapping kernel): 
[...]

REBOL API Restriction. If you choose to export the REBOL API (function 
and objects of REBOL) for users of programs created by REBOL/SDK 
(in other words, you allow users of your programs to write and execute 
REBOL scripts within your program), you must obtain a separate commercial 
distribution license from REBOL Technologies. If your program does 
not allow users to access the REBOL API, then no additional license 
is required.
[...]
http://www.rebol.com/docs/sdk/sdkintro.html
Dockimbel:
6-Sep-2010
Pekr, the definition : "(in other words, you allow users of your 
programs to write and execute REBOL scripts within your program)" 
seems broad enough to me to include CGI. But as I'm not a native 
english speaker, I might understand it wrongly.
Graham:
6-Sep-2010
I discussed this with Carl before and it's okay.
Graham:
6-Sep-2010
Anyway it seems that restriction is now obsolete as ssl and odbc 
are now free.  And IOS is dead.  The license prevented you from creating 
a clone of IOS
Graham:
7-Sep-2010
I updated to the lastest svn and encapped using encmd.exe from 14 
March 2008
Graham:
7-Sep-2010
It says on hover, listening on port 8000 and cgi/rsp/html work
Graham:
7-Sep-2010
I click on the run as service and it changes to "Cheyenne is running" 
with no port now specifed.  Html/rsp and cgi all now fail.
Dockimbel:
7-Sep-2010
I confirm this behaviour, but if you launch Cheyenne by using right-click 
on cheyenne.exe and select "Run as administrator", then once in service 
mode, it works ok.
Graham:
7-Sep-2010
Yes, though oddly that's is what I first tried and it didn't work. 
 Which is why I switched to running from the dos shell.  Maybe I 
didn't get the right sequence!
Dockimbel:
7-Sep-2010
Because Cheyenne must start as root user to be able to open listen 
ports < 1024, then only, SU to a non-root user. Unfortunately, all 
the log files generated during the root phase of Cheyenne's boot 
process are owned by root, so can't be used anymore once su-ed to 
a non-root user. An easy way to fix that (but looks a bit ugly to 
me) could be to chown( ) / chgrp( ) all generated log files before 
giving up root rights...A cleaner way would involve rethinking the 
whole boot up process of Cheyenne and Uniserve with deep code architecture 
impacts (too much work). Any idea on the best way to solve these 
issues are welcome.
Dockimbel:
8-Sep-2010
re Cheyenne PID: your OS ID returned by system/version/4 might not 
be the same as the Linux one. Open %misc/os.r and add a new entry 
in the SWITCH block with your system/version/4 value and [%misc/unix.r], 
then try again.
Kaj:
8-Sep-2010
I see it only evaluates that when it finds the library interface, 
and that is still not available in R2/Core
Dockimbel:
8-Sep-2010
Strangely, it just worked now...I've tried it several times a few 
minutes ago and was getting only some parts or nothing at all...
Kaj:
8-Sep-2010
No, I complained about it on RebDev, but no response, and no promised 
2.7.8
Dockimbel:
8-Sep-2010
Kaj: I'm applying your patch on mod-userdir.r. I'm changing the user 
/ group arguments datatype from word! to string!, this both reduces 
the code size in mod-userdir and makes the dialect less confusing 
IMO when you use named uid/gid. So, instead of :

user www
group users

we'll have now :

user "www"
group "users"

Do you agree with that change?
Carl:
9-Sep-2010
And, in Core and others, could be cmd line option.
Kaj:
9-Sep-2010
Carl, did you see our above discussion on getting Cheyenne to shed 
root access, and my request in R3 Chat to have Library access enabled 
in R2/Core?
Graham:
9-Sep-2010
rebcmd has odbc, ssl and library access.
Dockimbel:
10-Sep-2010
Making the REBOL side process a command-line option for /Core and 
build option for /Command would be a good improvement.
Graham:
15-Sep-2010
I deleted the app-init.r and still get the error
37501 / 4860612345...374375[376] 377378...483484485486487