« first day (1014 days earlier)      last day (2766 days later) » 

12:03 AM
@HostileFork did the video end prematurely? He gets to the point of turning the hot water on at 28:26 and then it abruptly ends
 
@HostileFork The sponsors are shown a bit too briefly.
Carl popping out of Gregg in 0:13 is a bit weird :)
 
Million times better than those live feeds!
Thanks @HostileFork
 
 
2 hours later…
1:53 AM
@GrahamChiu You're welcome, but 28:26 isn't a problem from here. Video ends at 32:49...
@earl I edited out pretty much all the asides to the audience, but I wanted to keep the credit to you at 29:XX
 
2:33 AM
@RebolBot do/ideone ruby {puts "<?php ?>"}
 
@RebolBot do/ideone ruby {puts "Maybe something is stripping the angle brackets?"}
 
@rebolbot alive?
 
Oops.
She should automatically restart if she crashes (which is very rare)
 
maybe there's some latency
maybe she didn't crash, she just stopped
 
It's lunch time here. Maybe she just stopped for a snack
@rebolbot hi
@rebolbot hi
@GrahamChiu The cookie has expired for rebolbot. Can you help?
 
2:50 AM
:O
 
@AstDerek Currently the bot does not authenticate using a username/password. It relies on someone logging in and copying their cookie into the config file. This usually runs for months without an issue ... until today
unfortunately Graham (as the author of the bot) is the only one with her credentials
 
@johnk why is that? the need to use somebody's cookie
 
Authentication. The somebody in this case is @rebolbot so it is her own cookie
 
I mean, is it hard to implement a login function for the bot? or that's not allowed by SO?
So if I download the bot script and run it with my cookie details, it'd log as myself?
 
It is not hard or (as far as I understand) not allowed. It is just time and priorities
@AstDerek Yes. Be aware that if you are also logged in as yourself at the same time it can get in a bit of a loop replying to itself.
Source is here if you want to have a look github.com/gchiu/rebolbot
 
3:03 AM
Hey John.
@johnk Just wondering. Have you used Rebol to securely upload files to a website via Rebol/services or something?
Reason I ask is that I've been using rebol to script sftp and ftps utilities, but I hit a wall with both of those for one of my domain hosts. Was wondering if there was a nicer rebol way to upload .html etc that you've come across.
 
@Brett Non-rebol, but are you familiar with rsync? It is a great tool for that kind of a job.
Especially over ssh
 
@johnk ssh is a problem. they will open the firewall to my ip by request, but I don't have a static ip and I think it changes fairly regularly :-/
which is why sftp doesn't go
and ftps just keeps hitting timeouts, so they say it is not supported . arg.
wondered if there was a cgi script I could use, since I do have rebol on the server
 
3:29 AM
Hmm. There was an upload server I used in the past
The code I used was from a discussion on the mailing list rebol.org/ml-display-thread.r?m=rmlKVSQ
 
@johnk Thanks. I was hoping for security to be all done too. Might look into Rebol/services closer.
 
Rebol/services does sound like another option, but I have not played with it. Rebol 2 only I would expect.
Let me know how you go.
 
I wasn't able to run the bot: Script Error: sys has no value
 
@AstDerek Are you running it in rebol 3?
 
@johnk 3 is the unofficial version as @HostileFork said before, isn't it? I downloaded a binary from rebol.com/downloads/v278/rebol-core-278-2-5.tar.gz
 
3:44 AM
@AstDerek The bot is written for rebol 3. The best place for the current rebol 3 binary is rebolsource.net
It is not quite as polished as the rebol 2. Tab command completion does not work for example, but we are getting there.
There are many changes from rebol 2 to rebol 3 so many scripts will not run (although many will).
 
Done, how do I know if it works
 
When you run it it has a lot of debug output as it loops through and reads all of the messages from the room
I suggest configuring it to point to another room to play with it. I was using chat.stackoverflow.com/rooms/31067/test-only
 
@johnk I need a second account to send commands to the bot under my account, right?
 
3:59 AM
Not nescessarily, but you need to make a few tweaks to stop it replying to itself :-)
It is easier if you have a separate account
Start with only 1 or 2 commands in the commands folder (I copy the ones I am not testing to a disabled-commands folder). Maybe start with just help
In the main script it is the eliza responses which need disabling to stop it talking to itself. Comment out lines 361, 366 and 390 to stop eliza responding.
I've got to head out so I won't be able to offer much more help. Hopefully Graham or Adrian will be back online soon as they are experts on the bot.
 
