• Added blink support to funclib.js (used by colorPicker())

    From alterego@ALTERANT to Digital Man on Sunday, July 26, 2020 18:17:45
    Hey DM,

    I patched funclib.js to support blink, by pressing "B" when the colorPicker is rendered.

    Here it is base64:

    NjA3YTYwOAo+IAl2YXIgYmxrbWFzayA9ICgxPDw3KTsKNjEzYTYxNQo+IAl2YXIgYmxpbmsgPSAo KGF0dHImYmxrbWFzayk+PjcpID8gYmxrbWFzayA6IDA7CjYxN2M2MTkKPCAJdmFyIHBmZ0N1cnNv ciA9IG5ldyBGcmFtZSh4LCB5LCAyLCAxLCBCR19CTEFDS3xXSElURSwgc3ViUGFsZXR0ZSk7Ci0t LQo+IAl2YXIgcGZnQ3Vyc29yID0gbmV3IEZyYW1lKHgsIHksIDIsIDEsIEJHX0JMQUNLfFdISVRF fGJsaW5rLCBzdWJQYWxldHRlKTsKNjM3YzYzOQo8IAlwYWxldHRlLmNlbnRlcigiRm9yZWdyb3Vu ZDogTGVmdCAvIFJpZ2h0Iik7Ci0tLQo+IAlwYWxldHRlLmNlbnRlcigiRm9yZWdyb3VuZDogTGVm dCAvIFJpZ2h0IFtCLUJsaW5rXSIpOwo2ODZhNjg5LDY5Mgo+IAkJCWNhc2UgJ0InOgo+IAkJCQli bGluayBePSBibGttYXNrOwo+IAkJCQlwZmdDdXJzb3IucHV0bXNnKCdGRycsQkdfQkxBQ0t8V0hJ VEV8YmxpbmspOwo+IAkJCQlicmVhazsKNjkwYzY5Ngo8IAkJYXR0ciA9IGZnQ29sb3Vyc1tmZ0Nv bG91cl18YmdDb2xvdXJzW2JnQ29sb3VyXTsKLS0tCj4gCQlhdHRyID0gZmdDb2xvdXJzW2ZnQ29s b3VyXXxiZ0NvbG91cnNbYmdDb2xvdXJdfGJsaW5rOwo=

    If you would prefer a unified diff, I can produce it easily...

    ...δεσ∩

    ... There is an order of things in this universe. Apollo, stardate 3468.1.

    ---
    ■ Synchronet ■ Alterant | an SBBS in Docker on Pi!
  • From Nightfox@DIGDIST to alterego on Sunday, July 26, 2020 11:12:27
    Re: Added blink support to funclib.js (used by colorPicker())
    By: alterego to Digital Man on Sun Jul 26 2020 06:17 pm

    I patched funclib.js to support blink, by pressing "B" when the colorPicker is rendered.

    Here it is base64:

    NjA3YTYwOAo+IAl2YXIgYmxrbWFzayA9ICgxPDw3KTsKNjEzYTYxNQo+IAl2YXIgYmxpbmsgPS

    Until just the past couple days, I had never seen anyone post base64-encoded content on Dove-Net before.. Usually people would put a file up for download somewhere and post a link. I'm wondering if that might be easier than saving the message, then trimming it down to the base64 content and then decoding it.. Unless there's an easy way to save base64-encoded files from these messages that I don't know about.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From MRO@BBSESINF to Nightfox on Sunday, July 26, 2020 14:05:06
    Re: Added blink support to funclib.js (used by colorPicker())
    By: Nightfox to alterego on Sun Jul 26 2020 11:12 am

    Re: Added blink support to funclib.js (used by colorPicker())
    By: alterego to Digital Man on Sun Jul 26 2020 06:17 pm

    I patched funclib.js to support blink, by pressing "B" when the
    colorPicker is rendered.

    Here it is base64:

    NjA3YTYwOAo+IAl2YXIgYmxrbWFzayA9ICgxPDw3KTsKNjEzYTYxNQo+IAl2YXIgYmxp
    bmsgPS

    Until just the past couple days, I had never seen anyone post base64-encoded content on Dove-Net before.. Usually people would put a file up for download somewhere and post a link. I'm wondering if that might be easier than saving the message, then trimming it down to the base64 content and then decoding it.. Unless there's an easy way to save base64-encoded files from these messages that I don't know about.

    honestly i would prefer pastebin
    ---
    ■ Synchronet ■ ::: BBSES.info - free BBS services :::
  • From alterego@ALTERANT to Nightfox on Monday, July 27, 2020 07:37:12
    Re: Added blink support to funclib.js (used by colorPicker())
    By: Nightfox to alterego on Sun Jul 26 2020 11:12 am

    Until just the past couple days, I had never seen anyone post base64-encoded content on Dove-Net before.. Usually people would put a file up for download somewhere and post a link. I'm wondering if that might be easier than saving the message, then trimming it down to the base64 content and then decoding it.. Unless there's an easy way to save base64-encoded files from these messages that I don't know about.

    Well, if it works out too hard, I'll happily make a patch available. (If DM used git, I'd provide a pull request, which I think would be even easier.)

    But capture the content should be as easy as:

    echo '<base64>' | base64 -d > my.patch

    eg:
    echo 'SGVsbG8gdGhlcmUhCg==' | base64 -d

    (Hopefully the pipe symbol wasnt eaten by this message).

    Since syncterm makes it quite easy to cut/paste, I thought that would be the easiest way.

    ...δεσ∩

    ... To love oneself is the beginning of a lifelong romance.

    ---
    ■ Synchronet ■ Alterant | an SBBS in Docker on Pi!
  • From Nightfox@DIGDIST to alterego on Sunday, July 26, 2020 17:18:49
    Re: Added blink support to funclib.js (used by colorPicker())
    By: alterego to Nightfox on Mon Jul 27 2020 07:37 am

    Since syncterm makes it quite easy to cut/paste, I thought that would be the easiest way.

    But if the message is long, you'd have to cut & paste multiple times, and then use a tool to base64-decode it. IMO it would be much easier to copy & paste a web/FTP link and just download the file that way.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From alterego@ALTERANT to Nightfox on Monday, July 27, 2020 11:21:35
    Re: Added blink support to funclib.js (used by colorPicker())
    By: Nightfox to alterego on Sun Jul 26 2020 05:18 pm

    But if the message is long, you'd have to cut & paste multiple times, and then use a tool to base64-decode it. IMO it would be much easier to copy & paste a web/FTP link and just download the file that way.

    Right, that I agree - and I did consider that when pasting it into a message, making sure that it was all available on screen at the same time (without paging).

    I also considered puting bzip2 in the middle, to make the post even shorter (which it did) - but since it already fitted on the page at the same time, I didnt use it.

    If this method doesnt work for DM - I'll provide a file somehow...

    ...δεσ∩

    ... Vulcans worship peace above all. McCoy, Return to Tomorrow, stardate 4768.

    ---
    ■ Synchronet ■ Alterant | an SBBS in Docker on Pi!
  • From Digital Man to alterego on Sunday, July 26, 2020 19:32:24
    Re: Added blink support to funclib.js (used by colorPicker())
    By: alterego to Nightfox on Mon Jul 27 2020 07:37 am

    Re: Added blink support to funclib.js (used by colorPicker())
    By: Nightfox to alterego on Sun Jul 26 2020 11:12 am

    Until just the past couple days, I had never seen anyone post base64-encoded content on Dove-Net before.. Usually people would put a file up for download somewhere and post a link. I'm wondering if that might be easier than saving the message, then trimming it down to the base64 content and then decoding it.. Unless there's an easy way to save base64-encoded files from these messages that I don't know about.

    Well, if it works out too hard, I'll happily make a patch available. (If DM used git, I'd provide a pull request, which I think would be even easier.)

    But capture the content should be as easy as:

    echo '<base64>' | base64 -d > my.patch

    eg:
    echo 'SGVsbG8gdGhlcmUhCg==' | base64 -d

    (Hopefully the pipe symbol wasnt eaten by this message).

    Since syncterm makes it quite easy to cut/paste, I thought that would be the easiest way.

    Unfortunately, the new-lines of the message body are pasted as CRs on the command-line, so not so easy.

    digital man

    Sling Blade quote #24:
    Karl: Kaiser blade. I hit my mother upside the head with it. Mmm... Killed her. Norco, CA WX: 72.9°F, 67.0% humidity, 4 mph SE wind, 0.00 inches rain/24hrs