« first day (1417 days earlier)      last day (2363 days later) » 

3:13 AM
>> help crlf
 
; Brought to you by: try.rebol.nl
CRLF is a string of value: "^M^/"
 
Ugh.
Hmmm... I wonder about PRINT/ONLY not doing CR/LF translation but sending whatever you write literally.
And what if a PRINT string containing bare NEWLINE would do CR/LF translation on windows?
We've already talked about PRINT/ONLY being "just print, don't throw in the newline stuff", but it could have that additional angle.
print/only combine [{Content-type: text/plain} cr lf cr lf list-env]
That would be unambiguous and would not throw in spaces... no space after text/plain, no space between the CR and LF or in the other spots the spaces don't belong.
The idea that block input gets COMBINE/WITH space by default in PRINT and PRINT/ONLY makes sense to me, so if you want to suppress that you need to explicitly invoke COMBINE.
It's simply too useful to have the spaces by default.
I don't really like CR LF SP but I guess there's not much that can be done about those.
Choose-your-battles. But CRLF... that's too far.
 
Agreed - crlf = yuck
 
@RebolBot
yuck: rejoin [cr lf]
print crlf = yuck
 
; Brought to you by: try.rebol.nl
true
 
3:27 AM
Just reading back on the combine proposal. Did you have a draft impl on your blog page?
 
@johnk There's a draft implementation in Rebmu incubator: github.com/hostilefork/rebmu/blob/master/incubator.reb#L12
Not a good implementation, but good enough to test it.
The recent thing I suggested, which was panned, was to allow combined words to MOLD their values instead of being an error.
Because I was changing the definition of PRINT FOO in Rebmu to be PRINT COMBINE/WITH FOO SPACE
And as COMBINE treats nested blocks as "combine dna" to continue the expansion, some might miss the feature of being able to mold blocks without saying MOLD
When I did that, I changed my mind on the nested behavior of /WITH
And came to believe that it was inconsistent to not say it applies by default to all nesting levels.
 
Deep or even /deep
 
So combine/with ["foo" ["baz" "bar"] "mumble"] space would be foo baz bar mumble instead of foo bazbar mumble. So I defer to those who said it should be that way after all (@rebolek, @BrianH)
The way to get past it is to pass in a function that gets a depth parameter
More flexible than /deep
That function returns material that is then churned through the combine process as if it had been in the position. So it can return strings, blocks, etc.
It really beats the pants off of REJOIN
Once you start using it, you won't go back! :-)
Needs to be native, though.
If you didn't follow, I've killed WHILST off and decided I support instead a two-argument UNTIL: curecode.org/rebol3/ticket.rsp?id=2163&cursor=8
Then add a refinement for both while and until to only check the condition after running one iteration of the loop
Which is pretty sweet.
Those refined versions are WA and UA in a non-yet-checked in version of Rebmu, and very useful.
DO [code] WHILE [condition] doesn't work in Rebol syntax, but WHILE/AFTER and UNTIL/AFTER do work and come in handy.
Still open to alternative names for /AFTER, was just the first thing that came to mind.
 
Naming is hard. After makes sense to me
I need to play with combine and understand the nested behaviour more.
Sadly I have to go and work now- lunch break over ...
 
Pesky work!
 
3:41 AM
ttyl
 
 
6 hours later…
9:32 AM
For the record, Carl has stated agreement that charset [#"A" - #"Z"] should FIND #"a" if no /CASE refinement is used... and not FIND it if /CASE is used.
 
9:48 AM
I have trouble reading data from CGI using POST. I try to upload an image using POST then on server I use data: read system/ports/input to get the POST data, but it seems that the data are truncated. There doesn't seem to be some specific boundary where the data are truncated, I'm uploading images in range from cca 15-200kB, the resulting data are few hundreds to few tens of kB long, so there's no artificial boundary like 32'000 bytes. Anyone has any experience with getting data from POST?
 
 
11 hours later…
9:09 PM
@rebolek R2 or R3?
 
He stated R3 on AltME.
 
@earl R3
 
 
2 hours later…
10:46 PM
0
Q: How do I read large amounts of CGI data via POST in Rebol3?

Dan Lee@rebolek asks: I try to upload an image using POST then on server I use data: read system/ports/input to get the POST data, but it seems that the data are truncated. There doesn't seem to be some specific boundary where the data are truncated, I'm uploading images in range from cca 15-200kB, ...

0
A: How do I read large amounts of CGI data via POST in Rebol3?

Dan LeeThe read action on system/ports/input works at a low level, like a stream. Continuous reads will return partial data until the end of input is reached. The problem is that system/ports/input will return an error at the end of input instead of none! or an empty string. The following code works fo...

 
10:59 PM
@DanLee almost 20 now :) Can anyone else give Dan a friendly click to let him in to the room?
 
11:13 PM
@johnk @DanLee - done!
I need a case-sensitive map
m/"&agrave" == "à"
m/"&Agrave" == "À"
Any suggestion?
 
11:32 PM
@giuliolunati how about ..
@rebolbot
m: [ "&agrave" "à"
"&Agrave" "À" ]
print select/case m "&agrave"
print select/case m "&Agrave"
 
; Brought to you by: try.rebol.nl
à
À
 
@giuliolunati Do you need the speed of Rebol 3's map!?
 
@johnk @wisegenius - yes, speed is relevant. Real-life case is conversion html->unicode: many entities, and many conversions...
 
@giuliolunati Thought so. I would like to know a solution to this myself.
@giuliolunati We seem to be working on very similar things. Especially this: chat.stackoverflow.com/transcript/291?m=18354501#18354501
 

« first day (1417 days earlier)      last day (2363 days later) »