Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #435: Internet shut down due to maintenance


comp / comp.os.linux.advocacy / Re: Need Assistance -- Network Programming

SubjectAuthor
* Need Assistance -- Network ProgrammingLester Thorpe
+- Re: Need Assistance -- Network Programmingrbowman
+* Re: Need Assistance -- Network ProgrammingLester Thorpe
|`* Re: Need Assistance -- Network ProgrammingTyrone
| `* Re: Need Assistance -- Network Programmingvallor
|  `* Re: Need Assistance -- Network ProgrammingFarley Flud
|   `* Re: Need Assistance -- Network Programmingvallor
|    +* Re: Need Assistance -- Network ProgrammingAndrzej Matuch
|    |+* Re: Need Assistance -- Network Programmingrbowman
|    ||`* Re: Need Assistance -- Network ProgrammingAndrzej Matuch
|    || +- Re: Need Assistance -- Network ProgrammingFarley Flud
|    || `- Re: Need Assistance -- Network Programmingrbowman
|    |`* Re: Need Assistance -- Network Programmingvallor
|    | +- Re: Need Assistance -- Network Programming%
|    | `* Re: Need Assistance -- Network ProgrammingAndrzej Matuch
|    |  `- Re: Need Assistance -- Network Programmingrbowman
|    +* Re: Need Assistance -- Network ProgrammingLester Thorpe
|    |`- Re: Need Assistance -- Network Programmingvallor
|    `* Re: Need Assistance -- Network ProgrammingLawrence D'Oliveiro
|     +- Re: Need Assistance -- Network Programmingvallor
|     `* Re: Need Assistance -- Network ProgrammingDFS
|      `* Re: Need Assistance -- Network Programmingrbowman
|       +* Re: Need Assistance -- Network Programmingcandycanearter07
|       |`* Re: Need Assistance -- Network Programmingrbowman
|       | `- Re: Need Assistance -- Network Programmingcandycanearter07
|       `- Re: Need Assistance -- Network ProgrammingLawrence D'Oliveiro
+- Re: Need Assistance -- Network Programmingvallor
+* Re: Need Assistance -- Network Programmingcandycanearter07
|`* Re: Need Assistance -- Network ProgrammingLester Thorpe
| `* Re: Need Assistance -- Network Programmingcandycanearter07
|  `* Re: Need Assistance -- Network ProgrammingStéphane CARPENTIER
|   +* Re: Need Assistance -- Network Programmingcandycanearter07
|   |`- Re: Need Assistance -- Network ProgrammingStéphane CARPENTIER
|   `* Re: Need Assistance -- Network ProgrammingLawrence D'Oliveiro
|    `* Re: Need Assistance -- Network Programmingcandycanearter07
|     `* Re: Need Assistance -- Network ProgrammingLawrence D'Oliveiro
|      `* Re: Need Assistance -- Network Programmingcandycanearter07
|       `* Re: Need Assistance -- Network ProgrammingLawrence D'Oliveiro
|        `- Re: Need Assistance -- Network Programmingcandycanearter07
`- Re: Need Assistance -- Network ProgrammingLawrence D'Oliveiro

Pages:12
Subject: Re: Need Assistance -- Network Programming
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Wed, 26 Jun 2024 02:52 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: Wed, 26 Jun 2024 02:52:23 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <v5fvp7$1ut7v$1@dont-email.me>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jun 2024 04:52:23 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d3e70b79bcb23d33c66caba9f2139d60";
logging-data="2061567"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cQyUbZjMafEAtYY2rk9yD"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:TzyTxE0d3P5aJAr80NK7MUxTwwU=
View all headers

On Wed, 19 Jun 2024 13:47:44 +0000, Lester Thorpe wrote:

> I need to read through an HTML file, find all external HTTP(S) links,
> and then determine if those external links are still viable, i.e.
> if the pages to which they link still exist.
>
> Perl is the language of choice.

Does Perl have anything like BeautifulSoup
<https://www.crummy.com/software/BeautifulSoup/bs4/doc/>?

Subject: Re: Need Assistance -- Network Programming
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Wed, 26 Jun 2024 02:54 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: Wed, 26 Jun 2024 02:54:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <v5fvtu$1ut7v$2@dont-email.me>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<slrnv77gd4.3jqu.candycanearter07@candydeb.host.invalid>
<17dab0490c7f3ec8$3550$35484$802601b3@news.usenetexpress.com>
<slrnv7a5dg.5022.candycanearter07@candydeb.host.invalid>
<66769b61$0$3272$426a74cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jun 2024 04:54:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d3e70b79bcb23d33c66caba9f2139d60";
logging-data="2061567"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+trpei1QiN489G8Lv2g0Xz"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:LQ7L3nkhlbW4/yW/UcAf5Iyobjo=
View all headers

On 22 Jun 2024 09:37:37 GMT, Stéphane CARPENTIER wrote:

> Yes, it's impressive to discover he never heard about wget or curl.

I prefer wget to curl. curl includes client code for something like two
dozen different protocols, and that just adds to the potential for
security vulnerabilities, particularly when all those extra protocols
already have perfectly good clients of their own.

wget, by contrast, concentrates on the basics: HTTP/HTTPS/FTP/FTPS. And
that’s it.

Subject: Re: Need Assistance -- Network Programming
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Wed, 26 Jun 2024 02:57 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: Wed, 26 Jun 2024 02:57:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <v5g02q$1ut7v$3@dont-email.me>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<17da7b2e072f80b8$336$3510362$802601b3@news.usenetexpress.com>
<MoednQePt4STte77nZ2dnZfqnPSdnZ2d@supernews.com>
<ldgtitFirtiU1@mid.individual.net>
<17da83b880511303$1242$4081608$802601b3@news.usenetexpress.com>
<ldh5e8FirtiU8@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jun 2024 04:57:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d3e70b79bcb23d33c66caba9f2139d60";
logging-data="2061567"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18KWGVyAbotD3S1xT2MFDl1"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:pFt7U1ZH/fJdqsQ6hOslD+yVuQQ=
View all headers

On 19 Jun 2024 22:46:32 GMT, vallor wrote:

> Instead of handing you a fish, I'm teaching you to fish.

When I used a similar phrase in a reply on another group, this person said
“something about the way you went about that rubbed me the wrong way”.

Subject: Re: Need Assistance -- Network Programming
From: vallor
Newsgroups: comp.os.linux.advocacy
Date: Wed, 26 Jun 2024 06:30 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: 26 Jun 2024 06:30:56 GMT
Lines: 21
Message-ID: <le1qt0F6mdgU1@mid.individual.net>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<17da7b2e072f80b8$336$3510362$802601b3@news.usenetexpress.com>
<MoednQePt4STte77nZ2dnZfqnPSdnZ2d@supernews.com>
<ldgtitFirtiU1@mid.individual.net>
<17da83b880511303$1242$4081608$802601b3@news.usenetexpress.com>
<ldh5e8FirtiU8@mid.individual.net> <v5g02q$1ut7v$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net BpZXg/39+s4Zy6l/YniIKw5HSuWhlrpKFdyn77yLdm/1U5v95Z
Cancel-Lock: sha1:XkDBerXBj4BkUTiC/nwLb8XaAkc= sha256:wnbUNmcmFExJpvdZEt3SVAITyECca6zfVEW7kPkmK3c=
X-Face: +McU)#<-H?9lTb(Th!zR`EpVrp<0)1p5CmPu.kOscy8LRp_\u`:tW;dxPo./(fCl
CaKku`)]}.V/"6rISCIDP`
User-Agent: Pan/0.159 (Vovchansk; 873418b; Linux-5.15.0-110-lowlatency)
View all headers

