AltME groups: search
Help · search scripts · search articles · search mailing listresults summary
world | hits |
r4wp | 56 |
r3wp | 188 |
total: | 244 |
results window for this page: [start: 1 end: 100]
world-name: r4wp
Group: #Red ... Red language group [web-public] | ||
Kaj: 29-Jun-2012 | integer-reference!: alias struct! [value [integer!]] | |
Kaj: 10-Jul-2012 | An ALIAS is handy for such cases | |
Kaj: 16-Aug-2012 | What happens with alias detection in contexts? | |
Kaj: 16-Aug-2012 | For example, I have a check type = system/alias/gtk-window! | |
Kaj: 16-Aug-2012 | Should that become system/alias/gtk/window! in a GTK CONTEXT? | |
DocKimbel: 16-Aug-2012 | Alias: let me check that... | |
DocKimbel: 16-Aug-2012 | So it should be: system/alias/gtk-window! unless there are bugs (I think we haven't tested mixing aliases with namespaces). | |
Kaj: 16-Aug-2012 | But system/alias/window! will lead to clashes with window!'s in different contexts | |
Kaj: 16-Aug-2012 | I'll have to keep alias names prefixed. We'll see if I can keep that from leaking through in dialects | |
Kaj: 16-Aug-2012 | Aliases in Red/System are names for C-like structs. It's quite a different concept as anything that would be called an alias in REBOL | |
DocKimbel: 16-Aug-2012 | In Red, I'm not sure that I will implement ALIAS support (as in REBOL), it seems that's a feature that has been very rarely used since the beginning of REBOL. | |
DocKimbel: 16-Aug-2012 | I'm not sure ALIAS could be implemented in Red, we'll see, if it's not costly, I'll add it. | |
Kaj: 16-Aug-2012 | Now that non-English languages are up-and-coming in programming, it could solve the fragmentation of the available code pool, if you would implement an extra feature that would allow code to be saved and loaded with an ordered list of preferred alias languages | |
Jerry: 16-Aug-2012 | for making Chinese Alias | |
BrianH: 16-Aug-2012 | Doc, aliases are used in R3 internally to implement case-insensitive words. Explicit use of the ALIAS function is rare and unsafe though, so it's been recommended that the function be removed. | |
PeterWood: 16-Aug-2012 | How much of an overhead is there from using this mechanism over alias: my-alias-of-print: :print | |
DocKimbel: 16-Aug-2012 | No overhead, but it's not equivalent to an alias. | |
DocKimbel: 16-Aug-2012 | Brian: I think that was the case for R2 too? I used the same trick in r-sharp, so ALIAS was coming almost for free. | |
kensingleton: 1-Oct-2012 | >> do/args %rsc.r "%tests/mine/fibonacci.reds" Script: "Red/System compiler wrapper" (none) -= Red/System Compiler =- Compiling tests/mine/fibonacci.reds ... Script: "Red/System IA-32 code emitter" (none) *** Compilation Error: alias name already defined as: [str uct! [ item [c-string!] ]] *** in file: %runtime/common.reds *** at line: 61 *** near: [ str-array!: alias struct! [ item [c-string!] ] typed-value!: alias struct! [ type [integer!] value [integer!] _padding [integer!] ] ] | |
kensingleton: 1-Oct-2012 | Kaj, downloaded the Zip file from Fossil and re-ran (after sorting paths to files) and get the same problem as already posted. The problem is not file locations as that results in a different compiler error which is easily sorted. It seems to me in the problem I have posted, the compiler thinks there is already an alias called str-array! - however I have searched every reds file and there is no other with that name! Anyway, it is not urgent but I just wanted to feed back my findings to you. | |
Kaj: 18-Oct-2012 | For example, I've noted the alias! issue before. As long as all code is compiled together, alias numbers are a good interface, like symbol IDs are assigned at runtime in REBOL. But when precompiled code needs to communicate they become useless, hence why the R3 interface makes efforts to map symbols to known numbers | |
Kaj: 18-Oct-2012 | Red/System is already easy to expose to other languages, because it's C compatible, and you made the dynlib interface. :-) However, alias IDs break it | |
DanielN: 26-Oct-2012 | -= Red/System Compiler =- Compiling RedGTK/examples/hello-GTK-world.reds ... *** Compilation Error: alias name already defined as: [struct! [ item [c-string!] ]] *** in file: %runtime/common.reds *** at line: 62 *** near: [ str-array!: alias struct! [ item [c-string!] ] typed-value!: alias struct! [ type [integer!] value [integer!] _padding [integer!] ] ] | |
DanielN: 29-Oct-2012 | Run-All v0.8.2 Quick-Test v0.9.1 REBOL 2.7.8.4.2 Red/System Test Suite ok - logic.............................81 / 81 ok - byte..............................40 / 40 ok - c-string..........................20 / 20 ok - struct...........................116 / 116 ok - pointer...........................69 / 69 ok - cast..............................88 / 88 ok - alias.............................23 / 23 ok - length............................11 / 11 ok - null..............................11 / 11 ok - enum..............................19 / 19 ok - float.............................60 / 60 ok - float32...........................55 / 55 ok - lib...............................13 / 13 ok - get-pointer........................5 / 5 ok - float-pointer.....................61 / 61 ok - namespace........................109 / 109 ok - not...............................44 / 44 ok - size..............................37 / 37 ok - function...........................6 / 6 ok - case..............................64 / 64 ok - switch............................85 / 85 ok - exit...............................9 / 9 ok - return............................25 / 25 ok - modulo............................29 / 29 ok - math-mixed.......................114 / 114 ok - infix..............................2 / 2 ok - conditional.......................13 / 13 ok - common............................16 / 16 ok - byte-auto.......................3636 / 3636 ok - integer-auto....................2778 / 2778 ok - maths-auto......................1661 / 1661 ok - float-auto......................1617 / 1617 ok - float32-auto....................1023 / 1023 ok - alias-compile......................3 / 3 ok - cast-compile......................16 / 16 ok - comp-err...........................2 / 2 ok - exit-err...........................3 / 3 ok - int-literals-err...................1 / 1 ok - output.............................3 / 3 ok - return-err.........................5 / 5 ok - conditions-required-err...........23 / 23 ok - inference-err......................1 / 1 ok - callback-err.......................2 / 2 ok - infix-compile......................3 / 3 ok - not-compile........................1 / 1 ok - print..............................3 / 3 ok - enumerations compile..............12 / 12 ok - pointer-compile....................2 / 2 ok - namespace compiler tests...........5 / 5 ok - Red/System Test Suite..........12031 / 12031 in 0:00:42.94891 | |
BrianH: 23-Nov-2012 | If by "aliases" you mean multiple words with the same values assigned to them, or something like C-style typedefs, then yes. If by "aliases" you mean the multiple-spelling words generated by R2's ALIAS function, then please no. R2-style aliases that aren't limited to spelling differences that only differ in character casing have proven to be a bad idea. | |
Arnold: 23-Nov-2012 | I was not completely sure Ladislav. The 'multiple spelling words generated by R2's ALIAS function' part I do not understand. | |
BrianH: 23-Nov-2012 | Right. Casing R2-style aliases are OK, and that is how case-insensitive words are implemented in R3 (and in R2?). Aliases which differ of something other than case cause major problems, corrupting object access when the other spelling already exists as a separate word in the same context, as happens automatically in R3 when the word is loaded in the user script to be passed to the ALIAS function as a parameter. That's why there's a ticket to remove the externally visible ALIAS function from R3. Just assigning the same value to another word, as Arnold suggests, is OK (and is what some other languages mean when they talk about "aliasing" so I understand your confusion). | |
Arnold: 23-Nov-2012 | I read the docs http://www.rebol.com/docs/words/walias.htmland as I understand it stampa: :print differs from alias 'print stampa because the latter does this in a way where ALL occurences of stampa even in different contexts are 'replaced' whereas the first form only applies to the current or global context not interfering with local usage. Is that about it? | |
Ladislav: 23-Nov-2012 | Actually not, the difference is even deeper. Like this: alias 'xxx "yyy" xxx: 1 yyy ; == 1 yyy: 2 xxx ; == 2 | |
BrianH: 23-Nov-2012 | Almost. It doesn't "replace" the word in all contexts, it registers another spelling for the word in the place where word symbols are stored, then when you refer to the word with either spelling it will point to the *same* word. However, if you write code like this: alias 'print 'stampa then that code, just by being loaded, creates two words in the user context with those two spellings. So when the ALIAS function links the two spellings then there is a conflict in the user context, where "stampa" refers to both the word 'stampa and is an alias for the word 'print and at runtime you can't really tell which word you mean. If the system resolves this conflict by resolving to the alias then you have overriden the original word, which makes ALIAS a security exploit. If it resolves to the original word then ALIAS simply doesn't work. Either way, the function needs to go away ASAP. | |
Arnold: 23-Nov-2012 | I see the bad side. Alias shoul dnot have that big an impact unless an alias was designed on purpose into the language. For instance a support a complete spanish/chinese version for educational purposes? | |
Ladislav: 23-Nov-2012 | That was the intended use, but it did not take off, as it looks. Virtually nobody uses the ALIAS function. | |
BrianH: 23-Nov-2012 | Arnold, you can support a complete chinese or spanish version of R3 using a module and those worda: :wordb value assignements, no ALIAS required. But it would be a mistake to do that for educational purposes, because it would get in the way of them learning regular Rebol/Red code. You might want to do that for non-educational reasons though. | |
Maxim: 23-Nov-2012 | aliases can be used with refinements which is a bit weird >> alias 'any "xxxxxxx" >> get/xxxxxxx 'red == 255.0.0 | |
Arnold: 23-Nov-2012 | who is going to drop ALIAS from R3-open-sourced? | |
BrianH: 23-Nov-2012 | I hope that it will be one of the first things done. The internal aliasing functionality is fine and should be still supported, but it should be locked down so it won't be possible to make an external ALIAS function. It even existing is a major problem. | |
BrianH: 23-Nov-2012 | (Sorry Doc about the off-topic stuff) And open-source forks that try to alter R3 to make ALIAS possible again will thus be that much less stable ond secure, so it will be an argument against their use. ALIAS is hostile to the R3 system model, and everything it might be a good idea to use ALIAS to do in R2 can be better done with other methods in R3. | |
Kaj: 23-Nov-2012 | Brian, Maxim, the point of ALIAS is that it works with refinements. : : value assignments can't do that | |
Kaj: 23-Nov-2012 | The Chinese are going to take over the world, and they may well consider it an educational mistake to translate their Chinese R3 fork to English. To prevent having to learn Chinese, you could translate it back with ALIAS | |
BrianH: 23-Nov-2012 | Right. As opposed to ALIAS, which can bring your system to a crashing halt, if you're lucky; if you're not lucky it will fail silently and stay a security hole. | |
BrianH: 23-Nov-2012 | To illustrate my point in a dumb way: alias 'true "false" | |
Kaj: 23-Nov-2012 | Programming is a security hole. If you want to allow people to do safe programming, you have to make it safe by disallowing many things. That would obviously include ALIAS | |
Kaj: 23-Nov-2012 | I will happily allow people to use ALIAS on my Try REBOL server, just like I'm allowing most other REBOL features, because the server operating system is the party that establishes safe boundaries | |
Kaj: 23-Nov-2012 | You are welcome to try our server to see if you can break it with ALIAS | |
Kaj: 7-Dec-2012 | A faster encoding would be to reserve a part of the integer identifier for the alias number, for example one byte. That would reduce the number of different symbols to 2^24 and the maximum number of aliases for one symbol to 256. That would only allow a word up to 8 characters to have all its aliases, but it would be cheap to evaluate for both strict-equal? and equal? | |
DocKimbel: 8-Dec-2012 | I have implemented a compile-time aliasing system for same words but different casing. It works fine so far and is cheap compared to other options (it requires a conversion table (symbol->alias) to be maintained during the compilation). | |
DocKimbel: 8-Dec-2012 | Aliases are already implemented in the symbol! type. Basically a word! relies on a symbol ID, which is an entry in the symbol table. Each entries in this table is a symbol! value that references the internal Red string! value and a possible alias ID (which is just another symbol ID). Now, I just need to add alias handling in the equal? and strict-equal? natives when applied on words to make it work correctly. | |
PeterWood: 21-Dec-2012 | This any help? Red/System [] a!: alias struct! [ a1 [integer!] a2 [integer!] ;; this is used to hold address of struct b a3 [integer!] ] f!: alias function! [s [a!]] f: func [s [a!]] [print [s/a1 lf]] b!: alias struct! [ b1 [f!] ] a: declare a! b: declare b! a/a1: 5 a/a2: as integer! b a/a3: 0 b/b1: as f! :f foo: as f! b/b1 foo a | |
DocKimbel: 21-Dec-2012 | Jerry: if I understand correctly, what you want to achieve is: Red/System [ ] structA!: alias struct! [ p [structB!] ] structB!: alias struct! [ fun [function! [a [structA!]]] ] As is, it won't compile in Red/System as structB! is not yet defined when defining structA! (and the compile is making a single pass only, so can't look ahead). The workaround is to define `p` as integer! and use type casting when accessing it. Also note that if you reverse the order of definitions and start by defining structB!, you could use the same workaround for `a` argument type (define it as integer!, then apply type casting when appropriate). | |
Arnold: 21-Mar-2013 | Thanks for removing q alias of quit !!! Thank you thank you thank you!!!! | |
Gregg: 25-Mar-2013 | My first reaction was the same as Endo and Bolek, because I'm used to the way it is. I rarely have to alias a loop counter for access outside the loop, and I like the language being smart enough to help me, so I don't have to declare these things all the time, or worry about leakage. However, my recent work on the idea of a new, general LOOP func (%mezz/new-loop.r here for those who didn't follow it) made me keenly aware of loop costs. I've only had a few instances where it really mattered, but I've still almost always avoided FOR, for performance reasons. Doc thinks things through carefully, and he has already said that FUNCTION could probably be smart enough to handle things for us, but we would have to consider how that works, to avoid environment dependent behavior. And how it affects very simple map/filter funcs. That is, do those one-liners now need /local specs. | |
Kaj: 28-May-2013 | There's a gtk alias for gtk+ :-) | |
XieQ: 24-Jun-2013 | Now in Red/System, we can't pass a function as parameter to Red/System FUNC, but we can pass it to external C FUNC, right? cmp-func!: alias function! [left [byte-ptr!] rihgt [byte-ptr!] return: [integer!]] quick-sort: func [ base [byte-ptr!] n [integer!] size [integer!] cmp-func [cmp-func!] ][ ; can't use cmp-func in this function ] | |
XieQ: 24-Jun-2013 | Red/System [] cmp-func!: alias function! [left [byte-ptr!] right [byte-ptr!] return: [integer!]] cmp-int: func [ left [byte-ptr!] right [byte-ptr!] return: [integer!] /local a b ][ a: as int-ptr! left b: as int-ptr! right a/value - b/value ] bar: func [ cmp-func [cmp-func!] ][ a: 1 b: 2 print cmp-func :a :b ] bar :cmp-int | |
Group: Rebol School ... REBOL School [web-public] | ||
Rondon: 27-Mar-2012 | I'd like just to read this url using rebol http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dstripbooks&field-keywords=%22information+visualization%22#/ref=sr_st?keywords=%22information+visualization%22&qid=1332843525&rh=n%3A283155%2Ck%3A%22information+visualization%22&sort=daterank | |
Gregg: 22-Mar-2013 | That is, do we address it in the implementation or naming (e.g. alias closure as async-func), or in docs that explain why it doesn't work. |
world-name: r3wp
Group: RAMBO ... The REBOL bug and enhancement database [web-public] | ||
[unknown: 5]: 24-Dec-2005 | Anyone else see the problem that I see with 'alias: http://www.rebol.net/cgi-bin/rambo.r?id=3986& | |
[unknown: 5]: 24-Dec-2005 | I'm not saying that it doesn't bind a word to system/words - its just my opinion that it shouldn't do so until it correctly ensuring the syntax is correct of the alias function | |
[unknown: 5]: 24-Dec-2005 | ; for example if you do the following improper statement of the alias function alias print "blah" '; you will get an error message but then after you get the error message you will see that it still created 'blah in system/words | |
Volker: 27-Dec-2005 | thats why the alias is a string. Else it would be loaded before 'alias is executed. | |
Anton: 28-Dec-2005 | (Not me.) Paul, go to a fresh console and type >> hello and press Enter. Now you can see it was added to system/words: >> last first system/words == hello So it is now unavailable to be used as an alias. >> alias 'print "hello" ** Script Error: Alias word is already in use: hello ** Near: alias 'print "hello" | |
Group: View ... discuss view related issues [web-public] | ||
Ashley: 7-Mar-2005 | Poking around a bit in the View executable (1.2.10.3.1) I "discovered" the following undocumented words (and have assumed they belong to the indicated facet based on the position of other known words). I've worked out what a few of them do, anyone care to comment on the others (or point to documentation if covered elsewhere). Draw -------- fill font Effect -------- dither alphamul anti-alias func merge ; I know this was covered, just can't find where chisel view layout [box 20x40 effect 'chisel box 40x20 effect 'chisel] round view layout [box 20x40 effect 'round box 40x20 effect 'round] Feel -------- inactive active Options -------- parent view/new a: layout [size 400x400] view/new/options layout [size 200x200] compose [parent (a)] do-events min-size view/options layout [box blue 400x400] [resize min-size 200x200] activate-on-show | |
Group: I'm new ... Ask any question, and a helpful person will try to answer. [web-public] | ||
ChristianE: 9-Jun-2005 | Why not show them SIN: :SINE , COS: :COSINE or ALIAS 'COSINE "COS" etc.? They'd sure be baffeled again, but probably would dislike REBOL's strict left-to-right evaluation of formulas instead of having a bunch of operator preceedence rules to remember, too :) | |
Allen: 4-Sep-2007 | ; interesting question ... Rebol lets me spell it "colour" if I really want to :-) alias 'color "colour" view layout [label with [colour: red] "hello"] | |
Joe: 26-Nov-2007 | Gabriele, when you have multiple alias per nic and multiple nics, how do you go about picking a specific interface for a network connection | |
Group: Parse ... Discussion of PARSE dialect [web-public] | ||
Gabriele: 11-Dec-2006 | >> alias 'a "aa" == aa >> strict-equal? 'A 'a == false | |
Group: Linux ... [web-public] group for linux REBOL users | ||
Graham: 7-Nov-2008 | I looked at the etc/aliases but you can't seem to alias to outside | |
Anton: 15-Mar-2009 | To do 1, it may help to use this console command after an install. alias recent='find . -type f -printf '\''%TY-%Tm-%Td/%TT %p\n'\'' | sort' | |
Maxim: 24-May-2009 | I am sourcing a file with alias commands in them, but they aren't actually being applied. typing those exact commands directly in the shell works. I know alias is not a file command, but a bash internal operation, but how can I get bash to source the files and apply the aliases to my login automatically? the echo within the file IS printing on the shell, so its not just chmod thing... any linux gurus can help me? | |
Maxim: 24-May-2009 | its possible define an alias for "/" , for example, which bash doesn't understand. | |
Kaj: 24-Oct-2009 | You could try xorg-fonts-alias, in case a font is installed but not found because the name doesn't match | |
Group: AGG ... to discus new Rebol/View with AGG [web-public] | ||
Cyphre: 30-Dec-2005 | Ok, so here it is: -fixed image keying bug (swapped color components in keying tuple!) -line width is now now changing according to scale -fixed rendering of transformed images(now uses aplha premultiplied data) -fixed LINE-PATTERN bug (multiple line patterns in DRAW block should work properly now) -fixed MATRIX bug(wrong matrix calcualtion was corrected in this case) -fixed SKEW command inconsistency (now it takes degrees as arguments instead of radians) -fixed FILL-PEN bug when filling images (now it doesn't render images upside down) -fixed ANTI-ALIAS cmd(now it is possible to switch this mode within one DRAW block) -removed POP command (was obsolete, PUSH with block! arg is used instead) -fixed fill/outline pixel aligning problem -fixed visual bug when rendering circle with line-width > 1 -fixed text character encoding problem -improved gradients: added REFLECT and REPEAT modes, example: view layout [ origin 0 box 400x460 effect [ draw [ pen none fill-pen linear 10x10 0 190 0 1 1 black red green blue black box 10x10 390x90 fill-pen linear 10x160 0 190 0 1 1 black red green blue black repeat box 10x100 390x180 fill-pen linear 10x310 0 190 0 1 1 black red green blue black reflect box 10x190 390x270 fill-pen radial 80x350 0 20 0 1 1 black red green blue black circle 80x350 70 fill-pen radial 190x350 0 20 0 1 1 black red green blue black repeat circle 190x350 70 fill-pen radial 320x350 0 20 0 1 1 black red green blue black reflect circle 320x350 70 ] ] ] | |
Dockimbel: 26-Feb-2007 | The ANTI-ALIAS command doesn't seem to have any effect on TEXT rendering. Odd, the docs says otherwise : "The ANTI-ALIAS command currently affects the entire DRAW effect; the last value you set it to is what will be used for all draw commands in the block". | |
Steeve: 26-Feb-2007 | IIRC anti-alias affects only vectorial text, not the standard one | |
Cyphre: 27-Feb-2007 | Dockimbel: You have to always specify the TEXT rendering mode. Maybe the text mode could be set by separate command in later versions? The ANTI-ALIAS command works for all vectorial shapes and doesn't affect TEXT in other than vectorial mode. (the docs needs to be fixed in this case) | |
Gabriele: 4-Jun-2007 | fill-at - that's a problem with anti-alias | |
Group: Dialects ... Questions about how to create dialects [web-public] | ||
Gabriele: 26-Jun-2010 | you can use ALIAS to "change" the words used by PARSE or any other dialect. | |
Fork: 26-Jun-2010 | @Gabriele: BrianH says alias is dooooomed. But he seems to have alternatives in mind. Hopefully something will exist allowing one to give names words in such a way that they pass equality tests despite different spellings... that would be a huge enabler for international markets, as I know of no text-based interpreted language able to cater to people in their own tongue the way Rebol can. | |
Gabriele: 27-Jun-2010 | I agree with Brian and Ladislav that "internationalization" of a programming language makes no sense at all. Not sure why only some americans think it does. :-) ALIAS may not be there in R3 but I'm not sure why you should be worried about R3 at this point; but in that case you can do the compilation on R3 and use ALIAS in R2, so I don't see it as a big issue even if you want to worry about R3. :) | |
Gabriele: 27-Jun-2010 | hmm, AFAIK, the reason Carl wanted to remove ALIAS is that in 10 years of R2 nobody ever really used it except to show what it can do. | |
Gabriele: 27-Jun-2010 | ie. ALIAS is solving a problem that nobody has. | |
Group: Web ... Everything web development related [web-public] | ||
PeterWood: 18-Jan-2009 | The Script Alias I use for Magic! is ScriptAlias /magic/cgi-bin/ "/Users/peter/Sites/magic/cgi-bin/" | |
Group: Announce ... Announcements only - use Ann-reply to chat [web-public] | ||
Coccinelle: 11-Mar-2005 | I updated the sql-protocol script. It's always on the script library here http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=sql-protocol.r The only change is related to the sql dialect for the FROM clause. Now the following syntaxes are possible: FROM table table ... (existing syntax) FROM [table alias] [table alias] (existing syntax) FROM table AS alias table AS alias (new syntax like SQL) FROM alias: table alias: table (new syntax more "rebolish") What do you prefer, something very near to SQL or something more in the spirit of REBOL. Your feedback is welcome, I prefer by mail ([marco-:-ladyreb-:-org]) | |
Group: Sound ... discussion about sound and audio implementation in REBOL [web-public] | ||
Anton: 21-Apr-2009 | Wow - first use of CP (alias of COPY) I ever saw. I override CP to be a unixiod file copy function. | |
Group: !RebDB ... REBOL Pseudo-Relational Database [web-public] | ||
Coccinelle: 9-Feb-2006 | Ashley, sql-protocol generates the code used to extract and join the data is grouped in 2 functions : - make-do-select - make-do-loop They receive the column list, the table list (a block of table/alias pair), the where code to apply and the database (the port). If you provide these parameters and change the code to invoke RebDB fuction to get the data, you will have a basic join implementation for RebDB. You can use it and extend it for RebDB, if you want, I will be happy if you do so. | |
Group: Postscript ... Emitting Postscript from REBOL [web-public] | ||
Henrik: 22-Apr-2006 | yes, I rewrote the preview to be done with VID. I lost anti alias, but gained proper centering | |
Group: !Cheyenne ... Discussions about the Cheyenne Web Server [web-public] | ||
Will: 12-May-2007 | main ip +alias | |
btiffin: 2-Jun-2007 | It's not a short paste... [HTTPd] ================== NEW REQUEST ================== [HTTPd] Request Line=>GET /testapp/ HTTP/1.1 [HTTPd] Request Headers=> Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive [HTTPd] Phase url-to-filename done ( mod-alias ) [HTTPd] Phase url-to-filename done ( mod-rsp ) [HTTPd] Phase url-to-filename done ( mod-fastcgi ) [HTTPd] Phase url-to-filename done ( mod-static ) [HTTPd] Phase access-check done ( mod-action ) [HTTPd] Phase set-mime-type done ( mod-action ) [HTTPd] Phase make-response done ( mod-rsp ) [HTTPd] Response=> HTTP/1.1 302 Moved Temporarily Server: Cheyenne/0.9.11 Connection: close Location: /testapp/login.rsp [HTTPd] Phase logging done ( mod-static ) [HTTPd] Phase clean-up done ( mod-rsp ) [HTTPd] Connection closed [HTTPd] ================== NEW REQUEST ================== / [HTTPd] Request Line=>GET /testapp/login.rsp HTTP/1.1 [HTTPd] Request Headers=> Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive [HTTPd] Phase url-to-filename done ( mod-alias ) [HTTPd] Phase url-to-filename done ( mod-rsp ) [HTTPd] Phase url-to-filename done ( mod-fastcgi ) [HTTPd] Phase url-to-filename done ( mod-static ) [HTTPd] Phase access-check done ( mod-action ) [HTTPd] Phase set-mime-type done ( mod-action ) [HTTPd] Phase make-response done ( mod-rsp ) [HTTPd] Response=> HTTP/1.1 200 OK Server: Cheyenne/0.9.11 Content-Length: 482 Content-Type: text/html Connection: Keep-Alive Set-Cookie: RSPSID=EISPOMAZTPDFKVIWJAFONZDE; expires=Sat, 02 Jun 2007 11:54:30 GMT; path=/testapp; HttpOnly Pragma: no-cache Cache-Control: no-cache, must-revalidate Expires: Thu, 01 Dec 1994 16:00:00 GMT [HTTPd] Phase logging done ( mod-static ) [HTTPd] Phase clean-up done ( mod-rsp ) [HTTPd] Phase task-done done ( mod-rsp ) [HTTPd] ================== NEW REQUEST ================== \ [HTTPd] Request Line=>POST /testapp/login.rsp HTTP/1.1 [HTTPd] Request Headers=> Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/testapp/login.rsp Content-Type: application/x-www-form-urlencoded Content-Length: 23 [HTTPd] Phase url-to-filename done ( mod-alias ) [HTTPd] Phase url-to-filename done ( mod-rsp ) [HTTPd] Phase url-to-filename done ( mod-fastcgi ) [HTTPd] Phase url-to-filename done ( mod-static ) [HTTPd] Posted data=>login=test&pass=letmein [HTTPd] Phase access-check done ( mod-action ) [HTTPd] Phase set-mime-type done ( mod-action ) [HTTPd] Phase make-response done ( mod-rsp ) [HTTPd] Response=> HTTP/1.1 301 Moved Permanently Server: Cheyenne/0.9.11 Connection: close Location: /testapp/ Set-Cookie: RSPSID=YDADUIONKJPHLFBWEDZDFCXN; expires=Sat, 02 Jun 2007 11:54:37 GMT; path=/testapp; HttpOnly [HTTPd] Phase logging done ( mod-static ) [HTTPd] Phase clean-up done ( mod-rsp ) [HTTPd] Phase task-done done ( mod-rsp ) [HTTPd] Connection closed [HTTPd] ================== NEW REQUEST ================== [HTTPd] Request Line=>GET /testapp/ HTTP/1.1 [HTTPd] Request Headers=> Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/testapp/login.rsp [HTTPd] Phase url-to-filename done ( mod-alias ) [HTTPd] Phase url-to-filename done ( mod-rsp ) [HTTPd] Phase url-to-filename done ( mod-fastcgi ) [HTTPd] Phase url-to-filename done ( mod-static ) [HTTPd] Phase access-check done ( mod-action ) [HTTPd] Phase set-mime-type done ( mod-action ) [HTTPd] Phase make-response done ( mod-rsp ) [HTTPd] Response=> HTTP/1.1 302 Moved Temporarily Server: Cheyenne/0.9.11 Connection: close Location: /testapp/login.rsp [HTTPd] Phase logging done ( mod-static ) [HTTPd] Phase clean-up done ( mod-rsp ) [HTTPd] Connection closed [HTTPd] ================== NEW REQUEST ================== [HTTPd] Request Line=>GET /testapp/login.rsp HTTP/1.1 [HTTPd] Request Headers=> Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/testapp/login.rsp [HTTPd] Phase url-to-filename done ( mod-alias ) [HTTPd] Phase url-to-filename done ( mod-rsp ) [HTTPd] Phase url-to-filename done ( mod-fastcgi ) [HTTPd] Phase url-to-filename done ( mod-static ) [HTTPd] Phase access-check done ( mod-action ) [HTTPd] Phase set-mime-type done ( mod-action ) [HTTPd] Phase make-response done ( mod-rsp ) [HTTPd] Response=> HTTP/1.1 200 OK Server: Cheyenne/0.9.11 Content-Length: 482 Content-Type: text/html Connection: Keep-Alive Set-Cookie: RSPSID=RTJSUKAVYBNOLCJCJBSTNUHP; expires=Sat, 02 Jun 2007 11:54:37 GMT; path=/testapp; HttpOnly Pragma: no-cache Cache-Control: no-cache, must-revalidate Expires: Thu, 01 Dec 1994 16:00:00 GMT [HTTPd] Phase logging done ( mod-static ) [HTTPd] Phase clean-up done ( mod-rsp ) [HTTPd] Phase task-done done ( mod-rsp ) | |
Pekr: 5-Jul-2007 | modules [ ; userdir internal static action fastcgi rsp ssi alias ; embed ] globals [ bind SSI to [.shtml .shtm] bind fastcgi to [.php .php3 .php4] bind-extern CGI to [.cgi .r] bind-extern RSP to [.j .rsp] ; user nobody ; group nobody ] default [ root-dir %/c/!Docs-private/Xidys/cheyenne-r0914/Cheyenne/www/ default [%index.html %index.rsp %index.php] on-status-code [ 404 "/custom404.html" ] webapp [ virtual-root "/testapp" root-dir %www/testapp/ auth "/testapp/login.rsp" debug ] ; "/" [ ; redirect http://softinnov.org ; ] ; extern fastcgi [ ; command "php -b $port" ; pool min 1 max 4 ; server 127.0.0.1 ; port 1234 ; root-dir "/home/dk/fcgi/" ; ] ] ;rebol.si.org [ ; root-dir %//dev/si-org/old/ ; default %main.html ; ; redirect 301 "/mysql*" "http://si.org/rebol/mysql.shtml" ; redirect 301 "/rebox*" "http://si.org/rebol/rebox.shtml" ; redirect 301 "/" "http://si.org" ;] ; ### ; To add a new virtual host just duplicate and fill the following ; example host : ; ; my.vhost.com [ ; root-dir %/www/ ; documents root directory ; default [...] ; default files ; ] ; ### | |
Oldes: 14-May-2008 | Although now I see I should use mod-alias. But somehow don't know how - only redirect seems to work here. | |
Oldes: 14-May-2008 | ok.. found it... BUG: if there is specified other alias type than 'file ot 'path - Cheyenne halts on uncatched error. | |
Oldes: 14-May-2008 | And it looks the Alias is not finished as it looks just for redirects:) | |
Dockimbel: 14-May-2008 | You're right about mod-alias, it's not completed yet. I found it might be redundant with a rewriting engine, so I left it unfinished until mod-rewrite comes. | |
TomBon: 29-Sep-2008 | hi doc, where can I find the syntax for the alias modul? (I wan't create a directory - cgi - alias) | |
Dockimbel: 29-Sep-2008 | ALIAS /url-path %filename (%filename can't be a directory) | |
Dockimbel: 30-Sep-2008 | Then if you want to process URI that do not map directly to the filesystem, you can either use ALIAS (untested) : ALIAS "/" %rest-dispatcher.rsp | |
Dockimbel: 12-Oct-2008 | In v0.9.19, DO is a mezzanine that do some rebinding. Maybe you should try with *do (native DO alias). | |
Dockimbel: 31-Jan-2009 | New Cheyenne 0.9.19 beta version available for testing at : http://cheyenne-server.org/tmp/cheyenne-r0919.zip Tested only on Windows (my Linux image network has currently some issues). ChangeLog (diff-ed from last test version) : o RSP: an HTTP redirection in 'on-page-start won't evaluate the page script anymore. o CGI: mezz function READ-CGI now patched to be compatible with Cheyenne. That's the right way of reading POST data in REBOL CGI scripts. o RSP: fixed a bug in session/add when setting a block! value. o Task-handler: fixed a network error on first packet read (high load + fast hardware). o Task-handler: TCP keepalive mode activated (test workaround half-closed connections). o Task-master: o 'no-delay mode removed and replaced by 'keep-alive mode o now forks a new process as soon as one dies (not waiting for a new request) o fix a long standing bug in queued job module name mismatching (can happen under extreme load) o minor code cleanup o Uniserve: 'no-delay TCP network mode now switched off for all connections. Fixes a stability issue on Vista and probably on UNIX with very high load. o RSP: fix a bug in 'decode-multipart when there's no file received. o UniServe: new logger service. Now all info or error logs, and debug messages from CGI/RSP scripts are written in %trace.log. Additionnaly, you can now log messages using : - debug/print msg ; msg [string!] - debug/probe value ; any mold-able value - ?? word ; works like REBOL's '?? function - ? msg ; alias for debug/print o RSP: in debug mode, page generation time and SQL queries stats now added at bottom of pages. o RSP: error in events from %app-init.r now logged. o RSP: fix a rare RSP freezing issue when an error occurs in %RSP.r (for example, by a user script that breaks RSP sandbox). o RSP: sanboxing now protects from Exit/Return/Break calls made outside of a function context. o RSP: %misc/rsp-init.r file removed. o RSP/CGI: New config keyword added in global sections : 'worker-libs. It lists the librairies to load when a worker process is started. An optional 'on-quit section can be added to call cleanup code when the process quits. Examples : worker-libs [ %libs/mysql-protocols.r ... ] or worker-libs [ %libs/mysql-protocols.r ... on-quit [ %/libs/free-resources.r ] ] o Task-master: now you can reset all worker processes without stopping Cheyenne. This is usefull when you need to force non-RSP/CGI files reload (helper scripts, 3rd party librairies,...). Usage: Windows : tray icon -> Reset Workers UNIX : kill -s USR1 <pid> (<pid> is Cheyenne's main process ID) o Added a -w command line option to set the worker processes number. Usage: $ cheyenne -w <n> (n [integer!] : CGI/RSP process number) Use -w 0 to help debug CGI/RSP code by resetting worker processes after each request. (it's like calling "Reset workers" after each request). | |
Graham: 7-Mar-2009 | 7/3-21:59:42.822-## Error in [OS-API] : OpenSCManager failed : Access is denied. ! 7/3-21:59:42.826-[boot] Cmdline args : -v 7/3-21:59:42.835-[boot] Processed : [verbosity 1] 7/3-21:59:42.838-[boot] Boot flags : [verbose] 7/3-21:59:42.840-[boot] Data folder : %/C/cheyenne-r0919/Cheyenne/ 7/3-21:59:42.906-[uniserve] Async Protocol FastCGI loaded 7/3-21:59:42.936-[conf-parser] Loading extension: mod-internal 7/3-21:59:42.940-[conf-parser] Loading extension: mod-extapp 7/3-21:59:42.943-[conf-parser] Loading extension: mod-static 7/3-21:59:42.948-[conf-parser] Loading extension: mod-action 7/3-21:59:42.952-[conf-parser] Loading extension: mod-fastcgi 7/3-21:59:42.955-[conf-parser] Loading extension: mod-rsp 7/3-21:59:42.960-[conf-parser] Loading extension: mod-ssi 7/3-21:59:42.963-[conf-parser] Loading extension: mod-alias 7/3-21:59:42.972-[uniserve] Starting RConsole... 7/3-21:59:43.003-## Error in [uniserve] : Cannot open server RConsole on port 9801 ! 7/3-21:59:43.006-[uniserve] Starting Logger... 7/3-21:59:43.009-## Error in [uniserve] : Cannot open server Logger on port 9802 ! 7/3-21:59:43.012-[uniserve] Starting HTTPd... 7/3-21:59:43.016-[uniserve] Starting task-master... 7/3-21:59:43.019-## Error in [uniserve] : Cannot open server task-master on port 9799 ! | |
Group: DevCon2008 (post-chatter) ... DevCon2008 [web-public] | ||
BrianH: 17-Dec-2008 | Nick, I hope that guest logins timeout, because closing the browser window makes your login inaccessible. Reloading the page orr even a refresh loses your login, and then leaves your old alias logged in, blocking any attempt to relogin with the same alias. There is currently a BrianH logged into presenter chat, so I hope you can log that ID out because I can't. Closing the window should log the person out. |
1 / 244 | [1] | 2 | 3 |