• Random Signitures

    From Mortifis@VERT/ALLEYCAT to All on Sunday, July 14, 2019 14:58:21
    Is there a mechanism for having a random tagline or signiture added to a message post?

    My teachers always said "You can't make a living looking out a window!", they were wrong, I drive truck :-P

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Alan Ianson@VERT to Mortifis on Sunday, July 14, 2019 11:18:16
    Hello Mortifis,

    Is there a mechanism for having a random tagline or signiture added to
    a message post?

    SBBS has an optional signature in the default user config. It's not random though but I think all SBBSs editors will use it.

    Some editors like Syledit support taglines optionaly.

    Ttyl :-),
    Al

    ... Put on your seatbelt - I'm gonna try something new!
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Mortifis on Sunday, July 14, 2019 17:40:49
    Re: Random Signitures
    By: Mortifis to All on Sun Jul 14 2019 02:58 pm

    Is there a mechanism for having a random tagline or signiture added to a message post?

    I have a timed event which modifies my .sig file with random quotes and current weather data. You could do something similar or if you use an editor which has a random tagline feature, use that.

    digital man

    This Is Spinal Tap quote #32:
    Derek Smalls: [A jog?] We don't have time for that.
    Norco, CA WX: 87.9øF, 38.0% humidity, 13 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Mortifis@VERT/ALLEYCAT to Digital Man on Sunday, July 14, 2019 22:16:35
    Re: Random Signitures
    By: Mortifis to All on Sun Jul 14 2019 02:58 pm

    Is there a mechanism for having a random tagline or signiture added to a message post?

    I have a timed event which modifies my .sig file with random quotes and current weather data. You could do something similar or if you use an editor which has a random tagline feature, use that.

    digital man

    hrmph, where are the .sig files stored? I am not going to ask for free code to do it with :-P


    My teachers always said "You can't make a living looking out a window!", they were wrong, I drive truck :-P

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Mortifis@VERT/ALLEYCAT to Alan Ianson on Sunday, July 14, 2019 22:19:58
    Hello Mortifis,

    Is there a mechanism for having a random tagline or signiture added to a message post?

    SBBS has an optional signature in the default user config. It's not random though but I think all SBBSs editors will use it.

    Some editors like Syledit support taglines optionaly.

    Thank you, Al, I manually go into default settings and update my signature, I was just wondering how to go about randomizing the process :-)


    My teachers always said "You can't make a living looking out a window!", they were wrong, I drive truck :-P

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Alan Ianson@VERT to Mortifis on Sunday, July 14, 2019 18:36:46
    Hello Mortifis,

    Thank you, Al, I manually go into default settings and update my signature, I was just wondering how to go about randomizing the
    process :-)

    My sig file is in data/users/0001.sig, yours is probably the same or there abouts. Exactly how to randomize it I'm not sure. :)

    Ttyl :-),
    Al

    ... Atheism is a non-prophet organization.
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From MRO@VERT/BBSESINF to Mortifis on Sunday, July 14, 2019 20:51:33
    Re: Re: Random Signitures
    By: Mortifis to Alan Ianson on Sun Jul 14 2019 10:19 pm


    Some editors like Syledit support taglines optionaly.

    Thank you, Al, I manually go into default settings and update my signature, I was just wondering how to go about randomizing the process :-)


    here is a perl code i use to randomize a file of quotes

    #!/usr/bin/perl -w

    # @(#) randomize Effectively _unsort_ a text file into random order.
    # 96.02.26 / drl.
    # Based on Programming Perl, p 245, "Selecting random element ..."

    # Set the random seed, PP, p 188
    srand(time|$$);

    # Suck in everything in the file.
    @a = <>;

    # Get random lines, write 'em out, mark 'em done.
    while ( @a ) {
    $choice = splice(@a, rand @a, 1);
    print $choice;
    }
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Digital Man@VERT to Mortifis on Sunday, July 14, 2019 20:59:51
    Re: Re: Random Signitures
    By: Mortifis to Digital Man on Sun Jul 14 2019 10:16 pm

    Re: Random Signitures
    By: Mortifis to All on Sun Jul 14 2019 02:58 pm

    Is there a mechanism for having a random tagline or signiture added to a message post?

    I have a timed event which modifies my .sig file with random quotes and current weather data. You could do something similar or if you use an editor which has a random tagline feature, use that.

    hrmph, where are the .sig files stored? I am not going to ask for free code to do it with :-P

    data/user/####.sig

    digital man

    Synchronet/BBS Terminology Definition #22:
    DSL = Digital Subscriber Line
    Norco, CA WX: 75.3øF, 60.0% humidity, 3 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Mortifis on Sunday, July 14, 2019 21:07:41
    Re: Re: Random Signitures
    By: Mortifis to Alan Ianson on Sun Jul 14 2019 10:19 pm

    Hello Mortifis,

    Is there a mechanism for having a random tagline or signiture added to a message post?

    SBBS has an optional signature in the default user config. It's not random though but I think all SBBSs editors will use it.

    Some editors like Syledit support taglines optionaly.

    Thank you, Al, I manually go into default settings and update my signature, I was just wondering how to go about randomizing the process :-)

    Here's the script I run to randomize my tagline (pulls a random line from 3 differnet randomly chosen files):

    // Re-create signature file with random Snapple "Real Fact"

    const syncfacts = 0, acronyms = 1, tapquotes = 2;
    var type = random(3);
    var fname;

    //print("type = " + type);
    switch(type) {
    case syncfacts:
    fname = system.data_dir + "syncfact.lst";
    break;
    case acronyms:
    fname = system.data_dir + "acronyms.local.conf";
    break;
    case tapquotes:
    fname = system.data_dir + "tapquotes.lst";
    break;
    }

    f = new File(fname);
    if(!f.open("r")) {
    alert("Error opening " + fname);
    exit();
    }

    var list = f.readAll();
    f.close();

    //print("randomizing: " + list.length);
    i = random(list.length);
    //print("done: " + i);

    var line = list[i].split(/\s+/);

    f = new File(system.data_dir + "user/0001.sig");
    if(!f.open("r+"))
    exit();
    var text = f.readAll();
    f.length = 0;
    f.position = 0;
    switch(type) {
    case acronyms:
    text[3] = "Synchronet/BBS Terminology Definition #" + (i+1) + ":"; text[4] = line.shift() + " = " + line.join(' ');
    break;
    case syncfacts:
    text[3] = "Synchronet \"Real Fact\" #" + (i+1) + ":";
    text[4] = list[i];
    break;
    case tapquotes:
    text[3] = "This Is Spinal Tap quote #" + (i+1) + ":";
    text[4] = list[i];
    break;
    }
    f.writeAll(text);
    f.close();


    digital man

    Synchronet/BBS Terminology Definition #53:
    PETSCII = PET Standard Code of Information Interchange (a.k.a. CBM ASCII) Norco, CA WX: 75.3øF, 60.0% humidity, 3 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Mortifis on Monday, July 15, 2019 09:40:17
    Re: Random Signitures
    By: Mortifis to All on Sun Jul 14 2019 02:58 pm

    Is there a mechanism for having a random tagline or signiture added to a message post?

    SlyEdit (message editor) has an option for adding a tagline to a message, and it has an option to add a random tagline (in addition to letting you choose a tagline yourself).

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Ragnarok@VERT/DOCKSUD to Alan Ianson on Monday, July 15, 2019 15:31:08
    El 14/7/19 a las 22:36, Alan Ianson escribió:
    Hello Mortifis,

    Thank you, Al, I manually go into default settings and update my signature, I was just wondering how to go about randomizing the
    process :-)

    My sig file is in data/users/0001.sig, yours is probably the same or there abouts. Exactly how to randomize it I'm not sure. :)


    you can exec from JS with

    sort -R MySignatures.txt | head -n1 > data/user/YOUR_USER_ID.sig



    Ttyl :-),
    Al

    .... Atheism is a non-prophet organization.
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)


    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - http://bbs.docksud.com.ar - telnet://bbs.docksud.com.ar
  • From MRO@VERT/BBSESINF to Ragnarok on Monday, July 15, 2019 15:57:46
    Re: Re: Random Signitures
    By: Ragnarok to Alan Ianson on Mon Jul 15 2019 03:31 pm

    My sig file is in data/users/0001.sig, yours is probably the same or there abouts. Exactly how to randomize it I'm not sure. :)


    you can exec from JS with

    sort -R MySignatures.txt | head -n1 > data/user/YOUR_USER_ID.sig

    sort -R in windows is reverse, in linux it's random
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Rampage@VERT/SESTAR to MRO on Monday, July 15, 2019 17:51:02
    Re: Re: Random Signitures
    By: MRO to Ragnarok on Mon Jul 15 2019 15:57:46

    you can exec from JS with

    sort -R MySignatures.txt | head -n1 > data/user/YOUR_USER_ID.sig

    sort -R in windows is reverse, in linux it's random

    is there a difference between -R and -r on winwhatever?
    is that the default sort? when did they start shipping one with it?

    )\/(ark

    ---
    þ Synchronet þ The SouthEast Star Mail HUB - SESTAR
  • From MRO@VERT/BBSESINF to Rampage on Monday, July 15, 2019 22:06:01
    Re: Re: Random Signitures
    By: Rampage to MRO on Mon Jul 15 2019 05:51 pm

    sort -R MySignatures.txt | head -n1 > data/user/YOUR_USER_ID.sig

    sort -R in windows is reverse, in linux it's random

    is there a difference between -R and -r on winwhatever?

    they only have reverse.
    is that the default sort? when did they start shipping one with it?

    yep. it's in system32. they've had sort.exe for a long time.
    internets say since dos v2
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From poindexter FORTRAN@VERT/REALITY to Digital Man on Monday, July 15, 2019 06:23:00
    Digital Man wrote to Mortifis <=-

    I have a timed event which modifies my .sig file with random quotes and current weather data. You could do something similar or if you use an editor which has a random tagline feature, use that.

    One interesting feature might be to have separate .sigs for each
    network?


    ... Have you ever asked a question you weren't supposed to ask?
    --- MultiMail/XT v0.52
    þ Synchronet þ realitycheckBBS -- http://realitycheckBBS.org
  • From Digital Man@VERT to poindexter FORTRAN on Monday, July 15, 2019 21:42:25
    Re: Re: Random Signitures
    By: poindexter FORTRAN to Digital Man on Mon Jul 15 2019 06:23 am

    Digital Man wrote to Mortifis <=-

    I have a timed event which modifies my .sig file with random quotes and current weather data. You could do something similar or if you use an editor which has a random tagline feature, use that.

    One interesting feature might be to have separate .sigs for each
    network?

    I'll add it to the to-do list.

    digital man

    Synchronet/BBS Terminology Definition #10:
    C64 = Commodore 64 (personal computer)
    Norco, CA WX: 76.7øF, 57.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Tony Langdon@VERT to MRO on Tuesday, July 16, 2019 18:25:00
    On 07-15-19 22:06, MRO wrote to Rampage <=-

    yep. it's in system32. they've had sort.exe for a long time.
    internets say since dos v2

    Yep, I remember SORT.EXE back in the DOS days. Could probably drag up a DOS copy on an old backup. And DOS 2.x sounds about right.


    ... Buy only cured hams, the sick ones are not good for you.
    === MultiMail/Win v0.51
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to poindexter FORTRAN on Tuesday, July 16, 2019 09:47:43
    Re: Re: Random Signitures
    By: poindexter FORTRAN to Digital Man on Mon Jul 15 2019 06:23 am

    One interesting feature might be to have separate .sigs for each
    network?

    I had thought about possibly doing something like that with SlyEdit. SlyEdit does have a feature where it can auto-sign your name to messages, and if enabled, it can sign with your handle (where allowed) or your real name (if the sub-board doesn't allow handles).

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From poindexter FORTRAN@VERT/REALITY to Nightfox on Wednesday, July 17, 2019 06:24:00
    Nightfox wrote to poindexter FORTRAN <=-

    I had thought about possibly doing something like that with SlyEdit. SlyEdit does have a feature where it can auto-sign your name to
    messages, and if enabled, it can sign with your handle (where allowed)
    or your real name (if the sub-board doesn't allow handles).

    That sounds good. I'd mentioned separate per-network .sigs, but I
    don't rely on the FTN address in my .sig, so real names/handles would
    work just as well and not need any network intelligence.



    ... Can you hear me?
    --- MultiMail/XT v0.52
    þ Synchronet þ realitycheckBBS -- http://realitycheckBBS.org
  • From Ragnarok@VERT/DOCKSUD to MRO on Thursday, July 18, 2019 15:38:51
    El 15/7/19 a las 17:57, MRO escribió:
    Re: Re: Random Signitures
    By: Ragnarok to Alan Ianson on Mon Jul 15 2019 03:31 pm

    My sig file is in data/users/0001.sig, yours is probably the same or there
    abouts. Exactly how to randomize it I'm not sure. :)


    you can exec from JS with

    sort -R MySignatures.txt | head -n1 > data/user/YOUR_USER_ID.sig

    sort -R in windows is reverse, in linux it's random
    ---

    Sorry i asume that you are using a operating system like gnu/linux

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - http://bbs.docksud.com.ar - telnet://bbs.docksud.com.ar