On Wed, 26 Jun 2024 02:57:31 -0000 (UTC), Lawrence D'Oliveiro
<ldo@nz.invalid> wrote in <v5g02q$1ut7v$3@dont-email.me>:

> On 19 Jun 2024 22:46:32 GMT, vallor wrote:
>
>> Instead of handing you a fish, I'm teaching you to fish.
>
> When I used a similar phrase in a reply on another group, this person
> said “something about the way you went about that rubbed me the wrong
> way”.

I used your metaphor with irony, knowing you read this 'froup.

Did you think I was being up-front with Furled Fart the scorpion?

(And: do you see what happens when you remove all context from a post?)

--
-v ASUS TUF Dash F15 x86_64 NVIDIA RTX 3060 Mobile
OS: Linux 5.15.0-110-lowlatency Release: Mint 21.3 Mem: 15.9G
"I float like an anchor and sting like a moth."

Subject: Re: Need Assistance -- Network Programming
From: candycanearter07
Newsgroups: comp.os.linux.advocacy
Organization: the-candyden-of-code
Date: Wed, 26 Jun 2024 06:40 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: Wed, 26 Jun 2024 06:40:02 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 23
Message-ID: <slrnv7nddu.21cs.candycanearter07@candydeb.host.invalid>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<slrnv77gd4.3jqu.candycanearter07@candydeb.host.invalid>
<17dab0490c7f3ec8$3550$35484$802601b3@news.usenetexpress.com>
<slrnv7a5dg.5022.candycanearter07@candydeb.host.invalid>
<66769b61$0$3272$426a74cc@news.free.fr> <v5fvtu$1ut7v$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jun 2024 08:40:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="324a29690225d773b8110ef04bb5467d";
logging-data="2132661"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184GD+3ctCJZH9GlvHF5gIcDOcLC3OwILcdtIsjf2b8pQ=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:+b/CRUBYVPbZr4IJ+ZgTXdb8Bwo=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 02:54 this Wednesday (GMT):
> On 22 Jun 2024 09:37:37 GMT, Stéphane CARPENTIER wrote:
>
>> Yes, it's impressive to discover he never heard about wget or curl.
>
> I prefer wget to curl. curl includes client code for something like two
> dozen different protocols, and that just adds to the potential for
> security vulnerabilities, particularly when all those extra protocols
> already have perfectly good clients of their own.
>
> wget, by contrast, concentrates on the basics: HTTP/HTTPS/FTP/FTPS. And
> that’s it.

