Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 01 2018 17:34
    @greggirwin banned @BIjeuca_twitter
  • Dec 03 2017 05:53
    @PeterWAWood banned @matrixbot
  • Sep 28 2016 12:20
    @PeterWAWood banned @TimeSeriesLord
Boleslav Březovský
@rebolek

If I compare R2 and Red:

>> 1 < 2 or 2 > 3
*** Script Error: < does not allow integer! for its value2 argument
*** Where: <
*** Stack:

vs

>> 1 < 2 or 2 > 3
** Script Error: Expected one of: logic! - not: integer!
** Near: 1 < 2 or 2

Rebol message seems to make more sense

Vladimir Vasilyev
@9214
Agreed.
Luis Vale Mendes
@lpvm
@9214 Hi, regarding the solution you've presented yesterday, there's something I don't understand.
What I've seen and done is ... into [rules]. You've built something like ... into [one rule] [another rule] third rule and the third rule is not in a block.
Another thing is the first block of rules [keep pick to end]. I read something about pick in parse context, but could never arrive at such formulation by myself based solely on that.
Would you mind explaining all this?
Vladimir Vasilyev
@9214
Can you elaborate on "not a block" part? As for pick, see here. It basically collects matched values one-by-one instead of collecting matched group as a "unity".
Luis Vale Mendes
@lpvm
It's getting more clear, now, but yet not fully bright...
You've build into [keep pick to end]. To play with this, I tried into [keep pick to ":" to end] if the minute part of the time was not important. But returns [].
Shouldn't it return everything up to the hour part?
Vladimir Vasilyev
@9214
>> parse ["123:456"][collect [into [keep pick to ":" to end]]]
== [#"1" #"2" #"3"]
>> parse ["123:456"][collect [into [keep to ":" to end]]]
== ["123"]
Luis Vale Mendes
@lpvm
Taking your previous example:
input: [
    "[1518-02-24 23:58] Guard #853 begins shift"
    "[1518-02-25 00:20] falls asleep"
    "[1518-02-25 00:43] wakes up"
]

forall input [
    probe parse load input/1 [
        collect [
            into [keep pick to ":"  to end ]                    ;  inserting `to ":"`
            [thru set ID keep issue! | keep (ID)]
            set action skip keep (index? find actions action)

        ]
    ]
]
==  []
Vladimir Vasilyev
@9214
How can it work if you just loaded the string?
Luis Vale Mendes
@lpvm
Fine, skipped that one. Thank you for your time, patience and overall help @9214
Vladimir Vasilyev
@9214
@lpvm no problem, have fun. :wink:
Luis Vale Mendes
@lpvm
Spot on, that's really my thrive at this phase on my life!
Toomas Vooglaid
@toomasv
What structure did you choose for representing/gathering Day4 data?
Luis Vale Mendes
@lpvm
Hi @toomasv I haven't yet studied your code proposal and haven't choose any yet.
LP Olivier
@olivier_lp_twitter
Is a multitasking or multithreading implementation planned ?
Vladimir Vasilyev
@9214
@olivier_lp_twitter consult the roadmap.
LP Olivier
@olivier_lp_twitter
@9214 thanx, i got my answer :-)
rpherman
@rpherman
@greggirwin I put the DLL in the same folder as the executable. I think it is a 32 bit / 64 bit issue. I am running 64 bit Red, and I saw a snippet about redCV being 32 bit.
Vladimir Vasilyev
@9214
@rpherman there's no 64-bit Red.
Senenmut
@Senenmut
Hi there. winter + time = programmingtime ### May i ask for news about the compiling of a android .apk executable program file in red ? Are there any news ? Pleased to share them here. ## signed by The barbarian programmer ##
Vladimir Vasilyev
@9214

@Mennohexo read the latest blog post, esp. P.6:

Android will come after Full I/O

Senenmut
@Senenmut
oh that's great news. thanks. The only tool right now is RFO Basic but they have a little slowdown in development , however it still works. Noone wants to load hundreds of MB and install a shop of hocus pokus like the official java android solution is. ha ## To professional programming frames slow down production ideas. Is my view. Few other think too. ##BP
Senenmut
@Senenmut
i mean the dangerous programmer named : iArnold
ok. its a programmers joke. really. Thanks and see you again here. Regards BP
rpherman
@rpherman
@9214 Thanks about pointing out there is no 64-bit Red! There are no beginner RedCV instructions on what you need to do to set it up. I am familiar with OpenCV in Python, but I am lost in knowing what I need to compile and how and where to put things in the folder structure in order for this to work. Thanks again!
Senenmut
@Senenmut
You can develop modern android apps with win XP. #Its possible. Anyway , a little bit like barbarian.
Luis
@luis-rj
Vladimir Vasilyev
@9214
@rpherman, perhaps @ldci can chime in and help with your issue. Instructions are pretty straightforward, it's a missing DLL that causes the trouble.
phrmoy
@phrmoy
wow 0.6.4!
do we expect v1.0 by 2020?
Vladimir Vasilyev
@9214
There's no ETA for releases, so no one expects anything. Please stop speculating and making blind estimations.
phrmoy
@phrmoy
Thanks for the answer and apologies for asking, the language looks amazing. Keep up the good work!
Gregg Irwin
@greggirwin
No need to apologize @phrmoy. Sometimes we can't tell, with new people, when someone is being sarcastic, because they want things to go faster.
PaulBanks
@PaulBanks
hi, just joined - been using or rather trying Rebol for a while, and now on Red, really nice language. few problems but still great stuff.
Boleslav Březovský
@rebolek
@PaulBanks Hi! What problems do you see?
Semseddin Moldibi
@endo64
@PaulBanks Hi, Red is actively developing, if you found bugs please report them on GitHub, before doing that you can discuss about them in bugs room on gitter.
PaulBanks
@PaulBanks
@rebolek @endo64 Hi, sorry, no i meant as a beginner just getting started with Red. Am enjoying learning about it. The problems were my own, in getting used to it. I seem to be doing ok now. thanks.
Boleslav Březovský
@rebolek
@PaulBanks I see. Don't be afraid to ask, someone will always help you!
Christopher Ross-Gill
@rgchris
Wee Red update to an old HTTPC experiment. Tested on Terminal on Mac (your colour experience may vary).
PaulBanks
@PaulBanks
I get how to get the screen size, but how can i get a gui window size and then split the co-ordinates - I know about as-pair but is there an un-pair ? - thanks.
Greg T
@gltewalt
You can refer to x and y values with /x and /y
>> p: 800x600
== 800x600

>> p/x
== 800
>> p/y
== 600
PaulBanks
@PaulBanks
yes thank you @gltewalt - but how can i get the gui window size ? not the screen size.
apologies for being so slow, just am enjoying this language.
Greg T
@gltewalt
Off the top of my head, I don't know / remember about gui window size
Toomas Vooglaid
@toomasv

@PaulBanks

view win: layout [button "Win size" [probe win/size]]

or

view [button "Win size" [probe face/parent/size]]
Gregg Irwin
@greggirwin
Or even
>> win: layout [button "Win size" [probe win/size]]
== make object! [
    type: 'window
    offset: none
    size: 82x47
    ...
>> win/size
== 82x47
Toomas Vooglaid
@toomasv
Interesting. Without rendering the window size is smaller. It hasn't got its default smallest size yet? After rendering the size is 130x47.
Gregg Irwin
@greggirwin
Ooooh, yes, good catch.
Toomas Vooglaid
@toomasv
:smile: