code logs -> 2018 -> Mon, 03 Dec 2018< code.20181202.log - code.20181204.log >
--- Log opened Mon Dec 03 00:00:14 2018
00:33
<&McMartin>
https://i.imgur.com/5DlqfCl.jpg
01:08
<&McMartin>
Oh hey
01:08 * McMartin finds an actually useful old library of his that he never actually properly published on an open-source repository.
01:08
<&McMartin>
I should probably get this back on the net
01:13 * Alek wonders if there's a tool to let a computer figure out dimensions of a simple object using focal information of the camera it's using to view the object.
01:15
<@Alek>
(a dick pic app that tells you the size as well. :P )
01:41 Kindamoody is now known as Kindamoody[zZz]
02:10
<@Reiv>
McMartin: Is it likely to be usefully up to date?
02:10
<@Reiv>
Or is this one of those repositories that isn't changing much
02:10
<&McMartin>
It is in need of a set of revisions
02:10
<&McMartin>
I wrote it in 2003 and have used it in a number of projects
02:10
<&McMartin>
The thing is, that at the moment it is in fact not online
02:11
<&McMartin>
So that needs fixing :)
02:11
<&McMartin>
It should however be updated so that it operates transparently with SDL2; that will make it actually useful as a bridging librar.
02:11
<&McMartin>
y
02:11
<&McMartin>
Keyboard input works significantly differently in SDL1 vs SDL2, and if you don't want to care about it this is the library I wrote to not care about it back then
02:12
<&McMartin>
It can be made more useful so that one may cease caring *even harder*
02:12
<&McMartin>
(Its most significant use out there right now is powering UQM's 'yeah, sure, use a keyboard or a joystick or whatever, I don't care' modes)
03:13
<@Reiv>
oh I see
03:33 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
03:39 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
04:09 macdjord|dance is now known as macdjord
04:55
<&McMartin>
Welp
04:55 * McMartin finishes evaluating all the work he did on that project, intermittently, between 2003 and 2018
04:55 * McMartin throws it all the fuck out
04:58
<&McMartin>
In some ways I'm better at this refactoring thing now
04:58
<&McMartin>
There's stuff that should change here but not the way I was changing it
05:08 Derakon is now known as Derakon[AFK]
05:09 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has quit [Ping timeout: 121 seconds]
05:13 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code
05:14 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
05:47
<&McMartin>
I have been doing the Advent of Code in C this year
05:47
<&McMartin>
I have this to say about that:
05:47
<&McMartin>
fscanf is cheaty
05:59 celticminstrel is now known as celmin|sleep
05:59
<@celmin|sleep>
Cheaty?
06:03
<&McMartin>
Usually a major fraction of an Advent of Code problem is parsing the input, which is usually pretty regular extremely inconsistent within a record
06:03
<&McMartin>
scanf basically gives you that for free
06:17
<&[R]>
I remember when learning C putting scanf on my "never use" list because of how it behaved when given input that didn't match the format it needed
06:17 * [R] forgets what the issue was though
06:22
<&McMartin>
It's an immediate abort
06:22
<&McMartin>
scanf is almost completely useless
06:22
<&McMartin>
But for text records of the form advent of code likes to use that only makes it even cheatier
06:24
<&McMartin>
Er
06:24
<&McMartin>
By abort I mean "it stops reading input and filling in values and returns how many fields it decoded"
06:24
<&McMartin>
At which point the file is not really in a usable state
06:24
<&McMartin>
There's nothing, formally, wrong with it, but you have no idea exactly where it stopped
06:24
<&McMartin>
It's also unwise to read strings with it for reasons similar to why gets is bad
06:24
<&McMartin>
But there is an extension format code that is 'malloc a string and read that'
07:23 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
07:53 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code
07:53 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
07:58 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
07:58 mode/#code [+o himi] by ChanServ
08:59 [R] [rstamer@genoce.org] has quit [Ping timeout: 121 seconds]
09:11 [R] [rstamer@Nightstar-d7h8ki.org] has joined #code
09:11 mode/#code [+ao [R] [R]] by ChanServ
10:36 Kindamoody[zZz] is now known as Kindamoody
11:24 Kindamoody is now known as Kindamoody|afk
12:18
<~Vorntastic>
Oh it's December and aoc is back
13:35 celmin|sleep is now known as celmin|away
15:35 Vash [Vash@Nightstar-sjaki9.res.rr.com] has joined #code
15:57 Kindamoody|afk is now known as Kindamoody
16:43 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
16:55 Vash [Vash@Nightstar-sjaki9.res.rr.com] has quit [The TLS connection was non-properly terminated.]
18:45 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
19:47 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
20:24 Degi [Degi@Nightstar-e015e0.dyn.telefonica.de] has joined #code
20:58 Degi [Degi@Nightstar-e015e0.dyn.telefonica.de] has quit [The TLS connection was non-properly terminated.]
20:59 Degi [Degi@Nightstar-e015e0.dyn.telefonica.de] has joined #code
21:43 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
21:43 mode/#code [+o himi] by ChanServ
21:58
<&McMartin>
Oh nice, OK
21:59
<&McMartin>
C99 Things That Are Good
21:59
<&McMartin>
scanf will let you use the format code %ms which actually mallocs the string for you
21:59
<@Tamber>
Oh, nice!
22:00
<&McMartin>
(That does of course mean that your corresponding argument must be a char ** instead of a char *)
23:27 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
23:33 Derakon[AFK] is now known as Derakon
23:40
<&McMartin>
OK, the Runner3 soundtrack does not make good coding music
23:40
<&McMartin>
Though precious little coding has gotten done today anyway, as today has been a "battle the build system" day
23:44
<@TheWatcher>
I have found myself using the EVE soundtrack as coding music of late
23:45
<@Reiv>
It's certainly good for dealing with spreadsheets for hours on end~
23:55 Degi [Degi@Nightstar-e015e0.dyn.telefonica.de] has quit [Connection closed]
--- Log closed Tue Dec 04 00:00:16 2018
code logs -> 2018 -> Mon, 03 Dec 2018< code.20181202.log - code.20181204.log >

[ Latest log file ]