<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[00:01:28] <Re​nno> so many libraries without documentation so no one knows how to use them
L2[02:17:27] <micr​owave> if this works then it can do anything https://discordembeds.pc-logix.com/live/1714961847561.png
L3[02:23:06] <micr​owave> it could not do it
L4[02:23:26] <micr​owave> it keeps saying i need to yield despite the fact that theres plenty of yields there
L5[02:45:10] <micr​owave> nevermind it was trying to compress /dev/random
L6[03:09:27] <micr​owave> ok i got it to compress the entirety of OpenOS
L7[03:09:31] <micr​owave> from the root dir
L8[03:10:28] <micr​owave> its using the V2 compression algorithm, which is quite a bit worse than the V1 which uses OC's data card, but it has filesize limits due to the max input data into the data card
L9[03:29:28] * Amanda collapses into a singularity of floof atop Elfi, soon she shall have airships, then the foxen will rue the day they put them behind tier iv science
L10[03:29:54] <Amanda> Night girls
L11[03:30:10] <Spider ​EveryOS> Might as well %tonkouit
L12[03:30:16] <Spider ​EveryOS> %tonkout
L13[03:30:16] <MichiBot> Jiminy Cricket! Spider ​EveryOS! You beat your own previous record of 3 hours, 16 minutes and 36 seconds (By 3 hours, 18 minutes and 4 seconds)! I hope you're happy!
L14[03:30:17] <MichiBot> Spider ​EveryOS has tonked out! Tonk has been reset! They gained 0.006 tonk points! plus 0.01 bonus points for consecutive hours! Current score: 1.1858618, Position #3 Need 0.1129264 more points to pass Va​ur!
L15[03:35:55] <Izzy> microwave: string.pack/string.unpack for chunking data into appropriate sizes
L16[03:36:32] <Izzy> LZ16 is "LZ16" because it's LZSS with a 16-bit chunk header
L17[03:36:56] <Izzy> doing it that way means you can stream arbitrary data into it and it Just Works
L18[04:51:35] ⇨ Joins: Hawk777 (~Hawk777@2001:569:7ca4:2a00:2501:423d:a22f:73d4)
L19[06:17:55] <Forec​aster> https://xkcd.com/2928/
L20[06:41:55] ⇨ Joins: Vexatos (~Vexatos@p200300eaef378a0028eb081c101dd7e8.dip0.t-ipconnect.de)
L21[06:41:55] zsh sets mode: +v on Vexatos
L22[06:55:48] <Forec​aster> January 0th is when I schedule all my meetings
L23[07:35:29] <Va​ur> %tonk
L24[07:35:30] <MichiBot> Dagnabbit! Va​ur! You beat Spider ​EveryOS's previous record of <0 (By 4 hours, 5 minutes and 12 seconds)! I hope you're happy!
L25[07:35:31] <MichiBot> Vaur's new record is 4 hours, 5 minutes and 12 seconds! Vaur also gained 0.00409 tonk points for stealing the tonk. Position #2. Need 0.3674318 more points to pass Forec​aster!
L26[08:22:17] ⇦ Quits: Hawk777 (~Hawk777@2001:569:7ca4:2a00:2501:423d:a22f:73d4) (Quit: Leaving.)
L27[11:16:06] * Amanda meows and looks around
L28[12:59:44] <Forec​aster> %tonk
L29[12:59:45] <MichiBot> Boom! Forec​aster! You beat Va​ur's previous record of 4 hours, 5 minutes and 12 seconds (By 1 hour, 19 minutes and 3 seconds)! I hope you're happy!
L30[12:59:46] <MichiBot> Forecaster's new record is 5 hours, 24 minutes and 15 seconds! Forecaster also gained 0.0066 (0.00132 x 5) tonk points for stealing the tonk. Position #1.
L31[13:11:37] <lunar_sam> Izaya: thanks for reminding me how long it's been since i worked on OSSM
L32[13:11:39] <lunar_sam> :v
L33[13:17:44] <Izzy> <3
L34[13:38:19] <lunar_sam> i have not wanted to touch code in a long while
L35[13:44:31] <Spider ​EveryOS> %tonk
L36[13:44:31] <MichiBot> I'm sorry Spider EveryOS, you were not able to beat Forecaster's record of 5 hours, 24 minutes and 15 seconds this time. 44 minutes and 46 seconds were wasted! Missed by 4 hours, 39 minutes and 29 seconds!
L37[13:45:02] <Spider ​EveryOS> Oh, my phone didn't show me the new messages until after I pressed send
L38[13:46:18] <Spider ​EveryOS> My summer job starts back up today, so I'll be busy. But last night I ordered an FPGA. I'm gonna learn myself some verilog
L39[13:53:19] <Kristo​pher38> @Spider EveryOS https://digitaljs.tilk.eu/
L40[13:53:20] <Kristo​pher38> Have fun
L41[13:53:52] <Amanda> %choose mining laser or cargo shios
L42[13:53:52] <MichiBot> Ama​nda: Out of these two choices? I'd say "mining laser".
L43[14:07:39] <Forec​aster> Extreme red dot!
L44[14:09:57] ⇦ Quits: uis (~uis@95.165.156.213) (Quit: ZNC 1.7.5 - https://znc.in)
L45[14:10:08] ⇨ Joins: uis (~uis@95.165.156.213)
L46[16:00:53] ⇨ Joins: Hawk777 (~Hawk777@2001:569:7ca4:2a00:d46f:2297:b95a:2e01)
L47[18:06:53] ⇦ Quits: SquidDev (~SquidDev@autoclave.squiddev.cc) (Remote host closed the connection)
L48[18:15:58] ⇨ Joins: SquidDev (~SquidDev@autoclave.squiddev.cc)
L49[18:25:24] ⇦ Quits: tehbeard (~tehesper@66.228.139.228) (Read error: Connection reset by peer)
L50[18:25:28] ⇨ Joins: tehbeard (~tehesper@66.228.139.228)
L51[18:39:19] ⇨ Joins: thebread (~tehesper@66.228.139.228)
L52[18:39:19] ⇦ Quits: tehbeard (~tehesper@66.228.139.228) (Read error: Connection reset by peer)
L53[19:21:00] <Amanda> Hrm
L54[19:21:13] <Amanda> I regret not making my subway layer deeper
L55[19:24:36] <Amanda> %choose move wires into the subway or keep them on the surface
L56[19:24:36] <MichiBot> Ama​nda: The proof is in the pudding. Definitely "keep them on the surface". Now please get it out of my pudding.
L57[19:24:48] <Amanda> Hrm hrm
L58[19:25:35] <Amanda> I'll revisit the decision when I'm done prettying up the subway and adding lights to it
L59[20:06:55] <Forec​aster> Mm wire pudding
L60[20:30:04] <Va​ur> %tonk
L61[20:30:05] <MichiBot> Jeepers! Va​ur! You beat Forec​aster's previous record of 5 hours, 24 minutes and 15 seconds (By 1 hour, 21 minutes and 17 seconds)! I hope you're happy!
L62[20:30:06] <MichiBot> Vaur's new record is 6 hours, 45 minutes and 32 seconds! Vaur also gained 0.0081 (0.00135 x 6) tonk points for stealing the tonk. Position #2. Need 0.3659318 more points to pass Forec​aster!
L63[21:09:58] ⇦ Quits: uis (~uis@95.165.156.213) (Ping timeout: 183 seconds)
L64[21:10:13] ⇨ Joins: uis (~uis@95.165.156.213)
L65[21:21:03] <Amanda> Oh right, I was so busy growing the factory this meowning, I completley forgot to %splash @Forecaster with mutable silver potion
L66[21:21:03] <MichiBot> You fling a mutable silver potion (New!) that splashes onto @Forecaster. @Forecaster turns into a radiation unicorn until they have a bubbly stainless steel potion.
L67[22:27:35] <Corded> > <pay​onel> remember the discussions of OpenComputer Chan? well, why no…
L68[22:27:35] <Spider ​EveryOS> Those look cool
L69[22:31:43] <PewPew​Cricket> im trying to learn how to use xpcall and uh https://discordembeds.pc-logix.com/live/1715034702876.png https://discordembeds.pc-logix.com/live/1715034703034.png
L70[22:31:46] <PewPew​Cricket> it does this and i dont know
L71[22:31:49] <PewPew​Cricket> whats wrong
L72[22:31:57] <PewPew​Cricket> xpcall() has shitty documentation
L73[22:34:26] <Hawk777> xpcall(require("ocz"), exceptionHandler) is wrong.
L74[22:34:31] <Hawk777> You want xpcall(require, exceptionHandler, "ocz")
L75[22:34:45] ⇦ Quits: Vexatos (~Vexatos@p200300eaef378a0028eb081c101dd7e8.dip0.t-ipconnect.de) (Quit: Insert quantum chemistry joke here)
L76[22:35:02] <Hawk777> Docs are here <https://www.lua.org/manual/5.3/manual.html#pdf-xpcall&gt; referring to the docs of pcall <https://www.lua.org/manual/5.3/manual.html#pdf-pcall&gt;. pcall/xpcall themselves *do* the call for you, so don’t do the call and then pass the result to them.
L77[22:35:54] <PewPew​Cricket> they need to make better docs
L78[22:36:01] <PewPew​Cricket> 😭
L79[22:37:35] <PewPew​Cricket> why wont os.exit work in exceptionHandler()
L80[22:37:40] <PewPew​Cricket> * os.exit() work in exceptionHandler()
L81[22:37:43] <PewPew​Cricket> * exceptionHandler()?
L82[22:44:11] <PewPew​Cricket> this is so confusing
L83[22:44:37] <Hawk777> No idea, I haven’t used xpcall.
L84[22:44:46] <Kristo​pher38> os.exit is implemented by the OS
L85[22:44:47] <Hawk777> If I need to catch errors I usually use pcall and check the flag instead.
L86[22:45:19] <Kristo​pher38> probably nobody thought about handling this specific case for os.exit
L87[22:45:24] <Corded> > <Kristo​pher38> os.exit is implemented by the OS
L88[22:45:24] <PewPew​Cricket> okay but how do i exit in the error handler
L89[22:45:27] <Kristo​pher38> in whatever OS you're using
L90[22:45:29] <PewPew​Cricket> without os.exit()
L91[22:45:42] <Corded> > <Kristo​pher38> in whatever OS you're using
L92[22:45:42] <PewPew​Cricket> openOS
L93[22:46:57] <Kristo​pher38> exit the program? don't do it inside the error handler, check the value returned from xpcall and exit if an error happened
L94[22:53:27] <PewPew​Cricket> ????? https://discordembeds.pc-logix.com/live/1715036006604.png https://discordembeds.pc-logix.com/live/1715036006837.png
L95[22:53:32] <PewPew​Cricket> err should be -2 yes?
L96[22:55:21] <Hawk777> Per the documentation of pcall, no, the first return value is true or false.
L97[22:55:42] <Hawk777> On success, it returns true followed by the return values of the called function; on failure, it returns false followed by the error message.
L98[22:56:59] <PewPew​Cricket> wwqfuh
L99[22:57:01] <PewPew​Cricket> wait so
L100[22:57:31] <PewPew​Cricket> https://paste.pc-logix.com/zanegutapo
L101[22:57:38] <PewPew​Cricket> * require("ocz") ```
L102[22:57:39] <Corded> in xpcall()
L103[22:57:40] <Hawk777> No.
L104[22:57:47] <PewPew​Cricket> wdym no
L105[22:58:01] <PewPew​Cricket> thats what im trying to do
L106[22:58:05] <Hawk777> OK so the problem is that you have two separate “err” variables.
L107[22:58:22] <Hawk777> One is the top-level one which is set to the first return value of “xpcall”. The other is the parameter to the noOCZ function.
L108[22:58:32] <Hawk777> “err = -2” changes the latter, not the former.
L109[22:59:20] <PewPew​Cricket> i canged err to error in the fucntion
L110[22:59:22] <PewPew​Cricket> same issue
L111[22:59:26] <Hawk777> Show me the code.
L112[23:00:21] <PewPew​Cricket> https://discordembeds.pc-logix.com/live/1715036421513.png
L113[23:00:50] <Hawk777> That makes sense. You set err to -2 inside noOCZ, and then right afterwards you set it to false on line 13 when xpcall returns, replacing the previous value.
L114[23:00:57] <Corded> > <PewPew​Cricket> ?????
L115[23:00:58] <PewPew​Cricket> same exact output as this
L116[23:00:59] <Hawk777> Change “err” on line 13 to “_” or something.
L117[23:01:16] <PewPew​Cricket> just on line 13?
L118[23:01:19] <Hawk777> Yeah.
L119[23:01:37] <PewPew​Cricket> attempt to compare nil with number
L120[23:01:56] <Hawk777> Add “err = 0” somewhere at the top of your code.
L121[23:02:06] <Hawk777> Maybe above the noOCZ function definition.
L122[23:02:29] <PewPew​Cricket> same error
L123[23:02:42] <Hawk777> Do you have a trace showing on which line the error happened?
L124[23:03:15] <PewPew​Cricket> https://discordembeds.pc-logix.com/live/1715036594783.png https://discordembeds.pc-logix.com/live/1715036595034.png
L125[23:03:18] <Hawk777> Anyway, can you explain why you want to set “err” from inside noOCZ?
L126[23:03:38] <PewPew​Cricket> i want to exit if it errors
L127[23:03:40] <Hawk777> You didn’t change the “err” on line 14.
L128[23:03:47] <Hawk777> OK so why not just use the return value of xpcall?
L129[23:03:54] <Hawk777> You changed it on line 19 instead.
L130[23:04:02] <PewPew​Cricket> whar
L131[23:04:04] <PewPew​Cricket> im confused
L132[23:04:05] <PewPew​Cricket> so much
L133[23:04:06] <Hawk777> But you’re making this really complciated.
L134[23:04:19] <PewPew​Cricket> i dont know how to use xpcall
L135[23:04:21] <PewPew​Cricket> at all
L136[23:05:20] <Hawk777> Let me paste some code.
L137[23:05:50] <Hawk777> Try this: https://pastebin.com/JuQUH5hx
L138[23:06:28] <Hawk777> The name “err” isn’t really a good name any more, but you can rename that.
L139[23:08:07] <PewPew​Cricket> 🙏
L140[23:08:22] <PewPew​Cricket> thank you
L141[23:08:35] <Hawk777> Worked?
L142[23:08:39] <PewPew​Cricket> yes
L143[23:08:44] <Hawk777> Excellent!
L144[23:09:25] <Hawk777> You probably want to rename “err” to “ok” or something, because it’s backwards for err—it’s true if the require succeeded, not if it failed.
L145[23:15:09] <AR2​000> Back with a stupid question: I can't change the DNS server advertised by my router because it won't give me the option to. Can I somehow do it without having to completely replace the DHCP server ?
L146[23:15:57] <Hawk777> You could potentially set the DNS server statically on the machines on the network.
L147[23:16:50] <Hawk777> For example, for a Linux machine using dhcpcd, dhcpcd.conf has options to set whether to use or ignore the DNS servers from the DHCP response.
L148[23:35:11] <PewPew​Cricket> this should print the fith arg if -f is passed yeah? https://discordembeds.pc-logix.com/live/1715038511486.png https://discordembeds.pc-logix.com/live/1715038511654.png
L149[23:35:18] <PewPew​Cricket> * fifth arg if -f is passed yeah?
L150[23:35:40] <PewPew​Cricket> (i copied code from rm.lua)
L151[23:39:02] <Kristo​pher38> don't you want the assignments the other way around?
L152[23:39:11] <PewPew​Cricket> ?
L153[23:39:44] <Kristo​pher38> you're overwriting whatever is in the `args` table returned by `shell.parse`
L154[23:39:57] <PewPew​Cricket> im stupid
L155[23:40:57] <PewPew​Cricket> 😭
<<Prev Next>> Scroll to Top