code logs -> 2014 -> Fri, 11 Apr 2014< code.20140410.log - code.20140412.log >
--- Log opened Fri Apr 11 00:00:53 2014
00:03
<@AnnoDomini>
Orbital speed is sqrt(GM/r), right?
00:03
<@AnnoDomini>
If so, then would the following be correct: orbiter.speed = EARTH_SPEED * pow(orbiter.parent->mass/SUN_MASS,0.5) * pow(EARTH_ORBIT/orbiter.orbit,0.5);
00:49 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
00:55
<@AnnoDomini>
Wow, asteroids sure slow down animation.
00:56 Turaiel[Offline] is now known as Turaiel
01:12
<@AnnoDomini>
Funky. A roiling mass of asteroids orbiting a bright star. Nothing else in the system.
01:31 jeroud [sid10043@Nightstar-a1k27g.irccloud.com] has quit [Connection closed]
01:33 jeroud [sid10043@Nightstar-a1k27g.irccloud.com] has joined #code
01:33 mode/#code [+ao jeroud jeroud] by ChanServ
01:40 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has joined #code
01:40 mode/#code [+o Orthia] by ChanServ
02:16 himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has joined #code
02:16 mode/#code [+o himi] by ChanServ
02:23
<@Reiv>
Anno: This is your Spaceship Heartbreaker?
02:58 HotShot [theeaznon@Nightstar-m3qutv.sfldmi.sbcglobal.net] has joined #code
03:01 celticminstrel [celticminst@Nightstar-mhtogh.dsl.bell.ca] has joined #code
03:01 mode/#code [+o celticminstrel] by ChanServ
03:02 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
03:03 mode/#code [+qo Vornicus Vornicus] by ChanServ
03:59 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
04:04 jeroud [sid10043@Nightstar-a1k27g.irccloud.com] has quit [Ping timeout: 121 seconds]
04:08 jeroud [sid10043@Nightstar-uub.9ff.184.192.IP] has joined #code
04:08 mode/#code [+ao jeroud jeroud] by ChanServ
04:16 Kindamoody[zZz] is now known as Kindamoody
05:00 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has quit [Ping timeout: 121 seconds]
05:29
<@celticminstrel>
I expect this will explode.
05:29 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has joined #code
05:29 mode/#code [+o Orthia] by ChanServ
05:38
<@celticminstrel>
Yup, pretty much.
05:43
<~Vornicus>
Do you need Mr. Torgue to narrate your programming experience?
05:43
<@celticminstrel>
I dunno who that is.
05:43
<@celticminstrel>
Huh, my long is 8 bytes.
05:45
<@celticminstrel>
I'm pretty sure it was 4 bytes when this code was originally written.
05:46
<@celticminstrel>
I wonder if it was 8 bytes when I was having issues with things not being aligned.
05:46
<@celticminstrel>
That was two or three OS versions ago, though, so it might not have been.
05:47
<~Vornicus>
https://www.youtube.com/watch?v=suhpo61Ru3Q
05:48
<~Vornicus>
^--- Mister Torgue.
05:50
<@celticminstrel>
Okay, the legacy structs now use exact-width types.
05:50
<@celticminstrel>
There were only two longs though.
05:52 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
05:53 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
05:53 mode/#code [+qo Vornicus Vornicus] by ChanServ
05:53
<~Vornicus>
Also the cat crashed xchat.
05:53
<@celticminstrel>
Fun.
05:59
<@celticminstrel>
Apparently int8_t is distinct from char. I suppose it's signed char.
06:02
<&McMartin>
EXPLOSIONS ARE NOT THE ANSWER
06:02
<&McMartin>
EXPLOSIONS ARE THE QUESTION
06:02
<&McMartin>
THE ANSWER IS *BOOOOOOOOOOOOOOM*
06:02
<@celticminstrel>
XD
06:03
<&McMartin>
("Wait, your first name is Mister Torgue?" "YES!" "What's your last n-" "FLEXINGTON!!!!!")
06:05
<&McMartin>
I am alarmingly close to having written a complete parser for CBM BASIC.
06:10
<@Reiv>
McMartin: Stephen Colbert is going to drop his Colbert Show to, uh, replace Letterman
06:11 Reiv_ [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
06:14
<~Vornicus>
that is alarming.
06:14 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has quit [Ping timeout: 121 seconds]
06:14
<~Vornicus>
Does it include the shortcut keywords
06:17
<&McMartin>
I'm actually consuming the results of SAVE/petcat's tokenizer
06:17
<&McMartin>
Which flattens those out
06:17
<&McMartin>
(but petcat knows them)
06:18
<~Vornicus>
aha
06:18
<~Vornicus>
"petcat" is almost a better utility name than "disarm"
06:18
<&McMartin>
petcat is my favorite program name
06:19
<~Vornicus>
(disarm doesn't exist, I think, though something like it does)
06:20
<&McMartin>
Anyway, petcat also bridges the gap between ASCII and PETSCII's extremely important typable control characters
06:21
<&McMartin>
10 print "{clr}{12 down}{14 right}{wht}{rvon} omgwtfbbq {rvof}{lblu}"
06:24 ErikMesoy|sleep is now known as ErikMesoy
06:24 Turaiel is now known as Turaiel[Offline]
06:26 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
06:26 RchrdB [RichardB@Nightstar-c6u.vd5.170.83.IP] has quit [[NS] Quit: Gone.]
06:29 RchrdB [RichardB@Nightstar-c6u.vd5.170.83.IP] has joined #code
06:32
<@celticminstrel>
There seems to be a fair bit of redundancy when using PICT to store bitmaps. The bounding rect appears at least five times by my count.
07:01 HotShot [theeaznon@Nightstar-m3qutv.sfldmi.sbcglobal.net] has quit [Ping timeout: 121 seconds]
08:03 AverageJoe [evil1@Nightstar-fb1kt4.ph.cox.net] has joined #code
08:08 JackKnife [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
08:08 mode/#code [+o JackKnife] by ChanServ
08:53 Kindamoody is now known as Kindamoody|out
09:02 celticminstrel [celticminst@Nightstar-mhtogh.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
09:14 himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has quit [Ping timeout: 121 seconds]
09:43 AverageJoe [evil1@Nightstar-fb1kt4.ph.cox.net] has quit [[NS] Quit: Leaving]
10:05 KiMo|autorejoin [Kindamoody@Nightstar-180u8i.tbcn.telia.com] has joined #code
10:06 Kindamoody|out [Kindamoody@Nightstar-180u8i.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
10:39
<@TheWatcher>
GODS DAMN YOU JAVASCRIPT
10:39
<&McMartin>
JavaScript exists: there are no gods
10:53
<@Azash>
Azash comes to mind
10:58
<@TheWatcher>
McMartin: on the contrary, I'd argue that Javascript's existence proves that there are gods. Dark, terrible, crazed gods that gnaw forever at the fabric of time and space, forever waiting for the time to come when they can extinguish and life and thought.
11:01
<@Azash>
TheWatcher: Beaten
11:06
<@TheWatcher>
s/h and l/h all l/
11:06
<@TheWatcher>
Blasted headcold
11:06 mode/#code [+o RchrdB] by ChanServ
11:11
<@TheWatcher>
Also, fuck DST in both ears with a rusty railway spike
11:12
<@TheWatcher>
Internally to this system, all timestamps are UTC. Because this is the only sane way.
11:12
<@TheWatcher>
The UI includes javascript date and pickers
11:13
<@TheWatcher>
User selects a time locally, it gets converted to UTC, sent to the server.
11:14
<@TheWatcher>
Which works fine, except that I now have users in UTC+8 and UTC-8 who want to be be able to set times in server local time, not their own.
11:20 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
11:20 mode/#code [+o himi] by ChanServ
11:26 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
11:32 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
11:44 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
11:44 mode/#code [+o himi] by ChanServ
11:52
<@TheWatcher>
Aha, cracked it.
12:01
<&McMartin>
hax
12:32
< Xon>
http://article.gmane.org/gmane.os.openbsd.misc/211963 <- so much rofl
12:36
<@TheWatcher>
"OpenSSL is not developed by a responsible team." I thought that was pretty well established at this point >.>
12:41
< Xon>
haha yeah
12:45 Orthia is now known as Reivles
13:01
<&McMartin>
"you can't turn it off because they haven't tested without it in ages"
13:01
<&McMartin>
Well, maybe the distro guys might want to Get Cracking On That
13:27 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
13:41 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
13:41 mode/#code [+o himi] by ChanServ
13:41 JackKnife [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
14:20
<@ErikMesoy>
Anyone know of a good design philosophy commentary on the subject of conditional, hidden, or tested dialogue options? The sort of thing that goes "Sally asks if you could help find her sword. 1: Accept. 2: Decline. 3: (Wisdom) You remember seeing it in the gutter."
14:20
<@ErikMesoy>
I'd like to not reinvent the wheel on how to implement these, when an option should be in the from-node or the to-node of conversation, etc.
14:31
< simon>
ErikMesoy, sounds like an opportunity to use ux.stackexchange.com :)
14:55 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
15:09 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
15:09 mode/#code [+o himi] by ChanServ
15:39
<&ToxicFrog>
ErikMesoy: I don't know, but I do know it worked quite well in PST.
15:40
<&ToxicFrog>
Which also had intent-options, e.g.
15:40
<&ToxicFrog>
1. Sorry, I don't have time.
15:40
<&ToxicFrog>
2. [Truth] Sure, if I find it I'll return to you.
15:41
<&ToxicFrog>
3. [Lie] Sure, if I find it I'll return it to you.
16:07 ErikMesoy [Erik@Nightstar-t5i7tl.80-203-18.nextgentel.com] has quit [Ping timeout: 121 seconds]
16:09 ErikMesoy [Erik@Nightstar-6v0.mal.203.80.IP] has joined #code
16:09 mode/#code [+o ErikMesoy] by ChanServ
17:45 Turaiel[Offline] is now known as Turaiel
17:57 KiMo|autorejoin is now known as Kindamoody
17:57 mode/#code [+o Kindamoody] by ChanServ
18:00 AnnoDomini is now known as Number3
18:03 Turaiel is now known as Turaiel[Offline]
18:04 celticminstrel [celticminst@Nightstar-mhtogh.dsl.bell.ca] has joined #code
18:04 mode/#code [+o celticminstrel] by ChanServ
18:16 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
18:16 mode/#code [+qo Vornicus Vornicus] by ChanServ
18:24
<@celticminstrel>
My school sent a mass email about "Heartbleed".
18:24
<@celticminstrel>
Recommending the use of "strong" passwords.
18:25
<@celticminstrel>
No mention that three words all lowercase is at least as strong as their sample strong password.
18:26
< simon>
good. strong passwords will save us from 0-day exploits.
18:27
<@Tamber>
It actually got mentioned on the radio by name, today; which is my measuring-stick of how bad something in tech is.
18:27
<@celticminstrel>
But strong passwords are better if you can remember them.
18:27
<@Tamber>
...probably helps that it's an easy to say and vaguely memorable name~
18:29
<@celticminstrel>
Is entropy in cryptography related to entropy in thermodynamics?
18:29
<@celticminstrel>
(Random question.)
18:33
<@celticminstrel>
I kinda wish XCode's memory view could be bound to a pointer variable so that it would update when the pointer changes.
18:54
<&ToxicFrog>
...yeah, strong passwords will not save you from heartbleed.
18:54
<&ToxicFrog>
Not even a little.
18:54
<@celticminstrel>
I think the idea was "change your passwords because they might have been compromised".
18:54
<@celticminstrel>
"And by the way, be sure to use strong ones."
18:55
<&ToxicFrog>
Well, in that case it should be "change your passwords on everything you use that has applied the fix"
18:55
<&ToxicFrog>
If it hasn't, don't bother until it has
18:56
<@celticminstrel>
They linked a page listing vulnerable sites.
19:01
<&ToxicFrog>
..oh my god, I just found out why some of my tests were failing
19:01
<&ToxicFrog>
and it is so stupid
19:01
<&ToxicFrog>
(and also not my fault)
19:06
<@celticminstrel>
Okay, I'm off by one byte and I'm not sure why.
19:06
<@celticminstrel>
Oh! There's padding to make it word-aligned!
19:06
<@celticminstrel>
Uh, how do I deal with this.
19:07
<&ToxicFrog>
Specifically, 99% of the test-specific configuration stuff is handled by conditions in the configuration files themselves - e.g. flag { name foo, default true, if (testing) { default false } }.
19:07
<@celticminstrel>
"if(ptr % 4 != 0) skip next byte"?
19:08
<&ToxicFrog>
...the other 1% is handled by a python script during test setup that runs after the configuration files are combined, but before the configuration is pushed, and basically runs sed on the combined configuration file to apply the test-specific configuration.
19:08 * ToxicFrog applies fire, sword
19:08
<&ToxicFrog>
celticminstrel: "deal with" in what context? What are you writing/doing?
19:08
<@celticminstrel>
Extracting pixel data from a PICT resource in memory.
19:14
<&ToxicFrog>
Stuff is packed end to end, find start of next by reading <length> bytes from start of previous and then applying padding, a la RES?
19:14
<&ToxicFrog>
Short version: while (ptr % 4) ++ptr;
19:15 Kindamoody is now known as Kindamoody|afk
19:15
<@celticminstrel>
I don't recall seeing a length field in the pixmap opcode.
19:15
<@celticminstrel>
% doesn't appear to work on pointers.
19:15
<@celticminstrel>
I suppose I could cast it to an integer.
19:16
<@celticminstrel>
Oh hey, there's an std::align, I wonder if that'll do what I want.
19:16
<~Vornicus>
PICT resources. Are you back at the blades of exile source here?
19:17
<@celticminstrel>
Yup.
19:29
<&ToxicFrog>
If there's no length field how do you know how long it is?
19:32
<@celticminstrel>
It's terminated by 00 FF (the "end picture" opcode).
19:33
<@celticminstrel>
I do have the size of the whole resource, but I don't think I have the size of the pixmap opcode.
19:37
<&ToxicFrog>
Aah.
19:40 * ErikMesoy siiiighs at the complang's professor's choice of examples.
19:40
<@ErikMesoy>
Never/RB gonna/MD+TO give/VB you/PRP up/RP
19:47 Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has quit [[NS] Quit: brb]
19:50 Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has joined #code
19:50 mode/#code [+o Alek] by ChanServ
20:03 Kindamoody|afk is now known as Kindamoody
20:12
<@celticminstrel>
Well. It... sort of works.
20:14 Kindamoody is now known as Kindamoody[zZz]
20:15
<@celticminstrel>
But why am I getting SIGABRT on closing the resource file...
20:18
<@celticminstrel>
Oh! I'm not supposed to dispose handles that I get from the resource manager.
20:24
<@celticminstrel>
And now I'm getting an error in library code.
20:55 Reivles [orthianz@Nightstar-3tp.juj.184.203.IP] has quit [Ping timeout: 121 seconds]
21:08
<&McMartin>
celticminstrel: entropy in information theory represents how "disordered"/"random-looking" a bitstream is
21:08
<&McMartin>
As such, it's a similar concept to the thermodynamic one, with the ironic twist that the more random-lookinga bitstream is, the more information it contains
21:09
<&McMartin>
"high information/high entropy" being basically synonymous with "does not compress well"
21:10
<@ErikMesoy>
That rage when the sample code in the textbook throws an error in a murky library :V
21:26
<@celticminstrel>
What's the right command to filter input and eliminate lines matching a pattern? grep -v does it, but exits with status 1 if no matching lines were found.
21:28
<@celticminstrel>
Hm, I'm not sure this error is in the library code at all; it's occurring in a different thread.
21:30
<@celticminstrel>
EXC_BAD_INSTRUCTION in thread CFPreferences Background Sync Queue.
21:31
<@celticminstrel>
With code=EXC_I386_INVOP, subcode=0x0.
21:31
<@celticminstrel>
That I386 looks vaguely suspicious, since I thought this was compiled as 64-bit.
21:34
<@celticminstrel>
Sometimes the thread is called "com.apple.root.default-overcommit-priority".
21:38
<@celticminstrel>
Maybe it's just interacting poorly with the debugger?
21:38
<@celticminstrel>
I dunno.
21:42
<@celticminstrel>
I think I'm converting the pixel data wrong.
21:43
<@celticminstrel>
Some colours are totally mangled, but others are correct.
21:46
<@celticminstrel>
I guess that's not the pixel data, then, since it's indexed colour.
21:50 Number3 is now known as AnnoDomini
21:51
<@celticminstrel>
Oh, maybe I'm indexing the colour table wrong...
21:52 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
22:00 FurryHelix [tamber@furryhelix.co.uk] has joined #code
22:00
<@celticminstrel>
That does not appear to be the issue.
22:00 Tamber [tamber@furryhelix.co.uk] has quit [Connection closed]
22:02 FurryHelix is now known as Tamber
22:02 mode/#code [+o Tamber] by ChanServ
22:05 HotShot^Work [HotShot^Wor@Nightstar-v7se27.try.wideopenwest.com] has joined #code
22:27
<@celticminstrel>
I may have found the issue. I was using signed types as indices.
22:40
<@celticminstrel>
Works! \o/
22:56
<&McMartin>
http://www.cnet.com/how-to/which-sites-have-patched-the-heartbleed-bug/
23:09
<@celticminstrel>
Tuple unpacking in C++. (Or pair unpacking in this case.) Whee!
23:38 FurryHelix [tamber@furryhelix.co.uk] has joined #code
23:38 Tamber [tamber@furryhelix.co.uk] has quit [Connection closed]
--- Log closed Sat Apr 12 00:00:09 2014
code logs -> 2014 -> Fri, 11 Apr 2014< code.20140410.log - code.20140412.log >

[ Latest log file ]