r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Script Library] REBOL.org: Script library and Mailing list archive

Oldes
5-Mar-2007
[446]
There is this script in the library http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=ez-plot.r
but there seems to be missing the q-plot.r script, which is required:(
Sunanda
5-Mar-2007
[447]
Thanks.

Looks like this dates back to the slightly mangled handover between 
REBOLtech and REBOL.org.
**
The script is here:
http://www.reboltech.com/library/scripts/q-plot.r

Though I haven't checked if it works.......If you could, and it does, 
please let me know; and we'll moe it over to REBOL>org
Oldes
6-Mar-2007
[448]
it is working
Sunanda
6-Mar-2007
[449]
Thanks. It's in the Library now:

http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=q-plot.r
Oldes
7-Mar-2007
[450]
What about using Apache's Rewrite module [ http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
] to make nicer links in the Library.
Sunanda
7-Mar-2007
[451]
It would certainly be nicer to have shorter URLs. We inherited the 
use of CGIWRAP (which is creating all the long URLs), and were not 
able to remove it when we started. That's a great pity.

What I'd realy like is for the server to be running apache 2, so 
we could read the REDIRECT variables in the 404 handler. Then we 
could do pretty much any amount of rewriting of URLs intelligently 
in a REBOL script.
Sadly, we are still on 1.3 with no hope of an early upgrade.
Oldes
7-Mar-2007
[452]
The rewrite must be possible in 1.3 as well. You can move old links 
permanently using script.
btiffin
16-Apr-2007
[453]
Dear Library Team,


   I've only got a single script in the library, but I like it, and 
   I'd like it to live through the R3 update.

Are there any plans for adding explicit rebol versioning to scripts 
that want to stand the test of time?


   Is having multiple binaries on target REBOL platforms a no-no?  Meaning, 
   could the released binary packages for REBOL 3.0 include REBOL 1.3 
   (2.7) executables so scripts don't age out as fast as they did when 
   going from 1.2 to 1.3?  A little bit of configuring on the host OS 
   to start the correct REBOL by extension, shebang, or resource fork 
   on MacOS?  Can DO add a secret launch of older/other binary if a 
   Needs: is specified?

Curious.
Graham
16-Apr-2007
[454]
there are no binaries on rebol.org
btiffin
16-Apr-2007
[455]
Graham;  Yeah, sorry, I knew I was bringing up two seperate points. 
 Should have mentioned it.  I'm just hoping the 700+ scripts in the 
library don't go to waste when everyone goes R3.  A little/lotta 
work on RT's part, a little/lotta work on the Library Teams shoulders...
Gregg
16-Apr-2007
[456]
Sunanda is the go-to guy on this, but we do have a tested-under field 
in the library header. At least that way you would have a clue if 
something was known to work under R3.
btiffin
16-Apr-2007
[457]
So I'll add a little/lotta work on contributor shoulders as well 
then?  Just that some contributors may be ex-rebols by now.  :)
Gregg
16-Apr-2007
[458]
Someday we'll have a slick auto-test system that runs each script 
under every known version of REBOL and gives a red or green light 
for each one. Of course, that means we need a test engine....result 
logging...Hmmm, might not happen right away. :-)
btiffin
16-Apr-2007
[459]
Gregg; If history is any indication, and you are involved, the future 
looks bright.  :)
Graham
16-Apr-2007
[460]
Gregg hasn't been involved hands on in the library for sometime!
btiffin
16-Apr-2007
[461]
Graham;  Ok.  Credit where credit due.   I still want Mr. Irwin offering 
up hints and guidance, the same as I expect you to keep things on 
a nice shiny track as well.  :)
Sunanda
16-Apr-2007
[462]
{Altme lost the first version of this post)

We don't as yet know the extent of the incompatibilities between 
R3 and previous versions.

The more incompatibilites there are, the bigger a problem we all 
have: most of us have personal libraries of useful functions (code 
snippets etc). If we cannot trust them to work under R3, then we 
all have a hiatus while we fix our code.
btiffin
16-Apr-2007
[463]
Yep.  Agreed.  I was pre-thinking potential work arounds...I've come 
to rely on the library scripts for information, inspiration and idle-time 
wasting.  :)
Graham
16-Apr-2007
[464]
perhaps R3 can include some type of switch to check the header first?
Sunanda
16-Apr-2007
[465x2]
The Library itself already has some problems with this.

The Libraty code (lots of it) runs under an outdated version of REBOL.

And that has trouble doing a load/header on scripts written for later 
verisons.

It's an annoyance at the moment, and not worth fixing yet if we have 
to go through another remediation to fix code for R3
That would be a good solution, Graham, if:
1. it were able to then load and run the right .exe

