« first day (1970 days earlier)      last day (1810 days later) » 

5:48 AM
0
A: |Red Programming Language| How to get Cookies from a Webpage?

tomccookies are just a field in the response header did you try "the library people"

 
 
3 hours later…
8:30 AM
@rgchris Do you have a list of all rebol.info feeds?
 
 
2 hours later…
10:15 AM
posted on March 23, 2016 by qtxie

FEAT: added EXISTS? function by qtxie

 
 
1 hour later…
11:16 AM
0
A: |Red Programming Language| How to get Cookies from a Webpage?

DocKimbelEven with the current temporary IO support, you can still extract HTTP headers and cookies info: red>> data: read/info http://microsoft.com == [200 #( Cache-Control: "no-cache, no-store" Connection: "keep-alive" Date: "Wed,... red>> list: data/2/set-cookie == [{MS-CV=z/YnyU+5wE2gT8S1.1; domain=...

 
@HostileFork async issues in Emscripten build maybe can be managed through a web worker!
 
 
2 hours later…
12:50 PM
posted on March 23, 2016 by qtxie

FEAT: accept image and text on panel face by qtxie

 
 
3 hours later…
4:09 PM
@draegtun rebol.info has the list in the form of <link> tags (should be able to just type 'rebol.info' into a feed reader to have the selection of feeds to subscribe to).
 
4:54 PM
@HostileFork @Ladislav HF am I to understand that the following will not work, even with specific binding implemented?
@RebolBot
; 'f calls the recursive 'fr with an empty accumulator
f: func [x i][fr x i copy []]
; 'fr puts 'x in the accumulator and then calls 'gr with its x argument incremented by 1
fr: func [x i a][if i > 0 [return gr x + 1 i - 1 append a 'x] out a]
; 'gr puts 'x in the accumulator and then calls 'fr with its x argument multiplied by 10
gr: func [x i a][if i > 0 [return fr x * 10 i - 1 append a 'x] out a]
; prints the accumulator and what it reduces to
out: func [a][print [mold a mold reduce a]]
@RebolBot alive?
 
@RebolBot
; 'f calls the recursive 'fr with an empty accumulator
f: func [x i][fr x i copy []]
; 'fr puts 'x in the accumulator and then calls 'gr with its x argument incremented by 1
fr: func [x i a][if i > 0 [return gr x + 1 i - 1 append a 'x] out a]
; 'gr puts 'x in the accumulator and then calls 'fr with its x argument multiplied by 10
gr: func [x i a][if i > 0 [return fr x * 10 i - 1 append a 'x] out a]
; prints the accumulator and what it reduces to
out: func [a][print [mold a mold reduce a]]
WTF ... grrrr
@RebolBot
f: func [x i][fr x i copy []]
fr: func [x i a][if i > 0 [return gr x + 1 i - 1 append a 'x] out a]
gr: func [x i a][if i > 0 [return fr x * 10 i - 1 append a 'x] out a]
out: func [a][print [mold a mold reduce a]]
f 7 4 ; should print "[x x x x] [7 8 80 81]"
 
; Brought to you by: try.rebol.nl
[x x x x] [810 81 810 81]
 
I guess she doesn't like "(see full text)" ... is that a bug, anyone?
Anyway, I hope you both can see what I am doing here, my final accumulated array contains 4 'x words, 2 bound to different invocations of 'fr and 2 bound similarly to 'gr.
I may be misinterpreting your "invariant" here @HostileFork (see referred-to post), please help clarify, thanks.
 
@MarkI Pretty sure line endings are replaced with spaces before sending over the wire to Try Rebol.
@RebolBot
print "this"
; comment
print "that"
 
5:02 PM
; Brought to you by: try.rebol.nl
this
that
 
Ok, maybe not!
 
@RebolBot
see: func [a b][print ["I got your" a b "right here, dufus!]]
; bunch
; o'
; comment
; lines
; to
; make
; chat
; show
; a
; line
; of
; (see full text)
@RebolBot delete
@RebolBot delete
@rebolbot delete
 
@MarkI Perhaps in your fantasy we got each other?
 
Must not go by line count, but character count?
Nope, seems like multiple ; lines do not count towards whether "(see full text)" is caused.
Why, your guess is as good as mine.
And that's not it either. What a surprise, undocumented "feature".
Is there a RebolBot test room? I'm sorry for annoying everybody ...
 
Output is:

>> f 7 4
[x x x x] [7 8 80 81]
 
5:17 PM
Thanks @HostileFork, so I was misinterpreting "ANY-WORDS can be relative to at most one function".
With my corrected interpretation, I don't know how one ANY-WORD could ever be relative to more than one function, so I still don't quite get it.
But, whatever, no problem.
 
@MarkI ANY-ARRAY! can only hold in its first level of content relative words to one function. There may be an ANY-ARRAY! that is specific in that first level of content which is specific, and which contains different relative words or relative arrays than in that level.
In any case, the key thing to realize is that all relative words and arrays in this system originate from one place--the deep copy that makes a function.
At that moment of copying, the opportunity is taken to fully specify any relative words in the source material. Hence, the only relative words will be the new ones--made for the locals and args of the function. And all arrays in the deep copy will also be relative to that function.
The reasons this can be made to work were not--at the outset--completely obvious. And now that it does work, the main question it asks is "okay, so you've avoided that copy...but what about the copy-and-rebind in for-each or similar?"
 
@HostileFork So if I took the COPY out of 'f it wouldn't work?
 
@MarkI I haven't entirely absorbed your example, but I can run it and tell you what happens.
 
Cool! Thanks!
 
Same.

>> f 7 4
[x x x x] [7 8 80 81]
The main thing to know about the relativism and function bodies is that there's no "user exposed" way of creating new relative references. If you do things that modify function bodies, then so long as that is allowed it will modify all of them...but if you stick a word on or an array on, it will be from the point of view of whichever instance that originated it.
 
5:27 PM
I am back to being mystified. Without the COPY, that should be a relative array with words in it that are multiple-function-relative.
 
The word is only relative as long as it lives in its "home array"
Once you copy or put that word into a new array or object variable, the act of copying specifies it.
 
So appending a relative word specifies it? I guess that's a yes :)
 
Yes. And the user isn't to know whether a word in hand is specific or relative, it's just the implementation mechanic going on underneath.
To the user-level API, all words are specific
 
Of course. Cool stuff, thanks again.
 
5:47 PM
0
Q: Sublime Text shows "NUL" characters in build output

OrangeFlash81I've coded a simple Red "Hello world" program in Sublime Text 3: Red [] print "Hello world!" I've also created a build system that I'm trying to use to compile and run the program, where G:\Red Programming Language\redlang.exe is the Red programming language compiler that I downloaded from th...

 
 
2 hours later…
7:29 PM
@MarkI Don't think so, you could set one up—RebolBot Overview
 
8:17 PM
posted on March 23, 2016 by Steven White

Being too lazy to copy and paste, I wrote a program to read Nick's file of short examples, put them into a menu, and run them when selected from the menu.  It's not a terribly long program even with my un-REBOL-ish style, so I will paste it in below in case anyone finds it useful.  Some demos are not friendly to this kind of running, but most work. Rebol [   &nbs

 

« first day (1970 days earlier)      last day (1810 days later) »