• Random Taglines

    From Dan Richter@1:317/3 to All on Saturday, March 16, 2019 22:04:55
  • From Daryl Stout@1:19/33 to DAN RICHTER on Sunday, March 17, 2019 12:49:00
  • From mark lewis@1:3634/12.73 to Dan Richter on Monday, March 18, 2019 14:06:40
  • From Dan Richter@1:317/3 to mark lewis on Monday, March 18, 2019 17:25:59
  • From Dan Richter@1:317/3 to Daryl Stout on Monday, March 18, 2019 17:27:01
  • From Daryl Stout@1:19/33 to DAN RICHTER on Monday, March 18, 2019 21:54:00
  • From Daryl Stout@1:19/33 to DAN RICHTER on Wednesday, March 20, 2019 09:04:00
    Dan,

    I probably should make sure I don't have any R rated taglines in there... No DR>sure how some people would react to those. :)

    Dirty Old Sysops need love, too. ;)

    Daryl

    ===
    þ OLX 1.53 þ I thought I was wrong, but I was mistaken.
    --- SBBSecho 3.06-Win32
    * Origin: FIDONet: The Thunderbolt BBS - tbolt.synchro.net (1:19/33)
  • From mark lewis@1:3634/12.73 to Dan Richter on Wednesday, March 20, 2019 13:00:40
    On 2019 Mar 19 17:18:52, you wrote to me:

    if you're on linux, you might find this li'l script handy... it sorts
    the taglines and removes the duplicates... just tell it the name of
    the file containing the taglines... it expects the file to have a
    .txt extension... the results are output into
    filename.sorted.uniq.txt so you don't lose the original until you're
    ready to remove/overwrite it...

    Thank you.

    welcome :)

    That script is quick too! It sorted 51306 lines to 36611 lines in
    about .5 seconds!

    the main guts are the "sort -n | uniq" part... i still generally go back through and look at the lines... especially since they're now sorted and it is easier to find typos for things like exact same lines but one has a typo period
    where the other has a proper comma...

    the script is 26 lines long... i'm pretty sure wordwrap will bite and
    need to be corrected...

    There was only one line that wordwrap messed up. Line 24. It was
    simple enough to straighten out. :)

    yeah, in that one, it was easy... the next one, though, is a bit tougher...

    I really should spend some more time learning the scripting
    languages...

    they're not so bad... like learning .bat coding in DOS... they are a lot more capable, though... kinda like using 4DOS with its enhanced scripting capabilities... the other thing, though, is using the available tools... i mainly write scripts so i don't have to remember all the steps and specific command lines to do certain things...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... No matter how clearly you speak, the deaf won't understand.
    ---
    * Origin: (1:3634/12.73)
  • From mark lewis@1:3634/12.73 to Dan Richter on Wednesday, March 20, 2019 13:05:08
    On 2019 Mar 19 17:42:18, you wrote to me:

    this one is 59 lines long and i know that wordwrap will bite it
    fairly hard... hopefully it won't be so bad it can't be fixed...

    Nope, it's not too bad. A few lines around lines 53-55, but nothing I couldn't figure out. :)

    cool... i thought there might be more since i'm on a 120 column terminal but many read on 80 column ones...

    I probably should make sure I don't have any R rated taglines in
    there... Not sure how some people would react to those. :)

    that's an idea... i left all of mine in plus ones with some curse words... a few folk commented to me about them but i still have them... plus some of what they consider to be curse words i consider to be every day language O:-)

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... If it isn't broken, I can fix it.
    ---
    * Origin: (1:3634/12.73)
  • From Dan Richter@1:317/3 to Daryl Stout on Wednesday, March 20, 2019 19:56:57
    On 20 Mar 2019, Daryl Stout said the following...

    I probably should make sure I don't have any R rated taglines in there. DR>sure how some people would react to those. :)

    Dirty Old Sysops need love, too. ;)

    That's true... Perhaps I'll leave them in. ;)


    ---

    Black Panther(RCS)
    a.k.a. Dan Richter
    Sysop - Castle Rock BBS
    telnet://bbs.castlerockbbs.com
    http://www.castlerockbbs.com
    The sparrows are flying again....

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (1:317/3)
  • From Dan Richter@1:317/3 to mark lewis on Wednesday, March 20, 2019 20:02:59
    On 20 Mar 2019, mark lewis said the following...

    the main guts are the "sort -n | uniq" part... i still generally go back through and look at the lines... especially since they're now sorted and it is easier to find typos for things like exact same lines but one has
    a typo period where the other has a proper comma...

    That's what I'm working on now. One will have a period, the won't, and the
    next will have an explanation point. I'm also finding a bunch that are cut
    off at 57 characters.

    they're not so bad... like learning .bat coding in DOS... they are a lot more capable, though... kinda like using 4DOS with its enhanced scripting capabilities... the other thing, though, is using the available tools...
    i mainly write scripts so i don't have to remember all the steps and specific command lines to do certain things...

    I was pretty good at batch files in DOS. Right now, I'm using the scripting
    to basically run programs. For example, my script for running MultiMail:

    #!/bin/bash
    cd ~/mmail/mmail-0.51
    ./mm

    There are a few that I've gotten a bit more complex at, but not much. They
    have if statements, to run certain programs depending on what files are in
    the inbound to the BBS.

    There is so much more that I can be using scripting for...


    ---

    Black Panther(RCS)
    a.k.a. Dan Richter
    Sysop - Castle Rock BBS
    telnet://bbs.castlerockbbs.com
    http://www.castlerockbbs.com
    The sparrows are flying again....

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (1:317/3)
  • From Dan Richter@1:317/3 to mark lewis on Wednesday, March 20, 2019 20:05:03
    On 20 Mar 2019, mark lewis said the following...

    I probably should make sure I don't have any R rated taglines in there... Not sure how some people would react to those. :)

    that's an idea... i left all of mine in plus ones with some curse
    words... a few folk commented to me about them but i still have them... plus some of what they consider to be curse words i consider to be every day language O:-)

    That is true. Besides, we are all grown adults... Well, at least
    physically... :) We should be able to handle a few "bad" words here and
    there. ;)


    ---

    Black Panther(RCS)
    a.k.a. Dan Richter
    Sysop - Castle Rock BBS
    telnet://bbs.castlerockbbs.com
    http://www.castlerockbbs.com
    The sparrows are flying again....

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (1:317/3)
  • From Daryl Stout@1:19/33 to DAN RICHTER on Thursday, March 21, 2019 11:20:00
    Dan,

    I probably should make sure I don't have any R rated taglines in the DR>sure how some people would react to those. :)

    Dirty Old Sysops need love, too. ;)

    That's true... Perhaps I'll leave them in. ;)

    PG-13 themed might be better. Us decrepit old farts can us our
    imaginations. <G>

    Daryl

    ===
    þ OLX 1.53 þ I'm Dyslexia Of Borg. Prepare To Have Your Ass Laminated.
    --- SBBSecho 3.07-Win32
    * Origin: FIDONet: The Thunderbolt BBS - tbolt.synchro.net (1:19/33)
  • From Dan Richter@1:317/3 to Daryl Stout on Thursday, March 21, 2019 20:39:54
    On 21 Mar 2019, Daryl Stout said the following...

    Dirty Old Sysops need love, too. ;)

    That's true... Perhaps I'll leave them in. ;)

    PG-13 themed might be better. Us decrepit old farts can us our imaginations. <G>

    I guess I don't have as many as I thought. I've been going through the file, and haven't found any yet. Granted, I'm almost up to the ones that start with 'B'... :)


    ---

    Black Panther(RCS)
    a.k.a. Dan Richter
    Sysop - Castle Rock BBS
    telnet://bbs.castlerockbbs.com
    http://www.castlerockbbs.com
    The sparrows are flying again....

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (1:317/3)
  • From mark lewis@1:3634/12.73 to Dan Richter on Tuesday, March 19, 2019 02:09:44
    On 2019 Mar 18 17:25:58, you wrote to me:

    is it time for me to run my script and post my list which now
    contains 12374 taglines? i don't recall what it had when i last
    posted it on 2016 Jul 16... a quick search seems to indicate there
    were 12059 in it at that time... each post was a max of 500 lines...

    I was thinking about setting up a script as well. My list, right now,
    has 51305. I've been trying to get rid of some dupes though...

    if you're on linux, you might find this li'l script handy... it sorts the taglines and removes the duplicates... just tell it the name of the file containing the taglines... it expects the file to have a .txt extension... the results are output into filename.sorted.uniq.txt so you don't lose the original
    until you're ready to remove/overwrite it...

    the script is 26 lines long... i'm pretty sure wordwrap will bite and need to be corrected...

    ==== Begin "sorttaglines" ====
    #! /bin/sh

    printf "\n"

    printhelp() {
    printf "just tell me the file name to sort. the extension must be txt.\n"
    printf "\n"
    printf "eg: sorttaglines alltags\n"
    exit
    }

    case "$1" in
    "" ) printf "ERROR: no filename given.\n";
    printhelp;;
    esac

    if [ ! -e $1.txt ]
    then
    printf "ERROR: file $1.txt not found.\n"
    printhelp
    else
    printf "$(wc -l $1.txt | cut -d" " -f1) lines in $1.txt\n"
    sort -n $1.txt | uniq > $1.sorted.uniq.txt
    printf "$(wc -l $1.sorted.uniq.txt | cut -d" " -f1) lines in $1.sorted.uniq.txt\n"
    fi
    printf "\n"
    ==== End "sorttaglines" ====

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Friendly advice has cost many a person a friend.
    ---
    * Origin: (1:3634/12.73)
  • From mark lewis@1:3634/12.73 to Dan Richter on Tuesday, March 19, 2019 02:17:32
    On 2019 Mar 18 17:25:58, you wrote to me:

    I'll probably post 50 random taglines in each post. Gotta keep people wanting more... :)

    here's my posting script... it breaks the input file out into separate files for posting... it is using hpt on this system to create the posts from the individual files... the NUMLINES variable at the top is the number of lines per
    file the input file will be broken into... as with the previous script, it expects the input file's extension to be .txt...

    this one is 59 lines long and i know that wordwrap will bite it fairly hard... hopefully it won't be so bad it can't be fixed...

    ==== Begin "posttaglines" ====
    #! /bin/bash

    NUMLINES=500

    printf "\n"

    printhelp() {
    printf "just tell me the tagline file to post (without extension)\n"
    printf "and the base file name of the parts to be posted.\n"
    printf "\n"
    printf "eg: posttaglines alltags.sorted.uniq foo\n"
    exit
    }

    case "$1" in
    "" ) printf "ERROR: no tagline filename given.\n";
    printhelp;;
    esac

    case "$2" in
    "" ) printf "ERROR: no base parts filename given.\n";
    printhelp;;
    esac

    if [ ! -e $1.txt ]
    then
    printf "ERROR: file $1.txt not found.\n"
    printhelp
    fi

    if [[ -e $2aa ]]
    then
    printf "Cleaning up previous $(ls -l $2* | wc -l | cut -d" " -f1) $2* files\n"
    rm $2*
    fi

    printf "$(wc -l $1.txt | cut -d" " -f1) lines in $1.txt\n"
    printf "splitting into files containing $NUMLINES lines each\n"
    split -l $NUMLINES $1.txt $2
    TOTALFILES=$(ls -l $2* | wc -l | cut -d" " -f1)
    printf "$TOTALFILES $2* files to post\n"

    COUNTER=0
    for a in a b c d e f g h i j k l m n o p q r s t u v w x y z
    do
    for b in a b c d e f g h i j k l m n o p q r s t u v w x y z
    do
    if [ ! -e $2$a$b ]
    then
    break
    fi
    ((COUNTER++))
    printf "posting file $COUNTER of $TOTALFILES - $2$a$b - $(wc -c $2$a$b | cut -d" " -f1) bytes\n"
    printf "hpt post -nf \"mark lewis\" -af \"1:3634/12.73\" -nt \"all\" -at \"1:3634/12.73\" -s \"[AUTOPOST] Taglines $COUNTER of $TOTALFILES (max $NUMLINES lines per post)\" -e \"taglines\" -o \"\" -f loc $2$a$b\n"
    ~/fido/bin/hpt post -nf "mark lewis" -af "1:3634/12.73" -nt "all" -at "1:3634/12.73" -s "[AUTOPOST] Taglines $COUNTER of $TOTALFILES (max $NUMLINES lines per post)" -e "taglines" -o "" -f loc $2$a$b
    done
    done

    printf "\n"
    ==== End "posttaglines" ====

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Every person you meet knows something you don't. Learn.
    ---
    * Origin: (1:3634/12.73)
  • From Dan Richter@1:317/3 to mark lewis on Tuesday, March 19, 2019 17:18:53
    On 19 Mar 2019, mark lewis said the following...

    if you're on linux, you might find this li'l script handy... it sorts the taglines and removes the duplicates... just tell it the name of the file containing the taglines... it expects the file to have a .txt
    extension... the results are output into filename.sorted.uniq.txt so you don't lose the original until you're ready to remove/overwrite it...

    Thank you.

    That script is quick too! It sorted 51306 lines to 36611 lines in about .5 seconds!

    the script is 26 lines long... i'm pretty sure wordwrap will bite and
    need to be corrected...

    There was only one line that wordwrap messed up. Line 24. It was simple
    enough to straighten out. :)

    I really should spend some more time learning the scripting languages...


    ---

    Black Panther(RCS)
    a.k.a. Dan Richter
    Sysop - Castle Rock BBS
    telnet://bbs.castlerockbbs.com
    http://www.castlerockbbs.com
    The sparrows are flying again....

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (1:317/3)
  • From Dan Richter@1:317/3 to mark lewis on Tuesday, March 19, 2019 17:42:18
    On 19 Mar 2019, mark lewis said the following...

    here's my posting script... it breaks the input file out into separate files for posting... it is using hpt on this system to create the posts from the individual files... the NUMLINES variable at the top is the

    Thank you.

    I'm not using hpt anymore, so I'll have to do some tweaking. :)

    this one is 59 lines long and i know that wordwrap will bite it fairly hard... hopefully it won't be so bad it can't be fixed...

    Nope, it's not too bad. A few lines around lines 53-55, but nothing I
    couldn't figure out. :)

    I probably should make sure I don't have any R rated taglines in there... Not sure how some people would react to those. :)


    ---

    Black Panther(RCS)
    a.k.a. Dan Richter
    Sysop - Castle Rock BBS
    telnet://bbs.castlerockbbs.com
    http://www.castlerockbbs.com
    The sparrows are flying again....

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (1:317/3)