I'll be honest, I use both somewhat interchangeably. I know that you can
set the output file with -o in wget, but I still kinda prefer doing
curl url > file when I want it to be named something.

Also, hot tip: --content-disposition is great on some websites when
using wget, since otherwise it just saves it as the url basepath. Really
useful sometimes.
--
user <candycane> is generated from /dev/urandom

Subject: Re: Need Assistance -- Network Programming
From: DFS
Newsgroups: comp.os.linux.advocacy
Date: Wed, 26 Jun 2024 16:59 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.netnews.com!postmaster.netnews.com!us7.netnews.com!not-for-mail
X-Trace: DXC=dgTLA4kCo1@gDNmkEL?NcCHWonT5<]0TMQ;nb^V>PUfF5[gZBW6J?LLTD;10@6=i=NFlTLOUlEf1LXILEc6HD0XOMba][>SC2CGf;]EoU=id5F=R<hY6_C9TH
X-Complaints-To: support@blocknews.net
Date: Wed, 26 Jun 2024 12:59:41 -0400
MIME-Version: 1.0
User-Agent: Betterbird (Windows)
From: nospam@dfs.com (DFS)
Subject: Re: Need Assistance -- Network Programming
Newsgroups: comp.os.linux.advocacy
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<17da7b2e072f80b8$336$3510362$802601b3@news.usenetexpress.com>
<MoednQePt4STte77nZ2dnZfqnPSdnZ2d@supernews.com>
<ldgtitFirtiU1@mid.individual.net>
<17da83b880511303$1242$4081608$802601b3@news.usenetexpress.com>
<ldh5e8FirtiU8@mid.individual.net> <v5g02q$1ut7v$3@dont-email.me>
Content-Language: en-US
In-Reply-To: <v5g02q$1ut7v$3@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 12
Message-ID: <667c48fd$0$2385533$882e4bbb@reader.netnews.com>
NNTP-Posting-Host: 127.0.0.1
X-Trace: 1719421181 reader.netnews.com 2385533 127.0.0.1:34521
View all headers

On 6/25/2024 10:57 PM, Lawrence D'Oliveiro wrote:
> On 19 Jun 2024 22:46:32 GMT, vallor wrote:
>
>> Instead of handing you a fish, I'm teaching you to fish.
>
> When I used a similar phrase in a reply on another group, this person said
> “something about the way you went about that rubbed me the wrong way”.

That's because it's an extremely smug, obnoxious, arrogant thing to say,
and in most cases whoever says it is full of shit.

Subject: Re: Need Assistance -- Network Programming
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Wed, 26 Jun 2024 23:53 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: Wed, 26 Jun 2024 23:53:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <v5i9kr$2cjv1$4@dont-email.me>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<slrnv77gd4.3jqu.candycanearter07@candydeb.host.invalid>
<17dab0490c7f3ec8$3550$35484$802601b3@news.usenetexpress.com>
<slrnv7a5dg.5022.candycanearter07@candydeb.host.invalid>
<66769b61$0$3272$426a74cc@news.free.fr> <v5fvtu$1ut7v$2@dont-email.me>
<slrnv7nddu.21cs.candycanearter07@candydeb.host.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 27 Jun 2024 01:53:00 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="080a009ffce1dc4f5355e621231567e1";
logging-data="2510817"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ACuD6G7Y3LMzmBagk3CK0"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:ysW1FfU0D11XVS4kMagJMNNAB/0=
View all headers

On Wed, 26 Jun 2024 06:40:02 -0000 (UTC), candycanearter07 wrote:

> I know that you can set the output file with -o in wget ...

That’s for log messages, if you want to save the actual data, that’s “-O”.

> Also, hot tip: --content-disposition is great on some websites when
> using wget, since otherwise it just saves it as the url basepath.

Having a look at the description in the man page, I don’t think it’s
something I’m likely to be using.

Subject: Re: Need Assistance -- Network Programming
From: rbowman
Newsgroups: comp.os.linux.advocacy
Date: Wed, 26 Jun 2024 23:58 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: 26 Jun 2024 23:58:30 GMT
Lines: 30
Message-ID: <le3o96Fh0sfU1@mid.individual.net>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<17da7b2e072f80b8$336$3510362$802601b3@news.usenetexpress.com>
<MoednQePt4STte77nZ2dnZfqnPSdnZ2d@supernews.com>
<ldgtitFirtiU1@mid.individual.net>
<17da83b880511303$1242$4081608$802601b3@news.usenetexpress.com>
<ldh5e8FirtiU8@mid.individual.net> <v5g02q$1ut7v$3@dont-email.me>
<667c48fd$0$2385533$882e4bbb@reader.netnews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net XpUdt4bBuYX3X9oKtV7JxA9RyszLhqYkU88BkbwotbLAAc8H5w
Cancel-Lock: sha1:rd+jYGaqpUcs+5xHlnGbx74Gd/4= sha256:czbRWdpYnDepNamt1xKsQ1X+Ls9TxgUv5LXWzi5Y3XA=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Wed, 26 Jun 2024 12:59:41 -0400, DFS wrote:

> On 6/25/2024 10:57 PM, Lawrence D'Oliveiro wrote:
>> On 19 Jun 2024 22:46:32 GMT, vallor wrote:
>>
>>> Instead of handing you a fish, I'm teaching you to fish.
>>
>> When I used a similar phrase in a reply on another group, this person
>> said “something about the way you went about that rubbed me the wrong
>> way”.
>
>
> That's because it's an extremely smug, obnoxious, arrogant thing to say,
> and in most cases whoever says it is full of shit.

