code logs -> 2018 -> Sun, 11 Feb 2018< code.20180210.log - code.20180212.log >
--- Log opened Sun Feb 11 00:00:55 2018
00:05
<&ToxicFrog>
Hmm.
00:06
< Jessikat>
mmh
00:07
<&ToxicFrog>
I need to create something that participates in the Lanterna GUI class heirarchy, but also has state and supports additional operations not in the Lanterna interfaces like row hilighting.
00:07
<&ToxicFrog>
I think I have four options here, and I'm not sure which is best:
00:07
<&ToxicFrog>
- gen-class, inherit lanterna.gui2.Panel and add my own methods;
00:08
<&ToxicFrog>
- proxy, pass an atom containing the state, overload .draw to update hilighting on the children based on the state, no new methods;
00:09
<&ToxicFrog>
- definterface and proxy, define an interface for new methods and then implement it;
00:10
<&ToxicFrog>
- or just instantiate Panel, wrap it in a map that also contains the other state I need, write some library functions that can manipulate it and manually extract the underlying Panel wherever I need it.
00:11
<&ToxicFrog>
Now that I've written this all out, I'm leaning towards #2; then I can just swap! or reset! the atom and all the UI elements looking at it will update their rendering accordingly on the new draw pass.
00:12
<&ToxicFrog>
It means I need to figure out said rendering "from scratch" each time but I'm ok with that.
01:36 symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has quit [Connection closed]
01:37 symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has joined #code
01:46
<&[R]>
https://github.com/clong/MakeWindows10GreatAgain
01:50
<@celticminstrel>
Heh.
01:50
<@celticminstrel>
I actually deleted the Windows Update service altogether because I couldn't figure out how to disable it.
01:51
<@celticminstrel>
(It required an administrator command prompt.)
01:51
<&[R]>
Can't you get one of those from right-click-start-menu
01:51
<&[R]>
?
02:10
< Jessikat>
winkey + X is the best thing
02:10
<&[R]>
What's it do?
02:10
< Jessikat>
brings up a menu with a bunch of poweruser options
02:11
<&[R]>
O.o
02:11
< Jessikat>
quick links to device manager, disk management, powershell, event viewer, etc
02:13
<&[R]>
Nice
02:16 Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Connection closed]
02:22 Jessikat [Jessikat@Nightstar-41u698.dab.02.net] has joined #code
02:28
<~Vornicus>
oh neat
02:31 Degi [Degi@Nightstar-5i2q2v.dyn.telefonica.de] has quit [Connection closed]
02:31 Degi [Degi@Nightstar-5i2q2v.dyn.telefonica.de] has joined #code
03:12
<&McMartin>
Wow, nice. TIL.
03:23 Vornlicious [Vorn@Nightstar-3c5cuh.sub-174-211-3.myvzw.com] has joined #code
03:26 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
04:18 Degi [Degi@Nightstar-5i2q2v.dyn.telefonica.de] has quit [Connection closed]
04:30 Vornlicious [Vorn@Nightstar-3c5cuh.sub-174-211-3.myvzw.com] has quit [The TLS connection was non-properly terminated.]
04:59 Vorntastic [Vorn@Nightstar-3c5cuh.sub-174-211-3.myvzw.com] has joined #code
05:07 Derakon is now known as Derakon[AFK]
05:15 Vorntastic [Vorn@Nightstar-3c5cuh.sub-174-211-3.myvzw.com] has quit [[NS] Quit: Bye]
05:15 Vorntastic [Vorn@Nightstar-60o.3mj.149.47.IP] has joined #code
05:16 Vornlicious [Vorn@Nightstar-3c5cuh.sub-174-211-3.myvzw.com] has joined #code
05:19 Vorntastic [Vorn@Nightstar-60o.3mj.149.47.IP] has quit [Ping timeout: 121 seconds]
05:31 mac is now known as macdjord|slep
05:32 [ [art@Nightstar-lbl.59v.61.68.IP] has quit [Ping timeout: 121 seconds]
05:33 [ [art@Nightstar-lbl.59v.61.68.IP] has joined #code
05:40 Vornlicious [Vorn@Nightstar-3c5cuh.sub-174-211-3.myvzw.com] has quit [[NS] Quit: Bye]
05:52 Vorntastic [Vorn@Nightstar-3c5cuh.sub-174-211-3.myvzw.com] has joined #code
06:36 Jessikat` [Jessikat@Nightstar-vha0r4.dab.02.net] has joined #code
06:38 Jessikat [Jessikat@Nightstar-41u698.dab.02.net] has quit [Ping timeout: 121 seconds]
06:57 symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has quit [Connection closed]
06:58 symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has joined #code
07:15 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
07:16 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
07:16 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
07:40 Jessikat` is now known as Jessikat
07:47 celticminstrel is now known as celmin|sleep
08:40 Kindamoody[zZz] is now known as Kindamoody
08:41 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection closed]
08:41 Kindamoody[zZz] [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
08:41 mode/#code [+o Kindamoody[zZz]] by ChanServ
08:49 Kindamoody[zZz] is now known as Kindamoody
09:58 symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has quit [Connection closed]
09:58 symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has joined #code
10:04 symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has quit [Ping timeout: 121 seconds]
10:13 symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has joined #code
10:14 symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has quit [Connection closed]
11:54 Degi [Degi@Nightstar-5i2q2v.dyn.telefonica.de] has joined #code
12:13 Degi_ [Degi@Nightstar-5i2q2v.dyn.telefonica.de] has joined #code
12:17 Degi [Degi@Nightstar-5i2q2v.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
13:06 Jessikat` [Jessikat@Nightstar-th92rg.dab.02.net] has joined #code
13:10 Jessikat [Jessikat@Nightstar-vha0r4.dab.02.net] has quit [Ping timeout: 121 seconds]
14:36 Kindamoody is now known as Kindamoody|afk
15:02 Vorntastic [Vorn@Nightstar-3c5cuh.sub-174-211-3.myvzw.com] has quit [The TLS connection was non-properly terminated.]
15:08 Vorntastic [Vorn@Nightstar-3c5cuh.sub-174-211-3.myvzw.com] has joined #code
15:45 Vorntastic [Vorn@Nightstar-3c5cuh.sub-174-211-3.myvzw.com] has quit [[NS] Quit: Bye]
15:45 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
15:46 Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
15:57 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
16:00 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
16:00 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:37 Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving]
16:48 celmin|sleep is now known as celticminstrel
16:54 Degi [Degi@Nightstar-5i2q2v.dyn.telefonica.de] has joined #code
16:56 Degi_ [Degi@Nightstar-5i2q2v.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
18:12
<&[R]>
Ughh I wish ssh-agent wasn't such a pain to get working with multiple terminals
19:08 Kindamoody|afk is now known as Kindamoody
19:11 Degi [Degi@Nightstar-5i2q2v.dyn.telefonica.de] has quit [Connection closed]
19:15 Derakon[AFK] is now known as Derakon
19:36 Jessikat [Jessikat@Nightstar-ugrehj.dab.02.net] has joined #code
19:39 Jessikat` [Jessikat@Nightstar-th92rg.dab.02.net] has quit [Ping timeout: 121 seconds]
19:39 Jessikat` [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
21:36 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Client exited]
21:39 Kindamoody|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
21:39 mode/#code [+o Kindamoody|autojoin] by ChanServ
21:39 Kindamoody|autojoin is now known as Kindamoody
21:49 Degi [Degi@Nightstar-5i2q2v.dyn.telefonica.de] has joined #code
23:11 Degi [Degi@Nightstar-5i2q2v.dyn.telefonica.de] has quit [Connection closed]
23:12 * ToxicFrog stores (effectively) a tty image as an unordered map from coordinate pairs to contents, iterates it into an API that expects image data in row-major order, briefly wonders why the screen is incomprehensible garbage
23:21
<&[R]>
Gotta love Python's unordered maps
23:30
<&ToxicFrog>
s/python's/everyone/
23:31
<&ToxicFrog>
I specified "unordered" because I'm using C++ a lot at work and for some reason the standard mandated implementation of std::map is ordered.
23:31
<&ToxicFrog>
What I'm using here is Clojure.
23:33 Jessikat` [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Connection closed]
23:35 Kindamoody is now known as Kindamoody[zZz]
23:36
<&McMartin>
ToxicFrog: The "some reason" there is that it was deemed more reasonable to demand operator< make sense than to introduce some kind of universally-sensible hash function that would conflict with everyone's already-existing hash functions.
23:36
<&McMartin>
Then in C++11 they remembered that namespaces exist and std::unordered_map now exists.
--- Log closed Mon Feb 12 00:00:57 2018
code logs -> 2018 -> Sun, 11 Feb 2018< code.20180210.log - code.20180212.log >

[ Latest log file ]