--- Log opened Fri Aug 28 00:00:02 2020 |
00:23 | | Degi [Degi@Nightstar-cj95re.dyn.telefonica.de] has joined #code |
00:44 | | Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code |
00:46 | | Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
01:01 | | himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code |
01:01 | | mode/#code [+o himi] by ChanServ |
02:36 | | catalyst_ [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code |
04:52 | | Degi [Degi@Nightstar-cj95re.dyn.telefonica.de] has quit [Ping timeout: 121 seconds] |
04:57 | | Degi [Degi@Nightstar-11rrsv.dyn.telefonica.de] has joined #code |
05:02 | | celticminstrel [celticminst@Nightstar-8kptuo.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
05:13 | | catalyst_ [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [The TLS connection was non-properly terminated.] |
05:23 | | himi [sjjf@Nightstar-1drtbs.anu.edu.au] has quit [Ping timeout: 121 seconds] |
06:36 | | VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed] |
06:37 | | VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code |
06:37 | | mode/#code [+ao VirusJTG VirusJTG] by ChanServ |
08:01 | | Kindamoody[zZz] is now known as Kindamoody |
08:18 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code |
08:18 | | mode/#code [+qo Vorntastic Vorntastic] by ChanServ |
09:57 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code |
10:02 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds] |
10:09 | | Kindamoody is now known as Kindamoody|afk |
10:12 | | catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code |
12:17 | | catalyst_ [catalyst@Nightstar-34r6r5.dab.02.net] has joined #code |
12:18 | | catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Ping timeout: 122 seconds] |
12:20 | | catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code |
12:21 | | catalyst_ [catalyst@Nightstar-34r6r5.dab.02.net] has quit [Connection reset by peer] |
12:24 | | catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
12:24 | | catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code |
12:37 | < Kizor> | Okay, let's go over this one more time. |
12:39 | < Kizor> | in Java, primitives (such as int, boolean, double, float) are immutable. |
12:40 | < Kizor> | String is not a primitive, nor a wrapper for a primitive. It's just an object. |
12:40 | < Kizor> | It's also immutable. |
12:41 | < Kizor> | How would I go about checking whether an object is mutable or immutable? |
12:41 | <&[R]> | That's more a function of the implimentation, isn't it? |
12:44 | <&[R]> | As opposed to being an innate quality |
12:46 | < Kizor> | I... think so, yes. |
12:50 | <~Vorntastic> | Mutable objects have non-... Final? Variables |
12:50 | <~Vorntastic> | Never remember the word in Java |
12:51 | < Kizor> | I'm just thrown off that this changes how the object behaves in certain situations, I had no idea, and in fact I've potentially tripped over this before and had no idea what went wrong. |
12:52 | < Kizor> | (ie. see "Passing immutable object references" https://www.infoworld.com/article/3512039/does-java-pass-by-reference-or-pass-by-value.html ) |
12:54 | < Kizor> | So every time I use an object that someone else wrote, do I have to check if it's immutable, since that affects its behavior? |
12:58 | | celticminstrel [celticminst@Nightstar-8kptuo.dsl.bell.ca] has joined #code |
12:58 | | mode/#code [+o celticminstrel] by ChanServ |
12:59 | < Kizor> | And if I don't, how do I know that? |
13:03 | <~Vorntastic> | In general you don't need to "know", because the... Uh... |
13:04 | <~Vorntastic> | How do I even explain |
13:14 | <~Vorntastic> | Wow that site does not want me to look at that article |
13:24 | <~Vorntastic> | Now that I've seen what it's up to I have no idea how that's... Sane? No, that doesn't look like the thing I'd expect to happen with that code at all |
13:24 | <~Vorntastic> | (with the code where it changes Homer's age, that is) |
13:28 | <~Vorntastic> | Oh. No I can read. So... |
13:33 | <~Vorntastic> | You don't need to know, it doesn't matter, and the article is being confusing |
13:36 | <~Vorntastic> | 1. In no situation does assigning to a "top level" local variable or parameter - one you got without dots and is defined either within the function or passed in as part of its arguments - change what the rest of the program sees. |
13:40 | <~Vorntastic> | 2. While attributes of an object that isn't self can be assigned to and this does affect the outside world, they are generally private and you wouldn't normally be able to do that |
14:30 | <~Vorntastic> | Calling public methods on passed-in objects always works. If these methods mutate the object then that's what happens |
15:12 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code |
15:12 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
16:48 | | Kindamoody|afk is now known as Kindamoody |
17:00 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code |
17:06 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity] |
18:43 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
18:44 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code |
18:44 | | mode/#code [+o Reiv] by ChanServ |
18:48 | | bluefoxx [fuzzylombax@Nightstar-gmbj85.vs.shawcable.net] has quit [Ping timeout: 122 seconds] |
18:49 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
20:11 | <&[R]> | I'm looking for a way to convert an HTML page to a PDF in a scriptable fasion (I can guarantee an X server will be running if that ultimately is necessary). Any recomendations? |
20:13 | <&McMartin> | There is a tool called "pandoc". I imagine it could do something like HTML-to-Markdown-to-PDF or something in the worst case |
20:13 | <&[R]> | Note: the HTML page includes colors and tables and the like. I want it to look like the actual page was loaded in a web-browser. |
20:13 | <&[R]> | pandoc's intermediate format is a markdown-like, does that handle tables and background colors? |
20:15 | <&McMartin> | I don't know. MD itself definitely includes tables and images, but I'm less sure about color data. |
20:15 | <&McMartin> | The most direct approach of course is to have a print driver that produces PDF and literally have a web browser "print" it. |
20:15 | <&McMartin> | Or have it print to a generic postscript printer that is actually a file output and then run that through ps2pdf. |
20:15 | <&McMartin> | But that does mean you need a browser that's scriptable enough to let you print pages once they load and not before. |
20:17 | <&[R]> | Got suggested wkhtmltopdf elsewhere, and it does what's needed :) |
20:17 | <&[R]> | (They actually suggested using pandoc to call wkhtmltopdf, but that seemed silly given it's clearly what's doing the actual work) |
20:17 | <&McMartin> | Sounds good |
20:18 | <@abudhabi> | Today I realized what a terrible pun JS developers made when they named the event that triggers when an element loses focus. |
20:22 | <&[R]> | Oh? |
20:23 | <&[R]> | Oh wow, running it through pandoc instead does strip everthing I wanted it to keep (using wkhtmltopdf) |
20:23 | <&McMartin> | Looking up pandoc more carefully pandoc has a minimalist IR, yeah. |
20:24 | <&McMartin> | ALso trying to look up pandoc kept trying to send me back to the Pandocs, the master informal documentation for the original Game Boy. |
20:24 | <&[R]> | Yeah, that's what made looking this up myself somewhat frustrating |
20:25 | <@abudhabi> | [R]: In optics, when you lose focus, the image becomes blurred. In JS, an element has 'focus' which is something quite different than in optics, but the event that fires if you lose it, is "onBlur" anyway. Hence the pun. |
20:25 | <&[R]> | Looking into it everyone was like "use pandoc" and a cursory look into pandoc made me think it wouldn't keep the formatting |
20:25 | <&[R]> | Ah |
21:07 | | * Vornicus eyes |
21:07 | <~Vornicus> | okay so |
21:08 | <~Vornicus> | I'm setting up a testing rig that will try my code against various versions of lua |
21:09 | <~Vornicus> | so I've got a batch file that runs them all. All is well, except that running luajit specifically halts execution of the batch script immediately |
21:16 | <~Vornicus> | https://imgur.com/CBf3HS2 |
21:24 | | * Vornicus figures out it has something to do with whatever the hell the command script that was the recommended way of talking to it was, cuts out the middle man |
21:29 | <~Vornicus> | well, anyway. rig works, let's do this |
22:30 | | catalyst_ [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code |
22:30 | | catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Connection reset by peer] |
22:40 | < catalyst_> | I have a second user on crates.io :D |
22:40 | <&ToxicFrog> | \o/ |
22:40 | < catalyst_> | and I've just passed 11,000 downloads |
22:40 | < catalyst_> | and I feel really good about this |
23:36 | <&McMartin> | What does "second user" mean here? |
23:38 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds] |
--- Log closed Sat Aug 29 00:00:03 2020 |