We love Linux (was: Re: The Golly! of Python)

Liste des GroupesRevenir à ol advocacy 
Sujet : We love Linux (was: Re: The Golly! of Python)
De : vallor (at) *nospam* cultnix.org (vallor)
Groupes : comp.os.linux.advocacy
Date : 18. Apr 2024, 03:51:12
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uvpuag$1sbln$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Pan/0.158 (Avdiivka; 6a11104 gitlab.gnome.org/GNOME/pan.git; x86_64-pc-linux-gnu)
On Wed, 17 Apr 2024 20:34:33 -0400, DFS <nospam@dfs.com> wrote in
<uvppqr$1som3$1@dont-email.me>:

On 4/17/2024 6:36 PM, vallor wrote:
On Wed, 17 Apr 2024 16:08:47 -0400, DFS <nospam@dfs.com> wrote in
 
 
Note: I do know how to write C to scan directories and list files and
check file types and open and read the contents, etc.
>
<FPDeI.3446$IC5.734@fx24.iad>
<KSGdH.282124$5_4.76405@fx40.iad>
>
Feeb does not.
 
I looked at those, and had to do a double-take with the second one.
 
Calling "file" is "cheating". ;)
 
No doubt!  Everything should always be written in assembly language.
 
 
 
You can get crafty with a lookup table and stat(2).
 
I did stat against text files and a couple files in usr/bin, and against
EXCEL.EXE, and it called all of them 'regular files'.
 
How would I use stat and a lookup table to get a better description,
like 'file' provides?  Isn't file and the 'magic' db as good as it gets?
 

Not that stat(1) program, but the stat(2) system call.

$ man 2 stat

which will reference the mode_t value, discussed at

$ man 7 inode


 
 
