--- Log opened Sun Feb 04 00:00:48 2018 |
00:28 | | Kindamoody is now known as Kindamoody[zZz] |
01:26 | <&McMartin> | OK, I'm done with this. https://bumbershootsoft.wordpress.com/2018/02/04/conways-life-on-the-game-boy/ |
01:47 | | Degi [Degi@Nightstar-9ov8od.dyn.telefonica.de] has quit [Connection closed] |
03:41 | | Jessikat [Jessikat@Nightstar-q7poaf.dab.02.net] has joined #code |
03:54 | | Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code |
03:54 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
03:54 | | Vornlicious [Vorn@Nightstar-irnka0.sub-174-210-12.myvzw.com] has quit [[NS] Quit: Bye] |
03:54 | | Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code |
04:13 | | macdjord is now known as macdjord|slep |
04:24 | | Jessikat` [Jessikat@Nightstar-bjtkuo.dab.02.net] has joined #code |
04:26 | | Jessikat [Jessikat@Nightstar-q7poaf.dab.02.net] has quit [Ping timeout: 121 seconds] |
04:47 | | Vornlicious [Vorn@Nightstar-irnka0.sub-174-210-12.myvzw.com] has joined #code |
04:49 | <&McMartin> | Argh this program is terrible |
04:50 | <&McMartin> | And for some reason my old compiled version doesn't work |
04:50 | | * McMartin shrugs, goes off to play videogames instead |
04:51 | | Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds] |
05:00 | <@celticminstrel> | Heh. |
05:16 | <&McMartin> | In both cases the code is so small it fits on a screen; I'm a little vexed because I'm not sure which part is actually failing. |
05:16 | | symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has joined #code |
05:18 | < symbol> | My logarithms are not behaving as expected. |
05:19 | <&McMartin> | Is your artillery missing? |
05:19 | <&McMartin> | Are you using base 2 or 10 instead of e, or vice versa? |
05:19 | < symbol> | As far as I can tell I am explicitly using base 10. |
05:19 | <&McMartin> | What's the language? |
05:20 | < symbol> | But I am noodling around in lua for the first time, so maybe I have made a silly error. |
05:20 | < symbol> | The line is basically x = math.log(n, 10) |
05:20 | <&McMartin> | smoke test first, I guess: is log10(100) 2? |
05:21 | < symbol> | I tested log(10, 10) and got 2.something. |
05:21 | < symbol> | Hence why I am here saying it's not behaving as expected. |
05:21 | <&McMartin> | That means it's probably ln. |
05:22 | <&McMartin> | 10 = e^2.302585092994046 |
05:22 | <&McMartin> | if you want log 10 from log e, log_10(x) = log_e(x) / log_e(10). |
05:23 | < symbol> | Okay, thanks. I can convert then. |
05:23 | <&McMartin> | From the lua-users wiki: "math.exp(myval) returns e (the base of natural logarithms) raised to the power myval. math.log() returns the inverse of this. math.exp(1) returns e." |
05:23 | <&McMartin> | So yeah, lua's math.log is in fact ln. |
05:23 | < symbol> | Yeah, I know lua defaults to ln. |
05:23 | < symbol> | But the function /says/ it takes an optional base argument. |
05:24 | < symbol> | So I had assumed that by providing that I could use log_10 directly. |
05:24 | <&McMartin> | That's... actually not in this page I'm looking at, but okay |
05:24 | <&McMartin> | I know Lua tends to alter itself drastically across even minor revisions. |
05:24 | < symbol> | Ah, maybe I'm looking at something for a different version then. |
05:24 | | * symbol goes to check version numbers. |
05:25 | | Derakon is now known as Derakon[AFK] |
05:26 | < symbol> | But yeah, I was looking at https://www.lua.org/manual/5.3/manual.html#3.4.1 which states: "math.log (x [, base]) |
05:26 | < symbol> | Returns the logarithm of x in the given base. The default for base is e (so that the function returns the natural logarithm of x)." |
05:27 | < symbol> | Except, having checked, I'm actually using v5.1 |
05:27 | < symbol> | lol, alright, I guess that'll do it! |
05:29 | < Vornlicious> | Fortunately base change isn't hard: log_b(x) = log(x)/log(b) |
05:31 | < symbol> | There we go! Now it's doing what it's supposed to! |
05:31 | < symbol> | Thank you! |
05:54 | | celticminstrel is now known as celmin|sleep |
05:58 | < symbol> | Okay, log(a/b) is the same as log(a) - log(b), right? Or am I having a confusion? |
06:01 | <&McMartin> | That's correct, though I usually think of it as log(ab) = log(a) + log(b) |
06:01 | < symbol> | Fair. |
06:04 | < symbol> | Not sure why the two are giving me different answers then. I'm going to assume for now that I've typo'd something somewhere and am too tired to see it right now. |
06:05 | < symbol> | Gonna try to get some sleep and come back to this in the morning. |
06:05 | < symbol> | Thanks again. :) |
06:10 | | symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has quit [Ping timeout: 121 seconds] |
07:27 | | Kindamoody[zZz] is now known as Kindamoody |
08:54 | | Kindamoody is now known as Kindamoody|afk |
10:54 | | Jessikat [Jessikat@Nightstar-94060b.dab.02.net] has joined #code |
10:57 | | Jessikat` [Jessikat@Nightstar-bjtkuo.dab.02.net] has quit [Ping timeout: 121 seconds] |
11:11 | | Jessikat [Jessikat@Nightstar-94060b.dab.02.net] has quit [[NS] Quit: Bye] |
11:21 | | Jessikat [Jessikat@Nightstar-94060b.dab.02.net] has joined #code |
12:43 | <@ErikMesoy> | Apps which take up several times more CPU when minimized. Interesting. |
12:47 | < Vornlicious> | Possible causes: no longer gpu-io bound |
12:48 | < Vornlicious> | Well, cause |
13:12 | <&ToxicFrog> | I told Alex I think he found a bug in Megabyte Punch |
13:12 | <&ToxicFrog> | He tells me "nooooo, not a bug! I found a spider!" |
13:14 | < Vornlicious> | Hahaha |
13:14 | < Vornlicious> | What was the bug |
13:16 | <&ToxicFrog> | If you beat the game and then go replay an earlier level using level select, the state of the hub resets to the "red lighting with ocasional earthquakes" state it normally has just before the final level and bossfight |
13:16 | <&ToxicFrog> | This appears to happen no matter which level you replayed |
14:44 | | symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has joined #code |
15:19 | | celmin|sleep is now known as celticminstrel |
15:39 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code |
15:39 | | mode/#code [+o Reiv] by ChanServ |
15:41 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [Connection closed] |
16:37 | | Kindamoody|afk is now known as Kindamoody |
17:24 | | Jessikat` [Jessikat@Nightstar-t18.jtr.132.82.IP] has joined #code |
17:26 | | Jessikat [Jessikat@Nightstar-94060b.dab.02.net] has quit [Ping timeout: 121 seconds] |
17:28 | | Jessikat` [Jessikat@Nightstar-t18.jtr.132.82.IP] has quit [Ping timeout: 121 seconds] |
17:29 | | symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has quit [Ping timeout: 121 seconds] |
18:00 | | Netsplit Krikkit.Nightstar.Net <-> Deepthought.Nightstar.Net quits: @Alek |
18:05 | | Alek [Alek@Nightstar-7or629.il.comcast.net] has joined #code |
18:05 | | mode/#code [+o Alek] by ChanServ |
18:09 | <&[R]> | $ head -4 Desktop/ParseObjectCache.php | tail -1; wc -l Desktop/ParseObjectCache.php |
18:09 | <&[R]> | * GlobalValidatorInteger.php - Class to check if parameter a valid integer. |
18:09 | <&[R]> | 283 Desktop/ParseObjectCache.php |
18:09 | <&[R]> | wat |
18:10 | <&[R]> | (That's not something I wrote FYI) |
18:14 | | Derakon[AFK] is now known as Derakon |
18:17 | | Vornlicious [Vorn@Nightstar-irnka0.sub-174-210-12.myvzw.com] has quit [[NS] Quit: Bye] |
18:18 | | Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code |
19:05 | | Degi [Degi@Nightstar-8ef.mhi.212.185.IP] has joined #code |
19:25 | | Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds] |
20:12 | | Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
20:45 | <@Tamber> | [R], Wow. And it's guaranteed to have at least an integer number of bugs. |
20:46 | <&[R]> | Yeah |
20:46 | <&[R]> | It's actually FOSS code, I could post the whole thing if peeps are curious |
20:47 | <&[R]> | Looks like the comment's wrong about what the file is actually |
20:49 | <@Tamber> | Well, there's bug number 1. |
21:06 | | Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Connection closed] |
21:10 | < Degi> | Inb4 an imaginary number of bugs |
21:12 | | Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code |
21:12 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
21:53 | | symbol [symbol@Nightstar-3lt1s7.cable.teksavvy.com] has joined #code |
21:54 | <@abudhabi> | Degi: A complex number of bugs is cromulent. |
21:54 | <@abudhabi> | A software has bugs. Some of them are real. Some - imaginary. |
22:11 | <&McMartin> | https://i.imgur.com/nzP6939.jpg |
22:13 | <@ErikMesoy> | Pffffffft |
22:31 | <@abudhabi> | Are you sure you have to wait that long? Pretty sure I saw a chick playing that last one a few years ago! |
22:43 | | Degi_ [Degi@Nightstar-8ef.mhi.212.185.IP] has joined #code |
22:44 | | Degi [Degi@Nightstar-8ef.mhi.212.185.IP] has quit [Connection closed] |
22:57 | | Degi_ [Degi@Nightstar-8ef.mhi.212.185.IP] has quit [Ping timeout: 121 seconds] |
23:13 | | gnolam [lenin@Nightstar-ego6cb.cust.bahnhof.se] has quit [Ping timeout: 121 seconds] |
--- Log closed Mon Feb 05 00:00:50 2018 |