code logs -> 2018 -> Sun, 11 Mar 2018< code.20180310.log - code.20180312.log >
--- Log opened Sun Mar 11 00:00:40 2018
00:05 Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Bye]
01:09
<&[R]>
OMFG
01:10
<&[R]>
TIL `ls -d */`
01:13
<&ToxicFrog>
ls -d is so useful
01:18
<&[R]>
Yeah, the */ bit is the new thing to me though
01:19
<&ToxicFrog>
Aah
01:23
<&[R]>
And it looks like `for d in */` works as expected too.
01:38 Kindamoody is now known as Kindamoody[zZz]
02:46 * ToxicFrog publishes the source code for the narbonic compiler: https://github.com/ToxicFrog/misc/tree/master/narbonic
04:44 Vornlicious [Vorn@Nightstar-9vcepg.sub-174-211-13.myvzw.com] has joined #code
04:44 Vornotron [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
04:47 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
05:30 mac is now known as macdjord|slep
05:41 Derakon is now known as Derakon[AFK]
06:18 Vornotron [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
06:18 mode/#code [+qo Vornotron Vornotron] by ChanServ
06:23 Vornotron [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
06:28 Alek [Alek@Nightstar-7or629.il.comcast.net] has quit [Ping timeout: 121 seconds]
06:31 Alek [Alek@Nightstar-7or629.il.comcast.net] has joined #code
06:31 mode/#code [+o Alek] by ChanServ
06:44 celticminstrel is now known as celmin|sleep
07:00 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
07:01 mode/#code [+qo Vornicus Vornicus] by ChanServ
08:31 Kindamoody[zZz] is now known as Kindamoody
10:23 Kindamoody is now known as Kindamoody|afk
14:35 Kindamoody|afk is now known as Kindamoody
15:20
<@abudhabi>
Anyone know wikimedia markup?
15:21
<@abudhabi>
I have one of those {{}} template thingies and I'd like them to be side-by-side, rather than one below the other.
15:28 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
15:36 Vornlicious [Vorn@Nightstar-9vcepg.sub-174-211-13.myvzw.com] has quit [[NS] Quit: Bye]
15:36 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
15:52 celmin|sleep is now known as celticminstrel
15:55 Vash [Vash@Nightstar-1l3nul.res.rr.com] has joined #code
16:12 macdjord|slep is now known as macdjord
17:13
<&[R]>
Put them in a two-cell table?
17:15
<@abudhabi>
How?
17:17
<&[R]>
I forget the markup, but that's what wikipedia does/did
17:23
<@abudhabi>
OK, found it.
17:23
<@abudhabi>
Thanks.
17:30 Degi [Degi@Nightstar-ve55hn.dyn.telefonica.de] has joined #code
18:04 * ToxicFrog grumps at python
18:04
<&ToxicFrog>
The code: sys.stdout.write("\rScanning: %d files" % n)
18:04
<&ToxicFrog>
The error: TypeError: write() argument must be str, not bytes
18:05
<&ToxicFrog>
It is a str!
18:08
< Degi>
What does the % n do
18:09
<&ToxicFrog>
Degi: formatting, equivalent to sprintf()
18:10
<&ToxicFrog>
"%s: %d" % (name, count) in python is eqv to sprintf("%s: %d", name, count)
18:10
<&ToxicFrog>
If there's only one formatting code you can drop the () around the arguments
18:12 Vash [Vash@Nightstar-1l3nul.res.rr.com] has quit [Connection closed]
18:15
<~Vornicus>
looks like py3 so you should probably aim at s.format() instead really but
18:17
<&ToxicFrog>
Vornicus: I'm updating a ~1600loc project from py2 to p3, so
18:18
<&ToxicFrog>
(as part of hopefully making it more robust when dealing with wacky character encoding catastrophes)
18:18
<~Vornicus>
that is quite surprising and I'm not sure why it's happening.
18:18
<@celticminstrel>
Maybe the % operator returns bytes instead of str?
18:18
<&ToxicFrog>
(although this may ultimately be a doomed endeavour because I depend on Mutagen and Mutagen seems to have trouble round-tripping stuff that is neither latin1 nor utf8)
18:18
<@celticminstrel>
Though that would be weird.
18:19
<&ToxicFrog>
celticminstrel: I tested it, and it doesn't
18:19
<&ToxicFrog>
I have in fact found the problem
18:19
<@celticminstrel>
Ah.
18:19
<&ToxicFrog>
At the start of main() I had: sys.stdout = codecs.getwriter('utf8')(sys.stdout)
18:19
<&[R]>
Python 3.6.0 (default, Mar 18 2017, 03:46:24)
18:19
<&[R]>
>>> type("test")
18:19
<&[R]>
<class 'str'>
18:19
<&[R]>
>>> type("test %d" % 4)
18:19
<&[R]>
<class 'str'>
18:20
<&[R]>
Ah
18:22 Derakon[AFK] is now known as Deraekon
18:22
<@abudhabi>
AE!
18:22 Vash [Vash@Nightstar-1l3nul.res.rr.com] has joined #code
18:59
<&[R]>
Wow, I found a page that segfaults Firefox
18:59
<&[R]>
D:
19:02
<@celticminstrel>
Fun!
19:17 Vash [Vash@Nightstar-1l3nul.res.rr.com] has quit [[NS] Quit: Quit]
19:36
< Degi>
Link?
19:38
<&ToxicFrog>
...as seems to keep happening lately, I just found out that someone else has written a better version of the program I'm working on
19:42
<&[R]>
http://www.cbc.ca/news/canada/edmonton/hard-to-find-contractor-leaves-trail-of-debt-and-unfinished-jobs-1.2648744
19:42
<&[R]>
^ The link that segfaults me.
19:43
<&[R]>
I'm using an old version of FF, though
19:43 * celticminstrel tries it, crosses fingers. >_>
19:43
<@celticminstrel>
No crash here on Mac with FF47.
19:43
<&[R]>
It's something that loads later, so you'll have to wait for it a bit
19:43 * [R] has FF 52 on Linux FYI
19:45
<@celticminstrel>
Still seems to be okay.
19:45
<@celticminstrel>
I guess there's occasionally advantages to having an old version.
19:48
<&[R]>
ToxicFrog: That's always great though. Means you can work on something else
19:52
<&McMartin>
What is the thing?
19:56
<&ToxicFrog>
McMartin: my project was `mo`, a command line tool for bulk tagging and renaming of music files
19:56
<&ToxicFrog>
The external version is `beets`
19:56
<@celticminstrel>
That sounds useful...
19:57
<@celticminstrel>
iTunes seems to sometimes randomly break its tags so that you can't change them anymore (mostly with album art).
19:57
<&[R]>
Oh nice, I wanted something like that
19:58 * celticminstrel finds it weird that ToxicFrog is speaking markdown on IRC though.
20:00
<&ToxicFrog>
celticminstrel: it's convenient to differentiate commands from other things even on nets that don't support markdown
20:00
<&ToxicFrog>
And since my client is also connected to discord and slack, which do, it's a good habit to get into
20:00
<@celticminstrel>
Still weird though.
20:02
<&[R]>
My one main complaint about markdown is that *this* is not bold.
20:02
<@celticminstrel>
But **this** is.
20:02
<@celticminstrel>
Still, it makes it weird when you want bold italic.
20:02
<@celticminstrel>
Which admittedly isn't very often though.
20:05
<&[R]>
Yeah, you want *__this__* **_this_* or some other mix of that.
20:06
<&[R]>
__this__ being bold is also weird
20:09
<@celticminstrel>
Yeah.
20:09
<&ToxicFrog>
On all the nets I'm on that use markdown-like syntax, they use * for bold and _ for underline or italic
20:09
<&ToxicFrog>
And ** basically doesn't get used
20:11
<&ToxicFrog>
Oh my word, it looks like beets also has a plugin that replaces my `mkmp3tree` script
20:23
<@macdjord>
[R]: That would actually make sense - cut down on false positives from, e.g., using a single trailing asterisk for a footnote.
20:24
<@macdjord>
[R]: Also, that link works fine for me (FF 68.0.2 64-bit on Win10)
20:34 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
20:35
<@celticminstrel>
My preference would be *bold* /italic/ _underline_ ~strikethru~
21:04 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
21:04 mode/#code [+o Reiv] by ChanServ
22:58 Degi [Degi@Nightstar-ve55hn.dyn.telefonica.de] has quit [Connection closed]
23:08 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Connection closed]
23:30
<@macdjord>
celticminstrel: For pseudo-styling, i.e. for indicating emphasis in plaintext to a human reader, I agree (though I prefer -strikethrough-). For machine-readable markup, though, single-asterisk and single-forwardslash are both used too often in other ways - footnotes and filepaths, respectively - to make good choices.
23:32
<@celticminstrel>
I can see what you mean there, yeah.
23:36 macdjord [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has quit [[NS] Quit: Live Long and Prosper.]
23:44 macdjord [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has joined #code
23:44 mode/#code [+o macdjord] by ChanServ
23:45 celticminstrel [celticminst@Nightstar-gil1m1.dsl.bell.ca] has quit [Connection closed]
23:45 celticminstrel [celticminst@Nightstar-gil1m1.dsl.bell.ca] has joined #code
23:45 mode/#code [+o celticminstrel] by ChanServ
23:45 * McMartin has been reminded of this wonderful stroke of evil. http://notanumber.net/archives/54/underhanded-c-the-leaky-redaction
23:48 Deraekon is now known as Derakon
23:52
<&ToxicFrog>
If you're using asterisks for footnotes rather than superscript numerals, get in the hell, imo
23:54
<&[R]>
If you're using them on *both sides* then you're just asking for it.
--- Log closed Mon Mar 12 00:00:41 2018
code logs -> 2018 -> Sun, 11 Mar 2018< code.20180310.log - code.20180312.log >

[ Latest log file ]