• 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
r4wp5907
r3wp58701
total:64608

results window for this page: [start: 16801 end: 16900]

world-name: r3wp

Group: !Cheyenne ... Discussions about the Cheyenne Web Server [web-public]
Dockimbel:
3-Jun-2007
first / normal / last : that's the position in phase list, you'd 
like for your function in a given phase
Dockimbel:
3-Jun-2007
the position determines the calling order in a given phase
Terry:
3-Jun-2007
I take it the module order in the config file is a type of position 
as well?   if the tirst module returns true, then the rest not considered?
Terry:
3-Jun-2007
I can see how that could be a bit tricky.. somewhat bug prone
Terry:
3-Jun-2007
(sounds like a module :)
Dockimbel:
3-Jun-2007
This system is very flexible, but if not carefully done, can lead 
to a messy organization. I plan to move to a more simplified system 
(but more restricted too) for Cheyenne 2.0 (not before 2008, I guess).
Terry:
3-Jun-2007
One last question for now if you don't mind.. sending a response 
back to the page.. .. is this correct?
req/out/content: "test"
Terry:
3-Jun-2007
Do you have a really basic make-response function?
Terry:
3-Jun-2007
That's great..   so very extensible.. I have a really basic core 
Chyenne, and can add mods as I go..
Dockimbel:
3-Jun-2007
I've done some stress test on a previous version of Cheyenne, it 
was sustaining around 500 concurrent connections on static pages 
requests. (RSP have a limitation of  <500 due to a design bug in 
task-master. This bug will be fixed in a few days).
Robert:
3-Jun-2007
sessions: Is it possible to add a cookie-free session handling by 
adding a session ID to the URLs?
Dockimbel:
3-Jun-2007
Session currently only use cookies. The session ID is available (session/id) 
so you could embed it in urls, but session cookies support is hardwired 
in the RSP engine, so it would require a lot of internal changes 
to not rely on cookies.
Graham:
3-Jun-2007
<%= - nice ... that'll save a bit of typing :)
Chris:
3-Jun-2007
Note: so long as QM is server neutral (i.e. it's Apache friendly), 
it will not be as efficient as it could be under Cheyenne.  I really 
would like to do a Cheyenne-only version, but not until QM is feature 
complete (and I will say 'stop' as some point :)
Chris:
3-Jun-2007
Unfortunately it's a requirement :(
Robert:
3-Jun-2007
Doc, exactly. A lot of companies don't allow cookies for their employees...
Will:
3-Jun-2007
althought the meaning of this is still a mistery for me ;-)
Will:
3-Jun-2007
anyone in a hurry to have global and per domain rewrite-rules?
Graham:
3-Jun-2007
Is there a verbose logging feature for cheyenne?
Graham:
3-Jun-2007
HTTDd.r has a verbose mode.
Will:
3-Jun-2007
may be a browser limitation, experienced same issue here depending 
on browsers, also some do not eat cookies when using ip instead of 
hostname in urls
Graham:
3-Jun-2007
Is there a possibility of using the standard sql dialect for 'do-sql 
?