Being able to fish is useful. Paul McCraken has several video series.

https://toptechboy.com/

He often goes into the math at length, probably frustrating many. For
example, while Python has a map() function the Arduino C/C++ library's
map() is completely different.

https://www.arduino.cc/reference/en/language/functions/math/map/

In the MicroPython series he goes into the math behind linear
interpolation. Similarly while Python has math.degrees() and
math.radians() he goes into the math rather than taking the easy way.
Which is more valuable in the long run?

Subject: Re: Need Assistance -- Network Programming
From: candycanearter07
Newsgroups: comp.os.linux.advocacy
Organization: the-candyden-of-code
Date: Thu, 27 Jun 2024 06:10 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: Thu, 27 Jun 2024 06:10:03 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 39
Message-ID: <slrnv7pvv4.3939.candycanearter07@candydeb.host.invalid>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<17da7b2e072f80b8$336$3510362$802601b3@news.usenetexpress.com>
<MoednQePt4STte77nZ2dnZfqnPSdnZ2d@supernews.com>
<ldgtitFirtiU1@mid.individual.net>
<17da83b880511303$1242$4081608$802601b3@news.usenetexpress.com>
<ldh5e8FirtiU8@mid.individual.net> <v5g02q$1ut7v$3@dont-email.me>
<667c48fd$0$2385533$882e4bbb@reader.netnews.com>
<le3o96Fh0sfU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 27 Jun 2024 08:10:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e4a8255fc3f682775845a775dca336bd";
logging-data="2753208"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GbyK2dTYlsglvojejSldsw/joBVEBwBLzuwK4b/VXXA=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:rzsOBAc5gED+86VAutftOc2kuqU=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

rbowman <bowman@montana.com> wrote at 23:58 this Wednesday (GMT):
> On Wed, 26 Jun 2024 12:59:41 -0400, DFS wrote:
>
>> On 6/25/2024 10:57 PM, Lawrence D'Oliveiro wrote:
>>> On 19 Jun 2024 22:46:32 GMT, vallor wrote:
>>>
>>>> Instead of handing you a fish, I'm teaching you to fish.
>>>
>>> When I used a similar phrase in a reply on another group, this person
>>> said “something about the way you went about that rubbed me the wrong
>>> way”.
>>
>>
>> That's because it's an extremely smug, obnoxious, arrogant thing to say,
>> and in most cases whoever says it is full of shit.
>
> Being able to fish is useful. Paul McCraken has several video series.
>
> https://toptechboy.com/

I used to fish.

> He often goes into the math at length, probably frustrating many. For
> example, while Python has a map() function the Arduino C/C++ library's
> map() is completely different.
>
> https://www.arduino.cc/reference/en/language/functions/math/map/
>
> In the MicroPython series he goes into the math behind linear
> interpolation. Similarly while Python has math.degrees() and
> math.radians() he goes into the math rather than taking the easy way.
> Which is more valuable in the long run?

Isn't lerp pretty simple to implement I think? I don't remember the
exact code, but it can be done in one line with clamp and basic math
ops.. been a while since I've had to use it like that tho.
--
user <candycane> is generated from /dev/urandom

