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

World: r3wp

[Linux] group for linux REBOL users

Graham
1-Sep-2010
[3896]
Are you switching to using Cheyenne?
caelum
1-Sep-2010
[3897]
I've read about Cheyenne. I probably will when I can code competently 
in Rebol and I have my own server, which are cheap these days. So 
I am on a steep Rebol learning curve right now. I am a fast learner 
when I'm motivated. But Cheyenne will have to wait several months.
Maxim
1-Sep-2010
[3898x2]
its actually about 15 minutes to download install and run on any 
server (or your machine).  and from there, rebol cgi is much faster 
since its persistent.
unless you have specific needs (like https) I really suggest you 
take an hour and look into it.  it might change how you build all 
of your rebol web stuff... better sooner than later no?
caelum
1-Sep-2010
[3900]
I will certainly take a look at Cheyenne before I start doing complex 
stuff, and before I spend time designing this project on paper, which 
I have yet to do. ATM I'm playing around to discover what can be 
done with Rebol.
MaxV
1-Sep-2010
[3901x3]
Ehi, my package its' view, not core!
The last version of Rebview binary it's called "rebol", not rebview 
as usual. It's on rebol.com site.
maybe who made the Linux version applied the wrong name....
caelum
1-Sep-2010
[3904]
Both those ftp code snippets work. Thanks Graham. Thanks Maxim. I'm 
on my Rebol way!
Gregg
1-Sep-2010
[3905]
I've also done this to work around the @ issue:


net-utils/url-parser/user-char: union net-utils/url-parser/user-char 
make bitset! #"@"
Graham
1-Sep-2010
[3906x7]
I think a better solution is to fix the protocols.
Eg. for ftp-protocol, change this 


 open-check: [none ["220" "230"] ["USER" port/user] "331" ["PASS" 
 port/pass] "230" "SYST" "*"]

to


 open-check: [none ["220" "230"] ["USER" dehex port/user] "331" ["PASS" 
 port/pass] "230" "SYST" "*"]
and then you can url-encode the username

user%40mysite.org
The same should be done for the prot-pop.r and any others
Any objections for this making it to 2.7.8 ?
For all of this in agreement, please say nothing!  Thanks.
all of those ...
Gabriele
2-Sep-2010
[3913x2]
Graham, the problem with url-encoding is not at the protocol level, 
it's at the URL! type parsing level. REBOL decodes characters at 
the wrong time.
(see the note at the beginning of http://www.rebol.it/power-mezz/parsers/uri-parser.html
- this was written at the beginning of R3 development, but I don't 
think anyone paid attention)
Graham
2-Sep-2010
[3915x3]
still this is a fix right?
It seems unlikely that the URL! parsing will be fixed in R2
and I presume that this is happening in r3lib.dll so outside our 
reach
Gabriele
2-Sep-2010
[3918]
this is a fix
 - no, because the %40 is converted to @

It might work if you do use %2540 (double encoding)...
Graham
2-Sep-2010
[3919x4]
well, it works for me... doing a trace/net .. I saw the username 
being passed correctly to the ftp server
Hmm... I must have hallucinated
>> read ftp://gchiu%2540compkarori.co.nz:[password-:-ftp-:-rebol-:-com]

URL Parse: gchiu%40compkarori.co.nz password ftp.rebol.com none none 
none
Net-log: ["Opening" "tcp" "for" "FTP"]
connecting to: ftp.rebol.com
Net-log: [none ["220" "230"]]

Net-log: {220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------}
Net-log: "220-You are user number 3 of 150 allowed."
Net-log: "220-Local time is now 03:37. Server port: 21."
Net-log: "220-This is a private system - No anonymous login"
Net-log: {220-IPv6 connections are also welcome on this server.}

Net-log: {220 You will be disconnected after 30 minutes of inactivity.}
Net-log: [["USER" dehex port/user] "331"]
Net-log: {331 User [gchiu-:-compkarori-:-co-:-nz] OK. Password required}
Net-log: [["PASS" port/pass] "230"]
** User Error: Server error: tcp 530 Login authentication failed

** Near: read ftp://gchiu%40compkarori.co.nz:[password-:-ftp-:-rebol-:-com]
well, that works :)
Anton
2-Sep-2010
[3923x2]
That looks like very nice work, Gabriele.
Someone, add a ticket to integrate Gabriele's work to R3 !
BrianH
2-Sep-2010
[3925x2]
Done.
Adapt, not integrate. We can't integrate it in a compatible way, 
but we can adapt the code to make the existing DECODE-URL work properly.
Anton
3-Sep-2010
[3927]
I agree; "adapt" is the better word.
Graham
6-Sep-2010
[3928]
Should www.rebol.com host this ?  http://www.maxvessi.net/rebol.deb
created by Massimiliano Vessi
NickA
7-Sep-2010
[3929]
+1 YES - I tested on Ubuntu 9.04 and 10.04 - works perfectly.
Alan
7-Sep-2010
[3930]
Yes also tested on Ubuntu 10.04 using VmPlayer and worked great. 
Seems to even work better than the Rebol one ?
Anton
7-Sep-2010
[3931]
Alan, in what way do you suspect that it works better? (I have not 
tried it.)
NickA
8-Sep-2010
[3932]
1 difference:  using RT's download, the REBOL console only works 
when REBOL is started from the Ubuntu command line (i.e., not when 
it's started by clicking an icon in file manager).  New users may 
think that scripts are broken because GUIs w ork fine, no matter 
how REBOL is started.
Robert
9-Sep-2010
[3933]
How can I reference parameters in a linux shell without xargs when 
piping commands?

ls *.o | ar rs mylib.a $1

Where $1 is the output of ls *.o
Anton
9-Sep-2010
[3934]
Maybe try back-tick quoting:

ar rs mylib.a `ls *.o`

The quoted part is evaluated first by the shell.
Izkata
9-Sep-2010
[3935]
Alternative to back-ticks that I find more readable (and also allows 
nesting if needed):

ar rs mylib.a $(ls *.o)

Or a multiline version using variables:

OUT=$(ls *.o)
ar rs mylib.a $OUT
Robert
9-Sep-2010
[3936]
Ah.. that's cool. Didn't new I could use $(...) for this.
Alan
9-Sep-2010
[3937]
Anton: it seems that more of the demos on Rebo/demos work with the 
deb file than the dl from rebol.com let me test more and get back 
to you
Andreas
10-Sep-2010
[3938]
Alan, the binary packaged in rebol.deb is identical with the rebol-view-277-4-3 
download from rebol.com. (Which is the "Linux x86 Fedora" download.)
MaxV
10-Sep-2010
[3939x2]
I suggest you this link: http://www.maxvessi.net/pmwiki/uploads/Main/rebol.deb
I added also the man page!
At the following link I put the Linux RPM package:  http://www.maxvessi.net/pmwiki/uploads/Main/rebol-2.7.7.4.3-5.i386.rpm
Andreas
10-Sep-2010
[3941x3]
I'd suggest renaming the Debian package to also follow Debian package 
naming conventions.
i.e. rename it to rebol_2.7.7.4.3-4_i386.deb
it would further be nice, to get the dependencies right
MaxV
10-Sep-2010
[3944]
I'll do the renaming, but it's a binary. What dependendies I should 
add?
Andreas
10-Sep-2010
[3945]
libc6, libc6-i386, libfreetype6, libgcc1, libice6, libsm6, libstdc++6, 
libuuid1, libx11-6, libxau6, libxaw7, libxcb1, libxdmcp6, libxext6, 
libxmu6, libxpm4, libxt6, zlib1g