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

World: r3wp

[RAMBO] The REBOL bug and enhancement database

Volker
6-Oct-2005
[1253]
but if you can code c, i would do all the os-coding in c then, and 
use rebol-structs only for pasing between rebol and my c. gives os-includes 
without any pain, much easier.
Pekr
6-Oct-2005
[1254]
coding in C stinks .... I don't wanna carry C compiler with myself, 
unless included in Rebol ;-) Librry interface should be enhanced 
then. What about trying to post a wish into RAMBO?
Benjamin
6-Oct-2005
[1255x2]
some years ago i've used a realy cool compiler rapidq the bastard 
dident have the posibility to pass structures back that time i used 
this kind of workaround
what do you mean ?
Pekr
6-Oct-2005
[1257]
I don't even know what do I mean. The only thing I know is that I 
find wrapping libraries not all that comfort and I would like to 
ask those having experience with Python,Perl or any other language, 
if they have some easier way of how to do that or not ...
Volker
6-Oct-2005
[1258]
c-compiler costs me ~4mb if it is a big one. and a good interface 
needs processing includes. basically that *is* a c-compiler included 
in rebol then ;)
Pekr
6-Oct-2005
[1259x2]
Maybe the trouble is really in me and not being able to properly 
do datatype conversion and all those structure wrappings etc.
well then, so big :-)
Benjamin
6-Oct-2005
[1261]
yes i know what you mean i put = in rebol and : in C also i get lots 
of sintax error mising semicolon.... wrapers stink
Volker
6-Oct-2005
[1262x2]
No, the problem is rebol has a good c-interface and a pretty good 
with some meta-programming. (to avoid this double-declaration in 
rebol and c). but it has a terrible os-interface (by lack of full 
c-structs and includes). if you accet that and interface onyl to 
your code, its wonderfull (as wonderfull as c can be).
then you write lots of little accessor-function to pick things out 
of os-structures. sounds terrible, but actually all 1-liners.
Benjamin
6-Oct-2005
[1264]
c has a verry strong type checking thats cool for some cross over 
plattaform but wen it comes to rebol interface you get mad ...
Volker
6-Oct-2005
[1265]
if you try to mimic c-structures. if you create c from rebol-structes, 
it acceptable. maybe does not really check parameter-types, IIRC. 
but not sure, i rarely need rebol<->c and more rarely make that error.
Volker
8-Oct-2005
[1266x2]
Is this wine or real windows too?
>> to-money 0.09
== $9.00
wrong with everything with leading zeros.
does not happen on linux.
to-money 1.09 works ok.

Does money string-based conversion and sees windows 9.0000000e-02?
1.09 looks like 1.09000000e+00, so fraction-part is behind ".".
is a conversion-error, $1 is greater than to-money 0.09 .
Sunanda
8-Oct-2005
[1268]
Works fine under various windows' rebol.exe on my machine.
>>  to-money 0.09
== $0.09
Volker
8-Oct-2005
[1269]
thanks. then wine-bug.
Tomc
8-Oct-2005
[1270]
works fine on solaris
Rondon
11-Oct-2005
[1271x11]
Hi Folks
I think that the http scheme the temporary redirection .. server 
error 307 is not at the rebol http_scheme.. the 302 is.. but not 
the 307..
if you try: page: read http://www1.folha.uol.com.br/fsp/opiniao/fz1010200501.htm
it will redirect you to another url from the browser..
but using Rebol, you can't get this new url..  as you could using 
page: open http://www1.folha.uol.com.br/fsp/opiniao/fz1010200501.htm
print page/url  or page/target
you know.. ;)
I think that the same procedure for 302 should be for the 307 server 
error
if you call from a browser it will redirect you to the following 
url: https://acesso.uol.com.br/login.html?dest=CONTENT&url=http://www1.folha.uol.com.br/fsp/opiniao/fz1010200501.htm&COD_PRODUTO=7
just for reference... http://ppewww.ph.gla.ac.uk/~flavell/www/post-redirect.html
I think 307 is not returning the alternative URL.. you know..
Allen
11-Oct-2005
[1282]
RFC 2616
10.3.8 307 Temporary Redirect


   The requested resource resides temporarily under a different URI.

   Since the redirection MAY be altered on occasion, the client SHOULD

   continue to use the Request-URI for future requests.  This response

   is only cacheable if indicated by a Cache-Control or Expires header
   field.

   The temporary URI SHOULD be given by the Location field in the

   response. Unless the request method was HEAD, the entity of the

   response SHOULD contain a short hypertext note with a hyperlink to
   the new URI(s) , since many pre-HTTP/1.1 user agents do not

   understand the 307 status. Therefore, the note SHOULD contain the

   information necessary for a user to repeat the original request on
   the new URI.


   If the 307 status code is received in response to a request other

   than GET or HEAD, the user agent MUST NOT automatically redirect 
   the

   request unless it can be confirmed by the user, since this might
   change the conditions under which the request was issued.
