code logs -> 2021 -> Sun, 03 Oct 2021< code.20211002.log - code.20211004.log >
--- Log opened Sun Oct 03 00:00:18 2021
--- Day changed Sun Oct 03 2021
00:00
<&ToxicFrog>
Generally I prefer od, but xxd seems to be as widely installed and has a few features od lacks.
00:00
<&McMartin>
I find myself actually using objcopy more than one would think reasonable, but that is extremely GNU-toolchain.
00:02
<&McMartin>
And yeah, I usually use od or hexdump
00:02
<&McMartin>
hexdump -C does summaries of repeating patterns, which is often actually what I want.
00:02
<&ToxicFrog>
IIRC od is part of GNU coreutils, while xxd is one of those venerable UNIX tools included in most linux distros by default
00:03
<&McMartin>
All the more reason to go with it, imo
00:03
<&ToxicFrog>
I don't think I've ever used hexdump.
00:04
<&McMartin>
It's *almost* strictly inferior to od, and like od its default is "wrong", but some of its quirks end up hugely useful when you're tearing apart binaries intended for 8-bit processors.
00:05
<&McMartin>
But instead of passing a full formatting script like you would with od, the behavior that you basically *always* want out of hexdump is the single argument -C
00:08
<&ToxicFrog>
2222222222222
00:08
<&ToxicFrog>
With od I'm pretty much always using either -c or -tx1 or both
00:09
<&[R]>
Use xxd
00:09
<&[R]>
xxd is from vim IIRC
00:11
<&ToxicFrog>
Aah, so it is
00:11
<&[R]>
Probably for similar reasons that nmap provides ncat
00:11
<&[R]>
Namely the alternatives were complete trash
00:12
<&ToxicFrog>
so now we have nc, nc, netcat, ncat, and socat
00:12
<&[R]>
Not entirely correct
00:13
<&[R]>
Both netcat's provide nc as a symlink to their netcat binaries
00:13
<&ToxicFrog>
Aah
00:13
<&ToxicFrog>
so we have netcat, netcat, ncat, and socat
00:13
<&[R]>
It's actually: GNU netcat, BSD netcat, socat, ncat
00:14 * [R] forgets specfically the issues with netcat, but IIRC it's some super long standing bugs related to semi-advanced usage when listening
00:15
<&[R]>
Just use ncat to start with and you'll not have to worry about spending many, many hours bashing your head against a bug
00:16
<&[R]>
Or if you're a java programmer, and thus completely used to excessively verbose things, use socat
00:20
<&ToxicFrog>
As a rule I'm using it not to receive but to send, typically to send test data when I'm developing a server
00:20
<&ToxicFrog>
c.f. recent work on hangbrain
00:20
<&[R]>
Fair enough, personally, I'd rather get in the habit of not using tools I distrust
00:21
<&[R]>
So no scp, nc, or hexdump
01:20 Pink_ [uid208117@Nightstar-phvupn.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
01:55
<@celticminstrel>
I can't seem to find a font that encodes the fairy chess symbols.
01:58
<&McMartin>
(c) 1990-1997 by Juergen Weigert
02:02
<@celticminstrel>
?
02:07
<&McMartin>
xxd's copyright as given in the manpage
02:35
<&ToxicFrog>
Aah, not as venerable as I thought
03:02 * ToxicFrog turns on strict runtime type checking and her program immediately stops working
03:08
<&McMartin>
Last Patch In 1997 is Pretty Venerable.
03:16
<&Reiver>
How many security holes since then I wonder
03:18 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
04:09 Degi [Degi@Nightstar-5ujgdh.pool.telefonica.de] has quit [Operation timed out]
04:10 Degi [Degi@Nightstar-9im02f.pool.telefonica.de] has joined #code
04:37
<&McMartin>
For a hex-dumping program?
04:38
<&McMartin>
That's the kind of program that can be legitimately Finished, imo.
04:49 Kindamoody[zZz] is now known as Kindamoody|afk
05:38 Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has joined #code
05:38 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
07:01 macdjord [macdjord@Nightstar-re5.7if.45.45.IP] has quit [[NS] Quit: Deep inside, every housecat believes themself to be just a temporarily embarrassed tiger.]
07:16 abudhabi [abudhabi@Nightstar-n4lt8o.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
07:17 abudhabi [abudhabi@Nightstar-rof0lr.adsl.tpnet.pl] has joined #code
10:44 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
15:13 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:13 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:28 VirusJTG [VirusJTG@Nightstar-b00.oti.104.208.IP] has quit [Connection closed]
15:28 VirusJTG [VirusJTG@Nightstar-b00.oti.104.208.IP] has joined #code
15:28 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
17:23 * Emmy fails
17:24
< Emmy>
derp
17:24
< Kizor>
story of my life
17:25
< Kizor>
You ok-ish?
17:25
< Emmy>
Run RDP connection to work > RDP into server > RDP into main server > RDP into VM > SSH into 192.168.xx.xx
17:25
< Emmy>
>>> No reply from 192.168.xx.xx
17:25
< Emmy>
>>> WTF!? did i muck up the IP?
17:26
< Emmy>
>>> tries different IPs, nothing.
17:26
<&[R]>
Trying to ssh into a local machine while remoted?
17:27
< Emmy>
Almost!
17:27
< Emmy>
I had started SSH by windows-key+R > cmd
17:28
< Emmy>
...Which opens the cmd on my home PC. Which obviously does not know shit about 192.168.xx.xx
17:28
<&[R]>
Why is work running a 192.168.x.x network?
17:31
< Emmy>
Not the usual 192.168.1 network though. There's several virtual networks.
17:31
< Emmy>
But long story short, this is a fairly young company with 10-15 employees.
17:39 Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:44 M-E [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
17:44 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [NickServ (RECOVER command used by M-E)]
17:44 M-E is now known as Emmy
17:45
< Emmy>
Whoops. Had to create a new virtual switch
17:55 Kindamoody|afk is now known as Kindamoody
19:41
< Mahal>
well done
19:47
< Emmy>
Well
19:47
< Emmy>
I just did a major fail again
19:47
< Emmy>
I had accidentally made a ~/Valheim/~ directory.
19:47
< Emmy>
administrator@ubuntu:~/Valheim$ rm -r ~
19:47
< Emmy>
rm: cannot remove '/home/administrator': Permission denied
19:47
< Emmy>
administrator@ubuntu:~/Valheim$ sudo rm -r ~
19:48
< Emmy>
Guess what i just removed, instead of that ~/Valheim/~ directory?
19:48
< Mahal>
well done
19:48 * Emmy facedesks
19:49
< Emmy>
That's what you get for administering systems after dinner, i guess.
20:03
<@Tamber>
That horrible sinking feeling when it *tried* to warn you, but...
20:03 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection closed]
20:03 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
20:03
< Emmy>
Yup
20:04
< Emmy>
I really should get that sudo reflex out of my system
20:04
< Emmy>
Admit it, though, that was a horrible attempt at a warning XD
20:05
<&ToxicFrog>
I mean, it told you not just that you weren't allowed but also exactly what you had asked it to remove
20:07
< Emmy>
Yep, and i read it like shit
20:07
< Emmy>
as i said. Should not be administrating systems after dinner XD
20:07
< Emmy>
Or perhaps not be a lazy ass and refer to home as ~
20:08
<@Tamber>
The one that's bitten me a couple of times is "rm * ~" when I *meant* "rm *~"
20:09
< Emmy>
In this case it should've been "rm ./~"
20:10
< Emmy>
Oh well. Any time you do not go "DROP DATABASE ImportantDb" in production is a time you learn, i guess.
20:11
< Emmy>
Damage has already been undone anyway.
20:12
< Emmy>
It's a test machine anyway XD
20:30
<&[R]>
Emmy: hopefully you have regular backups?
20:30
<&[R]>
Oh
20:30
< Emmy>
There were only two files of importance in ~
20:30
<&[R]>
\~ would have been sufficient
20:30
<&[R]>
And Valheim shouldn't be making a directory named ~
20:31
< Emmy>
Yeah, a bit derpy. If you specify SaveDir=~/Valheim/Worlds it goes and make ./~/Valheim/Worlds in your current working directory @.@
20:32
<&[R]>
Genius
20:33
< Emmy>
Both of those two important files also existed on my physical PC, and contained in them the instruction to generate the other data i accidentally deleted.
21:16 macdjord [macdjord@Nightstar-7aijs7.dsl.bell.ca] has joined #code
21:16 mode/#code [+o macdjord] by ChanServ
21:27 mac [macdjord@Nightstar-7aijs7.dsl.bell.ca] has joined #code
21:27 mode/#code [+o mac] by ChanServ
21:31 macdjord [macdjord@Nightstar-7aijs7.dsl.bell.ca] has quit [Ping timeout: 121 seconds]
21:39 mac [macdjord@Nightstar-7aijs7.dsl.bell.ca] has quit [[NS] Quit: Deep inside, every housecat believes themself to be just a temporarily embarrassed tiger.]
21:58 macdjord [macdjord@Nightstar-7aijs7.dsl.bell.ca] has joined #code
21:58 mode/#code [+o macdjord] by ChanServ
22:12 Kindamoody is now known as Kindamoody[zZz]
22:27 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [The TLS connection was non-properly terminated.]
22:48 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
23:24
<&Reiver>
bah, it's not working
23:24
<~Vornicus>
?
23:24
<&Reiver>
Vornicus: So, for a specific kind of record in the list (Upgrade 20XXz), I would like to find the latest one before the start date of the calendar to state the 'current patch number' as it were
23:24
<&Reiver>
I can then trim the text for 'Upgrade' off of it and have a neat little version number
23:24
<&Reiver>
I am pretty sure I can do... something... to make it work with a max or something but
23:24
<&Reiver>
(Note: Upgrade status is eg 2021b)
23:25
<&Reiver>
I can do the text parsing but I'm a bit stuck on the 'take this array of text and find the most recent one based on the dates for each environment'
23:26
<&Reiver>
"Return to me the text from the cell with the highest value in another column" is just beyond my skillset, it seems
23:32
<&ToxicFrog>
welp, I need to name a project now -- an IRC<->Discord proxy based on the Zeiat IRC bridge library
23:32
<&ToxicFrog>
Current frontrunners: Dlique (Zeiat's (?sister)), Eris (the roman counterpart to Discordia), Logoi ("Stories", one of Eris's children), Aneris (Discordia's sister and opposite in modern Discordianism), Harmony (opposite of Discord)
23:32
<&ToxicFrog>
I was hoping to choose another Marathon reference to go with the hangouts bridge Hangbrain, but couldn't find a good one.
23:33 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
23:35
< ErikMesoy>
I want to suggest something around De-scord but I can't get the pun to work
23:37
< Kizor>
Some sorta "Dis cord" pun since it's a connector...
23:37
< Kizor>
No, no.
23:37
<&ToxicFrog>
hellwire~
23:38
<~Vornicus>
Reiver: you want the last one from before the first date, right
23:38
<~Vornicus>
And you have the first date, right
23:38
<~Vornicus>
xlookup can get you the lineup for the highest thing below a lookup value
23:40
<&Reiver>
Aha, this is "I need to go learn xlookup"
23:40
<&Reiver>
Okay, thank you
23:41
<&Reiver>
I am also trying to rejig your initial formula a bit
23:41
<&Reiver>
So I can go with dates in weekly views rather than daily
23:41
<&Reiver>
And not miss stuff that does not start on the same day
23:42
<&Reiver>
(ie, if it's listing all dates on display as the monday of any given week, it would be good if it still caught a refresh on a Wednesday)
23:42
<&Reiver>
(because I showed it to people and they preferred a weekly view, sigh)
--- Log closed Mon Oct 04 00:00:56 2021
code logs -> 2021 -> Sun, 03 Oct 2021< code.20211002.log - code.20211004.log >

[ Latest log file ]