<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[00:03:48] ⇦ Quits: Lucifer (Lucifer!sid32492@id-32492.brockwell.irccloud.com) (Ping timeout: 180 seconds)
L2[00:04:02] ⇨ Joins: dmod (dmod!sid32492@id-32492.brockwell.irccloud.com)
L3[00:04:45] ⇨ Joins: Lucifer (Lucifer!sid32492@id-32492.brockwell.irccloud.com)
L4[00:04:48] ⇦ Quits: modmuss50 (modmuss50!sid42264@id-42264.charlton.irccloud.com) (Ping timeout: 180 seconds)
L5[00:04:48] ⇦ Quits: Teris (Teris!uid315557@id-315557.stonehaven.irccloud.com) (Ping timeout: 180 seconds)
L6[00:07:05] ⇨ Joins: Teris (Teris!uid315557@id-315557.stonehaven.irccloud.com)
L7[00:07:24] ⇨ Joins: modmuss50 (modmuss50!sid42264@id-42264.charlton.irccloud.com)
L8[00:15:48] ⇦ Quits: brandon3055 (brandon3055!~Brandon@ip192.ip-139-99-140.net) (Ping timeout: 183 seconds)
L9[00:16:42] ⇨ Joins: brandon3055 (brandon3055!~Brandon@ip192.ip-139-99-140.net)
L10[01:12:28] <Forecaster> python should be able to execute native programs right?
L11[01:20:20] <ben_mkiv> %choose now or never
L12[01:20:21] <MichiBot> ben_mkiv: I'm 40% never!
L13[01:26:35] ⇨ Joins: Doty1154 (Doty1154!~Doty1154@c-71-202-22-167.hsd1.ca.comcast.net)
L14[01:31:45] <CompanionCube> Forecaster: native?
L15[01:32:53] <Forecaster> I have a windows "server" (actually win10) hosting my plex library, it has a batch script that updates symlinks for the tv-show library
L16[01:33:03] <Forecaster> I want to be able to run that without having to remote control the server
L17[01:33:23] <Izaya> pretty sure it's just
L18[01:33:31] <Izaya> system("path/to/executable/or/whatever")
L19[01:43:04] <Forecaster> then I should be able to set up a python web service on it and use that to run the script
L20[01:43:42] <Izaya> you could probably get the server to just directly run the batch script tbh
L21[01:49:04] <Forecaster> I looked into running the script remotely natively but it was a pain
L22[02:02:13] ⇦ Quits: ben_mkiv (ben_mkiv!~ben_mkiv@p5b16eeee.dip0.t-ipconnect.de) (Remote host closed the connection)
L23[02:21:13] ⇦ Quits: Doty1154 (Doty1154!~Doty1154@c-71-202-22-167.hsd1.ca.comcast.net) (Read error: -0x1: UNKNOWN ERROR CODE (0001))
L24[04:41:51] ⇨ Joins: Vexatos (Vexatos!~Vexatos@p200300C1071F9D4234FF716B5FFDAA5E.dip0.t-ipconnect.de)
L25[04:41:51] zsh sets mode: +v on Vexatos
L26[04:57:35] <Forecaster> %loot
L27[04:57:36] <MichiBot> Forecaster: You get a loot box! It contains eye of newt.
L28[05:10:48] <Kodos> You've heard of alphabet soup, now get ready for Times New Ramen :brucecHellYa:
L29[05:11:09] <Vexatos> %loot
L30[05:11:09] <MichiBot> Vexatos: You get a loot box! It contains a broken .gif.
L31[05:11:13] <Vexatos> :<
L32[05:11:15] <Vexatos> %loot
L33[05:11:15] <MichiBot> Vexatos: You get a loot box! It contains a bottle filled with concrete.
L34[05:11:17] <Vexatos> :>
L35[05:11:45] <Kodos> %loot
L36[05:11:45] <MichiBot> Kodos: You get a loot box! It contains a pecan pie.
L37[05:11:49] <Kodos> Ooooh
L38[05:13:30] <Lizzian> %loot
L39[05:13:31] <MichiBot> Lizzian: You get a loot box! It contains a raspberry pi that only beeps at you.
L40[05:14:50] <Lizzian> hmm, but does it only beep at *me* or *only* beep at me?
L41[05:15:45] <Forecaster> they're vague on purpose :P
L42[05:16:18] <Forecaster> hm, starting http.server was simple enough
L43[05:16:28] <Forecaster> but what does it do and where does it run from...
L44[05:18:56] <Forecaster> oh, the root is apparently my user dir...
L45[05:18:58] <Forecaster> huh
L46[05:19:51] <Forecaster> now, does it execute an index file if it's a python file
L47[05:21:36] <Forecaster> no...
L48[05:21:42] <Forecaster> well okay then...
L49[05:21:45] <Izaya> I thought http.server was just a really dumb HTTP server
L50[05:21:58] <Forecaster> it appears to be quite dumb yes
L51[05:22:55] <Forecaster> but I was hoping it'd at least execute python files
L52[05:24:18] <Forecaster> it seems I may have to actually implement it to get that functionality
L53[05:24:56] <Forecaster> I just ran it with `python -m http.server [port]`
L54[05:34:00] ⇨ Joins: Inari (Inari!~Pinkishu@84.175.255.77)
L55[05:36:04] <Lizzian> yeah, the base is very limited
L56[05:36:27] <Forecaster> found a few scripts but they don't work very well
L57[05:38:25] <Inari> Boob morning!
L58[05:38:36] <Inari> AmandaC: Hehe
L59[05:38:44] <Corded> * <Lizzian> wishes she had boobs
L60[05:39:15] <Forecaster> allright, here we go
L61[05:39:19] <Forecaster> found something that works
L62[05:39:29] <Forecaster> now to run my update script from it
L63[05:39:40] <Forecaster> how do I run a script from within a script?
L64[05:40:37] <Forecaster> import I guess
L65[05:41:36] <Lizzian> err, you could either import it and then run a function from it, or use the `subprocess` module to run it like you were running it from the shell
L66[05:42:33] <Forecaster> where does import look?
L67[05:42:40] <Forecaster> or can I give it an absolute path?
L68[05:43:13] <Lizzian> it looks in the current directory, then along the python path env var
L69[05:43:29] <Forecaster> ah, so I'd have to put the files together
L70[05:43:34] <Lizzian> you can add a custom entry to the path, i think using `sys.path`
L71[05:43:46] <Forecaster> I can run the http script from anywhere so that should be fine
L72[05:44:33] <Lizzian> yeah, `sys.path.append(os.path.abspath(PATH_TO_CONTAINING_FOLDER_GOES_HERE))` and then just `import MODNAME`
L73[05:44:48] <Lizzian> (being sure to include `sys` and `os` of course
L74[05:47:18] <Forecaster> can I just put the script in a function like `def main():` and then call PlexLibraryUpdater.main() from the web script?
L75[05:47:41] <Forecaster> can I just put the script in a function like `def main():` and then call `PlexLibraryUpdater.main()` from the web script? [Edited]
L76[05:48:52] <Lizzian> errr, you can i guess
L77[05:49:13] <Forecaster> what else would I do?
L78[05:49:40] <Forecaster> the script doesn't have functions, it just runs
L79[05:49:52] <Lizzian> ah
L80[05:52:14] <Lizzian> in that case, put all the code in a function like `main()` or whatever. then at the bottom of the script, do
L81[05:52:14] <Lizzian> Code Block pastebined https://paste.pc-logix.com/oseneposaw
L82[05:52:14] <Lizzian> and then from your web script, you'd call `PlexLibaryUpdater.main()` (or whatever you called the function). that then allows you to call it from the web script and still allows you to run it manually if you wish
L83[05:52:46] <Forecaster> what does that bit do?
L84[05:52:56] <Forecaster> what does that bit do?
L85[05:53:34] <Forecaster> uh, not sure how that doubled... but okay
L86[05:54:01] <Lizzian> when you run a script directly with the interpreter, the magic variable `__name__` is set to `__main__`, when it's imported, `__name__` will be something like `PlexLibraryUpdater`
L87[05:54:11] <Forecaster> ah
L88[05:55:20] <Forecaster> alright, lets try this
L89[05:56:02] <Forecaster> oh
L90[05:56:03] <Forecaster> woops
L91[05:56:57] <Forecaster> accidentally ran one that just imported the unmodified script, causing it to run immediately, then it started the webserver
L92[06:00:58] <Lizzian> lol
L93[06:14:13] <Forecaster> http://tinyurl.com/ya7mub5m
L94[06:14:16] <Forecaster> dan.
L95[06:15:42] <Lizzian> ah, yeah
L96[06:15:49] <Lizzian> that can be a problem
L97[06:16:41] <Lizzian> might be worth sending back some data then running the function
L98[06:17:12] <Forecaster> ah
L99[06:17:46] <Forecaster> that means I can't send the output back though does it?
L100[06:18:03] <Lizzian> not directly
L101[06:18:32] <Lizzian> i'm not sure if there's a http code that tells the browser to "hold on" and wait for more data
L102[06:18:34] <Forecaster> it is sending the headers immediately by the way
L103[06:18:57] <Forecaster> http://tinyurl.com/ydxtnf7k
L104[06:20:26] <Lizzian> hmm, depending on how `plexlibraryupdate.main` sends messages back, you could pass in the `self.wfile` to that `main()` function and then have it write the data straight to the socket thus keeping it open
L105[06:21:45] <Lizzian> though i think the issue is that when you run `PlexLibaryUpdater.main()` it's not spawning a new thread so locks up the webserver and prevents it from responding to keep-alive requests
L106[06:21:57] <Forecaster> ah
L107[06:22:14] <Forecaster> I can try passing the self write
L108[06:22:41] <Forecaster> wfile*
L109[06:22:50] <Lizzian> yeah, that _may_ work
L110[06:22:57] <Lizzian> though don't quote me on that
L111[06:23:34] <Forecaster> how do I set a parameter to default to null or equivalent?
L112[06:23:50] <Forecaster> =null doesn't work
L113[06:24:05] <Lizzian> that's because null isn't a thing in python. use `None`
L114[06:24:26] <Forecaster> hence the "or equivalent" :P
L115[06:24:30] <Lizzian> like `def myfunction(requiredParam, optionalParam=None)`
L116[06:24:32] <Forecaster> I've never needed null before now
L117[06:24:57] <Forecaster> yeah that's what I tried to do, but with null :P
L118[06:25:18] <Forecaster> IDEA complained but didn't provide an alternative
L119[06:26:02] <Inari> Well, enough Symfony head bashing for today
L120[06:26:27] <Forecaster> or is it enough
L121[06:28:00] <Forecaster> hm, it still timed out
L122[06:28:00] <Forecaster> dangit
L123[06:28:06] <Forecaster> ah well
L124[06:28:25] <Forecaster> most of the time I shouldn't need to see the output, unless something goes wrong
L125[06:29:05] <Forecaster> I guess I could write the output to a file and link to it...
L126[06:29:16] <Forecaster> but then I'll need to make the webserver handle that as well
L127[06:31:12] <Lizzian> the only way you'd be able to have it done "dynamically" would be to have the initial request spawn a seperate thread to run the updating script in, then send back a complete request which has some Js in it to send `AJAX` requests to a different endpoint that prints out the output to the browser as soon as it gets it
L128[06:32:07] <Lizzian> though that's probably a little overkill for what you need
L129[06:33:15] <Forecaster> ...
L130[06:33:18] <Forecaster> it's something else
L131[06:33:40] <Forecaster> Code Block pastebined https://paste.pc-logix.com/emiluruvoq
L132[06:33:45] <Forecaster> I'm doing this currently
L133[06:33:52] <Forecaster> it's just timing out
L134[06:34:00] <Forecaster> on the remote
L135[06:34:09] <Forecaster> and it never prints "Update request etc" to the console
L136[06:34:31] <Forecaster> it works fine locally
L137[06:34:36] <Forecaster> but not over the network
L138[06:34:37] <Lizzian> hmm
L139[06:34:46] <Lizzian> wait
L140[06:34:54] <Lizzian> `server_address = ('127.0.0.1', 1113)`
L141[06:34:59] <Forecaster> oh
L142[06:34:59] <Lizzian> look at the ip there
L143[06:35:39] <Forecaster> so if I set that to the machine ip it'll work remotely, but stop working locally then
L144[06:36:18] <Lizzian> set it to `0.0.0.0` (unless you have it facing externally, in which case either don't do that or don't forward `1113` outside
L145[06:36:35] <Forecaster> it only needs to work on the network
L146[06:37:30] <Lizzian> well, `0.0.0.0` will make it work both via localhost.
L147[06:37:32] <Forecaster> okay great, now it runs
L148[06:37:42] <Forecaster> now lets try outputting again I guess
L149[06:38:01] <Lizzian> if you set the address to the machine IP, you'll just have to use that when your on the server itself
L150[06:39:04] <Forecaster> yeah, but if I'm on the server I can just run the updater directly too
L151[06:39:29] <Forecaster> okay, regular output (first method) still doesn't work
L152[06:39:40] <Forecaster> lets try passing the wfile again
L153[06:41:04] <Lizzian> if that doesn't work, then maybe calling `wfile.flush()` after the writes will keep data going through for it to not timeout
L154[06:43:59] <Forecaster> hm, yeah, lets try that...
L155[06:45:04] <Forecaster> nope
L156[06:45:07] <Forecaster> dang
L157[06:45:11] <Lizzian> i'm not sure if that will work 100% though because i'm not sure how the HTTPserver handles stuff internally
L158[06:45:14] <Lizzian> ah
L159[06:47:32] <Forecaster> oh... I'm dumb, I accidentally stepped back too far and undid the ip change -_-
L160[06:47:41] <Forecaster> ugh
L161[06:48:22] <Forecaster> okay now it works
L162[06:48:31] <Forecaster> :|
L163[06:48:37] <Corded> * <Forecaster> headdesks
L164[06:49:50] <Lizzian> lol
L165[06:51:26] <Forecaster> yep, works perfectly now
L166[06:51:28] <Forecaster> thanks :P
L167[06:55:39] <Lizzian> np
L168[06:59:39] <Forecaster> great, means I don't have to remote into the server just to run that script anymore
L169[06:59:59] <Forecaster> since I modify the files over network attached storage
L170[07:57:45] <Inari> https://twitter.com/rinponconure/status/1034770104217563136 tasty
L171[07:57:45] <MichiBot> Wed Aug 29 06:49:52 CDT 2018 @rinponconure: 豚ヒレ肉を低温調理機で調理したよ!下味は塩だけ! <https://t.co/7Y4M3mC1Z0&gt;
L172[07:59:02] <Forecaster> spam?
L173[08:03:21] <Inari> "I cooked pork fillet with a cold cooking machine! Season's only Salt!"
L174[08:03:34] <Inari> So unlss I'm missing some cold cooking method I guess slow/sous-vide cooked pork fllet with salt
L175[08:12:45] ⇨ Joins: Thutmose (Thutmose!~Patrick@host-69-59-79-181.nctv.com)
L176[08:23:04] ⇦ Quits: Vexatos (Vexatos!~Vexatos@p200300C1071F9D4234FF716B5FFDAA5E.dip0.t-ipconnect.de) (Ping timeout: 190 seconds)
L177[08:36:49] ⇨ Joins: Vexatos (Vexatos!~Vexatos@p200300C1071F9D75B4B63FF6605CF86D.dip0.t-ipconnect.de)
L178[08:36:49] zsh sets mode: +v on Vexatos
L179[09:05:26] ⇨ Joins: xarses_ (xarses_!~xarses@c-67-180-86-164.hsd1.ca.comcast.net)
L180[09:05:45] <Forecaster> %loot
L181[09:05:45] <MichiBot> Forecaster: You get a loot box! It contains a butterfly.
L182[09:05:54] <Corded> * <Forecaster> lets it out
L183[09:07:32] ⇦ Quits: xarses (xarses!~xarses@c-67-180-86-164.hsd1.ca.comcast.net) (Ping timeout: 190 seconds)
L184[09:09:16] <Inari> %loot
L185[09:09:16] <MichiBot> Inari: You get a loot box! It contains an empty post-it note.
L186[09:09:27] * Inari scribbles COBOL onto it
L187[09:09:34] <Inari> Hrm
L188[09:09:45] <Inari> I wonder if any of those Kata/Practice/Exercise code sites thingies support COBOL
L189[09:27:37] <Forecaster> https://notalwaysright.com/getting-the-nowledge/65950/
L190[09:27:49] <Forecaster> that's... terrible
L191[09:30:19] <Izaya> warning: 36MB webm
L192[09:30:21] <Izaya> https://my.mixtape.moe/phdbhz.webm
L193[09:51:17] ⇦ Quits: LePlaYa (LePlaYa!~jesse@krul.finf.uni-hannover.de) (Ping timeout: 190 seconds)
L194[10:04:24] ⇨ Joins: baschdel (baschdel!~baschdel@2a01:5c0:18:a781:7093:79e0:3a62:1ca3)
L195[10:06:18] ⇨ Joins: LePlaYa (LePlaYa!~jesse@krul.finf.uni-hannover.de)
L196[10:24:01] <Inari> Today in WebDesign
L197[10:24:06] <Inari> How to make me not read your blog
L198[10:24:07] <Inari> https://r.je/mvc-in-php.html
L199[10:29:53] <Forecaster> Is it being named Butler?
L200[10:45:40] <AmandaC> Inari: gods that's disorientating
L201[10:49:08] <Inari> AmandaC: yeah
L202[10:49:12] <Inari> makes me feel nauseious xD
L203[10:58:06] <AmandaC> %choose listen or no
L204[10:58:06] <MichiBot> AmandaC: You'll want to go with no.
L205[11:00:02] ⇨ Joins: Cervator (Cervator!~Thunderbi@2601:4c1:4001:1d5d:d9f1:398e:11c4:effd)
L206[11:04:19] ⇦ Quits: brandon3055 (brandon3055!~Brandon@ip192.ip-139-99-140.net) (Ping timeout: 190 seconds)
L207[11:05:43] ⇨ Joins: brandon3055 (brandon3055!~Brandon@ip192.ip-139-99-140.net)
L208[11:09:57] <Brisingr Aerowing> @NotInari WTF is that layout?
L209[11:11:29] <AmandaC> Inari: I feel like it'd not be as bad if the content was rotated along with the "sheet" but that's probably much harder
L210[11:12:02] <AmandaC> ( I assume it's meant to be a bunch of sheets of paper that fell all over the floor )
L211[11:14:48] ⇦ Quits: Renari (Renari!~Renari@75.97.175.72.res-cmts.bgr.ptd.net) (Ping timeout: 180 seconds)
L212[11:16:24] ⇦ Quits: Kodos (Kodos!~Kodos@23.251.27.246) (Read error: Connection reset by peer)
L213[11:16:44] <Inari> Wow
L214[11:16:52] <Inari> I change my Discord nick to NotInari and people still manage to ping me
L215[11:19:42] <AmandaC> %choose tech or listen to mythology
L216[11:19:43] <MichiBot> AmandaC: You *could* do tech, I guess.
L217[11:19:46] <AmandaC> :(
L218[11:20:29] <AmandaC> meh, no energy for tech. Just spent an hour or three trying to figure out why 3d graphics weren't working under Steam Play
L219[11:23:16] <AmandaC> "The creature this time is the reason you should run for your life, the next time you see a puddle"
L220[11:33:04] <baschdel> %choose configure SQL Server or watch animie
L221[11:33:04] <MichiBot> baschdel: configure SQL Server is for cool kids!
L222[11:33:21] <Forecaster> it is indeed, MichiBot
L223[11:33:41] <baschdel> I guess that means watch animie ... :D
L224[11:34:10] <Forecaster> :P
L225[11:35:03] <Forecaster> https://youtu.be/5uIydt134yQ
L226[11:35:04] <MichiBot> Elite Dangerous - Massive Guardian Space Beacons Discovered! Chapter Three | length: 6m 17s | Likes: 918 Dislikes: 14 Views: 18,325 | by ObsidianAnt | Published On 28/8/2018
L227[11:35:17] <Izaya> yup
L228[11:35:34] <Izaya> Forecaster: did you hear the Gnosis is going to be jumping into permit-locked space?
L229[11:35:51] <Forecaster> no
L230[11:36:29] <Forecaster> why is it doing that?
L231[11:37:27] <Izaya> exploration
L232[11:38:12] <Forecaster> you mean there's unexplored permit-locked space?
L233[11:38:32] <Izaya> yeah
L234[11:40:06] <Izaya> https://forums.frontier.co.uk/showthread.php/442522-***Attention-Explorers***-GNOSIS-Jumps-planned-THROUGH-a-permit-Lock-!
L235[11:40:15] <Izaya> Apparently one can expect lots of Thargoids also
L236[11:40:31] <Forecaster> neat...
L237[11:40:41] <Forecaster> I should get set up and get onboard
L238[11:41:06] <Izaya> you have about uh
L239[11:41:09] <Izaya> 15 hours?
L240[11:41:18] <Izaya> and it's about 1k ly from the bubble presently
L241[11:41:19] <Forecaster> oh, damn
L242[11:41:26] <Izaya> after 15 hours it'll be 1.5k ly from the bubble
L243[11:41:41] <Forecaster> I should be able to get there
L244[11:41:57] <Forecaster> I need to move voice attack over to my TV-pc
L245[11:42:13] <Izaya> https://forums.frontier.co.uk/showthread.php/443772-Going-to-the-Gnosis-What-ship-are-you-taking-with-you?p=6958427#post6958427
L246[11:49:07] ⇨ Joins: Backslash (Backslash!~Backslash@ip-88-153-113-13.hsi04.unitymediagroup.de)
L247[11:53:27] <Forecaster> I'm 55 jumps out
L248[11:54:27] <Izaya> It's a bit of a hike.
L249[11:54:37] <Forecaster> eh, not really
L250[12:04:57] ⇦ Quits: Vexatos (Vexatos!~Vexatos@p200300C1071F9D75B4B63FF6605CF86D.dip0.t-ipconnect.de) (Quit: Insert quantum chemistry joke here)
L251[12:06:43] ⇨ Joins: Vexatos (Vexatos!~Vexatos@p200300C10725E91245803480DB93B5AF.dip0.t-ipconnect.de)
L252[12:06:43] zsh sets mode: +v on Vexatos
L253[12:13:22] <Forecaster> you know what'd be handy
L254[12:13:25] <Forecaster> fuel harvesting drones
L255[12:24:01] <Inari> %loot
L256[12:24:01] <MichiBot> Inari: You get a loot box! It contains a picture of a crudely drawn appendage.
L257[12:28:45] ⇨ Joins: bob (bob!~bob@216-58-43-50.cpe.distributel.net)
L258[12:30:26] ⇦ Quits: bob (bob!~bob@216-58-43-50.cpe.distributel.net) (Quit: bob)
L259[12:58:32] <Forecaster> 23 jumps left!
L260[13:10:42] ⇨ Joins: begad99 (begad99!~begad99@51.252.214.152)
L261[13:10:51] ⇦ Quits: begad99 (begad99!~begad99@51.252.214.152) (Client Quit)
L262[13:35:17] <Inari> Thats Exapunks done. Well at least the story, still gotta go back and optimize at some point.
L263[13:35:30] <Forecaster> I've arrived
L264[13:35:34] <Forecaster> http://tinyurl.com/yboys2mj
L265[13:35:37] <Forecaster> white star
L266[13:45:53] ⇨ Joins: Doty1154 (Doty1154!~Doty1154@c-71-202-22-167.hsd1.ca.comcast.net)
L267[13:52:12] ⇦ Quits: Doty1154 (Doty1154!~Doty1154@c-71-202-22-167.hsd1.ca.comcast.net) (Quit: Leaving)
L268[13:56:59] <Forecaster> I've arrived
L269[13:57:00] <Forecaster> http://tinyurl.com/y95kg2pu
L270[13:57:22] ⇨ Joins: Doty1154 (Doty1154!~Doty1154@c-71-202-22-167.hsd1.ca.comcast.net)
L271[13:59:23] <Kodos> Please kill me
L272[13:59:39] <Kodos> On hold with the dhs for three hours and change
L273[14:00:15] <MGR> Oof
L274[14:00:37] <Forecaster> I've docked :D
L275[14:00:42] <Forecaster> departure in 11 hours
L276[14:06:02] ⇦ Quits: Doty1154 (Doty1154!~Doty1154@c-71-202-22-167.hsd1.ca.comcast.net) (Read error: -0x1: UNKNOWN ERROR CODE (0001))
L277[14:08:45] ⇨ Joins: Doty1154 (Doty1154!~Doty1154@c-71-202-22-167.hsd1.ca.comcast.net)
L278[14:15:18] <Izaya> %remindme 12h fix cert
L279[14:15:18] <MichiBot> I'll remind you about "fix cert" at 08/30/2018 02:15:18 AM
L280[15:02:09] <AmandaC> %oclogs
L281[15:05:45] <AmandaC> Okay, I apparently never shared this here, though it happen awhile ago https://nc.ddna.co/index.php/s/qsmty5TATPPtkfg then https://nc.ddna.co/index.php/s/aQxS9P9E8Xst3ZB
L282[15:07:38] <AmandaC> Izaya: ^
L283[15:08:17] <Forecaster> yeah, that's not very agressive
L284[15:34:34] <Inari> https://media.discordapp.net/attachments/436555823423160320/484460840981102593/unknown.png \o/
L285[15:35:35] <Forecaster> Hello!
L286[15:35:43] <AmandaC> Inari: oh gods, are you going forward with your rust-exa-os thing?
L287[15:35:59] <Inari> Well for now it's just that. But I'd like to
L288[15:35:59] <Inari> :P
L289[15:38:28] <AmandaC> %choose start another episode or meh
L290[15:38:28] <MichiBot> AmandaC: I was that start another episode is the best choice in a vision
L291[15:38:49] <AmandaC> MichiBot seems to keep accidentally a few words in those
L292[15:39:05] <AmandaC> or @Forecaster did a real bad when adding the templates
L293[15:39:40] <Michiyo> ^
L294[15:39:59] <Forecaster> it should say "I saw"
L295[15:44:35] <AmandaC> %source
L296[15:44:39] <AmandaC> ...
L297[15:44:55] <AmandaC> Did you break the dynamic commands, too? :P
L298[15:45:04] <Forecaster> %hello
L299[15:45:10] <Forecaster> apparently
L300[15:45:33] <Michiyo> https://github.com/PC-Logix/LanteaBot/blob/master/src/main/java/pcl/lc/irc/hooks/RandomChoice.java :P
L301[15:45:38] <Michiyo> Also, gg.
L302[15:45:42] <Michiyo> :P
L303[15:45:59] <Forecaster> it's what I get for accidentally committing half-finished things
L304[15:49:08] <AmandaC> man, step up yo game. I accidentally commited something to a script collection earlier today we use, and all that did was add more help context to some things
L305[15:50:17] <AmandaC> I english good.
L306[15:54:19] <Forecaster> ugh
L307[15:54:26] <Forecaster> I can't add this library for the number handling
L308[15:54:27] <Forecaster> :|
L309[15:56:05] <Forecaster> there we go
L310[16:02:37] <AmandaC> *notification sound* *double-taps to get the notification* "Your headset is at 5%" "Welp, guess I'm done listening to podcasts for now
L311[16:03:07] <Michiyo> @Forecaster was it not in lib on the repo...?
L312[16:03:31] <Forecaster> I'm not sure
L313[16:03:38] <Michiyo> %hello
L314[16:03:50] <Forecaster> I was now able to activate it and choose "add to classpath"
L315[16:03:55] <Forecaster> and it worked
L316[16:04:10] <Michiyo> http://paste.pc-logix.com/lakiceqijo.sql
L317[16:04:23] <Forecaster> oh
L318[16:04:26] <Forecaster> dammit
L319[16:04:26] <Michiyo> All you should have to do when you pull is "refresh gradle project" or whatever your IDE calls it
L320[16:04:59] <Forecaster> right, I changed a column in the database from "return" to "return_value" because I ran into a problem with "return"
L321[16:05:36] <Forecaster> but I didn't mean to commit that... so I didn't add an update statement for it...
L322[16:06:32] <Forecaster> or wait
L323[16:06:40] <Forecaster> there is an update query for that...
L324[16:06:50] <Forecaster> did that not run properly?
L325[16:06:52] <Forecaster> oO
L326[16:07:47] <Michiyo> 7546 [main] INFO pcl.lc.irc.IRCBot - Updating database! Current version: 5
L327[16:07:47] <Michiyo> 7622 [main] INFO pcl.lc.irc.IRCBot - Database update ran 2 queries
L328[16:07:47] <Michiyo> 7622 [main] INFO pcl.lc.irc.IRCBot - Database update complete! New version: 6
L329[16:07:57] <Forecaster> it should've run then...
L330[16:08:04] <Forecaster> because it was version 6
L331[16:08:32] <Forecaster> if it didn't run properly, re-naming Commands.return to Commands.return_value should fix it
L332[16:09:40] <Michiyo> %restart
L333[16:09:42] ⇦ Quits: MichiBot (MichiBot!~MichiBot@eos.pc-logix.com) ()
L334[16:10:08] ⇨ Joins: MichiBot (MichiBot!~MichiBot@eos.pc-logix.com)
L335[16:10:09] zsh sets mode: +v on MichiBot
L336[16:10:14] <Michiyo> Current version: 6 :/
L337[16:10:16] <Michiyo> %hello
L338[16:10:35] <Michiyo> now we wait
L339[16:11:05] <Michiyo> java.sql.SQLException: no such column: 'return_value'
L340[16:11:29] <Forecaster> what
L341[16:11:45] <Forecaster> did you update the database?
L342[16:12:02] <Michiyo> no, I restarted to see if it was being dumb
L343[16:12:10] <Michiyo> "CREATE TABLE Commands0d9e" o_O
L344[16:12:15] <Forecaster> yeah
L345[16:12:28] <Forecaster> you can't actually re-name columns in SQLite
L346[16:12:51] <AmandaC> %calfacts
L347[16:12:51] <MichiBot> Did you know that the fall equinox drifts out of sync with the sun because of an arbitrary decition by Isaac Newton? Apparently that's why we have leap seconds.
L348[16:12:59] <Forecaster> you have to create a new table with the changes, re-naming the old one, then move the rows, destroy the old table, and rename the new one to the name of the original one
L349[16:13:04] <Forecaster> it's a pain
L350[16:14:02] <Forecaster> that update query *should* have done all that...
L351[16:14:28] ⇦ Quits: MichiBot (MichiBot!~MichiBot@eos.pc-logix.com) (Client Quit)
L352[16:15:48] <Michiyo> Except.. "cannot start a transaction within a transaction: BEGIN TRANSACTION;"
L353[16:16:04] <Forecaster> what...
L354[16:16:11] <Forecaster> oh
L355[16:16:23] <Forecaster> does it use that when running the update queries
L356[16:16:48] <Forecaster> that would explain it
L357[16:17:21] <Michiyo> yeah I don't know if you can run a transaction
L358[16:17:43] <Forecaster> I guess I'd have to add each statement as it's own update query then
L359[16:17:49] <Forecaster> and hope they're run in the right order
L360[16:18:43] ⇨ Joins: MichiBot (MichiBot!~MichiBot@eos.pc-logix.com)
L361[16:18:43] zsh sets mode: +v on MichiBot
L362[16:18:54] ⇦ Quits: Johannes13_ (Johannes13_!~Johannes1@p200300C1B3ECBC001C60CB4DD1B80F16.dip0.t-ipconnect.de) (Ping timeout: 190 seconds)
L363[16:19:35] <Michiyo> %hello
L364[16:19:35] <MichiBot> Michiyo: Hello! Welcome to #oc! The one and only opencomputers channel! Please ask your questions directly (dont ask to ask) and provide error/code examples! (Use pastebin.com if theyre more than one line!) Dont mind the random conversation you might have walked into.
L365[16:20:04] <Forecaster> yay
L366[16:20:16] <Michiyo> just opened it in my sqlite editor and renamed it lol
L367[16:20:38] <Forecaster> yeah, that's what I did to my local database, then I added the update query :P
L368[16:22:34] <AmandaC> %blame poor development practices
L369[16:22:34] * MichiBot blames poor development practices for the moon not being made of cheese
L370[16:23:30] <Forecaster> ssh
L371[16:23:56] <Forecaster> hm
L372[16:24:12] <Forecaster> the update script run through the webserver seems to have missed some files
L373[16:43:23] <Inari> AmandaC: https://media.discordapp.net/attachments/309529094452936705/484474392148181002/FB_IMG_1535577654950.png?width=515&height=676
L374[16:45:21] <Forecaster> That poor car
L375[16:45:34] <AmandaC> Inari: :D I've seen a few of those: https://i.imgur.com/AXbtgED.png https://i.imgur.com/A5jLhxu.png
L376[16:45:45] <Inari> haha
L377[16:45:58] <AmandaC> ( I hope those links still work, dug them out of my telegram chat history with my sister )
L378[16:46:05] <Inari> They do
L379[16:46:29] <Kleadron> http://tinyurl.com/y8gytedq
L380[16:47:32] <AmandaC> Inari: I feel like I sent you this one already, but: https://imgur.com/gallery/E8ddfMP
L381[16:48:14] <Inari> Hehe, I think I've seen that one before ^^
L382[17:04:36] <Wuerfel_21> TFW you debug around for a while, melting your brain over why your indexes don't work and then you remember you commented out the instruction that loads the indexes.
L383[17:05:03] <Kleadron> rip
L384[17:05:11] <Inari> Heh
L385[17:05:17] <Inari> %loot @Wuerfel_21's indeces
L386[17:05:18] <MichiBot> Inari: You get a loot box! It contains a broken .mp6.
L387[17:05:59] <Wuerfel_21> i think indices is even more correct
L388[17:06:18] <Inari> It is, I think
L389[17:06:56] <Wuerfel_21> Well, back to the fun of writing time-critical assembly
L390[17:09:07] <Inari> \o/
L391[17:09:09] <Inari> What are you doing
L392[17:09:50] <Wuerfel_21> Writing a new graphics driver for the parallax propeller.
L393[17:11:26] <Inari> Sounds fun
L394[17:11:55] <Wuerfel_21> I thought of a nice optimization that allows decoding a 2 bit pixel in just 2 hub revolutions:
L395[17:11:55] <Wuerfel_21> Code Block pastebined https://paste.pc-logix.com/isuneritom
L396[17:12:23] <Wuerfel_21> However, it requires the tiles to be in a "delta-coded" format
L397[17:14:45] <Wuerfel_21> and thus, rainbows happened http://tinyurl.com/y6wkxfzg
L398[17:44:44] <Inari> heh
L399[18:02:20] <Kodos> %loot
L400[18:02:20] <MichiBot> Kodos: You get a loot box! It contains an empty soup can.
L401[18:03:54] <AmandaC> %loot Inari's candy drawer
L402[18:03:54] <MichiBot> AmandaC: You get a loot box! It contains a dropbox account with zero capacity.
L403[18:04:01] <AmandaC> ...interesting
L404[18:13:56] <Kleadron> The quick brown fox jumps over the lazy dog
L405[18:19:10] ⇦ Quits: Inari (Inari!~Pinkishu@84.175.255.77) (Quit: 'For science? No! For tuna!')
L406[18:30:18] <Michiyo> %loot
L407[18:30:19] <MichiBot> Michiyo: You get a loot box! It contains a miraculous miracle man (mmm) #1 comic.
L408[18:37:04] <Wuerfel_21> Ayy, my tile renderer is now done: 16x12 2bpp tiles on screen (each 16x16 pixels), each can be flipped and and mirrorred and the palettes are read from a second tile (slightly reminiscent of an MSX mode) that can be indepently specified. Now i've got about0 10760 cycles (=2690 instructions=672 hub revolutions) per line left to add sprites and a selectable-per-tile-line hirez text mode, i guess
L409[18:37:38] <Wuerfel_21> Ayy, my tile renderer is now done: 16x12 2bpp tiles on screen (each 16x16 pixels), each can be flipped and and mirrorred and the palettes are read from a second tile (slightly reminiscent of an MSX mode) that can be independently specified. Now i've got about0 10760 cycles (=2690 instructions=672 hub revolutions) per line left to add sprites and a selectable-per-tile-line hirez text mode, i guess [Edited]
L410[18:37:44] <Wuerfel_21> Ayy, my tile renderer is now done: 16x12 2bpp tiles on screen (each 16x16 pixels), each can be flipped and and mirrorred and the palettes are read from a second tile (slightly reminiscent of an MSX mode) that can be independently specified. Now i've got about 10760 cycles (=2690 instructions=672 hub revolutions) per line left to add sprites and a selectable-per-tile-line hirez text mode, i guess [Edited]
L411[18:42:12] <Wuerfel_21> Then again, i'm throwing some 63% of the CPU at the graphics, so what do i expect?
L412[18:54:23] ⇦ Quits: baschdel (baschdel!~baschdel@2a01:5c0:18:a781:7093:79e0:3a62:1ca3) (Ping timeout: 183 seconds)
L413[19:00:17] <Wuerfel_21> That poses a problem: I only have 3 free cores. Enough for sound, SD card and main code, but then i can't fit a keyboard driver. I think i'll try seeing if the core that just sits there, outputting the pixels generated by the other cores can poll the keyboard during vsync
L414[19:00:25] <Wuerfel_21> That poses a problem: I only have 3 free cores. Enough for sound, SD card and main code, but then i can't fit a keyboard driver. I think i'll try seeing if the core that just sits there, outputting the pixels generated by the other cores, can poll the keyboard during vsync [Edited]
L415[19:18:57] ⇦ Quits: Vexatos (Vexatos!~Vexatos@p200300C10725E91245803480DB93B5AF.dip0.t-ipconnect.de) (Quit: Insert quantum chemistry joke here)
L416[19:38:21] ⇨ Joins: Mr_Bourrin (Mr_Bourrin!~Mr_Bourri@ip231.ip-79-137-110.eu)
L417[19:40:27] ⇦ Quits: Mr_Bourrin (Mr_Bourrin!~Mr_Bourri@ip231.ip-79-137-110.eu) (Client Quit)
L418[19:41:57] ⇨ Joins: Mr_Bourrin (Mr_Bourrin!~Mr_Bourri@ip231.ip-79-137-110.eu)
L419[19:42:16] ⇦ Quits: Mr_Bourrin (Mr_Bourrin!~Mr_Bourri@ip231.ip-79-137-110.eu) (Client Quit)
L420[21:12:38] ⇦ Quits: Cervator (Cervator!~Thunderbi@2601:4c1:4001:1d5d:d9f1:398e:11c4:effd) (Remote host closed the connection)
L421[21:27:25] <xarses> Moo
L422[21:59:50] ⇦ Quits: Thutmose (Thutmose!~Patrick@host-69-59-79-181.nctv.com) (Quit: Leaving.)
L423[22:02:23] ⇨ Joins: ben_mkiv (ben_mkiv!~ben_mkiv@p5B16EC5A.dip0.t-ipconnect.de)
L424[22:35:49] <Dudblockman> For some reason I assumed wake messages only worked on wired connections
L425[22:36:27] <Dudblockman> My tests with a drone have proven otherwise. This opens up a new avenue
L426[22:37:15] <Temia> Moo?
L427[22:38:50] <Izaya> Forecaster: did you make it to HD 51502?
L428[23:18:48] ⇦ Quits: LePlaYa (LePlaYa!~jesse@krul.finf.uni-hannover.de) (Ping timeout: 190 seconds)
L429[23:24:26] ⇨ Joins: LePlaYa (LePlaYa!~jesse@krul.finf.uni-hannover.de)
L430[23:24:47] ⇨ Joins: BlueAgent (BlueAgent!~BlueAgent@2001:8003:8c0d:5500:40ae:58e6:e8e8:184c)
L431[23:46:38] ⇦ Parts: BlueAgent (BlueAgent!~BlueAgent@2001:8003:8c0d:5500:40ae:58e6:e8e8:184c) (Leaving))
<<Prev Next>> Scroll to Top