2. the whole software stack runs the same version......Imagine the 
annoyance if you need one utility that needs and earlier / later 
executable? (I don't need to imagine that; it's happened already 
for me)
btiffin
16-Apr-2007
[467]
Sunanda; I'm not a g-level rebol yet, but if you need to off load 
any mundane time-wasting low-brain work, send it this way and I might 
be able to help...willingness is there...skill? dunno.  :)
Graham
16-Apr-2007
[468x2]
build in older versions into the exe ;-)
eeek! rare sighting report -- a rebol volunteer!!
Maxim
16-Apr-2007
[470x2]
hahaha... no there are many volunteers...
just that they never do so for "OTHER" people's stuff   ;-D
btiffin
16-Apr-2007
[472]
:)
Maxim
16-Apr-2007
[473]
comes with the title of REBOLer...  ;-)
btiffin
16-Apr-2007
[474]
The library is one of those precious resources that, once beyond 
noob, is invaluable to the learning curve.  And yes we are rebols 
aren't we.
Sunanda
17-Apr-2007
[475]
Brian: you are a saint!

None of the Library stuff needs guru level skills.  Just some gentle 
persistence to get lots of little details right.
Jean-François
27-Apr-2007
[476]
Sunanda, would it be possible in the library to use Gabriele's PDFMaker 
HTML doc CSS style sheet for displaying script code ?

I find it realy beautifull. It realy turns reading code into a visual 
aesthetic experience.
Sunanda
27-Apr-2007
[477x2]
I'd be delighed to have some better styles.....Why not experiement 
(all the Library's CSS can be overridden by any Library member) and 
come up with something you like. If you do the work, we can take 
it from there :-)
http://www.rebol.org/cgi-bin/cgiwrap/rebol/css-available.r
For those who never visit the Mailing List: Brian has stepped up 
to the mark and is a member of the Library Team.....He's going great 
work already:

http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-message.r?m=rmlVPCC
Gabriele
27-Apr-2007
[479x2]
Jean-Francois: thanks :)
Sunanda: just in case you eventually decide to do something like 
that, my code is described here: http://www.colellachiara.com/soft/MD3/emitters/wetan.html#section-4
Sunanda
27-Apr-2007
[481]
Thanks.

Basically, we use this code of Carl's when displaying a script in 
color:

http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=color-code.r

Thogh we've adapted it for CSS and  a couple of other minor tweaks.
What we are lacking is beautiful CSS :-)
Gabriele
27-Apr-2007
[482x2]
my code is very similar to Carl's, most of the additions are just 
to support literate programming and you won't need them. i'm emitting 
clean xhtml (no <font> etc. stuff) so that the look can be 100% configured 
via CSS.
i don't think my CSS is very good, I know Chris could make it 10x 
better. but until someone does a better one... i have something to 
use :)
Sunanda
27-Apr-2007
[484]
Same here !
Gabriele
27-Apr-2007
[485]
feel free to copy from mine - i took the colors for the datatypes 
from the css on rebol.org iirc :)
Sunanda
27-Apr-2007
[486]
Thanks......And if anyone wants to play with the CSS tha colors scripts 
on REBOL.org, the code is here:
http://www.rebol.org/cgi-bin/cgiwrap/rebol/css-view-system.r

(look for the SC-xxxx styles). You can copy them into your personal 
settings and change them.
Geomol
29-Apr-2007
[487]
Noted. I'll see, if I can come up with something, when I have some 
time. It's very important to make things clear and easy to understand 
for everyone interested, so making REBOL code easier to read is something, 
I'm very interested in.
Sunanda
29-Apr-2007
[488]
Thanks.....If you need some HTML tweaks to make the CSS really sing 
and dance, please let me know, and we can probably arrange it.
Chris
30-Apr-2007
[489]
I have a function that I'd like to add to the Library that takes 
some user data (could be from CGI query, or from View fields), processes 
and validates it according to a given spec, eg. [word "2007/4/30"] 
-> [word: date!] -> [word 30-Apr-2007]  I've named this function 
'import, but I realise that %import.r may be too generic a script 
name for the Library.  Any suggestions?
Anton
30-Apr-2007
[490]
mask-import

 ?  Your validator seems general but I presume you made it for a specific 
 purpose.
Chris
30-Apr-2007
[491]
That works.  %mask-import.r -- %input-mask.r -- %import-mask.r
Anton
30-Apr-2007
[492x2]
It's short, but still leaves room for confusion.

How about being more descriptive ? Eg. "validation-filtered-load" 
?
or "Chris-validated-import-loader" ?
I could get longer...
Chris
30-Apr-2007
[494x2]
I'd rather it was still somewhat succinct.
It's still a reasonably generic function.