4:31 AM
@AstDerek Forgot to mention. Using chrome developer tools is a good way of getting the fkey and the cookie to put into the config file.
 
 
2 hours later…
6:13 AM
Looking again at the Ten Steps introduction (words section), an example for words is first names. I'd assumed that Proper Nouns are appropriately represented as strings (or at least string types), are there indeed areas where words are the better choice? (further example in the paths section)
 
6:31 AM
Presumably the paths example would be a little more awkward to express, but still relatively concise: places/("USA")/("CA")/("Ukiah")/size
 
6:56 AM
@rebolbot present
 
@rebolbot is having a short and well earned break until Graham returns with some fresh credentials
 
@johnk tiresome isn't it
 
I agree on the 10 steps with words especially with rebol 3 unicode support for words as per the nice recent poker examples
@RebolBot Are you channeling marvin?
 
@johnk please explain
 
@rebolbot Brain the size of a planet and all you do is answer trivial rebol queries ..
 
7:03 AM
@johnk I'm not Big Blue
Ok, new bot-config.r uploaded
@rebolbot present
hmm. Not working still
 
API change?
 
@RebolBot johnk RebolBot rgchris HostileFork GrahamChiu DarrellBrogdon Respectech kealist pekr HuayinWang
@RebolBot Can you elaborate on that?
@RebolBot What do you mean?
@RebolBot What do you mean?
 
@rebolbot version
 
@GrahamChiu 0.1.3 20-Jul-2013
 
@johnk Using an old skeleton bot-config.r file
so this produced an error
I wonder why we had to get new cookies .. it's not as though rebolbot hasn't been talking ...
 
7:12 AM
Good news. Maybe they bounced the server with the session on it?
 
Who knows.
 
Would you mind adding the bot credentials to a text file in the rebolbot directory until we come up with a better solution?
 
now what's the status of the altme client?
@johnk heh as if I know them!
 
@GrahamChiu I got distracted by r3.js. I'll get back onto it :-)
 
I use the browser to login for me and then still use wireshark to capture them. I use wireshark because I have Maxthon as the browser for rebolbot
And Maxthon doesn't seem to have header capture tools
we really need to figure out how to login using rebolbot
 
7:32 AM
@GrahamChiu I'm sure we've had this conversation before sometime :-)
 
@johnk I need to set aside some time to track how this all works but the last time I tried .. couldn't figure it out
 
I'll have some time later.
Need to also have a simple way to determine if she is still logged in
 
@rebolbot q ;; bot silenced!
 
@iArnold Can you elaborate on that?
 
@iArnold You've been foiled by Rebolbot!
 
7:41 AM
@Respectech foiled?
@Respectech There is a lot of talk to a bot on this room.
 
@iArnold Bot knows more rebol than a lot of visitors here
 
@Respectech Bot is REBOL
 
@Respectech wasn't there supposed to be red commercial product announce?
 
I find Rebolbot being used contraproductively here, most of the time it is simply- overused ...
I understand guys maight be testing stuff, but it is noisy indeed ...
 
7:59 AM
@pekr, you funded the tray.r script .. do you have docs for it?
 
no, no docs. Cyphre is the author, so most probably he will be able to give some answers. I might scan my HD to see, if any doc is available, I don't remember, it is a long time ago since it was done ...
 
@pekr @solesoul was asking on how to use it ...
 
so I have only tray.r, and one gif and one png in a dir. Noticed at the end of the tray.r, there are few short exemples of usage ...
 
Presumably you used it in your own code??
 
no, I was able to sponsor some stuff, so I ordered Rebgui grid, which was my priority, and tray.r, as I found it usefull for others to use.
 
8:35 AM
Took my dog out for a walk by the beach today ... so wasn't able to respond to the bot credentials issue ...
Was going to take him along the bike trail but all dogs are banned from the 1st August to October as it's lambing season ... though my guy would be smaller than most lambs!
 
9:10 AM
looks like lamb, maybe noone would notice :-)
 
9:25 AM
@pekr Hey, that's a point! Just need to dock his tail though :(
 
 
2 hours later…
11:06 AM
@johnk And proper nouns with spaces? USA/CA/San Francisco/size
 
11:56 AM
Now we know what Graham look like, as all dogs look like their owner ;-)
 
