*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
nash | One of those days | 00:00 |
---|---|---|
mithro | it's a slow friday today | 00:00 |
mithro | only 2:30pm | 00:00 |
* mithro is tired | 00:19 | |
mithro | and my GF wants me to go a wedding this weekend | 00:19 |
*** greywhind has joined #tp | 00:27 | |
*** greywhind_ has quit IRC | 00:27 | |
mithro | which means I'm probably not going to get this waypoint stuff done either :/ | 00:28 |
nash | again? | 00:29 |
mithro | yeah | 00:40 |
mithro | this is annoying me | 00:40 |
mithro | I really want to add it so that we can play some games | 00:40 |
mithro | and it's just too big a change to work on for an hour or two after work :( | 00:40 |
nash | Then split it up, and make it a task to do in a few small lots | 00:40 |
nash | thats whey you have revision control | 00:40 |
nash | And branches | 00:41 |
mithro | nash: well, the problem is that I can't see a good way to split it up | 00:41 |
mithro | maybe I can get a portion done on Saturday | 00:43 |
nash | then don't program it until you can. | 00:44 |
nash | If 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 correctly | 00:44 |
mithro | I need to write some code to answer some questions / test some theories I have | 00:51 |
mithro | but it will be much quicker to do them all at once rather then trying to do one here and there | 00:52 |
mithro | I 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 else | 00:54 |
mithro | anyway | 01:00 |
mithro | my 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 orders | 01:01 |
mithro | but I'm not sure how that would interact if I wanted dragable routes | 01:04 |
mithro | I think I need to move the path stuff to it's own overlay layer | 01:15 |
nash | That's pretty much how I was going ot do it... | 01:17 |
nash | Selecting an object on the map generates a "MapObhectSelected:" event, anyone can register for it when they are interested | 01:17 |
nash | And unregister when they stop caring | 01:19 |
greywhind | mithro: hey - what does match(object, object) return if they are not equal? | 01:20 |
greywhind | a non-zero value? | 01:20 |
mithro | greywhind: umm, where do I find this :P | 01:20 |
greywhind | mithro: # Filter the list.. | 01:20 |
greywhind | from fnmatch import fnmatch as match | 01:20 |
greywhind | if match(caption.lower(), self.Filter.lower()): | 01:20 |
mithro | python | 01:21 |
mithro | >>> from fnmatch import fnmatch | 01:21 |
mithro | >>> help(fnmatch) | 01:22 |
mithro | :P | 01:22 |
greywhind | mithro: true... sorry | 01:22 |
mithro | I'm assuming it returns true or false | 01:23 |
mithro | >>> fnmatch('a', 'b') | 01:23 |
mithro | False | 01:23 |
mithro | >>> fnmatch('a', 'a') | 01:23 |
mithro | True | 01:23 |
mithro | >>> fnmatch('ab', 'a?') | 01:24 |
mithro | True | 01:24 |
mithro | >>> fnmatch('ac', 'a?') | 01:24 |
mithro | True | 01:24 |
mithro | greywhind: have you tried ipython? | 01:24 |
greywhind | mithro: i figured it out. thanks. | 01:24 |
mithro | it's pretty nice | 01:24 |
greywhind | mithro: not really. i haven't really found a reason to use it so far. | 01:24 |
mithro | it's good for testing the above | 01:24 |
mithro | etc | 01:25 |
mithro | I use it has a calculator often too :P | 01:25 |
greywhind | mithro: i barely have time to work on the code as it is, though, without learning another ide. | 01:25 |
mithro | ipython isn't an IDE | 01:25 |
greywhind | well, wrapper for python | 01:26 |
mithro | it's just the python console with extra features like tab-completion | 01:26 |
greywhind | with its own commands and such | 01:26 |
mithro | greywhind: you having much luck with the filtering? | 01:28 |
greywhind | mithro: working on it now | 01:28 |
mithro | yeah, I figured that :P | 01:28 |
greywhind | mithro: so far i've got it updating the lists when the search boxes change, but not filtering anything | 01:29 |
mithro | okay | 01:29 |
mithro | btw you didn't push the fixed title design window stuff? | 01:30 |
greywhind | mithro: no, but i will once i fix the search boxes and check everything | 01:30 |
mithro | okay | 01:30 |
nash | release early, release often | 01:30 |
mithro | nash: practice what you preach ;) | 01:30 |
nash | mithro: At this time, I have nothing to release | 01:31 |
nash | Did I tell you my desktop swallowed my release | 01:31 |
mithro | no? | 01:31 |
mithro | you back it up properly? | 01:32 |
greywhind | mithro: looks like i've got at least part of it filtering correctly now | 01:33 |
mithro | greywhind: cool | 01:33 |
greywhind | mithro: the only thing i'd like to change is that i'd like the DesignsTree to default to fully expanded... | 01:33 |
mithro | greywhind: what ever you think is best | 01:33 |
greywhind | mithro: would i need to do that recursively? or is there a built-in recursive expand function for the tree? | 01:34 |
mithro | greywhind: I think there is an expandall command | 01:34 |
greywhind | mithro: ah. excellent - i'll check. | 01:34 |
mithro | >>> import wx | 01:34 |
mithro | >>> help(wx.TreeCtrl) | 01:34 |
mithro | :P | 01:34 |
greywhind | the reason i'd like to expand it all by default is that when you type a search, it closes it all again | 01:36 |
mithro | greywhind: hrm - I wonder how I solved that in the panelSystem? | 01:36 |
greywhind | mithro: well, keeping it expanded by default works. | 01:37 |
mithro | I think that probably makes sense when filtering | 01:38 |
greywhind | mithro: i think people will usually want to see an expanded list anyway | 01:38 |
mithro | When filtering it makes sense - but probably not when no filter? | 01:39 |
greywhind | mithro: 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 clicks | 01:39 |
mithro | dunno - if they have a lot of designs they would have to do a lot of scrolling? | 01:40 |
greywhind | mithro: well, in my opinion scrolling is better than clicking. but it's up to you. | 01:40 |
mithro | greywhind: actually - it's up to you - I'm going to leave this in your hands :P | 01:41 |
greywhind | mithro: alright then. | 01:41 |
greywhind | mithro: ok, both search boxes work now. | 01:43 |
mithro | greywhind: not that anyone uses the design stuff at the moment | 01:43 |
mithro | we really need to find someone to help Lee with tpserver-cpp | 01:43 |
mithro | greywhind: that is brilliant news! | 01:43 |
greywhind | only question is whether we want it to match inside strings starting at other places than the first character | 01:44 |
greywhind | if so, i'll have to change it a bit. | 01:44 |
greywhind | like, should "hull" as a search string match "ScoutHull"? | 01:44 |
nash | mithro: Sorry.. .back now | 01:46 |
nash | anyway - yeah - had backups, but lots were broken | 01:46 |
nash | TP was one thing | 01:46 |
nash | my E17 work was too | 01:46 |
nash | And my roborally | 01:46 |
mithro | nash: :/ | 01:47 |
mithro | greywhind: well maybe *hull should match ScoutHull ? | 01:48 |
greywhind | mithro: looks like that already works. i guess that's fine, but many new users won't know regular expressions | 01:49 |
mithro | well * isn't regular expressions :P | 01:49 |
mithro | if it was regular expressions it would ".*hull.*" :P | 01:50 |
greywhind | mithro: true | 01:50 |
mithro | it's the same as file matching | 01:50 |
mithro | * == anything, ? == 1 character of anything | 01:50 |
greywhind | but 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 before | 01:50 |
mithro | you can also do "Abc[23]" -> Abc2 and Abc3 | 01:51 |
greywhind | i'm in favor of leaving it, just to be done with it, but we may need documentation at some point. | 01:51 |
mithro | greywhind: maybe there should be an implicit * infront? I currently have an implicit * at the end | 01:52 |
mithro | def Filter(self): | 01:52 |
mithro | filter = self.Search.GetValue() | 01:52 |
mithro | if len(filter) == 0: | 01:52 |
mithro | return "*" | 01:52 |
mithro | if filter[-1] != '*': | 01:52 |
mithro | return filter.lower()+'*' | 01:52 |
mithro | Filter = property(Filter) | 01:52 |
greywhind | mithro: that might be better... | 01:52 |
mithro | nash: so you lost some TP work? | 01:52 |
nash | yep | 01:54 |
greywhind | mithro: alright... looks good. i'm very tired though, so i'm not going to check and commit until tomorrow or saturday | 01:55 |
greywhind | well, tomorrow is saturday for you, i guess | 01:55 |
nash | mithro: And lots of other stuff | 01:55 |
mithro | nash: dang | 01:55 |
mithro | nash: you need something like timemachine :P | 01:55 |
nash | I found the bug in the backup script | 01:55 |
nash | mithro: This stuff predates that | 01:56 |
greywhind | mithro: heh - i'm looking forward to time machine when i upgrade to leopard | 01:56 |
nash | And I've considered getting a logfs for such reasons | 01:56 |
* mithro probably should make his backup script run nightly | 01:56 | |
mithro | currently I just run it whenever | 01:56 |
nash | mithro: I did a backup _specifically_ | 01:57 |
nash | But an exclude rule and sy,links was totally borked | 01:57 |
mithro | logfs doesn't really save you from a HD failure? | 01:57 |
greywhind | anyway, see you later. | 01:57 |
mithro | just a rm -rf | 01:57 |
nash | process was: Make backup, reformat, restore | 01:57 |
nash | problem 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 else | 01:59 |
nash | A quick inspection of hte backup and it looked fine... | 01:59 |
mithro | :/ | 02:01 |
nash | Anyway - off home | 02:01 |
nash | talk to you laer | 02:01 |
*** nash has quit IRC | 02:01 | |
*** greywhind_ has joined #tp | 02:27 | |
*** greywhind has quit IRC | 02:27 | |
*** mithro has quit IRC | 02:58 | |
*** mithro has joined #tp | 04:12 | |
*** kandinski has quit IRC | 05:35 | |
*** kandinski has joined #tp | 05:35 | |
*** greywhind has joined #tp | 06:27 | |
*** greywhind_ has quit IRC | 06:27 | |
*** Demitar has quit IRC | 06:57 | |
*** Demitar has joined #tp | 07:15 | |
*** TBBle_ has joined #tp | 09:20 | |
*** TBBle has quit IRC | 09:30 | |
tpb | disconnected from worldforge: Ping sent at 2007-11-02T09:29:20 not replied to. | 09:31 |
tpb | tpb has joined on worldforge | 09:31 |
*** greywhind_ has joined #tp | 10:27 | |
*** greywhind has quit IRC | 10:27 | |
*** mithro has quit IRC | 10:39 | |
*** greywhind has joined #tp | 12:27 | |
*** greywhind_ has quit IRC | 12:27 | |
*** Erroneous has joined #tp | 12:43 | |
*** TBBle has joined #tp | 14:25 | |
*** TBBle_ has quit IRC | 14:25 | |
*** greywhind_ has joined #tp | 14:27 | |
*** greywhind has quit IRC | 14:27 | |
*** TBBle_ has joined #tp | 14:37 | |
*** TBBle has quit IRC | 14:52 | |
tpb | levitation[A] has joined on worldforge | 16:10 |
*** greywhind_ has quit IRC | 18:24 | |
*** Demitar has quit IRC | 20:28 | |
*** Erroneous has quit IRC | 20:44 | |
*** mithro has joined #tp | 22:44 | |
mithro | hey people | 22:45 |
*** llnz has joined #tp | 23:37 | |
mithro | it gets very empty in here during the weekends :/ | 23:39 |
llnz | ok | 23:42 |
* llnz starts registering for LCA | 23:43 | |
* llnz will have to wait to monday, needs more money on his credit card | 23:55 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!