World: r3wp
[Rebol School] Rebol School
older newer | first last |
Gregg 31-Jan-2008 [688] | If you want to get a job as a grunt programmer in a big company, using whatever tools they tell you are in fashion, REBOL is not the right tool for you--though it may be a nice support language. If you want to think about hard problems and algorithms, it's as good as Lisp/Scheme within limits (e.g. tail recursion), and easier to play around with. If you want to get the job done and either make the tool call yourself, or can convince the people who do that REBOL is up to the task, it's great. And if you aren't a CS major, but know that computers and programming will affect you in business, and you want to be able to to some "light" programming, I think it's great. |
Rod 31-Jan-2008 [689] | I think REBOL has merit in the classroom but it can't be from the angle of what you need to be an IT programmer. It has to be more about theory and creativity to make machines do amazing things. I am afraid though that your all or nothing situation and be ready by the fall schedule doesn't sound like a good combination. You would want some real world, already done it here in this setting, kind of platform to start from to move into that kind of education space. |
btiffin 31-Jan-2008 [690] | Rod; agreed. It is not in my nature to aggress when it comes to business, play, or life so if this is pursued it'll be a local night school kinda start. First step is an attempt at an Altme parse lecture surrounded by friendlies. :) |
Rod 31-Jan-2008 [691x2] | I have taken a stab at online training when blackboard.com came out, did a short expert course in my primary language (Progress 4GL) to some friends. It was an interesting experiment and very worth doing. At the time though the technology parts via the web was very limited (still is really but even worse then). I wonder if the emergence of VoIP, video and flash has moved us past how interaction might be done differently to just the same with different delivery mechanism. |
I look at things like Easy VID and Easy Draw and wonder what the possibilities could be to expand on that in place active content. | |
Anton 1-Feb-2008 [693] | What's the problem ? Rebol can be used for teaching programming, just like any other language. It has the three basic features: sequence, selection and iteration, so it can do anything :) Seriously, if you can find a programming course in another language, perhaps you can translate into rebol on the fly. |
Tomc 1-Feb-2008 [694] | I think Rebol can be used in the classroom in liew of a mainstream language based if nothing else on the fact that by the time the kids are ready there is apt to be a "new" mainstream language. what is important is learning to think and from my experiance rebol gets in the way far less than other mainstream languages. |
Vladimir 13-Feb-2008 [695] | Can anyone point me to some place where I could get rebol/services source code? I can not find it in usual places.... ?!?!?!?!? :( Is it right way to go if I plan an app that will need to exchange data over net ? |
btiffin 13-Feb-2008 [696] | Compressed at http://www.rebol.net/rs/server.rand client.r with the standard save ... ctx-services thingy. I'm pretty sure this is Gabriele's later release that has support for large file transfers. I would say yes, LNS is still a good plan. It's in use with DevBase. |
Vladimir 13-Feb-2008 [697] | Ahaaa..... so it was only matter of path..... http://www.rebol.net/rs instead of http://www.rebol.net/rebservices..... :) Thanks! |
Vladimir 28-Mar-2008 [698x2] | Here is one question for you guys: |
I want to upload file on ftp. I know I can do it like this: write/binary ftp://user:[pass-:-website-:-com] read/binary %file Or I am supossed to do it.... it just wont let me.... >> write/binary ftp://user:[pass-:-ftp-:-site-:-com] read/binary %file.txt ** User Error: Cannot open a dir port in direct mode ** Near: write/binary ftp://user:[pass-:-ftp-:-site-:-com] read/binary %file.txt I can read the contents of ftp rootdir with: print read ftp://ftp.site.com/ But writing is not working.... What does it mean: "Cannot open a dir port in direct mode"? | |
BrianH 28-Mar-2008 [700] | Try this: write/binary ftp://user:[pass-:-ftp-:-site-:-com]/file.txt read/binary %file.txt Yoiu were trying to write to a directory, not a file. |
Vladimir 29-Mar-2008 [701] | Thanks Brian !!!! I just didnt see it yesterday evening.... :) |
Gregg 30-Mar-2008 [702] | Another common issue with FTP is to set system/schemes/ftp/passive to true. |
Vladimir 31-Mar-2008 [703x2] | I looked at available documentation, and can not find any advanced settings like that in there..... Where can I find info like that ? p.s. But I can always ask you guys :) |
Ufffff......... I just found it in reb23 core documentation chapter 11.... :) That's what you get when you rely on google... :) | |
Vladimir 29-Oct-2008 [705x3] | Ftp problem again.... everything was working perfectly from march till now.... we changed internet provider yesterday and my scripts dont work any more :( Here is the core of script where error is: server: ftp://user:[pass-:-ftp-:-firm-:-com]/data file: %file.zip from-port: open/binary/direct lokal/:file to-port: open/binary/new/direct server/:file ** Access Error: Network timeout ** Where: confirm ** Near: to-port: open/binary/new/direct server/:file |
I can still connect with ftp applications.... | |
Should I check ports and wich ones? | |
Anton 29-Oct-2008 [708] | You can get more detail by doing this first: trace/net on Rebol will print more information in the console. At a deeper level, you can use Wireshark (open source program) to capture and analyse the ftp traffic. |
DideC 29-Oct-2008 [709] | Make sure the username does not contain any "@". It's often a problem, but may bring another kind of error. |
Vladimir 30-Oct-2008 [710x3] | Trace/net did gave more info: Its not my new internet provider... :) its our old router used in a new way... :) This is the message I get... Username... pass.... OK.... and then: Net-log: "Opening listen port 2655" Net-log: [["PORT" port/locals/active-check] "200"] Net-log: "200 PORT command successful" Net-log: [["CWD" port/path] ["25" "200"]] Net-log: "250 OK. Current directory is /apl" Net-log: "Type: new" Net-log: ["TYPE I" "200"] Net-log: "200 TYPE is now 8-bit binary" Net-log: [["STOR" port/target] ["150" "125"]] Net-log: "Closing cmd port 2652 21" Net-log: "Closing listen port 2655" ** Access Error: Network timeout ** Where: confirm ** Near: to-port: open/binary/new/direct server/:file |
On what port should I focus? It seams standard 20 and 21 are going thru.... | |
I noticed UDP disabled in my router configuration... could it have something to do with my problem? | |
Graham 30-Oct-2008 [713] | can you try this ? system/schemes/ftp/passive: true |
Vladimir 30-Oct-2008 [714] | It does not help..... :( As I wrote before... It worked without problem for half a year.... now I have new provider... if I connect my pc directly to WAN it works.... When I connect PC to my router lan port it does not.... Everything else works.... HTTP , FTP from Total commander... upload download...., torrents work.... |
Pekr 30-Oct-2008 [715x2] | Vladimir - what is your FTP user name? Does it contain @ char? If so, you need small patch. Look at how is Total commander FTP configured. It should work. Aren't you using proxy? You might install WireShark and watch packets, that is the very low level of networking, you will see everything there. Then you could compare your Total Commander connection with your REBOL one and see, where they differ.... |
also - what are your directories? Simple ones? Without space? Or is there space in it? | |
Vladimir 30-Oct-2008 [717] | user name is "visaprom.com" Total commander is set up simply... use passive is ON... here is what is happening with ftp/passive: true: Net-log: "215 UNIX Type: L8" Net-log: ["PWD" "25"] Net-log: {257 "/" is your current location} Net-log: ["PASV" "227"] Net-log: "227 Entering Passive Mode (194,9,94,127,235,183)" Net-log: [["CWD" port/path] ["25" "200"]] this is where it pauses and then: Net-log: "Closing cmd port 3565 21" ** Access Error: Network timeout ** Where: confirm ** Near: to-port: open/binary/new/direct server/:file |
Pekr 30-Oct-2008 [718x2] | so username contains .com? Not sure it is allowed or that url parser handless it correctly, but I might be wrong ... |
do you have any other account to try? | |
Anton 30-Oct-2008 [720] | He got passed the login stage - that's not the problem. |
Vladimir 30-Oct-2008 [721] | just a sec... |
Pekr 30-Oct-2008 [722] | ok, so port/path? What is the path you are trying to access? |
Anton 30-Oct-2008 [723] | FTP runs over TCP, not UDP. |
Vladimir 30-Oct-2008 [724] | as I said... it works from other connections.... only problem is this new one in this office.... it has to be something with router.... Im looking configuration pages for two days now... :( |
Anton 30-Oct-2008 [725] | Does the FTP server identify itself anywhere in the log ? |
Pekr 30-Oct-2008 [726] | So the same script works from other locations, right? Hmm, that is really weird ... |
Vladimir 30-Oct-2008 [727x2] | here is script result... |
to-port: open/binary/new/direct server/:file URL Parse: visaprom.com password ftp.visaprom.com none apl/ ik104.zip Net-log: ["Opening" "tcp" "for" "FTP"] Net-log: [none ["220" "230"]] Net-log: {220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------} Net-log: "220-You are user number 188 of 400 allowed." Net-log: "220-Local time is now 11:33. 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 15 minutes of inactivity.} Net-log: [["USER" port/user] "331"] Net-log: "331 User visaprom.com OK. Password required" Net-log: [["PASS" port/pass] "230"] Net-log: {230-User visaprom.com has group access to: www } Net-log: "230 OK. Current restricted directory is /" Net-log: ["SYST" "*"] Net-log: "215 UNIX Type: L8" Net-log: ["PWD" "25"] Net-log: {257 "/" is your current location} Net-log: ["PASV" "227"] Net-log: "227 Entering Passive Mode (194,9,94,127,216,138)" Net-log: [["CWD" port/path] ["25" "200"]] | |
Pekr 30-Oct-2008 [729] | Vladimir - IIRC, FTP is strange beast, and network admins don't like it. FTP uses port 21 to establish connection, but to transfer data, other port is used - 20 IIRC. |
Vladimir 30-Oct-2008 [730x4] | path is simply one directory name.... |
thats what is bugging me.... ftp from windows command line works... | |
from commander works... | |
even my script works up to the point.... | |
Pekr 30-Oct-2008 [734] | You also should be sure, that you use passive mode. So check your firewall, if port 20 is opened. But usually all ports going to WAN are opened ... |
Vladimir 30-Oct-2008 [735x3] | [["CWD" port/path] ["25" "200"]] |
what does it mean? | |
port 25? | |
older newer | first last |