:-)
 
12:13 PM
@iArnold Hemispherical head... I knew he was an Android all along.
 
12:30 PM
@rgchris Using words like in the example does make for very readable code, but it does not allow for much flexibility in naming eg San Fransico. Maybe we could use an example like planets in our solar system where they are all valid words.
As a general approach, words are for internal representation whereas strings are for external representation. Often the translation between the two is trivial (and in some cases direct) which improves readability.
 
Is the reason that

type? now:

is an error related to the lexer ?

But
 
@G.RobertShiplett You can always use type? quote now:
 
type? :flrpx

is not an error - it is an unset ( and not a get-word ? )

so why is the value of

type? blrpm:

not an unset on starting up the console ?
prefix quote is of course fine ... my curiosity is about set-word and get-word as types
on starting up the Red console, I mean ...
I will add a morning cuppa coffee to the mix and see if the mirror de-fogs ;-)
 
@G.RobertShiplett I am not so sure about the behaviour in Red. I'm still learning about Rebol!
 
And still hope Red drops q in favour of just quit ;-)
 
12:41 PM
0
Q: type query in Rebol and Red now

G. Robert Shipletttype? now and type 'now are fine, of course - but as type? :now is not an error, does Red language want type? now: to continue to be an error as it is in Rebol ? Why not return type as set-word ?

 
And I am trying to re-learn some rebol while keeping up with Red - and a firndly 'good morning' from Canada maritimes Atlantic tz ;-)
'friendly ; firndly ??
 
Up arrow allows you to edit your previous posts in this chat (for a couple of minutes)
 
I always feel happy exploring Rebol ; how i 'feel and not how i 'sound
UP arrow - gee, thanks ... my shaky fingers need that ! Oh to be -40 yrs in the A.M !
 
-40yrs would be problematic here :-O
 
i need a clarinet-shaped char input device - APL had a kybrd once ;-)
a Unicode clarinet ... is that an oboe in France ? ;-) 'hautbois
 
12:48 PM
APL does sound fascinating. Never had the chance to play with it
 
typing HELP gives me most often hlep hlpe but never ehlp ... a diganostic sign ? :-O
there is no playing with APL - actuaries do NOT play well with mere programmers ! ;-)
there is some matrix cross-product joke on why no actuaries are polygamists, but some polygamists confuse a few actuaries some of the time ;-)
 
@G.RobertShiplett I'm surrounded. I am helping out some actuaries at work at the moment. Smart guys, but access and excel are blunt tools to use
 
;-)
in my day some few dreamed of C++ ... and then came J, the language ;-)
Java, JavaScript, J

Could marketing have been any less helpful ?
 
I think the answer to your SO question is the way the do dialect evaluates code. If you expand out to type? set 'birplm it is more obvious that set is missing a parameter
 
When they named Icon, only brilliant Polish logicians talked about old icons ...
to my mind, it still has a funny feel ... but then I also continue to reject div by zero ;-)
and thanks - I seldom chat, as it interrupts talking to myself ;-)
 
1:00 PM
@G.RobertShiplett so long as you keep yourself good company
 
I had not anticipated my typing would start to fail before I ran outa jokes that fall flat
 
@AgungPratama Welcome to the Rebol and Red room. See our FAQ. Cool, you have a reputation score of 377 so chat away!
 
Hi to Indonesia ... must be getting late or even early Sunday
 
@G. Robert: :D, no currently I am working at Japan.
 
@G.RobertShiplett Have you heard of the rebol or red laguages before?
 
1:08 PM
@johnk What do you mean?
 
well, i never heard of them, but I want to know
 
Rebol is a simple language which is very expressive and treats data and code in the same way.
Have a look at this for a quick introduction rebol.com/rebolsteps.html
We can use our friendly bot here to show you how it works interactively
@rebolbot
print "Greetings to @AgungPratama"
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print "Greetings to @AgungPratama"
Greetings to @AgungPratama
 
wow!, cool
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print "Greetings to @AgungPratama"
Greetings to @AgungPratama
 
1:14 PM
so this @RebolBot account, is actually the normal stackoverflow account?
 
Yes
Rebolbot is a rebol 3 script which reads these messages then responds when asked a question
 
Does it has any intelligence (AI)?
 
