Article View: news.software.readers
Article #266922Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
From: candycanearter07
Date: Mon, 26 Feb 2024 15:30
Date: Mon, 26 Feb 2024 15:30
26 lines
2002 bytes
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
Technical Details
Message-ID:
<uriaq2$2js4f$2@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<urgajg$22g45$1@dont-email.me> <urgusr$eq4$1@tncsrv09.home.tnetconsulting.net> <XnsB124645989C50colingmacleodyahooco@135.181.20.170> <binary-20240226121322@ram.dialup.fu-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <uriaq2$2js4f$2@dont-email.me> Subject: Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ... Date: Mon, 26 Feb 2024 15:30:10 +0000 From: candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> References: <urgajg$22g45$1@dont-email.me> <urgusr$eq4$1@tncsrv09.home.tnetconsulting.net> <XnsB124645989C50colingmacleodyahooco@135.181.20.170> <binary-20240226121322@ram.dialup.fu-berlin.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.readers Organization: A noiseless patient Spider Lines: 26 Injection-Date: Mon, 26 Feb 2024 15:30:10 -0000 (UTC) User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:HGQIC+tYTYS789IW7xoH6VUeKaI=