World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Terry 19-Jan-2010 [7557] | Ok.. there's a pair of shoes.. that's 1.5 . Just need one more person and you'll have 2 pairs. |
Dockimbel 19-Jan-2010 [7558] | Carl: after testing, SUing Cheyenne to a non-root user works, but not for the helper processes that REBOL starts itself in its boot process (only for main process, other processes started with LAUNCH or CALL all get the proper user id). I'll make a documented report to BrianH. |
Terry 19-Jan-2010 [7559] | Here's another teaser demo.. I think it's a first. Broadcasting TTS to a page via websocket. http://shinyrockets.com/echo.html |
Dockimbel 19-Jan-2010 [7560] | Terry: thanks! Looks like I will even get a pair of dancing shoes for saturday nights! :-) |
Terry 19-Jan-2010 [7561] | hmm.. your chat an mine came through at the same time.. must be the queueing |
Dockimbel 19-Jan-2010 [7562] | Echo has a nice voice, spelling is very good AFAICT. |
Terry 19-Jan-2010 [7563] | Yeah, one of the better TTS. Ogg Vorbis 16bit |
Dockimbel 19-Jan-2010 [7564x2] | Yep, got both at the same time too. Could the lag between the button click and the response be reduced? I guess that having all the voice processing done locally (using a REBOL app) could make it realtime? |
How much data does it send to the client browser for, e.g. "hello word"? | |
Terry 19-Jan-2010 [7566] | The first message takes some time.. every repeat is quicker. |
Dockimbel 19-Jan-2010 [7567x2] | Got your last message 3 times...looks like a cache or block needs to cleared. |
to <be> cleared. | |
Terry 19-Jan-2010 [7569x2] | i clicked it 3 times in rapid sucession. |
I have a forever loop that checks the processing of the TTS.. once it's ready, it pushes it.. That's where the lag comes from. But then the .ogg file is cached, and much faster. | |
Dockimbel 19-Jan-2010 [7571] | Oh, it was just a cheering up! :-) |
Terry 19-Jan-2010 [7572x2] | Yeah :) |
There is a faster method, but saving it for other stuff. | |
AdrianS 19-Jan-2010 [7574] | Terry, is the demo not really working right now? I don't seem to get anything back. |
Terry 19-Jan-2010 [7575] | Should be working.. it's alpha though |
Dockimbel 19-Jan-2010 [7576] | AdrianS: are you using Chrome 4? |
AdrianS 19-Jan-2010 [7577x5] | yes - I did manage to get a response once |
after quite a long time | |
but it doesn't seem to work anymore | |
wow, I got a response after more than 4 minutes - is that the lag mentioned above? | |
I tried to do the same text again, but no reponse this time | |
Terry 19-Jan-2010 [7582x3] | I think i need to move some stuff into a timer.. loops in ws-apps seem to block, and create all sorts of problems. |
My goal isn't to have TTS conversations, but the ability to push TTS whenever i want. | |
I can imagine things like log analysis, and having a "intruder alert" announcement.. stuff like that. | |
Terry 20-Jan-2010 [7585] | (closing the demo now) |
MikeL 20-Jan-2010 [7586] | Doc: Dress socks funded if you address Windows Integrated Authorization for Cheyenne. |
Pekr 20-Jan-2010 [7587] | Do you mean NTLM? |
Dockimbel 20-Jan-2010 [7588] | Right, this requires NTLM to authenticate users. I've hacked once a RSP script for authenticating LAN users on a W2k domain (for a customer). It didn't worked fully from scratch, as my ntlm:// scheme needs some improvements to better deal with Windows security model (I had to make some customer specific hacks in the protocol stream). Unfortunately, these hacks seems lost, I can't find the script anymore in my archives after a quick look. |
Maxim 20-Jan-2010 [7589x3] | is there a way to specify config items using values defines in an external file? ex: www.my-site.com [ root-dir root-path-var ] |
this would simplify my life a lot. I will have 4 servers to keep in sync and their setup will be mostly the same but their environments will be different. A lot of the information is spread out in differrent tools and things... it would be nice if they could all share (loading) a single file when they start and I know I have just one "site" administration file to edit to contextualize all the configs of all my rebol-based tools. | |
(some which aren't web related) | |
MikeL 21-Jan-2010 [7592] | Petr: I need the access to work when connecting to a Windows domain or using a resource from a Windows domain. I don't know if NTLM covers this adequately when wikipedia's article says "Starting with Windows Vista, and also with Windows Server 2008, both LM and NTLM are deprecated by default." IIS allows directories to be defined to use Integrated Windows Authentication (I misteakenly referred to it as Windows Integrated Auth earlier). |
Pekr 21-Jan-2010 [7593] | LN and NTLM are deprecated in favor of NTLM2 .... |
jrichards 21-Jan-2010 [7594] | Does anyone have any example code on using either SQlite or MySQL with Cheyenne? |
Pekr 21-Jan-2010 [7595] | Hmm ... what do you mean? You normally run your CGI scripts, which can connect to SQL database, no? Dunno, how it is done in case of persisent connections ... |
Henrik 21-Jan-2010 [7596] | I'd gather that it's not much different from using the mysql-protocol.r script under normal circumstances. |
jrichards 21-Jan-2010 [7597] | Does mysql-protocol.r need to be called in each rsp page that you create? I see that Cheyenne has database configuaration properties in httpd.cfg is mysql-protocol.r already implemented in Cheyenne? Sorry for such basic questions but the documentation is fairly limited. |
Henrik 21-Jan-2010 [7598] | if you create an application (this requires some knowledge on how to do that) you shouldn't need to do that other than during the startup sequence, and then close the connection again during close of the application. |
jrichards 21-Jan-2010 [7599] | Thanks Henrik I'll study up more on app-init. It just appears that mysql-protocol.r is being loaded by cheyenne on startup because of the way database access gets defined in the cfg file. |
Henrik 21-Jan-2010 [7600] | you can do this without apps, if you want, but then you have to manage startup yourself. you can see variable persistence in a page using a page like this: <% if not value? 'x [x: 0] print x: x + 1 %> |
Dockimbel 21-Jan-2010 [7601x2] | In addition to Henrik's answers, database access can be used in two ways, either "manually", opening and closing connection yourself from a CGI or RSP script (READ mysql:// prefered in that case), or by relying on the RSP webapp API to manage persistent connections (see DO-SQL function in RSP API doc). In both cases, you need to load mysql-protocol.r. The best place for that is in the config file in GLOBALS section, just add : worker-libs [ %<path-to-mysql-file>/mysql-protocol.r ] Usually, I define a %libs/ sub-folder in Cheyenne's folder and store there all the libraries used by all my RSP or CGI scripts. |
Max: there's no built-in support for that currently. Correct me if I'm wrong, but what you ask for is a preprocessor for the config file, no? I guess you could define a unique template config file where you could use, for example, issue! values to spot all the parameters. Something like: root-dir #root-path-var#. You could then manage that template from your main location/tool, preprocess it and then emit a working file for a given server instance when needed. | |
jrichards 21-Jan-2010 [7603] | Thanks Doc, that's what I was looking for and that's what I suspected. Has SQlite.r been tested at all? |
Dockimbel 21-Jan-2010 [7604x2] | I didn't tested SQlite.r within RSP scripts. |
The following sqlite driver should work with DO-SQL : http://www.rebol.org/view-script.r?script=techfell-protocol.r | |
Terry 21-Jan-2010 [7606] | Hey doc, how can we handle loops in within do-task/on-done ? Anything i try seems to block and cause port issues. |
older newer | first last |