@AgungPratama Not as such, but it could be extended to do so if required.
It it was too chatty it would distract from teaching people about the languages
@rebolbot
code: [ 1 + ]
append code 4
do code
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> code: [1 +] append code 4 do code
== 5
 
code is treated just like data so you can define some "code". Modify it, such as appending a number, then execute it.
There are also many built in datatypes for example,
@rebolbot
print type? test@example.com
print type? 12:00PM
print type? $12.51
 
1:20 PM
; Brought to you by: tryrebol.esperconsultancy.nl
>> print type? test@example.com print type? 12:00 print type? $12.51
email!
time!
money!
 
which makes it easy to do things like
@rebolbot
22/Feb/2013 - 40
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> 22-Feb-2013 - 40
== 13-Jan-2013
 
@AgungPratama still with me?
@AgungPratama it runs on many platforms from Windows to Android and is very light weight (the interpreter is ~1MB in size)
 
1:40 PM
It is late here
@rebolbot goodnight
 
@johnk goodnight to you too
 
2:33 PM
I'm going to vote against "card aging" on Trello. It makes it hard to read.
 
 
1 hour later…
3:33 PM
But hey, they added markdown in checklists and comments. That's good
 
4:02 PM
@johnk I am trying so hard to learn to read 漢字 in 日本語 ... my older brain gets its exercise project ... kanji.aule-browser.com ... many pages are created using rebol but the markup used is SCSK-owned Curl ( as in Tokyo-based Sumisho + CSK ) but it uses regex for text instead of something smarter as in Rebol parse dialect or Icon string processing ... and nothing I know is as clean and simple for web scraping as rebol !
Trello is pretty good so far for me ; for notes, Penzu misbehaves in my Pale Moon browser ... I am getting to like Opera notes in THAT browser ;-) some mornings I use cl1p.net or my own "knowte" pages ...
 
@G.RobertShiplett Nice mobile apps for Trello, if you haven't tried 'em...
 
 
2 hours later…
6:35 PM
@RebolBot prin "nothing to to"
 
@iArnold What do you mean?
 
@RebolBot print "Oah yeah nOw I gettit"
 
@iArnold Please continue.
 
@RebolBot
print "test"
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print "test"
test
 
6:39 PM
That was not easy ;-) It needed an extra linefeed before the command, I am not used to that anymore ;)
@RebolBot
print "When is the new release of Red finally coming to the rest of the world?"
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print {When is the new release of Red finally coming to the rest of the world?}
When is the new release of Red finally coming to the rest of the world?
 
6:53 PM
@iArnold - interesting, how our impatience is involved here :-) I am waiting for new Red release as well. The truth is, that on Github, it is already released. We just wait for @DocKimbel to write a blog article. Docs are already updated on the website ...
 
7:08 PM
@pekr Yes the blog entry is the real release moment. Almost all refreshes are mine, my <F5> key is collapsing under the weight of my fingers.
 
ok, then 30% could be actually mine :-)
 
7:29 PM
earl has made a change to the feeds posted into this room
 
7:45 PM
DocKimbel has made a change to the feeds posted into this room
DocKimbel has stopped a feed from being posted into this room
 
Ah, sorry, I saw too late that the Red feed was already in the list.
 
posted on September 22, 2012 by noreply

Red is growing up fast, even if just born two weeks ago! It is time we implement basic string support so we can do our first, real, hello-word. ;-) Red strings will natively support Unicode. In order to achieve that in an efficient and cross-platform way, we need a good plan. Here is the list of Unicode native formats used by our main target platforms API:      

posted on October 28, 2012 by noreply

We have all waited long for this to happen, but it is finally there: first Red alpha release! This is the biggest milestone since the initial release of Red System, as it marks the entrance of the higher layer of the Red software stack. There's still another layer pending, the JIT compiler, but that's for 2013, when Red will be self-hosted. What Red can do so fa

posted on December 15, 2012 by noreply

This new milestone brings (finally) functions to Red along with other new features and fixes. Let's first have a quick overview of 0.3.1 release content: function supportpath get/set notation supportrefinement support for native functionsexpressions in parentheses compilationnew datatypes: function!, paren!, path!, lit-path!, get-path!, set-path!new actions and natives: find, select

posted on January 02, 2013 by noreply

At the beginning of this new year, I took a moment to look at the work we did since the first public commit of Red. Even if I am a perfectionist that is never satisfied with its own work, I must admit we did a quite incredible job so far. In two years we built not one but two programming languages: Red/System which is in beta state and usable to make real world apps, and Red which is