Subject: Re: Need Assistance -- Network Programming
From: candycanearter07
Newsgroups: comp.os.linux.advocacy
Organization: the-candyden-of-code
Date: Thu, 27 Jun 2024 06:10 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: Thu, 27 Jun 2024 06:10:03 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 20
Message-ID: <slrnv7q01b.3939.candycanearter07@candydeb.host.invalid>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<slrnv77gd4.3jqu.candycanearter07@candydeb.host.invalid>
<17dab0490c7f3ec8$3550$35484$802601b3@news.usenetexpress.com>
<slrnv7a5dg.5022.candycanearter07@candydeb.host.invalid>
<66769b61$0$3272$426a74cc@news.free.fr> <v5fvtu$1ut7v$2@dont-email.me>
<slrnv7nddu.21cs.candycanearter07@candydeb.host.invalid>
<v5i9kr$2cjv1$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 27 Jun 2024 08:10:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e4a8255fc3f682775845a775dca336bd";
logging-data="2753208"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jDxJazNQR1LnhF6H5p8ZVNDVN4adH6QQCGriTzotqug=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:0mSCGOtZSciwzz7UHEKltNPHLZA=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 23:53 this Wednesday (GMT):
> On Wed, 26 Jun 2024 06:40:02 -0000 (UTC), candycanearter07 wrote:
>
>> I know that you can set the output file with -o in wget ...
>
> That’s for log messages, if you want to save the actual data, that’s “-O”.

Ah oops, I misremembered. At least it was close. Like I said, I don't
use it much.

>> Also, hot tip: --content-disposition is great on some websites when
>> using wget, since otherwise it just saves it as the url basepath.
>
> Having a look at the description in the man page, I don’t think it’s
> something I’m likely to be using.

Fair, I find it helpful tho.
--
user <candycane> is generated from /dev/urandom

Subject: Re: Need Assistance -- Network Programming
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Thu, 27 Jun 2024 08:01 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: Thu, 27 Jun 2024 08:01:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <v5j68n$2ks7o$7@dont-email.me>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<17da7b2e072f80b8$336$3510362$802601b3@news.usenetexpress.com>
<MoednQePt4STte77nZ2dnZfqnPSdnZ2d@supernews.com>
<ldgtitFirtiU1@mid.individual.net>
<17da83b880511303$1242$4081608$802601b3@news.usenetexpress.com>
<ldh5e8FirtiU8@mid.individual.net> <v5g02q$1ut7v$3@dont-email.me>
<667c48fd$0$2385533$882e4bbb@reader.netnews.com>
<le3o96Fh0sfU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 27 Jun 2024 10:01:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="080a009ffce1dc4f5355e621231567e1";
logging-data="2781432"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KvS4xsNyNrvVf/jt9bMNc"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:6qGrm+f/1ho66wuno0yrism7WMM=
View all headers

On 26 Jun 2024 23:58:30 GMT, rbowman wrote:

> Similarly while Python has math.degrees() and math.radians() ...

I’ve long felt those conversion functions are an unnecessarily roundabout
way of doing things. After all, you need two for every angle unit,
assuming you stick with radians as the common basis among all of them.
Otherwise you need even more.

Better to have a single conversion factor for each unit, e.g.

class ANGLE_UNITS(float, enum.Enum) :
"standard values for Context.angle_units."
RADIANS = 1.0
DEGREES = math.pi / 180
GRADIANS = math.pi / 200
CIRCLE = 2 * math.pi
#end ANGLE_UNITS

so you multiply by the factor to convert the units to radians, and divide
by the same factor to convert radians to those units.

Then all your trig functions can operate exclusively in radians:

units = ANGLE_UNITS.DEGREES
θ = float(input("Angle in degrees? "))
x = math.sin(θ * units)
print("Angle: ", math.asin(x) / units, "°")

And yes, Python does full multiple inheritance. And yes, you can subclass
from builtin types like float as well. And further yes, enums are not a
built-in language feature, they are provided in a library module that is
written in pure Python.

