Thursday, 2007-08-23

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
nashDystopicFro: Survey done...00:14
nashMy apologies for the delay00:14
mithronash: cool00:26
nashWhich reminds me -00:43
nashI have 0. something tag00:43
nashSo galaxie can have a release before it goes TP04 wards...00:43
CIA-23nash galaxie * r001b512b1c01 /todo.txt: Todo updated00:45
CIA-23nash galaxie * re20ba99253b0 /tpe_msg.c: tpe_msg.c: Start work on protocol4.00:45
mithroI want to have a Minisec game to the end before I start adding tp04 support00:58
nashGood - different goals is a good thing ;-)01:01
nashI want to get browsing going.01:01
greywhindhey - mithro, you there?01:03
nashBasically should not be too nasty a UI thing to get etk/ewl01:03
nashintegration working properly01:03
mithrogreywhind: yeah01:04
mithronash: I think thousand parsec is pretty pointless if we can't even finish a game :)01:04
greywhindmithro: what's the _("<string here>") format? is that a function you defined? or a python thing?01:04
nashmithro: Trrue01:05
mithroand minisec is a trivial example of a game01:05
nashBut then again to be frank most humans know when the game is over ;-)01:05
mithrogreywhind: it's called "gettext"01:05
nashgreywhind: Standard gettextization of the text.01:05
mithrobasically the _() function returns a translated version of that string01:05
mithrofor english it's basically a NOp01:06
greywhindmithro: is it defined in one of the tpclient files or in an import from base python?01:06
mithroit's part of the gettext module01:07
mithroimport __builtin__01:08
greywhindmithro: so... import gettext?01:08
mithrotry:01:08
mithro        import gettext01:08
mithro        __builtin__._ = gettext.gettext01:08
mithroexcept ImportError, e:01:08
mithro        print e01:08
mithro        def _(s):01:08
mithro                return s01:08
mithro        __builtin__._ = _01:08
mithro        reason = "Without gettext support localisation will be disabled."01:08
mithro        if system == "debian-based":01:08
mithro                recommended.append(("Python gettext should come with Python, please check your python install", reason))01:08
mithro        else:01:08
mithro                recommended.append(("Python with gettext enabled.", reason))01:08
greywhindmithro: ah - thanks01:08
mithrofrom what I am seeing, I think you are probably going about this the wrong way01:09
greywhindmithro: what would you suggest?01:09
mithrothe best way to start is "to just get coding"01:09
greywhindmithro: maybe, but i have to have some understanding of the structure to know where to add things01:10
mithrotake a copy of something like the "winDesign" window01:10
mithrostrip out everything01:10
mithroand proceed from there01:10
greywhindmithro: alright. i'll try that tomorrow01:11
mithroI've found the best way to learn what things do is to modify the code and see the results01:11
mithroand when you can't figure out why the stupid thing isn't working, ask me :P01:12
greywhindmithro: you're right, playing with it is probably the best way... i just felt like I had to have some idea of the code base and style first.01:12
mithrogreywhind: sure, but things like getting the gettext stuff right is easy to add in later01:13
mithroyou will want to have a play with XRCed if you need to create any widget layouts01:14
greywhindmithro: true. it was just bugging me that i didn't know what that _("<string>") syntax did01:14
mithrogreywhind: btw, did you end up adding the rest of those tasks to the todo tracker?01:14
greywhindmithro: hmm... no, forgot to do that. i'll do it now.01:15
mithroit's not like you can destory anything01:16
mithroworse comes to worse you just reset the repository01:16
greywhindmithro: right01:16
greywhindmithro: alright... got the simple tasks in. I should sleep now, though.01:48
mithrogreywhind: okay01:49
*** xdotx has joined #tp01:54
mithrohey xdotx02:14
mithroyou interstate now?02:14
*** xdotx has quit IRC02:14
nashmithro: Sounds like a yes02:29
mithro:P02:31
mithroso, pending paperwork I should be gainfully employed02:34
nashCongrats02:46
mithrosadly not going Thousand Parsec or Open Source work :/02:48
*** llnz has joined #tp03:21
mithrohey llnz03:26
llnzhi mithro03:26
mithrollnz: so you won a game against tpsai-py yet?03:26
mithrollnz: did you see that niphree added back-connect support?03:27
llnznope, haven't really had time03:27
llnzyeah, saw that (both in git emails and on my server sometimes)03:27
mithropending paper I will soon be gainfully employed03:27
llnzcool03:27
llnzi've nearly picked up a second contract03:28
*** nash has quit IRC03:43
*** niphree has joined #tp04:09
niphreehello04:09
llnzhi niphree04:11
llnzls04:11
mithrohi niphree04:27
mithrohow is it going?04:27
niphreehey mithro04:28
niphreeI thought I saw some errors just before I go to sleep. but now theres none. I don't know if it's good :]04:29
Epyonyo niphree ;]04:31
niphreeyo Epyon :P04:33
mithroniphree: so how goes the cleanup?04:38
niphreemithro: now adding okey frame04:40
mithrocool04:40
mithroniphree: had a chance to test out some of the code beautifier?04:46
llnzmithro: at some point can we have a quick chat about Media.gz04:52
niphreemithro: I use it for change all tabs to 2 spaces04:53
mithrollnz: sure, but I have people over at the moment04:53
llnzit can wait04:53
mithroyou see the stuff in the wiki?04:54
mithrohttp://www.thousandparsec.net/wiki/Media.gz04:54
tpbTitle: Media.gz - Thousand Parsec Wiki (at www.thousandparsec.net)04:54
llnzyeah04:54
llnzkinda what i will talk to you about04:54
llnzbrb04:55
llnzback05:12
CIA-23niphree /tmp/ZpjIFMeBFq/IYzN0LsHLM-rewrite * r1ac4eef8c5dc / (connect.php index.php):05:12
CIA-23metaserver write OKAY frame at end of back-connect05:12
CIA-23via git-CVS emulator05:12
niphreeafk05:12
*** niphree is now known as niphree_afk05:12
llnzniphree?05:12
niphree_afk?05:13
llnzask me later05:13
niphree_afkok05:13
mithrohey llnz05:37
mithroniphree's metaserver should return a Tp04 Okay frame when the registration to the metaserver is successful05:37
mithrollnz: it also supports tp04 stuff05:38
mithroTBBle: ping?05:52
*** Baby has joined #tp06:03
Babyhi!06:03
mithroeveryone, this is Baby - she would like to help us get into debian06:04
mithroso, what is the fastest way to get into debian :P06:06
jothamhey mithro06:11
mithrojotham: so how goes the blowing up of stuff :P06:12
jothamlike i said, that'll be a while06:12
jothamright now i'm writing an algo for arranging the fleets during a battle06:12
jothami just made a really nasty list comprehension, it amuses me it's pretty unmaintainably bad, here:06:12
mithroo, btw on the move in battleviewer front - it would more like chess piece moves, rather then real X,Y coords06:13
mithrobut that is a fairly long way off06:13
jothamfiltered_sizes = [len(entities) for entities in [[entity for entity in side.itervalues() if not entity.type == 'planet'] for side in sides.itervalues()]]06:14
mithrobrb cake06:15
*** niphree_afk is now known as niphree06:16
llnzmithro: ahh, cool06:17
llnzhi Baby06:17
jothamguess no one was remotely remused by my list comprehension :p06:19
llnzwb niphree06:19
llnzjotham: hold on a second while i parse it to haskell06:19
jothami need to learn haskell06:20
niphreemithro: I changed frame (now it's at the and of all updates/inserts)06:23
mithroback06:28
mithrojotham: I'm still trying to figure out how it works :P06:29
jothamheh06:29
jothamit just produces a list with an integer for each side, counting all the entities that arn't planets06:29
jothamso [3,1,2] for example06:29
mithrookay06:30
mithrojotham: so where are we at in regard to getting your new code into the repository?06:30
jothamwe're at the wall of emense and unfathomable procrastination06:31
mithrojotham: so do you want to tar up the repository and give me a link? I'll convert it tonight if you want06:32
jothamheh, uh06:32
jothamno but we will soon06:32
mithroBaby:  so, what is the fastest way to get into debian :P - I'm assuming that we'll need to do some releases soon?06:32
mithrojotham: well, I it won't take me long to do the conversion06:35
*** tuna-fish has quit IRC06:35
mithroniphree: hrm?06:35
*** tuna-fish has joined #tp06:38
CIA-23niphree /tmp/3TTjVEB1iY/3WTw6ojKrl-rewrite * r920944bbef93 / (connect.php index.php):06:38
CIA-23changed OKAY frame position (from end of backconnect to end of all database operations )06:38
CIA-23via git-CVS emulator06:38
mithroniphree: when there is an error, a fail frame should probably be returned too06:39
niphreemithro: what error type ? : Frame::FAIL=> array('type', 'desc');06:40
mithroyou probably want to convert the code to use exceptions instead of die()06:41
niphreeis there some kind of 'metaserver error' ?06:41
mithro# 0 - Protocol Error, Something went wrong with the protocol06:41
mithro# 1 - Frame Error, One of the frames sent was bad06:41
mithro# 2 - Unavailable Permanently, This operation is unavailable06:41
mithro# 3 - Unavailable Temporarily, This operation is unavailable at this moment06:41
mithro# 4 - No such thing, The object/order/message does not exist06:41
mithro# 5 - Permission Denied, You don't have permission to do this operation06:41
mithrothey are the currently defined types06:41
mithroniphree: have you use exceptions in PHP before?06:42
mithroniphree: probably a good idea to split index.php part too?06:43
niphreeyhm - for: update/get/ and rest06:44
niphreeexceptions - in php, once, to get frame/connect exeptions and disconnect after06:44
mithroyhm?06:44
niphree?06:46
mithrowhat does "yhm" mean?06:46
niphreeyhm == hmm (I sometimes write it in this way :] - it sounds similar in polish)06:47
mithroahh okay06:48
mithroniphree: yeah, maybe split it up into update/get bits?06:49
jothamso just to reconfirm06:49
mithrohttp://au.php.net/exceptions06:49
tpbTitle: PHP: Exceptions - Manual (at au.php.net)06:49
jothammovement stuff is gonna be a fair way off, so i can write an algo for now that positions things in what i deem to be an astheticly pleasing layout?06:49
mithrojotham: yes06:50
jothamok06:50
mithroand I'm fairly sure this algo will probably still work when movement is added anyway06:50
mithroniphree: exceptions are a good way to handle "exceptional" things - IE like fatal errors06:50
mithroit allows you to output nice errors, instead of just dieing with a string06:52
mithrohttp://devzone.zend.com/node/view/id/66606:53
tpbTitle: Exceptional Code - PART 1 (at devzone.zend.com)06:53
mithroniphree: I seem to remeber you did some java?06:57
niphreeyes.06:57
niphreethis is very similar to java exceptions06:58
mithroniphree: yeah, almost exactly the same :P07:01
mithrobtw, the commetting is looking very good07:02
mithrojust might want to run an english spell checker over a few of them07:02
mithrountil I got an inbuilt spell checker in my editor, my comments use to be filled with hundreds of spelling mistakes :)07:03
niphreehehe :] I also make lots of mistake in Polish texts07:06
niphreewhan I write something with my sister she always correct my mistakes07:07
* mithro is a hopless speller07:07
jothamspelling is for the unimaginative07:07
mithrojotham: :)07:07
niphree:D07:07
mithroniphree: what does your sister "do"?07:09
mithrollnz: ping?07:10
mithroI can chat now07:10
niphreestudy, computer science - like me07:11
llnzmithro: pong07:11
llnzright07:11
mithroniphree: you should get her working on Thousand Parsec too! :P07:11
llnznoticed that the latest part, the bottom half of the Media.gz is inconsistent with the top07:11
niphreemithro:  she's on first year, - and will be on second, if she pass all her exams :P07:12
mithroniphree: we always welcome newbies07:12
mithrollnz: it is, how?07:12
niphreemithro: she's.. hmm... I write not all, mostly helping with all of her programs :P but I'll tell her :]07:13
llnzmithro: the hash prefix07:15
niphreellnz: you told me to ask you about something before07:16
llnzniphree: mithro answered it earlier07:16
niphreeok07:17
llnzi couldn't tell what the ok frame was for, i know how07:17
llnzs/how/now/07:17
mithroniphree, llnz is the one to ask about problems in tpserver-cpp :P07:17
mithroon, btw07:17
mithrocould the metaserver_url be a url and not just a host?07:17
llnzmithro: i'll think about it (ie, probably)07:18
mithrollnz: I'm trying to get niphree to make the metaserver return actual proper okay/fail info07:19
llnzcool07:19
*** Demitar has quit IRC07:20
jothamman i need to write some kind of pygame shell or template07:23
jothami always write the samn damn boilerplate code, over and over07:23
mithrojotham: :/07:26
mithrollnz: I made the media.gz page consistent07:26
mithro(specially with the media-new.gz which exists on the current site)07:27
llnzwhy use '-' instead of ':', and why media-new.gz?07:27
mithrobecause tpclient-pywx-dev already understands the '-' ?07:31
mithroI guess it doesn't really matter?07:31
llnzok, just so i know, but media-new.gz?07:31
mithrobecause tpclient-pywx's stable branch reads media.gz07:32
llnzhummm... ok07:32
llnzthere was something else....07:32
mithroso unless we want to break the only "usable" client :P07:32
mithrollnz: I wanted to chat about sn/ln/etc07:32
mithroI think I have managed to confuse myself :P07:33
llnzoh, that's what it was, the .meta files07:34
llnzsure, sn/ln07:34
mithrothe .meta files are basically the single line pertaining to the media with the same name07:34
llnzwhy not just validate old media(-new|).gz file against the new one and remove old file when noticed?07:36
mithrohold on, I'm rewriting it to make more sense07:41
mithrogive that a read...07:43
mithrohttp://www.thousandparsec.net/wiki/Media.gz07:43
tpbTitle: Media.gz - Thousand Parsec Wiki (at www.thousandparsec.net)07:43
mithrollnz: does that make more sense?07:47
llnzA bit07:48
llnzlet me see what I can do with that page07:49
mithrookay07:50
llnzso now, sn/ln in metaserver protocol07:50
mithrothe .meta files are only for when the media is packaged in a deb/rpm/etc07:50
mithroNow that I think about it, having the sn being globally unique is going to be quite hard07:50
mithrowhile the ln would be much more likely to be unquie07:51
llnzyeah07:51
llnzbut people might be tempted to change the ln07:52
mithrohrm.. durning a game?07:52
llnzwell, during the early stages ("Join now!", "Nearly Full!", "Starts in 5 days", etc)07:53
mithrowell, that would be better in the comment?07:53
llnzyes, but will people use it?07:53
mithroif you make it easy, then why not?07:54
llnzand promentent07:55
mithrollnz: I think the eventual match making service would make things like that less important07:55
llnztrue07:56
mithromaybe the sn should be a "quick server unquie alias" ?07:57
llnzsn is game unique07:57
llnzit's use to identify games on a server07:57
llnzie, the part after the @ for the username07:58
mithroyeah, sn should be server unique07:58
mithrowhile ln has to be unquie to the world07:59
llnzok07:59
mithroln then needs to be immutable07:59
*** guitsaru has joined #tp08:02
llnzmithro: is there a better way?08:02
mithroa immutable - non human string?08:02
mithromaybe the key could me some type of hash?08:03
*** niphree is now known as niphree_afk08:04
llnzmaybe two keys... one public, one private (to metaserver <- server)08:05
llnztpserver-cpp currently randomly generates the key the first time the server starts (and their isn't a key in the persistence)08:06
mithrollnz: I need a way to match up the avahi and metaserver results08:08
llnzthe public key could be used for that08:08
llnzit would be a random string08:09
mithrohrm...08:09
mithrobut humans then can't keep track of games?08:10
llnztrue....08:10
llnzI guess ln could be const (immutable)08:10
mithrookay08:11
mithroso the ln and the key are what verifies on a metaserver08:14
*** guitsaru has quit IRC08:15
mithrogreywhind: ping?08:21
CIA-23mithro tpclient-pywx-development * raddf4111bbdf /tpclient-pywx:08:32
CIA-23Add comments and reorded code to make it easier to understand.08:32
CIA-23Based on input from Greywhind <[email protected]>.08:32
mithrollnz: ping?08:35
llnzpong08:36
mithrodo you want to update the protocol4.php with the stuff we discussed?08:36
llnzso how will the game frame look? should it be the long name in the required section?08:39
mithroyeah, I think the ln should be the required option and the sn should be optional?08:41
llnzis sn really optional?08:43
mithroI think so, ln should always be able to used as a subsitute?08:43
llnzln will have spaces and other annoying things in it08:47
mithrodoesn't bother me :P08:47
mithrotechnically a shortname of '', could be correct for tpserver-cpp which only supports one game08:48
llnztrue08:50
llnzmithro: http://www.thousandparsec.net/wiki/Media.gz09:07
tpbTitle: Media.gz - Thousand Parsec Wiki (at www.thousandparsec.net)09:07
mithrollnz: the .meta files are only for packaging09:16
mithroor maybe not09:16
* mithro ponders09:16
mithrolooks like you where right09:17
mithrotim@ultraslim:~/.tp/media$ find09:17
mithro.09:17
mithro./http---svn-thousandparsec-net-svn-media-client-09:17
mithro./http---svn-thousandparsec-net-svn-media-client-/media-new.gz09:17
mithro./http---svn-thousandparsec-net-svn-media-client-/media-new.gz.meta09:17
mithro./http---svn-thousandparsec-net-svn-media-client-/common-2d09:17
mithro./http---svn-thousandparsec-net-svn-media-client-/common-2d/star-small09:17
mithro./http---svn-thousandparsec-net-svn-media-client-/common-2d/star-small/blue.png09:17
mithro./http---svn-thousandparsec-net-svn-media-client-/common-2d/star-small/blue.png.meta09:17
mithro./http---svn-thousandparsec-net-svn-media-client-/common-2d/star-small/red.png09:17
llnz:-)09:17
mithrohrm... there is one to many dashs there I think09:18
llnzthe one at the end?09:19
mithroyeah09:19
llnzcia doesn't appear to be doing well tonight09:25
mithrollnz: :/09:25
*** CIA-23 has quit IRC09:28
llnzupdated protocol4.php and protocol.xml, for ln/sn stuff tonight09:29
llnzi will update tpserver-cpp tomorrow (later today) (maybe)09:30
* llnz wanders off09:30
llnzlater all09:30
*** llnz has quit IRC09:30
*** CIA-23 has joined #tp10:14
*** Demitar has joined #tp10:17
greywhindmithro: i see you added my patch.10:43
mithrogreywhind: not quite10:43
mithroas my email mentioned10:44
mithroI haven't used this patch exactly, but I did reorder the code and add a10:44
mithrofew other comments based on this patch.10:44
mithrocan you see if it is clearer now?10:44
greywhindmithro: well, at least a similar change.10:44
mithrogreywhind: yeah, was based on your patch, I went a little further10:44
mithrogreywhind: btw in Python """this is a string""" #this is a comment10:44
greywhindmithro: i'll check, but not right now, since i have to go soon10:45
mithrookay thanks10:45
CIA-23mithro web * r61f6c2c8eaa4 /dev/documents/protocol4.php: Few small comment fixes.12:09
mithroo so quiet13:45
*** guitsaru has joined #tp16:46
*** guitsaru has quit IRC16:49
*** Epyon_ has joined #tp18:37
*** nash has joined #tp18:58
*** Epyon_ is now known as Epyon19:01
niphree_afkgood night19:52
*** guitsaru has joined #tp20:22
nashmithro: you there?21:55
mithronash: am now23:24
mithroonly an hour and a bit late23:34
greywhindmithro: i like the changes to tpclient-pywx23:35
mithrogreywhind: you mean the last comment/import reorg patch?23:35
greywhindmithro: the patch you made in response to my suggestion23:35
mithrocool23:36
mithrotpclient-pywx has been around since 2001 in various forms :P23:36
mithroso there is still a lot of crud in various places23:39
greywhindmithro: makes sense23:39
greywhindmithro: i started playing with a new window for units without orders today23:40
mithrookay cool23:40
mithromight want to check out some code in the System window, it displays the the number of turns till an order is complete in little [#,#]23:41
greywhindmithro: what wxWidgets type would you suggest for the display of the list of idle units?23:41
mithrowx.ListCtrl or similar23:41
greywhindmithro: k, thanks23:42
mithrohave you installed the wxPython demo program?23:42
greywhindmithro: no - what's that?23:42
mithroit's a really cool demo which comes with wxPython23:42
mithroit lets you see various different controls and play with them23:42
greywhindmithro: i should try that. it comes w/ wxPython?23:43
mithrohttp://downloads.sourceforge.net/wxpython/wxPython2.8-osx-docs-demos-2.8.4.2-universal-py2.5.dmg23:43
tpb<http://ln-s.net/rMO> (at downloads.sourceforge.net)23:43
greywhindhuh. it includes a build of XRCed too23:45
greywhindmmm... listctrl looks good23:46
mithrogreywhind: wxGrid might work too23:50
greywhindwxGrid seems more complex than necessary23:52
mithroit's more for a spreadsheet23:53
greywhindyeha23:53
greywhind*yeah23:53
nashmithro: Now I'm back from lunch23:58
mithrohey nash23:58
mithroyou bellowed?23:59
nashAnywya - I forgot another major feature of multi-server support - multiple AIs\23:59

Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!