World: r3wp
[!REBOL3-OLD1]
older newer | first last |
BrianH 8-Oct-2009 [18951x2] | Make the shift in response to the --cgi option. |
CGI output should be binary, and the headers output in 7bit ASCII (not UTF-8) through that binary output. | |
Pekr 8-Oct-2009 [18953] | --cgi option is not working now, or is it? |
BrianH 8-Oct-2009 [18954] | Any encoding is none of the business of the CGI channel - it is a matter between the script and the cliennt. |
Pekr 8-Oct-2009 [18955] | As to your remark - I wonder, how R3 itself decides, what is, and what is not a header :-) You probably mean, that I have to be responsible for the conversion? |
BrianH 8-Oct-2009 [18956] | The --cgi option is not working on Windows. It works on Linux. |
Pekr 8-Oct-2009 [18957x2] | That should be fixed, no? :-) I want to start to do some tests with CGI, and no will to mess with Linux here :-) |
(I have a linux box with Fedora 1, but R3 does not work there) | |
BrianH 8-Oct-2009 [18959x2] | I mean that there should be a header output function that is loaded in the CGI module. HTTP header format is cross-platform, even down to the line endings. The header output function could be mezzanine. |
By the way, the line endings are supposed to be CRLF, even from a web server running on a Linux box. It's the standard. | |
Pekr 8-Oct-2009 [18961] | What do you think about CGI module or any such special modules - would you make some of them default part of the distro, just modularised? Or you want them to be external? I think that CGI is basic functionality, which should be included in default distro, just with better support for sessions, not just decode-cgi, read-cgi ... |
BrianH 8-Oct-2009 [18962x4] | CGI is a part of the default distro for R3 when used to run CGI apps, but completely useless for other apps. |
Session support is specific to the web server - the CGI standard doesn't handle them at all. | |
External doesn't mean it won't be built in to your particular copy of R3, just that it won't be built into Henrik's GUI app. | |
R3 isn't going to be monolithic like R2. | |
Pekr 8-Oct-2009 [18966] | I wonder how convenient such "build" tool is going to be. R2 encap was really very easy to see. I hope we will not push users to mess with C IDE, in order to build their R3 distro ... |
BrianH 8-Oct-2009 [18967] | Well, we were careful to design the module system so that you could specify requirements and relationships statically. This makes it relatively easy to adapt modules to a preprocessor that collects them into a single script, without necessarily needing special directives. This might make encapping easier. |
Steeve 8-Oct-2009 [18968x2] | I'm trying to build a svg converter (yes another one, but for R3). As you can see here http://sites.google.com/site/rebolish/svg, it's pretty decent for the frogs (Rebol draw version at right) But for the lizard, there's missing something, gradients. But i'm stuck with the speciifications of grad-pen http://www.rebol.net/wiki/Grad-Pen I don't know how to build it from http://www.w3.org/TR/SVG11/pservers.html#Gradients |
If someone can decipher that... | |
Henrik 8-Oct-2009 [18970] | can grad-pen do all the properties of SVG gradients that you need? |
Steeve 8-Oct-2009 [18971] | I think so. The only remaining problem will be the transform attribute. They can apply a matrix to transform the gradient. But we don't have that, as-is in Draw. We can apply rotate, scalling, and translation (i guess) on gradients, but separatly, not as a matrix. |
Henrik 8-Oct-2009 [18972x2] | I think we should ask Cyphre, whether this property can be added. |
unless it's possible to perform the transformation prior to stating the grad-pen. | |
Steeve 8-Oct-2009 [18974] | Do you mean, taking the matrix and extraction the different components (rotation, translation, scaling) ? I don't know if it's possible, i'm not good enough with maths ;-) |
Henrik 8-Oct-2009 [18975] | I think it's possible to transform the gradpen alone before stating the shape to fill, but I haven't tested it. |
GiuseppeC 9-Oct-2009 [18976] | I have one curiosity: REBOL3 VID is going to be an old style 2D interface. New interfaces, expecially for mobile device are PSEUDO 3D and touch based. Could this kind of interface be inplemented to support current and future generations of products ? |
Henrik 9-Oct-2009 [18977] | yes, both touch and 3D are possible. |
Steeve 9-Oct-2009 [18978] | Btw, doing my SVG renderer with R3, i can't convert my drawings into images, it's crashing. Using the draw function or to-image as well. I can post a bug, but i don't know what's the problem because it depends of the drawing. Sometime it crashs, sometimes not. |
Maxim 9-Oct-2009 [18979] | there are a few specific things, even in R2 which cause the render to crash outright. |
Steeve 9-Oct-2009 [18980] | Actually, it's not crashing the interactive rendering. it's crashing the to-image conversion. So that, we can't save our drawings as images. |
Maxim 9-Oct-2009 [18981x3] | that is strange... never had one without the other in R2... although in R2 if you put the to-image call in an attempt and the effect was invalid (and would usually cause a rebol error), that face will never render again, whatever you do with it... is stays in a corrupt internal state. |
might be based on the same very core handling of view. | |
note the above effect doesn't happen in all setups, but I've had this happen to me in an earlier version of my image expression application. | |
Maxim 12-Oct-2009 [18984] | new 'EVOKE method published... crash logs!!! Read this blog: http://www.rebol.net/r3blogs/0269.html |
Steeve 12-Oct-2009 [18985] | well, i posted a typical crash bug yesterday. But i can't replicate this crash anymore. I rewrote my code in an another way. |
Henrik 13-Oct-2009 [18986x2] | Anyone has a good example for the COLLECT function? Writing function docs now. |
I think it was used in VID3 as one of Gabriele's functions, but is no longer used in VID3.4. | |
BrianH 13-Oct-2009 [18988] | COLLECT is a quick programming function. It will get optimized out of mezz/library code, but will save time for programmers when their time is more important than the computer's, which is pretty often. |
Henrik 13-Oct-2009 [18989] | It's not clear how KEEP is used from its help. |
BrianH 13-Oct-2009 [18990] | Look at the code for DECODE-URL - KEEP is used like EMIT there. |
Henrik 13-Oct-2009 [18991] | thanks |
BrianH 13-Oct-2009 [18992] | The pattern implemented by COLLECT is used in a lot of code. The function will get much use :) |
Henrik 13-Oct-2009 [18993] | decode-url is part of a context? I don't see the 'rules anywhere. |
BrianH 13-Oct-2009 [18994] | system/intrinsic/parse-url |
Henrik 13-Oct-2009 [18995] | thanks |
BrianH 13-Oct-2009 [18996] | Basically the same as in R2, but referenced in a different place. |
Henrik 13-Oct-2009 [18997x3] | http://www.rebol.com/r3/docs/functions/collect.html I guess this is the best I can do. |
Note that in A87 has a problem with HTTP: >> read http://www.rebol.net ** Access error: protocol error: "Server error: HTTP/1.1 400 Bad Request" In case you are trying to do something with OSX or Linux, which currently only are at A87. This is not a problem in A88. | |
There are references to a FIND-MODULE function in the function list, but it doesn't exist in R3? | |
BrianH 13-Oct-2009 [19000] | No, it doesn't exist, and would be one line of code. However, so would calling this function, so it doesn't save anything. Probably best to remove the reference/page. |
older newer | first last |