« first day (1042 days earlier)      last day (2738 days later) » 

4:06 AM
@earl well it can't hurt to support major categories as refinements...kind of skeptical of letter/fragment or anything so esoteric. But again, international cred is good. If a standard exists point to it and do it well
 
4:45 AM
0
A: Filtering part of a list?

Ashwini ChaudharyYou can use re.sub; replace everything other than 'D' with ''. >>> import re >>> strs = "RED REDD REDDD REDDDDD ABCDeeeeDDDDDDDD ABCD" >>> [re.sub(r'[^D]+', r'', item) for item in strs.split()] ['D', 'DD', 'DDD', 'DDDDD', 'DDDDDDDDD', 'D']

1
A: Filtering part of a list?

Radio-You have many options, some already noted in other answers, as well as these: regex for pattern matching import re s = "RED REDD REDDD REDDDDD" pattern = r'D+' re.findall(pattern, s) string operations "".join([x for x in s if x in ' D']).split()

0
Q: Filtering part of a list?

R337Let's say that I ask for input and the user enters "RED REDD REDDD REDDDDD". I convert the string into a list, named red. red[0] = 'RED', red[1] = 'REDD' and so forth. How do I get it so that it ONLY displays the letter D, and removes everything else? So then red[0] would be D, red[1] would be DD...

 
5:09 AM
what makes some questions and answers in SO with red and rebol tags coming to the chat room and others not ?
 
5:22 AM
@kealist Brett and I started updating his existing parse tutorial to R3. Very much work in progress, but feel free to add in any ideas.
 
 
1 hour later…
7:08 AM
@rebolbot present
 
@johnk johnk HostileFork onetom rgchris Respectech DarrellBrogdon Henrik
 
7:58 AM
Answers to Active Questions Tagged Rebol [and Red] - Stack Overflow posted by Feeds reb4.me/so.feed gives a Bad Request
 
 
6 hours later…
1:40 PM
@sqlab that's because @rgchris only serves that feed to requests originating from StackOverflow servers
 
1:55 PM
@johnk sweet! I'll check it out later
Just got an old laptop up and running with #! (crunchbang).
feels nice to be using linux again
 
0
Q: Is there an equivalent to "continue" (python) in rebol?

pierreI am converting some python code to rebol, and I just came across a "continue" instruction. It interrupts the processing of a loop, going to the next iteration of the loop. I find this word quite elegant and readable. I came across some answers there: (in French), but nothing really "elegant"...

 
2:18 PM
In my answer to the above question I will remind everyone of some PR points.
 
Hello
PR: ?
I just switched to Rebol3... it took me about 5 seconds to get disgusted, I'm afraid...
 
@pierre Oh, sorry, "public relations". Marketing term, english
 
ok
 
"What works in outreach"
People are doing a good job saying Rebol2 and Rebol3 and not R2 and R3, so good work on that, but we maybe should go back over old Q&A and fix those up. And capitalization is all but dead. (And remember: if not otherwise specified, "Rebol" is Rebol3.)
 
Did you notice I followed that in my question? I tagged only Rebol, which implies... Rebol3!
 
2:28 PM
@pierre Very good. I said people were doing a good job. :-)
 
(except I'm still with my good old Rebol2, which just rocks, despite being closed-source)
 
But in any case, the other thing I wanted to point out was that if you have a chance to demonstrate a cool Rebol thing as part of sample code, do it. I could have said print "this prints" and print "this doesn't", which in fact I did before I caught myself and did something better...
 
I'm working on a database, at the moment, about geological data.
I use postrgresql, through rebol magic.
 
It's much better to say print {"This'll print", {HostileFork} said.} and print {"This won't print", {HostileFork} said.}. Each time we have a Q&A, it's a chance to demonstrate something cool.
 
I was planning to release this as open-source, probably GPL3, a long time ago, but time flies...
and always urgent things to do...
But I decided to bite the bullet, and just publish this, so it'll be a lot of SQL, plus some rebol scripts
 
2:35 PM
@pierre Well Rebol3 is missing some pieces. Database connectivity is one such piece, I've heard. What I do is kind of more abstract; I'm mostly interested in the language core so I'm not sure just how much is missing or what workarounds exist. Hybrid solutions which do some work in Rebol3 and some in Rebol2 are for instance what Atronix is considering, as mentioned in the video.
 
The result of about 20 years of experience in battling with various databases, down-to-earth physical work, finding practical solutions for everyday problems that a geologist addresses while doing mining exploration in the middle of nowhere.
@HostileFork In fact, it's not database connectivity which upset me a few minutes ago:
only the fact that copy-pasting code from my favourite vim to rebol3 console ended up... badly.
I didn't even get a chance to try @DocKimbel's postgresql driver (the one I'm using in Rebol2) in Rebol3...
 
2:50 PM
@pierre Forget about using any scheme handler written for Rebol2 in Rebol3, the port! datatype has been changed.
 
1
A: Is there an equivalent to "continue" (python) in rebol?

HostileForkCONTINUE is not in Rebol2. But it's in Rebol3 and works just fine: loop 2 [ print {"This'll print", {HostileFork} said.} continue print {"This won't print", {HostileFork} said.} ] You'll get the output: "This'll print", {HostileFork} said. "This'll print", {HostileFork} said...

0
A: Is there an equivalent to "continue" (python) in rebol?

DocKimbelYou can do it in Rebol2 using exceptions: continue: does [throw 'continue] loop 2 [ catch [ print {"This'll print", {HostileFork} said.} continue print {"This won't print", {HostileFork} said.} ] ] In case you have custom exceptions to handle in the loop, you c...

 
@pierre If you have not seen this list, I compiled some issues which are still being addressed in the Red port to Rebol3; that's just at the language level. github.com/red/red/pull/421
It will be tough given the number of changes to see Rebol2 code run under Rebol3, but R3/Backward will help. And this indexing compromise is something @DocKimbel and Carl have to both sign off on. The languages cannot index differently.
 
@HostileFork We have come to an agreement with @earl about it, we just need to implement it now.
 
@DocKimbel Good news!
And with that, and R3/Backward, I imagine Red can be made to run on Rebol3 for those interested
 
@HostileFork R3/Backward is very far from trivial to implement, and as you tasted it once, it's a big work.
@onetom I'm working on the Cheyenne builds script, so I'll get back to you very soon.
 
3:03 PM
@DocKimbel ok, im here
 
@DocKimbel Generalized yes, but I think a starter R3/Backward that can run Red would be the best skeletal start for such an effort
 
@onetom Hey Tamas. I'm reviewing the code and the required changes in the HTML pages.
 
I will re-bring-up my irritation with the "oh, it was 32 bits, now it's 64" cycle... destined to happen again at the 128-bit transition, ad nauseum.
 
@HostileFork It would be nice to have, for several reasons: ability to run the toolchain natively on platforms that R2 doesn't support, being more OSS-friendly for inclusion in Debian and other distros with strict rules.
 
@DocKimbel @earl said the indentation is very confusing. i can imagine it is, especially after i removed the separator comments. it was an experiment, so excuse me for that :)
 
3:10 PM
@onetom I'm not fan of indentation on EITHER arguments. ;)
@onetom I gave you the rights you've asked for testing the script. You can drop the gzip compression also.
 
@DocKimbel sure, but i dont have good eyes, prefer big fonts, so a 3 lines EITHER expression with indented 1line branches vs the 5 line sparse line version with asymmetric brackets help me to fit more on 1 screen and avoid scrolling
@DocKimbel thx, i will have a look soon
 
@onetom Could you try to install wine on the server? I'll rent a Mac server, so that we'll be able to setup a build farm for the big3, both for Cheyenne and Red. Will review the rest in details after lunch.
 
@DocKimbel sounds exciting
 
@onetom As long as your coding style doesn't break pasting code in console, it's just a matter of personal taste, so as long as it works, it's fine to me.
@onetom I have a lot of very exciting ideas you'll like a lot I hope, that we'll discuss when I come to visit you. ;)
 
Argh. I still hate FUNC as a word. Makes my skin crawl. But the CLOS/CLOSURE has led me to believe it's the only answer.
Too much inertia and legacy, and now it fits together, and it's just going to have to exist.
 
3:21 PM
@onetom The cheapest offer I've found for a Mac server. I'll go for the $20 plan. If you know anything cheaper/better, let me know.
@HostileFork A little more effort and you'll start liking PRIN/PRINT too. ;P
2
 
@DocKimbel No, I hate PRIN
 
@DocKimbel i never rented a mac. i have one sitting at home idle though :/ but the net sucks here. i was wondering if i can hook it up in the hackerspace here...
 
I hate PRIN enough that PRINT/ONLY is looking good
Which is saying a lot
 
@onetom We need it to be online and reachable all the time.
 
@DocKimbel any idea when can it happen?
@DocKimbel the hackerspace has a big pipe here...
 
3:24 PM
@onetom I'd like to finish the build farm stuff asap, as it prevents me from releasing Red 0.4.0 with binary releases.
Lunch time, TTYL.
 
@DocKimbel that's why i looked into travis-ci.org's system. they were talking about building on macs, but couldnt figure out how.
@DocKimbel i tried to find some virtualbox image too. there are descriptions of how to setup the iAtkos "distro" in a VM, but they looked pretty troublesome
 
@onetom I wonder if Travis is not a bit overkill for Red as we could make the same features with a couple small Rebol scripts...?
 
@DocKimbel sure, but they would provide the server for free and also visibility to the process for any outsider
 
@onetom Even Mac server? Do they support Windows too?
 
@DocKimbel that was my impression but the docs were not very clear about it
@DocKimbel can't remember that
@DocKimbel but let me ask around on the hackerspace channels quickly. maybe it's not too late and we can get answers quickly
 
3:30 PM
@onetom Sure, no hurry, it can wait tomorrow. ;)
 
@onetom travis ci supports osx builds, but not cross-platform builds, at the moment, as far as i know. and for osx builds, you have to set the "language" to objc, i think that's their osx trigger.
so no, for multi-platform builds, i don't think travis ci is a viable option at the moment.
 
@earl just wanted to ping u about this. thx for the info. so how are u doing it on rebolsource.net? i saw at the bottom of the page it's mentioned that saphirion is providing the mac support. what does it mean? do they have a physical machine or a VM?
 
@onetom a physical machine.
 
3:54 PM
@DocKimbel Bonjour! So I suppose that there will be a specific postgresql driver for Rebol3, then?
@HostileFork I'm sorry, but I've been away from the Net for a while, somewhere in Africa, so I didn't see that. Trying to catch up...
@HostileFork I'm sure that I'll have to rewrite again my code when I'll be able to switch to Rebol3! It'll probably be easier than rewriting python to Rebol (which is not very difficult, actually; at least for the author himself;)).
 
 
1 hour later…
5:30 PM
@pierre Africa? Where at?
 
 
1 hour later…
6:45 PM
i tried r3-view.exe under mac using wine-1.6 (installed with brew) and the 'DEMO function runs and shows the widgets, but the tile game only showed a few tiles but the graphics test and the performance survey just opened empty windows
2 finger scroll also crashes it
 
@pierre Maybe, but not made by me. ;)
 

« first day (1042 days earlier)      last day (2738 days later) »