--- Log opened Tue Aug 18 00:00:59 2009 |
00:01 | | Thaqui [~Thaqui@121.98.166.ns-22683] has joined #code |
00:01 | | mode/#code [+o Thaqui] by ChanServ |
00:20 | | Rhamphoryncus [~rhamph@Nightstar-16476.ed.shawcable.net] has joined #code |
00:43 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?] |
01:00 | | Derakon [~Derakon@Nightstar-4912.hsd1.ca.comcast.net] has quit [Operation timed out] |
01:32 | | Kazriko [~kaz@Nightstar-26123.gdj-co.client.bresnan.net] has quit [Ping Timeout] |
01:35 | | Kazriko [~kaz@Nightstar-26123.gdj-co.client.bresnan.net] has joined #code |
02:07 | | Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: @Thaqui, Alek, @SmithKurosaki |
02:11 | | Alek [~omegaboot@Nightstar-7016.dsl.emhril.sbcglobal.net] has joined #code |
02:11 | | SmithKurosaki [~Smith@Nightstar-5638.dsl.teksavvy.com] has joined #code |
02:11 | | mode/#code [+o SmithKurosaki] by ChanServ |
02:12 | | Thaqui [~Thaqui@121.98.166.ns-22683] has joined #code |
02:12 | | Derakon [~Derakon@Nightstar-4912.hsd1.ca.comcast.net] has joined #code |
02:46 | | Vornicus is now known as Vornicus-Latens |
03:08 | | GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has quit [Ping Timeout] |
03:09 | | GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code |
03:09 | | mode/#code [+o GeekSoldier] by ChanServ |
04:41 | | Tarinaky_ [~Tarinaky@Nightstar-16638.plus.com] has joined #code |
04:44 | | TarinakyKai [~Tarinaky@Nightstar-16638.plus.com] has quit [Ping Timeout] |
05:30 | | Kazriko [~kaz@Nightstar-26123.gdj-co.client.bresnan.net] has quit [Ping Timeout] |
05:32 | | Kazriko [~kaz@Nightstar-26123.gdj-co.client.bresnan.net] has joined #code |
06:05 | | Syloqs-AFH [Syloq@ServicesAdmin.Nightstar.Net] has quit [Connection reset by peer] |
06:39 | < Derakon> | I didn't think this was possible. |
06:39 | < Derakon> | There's a file in a directory I own that I am not allowed to delete. |
06:39 | < Derakon> | As in, rm -rf gives the error "Operation not permitted". |
06:40 | < Derakon> | The file in question has this output from ls -l: |
06:40 | < Derakon> | -rw-r--r-- 1 chriswei chriswei 25K Nov 7 2004 distribution-license.txt |
06:46 | | * McMartin finally gets home. |
06:46 | | * McMartin was in late playing with a new OS X 10.6 install, though, so it's more or less all good. |
06:46 | < Derakon> | Ahh. |
06:47 | <@McMartin> | 10.6 is looking to be Apple's Vista. Looks about the same except for breaking the shit out of everything, but most of those things needed breaking in the first place. |
06:47 | < Derakon> | Such as? |
06:47 | <@McMartin> | Mandatory 32-bit dependencies, mostly. |
06:47 | <@McMartin> | APIs that were holdovers from OS 9. |
06:48 | < Derakon> | Carbon's dead, then? |
06:48 | <@McMartin> | Not entirely, but it's getting there. |
06:48 | <@McMartin> | CoreFoundation is unlikely to be going anywhere, though, and that's generally "part of Carbon" |
06:48 | <@McMartin> | We were seeing crashes in stuff generated by libc++, however, which is somewhat alarming. |
06:49 | <@McMartin> | Having tracked one of those down, I deemed it Time To Go Home. |
06:49 | < Derakon> | Given that it's 22:48 now? Yeah. |
06:49 | <@McMartin> | Tomorrow I can look into actually rebuilding that binary with the 10.6 devtools and see if that magically fixes it |
06:49 | <@McMartin> | I give it a good 30% chance of doing so. |
06:49 | <@McMartin> | The question remains whether the result will run on 10.5. |
06:50 | < Derakon> | Don't you just love having multiple different versions of your program for what is nominally the same OS? |
06:50 | <@McMartin> | (The bits of Carbon that were removed in 10.6 were actually officially deprecated in 10.5, so that's unlikely to be a problem) |
06:50 | <@McMartin> | 10.4 and 10.6 aren't really the same OS~ |
06:50 | <@McMartin> | No more than Win2k and Vista are, anyway. |
06:51 | < Derakon> | Mph. |
06:52 | <@McMartin> | 10.5 is recognizably a patched version of 10.4. 10.6 has a lot of source continuity but the binaries are wildly different. |
06:52 | <@McMartin> | (Since the kernel and most of the system libraries become 64-bit by default in it) |
06:52 | <@McMartin> | 10.5 was where the heavy extension went in though. |
06:53 | <@McMartin> | So far, though, my experience with 10.6 is telling me "if 10.5 is working for you there's seriously no reason to upgrade." |
06:54 | < Derakon> | Hell, 10.4 is working for me. |
06:54 | <@McMartin> | 10.5 is at least noticably shinier than 10.4 |
06:54 | <@McMartin> | And has some other fairly significant extensions like a garbage-collection-enabled version of Cocoa |
06:55 | < Derakon> | Mmm...my laptop is running 10.5 and the only major difference I've noted is that Firefox doesn't correctly limit itself to form fields when I hit tab. ¬.¬ |
06:55 | < Derakon> | Granted I don't use the lappy much. |
06:55 | <@McMartin> | Firefox is terrible~ |
06:55 | <@McMartin> | More seriously, 10.5 is where the OS 9 stuff got deprecated and the newer APIs got first introduced. |
06:55 | <@McMartin> | Which means that 10.4 is going to hit a point where stuff Stops Working much more quickly than 10.5 does. |
06:56 | < Derakon> | ISTR getting a warning when I run Jetblade on the lappy about using some deprecated API... |
06:56 | < Derakon> | I hope PyGame gets updated on time. |
06:56 | <@McMartin> | 10.5's Finder and Dock have prettier options. |
06:56 | < Derakon> | Er, in time. |
06:56 | <@McMartin> | That's SDL, not PyGame; QuickDraw is still alive in 10.6, I think. |
06:56 | <@McMartin> | I didn't check today; I should. |
06:56 | < Derakon> | Ahh, okeyden. |
06:57 | <@McMartin> | SDL already has a Quartz backend but it's not the default, IIRC. |
06:59 | <@McMartin> | The stuff that's going away in 10.6 is stuff like bits of the "customizable Print Manager UI pages" stuff in Carbon |
06:59 | < Derakon> | Well, so long as it isn't tiresome to switch to, I've no concern. |
07:00 | <@McMartin> | As far as you're concerned, it's going to be "set an environment variable", if that. |
07:00 | < Derakon> | Great. |
07:00 | < Derakon> | I can set up my own development environment with a fair amount of skill, but I don't want Jetblade to be hard to contribute to. |
07:00 | <@McMartin> | (This already happens on Windows; some graphics cards are terrible at DirectDraw and you have to set the environment variable to use WinDIB instead) |
07:05 | <@McMartin> | ... hmm. |
07:05 | | * McMartin logs into his work machine to check one last thing |
07:05 | <@McMartin> | <-- obsessive, but it's for SCIENCE, so. |
07:07 | < Derakon> | I hope to have a SCIENCE job myself~ |
07:08 | < Derakon> | Sadly, the only salary guidelines I found for UCSF are here: http://grants.nih.gov/grants/guide/notice-files/NOT-OD-09-075.html |
07:12 | | You're now known as TheWatcher |
07:15 | < Derakon> | T-2, all. |
07:20 | | * TheWatcher readsup, eyes that file |
07:23 | | Derakon is now known as Derakon[AFK] |
07:33 | | Namegduf [~namegduf@Nightstar-9056.infra.grepnet.cz] has quit [Quit: Headin' out.] |
08:09 | | Orthia [~Orthianz@Nightstar-22194.xdsl.xnet.co.nz] has joined #Code |
08:10 | | You're now known as TheWatcher[afk] |
09:24 | | Tarinaky_ [~Tarinaky@Nightstar-16638.plus.com] has quit [Client exited] |
09:29 | | Tarinaky [~Tarinaky@Nightstar-16638.plus.com] has joined #code |
09:56 | | You're now known as TheWatcher |
11:01 | | You're now known as TheWatcher[d00m] |
12:03 | | You're now known as TheWatcher |
12:26 | | Attilla [~The.Attil@92.16.127.ns-3667] has joined #code |
12:27 | | mode/#code [+o Attilla] by ChanServ |
12:55 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code |
12:56 | | mode/#code [+o gnolam] by ChanServ |
12:56 | | * TheWatcher readsup some more, notes that while "firefox is terrible" it's actually doing what the WAG says it should do. |
12:57 | | Thaqui [~Thaqui@121.98.166.ns-22683] has quit [Client exited] |
13:32 | < Orthia> | WAG? |
13:33 | <@TheWatcher> | the Website Accessibility Guidelines published by the W3C |
13:34 | | Rhamphoryncus [~rhamph@Nightstar-16476.ed.shawcable.net] has quit [Quit: Rhamphoryncus] |
14:55 | | You're now known as TheWatcherafk] |
14:55 | | You're now known as TheWatcher[afk] |
15:58 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Client exited] |
16:04 | | Namegduf [~namegduf@Nightstar-9056.infra.grepnet.cz] has joined #code |
16:07 | | Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code |
16:08 | | Syloqs_AFH is now known as Syloqs-AFH |
16:39 | | Namegduf [~namegduf@Nightstar-9056.infra.grepnet.cz] has quit [Quit: Rebooting for new-er, old kernel.] |
16:46 | | Namegduf [~namegduf@Nightstar-9056.infra.grepnet.cz] has joined #code |
17:07 | | cwo__bersahabat [~Geek@218.56.64.ns-11484] has joined #code |
17:08 | | You're now known as TheWatcher |
17:21 | | Derakon[AFK] is now known as Derakon |
18:03 | | mode/#code [+b *!*@218.56.64.ns-11484] by Attilla |
18:03 | | cwo__bersahabat was kicked from #code by Attilla [BOT] |
18:24 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
18:24 | | mode/#code [+o ToxicFrog] by ChanServ |
18:51 | | GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has quit [Ping Timeout] |
18:54 | | GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code |
18:54 | | mode/#code [+o GeekSoldier] by ChanServ |
19:34 | < Derakon> | Ahh, this is a fun error to get. |
19:34 | < Derakon> | ls: .: No such file or directory |
20:10 | | Rhamphoryncus [~rhamph@Nightstar-16476.ed.shawcable.net] has joined #code |
20:13 | | Netsplit DeepThought.NY.US.Nightstar.Net <-> Troika.TX.US.Nightstar.Net quits: @MyCatVerbs, @gnolam, @Consul, @Attilla, @Vornicus-Latens, Orthia, Alek, @SouthernMyst, @jerith, Kazriko, (+3 more, use /NETSPLIT to show all of them) |
20:16 | | Netsplit over, joins: Chalain, jerith |
20:16 | | mode/#code [+o Chalain] by ChanServ |
20:16 | | Netsplit over, joins: MyCatVerbs |
20:16 | | mode/#code [+o jerith] by ChanServ |
20:16 | | Netsplit over, joins: SouthernMyst |
20:16 | | Netsplit over, joins: Consul |
20:16 | | mode/#code [+o MyCatVerbs] by ChanServ |
20:16 | | Netsplit over, joins: Reiver |
20:16 | | mode/#code [+o Consul] by ChanServ |
20:16 | | Netsplit over, joins: Vornicus-Latens |
20:16 | | Netsplit over, joins: Alek, SmithKurosaki |
20:16 | | mode/#code [+o Reiver] by ChanServ |
20:16 | | Netsplit over, joins: Kazriko, Orthia, Attilla |
20:16 | | mode/#code [+o SmithKurosaki] by ChanServ |
20:16 | | Netsplit over, joins: gnolam |
20:16 | | mode/#code [+o Attilla] by ChanServ |
20:16 | | ServerMode/#code [+o Vornicus-Latens] by Troika.TX.US.Nightstar.Net |
20:16 | | ServerMode/#code [+o SouthernMyst] by Troika.TX.US.Nightstar.Net |
20:16 | | mode/#code [+o gnolam] by ChanServ |
20:16 | | mode/#code [-o Vornicus-Latens] by ChanServ |
20:16 | | mode/#code [-o SouthernMyst] by ChanServ |
20:17 | | Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: Namegduf, Derakon, Rhamphoryncus |
20:18 | | mode/#code [+o Derakon] by ChanServ |
20:18 | | Netsplit over, joins: Derakon, Namegduf, Rhamphoryncus |
20:25 | | Vornicus-Latens is now known as Vornicus |
20:28 | < Vornicus> | Der: how did you pull that one off? |
20:28 | <@Derakon> | By removing the directory I was working in. |
20:29 | < Vornicus> | aha |
21:46 | | AnnoDomini [~farkoff@Nightstar-29407.neoplus.adsl.tpnet.pl] has joined #Code |
21:46 | | mode/#code [+o AnnoDomini] by ChanServ |
21:51 | | AnnoDomini [~farkoff@Nightstar-29407.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
21:53 | | * Derakon extends the splashscreen a bit, hooks it into the logging framework. |
21:58 | <@Derakon> | Hmm...so I have a SoundManager class that has a mapping of sound names to PyGame Sound objects. The sound name is simply the (relative) path to the sound. Currently I call SoundManager.playSound(soundName) to play a specific sound. I want to also be able to call SoundManager.playSound(nameOfDirectoryOfSounds) to play a randomly-selected sound from the sounds in the directory. |
21:59 | <@Derakon> | BRB phone. |
22:01 | <@Derakon> | Okay, so it seems like I have two options: have playSound check to see if the name passed to it points to a list of sounds or a single sound, and in the former case, pick one at random; or have a playSoundGroup function that assumes that the name of a group of sounds is passed in. |
22:01 | <@Derakon> | I'd like the former from a usability standpoint, but checking the types of variables directly always struck me as a bit hacky. |
22:01 | <@Derakon> | I suppose I could have two mappings; one for sound groups and one for single sounds, and check presence in those two mappings to determine behavior... |
22:16 | <@McMartin> | Hm. |
22:17 | <@McMartin> | Derakon, just a note: Stuff compiled on a 10.6 machine will work on 10.5 but not 10.4; they changed some of the ABIs, with 10.5 speaking both |
22:17 | <@McMartin> | Not fully sure what's up with that. |
22:17 | <@Derakon> | Unfortunate. |
22:17 | <@McMartin> | But I'm getting warnings about it. |
22:17 | <@McMartin> | Some of it's because of ObjC 2.0, I think, and I suspect they compiled them in ways that violate the old spec |
23:08 | < Rhamphoryncus> | Derakon: I'd call it playRandomSound |
23:10 | <@Derakon> | I ended up going with two dicts. |
23:12 | < Rhamphoryncus> | how so? |
23:12 | <@Derakon> | One for individual sounds, one for lists. |
23:12 | <@Derakon> | So playSound first checks the dict of individual sounds, then the sound lists. |
23:12 | < Rhamphoryncus> | how are you randomly picking one? I'm concerned about performance |
23:12 | <@Derakon> | So if you play e.g. "player/attacks/swoosh.ogg" you'll get the same sound always, but "player/attacks" will pick a random attack sound. |
23:13 | <@Derakon> | random.choice(self.nameToSoundListMap[soundName]).play() |
23:13 | < Rhamphoryncus> | oh, so the second is a list of sounds? |
23:13 | <@Derakon> | Right. |
23:13 | < Rhamphoryncus> | okay, that's fine |
23:13 | <@Derakon> | It's a list of all of the sound objects that are under the named directory. |
23:14 | < Rhamphoryncus> | Storing the sound names in a set is the "obvious" choice, but there's no API for random lookups. You'd have to convert it to a list every time :/ |
23:15 | <@Derakon> | Heh. |
23:16 | <@Derakon> | Given that I'm using the sound's path as a key, I don't think sets would actually gain me anything here. |
23:16 | < Rhamphoryncus> | not for this use, no :) |
23:19 | < Rhamphoryncus> | more of a peeve of mine than anything else |
23:19 | <@Derakon> | What, the lack of a random selection from a set? |
23:21 | < Rhamphoryncus> | yeah |
23:47 | < Vornicus> | It peeves me as well! |
--- Log closed Wed Aug 19 00:00:13 2009 |