eg [ {insert into table (one, two, three ) values (?,?,?)} a b c 
]
Dockimbel:
3-Jun-2007
it should work if your DB driver supports it, DO-SQL is just a higher 
level wrapper.
Dockimbel:
3-Jun-2007
Graham: it seems that I've found a bug the session expiration in 
Cheyenne, that might be the cause of your error. It's now fixed. 
I'm testing it a little more before releasing it, I'd like to fix 
the cookies issues of Brian and Terry too (one way or another, these 
issues must be related to the info Cheyenne is sending back in the 
response).
Dockimbel:
3-Jun-2007
Seems that I found the guilty for the weird session cookie issues, 
need to dig up a little more to confirm the theory.
Graham:
3-Jun-2007
so, is cheyenne querying the database after the query expecting a 
response ?
Dockimbel:
3-Jun-2007
do-sql is doing an INSERT on the database port, then a COPY on the 
port. Does your query only require an INSERT on the port and no COPY 
?
Dockimbel:
3-Jun-2007
if the client is behind a router and has a local IP NAT-ed by the 
router, no way.
Graham:
3-Jun-2007
I never do a copy on a db-port after an insert
Dockimbel:
3-Jun-2007
There's a workaround until I publish the next release (later tonight), 
use : insert databases/remr query
Graham:
3-Jun-2007
can we log this to a local log file ?
Dockimbel:
3-Jun-2007
it is tested in cheyenne.r startup code and if defined, it will try 
to catch all errors in a local %crash.log file
Dockimbel:
3-Jun-2007
Not at all Graham, I should thank you for making a big leap forward 
to Cheyenne's stability and reliability. :-)
Dockimbel:
3-Jun-2007
The session cookie problem is related to incorrect timezone calculation 
in cookies expire time. I'm making a fix for Cheyenne, but due to 
a REBOL bug on Windows (http://www.rebol.net/cgi-bin/upnews.r?view=0005), 
I can't find an easy solution for that platform...
Dockimbel:
3-Jun-2007
So I guess that I'll add a config option for setting the correct 
timezone for Windows users manually and for /Pro users, I'll support 
the GetTimeZoneInformation() win32 function for automatic setting.
Dockimbel:
3-Jun-2007
Cheyenne release v0.9.12 beta. Download at http://softinnov.org/tmp/cheyenne-r0912.zip

Changelog :


 o do-sql function improved to support RT's DB drivers. /flat refinement 
 is 
	  supported now too. ODBC insert error fixed too.
	
	o RConsole prompt changed to "Server>"
	
	o CGI's 'path-info now returns the request URL.
	

 o Fixed a bug in RSP session destruction potentially corrupting the 
 internal 
	  session list and giving weird results or behaviour.
	  

 o Fixed a timezone computation bug that was setting incorrect expire 
 times for 

   session cookies, resulting in unstable behaviour. All platforms except 
   Windows.
	  

 o Small patch to parse-request-line func in HTTPd.r to be more 'mod-rewrite 
	  friendly.
amacleod:
4-Jun-2007
I'm still not having any luck runing php scripts.  test.php does 
not produce a result...jst a blank page.
Terry:
4-Jun-2007
Nenad, proably not necessary to have a method to restart modules 
after modifying... simplly dumped the code into an external file, 
and 'do that instead.
Terry:
4-Jun-2007
um.. i 'do a script to handle my url-to-filename phase
Terry:
4-Jun-2007
Im intercepting 404s.. and processing them through a main script 
that handles the DB, generates responses etc.
Terry:
4-Jun-2007
only a true geek has fun with this stuff.
Terry:
4-Jun-2007
( I guess that makes me a geek ;)
Dockimbel:
4-Jun-2007
RE: "How does Cheyenne's performance and security stack up against 
the other indians (Apache, Cherrokee, Hiawatha, ...)?"


Speed: close to Apache2.x for static files (tested a year ago, so 
new tests need to be conducted).


Security: not chroot-ed and no special protection against ddos attacks 
like Hiawatha, no bandwidth throttling (could be added), no CGI time 
limit (could be added), passes Nikto generic security tests flawlessly 
(last time check : few months ago)
Terry:
4-Jun-2007
I think a biggy will be SSL support
Terry:
4-Jun-2007
I suppose one issue will be connecting to the library.. would require 
view/pro?  Can call the binary, but it's a less elegant solution
Terry:
4-Jun-2007
This method is for windows.. and runs a shell
Terry:
4-Jun-2007
If you want to try this method for windows.. here's what you do.. 


1) download the windows binary from openssl.. ->   http://www.slproweb.com/products/Win32OpenSSL.html

2) Unzip.. and pull out the openssl.exe file from the bin folder.. 
. drop that file into your cheyenne www folder
3) Create a self-signed cert....
3a) run openssl.exe

3b) enter this line: req -x509 -nodes -days 365 -newkey rsa:1024 
-keyout localhost.pem -out localhost.pem
(localhost is the cert name)