Rondon
11-Oct-2005
[1283]
So.. How Can I solve this Allen?
Gabriele
12-Oct-2005
[1284]
(Not tested.)

>> code: second get in system/schemes/http/handler 'open
== [
    port/locals: make object! [list: copy [] headers: none]

    generic-proxy?: all [port/proxy/type = 'generic not none? por...
>> actions: select code [response-actions:]
== [
    100 continue-post
    200 success
    201 success
    204 success
    206 success
    300 forward
    301 forward
 ...
>> insert tail actions reduce [307 select actions 300]
== []
Anton
12-Oct-2005
[1285x2]
Gabriele, regarding 
http://www.rebol.net/cgi-bin/rambo.r?id=3918&

I found my patches still cause visual artefacts in certain circumstances, 
so this report should be cancelled.
Sorry about that.

(It does demonstrate, at least, how to iterate PROGRESS style in 
a usable way, but I'll better publish that elsewhere.)
I will continue to try to understand the artefacting.
Rondon
17-Oct-2005
[1287x3]
Gabrielle, the 307 redirection solved the problem partially, if you 
try to read the url that I put above, you'll realize the problem..
when you try to read the redirected url.. it sends back a forbidden 
message.. it is common with the 307 that returns back also a 401 
message
I think that http scheme should behave as a browser in all aspects.. 
you know..  the http scheme is not complete to simulate all the browser 
functions.. :-( I mean, cookies, redirections etc
PhilB
18-Oct-2005
[1290]
Came across this at work today ....

REBOL/View 1.3.1.3.1 17-Jun-2005 Core 2.6.0

>> to integer! ""
== 0
>> to decimal! ""
** Script Error: Invalid argument:
** Near: to decimal! ""


Shouldnt that return 0 like to integer!   ??

Cant see anything in Rambo for it though ...
PeterWood
18-Oct-2005
[1291x2]
Must have crept in amongst  View 1.3 changes.

REBOL/Core 2.5.8.3.1

>> to integer! ""
** Script Error: Invalid argument:
** Near: to integer! ""
You would have thought RT's automated tests would have trapped such 
a change.
Oldes
18-Oct-2005
[1293x3]
oh, I just submited bug with the forall and just now found that the 
same bug was already submited
http://www.rebol.net/cgi-bin/rambo.r?id=-456&
if I would like to just skip from the loop, I would use break, not 
return, but understand that carl made the cahnge for the propper 
report on errors.
Ladislav
22-Oct-2005
[1296]
Gabriele: I submitted a "Read beyond network port" crash ticket. 
(see Recycle bug group discussion)
Mchean
23-Oct-2005
[1297]
dont have access to rambo could someone submit an error in the word 
brower for me.  in the find box a down arrow errors with: ** Script 
Error: index? expected series argument
 of type: series port
** Where: pick-next
** Near: sync-funcs-list index? f
show-word first
DideC
23-Oct-2005
[1298]
This is a known and already corrected bug. The new version has not 
been uploaded yet, waiting for other changes pending.
BrianH
26-Oct-2005
[1299x3]
RAMBO 3939: In response to your question, I propose an alternative. 
Instead of changing to-dec and to-int to handle decimal and integer 
(respectively) source values correctly (slowing down the common case), 
add as-dec and as-int opcodes that act as assignments when given 
source values already of the corresponding type, letting those opcodes 
have the overhead when you can't be sure the source is of the opposite 
type. Also, change to-int to assign 0 instead of 1 for invalid source 
values, to be consistent with to-dec assigning 0.0 then.
I don't have an account on RAMBO, so there is no other way for me 
to reply to the question asked of my submission.
For that matter, I just submitted another rebcode proposal to RAMBO, 
and then noticed some code in the fix section that I wanted to change. 
The submitted code still works, but I would still like to clean it 
up a little. If I had an account on RAMBO, would I be able to fix 
my own submissions?
Pekr
27-Oct-2005
[1302]
Rambo needs "add comment" section ... I am not sure Carl checks regularry 
here ....