code logs -> 2021 -> Mon, 29 Nov 2021< code.20211128.log - code.20211130.log >
--- Log opened Mon Nov 29 00:00:09 2021
00:15 Kimo|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
00:15 mode/#code [+o Kimo|autojoin] by ChanServ
00:19
<@celticminstrel>
When I tried it, the line that was matched did get deleted…
00:21
<@celticminstrel>
No wait, I was wrong.
00:21
<@celticminstrel>
It was a different attempt that deleted it.
00:21
<@celticminstrel>
Or I just misread or something, that's also possible.
00:22
<@celticminstrel>
I did already mention the "whole line" landmine FTR.
00:29 Kizor [a@Nightstar-nfsqa7.yok.fi] has quit [Ping timeout: 121 seconds]
00:29
<&ToxicFrog>
Aah, so you did, I didn't read back that far
00:32 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
00:32 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection closed]
00:55
<@sshine>
ToxicFrog, thanks for fixing my typo. I am aware of the limitation with this being a full-line replace. I'm okay with that for now, since if I'm depending on a scripting language, I might as well be doing all of this inside that scripting language.
00:56
<@sshine>
ToxicFrog, I don't believe I need -E?
00:56
<@sshine>
s/typo/error/
01:00
<&ToxicFrog>
I don't think you do, that's just muscle memory for me
01:04
<@sshine>
ah, yeah
01:04
<@sshine>
https://gist.github.com/sshine/82cf79c0b541d5263e2fffc2b384eeb6
01:04
<@sshine>
I always have -P on GNU grep, even when I don't need it.
01:05
<@sshine>
when I run this, I expect to get "a\nHello, World\nb", but I get "a\nb"
01:05
<@sshine>
when I remove the 'd' line in the sed script, I get "a\nhello\nHello, World\nb"
01:06
<@sshine>
so somehow 'd' resets the line number?
01:07
<@sshine>
and yeah, in Ruby it's even simpler: ruby -p -l -e 'sub("%html_body%",ENV["html_body"])'
02:10
<&ToxicFrog>
oh right, d is "clear pattern space and proceed immediately to next line
02:10
<&ToxicFrog>
so you need them in the opposite order
02:10
<&ToxicFrog>
$ sed -E '/%html_body%/ { r /tmp/body
02:10
<&ToxicFrog>
d}' /tmp/template.html
02:11
<&ToxicFrog>
'r' appends the contents of the file to the output immediately rather than reading it into the pattern space
02:15 Degi_ [Degi@Nightstar-ppq8hq.pool.telefonica.de] has joined #code
02:17 Degi [Degi@Nightstar-jadjlm.pool.telefonica.de] has quit [Ping timeout: 121 seconds]
02:17 Degi_ is now known as Degi
02:37
<@sshine>
ToxicFrog, awesome! thanks so much!
04:33 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
05:25 Kizor [a@Nightstar-nfsqa7.yok.fi] has joined #code
05:35 Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has joined #code
05:35 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
07:41 abudhabi__ [abudhabi@Nightstar-2hksdc.centertel.pl] has quit [Ping timeout: 121 seconds]
08:04 abudhabi__ [abudhabi@Nightstar-gtbofr.dynamic.t-mobile.pl] has joined #code
09:15 Kimo|autojoin is now known as Kindamoody
09:57 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
09:57 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection reset by peer]
09:58 catalyst_ [catalyst@Nightstar-du3hvs.dab.02.net] has joined #code
10:01 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds]
10:06 catalyst [catalyst@Nightstar-j2nqon.dab.02.net] has joined #code
10:08 catalyst_ [catalyst@Nightstar-du3hvs.dab.02.net] has quit [Ping timeout: 121 seconds]
10:43 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
10:46 catalyst [catalyst@Nightstar-j2nqon.dab.02.net] has quit [Ping timeout: 121 seconds]
11:05 Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
12:40 gizmore [kvirc@Nightstar-qiruug.dip0.t-ipconnect.de] has joined #code
12:46 Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has joined #code
12:46 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
13:31 abudhabi__ [abudhabi@Nightstar-gtbofr.dynamic.t-mobile.pl] has quit [Connection closed]
13:49 abudhabi__ [abudhabi@Nightstar-2hksdc.centertel.pl] has joined #code
14:08 Kindamoody is now known as Kindamoody|afk
14:34 catalyst [catalyst@Nightstar-j2nqon.dab.02.net] has joined #code
14:37 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds]
14:47 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
14:50 catalyst [catalyst@Nightstar-j2nqon.dab.02.net] has quit [Ping timeout: 121 seconds]
15:08 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:08 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:51 abudhabi__ [abudhabi@Nightstar-2hksdc.centertel.pl] has quit [Ping timeout: 121 seconds]
17:05 Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:20 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
17:29 abudhabi__ [abudhabi@Nightstar-kfaqu5.adsl.tpnet.pl] has joined #code
18:03 catalyst [catalyst@Nightstar-7gfqe0.dab.02.net] has joined #code
18:05 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds]
18:15 catalyst_ [catalyst@Nightstar-058ijn.cable.virginm.net] has joined #code
18:18 catalyst [catalyst@Nightstar-7gfqe0.dab.02.net] has quit [Ping timeout: 121 seconds]
18:43 Vornotron [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
18:46 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
18:52 Vornotron [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
19:15 catalyst_ [catalyst@Nightstar-058ijn.cable.virginm.net] has quit [[NS] Quit: -a- Connection Timed Out]
19:19 catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has joined #code
19:31 * abudhabi__ applies Dvorak labels no his laptop keyboard.
19:32
< abudhabi__>
I've been touch-typing on QWERTY labels so long, I have no idea where the keys actually are. My fingers know, but I don't.
19:32
< abudhabi__>
This has been an impediment at times. Like when learning a new interface.
19:32
< abudhabi__>
"Press N." "Where is N?"
20:16 * Reiver laughs
20:16
<&Reiver>
I know your pain.
20:16
<&Reiver>
I have a few mental shortcuts
20:20
<&Reiver>
ctrl+z: ctrl+? [??? "Whaaaa" sound effect as I undo it]
20:20
<&Reiver>
ctrl+c: ctrl+I[mitate]
20:20
<&Reiver>
ctrl+X: ctrl+B[utcher]
20:20
<&Reiver>
> : 'E'nter prompt
20:20
<&Reiver>
< : [W]ind back
20:20
<&Reiver>
" : [Q]uotemark
20:20
<&Reiver>
etc
20:20
<&Reiver>
Also you have no idea how hard that was to type as my fingers attempted to double-map Dvorak layouts in my head~
20:21
<&Reiver>
Also I apparently not at all consistent with my formattingt here but welp
20:22
< abudhabi__>
I opted to use the old-timey clipboard shortcuts.
20:23
< abudhabi__>
Ctrl+Insert, Shift+Insert, Shift+Delete.
20:23
< abudhabi__>
Ctrl+Z is easy, it's one the corner of the layout.
20:24
<&Reiver>
Not a bad solution, though I did find the mental associations helpful for me in general.
20:24
<&Reiver>
Also shift+delete may be legit but it is also inherently terrifying to my programmer brain :V
20:24
<&Reiver>
(Delete key: Pressed only when you mean it.)
20:33
< abudhabi__>
Ctrl+Z helps with the accidental Delete issue. :V
20:49 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
21:01 Kindamoody|afk is now known as Kindamoody
21:27 catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has quit [[NS] Quit: -a- Connection Timed Out]
21:34 catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has joined #code
21:49 catalyst_ [catalyst@Nightstar-7gfqe0.dab.02.net] has joined #code
21:50 catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has quit [Ping timeout: 121 seconds]
22:00 catalyst_ [catalyst@Nightstar-7gfqe0.dab.02.net] has quit [Ping timeout: 121 seconds]
22:04 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
22:27 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [[NS] Quit: -a- Connection Timed Out]
22:27 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
22:37 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
22:38 mode/#code [+o himi] by ChanServ
23:16 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
23:20 Kindamoody is now known as Kindamoody[zZz]
--- Log closed Tue Nov 30 00:00:11 2021
code logs -> 2021 -> Mon, 29 Nov 2021< code.20211128.log - code.20211130.log >

[ Latest log file ]