IRC logs for #opendune on OFTC at 2010-02-10
            
04:06:18 *** Xaroth has quit IRC
04:14:29 *** Xaroth has joined #openDune
04:14:29 *** ChanServ sets mode: +o Xaroth
04:29:03 *** glx has quit IRC
07:21:44 <Xaroth> o/
08:46:06 <Xaroth|Work> pompiedom
10:46:56 <TrueBrain> +whoho
10:47:07 <TrueBrain> even at my parents I can connect to here
11:09:21 <TrueBrain> boring
11:09:42 <Xaroth|Work> heh
11:09:56 <Xaroth|Work> started some small work on my own api thingie
11:10:06 <TrueBrain> how is that treating you?
11:10:11 <Xaroth|Work> so far I got a nice debug class..
11:10:24 <Xaroth|Work> that does either syslogd, or writing to a logfile
11:10:57 <TrueBrain> WHOHO! :p
11:11:07 <Xaroth|Work> and using an identical-ish format as syslogd is doing
11:11:17 <Xaroth|Work> Feb 10 12:10:56 local bigapi[29170]: [ ERROR][/var/www/bigapi/db.php][25] TEST
11:11:19 <Xaroth|Work> own logfile
11:11:29 <Xaroth|Work> Feb 10 12:08:41 nexus bigapi[29157]: [ ERROR][/var/www/bigapi/db.php][25] TEST
11:11:30 <Xaroth|Work> syslogd
11:11:31 <TrueBrain> spacing error! :p
11:11:41 <Xaroth|Work> no, fixed-width sprintf
11:11:54 <Xaroth|Work> should actually be another space, really
11:12:13 <TrueBrain> but so it will be php :p
11:12:15 <TrueBrain> good luck ;)
11:12:31 <Xaroth|Work> but left-alligned looks better..hm
11:12:38 <Xaroth|Work> well, the thing is, the django thing looks nice
11:12:42 <Xaroth|Work> but I don't know python :P
11:12:57 <TrueBrain> haha :) I know :)
11:13:34 <Xaroth|Work> and I really hate it that there's no php equivalent of django
11:13:44 <TrueBrain> there are plenty
11:13:57 <Xaroth|Work> plenty that work properly?
11:14:46 <Xaroth|Work> I've tried a few in the past, but most of them just pissed me off constantly
11:14:56 <Xaroth|Work> almost makes me want to go learn python instead
11:14:59 <TrueBrain> Cake, PRADO, ..
11:16:55 <Xaroth|Work> hm
11:16:59 * Xaroth|Work will look into those
11:17:02 <Xaroth|Work> after lunch!
11:18:15 <TrueBrain> but learn Python
11:18:18 <TrueBrain> much more suitable for the job
11:51:45 <Xaroth|Work> meeeeh :P
11:52:20 <Xaroth|Work> that'll take ages tho
11:52:36 <Xaroth|Work> unless it's somewhat similar to something I know.. like php or C(#)
11:53:51 <Xaroth|Work> openttd.org isn't even listed on djangosites.org :o
12:02:29 <Xaroth|Work> TrueBrain: am I correct to assume that the django-eve thing you fiddled around with is an entire project?
12:02:43 <Xaroth|Work> as in, if i want to test, do i need to much around with my own stuff and add that, or use that as a base
12:02:54 <Xaroth|Work> and yes, I'm actually trying python...
12:08:45 <Xaroth|Work> and I'm not sure if I totally get the automagic creation of properties/whatever on classes.. but I'm sure the other tutorials show that
12:20:31 <Xaroth|Work> Because the URL patterns are regular expressions, there really is no limit on what you can do with them. And there's no need to add URL cruft such as .php -- unless you have a sick sense of humor, in which case you can do something like this:
12:20:35 * Xaroth|Work laughs
12:48:23 <TrueBrain> hehe
12:48:34 <TrueBrain> I have a Django project yes, which does the base
12:49:32 <TrueBrain> just not here :p
12:50:43 <Xaroth|Work> heh
12:50:50 <Xaroth|Work> I'll need to fiddle around with it anyhow
12:52:08 <Xaroth|Work> btw, they might want to change the ruling regarding new-recruits to allow either IRC or forum access.. most likely IRC as that has the least critical information
12:52:17 <Xaroth|Work> I'll keep you informed when everybody agrees ofc
12:52:52 <TrueBrain> hehe ...
12:53:04 <TrueBrain> well, I read yesterday Tal did a background check on me :p
12:53:38 <Xaroth|Work> I gave them the hint that for the two new-recruits it's pretty hard to get some information, and that we should consider giving them access to more than just corp and big-friends ingame channel
12:54:07 <TrueBrain> would be .... sane .. nah .. useful .. nah .. needed? p
12:55:41 <Xaroth|Work> useful i'd go for :)
12:56:29 <TrueBrain> k, useful ;)
13:01:43 <Xaroth|Work> thar
13:13:29 *** glx has joined #openDune
13:13:29 *** ChanServ sets mode: +o glx
13:13:35 <glx> hello
13:13:42 <TrueBrain> morning :)
13:15:01 <glx> I noticed some "read errors" during intro :)
13:15:23 <TrueBrain> really?
13:15:26 <glx> but it's ok (reading 0 elements of course returns 0)
13:15:43 <glx> called with length=0
13:15:48 <TrueBrain> what? Really? :p
13:15:54 <TrueBrain> maybe we should make it return 0 :p
13:16:11 <TrueBrain> but ... did you check if the request was really for 0 length, or that if it tried to read after the file?
13:16:25 <glx> the request was 0
13:16:35 <glx> breakpoint on the error printing
13:16:46 <glx> so before length reset
13:17:33 <TrueBrain> let me see ..
13:17:35 <TrueBrain> where in the intro?
13:17:55 <glx> mostly at the ordos phase
13:18:19 <TrueBrain> k ... need to fix OSX first
13:18:33 <TrueBrain> has no endian file :s
13:19:17 <glx> your mac is LE I guess
13:20:21 <Xaroth|Work> o/ glx
13:20:39 <TrueBrain> yup, but the include tree fails
13:21:11 <glx> ok 1 read error for "the insidious ordos" (second rocket launch)
13:22:45 <TrueBrain> there, fixed OSX compile
13:22:50 <TrueBrain> lets see if it produces correct files
13:24:09 <glx> and 2 for "and the evil harkonnens"
13:25:34 <TrueBrain> k, saving and loading works for LE
13:25:36 <TrueBrain> no idea about BE
13:26:41 <DorpsGek> SVN: truebrain (r879) -Fix: compile on OSX again
13:29:01 <glx> btw I did some C-ification : http://svn.opendune.org/~glx/temp.patch
13:32:00 <TrueBrain> please put "" around 'sound' when it is a string in the comments
13:32:27 <glx> it's not a string :)
13:32:35 <glx> it's the struct
13:32:48 <TrueBrain> then please make it g_global->sound
13:32:59 <glx> it's the local variable name
13:34:05 <TrueBrain> hmm .. then add that :p
13:34:11 <TrueBrain> no, it comes from 353F
13:34:13 <TrueBrain> cant be local
13:34:31 <glx> sound = &g_global->soundDriver
13:34:33 <TrueBrain> emu_push(0x353F); emu_push(0x6302); /* sound */
13:34:37 <TrueBrain> talking about that comment
13:35:07 <glx> yes but it is the local one in this C-ification ;)
13:35:31 <TrueBrain> then the push is wrong
13:35:38 <TrueBrain> you push here 353F:6302
13:36:14 <Xaroth|Work> Python isn't even half bad
13:36:16 <glx> same as sound (g_global->soundDriver)
13:36:23 <Xaroth|Work> if you don't look at the annoying tabbed-style of coding
13:36:30 <TrueBrain> so please add in the comment the g_global one, as that is the one you attach :)
13:36:41 <TrueBrain> Xaroth|Work: the tabbed stuff is STUPID and annoying
13:36:49 <Xaroth|Work> at least we agree on that! :P
13:36:53 * Xaroth|Work prefers { }
13:36:59 <TrueBrain> me too
13:37:12 <Xaroth|Work> heck if/fi from bash is more readable than tabs :/
13:37:26 <TrueBrain> glx: btw, why make it a local var?
13:37:37 <TrueBrain> seems to cause more confusion then use, for the amount of use :)
13:37:44 <TrueBrain> Xaroth|Work: again, I agree :p
13:37:59 <Xaroth|Work> we seem to agree a lot, today :P
13:38:03 <TrueBrain> scary
13:38:05 <Xaroth|Work> quite
13:38:32 <glx> for easier reading
13:39:27 <TrueBrain> glx: dunno ...
13:39:58 <glx> it's used 2 times in the function
13:40:05 <TrueBrain> only 2 times, yes
13:40:52 <TrueBrain> but either way, the comment should really be g_global->soundDriver, as that is what you push
13:40:56 <TrueBrain> not the local var :)
13:41:02 <TrueBrain> but that can give confusion when translating that subfunction
13:41:14 <TrueBrain> so it is an annoying situation ;)
13:41:19 <glx> local var is a pointer anyway ;)
13:41:34 <glx> and the translation will use a pointer too
13:41:48 <TrueBrain> k .. then at least make clear it is a local var :)
13:42:45 <TrueBrain> for the rest, really nice job
13:43:08 <glx> ./* g_global->soundDriver (same as local variable sound) */
13:43:12 <glx> clear enough ?
13:43:56 <TrueBrain> perfect :)
13:44:01 <TrueBrain> also for music of course
13:44:08 <glx> yup
13:45:35 <TrueBrain> nice progress on the sound
13:45:44 <TrueBrain> getting anywhere near skipping a MTU emulator?
13:46:27 <glx> I tried sending MIDI data directly in windows API but that didn't work
13:47:11 <TrueBrain> is it true midi?
13:47:34 <glx> mpu driver sends real midi data
13:48:25 <DorpsGek> SVN: truebrain (r880) -Fix: the game tries to read 0 bytes from file from time to time. Just ignore those requests
13:48:39 <TrueBrain> that sounds good
13:48:48 <TrueBrain> then you only need something that allows playback :)
13:48:52 <TrueBrain> cant SDL?
13:49:51 <TrueBrain> SDL_mixer seems to be able
13:50:29 <glx> needs timidity
13:50:36 <TrueBrain> SDL_sound?
13:52:14 <glx> "Support for decoding MIDI music files (.MIDI, .MID)" <-- but we don't have "real" midi files
13:52:35 <glx> we have raw midi commands for now
13:52:46 <TrueBrain> wouldnt be able to handle that?
13:54:21 * SmatZ rembers he extracted midi files from pak
13:54:27 <SmatZ> they sounded... funny
13:54:54 <TrueBrain> hehe
13:55:00 <TrueBrain> glx: asla can handle it
14:28:16 <DorpsGek> SVN: glx (r881) -Add: C-ified some sound drivers functions
16:23:37 <glx> http://svn.opendune.org/~glx/temp.patch <-- more C-ification (and some ugly hacks)
16:36:47 <Xaroth|Work> learning django is still a pain
18:52:52 *** Xaroth_ has joined #openDune
18:59:50 *** Xaroth has quit IRC
19:06:10 *** Xaroth_ is now known as Xaroth
19:39:58 * Xaroth yawns
20:07:38 <Xaroth|Work> hm
20:07:46 <Xaroth|Work> time to clean up this laptop a bit
20:31:12 *** Yexo_ has joined #openDune
20:31:12 *** ChanServ sets mode: +v Yexo_
20:32:25 *** Yexo has quit IRC
20:53:02 <Xaroth|Work> Python datetime object in the given format (as found in PHP's date function; yes, there is one good idea in PHP).
20:53:05 <Xaroth|Work> hah
21:15:08 <TrueBrain> uint16 f= e <- missing space
21:15:24 <TrueBrain> for (;;csip.s.ip += 4) { <- missing space: (;; csip ...)
21:15:52 <TrueBrain> hackish: yes
21:15:53 <TrueBrain> rest looks good
21:17:41 <Xaroth|Work> o/ TrueBrain
21:19:02 <TrueBrain> okay ... somehow after my system updat eI lost XFCE4 .. let me try to recover that
21:19:16 <Xaroth|Work> xfce4?
21:28:37 <TrueBrain> like KDM en GNOME
21:28:39 <TrueBrain> only faste
21:28:40 <TrueBrain> r
21:43:47 *** Yexo_ is now known as Yexo
22:15:10 <DorpsGek> SVN: glx (r882) -Add: C-ified Drivers_CallFunction() and Drivers_GetFunctionCSIP() (used to call a function inside loaded .adv)
22:15:37 <TrueBrain> that last function should some day be gone of course
22:15:39 <TrueBrain> but .. details
22:16:40 <glx> all this C-ification is just to understand how it works ;)
22:16:46 <glx> then there will be cleaning
22:16:48 <TrueBrain> yup, that I assumed ;)
22:16:57 <TrueBrain> nice progress btw :)
22:17:24 <glx> I'm on f__1DD7_12CE_0018_7A26() now
22:17:37 <glx> a nice one ;)
23:27:22 <DorpsGek> SVN: glx (r883) -Fix (r881): emu_cs needs to be correct for JIT