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

World: r3wp

[Core] Discuss core issues

Coccinelle
24-Jan-2006
[3203]
kmeaning = meaning (sorry)
Henrik
24-Jan-2006
[3204]
does anyone know what PATH is good for?
Gregg
24-Jan-2006
[3205]
Ah! Thanks Gabriele! I don't know why I didn't think of that. :-\
Allen
24-Jan-2006
[3206]
To illustrate for those who may not know what the issue is with third 
/ make

>> c: make object! [a: 'print b: "hi"]
>> ? c
C is an object of value:
   a               word!     print
   b               string!   "hi"

>> spec: third c
== [a: print b: "hi"]

;Using make object! fails
>> e: make object! spec
hi
** Script Error: a needs a value
** Near: a: print b: "hi"

;Contruct works
>> f: construct spec
>> ? f
F is an object of value:
   a               word!     print
   b               string!   "hi"
Anton
25-Jan-2006
[3207]
Henrik, PATH is a function used internally by rebol but probably 
accidentally exposed globally.
Luca
25-Jan-2006
[3208]
'Construct!!!!! How long I've searched for you. :-) Thank you Gabriele
Gabriele
25-Jan-2006
[3209x2]
Coccinelle: the only info available about read-io return codes is 
in the async case. from async:// :
0 or -1: peer closed (ssl:// seems to consider -1 an error and not 
close)
-2: error
-3: would block (i.e. no data ready)
< -3: error
Pekr
26-Jan-2006
[3211x6]
I tried Carl's site monitor - Gismo, but it converts sites to tcp 
ports, instead of staying with http ... how can I easily add proxy 
support to manually constructed tcp port? I do remember some tricks 
with subport where actually port is, but can't make it work easily 
...
looking at sterling's proxy script, I somehow can't understand that 
sub-port concept :-) Looking at rebol core manual, it does not make 
my life any easier :-) Although I can understand the concept of root-protocol 
and how to establish new scheme, it does not help with understanding 
of lower level issues ...
maybe that is why DocKimbel was thinking about dividing port model 
into two layers ....
simply put - scheme model is not so complicated, you can even rather 
easily go and use tpc and udp ... but unless you need something like 
a proxy support ....
can I prevent the black shell window appearance? I try to call/console 
"ping 10.0.0.10", but the black window always appears ...
ah, it is call/console "cmd /C ping 10.0.0.10"
MichaelB
26-Jan-2006
[3217x2]
I'm having the same problem right now. But the black window nevertheless 
appears.
other bad thing I didn't think about/expect was that upon using output/error 
refinement it becomes blocking like with wait refinement
JaimeVargas
26-Jan-2006
[3219]
There is no way around it. Unless you have library access an use 
the asyc-console script from Dockimbel. Or the one shipping with 
the Detective.
MichaelB
26-Jan-2006
[3220x3]
now I can live with the blocking behavior, but would like to show 
the output in a view window - but as it blocks might not be possible
ok, good to know Jaime
so I should really start getting the SDK or pro :-)
JaimeVargas
26-Jan-2006
[3223]
Yep.
MichaelB
26-Jan-2006
[3224]
:-)
Terry
26-Jan-2006
[3225]
I'll pay RT $50 if we change "=" to "==" .. don't know HOW many bugs 
I've generated with other languages over that.
Henrik
26-Jan-2006
[3226]
how about allowing to accept both?
Anton
26-Jan-2006
[3227]
Terry, do you think it's really a good idea to change that now ?
Tomc
26-Jan-2006
[3228x4]
== is already valid rebol
just unset '= and you are done
(provided it is not used internally)
you would have to start casting to compatable datatypes yourself 
tho ....
DideC
27-Jan-2006
[3232]
>> "ABC" = "abc"
== true
>> "ABC" == "abc"
== false
Tomc
27-Jan-2006
[3233]
cast to the same case as well
Terry
28-Jan-2006
[3234]
Is it possible to find the IP address of a machine using a proxy?
Pekr
28-Jan-2006
[3235x2]
what do you mean, Terry?
you mean automatic proxy detection?
Anton
28-Jan-2006
[3237x2]
Do you mean this ?:

Terry's machine ---- ( internet ) ---> proxy machine ---> target 
machine
where the target machine is the ip you want.
I am supposing a remote machine has connected to a service of yours, 
and you want to know if you can inspect the port in such a way as 
to obtain the ip of the remote machine, even if it is behind a proxy.
Terry
28-Jan-2006
[3239x3]
I'm looking for the the ip of my wireless router.  I know it manually, 
but is their a way to find it automagically?
proxy isn't correct
gateway
Graham
28-Jan-2006
[3242]
dhcp
Terry
28-Jan-2006
[3243x8]
well, my wireless router assigns an internal IP 192.168.1.100 (for 
example), and if I do a get-modes udp:// 'interfaces I get..

addr: 127.0.0.1
netmask: 255.0.0.0
broadcast: none
dest-addr: none
flags: [multicast loopback]
name: "if65540"
addr: 192.168.1.100
netmask: 255.255.255.0
broadcast: 192.168.1.255
dest-addr: none
flags: [broadcast multicast]
Nothing in there that I can send to you, that will allow you to find 
me.. so how do i determine (via Rebol) the IP address assigned to 
the router?
Not sure that this can even be determined with Rebol.. Probably need 
to do a workaround.. send a http request to a remote script, peel 
the IP from that, send it back?
Like this.. 

getIP: read http://whatismyip.com
parse getIP [thru "displaycopy('" copy myIP to "'"]
tried IP chicken.. seems slower.
http://www.ipchicken.com/
Maybe I should put that into a view pane and enter it into the contest?
Hmm, too late to hide the source code huh? :)
Graham
28-Jan-2006
[3251x2]
http://www.compkarori.com/cgi-local/whatismyip.r
<ip> 203.79.110.37 </ip>