I mention this mainly because if Laughing Boy was capable of reading
your article, he'll surely launch into a cackling fit that might brake
his brane.  (That is...if he understood the program, which he probably
wouldn't.)
 
If you read the thread (it's old so hard to get to), Fool Feeb's
response to that code was to say it didn't actually work, because it
didn't use ncurses.
 
 
 > (Regarding article lookups and such, I use a shell script that calls
openssl(1) s_client to connect, log in, and leaves me with the NNTP
prompt...a place at which Feeb would be lost.)
 
I use these most of the time: https://imgur.com/a/cj36AzT
 
Also custom python programs using the soon-to-be-deprecated nntplib
library.
 
Using that NNTP prompt, can you store messages locally?  How?

Just for one or two articles, I run script(1), which spawns a subshell
with everything going to a file called "typescript".  Then I run
my nntp.sh[*] script, retrieve the articles, and then exit the subshell.

If I want a snapshot of a newsgroup, I use leafnode, and have
it connect via stunnel, which connects to a bulk commercial news provider.
(BTW, don't do it using a free text service like Ray's, he's got
enough problems with people doing that crap from Google and
Amazon cloud services.)

[*] I'm lazy.  My scripts are named (servername)_nntp.sh.  They
look something like this:

 - - -%<- cut here - - -
#!/bin/bash

( echo "authinfo user xxx"
echo "authinfo pass xxx"
cat ) | \
openssl s_client -connect sample.news.server.name.invalid:563

- - -%<- cut here - - -

--
-v

Date Sujet#  Auteur
14 Apr 24 * The Folly of Python83Farley Flud
14 Apr 24 +* Re: The Folly of Python13Stéphane CARPENTIER
14 Apr 24 i`* Re: The Folly of Python12rbowman
15 Apr 24 i `* Re: The Folly of Python11Chris Ahlstrom
16 Apr 24 i  +- Re: The Folly of Python1Lawrence D'Oliveiro
16 Apr 24 i  `* Re: The Folly of Python9DFS
16 Apr 24 i   `* Re: The Folly of Python8rbowman
16 Apr 24 i    +- Re: The Folly of Python1DFS
16 Apr 24 i    `* Re: The Folly of Python6Chris Ahlstrom
16 Apr 24 i     +* Re: The Folly of Python3rbowman
17 Apr 24 i     i`* Re: The Joy of Python2Lawrence D'Oliveiro
17 Apr 24 i     i `- Re: The Joy of Python1rbowman
16 Apr 24 i     `* Re: The Folly of Python2Farley Flud
17 Apr 24 i      `- Re: The Folly of Feeb1DFS
14 Apr 24 +* Re: The Folly of Python2Joel
15 Apr 24 i`- Re: The Folly of Python1candycanearter07
15 Apr 24 +- Re: The Folly of Farley Flud1Lawrence D'Oliveiro
15 Apr 24 +- Re: The Folly of Python1DFS
16 Apr 24 `* The Golly! of Python65DFS
17 Apr 24  +* Re: The Golly! of Python56vallor
17 Apr 24  i`* Re: The Golly! of Python55DFS
18 Apr 24  i `* Re: The Golly! of Python54vallor
18 Apr 24  i  `* Re: The Golly! of Python53DFS
18 Apr 24  i   +* We love Linux (was: Re: The Golly! of Python)3vallor
18 Apr 24  i   i`* Re: We love Linux (was: Re: The Golly! of Python)2Lawrence D'Oliveiro
22 Apr 24  i   i `- Re: We love Linux (was: Re: The Golly! of Python)1vallor
19 Apr 24  i   `* Re: The Golly! of Python49Stéphane CARPENTIER
19 Apr 24  i    +- Nuclear bombs, MultiPolar imperialism, mysticism, Islam & Africa.1Relf
20 Apr 24  i    +- Re: The Golly! of Python1rbowman
20 Apr 24  i    `* Re: The Golly! of Python46candycanearter07
20 Apr 24  i     +* Re: The Golly! of Python2rbowman
25 Apr 24  i     i`- Re: The Golly! of Python1Lawrence D'Oliveiro
20 Apr 24  i     `* Re: The Golly! of Python43candycanearter07
21 Apr 24  i      +* Re: The Golly! of Python2vallor
23 Apr 24  i      i`- Re: The Golly! of Python1Chris Ahlstrom
21 Apr 24  i      +- Re: The Golly! of Python1DFS
21 Apr 24  i      +* Re: The Golly! of Python27candycanearter07
21 Apr 24  i      i`* Re: The Golly! of Python26Joel
22 Apr 24  i      i +* Re: The Golly! of Python6Joel
24 Apr 24  i      i i+* Warnings as Errors3Relf
25 Apr 24  i      i ii`* Re: Warnings as Errors2Lawrence D'Oliveiro
25 Apr 24  i      i ii `- Re: Warnings as Errors1Chris Ahlstrom
24 Apr 24  i      i i+- Re: The Golly! of Python1Chris Ahlstrom
24 Apr 24  i      i i`- Re: The Golly! of Python1DFS
24 Apr 24  i      i `* Re: The Golly! of Python19DFS
24 Apr 24  i      i  `* Re: The Golly! of Python18Joel
24 Apr 24  i      i   +* Re: The Golly! of Python16candycanearter07
17 May 24  i      i   i`* Re: The Golly! of Python15Lawrence D'Oliveiro
18 May 24  i      i   i +* Re: The Golly! of Python13DFS
18 May 24  i      i   i i+* Re: The Golly! of Python7Andrzej Matuch
18 May 24  i      i   i ii+* Re: The Golly! of Python2vallor
18 May 24  i      i   i iii`- Re: The Golly! of Python1Joel
19 May 24  i      i   i ii`* Re: The Golly! of Python4RonB
19 May 24  i      i   i ii `* Re: The Golly! of Python3Andrzej Matuch
19 May 24  i      i   i ii  `* Re: The Golly! of Python2RonB
19 May 24  i      i   i ii   `- Re: The Golly! of Python1RonB
25 Jun 24  i      i   i i`* Re: The Golly! of Python5Lawrence D'Oliveiro
25 Jun 24  i      i   i i +- Re: The Golly! of Python1rbowman
26 Jun 24  i      i   i i `* Re: The Golly! of Python3Lawrence D'Oliveiro
26 Jun 24  i      i   i i  `* Re: The Golly! of Python2candycanearter07
27 Jun 24  i      i   i i   `- Re: The Golly! of Python1Lawrence D'Oliveiro
18 May 24  i      i   i `- Re: The Golly! of Python1Chris Ahlstrom
24 Apr 24  i      i   `- Re: The Golly! of Python1Chris Ahlstrom
21 Apr 24  i      `* Re: The Golly! of Python12rbowman
22 Apr 24  i       +* Re: The Golly! of Python10Joel
23 Apr 24  i       i`* Re: The Golly! of Python9DFS
23 Apr 24  i       i +* Re: The Golly! of Python3Andrzej Matuch
23 Apr 24  i       i i+- Re: The Golly! of Python1DFS
23 Apr 24  i       i i`- Re: The Golly! of Python1candycanearter07
25 Apr 24  i       i `* Re: The Golly! of Python5Lawrence D'Oliveiro
25 Apr 24  i       i  `* Re: The Golly! of Python4candycanearter07
26 Apr 24  i       i   `* Re: The Golly! of Python3Lawrence D'Oliveiro
26 Apr 24  i       i    `* Re: The Golly! of Python2Chris Ahlstrom
26 Apr 24  i       i     `- Re: The Golly! of Python1candycanearter07
22 Apr 24  i       `- Re: The Golly! of Python1rbowman
18 Apr 24  `* Re: The Golly! of Python8Lawrence D'Oliveiro
18 Apr 24   +* Re: The Golly! of Python2vallor
18 Apr 24   i`- Re: The Golly! of Python1Lawrence D'Oliveiro
18 Apr 24   `* Re: The Golly! of Python5DFS
18 Apr 24    +* Re: The Golly! of Python2Lawrence D'Oliveiro
18 Apr 24    i`- Re: The Golly! of Python1candycanearter07
19 Apr 24    `* Re: The Golly! of Python2Stéphane CARPENTIER
23 Apr 24     `- Re: The Golly! of Python1Chris Ahlstrom

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal