Friday, 2007-11-02

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
nashOne of those days00:00
mithroit's a slow friday today00:00
mithroonly 2:30pm00:00
* mithro is tired00:19
mithroand my GF wants me to go a wedding this weekend00:19
*** greywhind has joined #tp00:27
*** greywhind_ has quit IRC00:27
mithrowhich means I'm probably not going to get this waypoint stuff done either :/00:28
nashagain?00:29
mithroyeah00:40
mithrothis is annoying me00:40
mithroI really want to add it so that we can play some games00:40
mithroand it's just too big a change to work on for an hour or two after work :(00:40
nashThen split it up, and make it a task to do in a few small lots00:40
nashthats whey you have revision control00:40
nashAnd branches00:41
mithronash: well, the problem is that I can't see a good way to split it up00:41
mithromaybe I can get a portion done on Saturday00:43
nashthen don't program it until you can.00:44
nashIf you can't split it into chunks small enough to write at once, you won't be able to split into chunks small enough to maintain correctly00:44
mithroI need to write some code to answer some questions / test some theories I have00:51
mithrobut it will be much quicker to do them all at once rather then trying to do one here and there00:52
mithroI kind of work in an very iterative process - IE I try adding it there - and if that doesn't seem to work I try moving the code somewhere else00:54
mithroanyway01:00
mithromy current idea is to have "listeners" which listen to the results of Starmap commands - the default one would issue "SelectObject" events - the waypoint one would create move orders01:01
mithrobut I'm not sure how that would interact if I wanted dragable routes01:04
mithroI think I need to move the path stuff to it's own overlay layer01:15
nashThat's pretty much how I was going ot do it...01:17
nashSelecting an object on the map generates a "MapObhectSelected:" event, anyone can register for it when they are interested01:17
nashAnd unregister when they stop caring01:19
greywhindmithro: hey - what does match(object, object) return if they are not equal?01:20
greywhinda non-zero value?01:20
mithrogreywhind: umm, where do I find this :P01:20
greywhindmithro: # Filter the list..01:20
greywhindfrom fnmatch import fnmatch as match01:20
greywhindif match(caption.lower(), self.Filter.lower()):01:20
mithropython01:21
mithro>>> from fnmatch import fnmatch01:21
mithro>>> help(fnmatch)01:22
mithro:P01:22
greywhindmithro: true... sorry01:22
mithroI'm assuming it returns true or false01:23
mithro>>> fnmatch('a', 'b')01:23
mithroFalse01:23
mithro>>> fnmatch('a', 'a')01:23
mithroTrue01:23
mithro>>> fnmatch('ab', 'a?')01:24
mithroTrue01:24
mithro>>> fnmatch('ac', 'a?')01:24
mithroTrue01:24
mithrogreywhind: have you tried ipython?01:24
greywhindmithro: i figured it out. thanks.01:24
mithroit's pretty nice01:24
greywhindmithro: not really. i haven't really found a reason to use it so far.01:24
mithroit's good for testing the above01:24
mithroetc01:25
mithroI use it has a calculator often too :P01:25
greywhindmithro: i barely have time to work on the code as it is, though, without learning another ide.01:25
mithroipython isn't an IDE01:25
greywhindwell, wrapper for python01:26
mithroit's just the python console with extra features like tab-completion01:26
greywhindwith its own commands and such01:26
mithrogreywhind: you having much luck with the filtering?01:28
greywhindmithro: working on it now01:28
mithroyeah, I figured that :P01:28
greywhindmithro: so far i've got it updating the lists when the search boxes change, but not filtering anything01:29
mithrookay01:29
mithrobtw you didn't push the fixed title design window stuff?01:30
greywhindmithro: no, but i will once i fix the search boxes and check everything01:30
mithrookay01:30
nashrelease early, release often01:30
mithronash: practice what you preach ;)01:30
nashmithro: At this time, I have nothing to release01:31
nashDid I tell you my desktop swallowed my release01:31
mithrono?01:31
mithroyou back it up properly?01:32
greywhindmithro: looks like i've got at least part of it filtering correctly now01:33
mithrogreywhind: cool01:33
greywhindmithro: the only thing i'd like to change is that i'd like the DesignsTree to default to fully expanded...01:33
mithrogreywhind: what ever you think is best01:33
greywhindmithro: would i need to do that recursively? or is there a built-in recursive expand function for the tree?01:34
mithrogreywhind: I think there is an expandall command01:34
greywhindmithro: ah. excellent - i'll check.01:34
mithro>>> import wx01:34
mithro>>> help(wx.TreeCtrl)01:34
mithro:P01:34
greywhindthe reason i'd like to expand it all by default is that when you type a search, it closes it all again01:36
mithrogreywhind: hrm - I wonder how I solved that in the panelSystem?01:36
greywhindmithro: well, keeping it expanded by default works.01:37
mithroI think that probably makes sense when filtering01:38
greywhindmithro: i think people will usually want to see an expanded list anyway01:38
mithroWhen filtering it makes sense - but probably not when no filter?01:39
greywhindmithro: mmm... up to you, but i think they'll usually want it expanded at all times so they can quickly find what they're looking for without a lot of clicks01:39
mithrodunno - if they have a lot of designs they would have to do a lot of scrolling?01:40
greywhindmithro: well, in my opinion scrolling is better than clicking. but it's up to you.01:40
mithrogreywhind: actually - it's up to you - I'm going to leave this in your hands :P01:41
greywhindmithro: alright then.01:41
greywhindmithro: ok, both search boxes work now.01:43
mithrogreywhind: not that anyone uses the design stuff at the moment01:43
mithrowe really need to find someone to help Lee with tpserver-cpp01:43
mithrogreywhind: that is brilliant news!01:43
greywhindonly question is whether we want it to match inside strings starting at other places than the first character01:44
greywhindif so, i'll have to change it a bit.01:44
greywhindlike, should "hull" as a search string match "ScoutHull"?01:44
nashmithro: Sorry.. .back now01:46
nashanyway - yeah - had backups, but lots were broken01:46
nashTP was one thing01:46
nashmy E17 work was too01:46
nashAnd my roborally01:46
mithronash: :/01:47
mithrogreywhind: well maybe *hull should match ScoutHull ?01:48
greywhindmithro: looks like that already works. i guess that's fine, but many new users won't know regular expressions01:49
mithrowell * isn't regular expressions :P01:49
mithroif it was regular expressions it would ".*hull.*" :P01:50
greywhindmithro: true01:50
mithroit's the same as file matching01:50
mithro* == anything, ? == 1 character of anything01:50
greywhindbut you probably wouldn't think of putting * in front of the string to match anything unless you'd done some kind of file matching or regular expressions before01:50
mithroyou can also do "Abc[23]" -> Abc2 and Abc301:51
greywhindi'm in favor of leaving it, just to be done with it, but we may need documentation at some point.01:51
mithrogreywhind: maybe there should be an implicit * infront? I currently have an implicit * at the end01:52
mithrodef Filter(self):01:52
mithrofilter = self.Search.GetValue()01:52
mithroif len(filter) == 0:01:52
mithroreturn "*"01:52
mithroif filter[-1] != '*':01:52
mithroreturn filter.lower()+'*'01:52
mithroFilter = property(Filter)01:52
greywhindmithro: that might be better...01:52
mithronash: so you lost some TP work?01:52
nashyep01:54
greywhindmithro: alright... looks good. i'm very tired though, so i'm not going to check and commit until tomorrow or saturday01:55
greywhindwell, tomorrow is saturday for you, i guess01:55
nashmithro: And lots of other stuff01:55
mithronash: dang01:55
mithronash: you need something like timemachine :P01:55
nashI found the bug in the backup script01:55
nashmithro: This stuff predates that01:56
greywhindmithro: heh - i'm looking forward to time machine when i upgrade to leopard01:56
nashAnd I've considered getting a logfs for such reasons01:56
* mithro probably should make his backup script run nightly01:56
mithrocurrently I just run it whenever01:56
nashmithro: I did a backup _specifically_01:57
nashBut an exclude rule and sy,links was totally borked01:57
mithrologfs doesn't really save you from a HD failure?01:57
greywhindanyway, see you later.01:57
mithrojust a rm -rf01:57
nashprocess was: Make backup, reformat, restore01:57
nashproblem was backup and exclude rule for  ~/work/upstream and a symlink from ~/work/upstream/e17/ to ~/work somehow confused the damn thing.,.. and I have the symlink and not much else01:59
nashA quick inspection of hte backup and it looked fine...01:59
mithro:/02:01
nashAnyway - off home02:01
nashtalk to you laer02:01
*** nash has quit IRC02:01
*** greywhind_ has joined #tp02:27
*** greywhind has quit IRC02:27
*** mithro has quit IRC02:58
*** mithro has joined #tp04:12
*** kandinski has quit IRC05:35
*** kandinski has joined #tp05:35
*** greywhind has joined #tp06:27
*** greywhind_ has quit IRC06:27
*** Demitar has quit IRC06:57
*** Demitar has joined #tp07:15
*** TBBle_ has joined #tp09:20
*** TBBle has quit IRC09:30
tpbdisconnected from worldforge: Ping sent at 2007-11-02T09:29:20 not replied to.09:31
tpbtpb has joined on worldforge09:31
*** greywhind_ has joined #tp10:27
*** greywhind has quit IRC10:27
*** mithro has quit IRC10:39
*** greywhind has joined #tp12:27
*** greywhind_ has quit IRC12:27
*** Erroneous has joined #tp12:43
*** TBBle has joined #tp14:25
*** TBBle_ has quit IRC14:25
*** greywhind_ has joined #tp14:27
*** greywhind has quit IRC14:27
*** TBBle_ has joined #tp14:37
*** TBBle has quit IRC14:52
tpblevitation[A] has joined on worldforge16:10
*** greywhind_ has quit IRC18:24
*** Demitar has quit IRC20:28
*** Erroneous has quit IRC20:44
*** mithro has joined #tp22:44
mithrohey people22:45
*** llnz has joined #tp23:37
mithroit gets very empty in here during the weekends :/23:39
llnzok23:42
* llnz starts registering for LCA23:43
* llnz will have to wait to monday, needs more money on his credit card23:55

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