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
[3908x5]
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
[3945x3]
libc6, libc6-i386, libfreetype6, libgcc1, libice6, libsm6, libstdc++6, 
libuuid1, libx11-6, libxau6, libxaw7, libxcb1, libxdmcp6, libxext6, 
libxmu6, libxpm4, libxt6, zlib1g
ignore the libc6-i386
so it should rather be:

libc6, libfreetype6, libgcc1, libice6, libsm6, libstdc++6, libuuid1, 
libx11-6, libxau6, libxaw7, libxcb1, libxdmcp6, libxext6, libxmu6, 
libxpm4, libxt6, zlib1g
MaxV
10-Sep-2010
[3948]
Are you sure that all this it's necessary?
Andreas
10-Sep-2010
[3949x2]
Yes.
Thats what is necessary to provide the dynamic libraries the REBOL/View 
binary depends on. (Except that I ignore transitive dependencies.)
MaxV
10-Sep-2010
[3951]
Ok, I'll try.
Andreas
10-Sep-2010
[3952]
libc6, libstdc++6, libx11-6, libxcb1, libxaw7, libfreetype6

is a more minimal set that will require the rest via transitive dependencies
MaxV
10-Sep-2010
[3953]
Added menu integration! You can download from: http://www.maxvessi.net/pmwiki/pmwiki.php?n=Main.GuidaARebol
downloading the nname become the correct one.
I'll work on the dependencies next week.
Graham
10-Sep-2010
[3954]
Good work MaxV
MaxV
13-Sep-2010
[3955]
Ok I added the dependencies.
MaxV
20-Sep-2010
[3956]
Look at http://www.maxvessi.net/rebsite/Linux/
Andreas
20-Sep-2010
[3957]
Very nice. The dependencies for the amd64 Debian package are wrong, 
though. As REBOL still is a 32-bit binary, you'll need to depend 
on the 32-bit compatibility libs.