Subject: Re: Need Assistance -- Network Programming
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Thu, 27 Jun 2024 08:02 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: Thu, 27 Jun 2024 08:02:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <v5j6ar$2ks7o$8@dont-email.me>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<slrnv77gd4.3jqu.candycanearter07@candydeb.host.invalid>
<17dab0490c7f3ec8$3550$35484$802601b3@news.usenetexpress.com>
<slrnv7a5dg.5022.candycanearter07@candydeb.host.invalid>
<66769b61$0$3272$426a74cc@news.free.fr> <v5fvtu$1ut7v$2@dont-email.me>
<slrnv7nddu.21cs.candycanearter07@candydeb.host.invalid>
<v5i9kr$2cjv1$4@dont-email.me>
<slrnv7q01b.3939.candycanearter07@candydeb.host.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 27 Jun 2024 10:02:36 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="080a009ffce1dc4f5355e621231567e1";
logging-data="2781432"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lhycV1owZ0A2cTe4N9k3R"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:aSWktmrJJ/sUFcdVCOMjUkG6xIA=
View all headers

On Thu, 27 Jun 2024 06:10:03 -0000 (UTC), candycanearter07 wrote:

> Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 23:53 this Wednesday
> (GMT):
>
>> On Wed, 26 Jun 2024 06:40:02 -0000 (UTC), candycanearter07 wrote:
>>
>>> Also, hot tip: --content-disposition is great on some websites when
>>> using wget, since otherwise it just saves it as the url basepath.
>>
>> Having a look at the description in the man page, I don’t think it’s
>> something I’m likely to be using.
>
> Fair, I find it helpful tho.

It creates a local file name based on something being passed in a header
field from the remote site. I find that being a little bit too, um ...
trusting.

Subject: Re: Need Assistance -- Network Programming
From: rbowman
Newsgroups: comp.os.linux.advocacy
Date: Thu, 27 Jun 2024 18:47 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: 27 Jun 2024 18:47:45 GMT
Lines: 12
Message-ID: <le5qehFrkjbU1@mid.individual.net>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<17da7b2e072f80b8$336$3510362$802601b3@news.usenetexpress.com>
<MoednQePt4STte77nZ2dnZfqnPSdnZ2d@supernews.com>
<ldgtitFirtiU1@mid.individual.net>
<17da83b880511303$1242$4081608$802601b3@news.usenetexpress.com>
<ldh5e8FirtiU8@mid.individual.net> <v5g02q$1ut7v$3@dont-email.me>
<667c48fd$0$2385533$882e4bbb@reader.netnews.com>
<le3o96Fh0sfU1@mid.individual.net>
<slrnv7pvv4.3939.candycanearter07@candydeb.host.invalid>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net jt2BISX7i9pCi2vxf/aDdAwpwhKfuvHI4kyFZ9I7tBjoOIpsbM
Cancel-Lock: sha1:pqB1lH3H+kZUac1nfgXA0XmVMd8= sha256:JFMk7dZdUbwad04e8B+uzqMmvtgQLMSxQLfEuwUSFWI=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Thu, 27 Jun 2024 06:10:03 -0000 (UTC), candycanearter07 wrote:

> Isn't lerp pretty simple to implement I think? I don't remember the
> exact code, but it can be done in one line with clamp and basic math
> ops.. been a while since I've had to use it like that tho.

Yes, it's nothing exotic. I'm of two minds about similar abstractions.
When you use PyTorch, TensorFlow, Keras, and so forth there are very
convenient functions but to really understand what is happening you wind
up neck deep in linear algebra. I've reached the point where I'm willing
to accept black boxes that just work but I feel vaguely guilty when I grab
the fish without a clue of how to use a fly rod.

Subject: Re: Need Assistance -- Network Programming
From: candycanearter07
Newsgroups: comp.os.linux.advocacy
Organization: the-candyden-of-code
Date: Sun, 30 Jun 2024 14:10 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: Sun, 30 Jun 2024 14:10:03 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 18
Message-ID: <slrnv82pgp.12ab.candycanearter07@candydeb.host.invalid>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<17da7b2e072f80b8$336$3510362$802601b3@news.usenetexpress.com>
<MoednQePt4STte77nZ2dnZfqnPSdnZ2d@supernews.com>
<ldgtitFirtiU1@mid.individual.net>
<17da83b880511303$1242$4081608$802601b3@news.usenetexpress.com>
<ldh5e8FirtiU8@mid.individual.net> <v5g02q$1ut7v$3@dont-email.me>
<667c48fd$0$2385533$882e4bbb@reader.netnews.com>
<le3o96Fh0sfU1@mid.individual.net>
<slrnv7pvv4.3939.candycanearter07@candydeb.host.invalid>
<le5qehFrkjbU1@mid.individual.net>
Injection-Date: Sun, 30 Jun 2024 16:10:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e563109106b753703d657e07950be30c";
logging-data="594041"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eGmqvFZvsE3BFV90fGqTG5Ltijwf189LqzN3oAhC+FQ=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:BkFm5llRB2pv5rSXQpDqWmgM+u0=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

