World: r3wp
[Linux] group for linux REBOL users
older newer | first last |
caelum 1-Sep-2010 [3888] | Looks like I owe two coffees. Give me a delivery address(es) and I'll oblige. Graham, you will havo to wait until December/January, but that's a Moccachino on its way. |
Graham 1-Sep-2010 [3889x2] | hehe |
At home we just use those single use Gregg's powdered Mocas that you pour into a cup and tip hot water into ... :) | |
caelum 1-Sep-2010 [3891] | Wow, I'm 80 miles outside Seattle and if any Seattlite heard you say that they would shriek! |
Graham 1-Sep-2010 [3892] | BTW, we have the "Rebol School" group ... where we *encourage* questions |
caelum 1-Sep-2010 [3893] | Always good to encourage questions. Thanks for the code, much appreciated. It will take me past this impasse I was in. Thinking about it, I must be brave because I want to replace all the PHP code I have written for my customers over the last seven years with Rebol code. If that is not brave, I don't know what is. |
Graham 1-Sep-2010 [3894] | sensible ? |
caelum 1-Sep-2010 [3895] | If i get it right, it will prove invaluable to my customers and me, as I will have more to offer them. If I don't I can just leave the PHP in place. I've been called a practical idealist by some people (and much worse by others). Besides, I'll be able to promote Rebol. Always a good thing. |
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 |
older newer | first last |