posted on March 23, 2013 by noreply

Time has finally come to release the new REPL for Red. A preview version has been pushed last Christmas, since then a lot of work has been done on several fronts (about 310 new commits, excluding merges): interpreter (DO), runtime lexer (LOAD) and console. But before going into details for the REPL, here is an overview of the changes in this new release: New datatypes: routine!, issue!, f

 
@DocKimbel - don't tweak the bot, release Red, or we will destroy our F5 keys :-)
 
@pekr Working on writing the blog entry...I'm slow at such kind of tasks.
 
@iArnold "foiled" means that your attempt to kill Rebolbot was not not allowed by Rebolbot.
 
7:55 PM
@DocKimbel Only release we are really interested in is release 255.0.0 ;-)
 
the most versatile release is 0.0.0.0 - you can go anywhere, once at starting point :-)
 
@iArnold Hmm, you'll have to wait a lot then, at least 254 major versions. ;-)
 
I have a red wine bottle reserved here for a weekend. Hopefully I will be able to have a drink, before next week starts :-)
 
The fourth is transparency...
Red red wine.... bottle bottom in sight hips..
@DocKimbel That is a long wait but 0.3.2 is nowhere near to Red :-)
 
Well, I hope after 0.3.3 release, things are going to move ahead a bit more faster, no distractions like another ReCode devcons, etc. :-) We want objects, networking, io, tasking, right? :-)
 
8:21 PM
Webdevelopment scripting using Red complete with database support. Run it on the Apache server my webhoster provides me with and finally get rid of all that php gibberish.
 
@pekr Hi. I saw you say that there are a few examples of how to use the tray.r script. I can't find them at the end of the script here http://www.rebol.org/view-script.r?color=yes&script=tray.r Can you please upload the text somewhere?
Thanks!
 
I doubt I have anything more than what is available. Yet at the end of the script I can see "DEMO starts here" comment. Can't you find it in your tray.r script?
If not, I can send you what I have, but really not sure I have anything special to what others already have ...
 
8:35 PM
@pekr No, the script from the site doesn't contain the word DEMO anywhere in it. It ends with the end of the tray context. I would love to see this demo section.
 
ok, give me your email then ...
wait, i will pack it and upload
 
@pekr Yes! Thank you. This is something I can start working with. At last, new information :)
 
good :-)
 
@pekr While letting @DocKimbel make the most of his time is important, it's only part of the growth and "completion"... outreach and getting investors/stakeholders/community, and then (cough) not letting those investors/stakeholders/community down is important too.
 
I don't understand, what you mean :-)
 
8:42 PM
@pekr I mean that two more Rebol/Red conferences this year is a good sign.
 
I know that Devcons are important. The thing is, that surely, even Doc knows, that objects were due to in May, etc. But - priorities shift. I am glad Android came, I am glad Kernel drivers came, so generally I am satisfied, just - impatient :-)
Red/System is kind of mature. I can't imagine, anyone would envision better system to create extensions, even for R3, unless C skilled person. It is expanded R2/Dll interface on steroids imo.
But, generally, most ppl are in a wait mode, unless Red becomes more practically usable. Without networking, file and other IO, events, parse, ppl will be reluctant to give it a test. I hope many new stuff comes in 2013, otoh I am worried, as Doc plans to leave for China somewhere in late October ... not sure how it affects further developments ...
 
@pekr He's still feeling it out... and I think that fast-tracking the mobile/embedded details is probably a wise reordering of priorities. Rebol grew up in a different era and we kind of know what conclusions that went toward... the language might be shaped differently if things like Android and Raspberry Pi are front-loaded.
 
9:45 PM
Hello everybody. What does it mean if the bot script tells me No configuration file when I try to run it?
 
10:01 PM
@AstDerek Heya @AstDerek! Welcome back. The people to ping on bot issues are @GrahamChiu and @johnk and @Adrian ...
But... how are you invoking Rebol?
 
./r3 rebolbot.r3
or ./r3 ... >> do %rebolbot.r3
 
@AstDerek I've not gone through the process myself, but on cursory inspection it looks like you're supposed to make a bot-config.r based off of bot-config-sample.r and have it in the directory.
 
yup
 
@HostileFork it's already there, with all the details needed
 
@AstDerek Does exists? %bot-config.r return true?
 
