« first day (1361 days earlier)      last day (2419 days later) » 

1:43 AM
@rgchris JavaScript VM in the kernel, yup, predictable and... oh well.
 
 
6 hours later…
7:25 AM
@rgchris Is there a possibility to define individual border (top, bottom, ...) in StyleTalk?
 
8:17 AM
0
Q: How do I force module reload?

rebolekThe title says it all. When developing a module, how do I force reload, to test new code? I can switch from module to script and introduce binding problems and namespace conflicts, or I can change the version every time I fix a typo. Both are bad options. What I'm looking for is something like ...

 
 
5 hours later…
12:49 PM
0
A: How do I force module reload?

kronwizI don't know how you're importing your modules, but if you assign the return value of the import function to a variable re-executing the import loads the new code. For example I have the file mod_a.reb: REBOL [] forever [ b: import %./mod_b.reb b/hello wait 10 ] and the file mod_...

 
 
5 hours later…
5:34 PM
@rebolek Not yet, it seems. Be like padding/margin, I suppose: border top px 1 red left px 2 green dotted
 
I see
 
Hm, if you have more than one of any attribute, it'll apply it to different positions.
border red green px 1 px 10
Not sure if that's good enough, perhaps need both forms...
Or at least allow interleaving: border red px 1 green px 10
 
I guess it needs all. With current method you can define:
* one arg - all borders
* two args - top+bottom / right+ left
* three args - top / right+left / bottom
* four args - top / right / bottom / left

If you want different combination, bad luck.
 
Yeah, that's just lazily using CSS shortform...
 
@rgchris It would be nice to have border left red px 1 bottom green px 10
 
5:45 PM
I'd so much like to be able to say 1px instead of px 1 :(
 
I always have trouble remembering the order of arguments, so prefixing them with name seems like a good idea.
@rgchris Well, there's string parser...
 
@rebolek Not yet...
 
@rgchris I meant available in Rebol ;)
But then you need to rewrite all rules
 
Ok—pushed changes allowing for positional border adjustments.
>> do reb4.me/r/styletalk
print to-css [border left red px 1 bottom green px 10]
 
; Brought to you by: tryrebol.esperconsultancy.nl
/* StyleTalk Output */

/** StyleTalk Output Begin */

body {
    border-left-color: red;
    border-left-length: 1px;
    border-bottom-color: green;
    border-bottom-length: 10px;
}


/* StyleTalk Output End **/
 
5:58 PM
Great, thanks!
Do you know how do I get your changes to my fork? I forked StyleTalk this morning to add some small additions I need that cannot be done using preprocessor (more border styles, transparent color, etc..).
 
Do you have your fork as origin?
 
I'm looking at github gui and it says master
 
You can add my repository as upstream, stash your changes, then merge repositories.
Perhaps @earl may have something to add?
 
Thanks, I will try it.
sony@lednica:~/repo/StyleTalk$ git fetch upstream
fatal: 'upstream' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
 
git remote add upstream github.com/rgchris/StyleTalk.git
 
6:05 PM
Ah, forgot to configure upstream
@rgchris yes, thanks
Nice, works like a charm.
 
Cool!
 
Well, I switched to using .reb instead of .r so I have to merge the change manually anyhow :-)
 
Ah, right—suppose I should move with the times at some point (perhaps there'll be a time when I get used to .reb).
 
It's one of last Carl's decisions regarding Rebol, so I use it as a kind of homage...
 
 
2 hours later…
8:33 PM
@rgchris I'd like to add z-index to StyleTalk, I have this rule: 'z-index mark integer! capture (emits 'z-index), but form-value converts e.g.: 1 to 1px. Is there a way to prevent this conversion?
 
* 1
Or....
Look at 'line-height Trying to remember the other exception...
@rebolek Can just change the code to (emit 'z-index compose [* (captured)])
Try it, might work.
 
@rgchris Great, that works. Thank you.
 
Fall out from the decision to make pixels the default number unit...
 
Probably makes sense in most cases.
 
 
2 hours later…
10:59 PM
What is the exact problem with call for Rebol3 on windows and linux?
 

« first day (1361 days earlier)      last day (2419 days later) »