3c) answer the questions... when asked 'who are you?' enter your 
domain,  or 'localhost' as I did 

This will generate the cert in your www folder (this is just a demo... 
the openssl server uses it's location as root www folder)

4) Start up the server... enter this line into openssl:  s_server 
-accept 443 -cert localhost.pem -WWW


Now open any file in your Cheyenne www folder using the https:// 
 protocol
Terry:
4-Jun-2007
don't need to put into root folder (probably not a good place for 
the cert by the way)
Terry:
4-Jun-2007
You'll want to use OpenSSL to generate a cert for Stunnel to replace 
the default
Graham:
4-Jun-2007
If I have a large amount of html that I want to reuse in each page, 
rather than including it from the disk, can I define them as rebol 
variables to be reduced inside rsp pages?
Graham:
4-Jun-2007
I've converted my site to https as well using the above howto .. 
only took 2 mins.  As you say, I have to generate a new certificate.

https://www.compkarori.co.nz/
Pekr:
4-Jun-2007
I just recently received whole new website for our Xidys site ... 
it is - templates, but there is some php code in there, and it sucks 
- they did not tell me ;-) Unfortunatelly, templates are easy. They 
did a trick, when whole top, bottom section plus left menu is one 
template, and content is "included" into the template, according 
to what item you choose in the menu. The advantage is - you don't 
have repeating part on more than one place. Disadvantage is - when 
you want to display the content part, you easily can't, as that template 
waits for inclusion, does not have headers, and hence it does not 
link to css - that aproach sucks, it does not work without whole 
production environment ....
Terry:
4-Jun-2007
Chris, I basically set Cheyennes current mod-static to return false 
if 404, then created a module with the same phase with a 'if 404...' 
function. This second url-to-filename is set to 'last' in the new 
module.
Dockimbel:
4-Jun-2007
Another approach could be to install in your module a callback for 
'filter-output phase (not used in any builtin modules, yet) and test 
the return code. This way, you wouldn't need to patch mod-static 
and if you give it  order: 'first, it should be able to work even 
when I'll add callbacks to that phase. The purpose of this phase 
is to allow last minute changes on the response content, like encoding 
(think about JSON, for example), compressing (gzip, deflate) or encrypting 
it. These kinds of handlers would be installed as 'last in the phase 
callbacks order.
Dockimbel:
4-Jun-2007
I've fixed all issues related to session cookies and timezone (Windows 
platform included). Cookies strings are now only built once then 
cached, resulting in a litttle bit faster RSP processing. It will 
be included in the next version with other fixes and improvements 
in a couple of days.
Dockimbel:
4-Jun-2007
Cheyenne is a key technology for my company, so we need to improve 
it rapidly, to be able to build higher levels frameworks, tools and 
applications (most of them will be open sourced). I currently have 
the opportunity to work most of my time on that project, that's why 
you see new releases coming often. I hope to be able to continue 
at the same rate for a couple more weeks, goal is to reach a v1 release 
candidate asap (some non-essential planned features might be kick 
out for v1.x in the process).
Graham:
4-Jun-2007
I've haven't grokked modules yet ... using the above, how do I generate 
a standard 404 page?
Dockimbel:
4-Jun-2007
Pekr: sure, Cheyenne/Uniserve will benefit a lot from R3!
Dockimbel:
4-Jun-2007
Graham: maybe I've missed the meaning of your question, you were 
talking from the module perspective ? From within a module's callback, 
to generate a 404, just use : req/out/code: 404 return true
Terry:
4-Jun-2007
Im finding the 404 mods second either block [none] is not working.. 
getting a 204 'no content' error
Dockimbel:
5-Jun-2007
Terry, in theory, it should be possible to reload the module code 
while the server is running, in practice, the internal framework 
is lacking a few functions to allow you to do that. Maybe I should 
make such feature available through the RConsole service (thinking 
loud).
Dockimbel:
5-Jun-2007
A method to distinguish between SSL request (coming from stunnel) 
or normal HTTP request, is to make Cheyenne listens on 2 ports : 
80 and 443 (for example, could be any port <> 80) and configure stunnel 
to redirect the decrypted SSL traffic to port 443. Then in your RSP, 
request/server-port will tell which port was used to receive the 
request. Example :
Dockimbel:
5-Jun-2007
maybe it would be a good idea to not use 443 but, e.g., 10443 and 
make sure to have a firewall rule blocking 10443 from outside.
Dockimbel:
5-Jun-2007
if you want to experiment with such configuration, you need to change 
a few lines in cheyenne.r to make it listen on 2 ports. This is the 
procedure :
Dockimbel:
5-Jun-2007
If you can't block the traffic from outside using firewall rules, 
you can reject connections on port 10443 from within the HTTPd service 
by overloading the 'on-new-client callback and adding a check like 
this :

if all [
	client/local-port = 10443
	client/remote-ip <> 127.0.0.1
][
	close-client
	exit
]


This wouldn't be as efficient and secure as using a firewall, but 
should be suitable for most cases.
Graham:
5-Jun-2007
Just a question about session data .. is that all stored in a cookie 
so that a client can alter session data, or is just the session key 
available to the client?
Graham:
5-Jun-2007
How would I send a binary file to a client?  Do I set up the correct 
http content headers, read/binary on the file, and then print it?
btiffin:
5-Jun-2007
Isn't this just a mime-type issue?  Get the extension/file-type and 
let the browser
handle the download off a link?  Or am I missing something?
Graham:
5-Jun-2007
I'll give it a go.
Graham:
6-Jun-2007
if you wish to try it ...in FF only as IE can't see the animated 
menus


https://www.compkarori.co.nzas guest 1234 .. click on results->imaging 
, click on the Letter link, and then the link to the tif image ( 
A new one I just uploaded ).
yeksoon:
6-Jun-2007
I don't have any problem with FF.

I can see the image in FF, it's a 'Dell ad'.
Graham:
6-Jun-2007
Hmm.  Kills my PC.  Perhaps I have a problem with my PC then?
Maxim:
6-Jun-2007
tiff is a component based architecture, of which there is no standard 
on the minimal required components.  so can't even be sure of the 
direction of the image, if the image creator didn't include that 
info in the image,
Maxim:
6-Jun-2007
I've have 24 bit pictures saved from a $10k effects software load 
upside down, black & white in "the gimp".
Maxim:
6-Jun-2007
but since tiff allows people to create their own components within, 
 a few "standards" for high-end photography exist IIRC.  These usually 
include HDRI imagery and things like lens aperture and other goodies... 
now, before you get all fuzzy and warm inside.... it doesn't mean 
the data is readable by open softwares, just that its there...
Maxim:
7-Jun-2007
I have a past project which *might* need to be replaced by cheyenne... 
but I will have tons of questions for sure... and without quick response... 
I am a bit wont to put time on this fix... since I am not totally 
sure it will do what I need....
Dockimbel:
7-Jun-2007
Max: I'll be online in AltME from 9 jun to 13 jun most of the time, 
so, in this range, I should be able to answer your questions in  
12 hours max delay. But I guess other people, like Will, could also 
answer most of your questions. If you have a lot of questions,m aybe 
it would be better to send them on a private channel, or Chat channel.
Maxim:
8-Jun-2007
thanks.  is the MOD system flexible enough to allow the server to 
be something else than a "WEB" server...  more precisely, a web service, 
I already have all the XML and schema validation libs to make it... 
its just that my current server is blocking and when I relay commands 
to othe servers, it causes timeouts on new commands.
Maxim:
8-Jun-2007
has anyone succcessfully used OpenSSL, or is it still a "just use 
OpenSSL" suggestion...
Dockimbel:
8-Jun-2007
Graham: there's some experimental stuff about that in mod-internal, 
but still needs some improvement to be ready to encap a complete 
web site in the Cheyenne binary. But that's a planned feature, I'll 
provide better support for that in a week or 2.
Dockimbel:
8-Jun-2007
Maxim, I'll provide this weekend a new module for easy Cheyenne embedding 
in third-party REBOL application. It should give you all the hooks 
you need to interface with your code and build your specialized server.
Terry:
9-Jun-2007
May I help?  <- note there's a capital M and no space before the 
question mark.
Graham:
9-Jun-2007
I'm thinking this is not a good error to get ..

