🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Ron Ford Wed, 07 Jan 2009 03:57
[dialog] delimiting randomsigs
#228600
Author: Ron Ford
Date: Wed, 07 Jan 2009 03:57
83 lines
3464 bytes

This is the second time when randomsigs seem to not notice a percentage
sign between sigs:


%%
Although the Perl Slogan is There's More Than One Way to Do It, I hesitate
to make 10 ways to do something.  :-)
             -- Larry Wall in <9695@jpl-devvax.JPL.NASA.GOV>
%%
And don't tell me there isn't one bit of difference between null and space,
because that's exactly how much difference there is.  :-)
             -- Larry Wall in <10209@jpl-devvax.JPL.NASA.GOV>
%%
"And I don't like doing silly things (except on purpose)."
             -- Larry Wall in <1992Jul3.191825.14435@netlabs.com>
%%
:        And it goes against the grain of building small tools.
Innocent, Your Honor.  Perl users build small tools all day long.
             -- Larry Wall in <1992Aug26.184221.29627@netlabs.com>
%%
/* And you'll never guess what the dog had */
/*   in its mouth... */
             -- Larry Wall in stab.c from the perl source code
%%
Because . doesn't match \n.  [\0-\377] is the most efficient way to match
everything currently.  Maybe \e should match everything.  And \E would
of course match nothing.   :-)
             -- Larry Wall in <9847@jpl-devvax.JPL.NASA.GOV>
%%
Be consistent.
             -- Larry Wall in the perl man page
%%
Besides, including <std_ice_cubes.h> is a fatal error on machines that
don't have it yet.  Bad language design, there...  :-)
             -- Larry Wall in <1991Aug22.220929.6857@netlabs.com>
%%
Besides, it's good to force C programmers to use the toolbox occasionally.
:-)
             -- Larry Wall in
<1991May31.181659.28817@jpl-devvax.jpl.nasa.gov>

along with:

% 
Most of us here in the media are what I call infotainers...Rush Limbaugh is
what I call a disinfotainer. He entertains by spreading disinformation.
~~ Al Franken 
% 
Drug war, well, as Rush Limbaugh said, anyone who uses drugs illegally
should be prosecuted and put away. I don't agree with him; I think they
should be treated, but that's what Rush believes and so, you know, we're
praying for Rush because he's in recovery and you take responsibilities for
your actions so I'm sure any day now Rush will demand to be put away for
the maximum sentence and ask for the most dangerous prison and we'll be
praying for maybe an African American cellmate who saw the Donovan McNabb
comments on ESPN. So we're prayin'.
~~ Al Franken, Book TV, on Rush Limbaugh's illegal drug arrest and racist
remarks 
% 

How does dialog want to see randomsig files?
--















-- 
Ron

Picture of the Day http://apod.nasa.gov/apod/
Re: [dialog] delimiting randomsigs
#228615
Author: Rom
Date: Wed, 07 Jan 2009 08:57
24 lines
1424 bytes
On Tue, 6 Jan 2009 20:57:00 -0700, Ron Ford wrote:

> This is the second time when randomsigs seem to not notice a percentage
> sign between sigs:
> 
> %%

The above is "%%" not "%".

> along with:
> 
> % 

The above is "% " not "%".

> How does dialog want to see randomsig files?

"Settings > Servers, Identities, Signatures... > Signatures" and
<dialog.chm::/signaturesettings.htm> still both state:
| Signatures in a random signature file need to be delimited with a
| line holding "%".

-- 
Rom
Re: [dialog] delimiting randomsigs
#228621
Author: Ron Ford
Date: Wed, 07 Jan 2009 09:34
38 lines
2135 bytes
On Wed, 7 Jan 2009 19:57:22 +1100, Rom wrote:

> On Tue, 6 Jan 2009 20:57:00 -0700, Ron Ford wrote:
> 
>> This is the second time when randomsigs seem to not notice a percentage
>> sign between sigs:
>> 
>> %%
> 
> The above is "%%" not "%".

I'll work up something to replace the two with one.
> 
>> along with:
>> 
>> % 
> 
> The above is "% " not "%".

That makes the difference; I had a space before the newline in print_nice:

  # we need to provide our special formatting subroutine
  sub print_nice {
     my($q, $s) = @_; # shift actual arguments into variables
     $q =~ s/\s+/ /g;    # quote: transfer multiple whitespace to a single
     $q =~ s/<[^>]+>//g; # quote: remove html formatting
     $s =~ s/\s+/ /g;    # source: same here
     $s =~ s/<[^>]+>//g; # source: same here
     print "$q"                # print quote, followed by ...
         . "\n"                 # new line 
         . "~~ $s\n"          # '-' + quote source + double \n
         . "%\n"               # a percentage sign between quotes
  }

-- 
Ron

Picture of the Day http://apod.nasa.gov/apod/
Re: [dialog] delimiting randomsigs
#228655
Author: Sqwertz
Date: Thu, 08 Jan 2009 03:17
8 lines
1699 bytes
Ron Ford <ron@example.invalid> wrote:

> That makes the difference; I had a space before the newline in print_nice:

All that said, I found random sigs to be less than random.  I'd get
the same 10 out of 40 sigs 80% of the time.

-sw
Re: [dialog] delimiting randomsigs
#228683
Author: Ron Ford
Date: Thu, 08 Jan 2009 08:45
20 lines
1571 bytes
On Wed, 7 Jan 2009 21:17:28 -0600, Sqwertz wrote:

> Ron Ford <ron@example.invalid> wrote:
> 
>> That makes the difference; I had a space before the newline in print_nice:
> 
> All that said, I found random sigs to be less than random.  I'd get
> the same 10 out of 40 sigs 80% of the time.
> 
> -sw

Absolutely.  I've been experimenting with different sizes, and I can't
crack it.

My favorite thing though is when a sig adds an irony that you didn't
intend.
-- 
Ron

Picture of the Day http://apod.nasa.gov/apod/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads