🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
45 messages
45 total messages Started by HenHanna Sun, 25 Feb 2024 21:14
(iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266891
Author: HenHanna
Date: Sun, 25 Feb 2024 21:14
28 lines
1662 bytes
i just think that...   if Usenet allowed a small image to be
           embedded in a post, its appeal would be so much Greater!



Number-dle (Mastermind) puzzle (with 3 digits)


                 (i just wrote (non-elegant) Python code.)


Could you share a short, VERY Readable Pythonic code that solves this?

        Thank you!


                 https://i.imgur.com/72LGJjj.jpeg

         3 digit lock
                      [682]: One number is correct and well-placed
                      [614]: One number is correct but wrongly placed
                      [206]: Two numbers are correct but wrongly placed
                      [738]: Nothing is correct
                      [780]: One number is correct but wrongly placed


HINT -- A mark of a great puzzle,  this one contains a surprises or two.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266892
Author: candycanearter07
Date: Sun, 25 Feb 2024 22:45
34 lines
1807 bytes
On 2024-02-25, HenHanna <HenHanna@gmail.com> wrote:
>
> i just think that...   if Usenet allowed a small image to be
>            embedded in a post, its appeal would be so much Greater!
>
>
>
> Number-dle (Mastermind) puzzle (with 3 digits)
>
>
>                  (i just wrote (non-elegant) Python code.)
>
>
> Could you share a short, VERY Readable Pythonic code that solves this?
>
>         Thank you!
>
>
>                  https://i.imgur.com/72LGJjj.jpeg
>
>          3 digit lock
>                       [682]: One number is correct and well-placed
>                       [614]: One number is correct but wrongly placed
>                       [206]: Two numbers are correct but wrongly placed
>                       [738]: Nothing is correct
>                       [780]: One number is correct but wrongly placed
>
>
> HINT -- A mark of a great puzzle,  this one contains a surprises or two.

That just sounds like mime encoding.. and a lot of people use tui
clients too
-- 
user <candycane> is generated from /dev/urandom
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266893
Author: Grant Taylor
Date: Mon, 26 Feb 2024 03:00
16 lines
1371 bytes
On 2/25/24 15:14, HenHanna wrote:
> i just think that...   if Usenet allowed a small image to be
>            embedded in a post, its appeal would be so much Greater!

Usenet is perfectly capable of conveying images, and other binary content.

Many Usenet server administrators have made the choice to not carry 
binary content on their servers.

If you want binary content, go use a different server.  Binary content 
is unwelcome on many servers.



-- 
Grant. . . .
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266896
Author: Grant Taylor
Date: Mon, 26 Feb 2024 03:30
19 lines
1420 bytes
On 2/25/24 16:45, candycanearter07 wrote:
> That just sounds like mime encoding.

Mime is just one form of encoding.  Probably the most common in the 
email world.  But there are others.

> a lot of people use tuiclients too

I don't see how text user interfaces preclude images.  Just because they 
might not be able to display them natively doesn't preclude the client 
from handling image (et al.) attachments.

There are some terminal (emulators) that can handle images just fine; 
XTerm and Sixel comes to mind.



-- 
Grant. . . .
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266897
Author: candycanearter07
Date: Mon, 26 Feb 2024 05:35
22 lines
1676 bytes
On 2024-02-26, Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> On 2/25/24 16:45, candycanearter07 wrote:
>> That just sounds like mime encoding.
>
> Mime is just one form of encoding.  Probably the most common in the 
> email world.  But there are others.

I thought mime was the default for USENET tho..

>> a lot of people use tuiclients too
>
> I don't see how text user interfaces preclude images.  Just because they 
> might not be able to display them natively doesn't preclude the client 
> from handling image (et al.) attachments.
>
> There are some terminal (emulators) that can handle images just fine; 
> XTerm and Sixel comes to mind.

Well yes, but some people might prefer another terminal emulator
that doesn't support it. Also some ppl access USENET from a raw tty.
-- 
user <candycane> is generated from /dev/urandom
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266898
Author: Colin Macleod
Date: Mon, 26 Feb 2024 09:51
28 lines
1737 bytes
Grant Taylor <gtaylor@tnetconsulting.net> wrote in
news:urgusr$eq4$1@tncsrv09.home.tnetconsulting.net: 

> On 2/25/24 15:14, HenHanna wrote:
>> i just think that...   if Usenet allowed a small image to be
>>            embedded in a post, its appeal would be so much
>>  Greater! 
> 
> Usenet is perfectly capable of conveying images, and other binary
> content. 
> 
> Many Usenet server administrators have made the choice to not carry 
> binary content on their servers.
> 
> If you want binary content, go use a different server.  Binary content
> is unwelcome on many servers.
> 
> 
> 

There's a big difference between encoding gigabyte videos into hundreds 
of posts, and including a small picture or graphic *as part of a 
message* just as one might do in an email. I think it would be very 
helpful to allow the second more generally, with sensible limits on 
attachment size.

-- 
Colin Macleod.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266899
Author: D
Date: Mon, 26 Feb 2024 09:56
36 lines
2190 bytes

On Mon, 26 Feb 2024, Colin Macleod wrote:

> Grant Taylor <gtaylor@tnetconsulting.net> wrote in
> news:urgusr$eq4$1@tncsrv09.home.tnetconsulting.net:
>
>> On 2/25/24 15:14, HenHanna wrote:
>>> i just think that...???? if Usenet allowed a small image to be
>>>  ?????????????????? embedded in a post, its appeal would be so much
>>>  Greater!
>>
>> Usenet is perfectly capable of conveying images, and other binary
>> content.
>>
>> Many Usenet server administrators have made the choice to not carry
>> binary content on their servers.
>>
>> If you want binary content, go use a different server.  Binary content
>> is unwelcome on many servers.
>>
>>
>>
>
> There's a big difference between encoding gigabyte videos into hundreds
> of posts, and including a small picture or graphic *as part of a
> message* just as one might do in an email. I think it would be very
> helpful to allow the second more generally, with sensible limits on
> attachment size.

Shudder! I'm very happy with text only. Keeping binaries away I think is a 
key element to a working usenet.

And regardless, your usenet client is free to implement some kind of 
graphics handling. The least you can do is to include a html link to a 
graphic if it is necessary.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266901
Author: yeti
Date: Mon, 26 Feb 2024 10:43
39 lines
2612 bytes
D <nospam@example.net> writes:

> Shudder! I'm very happy with text only. Keeping binaries away I think
> is a key element to a working usenet.

Yip.  Let's keep Usenet as is.

But experiments with allowing more should happen.
There is no need to force all this into Usenet.

Maybe use mailing lists gated to NNTP?
Some if them[0] already allow much more.

Launch an own server?
Play with Cyrus-NNTP[1]?

I want it all.
I want everything in the same frontend.
[!] And for me that frontend has to be my existing newsreader.

____________

[0]: I read a lot of stuff via Gmane and Gwene and still sometimes am
     surprised over coloured syntax in some code snippets.  The images
     in Hackaday's feed sometimes fail, but some day someone will find
     that bug...  ,,X_

[1]: That looks like the ideal small personal NNTP server building atop
     an existing IMAP[2] server, but last time I tried, the dependencies
     (Debian) were broken and my attention span was not huge enough to
     compensate for this.

[2]: IMAP by itself already should have shared and public folders, so
     could be a starting point for something with a similar structure.
     Depending on the newsreader this may or may not contradict [!] as a
     lot of MUAs include NNTP.

-- 
R || 0  ...  Resistance is futile.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266900
Author: D
Date: Mon, 26 Feb 2024 10:59
24 lines
1680 bytes

On Mon, 26 Feb 2024, yeti wrote:

> D <nospam@example.net> writes:
>
>> Shudder! I'm very happy with text only. Keeping binaries away I think
>> is a key element to a working usenet.
>
> Yip.  Let's keep Usenet as is.
>
> But experiments with allowing more should happen.
> There is no need to force all this into Usenet.
>
> Maybe use mailing lists gated to NNTP?
> Some if them[0] already allow much more.
>
> Launch an own server?
> Play with Cyrus-NNTP[1]?
>

Let me add https://cdpxe.github.io/WendzelNNTPd/ to the mix if you want a 
personal nntp server. It is small, lacks some features, but I successfully 
compiled it last night on opensuse 15.3 without any troubles.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266902
Author: Stefan Ram
Date: Mon, 26 Feb 2024 11:13
21 lines
2268 bytes
Colin Macleod <cgm@erehwon.invalid> writes:
>There's a big difference between encoding gigabyte videos into hundreds 
>of posts, and including a small picture or graphic *as part of a 
>message* just as one might do in an email. I think it would be very 
>helpful to allow the second more generally, with sensible limits on 
>attachment size.

  You can just post a Python program to /generate/ the binary.
  For example:

with open( 'output202402261208430100ergahei_tmp_DML.bin', 'wb' )as sink:
    sink.write( b'\00\01\02' )

  . Now, one can run this Python program and will get the binary file
  "output202402261208430100ergahei_tmp_DML.bin" with the three bytes
  00, 01, and 02.

  But be warned: If you already have a file named 
  "output202402261208430100ergahei_tmp_DML.bin"
  on your hard drive, the above program may *overwrite*
  (delete) your existing file. So proceed with care!
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266903
Author: oldernow
Date: Mon, 26 Feb 2024 11:38
14 lines
1379 bytes
On 2024-02-26, yeti <yeti@tilde.institute> wrote:

> I want it all.
> I want everything in the same frontend.

I want as many painfully difficult hoops to jump through as
necessary to discourage the descendents of marauding Eternal
September hoards from participating - yea, to the point of
rewinding USENET space to its pre- Eternal September
glory.... ;-)

-- 
oldernow
xyz001 at nym.hush.com
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266905
Author: Colin Macleod
Date: Mon, 26 Feb 2024 11:40
17 lines
1454 bytes
ram@zedat.fu-berlin.de (Stefan Ram) wrote in news:binary-20240226121322
@ram.dialup.fu-berlin.de:
> 
>   You can just post a Python program to /generate/ the binary.
>   For example:
> 
> with open( 'output202402261208430100ergahei_tmp_DML.bin', 'wb' )as sink:
>     sink.write( b'\00\01\02' )
> 
>   . Now, one can run this Python program and will get the binary file
>   "output202402261208430100ergahei_tmp_DML.bin" with the three bytes
>   00, 01, and 02.
> 
Hmm, I don't think we need Yet Another Encoding System :-)

-- 
Colin Macleod.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266904
Author: Colin Macleod
Date: Mon, 26 Feb 2024 11:48
17 lines
1543 bytes
oldernow <oldernow@dev.null> wrote in 
news:slrnutou0s.diu.oldernow@oldernow.jethrick.com:
> 
> I want as many painfully difficult hoops to jump through as
> necessary to discourage the descendents of marauding Eternal
> September hoards from participating - yea, to the point of
> rewinding USENET space to its pre- Eternal September
> glory.... ;-)
> 
I feel your pain, but...

The current situation seems to have driven away most of the well-
intentioned users, while doing little to discourage the spammers and cranks 
:-(

-- 
Colin Macleod.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266907
Author: Michael Bäuerle
Date: Mon, 26 Feb 2024 11:59
21 lines
1977 bytes
candycanearter07 wrote:
> On 2024-02-26, Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> > On 2/25/24 16:45, candycanearter07 wrote:
> > > 
> > > That just sounds like mime encoding.
> > 
> > Mime is just one form of encoding.  Probably the most common in the 
> > email world.  But there are others.
> 
> I thought mime was the default for USENET tho..

Yes, since RFC 5536:
<https://www.rfc-editor.org/rfc/rfc5536#section-2.3>
| 
| 2.3.  MIME Conformance
| 
| User agents MUST meet the definition of MIME conformance in [RFC2049]
| and MUST also support [RFC2231].  This level of MIME conformance
| provides support for internationalization and multimedia in message
| bodies [RFC2045], [RFC2046], and [RFC2231], and support for
| internationalization of header fields [RFC2047] and [RFC2231]. [...]
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266906
Author: oldernow
Date: Mon, 26 Feb 2024 12:02
25 lines
1992 bytes
On 2024-02-26, Colin Macleod <cgm@erehwon.invalid> wrote:

>> I want as many painfully difficult hoops to jump through as
>> necessary to discourage the descendents of marauding Eternal
>> September hoards from participating - yea, to the point of
>> rewinding USENET space to its pre- Eternal September
>> glory.... ;-)
> 
> I feel your pain, but...
>
> The current situation seems to have driven away most of the
> well- intentioned users, while doing little to discourage
> the spammers and cranks :-(

Yeah, I know. I guess I follow just a few lower-traffic newsgroups
anymore, and therein can it seem like maybe just <holds thumb and
index finger of right hand a millimeter apart> "this far" from the
pearly posting gates.

But that - not to mention intelligent, civil society - has long
been an impossible dream for so predominantly moronic a species.

-- 
oldernow
xyz001 at nym.hush.com
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266908
Author: Colin Macleod
Date: Mon, 26 Feb 2024 12:07
15 lines
1466 bytes
D <nospam@example.net> wrote in
news:92fdfc81-d367-3adb-58b6-88f3c5f6cd4d@example.net: 
> 
> And regardless, your usenet client is free to implement some kind of 
> graphics handling. The least you can do is to include a html link to a
> graphic if it is necessary.

That's not a bad idea. I might try to put that in the usenet web client I'm 
working on, once I get the basic functionality sorted out.

Of course you then have the problem of how to respond to illegal or 
objectionable images being posted, that needs some thought.

-- 
Colin Macleod.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266909
Author: oldernow
Date: Mon, 26 Feb 2024 12:20
16 lines
1483 bytes
On 2024-02-26, Colin Macleod <cgm@erehwon.invalid> wrote:

> Of course you then have the problem of how to respond to
> illegal or objectionable images being posted, that needs
> some thought.

Indeed does it seem that most human problems boil down to "how to
deal with and/or work around assholes".

To me, the workarounds seem procrastination from the real work
of eradicating assholism - aka egoism - which for me begins in
the mirror.

-- 
oldernow
xyz001 at nym.hush.com
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266910
Author: Colin Macleod
Date: Mon, 26 Feb 2024 12:39
20 lines
1595 bytes
Michael Bäuerle <michael.baeuerle@stz-e.de> wrote in 
news:AABl3H0u5ScAAANx.A3.flnews@WStation5.stz-e.de:
> 
> Yes, since RFC 5536:
> <https://www.rfc-editor.org/rfc/rfc5536#section-2.3>
>| 
>| 2.3.  MIME Conformance
>| 
>| User agents MUST meet the definition of MIME conformance in [RFC2049]
>| and MUST also support [RFC2231].  This level of MIME conformance
>| provides support for internationalization and multimedia in message
>| bodies [RFC2045], [RFC2046], and [RFC2231], and support for
>| internationalization of header fields [RFC2047] and [RFC2231]. [...]
> 

Interesting, so software support is actually *mandated*, of course using 
this also depends on group and server policies.

-- 
Colin Macleod.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266912
Author: Michael Bäuerle
Date: Mon, 26 Feb 2024 13:49
30 lines
2533 bytes
Colin Macleod wrote:
> Michael Bäuerle wrote:
> > 
> > Yes, since RFC 5536:
> > <https://www.rfc-editor.org/rfc/rfc5536#section-2.3>
> > | 
> > | 2.3.  MIME Conformance
> > | 
> > | User agents MUST meet the definition of MIME conformance in [RFC2049]
> > | and MUST also support [RFC2231].  This level of MIME conformance
> > | provides support for internationalization and multimedia in message
> > | bodies [RFC2045], [RFC2046], and [RFC2231], and support for
> > | internationalization of header fields [RFC2047] and [RFC2231]. [...]
> 
> Interesting, so software support is actually *mandated*,

And even Xnews can support it with "Mime-proxy":
<https://web.archive.org/web/20150923091912/http://www.lamaiziere.net/mp_pagen.html>

Example article from german test group:
<news:urhrhi.ieo.1@barghahn-online.de>

> of course using this also depends on group and server policies.

The MIME features to support languages, that require non-ASCII encoding,
should be usable nearly everywhere.

Such policies should only target binary attachments in most cases.
But yes, embedding an image is the topic of this thread, and this will
not work on many servers.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266913
Author: D
Date: Mon, 26 Feb 2024 14:09
24 lines
1875 bytes

On Mon, 26 Feb 2024, Colin Macleod wrote:

> D <nospam@example.net> wrote in
> news:92fdfc81-d367-3adb-58b6-88f3c5f6cd4d@example.net:
>>
>> And regardless, your usenet client is free to implement some kind of
>> graphics handling. The least you can do is to include a html link to a
>> graphic if it is necessary.
>
> That's not a bad idea. I might try to put that in the usenet web client I'm
> working on, once I get the basic functionality sorted out.
>
> Of course you then have the problem of how to respond to illegal or
> objectionable images being posted, that needs some thought.

I see two options for that problem.

1. Caveat emptor.

2. Prefetching and either matching against a database or some kind of "AI" 
classification magic. Either way will increase the complexity and/or 
depdendencies of your software a lot.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266915
Author: D
Date: Mon, 26 Feb 2024 14:15
34 lines
2383 bytes

On Mon, 26 Feb 2024, Colin Macleod wrote:

> D <nospam@example.net> wrote in
> news:92fdfc81-d367-3adb-58b6-88f3c5f6cd4d@example.net:
>>
>> And regardless, your usenet client is free to implement some kind of
>> graphics handling. The least you can do is to include a html link to a
>> graphic if it is necessary.
>
> That's not a bad idea. I might try to put that in the usenet web client I'm
> working on, once I get the basic functionality sorted out.
>
> Of course you then have the problem of how to respond to illegal or
> objectionable images being posted, that needs some thought.

Another question, since you seem to be one of the guys wise in the ways of 
(computer) science!

I wonder if you know of any software or script that syncs usenet messages 
from the server to Maildir?

The reason I am asking is that my newsreader works directly against the 
server, and only caches certain operations. It is fairly fast, but, I 
would ideally like to be able to sync all the news groups I read to local disk 
(in Maildir, since my email client (alpine) supports that) so that I can 
read and respond to them offline, and then send them once I'm online.

I wonder if Maildir would be capable of "holding" the messages, or if that 
would just be trying to hammer the square peg through the round hole?

Best regards,
Daniel
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266914
Author: Sn!pe
Date: Mon, 26 Feb 2024 14:31
42 lines
3442 bytes
D <nospam@example.net> wrote:

> On Mon, 26 Feb 2024, Colin Macleod wrote:
> 
> > D <nospam@example.net> wrote in
> > news:92fdfc81-d367-3adb-58b6-88f3c5f6cd4d@example.net:
> >>
> >> And regardless, your usenet client is free to implement some kind of
> >> graphics handling. The least you can do is to include a html link to a
> >> graphic if it is necessary.
> >
> > That's not a bad idea. I might try to put that in the usenet web client I'm
> > working on, once I get the basic functionality sorted out.
> >
> > Of course you then have the problem of how to respond to illegal or
> > objectionable images being posted, that needs some thought.
> 
> Another question, since you seem to be one of the guys wise in the ways of
> (computer) science!
> 
> I wonder if you know of any software or script that syncs usenet messages
> from the server to Maildir?
> 
> The reason I am asking is that my newsreader works directly against the
> server, and only caches certain operations. It is fairly fast, but, I
> would ideally like to be able to sync all the news groups I read to local disk
> (in Maildir, since my email client (alpine) supports that) so that I can
> read and respond to them offline, and then send them once I'm online.
> 
> I wonder if Maildir would be capable of "holding" the messages, or if that
> would just be trying to hammer the square peg through the round hole?
> 
> Best regards,
> Daniel

IMO it's more like reinventing the wheel.  
Why not just use an offline newsreader?  

-- 
^Ï^.     Sn!pe, PA, FIBS     -     Professional Crastinator 

My pet rock Gordon just is.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266917
Author: D
Date: Mon, 26 Feb 2024 14:45
45 lines
2921 bytes

On Mon, 26 Feb 2024, Sn!pe wrote:

> D <nospam@example.net> wrote:
>
>> On Mon, 26 Feb 2024, Colin Macleod wrote:
>>
>>> D <nospam@example.net> wrote in
>>> news:92fdfc81-d367-3adb-58b6-88f3c5f6cd4d@example.net:
>>>>
>>>> And regardless, your usenet client is free to implement some kind of
>>>> graphics handling. The least you can do is to include a html link to a
>>>> graphic if it is necessary.
>>>
>>> That's not a bad idea. I might try to put that in the usenet web client I'm
>>> working on, once I get the basic functionality sorted out.
>>>
>>> Of course you then have the problem of how to respond to illegal or
>>> objectionable images being posted, that needs some thought.
>>
>> Another question, since you seem to be one of the guys wise in the ways of
>> (computer) science!
>>
>> I wonder if you know of any software or script that syncs usenet messages
>> from the server to Maildir?
>>
>> The reason I am asking is that my newsreader works directly against the
>> server, and only caches certain operations. It is fairly fast, but, I
>> would ideally like to be able to sync all the news groups I read to local disk
>> (in Maildir, since my email client (alpine) supports that) so that I can
>> read and respond to them offline, and then send them once I'm online.
>>
>> I wonder if Maildir would be capable of "holding" the messages, or if that
>> would just be trying to hammer the square peg through the round hole?
>>
>> Best regards,
>> Daniel
>
> IMO it's more like reinventing the wheel.
> Why not just use an offline newsreader?

Because I like my mail client and can use the same scripting 
functionality, keys etc.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266916
Author: D
Date: Mon, 26 Feb 2024 14:46
44 lines
2812 bytes

On Mon, 26 Feb 2024, D wrote:

>
>
> On Mon, 26 Feb 2024, Colin Macleod wrote:
>
>> D <nospam@example.net> wrote in
>> news:92fdfc81-d367-3adb-58b6-88f3c5f6cd4d@example.net:
>>> 
>>> And regardless, your usenet client is free to implement some kind of
>>> graphics handling. The least you can do is to include a html link to a
>>> graphic if it is necessary.
>> 
>> That's not a bad idea. I might try to put that in the usenet web client I'm
>> working on, once I get the basic functionality sorted out.
>> 
>> Of course you then have the problem of how to respond to illegal or
>> objectionable images being posted, that needs some thought.
>
> Another question, since you seem to be one of the guys wise in the ways of 
> (computer) science!
>
> I wonder if you know of any software or script that syncs usenet messages 
> from the server to Maildir?
>
> The reason I am asking is that my newsreader works directly against the 
> server, and only caches certain operations. It is fairly fast, but, I would 
> ideally like to be able to sync all the news groups I read to local disk (in 
> Maildir, since my email client (alpine) supports that) so that I can read and 
> respond to them offline, and then send them once I'm online.
>
> I wonder if Maildir would be capable of "holding" the messages, or if that 
> would just be trying to hammer the square peg through the round hole?
>
> Best regards,
> Daniel
>
>

And I received an answer in another group. The answer is leafnode.org. 
This does (based on a glance at the documentation) exactly what I was 
looking for! =)
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266919
Author: Sn!pe
Date: Mon, 26 Feb 2024 14:58
31 lines
2970 bytes
D <nospam@example.net> wrote:

> On Mon, 26 Feb 2024, Sn!pe wrote:
> 
> > D <nospam@example.net> wrote:
[...]
> >> The reason I am asking is that my newsreader works directly against the
> >> server, and only caches certain operations. It is fairly fast, but, I
> >> would ideally like to be able to sync all the news groups I read to
> >> local disk (in Maildir, since my email client (alpine) supports that)
> >> so that I can read and respond to them offline, and then send them once
> >> I'm online.
> >>
> >> I wonder if Maildir would be capable of "holding" the messages, or if
> >> that would just be trying to hammer the square peg through the round
> >> hole?
> >>
> >> Best regards, Daniel
> >
> > IMO it's more like reinventing the wheel.
> > Why not just use an offline newsreader?
> 
> Because I like my mail client and can use the same scripting 
> functionality, keys etc.

A perfectly valid reason.  I'm wedded to my 'reader too.

-- 
^Ï^.     Sn!pe, PA, FIBS     -     Professional Crastinator 

My pet rock Gordon just is.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266920
Author: D
Date: Mon, 26 Feb 2024 15:16
33 lines
2476 bytes

On Mon, 26 Feb 2024, Sn!pe wrote:

> D <nospam@example.net> wrote:
>
>> On Mon, 26 Feb 2024, Sn!pe wrote:
>>
>>> D <nospam@example.net> wrote:
> [...]
>>>> The reason I am asking is that my newsreader works directly against the
>>>> server, and only caches certain operations. It is fairly fast, but, I
>>>> would ideally like to be able to sync all the news groups I read to
>>>> local disk (in Maildir, since my email client (alpine) supports that)
>>>> so that I can read and respond to them offline, and then send them once
>>>> I'm online.
>>>>
>>>> I wonder if Maildir would be capable of "holding" the messages, or if
>>>> that would just be trying to hammer the square peg through the round
>>>> hole?
>>>>
>>>> Best regards, Daniel
>>>
>>> IMO it's more like reinventing the wheel.
>>> Why not just use an offline newsreader?
>>
>> Because I like my mail client and can use the same scripting
>> functionality, keys etc.
>
> A perfectly valid reason.  I'm wedded to my 'reader too.

I somtimes wonder how problematic this is? If you sit me down in front of 
anything besides vim I don't know what to do! ;)
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266923
Author: candycanearter07
Date: Mon, 26 Feb 2024 15:30
35 lines
2483 bytes
On 2024-02-26, Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
> Colin Macleod wrote:
>> Michael Bäuerle wrote:
>> > 
>> > Yes, since RFC 5536:
>> > <https://www.rfc-editor.org/rfc/rfc5536#section-2.3>
>> > | 
>> > | 2.3.  MIME Conformance
>> > | 
>> > | User agents MUST meet the definition of MIME conformance in [RFC2049]
>> > | and MUST also support [RFC2231].  This level of MIME conformance
>> > | provides support for internationalization and multimedia in message
>> > | bodies [RFC2045], [RFC2046], and [RFC2231], and support for
>> > | internationalization of header fields [RFC2047] and [RFC2231]. [...]
>> 
>> Interesting, so software support is actually *mandated*,
>
> And even Xnews can support it with "Mime-proxy":
><https://web.archive.org/web/20150923091912/http://www.lamaiziere.net/mp_pagen.html>
>
> Example article from german test group:
><news:urhrhi.ieo.1@barghahn-online.de>
>
>> of course using this also depends on group and server policies.
>
> The MIME features to support languages, that require non-ASCII encoding,
> should be usable nearly everywhere.
>
> Such policies should only target binary attachments in most cases.
> But yes, embedding an image is the topic of this thread, and this will
> not work on many servers.

Well, images can still be heavy to store.
-- 
user <candycane> is generated from /dev/urandom
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266922
Author: candycanearter07
Date: Mon, 26 Feb 2024 15:30
26 lines
2002 bytes
On 2024-02-26, Stefan Ram <ram@zedat.fu-berlin.de> wrote:
> Colin Macleod <cgm@erehwon.invalid> writes:
>>There's a big difference between encoding gigabyte videos into hundreds 
>>of posts, and including a small picture or graphic *as part of a 
>>message* just as one might do in an email. I think it would be very 
>>helpful to allow the second more generally, with sensible limits on 
>>attachment size.
>
>   You can just post a Python program to /generate/ the binary.
>   For example:
>
> with open( 'output202402261208430100ergahei_tmp_DML.bin', 'wb' )as sink:
>     sink.write( b'\00\01\02' )
>
>   . Now, one can run this Python program and will get the binary file
>   "output202402261208430100ergahei_tmp_DML.bin" with the three bytes
>   00, 01, and 02.
>
>   But be warned: If you already have a file named 
>   "output202402261208430100ergahei_tmp_DML.bin"
>   on your hard drive, the above program may *overwrite*
>   (delete) your existing file. So proceed with care!

Or you could just do f"output{time.time()}.bin" :)
-- 
user <candycane> is generated from /dev/urandom
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266925
Author: candycanearter07
Date: Mon, 26 Feb 2024 15:35
44 lines
2629 bytes
On 2024-02-26, D <nospam@example.net> wrote:
>
>
> On Mon, 26 Feb 2024, D wrote:
>
>>
>>
>> On Mon, 26 Feb 2024, Colin Macleod wrote:
>>
>>> 
>>> That's not a bad idea. I might try to put that in the usenet web client I'm
>>> working on, once I get the basic functionality sorted out.
>>> 
>>> Of course you then have the problem of how to respond to illegal or
>>> objectionable images being posted, that needs some thought.
>>
>> Another question, since you seem to be one of the guys wise in the ways of 
>> (computer) science!
>>
>> I wonder if you know of any software or script that syncs usenet messages 
>> from the server to Maildir?
>>
>> The reason I am asking is that my newsreader works directly against the 
>> server, and only caches certain operations. It is fairly fast, but, I would 
>> ideally like to be able to sync all the news groups I read to local disk (in 
>> Maildir, since my email client (alpine) supports that) so that I can read and 
>> respond to them offline, and then send them once I'm online.
>>
>> I wonder if Maildir would be capable of "holding" the messages, or if that 
>> would just be trying to hammer the square peg through the round hole?
>>
>> Best regards,
>> Daniel
>>
>>
>
> And I received an answer in another group. The answer is leafnode.org. 
> This does (based on a glance at the documentation) exactly what I was 
> looking for! =)

I use slrnpull personally, but yea there are quite a few. I believe INN
might be another good one.
-- 
user <candycane> is generated from /dev/urandom
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266927
Author: candycanearter07
Date: Mon, 26 Feb 2024 15:35
38 lines
2498 bytes
On 2024-02-26, D <nospam@example.net> wrote:
>
>
> On Mon, 26 Feb 2024, Sn!pe wrote:
>
>> D <nospam@example.net> wrote:
>>
>>> On Mon, 26 Feb 2024, Sn!pe wrote:
>>>
>>>> D <nospam@example.net> wrote:
>> [...]
>>>>> The reason I am asking is that my newsreader works directly against the
>>>>> server, and only caches certain operations. It is fairly fast, but, I
>>>>> would ideally like to be able to sync all the news groups I read to
>>>>> local disk (in Maildir, since my email client (alpine) supports that)
>>>>> so that I can read and respond to them offline, and then send them once
>>>>> I'm online.
>>>>>
>>>>> I wonder if Maildir would be capable of "holding" the messages, or if
>>>>> that would just be trying to hammer the square peg through the round
>>>>> hole?
>>>>>
>>>>> Best regards, Daniel
>>>>
>>>> IMO it's more like reinventing the wheel.
>>>> Why not just use an offline newsreader?
>>>
>>> Because I like my mail client and can use the same scripting
>>> functionality, keys etc.
>>
>> A perfectly valid reason.  I'm wedded to my 'reader too.
>
> I somtimes wonder how problematic this is? If you sit me down in front of 
> anything besides vim I don't know what to do! ;)

Not even notepad? :D
-- 
user <candycane> is generated from /dev/urandom
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266926
Author: candycanearter07
Date: Mon, 26 Feb 2024 15:35
18 lines
1663 bytes
On 2024-02-26, oldernow <oldernow@dev.null> wrote:
> On 2024-02-26, Colin Macleod <cgm@erehwon.invalid> wrote:
>
>> Of course you then have the problem of how to respond to
>> illegal or objectionable images being posted, that needs
>> some thought.
>
> Indeed does it seem that most human problems boil down to "how to
> deal with and/or work around assholes".
>
> To me, the workarounds seem procrastination from the real work
> of eradicating assholism - aka egoism - which for me begins in
> the mirror.

People being jerks ruins most software. There's a reason no-trust models
are so important..
-- 
user <candycane> is generated from /dev/urandom
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266929
Author: oldernow
Date: Mon, 26 Feb 2024 16:39
14 lines
1693 bytes
On 2024-02-26, D <nospam@example.net> wrote:

> I somtimes wonder how problematic this is? If you sit me
> down in front of anything besides vim I don't know what
> to do! ;)

Hmmm. Now you got me wondering if borrowing the code implementing
the aspects of slrn I actually use, and reworking it into whatever
language(s) can be used to augment vim might lead to some glorious
one-stop typing ecstasy.... ;-)

-- 
oldernow
xyz001 at nym.hush.com
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266930
Author: candycanearter07
Date: Mon, 26 Feb 2024 16:50
15 lines
1822 bytes
On 2024-02-26, oldernow <oldernow@dev.null> wrote:
> On 2024-02-26, D <nospam@example.net> wrote:
>
>> I somtimes wonder how problematic this is? If you sit me
>> down in front of anything besides vim I don't know what
>> to do! ;)
>
> Hmmm. Now you got me wondering if borrowing the code implementing
> the aspects of slrn I actually use, and reworking it into whatever
> language(s) can be used to augment vim might lead to some glorious
> one-stop typing ecstasy.... ;-)

Sounds like quite the frankensteins monster.
-- 
user <candycane> is generated from /dev/urandom
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266932
Author: D
Date: Mon, 26 Feb 2024 18:22
20 lines
2175 bytes

On Mon, 26 Feb 2024, oldernow wrote:

> On 2024-02-26, D <nospam@example.net> wrote:
>
>> I somtimes wonder how problematic this is? If you sit me
>> down in front of anything besides vim I don't know what
>> to do! ;)
>
> Hmmm. Now you got me wondering if borrowing the code implementing
> the aspects of slrn I actually use, and reworking it into whatever
> language(s) can be used to augment vim might lead to some glorious
> one-stop typing ecstasy.... ;-)

Sounds plausible! But what would the wife say? ;) In case you didn't 
already see it, have a look at leafnode.org.

It's a C codebase for acting as a news proxy/local server, and I imagine 
that perhaps it could be a strong component in such a glorious solution!
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266937
Author: oldernow
Date: Mon, 26 Feb 2024 18:29
29 lines
2367 bytes
On 2024-02-26, D <nospam@example.net> wrote:

>> Hmmm. Now you got me wondering if borrowing the code
>> implementing the aspects of slrn I actually use, and
>> reworking it into whatever language(s) can be used to
>> augment vim might lead to some glorious one-stop typing
>> ecstasy.... ;-)
>
> Sounds plausible! But what would the wife say? ;)

I've become pretty adept at being the tree that nearby others can't
hear falling in what they consider to be their woods. ;-)

> In case you didn't already see it, have a look at leafnode.org.

Yeah, investigated it after your first mention. But I've been happy
with pointing slrn to news.eternal-september.org.

> It's a C codebase for acting as a news proxy/local server,
> and I imagine that perhaps it could be a strong component
> in such a glorious solution!

That's too heavy in terms of what I want happening (more like *not*
happening) on my Chromebook. But I appreciate your having brought it
to my attention!

-- 
oldernow
xyz001 at nym.hush.com
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266939
Author: candycanearter07
Date: Mon, 26 Feb 2024 18:50
31 lines
2623 bytes
["Followup-To:" header set to news.software.readers.]
On 2024-02-26, oldernow <oldernow@dev.null> wrote:
> On 2024-02-26, D <nospam@example.net> wrote:
>
>>> Hmmm. Now you got me wondering if borrowing the code
>>> implementing the aspects of slrn I actually use, and
>>> reworking it into whatever language(s) can be used to
>>> augment vim might lead to some glorious one-stop typing
>>> ecstasy.... ;-)
>>
>> Sounds plausible! But what would the wife say? ;)
>
> I've become pretty adept at being the tree that nearby others can't
> hear falling in what they consider to be their woods. ;-)
>
>> In case you didn't already see it, have a look at leafnode.org.
>
> Yeah, investigated it after your first mention. But I've been happy
> with pointing slrn to news.eternal-september.org.
>
>> It's a C codebase for acting as a news proxy/local server,
>> and I imagine that perhaps it could be a strong component
>> in such a glorious solution!
>
> That's too heavy in terms of what I want happening (more like *not*
> happening) on my Chromebook. But I appreciate your having brought it
> to my attention!

Well, slrnpull is lighter.
-- 
user <candycane> is generated from /dev/urandom
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266946
Author: Grant Taylor
Date: Mon, 26 Feb 2024 23:48
40 lines
2323 bytes
On 2/26/24 03:51, Colin Macleod wrote:
> There's a big difference between encoding gigabyte videos into 
> hundreds of posts, and including a small picture or graphic *as part 
> of a message* just as one might do in an email.

There is and there isn't at the same time.

What differentiates someone from sending thousands of messages with 32 
kB binary to make up the image from someone else that sends a 32 kB 
graphic to discuss?

Specifically what differentiates the two discrete messages as seen by 
the spam filter on the news server?

In short, nothing differentiates the two.  Playing with the numbers is 
nothing but a whack-a-mole game.

Either you allow binary attachments or you don't.

Thus far, the general consensus of the text only portion of Usenet has 
decided to both not allow binary attachments and to actively try to 
filter them.

N.B. there are other parts of Usenet that do allow binaries.  It's just 
that text only servers have chosen to not support -> filter them.

> I think it would be very helpful to allow the second more generally, 
> with sensible limits on attachment size.

I agree in concept.

But I also agree in the text only portion of Usenet more.  Hence I run 
my servers as text only.

N.B.  My servers means my choice.



-- 
Grant. . . .
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266947
Author: Grant Taylor
Date: Tue, 27 Feb 2024 00:03
20 lines
1552 bytes
On 2/25/24 23:35, candycanearter07 wrote:
> I thought mime was the default for USENET tho..

I would not bet on it.

I agree that MIME headers are quite prolific in nature.  But I suspect 
that there still news readers that don't support MIME in active day to 
day use.

After all, one of MIME's claims to fame is the ability to get out of the 
way for pure text newsgroups and messages.  As such, pure text displays 
perfectly fine without any support for MIME.

I think that MIME support, at least rudimentary support, should be 
included.  But I wouldn't bet on it.



-- 
Grant. . . .
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266948
Author: oldernow
Date: Tue, 27 Feb 2024 01:29
13 lines
1733 bytes
On 2024-02-26, candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> wrote:

>> That's too heavy in terms of what I want happening (more
>> like *not* happening) on my Chromebook. But I appreciate
>> your having brought it to my attention!
>
> Well, slrnpull is lighter.

Hadn't heard of it. Thanks!

-- 
oldernow
xyz001 at nym.hush.com
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266949
Author: oldernow
Date: Tue, 27 Feb 2024 02:06
26 lines
2212 bytes
On 2024-02-26, candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> wrote:
> ["Followup-To:" header set to news.software.readers.]

> Well, slrnpull is lighter.

Why did my previous reply to this not wind up in
alt.culture.usenet? I'm imagining it's something to do with:

    "Followup-To:" header set to news.software.readers.

which led to seeing this when I followed up:

    Followup to news.software.readers as poster prefers? [Y]es, No

to which I'd answered "Y" to be what I thought was polite.

I'm just somewhat regretting having done that, because apparently
that led to my followup not going to where I thought/hoped it
would go.

Could someone explain what happened? I'm not too sophisticated a
USENET patron.

-- 
oldernow
xyz001 at nym.hush.com
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266959
Author: Colin Macleod
Date: Tue, 27 Feb 2024 08:38
24 lines
1865 bytes
Grant Taylor <gtaylor@tnetconsulting.net> wrote in news:urj809$ssv$1
@tncsrv09.home.tnetconsulting.net:

> On 2/26/24 03:51, Colin Macleod wrote:
>> There's a big difference between encoding gigabyte videos into 
>> hundreds of posts, and including a small picture or graphic *as part 
>> of a message* just as one might do in an email.
> 
> There is and there isn't at the same time.
> 
> What differentiates someone from sending thousands of messages with 32 
> kB binary to make up the image from someone else that sends a 32 kB 
> graphic to discuss?
> 
Unfortunately, I think you do have a point there.

So I think the next-best thing is for the post to include the URL of an 
image hosted elsewhere, and for the reader to have the option to load 
images or not, as most email clients do.  Note that this cannot be misused 
to track individual readers as happens with email, because all readers get 
the same image link.

-- 
Colin Macleod.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266955
Author: candycanearter07
Date: Tue, 27 Feb 2024 17:50
14 lines
1899 bytes
On 2024-02-27, oldernow <oldernow@dev.null> wrote:
> On 2024-02-26, candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> wrote:
>
>>> That's too heavy in terms of what I want happening (more
>>> like *not* happening) on my Chromebook. But I appreciate
>>> your having brought it to my attention!
>>
>> Well, slrnpull is lighter.
>
> Hadn't heard of it. Thanks!

You're welcome! I just recently set it up myself.
-- 
user <candycane> is generated from /dev/urandom
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266974
Author: Seamus
Date: Wed, 28 Feb 2024 14:42
30 lines
2119 bytes
On 26/02/24 10:51, Colin Macleod wrote:
> Grant Taylor <gtaylor@tnetconsulting.net> wrote in
> news:urgusr$eq4$1@tncsrv09.home.tnetconsulting.net:
> 
>> On 2/25/24 15:14, HenHanna wrote:
>>> i just think that...   if Usenet allowed a small image to be
>>>             embedded in a post, its appeal would be so much
>>>   Greater!
>>
>> Usenet is perfectly capable of conveying images, and other binary
>> content.
>>
>> Many Usenet server administrators have made the choice to not carry
>> binary content on their servers.
>>
>> If you want binary content, go use a different server.  Binary content
>> is unwelcome on many servers.
>>
>>
>>
> 
> There's a big difference between encoding gigabyte videos into hundreds
> of posts, and including a small picture or graphic *as part of a
> message* just as one might do in an email. I think it would be very
> helpful to allow the second more generally, with sensible limits on
> attachment size.
> 

The latter would, of course, immediately be abused to store sections of 
gigabyte videos.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#266978
Author: immibis
Date: Wed, 28 Feb 2024 18:35
28 lines
2410 bytes
On 26/02/24 16:35, candycanearter07 wrote:
> On 2024-02-26, oldernow <oldernow@dev.null> wrote:
>> On 2024-02-26, Colin Macleod <cgm@erehwon.invalid> wrote:
>>
>>> Of course you then have the problem of how to respond to
>>> illegal or objectionable images being posted, that needs
>>> some thought.
>>
>> Indeed does it seem that most human problems boil down to "how to
>> deal with and/or work around assholes".
>>
>> To me, the workarounds seem procrastination from the real work
>> of eradicating assholism - aka egoism - which for me begins in
>> the mirror.
> 
> People being jerks ruins most software. There's a reason no-trust models
> are so important..

Nobody can even define what a jerk is. There is no clear boundary, even 
though some things are obviously on the wrong side of it (randomly 
posting goatse... usually). A jerk usually means someone I don't like, 
and of course, that definition refers specifically to me, and not to you 
or anyone else.

The most common system we have that kinda sorta works is that of the 
internet, where you need to not piss off a server administrator, but all 
server administrators are pissed off in different ways and you get to 
choose which one you need to not piss off.
Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
#267023
Author: HenHanna
Date: Fri, 01 Mar 2024 23:22
49 lines
2961 bytes
This is a multi-part message in MIME format.
--------------65e26352ed7ab2.19879408
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

Colin Macleod wrote:

> Grant Taylor <gtaylor@tnetconsulting.net> wrote in
> news:urgusr$eq4$1@tncsrv09.home.tnetconsulting.net: 

>> On 2/25/24 15:14, HenHanna wrote:
>>> i just think that...   if Usenet allowed a small image to be
>>>            embedded in a post, its appeal would be so much Greater! 


>> 
>> Usenet is perfectly capable of conveying images, and other binary
>> content. 
>> 
>> Many Usenet server administrators have made the choice to not carry 
>> binary content on their servers.
>> 
>> If you want binary content, go use a different server.  Binary content
>> is unwelcome on many servers.
>> 
>> 
>> 

> There's a big difference between encoding gigabyte videos into hundreds 
> of posts, and including a small picture or graphic *as part of a 
> message* just as one might do in an email.     I think it would be very 
> helpful to allow the second more generally, with sensible limits on 
> attachment size.

        
           i agree!!!
--------------65e26352ed7ab2.19879408
Content-Type: image/png;
 name=yellow_Xface_HH.png
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename=yellow_Xface_HH.png

iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c
6QAAAARnQU1BAACxjwv8YQUAAAAGUExURf/YAP8AAEa+EnYAAAAJcEhZcwAA
DsQAAA7EAZUrDhsAAAArSURBVDjLYxhgICgAwYNMAgSoJDEoPTgYAaMgBA82
CRCgksRg9OBQAgwMAN/+BvrzvKZqAAAAAElFTkSuQmCC

--------------65e26352ed7ab2.19879408--
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