*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
*** jmtan has joined #tp | 00:00 | |
*** tote has quit IRC | 00:11 | |
*** jmtan has quit IRC | 00:14 | |
*** tote has joined #tp | 00:51 | |
*** nash has joined #tp | 01:19 | |
*** jnengland77 has joined #tp | 01:58 | |
*** jnengland77 has left #tp | 01:58 | |
*** Erroneous has quit IRC | 03:22 | |
*** tansell-laptop has joined #tp | 04:56 | |
*** mithro has joined #tp | 04:57 | |
* llnz wanders off | 05:27 | |
llnz | later all | 05:27 |
---|---|---|
*** llnz has quit IRC | 05:28 | |
*** tansell has quit IRC | 05:28 | |
*** tansell has joined #tp | 05:29 | |
*** bisc has joined #tp | 06:07 | |
bisc | mithro: hi. I have a couple of patches. can you tell me how to use review tool? tried to add git repository there, but failed. | 06:31 |
tansell | bisc, you need to use git-cl - http://neugierig.org/software/git/?r=git-cl | 06:35 |
tpb | Title: git-cl - git command for managing changelists with rietveld (at neugierig.org) | 06:35 |
tansell | and you want to upload to codereview.mithis.com | 06:36 |
tansell | make sense? | 06:42 |
bisc | tansell: yes, I understand. but I can't create repository at codereview.mithis.com. It asks for URL, and git://git.thousandparsec.net/git/tpclient-pywx is not valid for him | 06:48 |
tansell-laptop | ? | 06:57 |
tansell-laptop | your using the git-cl command to upload the cl right? | 06:57 |
tansell-laptop | s/cl/patch/ | 06:58 |
bisc | I'm not uploading anything yet, just creating a repo, linked with my account. | 06:59 |
bisc | won't simple git diff do? it's tricky for me to access the computer with working copy right now | 07:01 |
tansell | bisc, why? | 07:06 |
bisc | currently on work, here's proxy which doesn't want to allow my laptop to internet, so I can't install git-cl.. | 07:09 |
bisc | will be fixing it sooner or later, but not today | 07:09 |
bisc | still, had some questions to you. | 07:09 |
bisc | will apload patches this evening. | 07:10 |
bisc | first, I saw somewhere how to disable splash without changing code. | 07:10 |
bisc | can you tell me how? | 07:11 |
tansell | bisc, in the tpclient-pywx directory touch a file called "NOSPLASHMOVIE" | 07:12 |
bisc | tansell: ok. then, I've noticed that UI strings are preprocessed like _("foo"). is that some kind of unicode support? couldn't google it | 07:15 |
tansell | it's gettext for translation | 07:16 |
bisc | tansell: and how does it work? where does it look for translation? | 07:17 |
tansell | in the locale directory there is a script which generates a tpclient-pywx.pot file | 07:18 |
tansell | this can be then loaded into standard translation tools | 07:18 |
tansell | bisc, interested in doing a translation? | 07:23 |
bisc | I see. then, before some methods there is @ with name of subclasses method (or subclass itself). like @freeze_wrapper. couldn't find such things in python references. what's it for? | 07:23 |
bisc | tansell: well, maybe, if everything is good with coding tasks | 07:24 |
bisc | I still don't find myself confident enough with main part of work to do :) | 07:24 |
tansell | bisc, it is a bit daunting at first | 07:27 |
CIA-29 | mithro tpclient-pywx-stable * r329bbe426685 / (3 files in 2 dirs): Updating the translation file. | 07:30 |
tansell | that file was pretty out-of-date :) | 07:30 |
CIA-29 | mithro tpclient-pywx-tp04 * rb29dfd4ff612 / (3 files in 2 dirs): Updating the translation file. | 07:32 |
tansell | bisc, http://www.poedit.net/screenshots.php | 07:34 |
tpb | Title: Poedit: Screenshots (at www.poedit.net) | 07:34 |
tansell | thats a tool you can use to do the translation | 07:34 |
tansell | http://en.wikipedia.org/wiki/GNU_gettext | 07:35 |
tpb | Title: GNU gettext - Wikipedia, the free encyclopedia (at en.wikipedia.org) | 07:35 |
tansell | bisc, if the patches are relatively simple - you could just upload them manually | 07:36 |
tansell | http://codereview.mithis.com/new | 07:37 |
tpb | Title: Google Accounts (at codereview.mithis.com) | 07:37 |
bisc | this review tool doesn't accept just some text - it always checks format of diff. and now says "Patch set contains no recognizable patches" | 07:40 |
bisc | yeah, patches are not very complex. one adds legible error messages, another - names for mainwindow's panels. | 07:43 |
bisc | still, my question about @-marks before methods remains. | 07:45 |
tansell-laptop | @functions are called decorators | 07:51 |
tansell | do a search for "python decorators" | 07:54 |
tansell | def freeze_wrapper(func, self, *args, **kw): | 07:55 |
tansell | """ | 07:55 |
tansell | This decorator calls Freeze before calling the function, and then thaw after. | 07:55 |
tansell | """ | 07:55 |
bisc | tansell: yeah, I've googled. an interesting feature. don't understand why they don't mention it in python manuals. | 07:56 |
tansell | they do | 07:56 |
bisc | for example, context search for @ in "dive into python" gave me nothing on decorators :( | 07:57 |
bisc | ok, thank you for explaining | 07:57 |
bisc | one more thing: in tpclient-pywx, GUI class there is handler OnNetworkFailure. I can't find where the NetworkFailureEvent is binded to it. searched full-text in whole tpclient, found something only in winAccount, but that's another code and event handler. | 07:59 |
*** cahirwpz has joined #tp | 08:01 | |
cahirwpz | hi all | 08:02 |
bisc | cahirwpz: hello | 08:04 |
cahirwpz | mithro: ping | 08:12 |
*** Epyon has joined #tp | 08:16 | |
tansell-laptop | cahirwpz, pong | 08:16 |
Epyon | mithro: ping :) | 08:16 |
tansell-laptop | Epyon, pong | 08:16 |
tansell-laptop | Epyon, been meaning to poke you | 08:17 |
tansell-laptop | bisc, the NetworkFailure event comes from libtpclient-py | 08:17 |
tansell-laptop | bisc, the decorators are mostly described in ./extra/decorators.py | 08:20 |
tansell-laptop | bisc, ping? | 08:26 |
bisc | tansell-laptop: yes, I saw where these event classes are declared. I don't understand how they are associated in handler from file "tpclient-pywx" | 08:26 |
bisc | *associated with | 08:27 |
tansell-laptop | ? | 08:29 |
tansell-laptop | what do you mean | 08:29 |
bisc | tansell-laptop: I mean when the event of failure is posted to event queue, how it is determined which function should take it? | 08:30 |
tansell-laptop | oh, via the name | 08:33 |
tansell-laptop | On<event name> | 08:33 |
bisc | tansell-laptop: hm. is that automatic feature of wxPython, or there is a special script in tpclient? | 08:34 |
tansell-laptop | it's part of the event dispatch in libtpclient-py | 08:35 |
tansell-laptop | wxPython needs explicit bindings | 08:35 |
tansell-laptop | self.Servers.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnServerSelect) | 08:36 |
bisc | tansell-laptop: so, to add a new event and a new handler, I just add an event class, then somewhere post it to appropriate queue, and define a handler with corresponding name? no need to fix other code? | 08:37 |
tansell-laptop | bisc, mostly | 08:39 |
tansell-laptop | if it's a wxPython event you also need to bind things together | 08:39 |
bisc | tansell-laptop: ok. I've also commited two bugs of winConnect to bugtracker. will get to them later, when I understand wxpython event loop and threading better. | 08:45 |
tansell-laptop | bisc, you mean you have attached patches to the bug tracker? | 08:47 |
tansell-laptop | bisc, can you link me please? | 08:47 |
cahirwpz | mithro: question about mDNS support in tpserver-py - should I develop standalone mDNS server integrated into the server or use avahi if it's installed and running | 08:54 |
cahirwpz | mithro, registering new services within avahi is fairly easy | 08:56 |
tansell-laptop | cahirwpz, both I think | 08:56 |
tansell-laptop | there is no avahi under Windows or Mac | 08:57 |
cahirwpz | implementing my own mDNS server isn't, but fortunately Twisted supports multicast UDP and twisted.names is an implementation of DNS protocol | 08:57 |
bisc | tansell-laptop: no, these are *other* bugs, just not to forget them. I will send my patches to review in 12 hours. | 08:57 |
bisc | http://code.google.com/p/thousandparsec/issues/detail?id=98 | 08:57 |
tpb | <http://ln-s.net/6ZWT> (at code.google.com) | 08:57 |
bisc | http://code.google.com/p/thousandparsec/issues/detail?id=99 | 08:57 |
tpb | <http://ln-s.net/6ZWU> (at code.google.com) | 08:57 |
cahirwpz | mithro, yaeh - but there might be alternative mDNS server running on MacOS (Bonjour) or Windows (?) | 08:58 |
cahirwpz | mithro, and mDNS server should bind to 5353 UDP port | 08:58 |
cahirwpz | mithro: the other method is to switch tpclient and tpserver to other UDP port | 08:59 |
tansell-laptop | I'll be back in an hour probably | 08:59 |
tansell-laptop | dinner time now | 09:00 |
tansell-laptop | cahirwpz, because it's multicast you can use multibind | 09:00 |
tansell-laptop | (IE multiple applications can bind to the same port) | 09:00 |
*** nash has quit IRC | 09:00 | |
cahirwpz | never heard of that - I need to read man pages... | 09:01 |
*** StupidIncarnate has joined #tp | 09:02 | |
*** StupidIncarnate has quit IRC | 09:36 | |
tansell | cahirwpz, see the pyzeroconf implimentation in libtpproto-py | 09:40 |
tansell | anyway I'm going to head home... | 09:42 |
*** mithro has quit IRC | 09:48 | |
*** mithro has joined #tp | 10:10 | |
mithro | bisc: so where are you up too? | 10:14 |
cahirwpz | mithro, if multiple UDP listeners can be bound to single port - then me may ignore native platform server and just use our implementation, can't we ? | 10:17 |
cahirwpz | mithro, why to bother with avahi / bonjour / whatever ? | 10:18 |
mithro | cahirwpz: yes - but supporting avahi is also a good idea | 10:18 |
cahirwpz | mithro, what for ? | 10:18 |
cahirwpz | mithro, it will only cost us additional dependancy | 10:19 |
mithro | pyZeroConf has never been reliable | 10:19 |
bisc | mithro: just got to messages panel, found out how to place text on panel's header. my ubuntu died when updating and I spent some restoring it. I want to work with filtering window, because now it's awful working and looking. | 10:19 |
cahirwpz | mithro, I was not talking about pyZeroConf - I know it's crappy - I was talking about twisted.names ;-) | 10:19 |
cahirwpz | mithro, I want to port *all* network stuff to twisted | 10:20 |
mithro | ahavhi, bonjour where mainly for the client side | 10:21 |
bisc | mithro: I have a strange question. why "implimentation" instead on "implementation"? some kind of slang? | 10:22 |
mithro | bisc: probably because I can't spell :P | 10:22 |
cahirwpz | umm... I thought that you use avahi to register service TP-server (SRV entry), so that avahi server can point IP where TP-server is installed in local network | 10:23 |
bisc | mithro: so I'm free to fix it in code? :) | 10:23 |
mithro | cahirwpz: avahi is also used to discover the servers | 10:24 |
cahirwpz | mithro, in TP clients - yes | 10:24 |
cahirwpz | mithro, I think we can happily ignore other mDNS servers when running tpserver-py and just provide our own implementation | 10:25 |
mithro | cahirwpz: I would still like to support avahi as it's the "proper" way when it exists | 10:27 |
cahirwpz | mithro, should we then support in tpserver-py every existing implementation of mDNS server / API and look for it during startup? | 10:29 |
mithro | I care mostly about Linux | 10:30 |
bisc | mithro: can you please try to reproduce the bugs, reported by me to google code? I have suspicions that they can occur because of gnome window management, not tpclient flaw. | 10:32 |
mithro | URL? | 10:32 |
bisc | sent you previously, http://code.google.com/p/thousandparsec/issues/detail?id=98 and http://code.google.com/p/thousandparsec/issues/detail?id=99 | 10:33 |
tpb | <http://ln-s.net/6ZWT> (at code.google.com) | 10:33 |
mithro | 98 works for me | 10:35 |
mithro | bisc: you should mention the branch and version in the bug report | 10:35 |
bisc | mithro: you mean program is behaving right or that bugs is successfully reproduced? | 10:35 |
mithro | bisc: the program works correctly | 10:36 |
bisc | mithro: what's your window manager? | 10:37 |
mithro | metacity | 10:37 |
bisc | mithro: that's kind of strange. and distro? | 10:40 |
mithro | ubuntu jaunty | 10:40 |
bisc | mithro: haven't noticed such bugs on kubuntu jaunty. now switched to ubuntu lucid and they occur. | 10:42 |
cahirwpz | mithro, ok... let it be your way - I suppose there won't be any interference between avahi and twisted - although I'm still not convinced and don't like idea of using avahi if we're going to implement platform-independent mDNS server | 10:42 |
bisc | bisc: what about 99? | 10:42 |
cahirwpz | mithro, so during startup the server will look for avahi - if not detected it will fall back to internal mDNS implementation? correct ? | 10:43 |
mithro | cahirwpz: yes | 10:54 |
mithro | bisc: nope, can't reproduce it | 10:56 |
cahirwpz | mithro, ok... let move our discussion to built-in telnet / ssh server ;-) | 10:56 |
bisc | mithro: ok, thank you. will do something about them -- either debug and fix, or just close. | 10:57 |
cahirwpz | mithro, why telnet / ssh and not HTTP server + web service ? | 10:57 |
mithro | cahirwpz: I'm not sure what you are talking about :) | 10:57 |
cahirwpz | mithro, I think we can integrate server management and download services | 10:57 |
cahirwpz | # Step 5 - Add support for an inbuilt http server - including authentication (to allow download of media and battle data etc) | 10:58 |
cahirwpz | # Step 7 - Add a ssh/telnet port that lets programs remotely manage the server (such as add/remove games, etc). | 10:58 |
mithro | cahirwpz: I think step 7 can be replaced with "implement the admin protocol" | 10:59 |
*** matthewd has joined #tp | 10:59 | |
cahirwpz | yyyhhh... that's something you must be unfold :] | 10:59 |
mithro | unfold? | 10:59 |
cahirwpz | ahh... copying improperly native words to english | 11:00 |
cahirwpz | please explain what do you mean by admin protocol | 11:00 |
cahirwpz | I saw few admin commands in protocol specs | 11:01 |
cahirwpz | I thought they're properly serviced by tpserver-py | 11:01 |
mithro | cahirwpz: you'll have to chat to ezod about it for more details, he designed it for tpserver-cpp | 11:02 |
mithro | http://www.thousandparsec.net/wiki/Tpserver-cpp/Admin | 11:02 |
tpb | <http://ln-s.net/6ZZ1> (at www.thousandparsec.net) | 11:02 |
cahirwpz | mithro, ahh... so in fact I'll only have to implement additional commands in libtpproto{,2}-py and handle them in tpserver-py, correct ? | 11:04 |
mithro | cahirwpz: yeah - but I'm not sure we'll get to that one | 11:04 |
cahirwpz | no fancy curses admin panel over SSH ? | 11:04 |
cahirwpz | ;-) | 11:05 |
mithro | cahirwpz: so where are you up to in using libtpproto2-py? | 11:06 |
cahirwpz | I think I'll skip using old libtpproto-py while porting tpserver-py to twisted | 11:08 |
cahirwpz | I did not make any spectacular progress during last week, but I feel quite confident about libtpproto2-py | 11:10 |
cahirwpz | mithro, ok - I'd like you to explain me in more details how do you understand following point: | 11:15 |
cahirwpz | # Step 5 - Add support for an inbuilt http server - including authentication (to allow download of media and battle data etc) | 11:16 |
cahirwpz | won't it interfere with TP protocol over HTTP ? | 11:16 |
bisc | bye all | 11:20 |
mithro | cahirwpz: it shouldn't - TP protocol over HTTP requests a specific URL | 11:20 |
*** bisc has quit IRC | 11:20 | |
cahirwpz | mithro, I've noticed that in the documentation | 11:20 |
cahirwpz | and I was curious... | 11:22 |
cahirwpz | the URL is changed every time we're making connection, in order to prevent HTTP proxy to cache session | 11:22 |
cahirwpz | wouldn't the same thing be accomplished by adding proper "Cache:" header to the request ? | 11:23 |
cahirwpz | ok - exactly it'd be: "Cache-Control: no-cache" | 11:23 |
mithro | cahirwpz: not all proxies (specially teleco proxies) obey that | 11:24 |
matthewd | cahirwpz: General experience shows that you can't always trust proxies to do what they're told | 11:24 |
cahirwpz | matthewd, even if you explicitly tell them not to cache HTTP session ? | 11:25 |
mithro | cahirwpz: we could change the protocol to always request under a specific URL section | 11:25 |
cahirwpz | matthewd, that's very unfortunate | 11:26 |
mithro | cahirwpz: yeah | 11:26 |
cahirwpz | mithro, something like... URL = "/game/blahblah1248fh3fb83" ? | 11:26 |
mithro | yeah or /tunnel/123asdaewq13 | 11:28 |
cahirwpz | ... I suppose this would solve our problem | 11:29 |
mithro | SGTM | 11:29 |
cahirwpz | ok - what about authentication and content download ? | 11:30 |
mithro | cahirwpz: what do you mean? | 11:30 |
mithro | Media and other content for Thousand Parsec is stored on HTTP Servers | 11:31 |
cahirwpz | how do you see it integrated with tpserver-py ? | 11:31 |
mithro | well, if tpserver-py has an inbuilt http server then it can serve that content itself | 11:32 |
mithro | rather then rely on a third party module | 11:32 |
mithro | cahirwpz: oh, I'm not sure if ezod did an xml definition for the admin protocol - if so libtpproto2-py could automatically load that | 11:34 |
cahirwpz | what is exactly regarded as game contents (I cannot find anything like that on TP page in download section)? | 11:40 |
cahirwpz | mithro, yep - we could merge it with protocol 4 | 11:40 |
mithro | cahirwpz: media mainly | 11:41 |
mithro | cahirwpz: also the battlexml descriptions | 11:51 |
cahirwpz | where can I download it ? | 11:51 |
mithro | download what? | 11:52 |
cahirwpz | everything you've mentioned - media, battle xml | 11:52 |
*** Landon has quit IRC | 11:53 | |
*** Greywhind has quit IRC | 11:53 | |
*** Landon has joined #tp | 11:54 | |
cahirwpz | mithro, ok - I understand now - media and battle xml are part of tpclient-pyogre for example | 11:56 |
mithro | http://git.thousandparsec.net/gitweb/gitweb.cgi?p=battleviewer.git;a=blob;f=2d/BATTLEFORMAT | 11:56 |
tpb | <http://ln-s.net/6Z_R> (at git.thousandparsec.net) | 11:56 |
cahirwpz | mithro, you want it to be downloadable from remote server instead being integrated into client bundle, correct ? | 11:57 |
*** Greywhind has joined #tp | 11:57 | |
mithro | cahirwpz: you want to download the descriptions of each battle | 11:58 |
mithro | cahirwpz: for tpclient-pywx tp04 branch you can see it downloads all the media | 11:58 |
mithro | well, bed time for me | 12:05 |
cahirwpz | mithro, libtpclient-py/tp/client/media.py ? | 12:06 |
mithro | cahirwpz: yeah | 12:07 |
cahirwpz | ok - I'll look into that | 12:07 |
mithro | cahirwpz: don't forget to look at the tp04 branch | 12:08 |
cahirwpz | yeah - just switched to it | 12:08 |
cahirwpz | needed to recall how to track remote branches | 12:08 |
*** tuna-fish has quit IRC | 12:19 | |
*** tuna-fish has joined #tp | 12:31 | |
*** jmtan has joined #tp | 13:08 | |
*** cahirwpz has quit IRC | 13:22 | |
*** Epyon has quit IRC | 14:10 | |
*** jmtan has quit IRC | 14:28 | |
*** jmtan has joined #tp | 14:34 | |
*** mithro has quit IRC | 14:42 | |
*** mithro has joined #tp | 14:59 | |
*** jnengland77 has joined #tp | 16:46 | |
*** mithro has quit IRC | 16:48 | |
*** mithro has joined #tp | 17:07 | |
*** tuna-fish has quit IRC | 18:05 | |
*** jnengland77 has left #tp | 18:30 | |
*** Epyon_ has joined #tp | 18:33 | |
*** Erroneous has joined #tp | 18:59 | |
*** bisc has joined #tp | 19:44 | |
*** glew has joined #tp | 20:15 | |
glew | ezod: hey | 20:22 |
*** llnz has joined #tp | 20:39 | |
llnz | morning all | 20:44 |
*** bisc has quit IRC | 20:56 | |
alanp | glew: don't think he's around right now | 21:04 |
glew | alanp: thanks, i'll try again later | 21:05 |
*** jnengland77 has joined #tp | 21:14 | |
*** jnengland77 has left #tp | 21:14 | |
*** Epyon_ has quit IRC | 22:13 | |
ezod | glew: sup | 23:15 |
glew | ezod: hey | 23:23 |
glew | ezod: you told me i have to set up git access to make sure there are no problems | 23:25 |
*** mithro has quit IRC | 23:36 | |
ezod | glew: yeah, has mithro set you up yet? | 23:43 |
ezod | tansell: ping | 23:43 |
ezod | glew: if you haven't already you'll need to send him your ssh public key | 23:44 |
glew | ezod: i haven't set that up with mithro yet, and how do i obtain my ssh public key | 23:57 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!