Script: "Untitled" (none)
## Error in [task-handler] : Make object! [
    code: 316
    type: 'script
    id: 'no-memory
    arg1: none
    arg2: none
    arg3: none
    near: [insert tail series :value]
    where: 'append
] !
/
Graham:
9-Jun-2007
I think it happened when I left the trailing %> off a rsp page.
Graham:
9-Jun-2007
How about including a global url-encode function ?
Graham:
9-Jun-2007
I've got a new problem
Dockimbel:
9-Jun-2007
Cheyenne release v0.9.14 beta. Download at http://softinnov.org/tmp/cheyenne-r0914.zip

Changelog :

o response/forward improved : 

 - fully supports URLs as argument (can now forward to another virtual 
 host).
	- URL validity check (must have an explicit target).
	- protection against cycles.


o Command line option -p extended, now you can specify several listen 
ports separated
   by a comma (ex: -p 80,10443).


o New command line option -e : load and initialize Cheyenne without 
entering the

   event loop (needed for embedding Cheyenne in third party apps).


o Added a new experimental module: mod-embed. Purpose is to allow 
easy Cheyenne

   integration in third-party REBOL applications that require an embedded 
   web
   server. (Uncomment mod-embed in httpd.cfg file to activate it)


o Added %embed-demo.r file to show a sample of the mod-embed usage 
and API. 

o RSP: <% without %> eats all the memory. Fixed.

o URL-encoded request values were not parsed correctly. Fixed.


o RSP: fixed a typo in 'decode-params blocking the multipart data 
decoding and
   also a local word ('type) leaking in GC.

o UniServe's service startup refactored to be more flexible.



The new mod-embed is experimental. Please look at the %embed-demo.r 
file and send your feedbacks here.
btiffin:
9-Jun-2007
This is somewhat historic imho.  Embedding a full featured web server...historic.
Graham:
9-Jun-2007
must be a mistake
Maarten:
10-Jun-2007
(that's a compliment ;-)
Dockimbel:
10-Jun-2007
Archive re-released with a fixed test for 'do-events.
Maarten:
10-Jun-2007
If the session ID is persistent in a DB any Cheyenne can handle the 
request
Maarten:
10-Jun-2007
Other question: how do I create a friendly URL mapping in Cheyenne? 
using the publish-site dialect?
Maarten:
10-Jun-2007
(hope I'm not too demanding, just trying to match Cheyenne against 
a lot fatures I use in my projects)
Dockimbel:
10-Jun-2007
If you're using Cheyenne in embed-mode, 'publish-site let you define 
whatever URL mapping you want. In standalone Cheyenne, there's no 
general way to define URL mapping, it's currently up to each module 
(CGI, RSP,...) to handle their specific mappings. I'm hoping that 
the future mod-rewrite will allow efficient and general URL mapping 
(there's a mod-rewrite published by Will, who could already do that).
Maarten:
10-Jun-2007
I think that embedded mode might be the killer. Especially if you 
can combine it with encapsulation on a virtual file system
Maarten:
10-Jun-2007
Is there a module writing 101?
Dockimbel:
10-Jun-2007
About the DB stored sessions shared across multiple Cheyenne instances, 
it would require a significant change in the current way session 
data and especially, session synchronization is handled (currently, 
it relies on semaphores and queuing to achieve that).
Maarten:
10-Jun-2007
OK. The other option is using a load balancer that support sticky 
sessions
Terry:
10-Jun-2007
ah ;)  yeah.. its a hassle
16801 / 6460812345...167168[169] 170171...643644645646647