World: r3wp
[Core] Discuss core issues
older newer | first last |
Graham 13-May-2010 [16583] | So, if you're not looking for a generalized solution.. then it's quite doable. |
Maxim 13-May-2010 [16584] | I've had issues where paths misaligned between list, read and write ops ! |
BrianH 13-May-2010 [16585] | It would have been great if the output format of the FTP commands had been part of the FTP spec. C'est la vie. |
Maxim 13-May-2010 [16586] | one of the problem is the ftp RFC which changed too many times and some older servers which forked between those changes. |
BrianH 13-May-2010 [16587] | Plus the stuff not covered by any of the RFCs at all, like file listing formats. There are Windows FTP servers that format their listings like DOS DIR listings, Unix servers that actually call ls, etc. |
Maxim 13-May-2010 [16588] | yep |
amacleod 13-May-2010 [16589] | I wanted to get modification-date on file for sycing...any other popular methods for this type of thing? |
BrianH 13-May-2010 [16590] | 'net-modes ? |
amacleod 13-May-2010 [16591] | network-modes? I do not see a ref erence to file dates. |
Maxim 13-May-2010 [16592x2] | info? returns file date in the block |
block = object | |
amacleod 13-May-2010 [16594] | Are we still in "get-modes"/ |
BrianH 13-May-2010 [16595] | INFO? is a different function than GET-MODES. |
amacleod 13-May-2010 [16596] | i'll try it thanks |
Anton 14-May-2010 [16597x3] | >> print mold get-modes %user.r get-modes %"" 'file-modes [status-change-date: 10-May-2009/16:24:13+10:00 modification-date: 10-May-2009/16:24:13+10:00 access-date: 14-May-2010/21:42:52+10:00 owner-name: "anton" group-name: "anton" owner-id: 1000 group-id: 1000 owner-read: true owner-write: true owner-execute: false group-read: true group-write: false group-execute: false world-read: true world-write: false world-execute: false set-user-id: false set-group-id: false full-path: %/home/anton/dev/rebol/view/user.r] |
Much easier to read if you do PRINT MOLD CONTEXT ... | |
Oops, you wanted FTP, sorry. | |
Graham 14-May-2010 [16600] | if the file is also available by http, I check the file date that way ... |
amacleod 15-May-2010 [16601] | Can you send html email via rebol SEND? |
Graham 15-May-2010 [16602] | sure ... |
amacleod 15-May-2010 [16603] | I tried using an html doc as the message but it just displayed the code |
Graham 15-May-2010 [16604] | You probably need a custom header |
Gabriele 16-May-2010 [16605x2] | you need to specify Content-Type: "text/html" |
(and, for compatibility with all clients, MIME-Version: "1.0") | |
Henrik 16-May-2010 [16607] | are there any docs or howtos available for async-http.r? |
Graham 16-May-2010 [16608] | Which async? |
Henrik 16-May-2010 [16609x3] | http://www.colellachiara.com/soft/Libs/async-http.r |
but if you say that, is there a newer one? this one hangs in OSX. | |
when closing the port, at least. | |
Graham 16-May-2010 [16612] | Use Romano's actp |
Henrik 16-May-2010 [16613] | I was hoping not having to deal with the TCP layer. |
Graham 16-May-2010 [16614] | Ive never used the async http ... |
Henrik 16-May-2010 [16615] | well, there are no docs for async-http.r so I can't tell at all how to use it and atcp-protocol.r is too low level. I'll have to rely on synced http. |
Graham 16-May-2010 [16616] | I would assume that if Gab wrote it will be similar to the R3 http |
Henrik 16-May-2010 [16617] | odd bug: R2 sometimes just quits when using trace/function |
Terry 16-May-2010 [16618x4] | Q: Can i use select/any against pairs! in a hash! ? Example? |
ie: i'd like to select 432x984 using *x984 | |
or decimals? | |
I'm looking for a delmiter in hash keys to separate two integers that i can perform a select/any on | |
Gregg 17-May-2010 [16622x2] | I've never tried, but I imagine you would have to form them for /any to work. |
It should be easy to test though. | |
Terry 17-May-2010 [16624] | How about this one.. Determine the first decimal place of decimal dec: 209.648 and I want to return the 6 |
Graham 17-May-2010 [16625] | to-integer multiply dec - to-integer dec 10 |
Terry 17-May-2010 [16626] | hmm, smart |
Sunanda 17-May-2010 [16627] | Or using strings: to-integer form first next find form dec "." == 6 |
Graham 17-May-2010 [16628] | interesting to benchmark but I suggested a math solution as normally math is faster than anything else |
Terry 17-May-2010 [16629] | ok, one last one for my rusty rebol FINDing the index of all occurences of an integer in a series ie: blk: [ 239 4545 23 655 23 656[ search for 23 and return [3 5] (not using foreach) |
Graham 17-May-2010 [16630] | use parse |
Terry 17-May-2010 [16631x2] | first one is result: find blk 23 .. but how to quickly find the rest foreach is way too slow on blocks with large amounts of data |
err: index? find blk 23 | |
older newer | first last |