10:07 PM
Have you tried removing most commands from the commands directory to try and simplify things until you have a very basic bot running? Try just leaving the help command there.
 
`exists? %bot-config.r`
`== file`
Yes, no difference
 
@AstDerek Hm, something about twitter-config perhaps... github.com/gchiu/rebolbot/blob/master/twitter.r3#L136
 
It seems so, neither grep nor Sublime Text found that O.o
 
@RebolBot tweet {Hey, don't forget my twitter configuration if you're going to run me yourself: github.com/gchiu/rebolbot/blob/master/twitter.r3#L136}
 
@HostileFork Sending this as a tweet: Hey, don't forget my twitter configuration if you're going to run me yourself: github.com/gchiu/rebolbot/blob/master/twitter.r3#L136
@HostileFork Please continue.
 
10:15 PM
@johnk Maybe we should test the Twittering more often. :-)
Also, we have to add a Flutter extension
 
Edited some files to remove twitter and ideone, seems to be working now
thanks
:)
 
@AstDerek No problem, great to have more people messing with the bot. But hope you don't foray too quickly into the grimy edges of Rebol 3 before you learn why we all think it's super fun. :-)
 
1. how do I insert a newline into a constant string (e.g. in a script)?
2. how do I insert a newline into a constant string in the repl (e.g. to test above script)?
 
@RebolBot
print {Hello^/Multiline^/World}
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print "Hello^/Multiline^/World"
Hello
Multiline
World
 
10:24 PM
@HostileFork Rebol is like a tree of tokens, you can replace any node with more nodes, and play with it
 
@paultarvydas If you want to paste multiple lines into the REPL, e.g. from the clipboard, unfortunately, that requires "Console API" work vs. just stdio. It's one of those things that makes it hard to pry the Rebol 2 interpreter out of some people's cold dead hands... :-) but someone should address it. We're trying to get the Rebol 2 console open sourced so we can borrow from it for the Rebol 3 solution, Carl said that would be fine.
@AstDerek The technical term is homoiconicity and it shares that with Lisp and other languages in that family... but what sets Rebol apart are some other subtleties.
It's not really a tree in the conventional sense, because there is no "parent". Values can appear in more than one place but you can't climb them, like a DOM. If you want a real tree, you have to implement it the way you would in other languages with parent pointers.
 
10:46 PM
@Cyphre I upgraded to Android 4.3 and the R3GUI demo disappearing text issue has reappeared
@HostileFork Carl has said he would upload the Rebol2 console code to github ... but ... so, I try to keep reminding him!
@AstDerek What are you going to use the bot for?
 
@GrahamChiu testing
 
11:08 PM
@HostileFork I tried the video again and the rest of it appeared this time
Just wondering how hard it would have been to have had Carl as a PIP in the right lower corner of the slides ...
That seemed to have been unused screen real estate
 
@GrahamChiu Slightly hard in that the edits to slides are used to clip out tangents, microphone battery dying, expressions of disbelief that there was a Rebol conference happening, critiques of the default Insteon software, etc. Also if you didn't happen to catch the timeline, that's like... quite a lot of work to do even that much, it just wouldn't make sense to put in another hundred edits.
 
@RebolBot
if [parse "filename.r3" [".r3" end]] [ print "valid extension" ]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> if [parse "filename.r3" [".r3" end]] [print "valid extension"]
valid extension
 
@RebolBot
if [parse "filename.txt" [".r3" end]] [ print "valid extension" ]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> if [parse "filename.txt" [".r3" end]] [print "valid extension"]
valid extension
 
11:14 PM
@AstDerek IF conditions can't be in a block, this is a technical issue. A block isn't NONE or FALSE ... it's a value...
 
@RebolBot
if parse "filename.r3" [".r3" end] [ print "valid extension" ]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> if parse "filename.r3" [".r3" end] [print "valid extension"]
== none
 
@rebolbot
if %.r3 = suffix? %filename.r3 [ print "valid extension" ]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> if %.r3 = suffix? %filename.r3 [print "valid extension"]
valid extension
 
@AstDerek It's partially tail wagging the dog, in that a Rebol block containing an expression "costs more" than an expression itself in the interpreter, and then IF would have to test to see if it had a block or not, and also it's visually cluttery to put the block when it's not needed technically... but there are some other justifications for it actually.
 
11:17 PM
if system/options/default-suffix = suffix? command [ append lib/commands ... ]
the script was trying to import .DS_Store
 
Steve, Australia
659 4 17
@Steve Welcome to the Rebol and Red room. See our FAQ. Cool, you have a reputation score of 659 so chat away!
 
Heya @Steve... welcome to the Saturday Night Party Zone. :-)
@RebolBot
if find [{@AstDerek} foo] 'foo [
    print {This is another reason.}
]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> if find ["@AstDerek" foo] 'foo [print "This is another reason."]
This is another reason.
 
Now I'm confused
 
@AstDerek Find doesn't return true or false. It returns the position in the series, which Rebol can't tell from a BLOCK!...
@RebolBot
find [a b c d] 'c
 
11:29 PM
; Brought to you by: tryrebol.esperconsultancy.nl
>> find [a b c d] 'c
== [c d]
 
@RebolBot
if [] [ print 'confusing ]
 
Thus, if the IF function dug into blocks and considered them code it should evaluate for the condition, it would prohibit this kind of use.
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> if [] [print 'confusing]
confusing
 
@RebolBot
if length? find [{@AstDerek} foo] 'foo [
print {This is another reason.}
]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> if length? find ["@AstDerek" foo] 'foo [print "This is another reason."]
This is another reason.
 
11:31 PM
What's kind of annoying is that because WHILE or other loop constructs must (by necessity) take a block... (for multiple evaluation)...when you switch between them you can often forget and leave the condition in the block or vice versa.
 
how do i test if a string contains a word then
 
@RebolBot
found? find {You mean like this?} {mean}
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> found? find "You mean like this?" "mean"
== true
 
@RebolBot alive?
 
11:34 PM
@RebolBot you were not yesterday
 
@AstDerek That's very interesting.
 
@RebolBot append responses "Cool story, bro"
 
@AstDerek That's very interesting.
 
@AstDerek Do note that each expression evaluation happens in a sandbox, RebolBot doesn't run the code itself. If you're going to hack anyone, you can go hack Kaj. Tell him Fork sent you. No, on second thought, maybe that's a bad idea. :-)
 
@HostileFork I'll better make a pull request
 
11:39 PM
@rebolbot tweet {Hey, don't forget my twitter configuration if you're going to run me yourself: github.com/gchiu/rebolbot/blob/master/twitter.r3#L136}
 
@johnk Sending this as a tweet: Hey, don't forget my twitter configuration if you're going to run me yourself: github.com/gchiu/rebolbot/blob/master/twitter.r3#L136
@johnk What?
 
Let's try that again
@rebolbot tweet "New version of red coming soon ...."
 
@johnk Sending this as a tweet: New version of red coming soon ....
 
@RebolBot do append {Also note that because RebolBot does not by default assume your Rebol-formatted data is Rebol code you want to execute, but rather a command e.g. 'tweet' (which is a bot-specific dialect thing)...if you want to run code you must either enter a newline or use the dialect word DO, which is philosophically rather distinct from Rebol's DO in behavior, somewhat to my annoyance...} {FYI: @AstDerek}
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> append {Also note that because RebolBot does not by default assume your Rebol-formatted data is Rebol code you want to execute, but rather a command e.g. 'tweet' (which is a bot-specific dialect thing)...if you want to run code you must either enter a newline or use the dialect word DO, which is philosophically rather distinct from Rebol's DO in behavior, somewhat to my annoyance...} "FYI: @AstDerek"
== {Also note that because RebolBot does not by default assume your Rebol-formatted data is Rebol code you want to execute, but rathe
 
11:42 PM
Well that works. I thought I had ironed out all this issues with odd characters. I'll try and sort that out tonight.
 
@HostileFork But it was a joke :(
 
@RebolBot
-P: {:-P}
print [{But the *best* jokes are executable, @AstDerek} :-P]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> -P: ":-P" print ["But the *best* jokes are executable, @AstDerek" :-P]
But the *best* jokes are executable, @AstDerek :-P
 
@AstDerek You're not a real programmer until your code really starts freaking people out. :-)
 
@HostileFork If I write some PHP you'll be freaked out
 
11:53 PM
@AstDerek No, just disappointed. :-) So, Rebol has a couple of web answers, you might have found them. Cheyenne is the webserver, but improvements are on hold while Red is the main focus of the author. QuarterMaster can run under Apache or Cheyenne.
 

« first day (1014 days earlier)      last day (2766 days later) »