rbowman <bowman@montana.com> wrote at 18:47 this Thursday (GMT):
> On Thu, 27 Jun 2024 06:10:03 -0000 (UTC), candycanearter07 wrote:
>
>> Isn't lerp pretty simple to implement I think? I don't remember the
>> exact code, but it can be done in one line with clamp and basic math
>> ops.. been a while since I've had to use it like that tho.
>
> Yes, it's nothing exotic. I'm of two minds about similar abstractions.
> When you use PyTorch, TensorFlow, Keras, and so forth there are very
> convenient functions but to really understand what is happening you wind
> up neck deep in linear algebra. I've reached the point where I'm willing
> to accept black boxes that just work but I feel vaguely guilty when I grab
> the fish without a clue of how to use a fly rod.

Yeah same, especially when it can easily be implemented as a macro.
--
user <candycane> is generated from /dev/urandom

Subject: Re: Need Assistance -- Network Programming
From: candycanearter07
Newsgroups: comp.os.linux.advocacy
Organization: the-candyden-of-code
Date: Sun, 30 Jun 2024 14:10 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Need Assistance -- Network Programming
Date: Sun, 30 Jun 2024 14:10:04 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 25
Message-ID: <slrnv82pi0.12ab.candycanearter07@candydeb.host.invalid>
References: <17da6bead1f52684$159717$3694546$802601b3@news.usenetexpress.com>
<slrnv77gd4.3jqu.candycanearter07@candydeb.host.invalid>
<17dab0490c7f3ec8$3550$35484$802601b3@news.usenetexpress.com>
<slrnv7a5dg.5022.candycanearter07@candydeb.host.invalid>
<66769b61$0$3272$426a74cc@news.free.fr> <v5fvtu$1ut7v$2@dont-email.me>
<slrnv7nddu.21cs.candycanearter07@candydeb.host.invalid>
<v5i9kr$2cjv1$4@dont-email.me>
<slrnv7q01b.3939.candycanearter07@candydeb.host.invalid>
<v5j6ar$2ks7o$8@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 30 Jun 2024 16:10:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e563109106b753703d657e07950be30c";
logging-data="594041"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+n+dBTxGrtEbK+vD5i5XeGJFrgOS2SEFDbnpVUz61r4A=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:V/NQYr85kDDEGEFmNN/giRXK5Yg=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 08:02 this Thursday (GMT):
> On Thu, 27 Jun 2024 06:10:03 -0000 (UTC), candycanearter07 wrote:
>
>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 23:53 this Wednesday
>> (GMT):
>>
>>> On Wed, 26 Jun 2024 06:40:02 -0000 (UTC), candycanearter07 wrote:
>>>
>>>> Also, hot tip: --content-disposition is great on some websites when
>>>> using wget, since otherwise it just saves it as the url basepath.
>>>
>>> Having a look at the description in the man page, I don’t think it’s
>>> something I’m likely to be using.
>>
>> Fair, I find it helpful tho.
>
> It creates a local file name based on something being passed in a header
> field from the remote site. I find that being a little bit too, um ...
> trusting.

Well, it still shows you what the filename is and you can just rename it
if it's problematic.
--
user <candycane> is generated from /dev/urandom

Pages:12

rocksolid light 0.9.8
clearnet tor