00:08:55fishingforpie quits [Remote host closed the connection]
00:09:19fishingforpie joins
00:17:42sec^nd quits [Remote host closed the connection]
00:22:54sec^nd (second) joins
00:35:46sec^nd quits [Ping timeout: 240 seconds]
00:42:26sec^nd (second) joins
00:45:29Arcorann (Arcorann) joins
00:51:58fishingforpie quits [Remote host closed the connection]
01:01:23fishingforpie joins
01:03:29<fishingforpie>My client is going to be off for now.
01:12:19fishingforpie quits [Remote host closed the connection]
01:54:03katocala quits [Remote host closed the connection]
02:05:32katocala joins
02:19:39BlueMaxima quits [Client Quit]
02:22:51<@JAA>systwi_: See if you can figure out what this one does, lol: `seq 10 | python3 -c 'import pickle, sys; sys.modules = type("m", (map,), {"__getitem__": lambda self, k: None})(lambda x: print(x, end = ""), sys.stdin); (o := type("o", (object,), {})).__module__ = None; pickle.dumps(o)'`
02:26:31<systwi_>Send (pipe) 1-10 into python3 running, erm...vegetables and maths. :-P
02:26:58<systwi_>I forget what lambdas do in mathematics.
02:27:41<@JAA>:-P
02:27:47<@JAA>Has nothing to do with maths.
02:28:06<@JAA>And it abuses a subtle behaviour in `pickle`. I wouldn't have any idea what it does if I didn't write that abomination. lol
02:28:06<systwi_>I've seen `pickle` before, it might a prettyifier of some kind.
02:28:31<@JAA>No, `pickle` is a data serialisation thingy. Think JSON, but more compact, binary, Python-specific format.
02:28:47<systwi_>Oooh, sounds cool. :-)
02:29:01<@JAA>`pickle.dumps(obj)` translates the object into a byte stream that can later be loaded again.
02:29:25<@JAA>Yeah, until you realise the potential for security issues. :-)
02:33:50<@JAA>The above can be simplified to `seq 10 | cat`.
02:37:12Chris5010 quits [Remote host closed the connection]
02:40:36<systwi_>Oh, that's it? Heh.
02:40:48<systwi_>Is it much different than, simply `seq 10`?
02:46:13<systwi_>Probably behind the scenes, there's some sort of additional processing.
02:46:45<@JAA>Well yeah, two processes instead of one, subtle differences in how seq's stdout behaves, etc. But in practice, no.
02:47:02<@JAA>Just wanted to illustrate that the Python command is a complicated `cat`. :-)
02:47:51<@JAA>But there are other applications.
02:48:14<@JAA>The background when I came up with that was finding elegant ways of doing data processing in Python in a shell pipeline.
02:48:28<@JAA>And then I got sidetracked by trying to find the most ridiculous ways of doing that. :-)
02:49:11<@JAA>Say, you want to do some data transformation on JSON data which can't be done with jq (or you don't have jq installed for $reasons).
02:49:23<@JAA>You could do that with Python in a big pipeline.
02:49:46<@JAA>I've been doing it for a while, just with fairly ugly constructs involving manual linebreaks with $'\n' and later set comprehensions.
02:50:25<@JAA>But there's a more elegant way: `seq 10 | python3 -c 'import sys; min(sys.stdin, key = sys.stdout.write)'`
02:50:50<@JAA>(Insert your favourite function for `sys.stdout.write`, obviously.)
03:01:01Kinille quits []
03:09:49<systwi_>Ahhh, I see.
03:14:34Arcorann quits [Ping timeout: 265 seconds]
03:37:27Arcorann (Arcorann) joins
03:38:03Kinille (Kinille) joins
04:30:20sec^nd quits [Remote host closed the connection]
04:37:25sec^nd (second) joins
04:38:18tbc1887 (tbc1887) joins
04:43:46sec^nd quits [Ping timeout: 240 seconds]
04:50:29sec^nd (second) joins
05:43:44Barto quits [Read error: Connection reset by peer]
05:52:50Barto (Barto) joins
06:36:46sec^nd quits [Ping timeout: 240 seconds]
06:43:24sec^nd (second) joins
07:17:21knecht420 quits [Quit: Ping timeout (120 seconds)]
07:17:28knecht420 (knecht420) joins
07:22:16sec^nd quits [Ping timeout: 240 seconds]
07:29:13<Jake>https://dgl.cx/2022/08/nat-again-irc-cve-2022-2663
07:33:33sec^nd (second) joins
08:15:30tbc1887 quits [Read error: Connection reset by peer]
10:21:32tech_exorcist (tech_exorcist) joins
10:31:16sec^nd quits [Ping timeout: 240 seconds]
10:36:16<Aoede>(re: kiwifarms) the owner has said he'll release an archive if he ever closes the site
10:38:06sec^nd (second) joins
12:03:09fishingforpie joins
12:37:22Iki joins
13:18:52tech_exorcist quits [Client Quit]
13:40:26fishingforpie quits [Remote host closed the connection]
13:40:45<@JAA>Jake: Thanks! It's almost as if TLS on IRC actually makes sense. Please shout it louder for the people who wanted to stay on EFnet. :-)
13:51:13michaelblob quits [Read error: Connection reset by peer]
13:52:35dm4v_ joins
13:52:37michaelblob (michaelblob) joins
13:54:59dm4v quits [Ping timeout: 265 seconds]
13:54:59dm4v_ is now known as dm4v
14:09:40Arcorann quits [Ping timeout: 240 seconds]
14:44:30flashfire42 quits [Quit: The Lounge - https://thelounge.chat]
14:44:31kiska quits [Quit: The Lounge - https://thelounge.chat]
14:44:31Ryz2 quits [Quit: The Lounge - https://thelounge.chat]
14:44:31s-crypt quits [Quit: The Lounge - https://thelounge.chat]
14:47:06<hexa->don't use conntrack helper.
14:47:44Ryz2 (Ryz) joins
14:47:47s-crypt (s-crypt) joins
14:48:07flashfire42 (flashfire42) joins
14:49:54kiska (kiska) joins
15:58:32fishingforpie joins
16:00:43tech_exorcist (tech_exorcist) joins
16:16:10<fishingforpie>I updated my LMW post about My Dear Friend.
16:16:11<fishingforpie>https://forums.lostmediawiki.com/thread/9487/lost-japanese-idol-power-friend
16:56:46fishingforpie quits [Remote host closed the connection]
18:24:28le0n quits [Ping timeout: 240 seconds]
18:27:09le0n (le0n) joins
20:44:16sec^nd quits [Ping timeout: 240 seconds]
20:54:36sec^nd (second) joins
21:20:34datechnoman quits [Quit: The Lounge - https://thelounge.chat]
22:13:42igloo22225 quits [Client Quit]
22:13:59igloo22225 (igloo22225) joins
22:26:16tech_exorcist quits [Client Quit]
22:58:21BlueMaxima joins
23:13:14wickedplayer494 quits [Ping timeout: 265 seconds]
23:15:16wickedplayer494 joins
23:26:55Arcorann (Arcorann) joins