*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
*** guitsaru has joined #tp | 00:17 | |
mithro | greywhind: ping? | 02:23 |
---|---|---|
mithro | pschulz01: ping? | 02:24 |
pschulz01 | pong | 03:08 |
mithro | pschulz01: so umm, where are we at | 03:14 |
*** pschulz01 has quit IRC | 03:16 | |
*** pschulz01 has joined #tp | 03:26 | |
mithro | pschulz01: so umm, where are we at? | 03:29 |
mithro | is the dependecy problem the only thing left? | 03:30 |
mithro | and how do we make a repository which works for all the current versions of debian/ubuntu? | 03:31 |
*** zipola has quit IRC | 03:31 | |
mithro | (the python stuff should be pretty easy as it's only dependent on python being installed) | 03:33 |
pschulz01 | mithro: Goos questions...:-) | 03:37 |
pschulz01 | good | 03:37 |
*** zipola has joined #tp | 03:37 | |
mithro | pschulz01: so what are the ansers :P | 03:44 |
pschulz01 | mithro: Another good question.. you're good at this. | 04:00 |
pschulz01 | mithro: Soem things that I'd like to sort out.. | 04:03 |
pschulz01 | mithro: - Getting deb of libtpproto-pw to install tp.netlib correctly. | 04:03 |
pschulz01 | mithro: - similarly with tp.client | 04:04 |
pschulz01 | mithro: - sort out best way to use 'update-debian-changelog' | 04:04 |
pschulz01 | mithro: - figure out how to do regular builds .. and.. | 04:05 |
pschulz01 | mithro: - creating debian repository indexes. | 04:05 |
pschulz01 | mithro: .. also deb's shouldn't have *.pyc files in them, but I'll have to readup on the debian packaging guidelines for the how and why. | 04:07 |
pschulz01 | http://www.debian.org/doc/packaging-manuals/python-policy/ | 04:09 |
tpb | <http://ln-s.net/8Se> (at www.debian.org) | 04:09 |
*** xdotx has quit IRC | 04:14 | |
*** xdotx has joined #tp | 04:16 | |
mithro | pschulz01: tp.netlib/tp.client appear to be install correctly using TBBle's ./debian | 04:19 |
mithro | and they correctly don't have *.pyc in them | 04:19 |
mithro | and are correctly shared via pycentral | 04:19 |
mithro | pschulz01: if you do a fresh checkout and run | 04:21 |
*** niphree has joined #tp | 04:21 | |
niphree | hello | 04:21 |
mithro | cd debian; ./update-debian-changelog; cd ..; dpkg-buildpackage -us -uc -b -rfakeroot | 04:21 |
mithro | hi niphree | 04:21 |
CIA-23 | niphree /tmp/kz5FBK7xtT/cEQLgHBeBh-rewrite * r91559e170de5 / (6 files in 2 dirs): via git-CVS emulator | 04:35 |
pschulz01 | Is there a package for the dev version of libtpclient-py ? | 04:59 |
pschulz01 | Packaging of libtpprotocol-py looks good :-) | 04:59 |
mithro | yeah | 04:59 |
mithro | if you do a fresh pull of the development tree | 05:00 |
mithro | I cherry-picked TBBle's stuff in the main tree | 05:01 |
pschulz01 | paul@flik:~/Desktop/git/tp/libtpcloent-py-dev/debian$ ./update-debian-changelog <module '__builtin__' (built-in)> | 05:04 |
pschulz01 | Currently in /home/paul/Desktop/git/tp/libtpcloent-py-dev/debian | 05:04 |
pschulz01 | This version of this deb will be 0.2.99+0.3.0+git.49.g2796f65-1auto1 | 05:04 |
mithro | that looks about right | 05:05 |
pschulz01 | <module '__builtin__' (built-in)> <<---- what's this? | 05:06 |
mithro | pschulz01: I've got a print somewhere I shouldn't | 05:06 |
CIA-23 | mithro libtpclient-py-development * re69a1cccf015 /tp/client/__init__.py: Remove excess print. | 05:07 |
mithro | pschulz01: that should fix that | 05:08 |
pschulz01 | Yup | 05:08 |
mithro | :) | 05:09 |
*** xdotx has joined #tp | 05:09 | |
mithro | the good thing about this versioning system is that if we build every day the deb only changes when a change actually occurs | 05:09 |
mithro | libtpcloent-py-dev <- sp :) | 05:10 |
pschulz01 | mithro: Woops :-) | 05:10 |
mithro | pschulz01: we need something like "update-debian-changelog" which updated the dependency information | 05:10 |
mithro | updated/updates/ | 05:10 |
pschulz01 | mithro: dh_py**** should look after some of this | 05:12 |
pschulz01 | mithro: dh | 05:12 |
pschulz01 | mithro: dh <- deb helper scripts | 05:13 |
mithro | pschulz01: you can't reliably detect python dependencies | 05:13 |
pschulz01 | mithro: I'll defer to you on that one :-) | 05:13 |
pschulz01 | mithro: :-( | 05:13 |
mithro | pschulz01: and there is *definitely* no way to detect python dependency versions | 05:14 |
mithro | for the auto-builds, I think it's safe to always depend on the latest build of the dependecy | 05:15 |
pschulz01 | mithro: Hmm.... yes.. latest 'installed' build. | 05:16 |
pschulz01 | mithro: .. rather than querying other git trees. | 05:17 |
mithro | pschulz01: I think the best way is to make the assumption that we do the auto-build in order | 05:18 |
mithro | IE Build libtpproto-py first, then libtpclient-py-dev, then tpclient-pywx-dev | 05:20 |
pschulz01 | mithro: Build in a 'debootstrap' chroot cage.. and add a dpkg -i python-<package? after building the libraries. | 05:21 |
pschulz01 | <package> | 05:22 |
pschulz01 | I'm getting.. dpkg-gencontrol: error: source package has two conflicting values - libtpclient-py and libtpproto-py | 05:23 |
pschulz01 | dh_gencontrol: command returned error code 65280 | 05:23 |
pschulz01 | make: *** [binary-indep] Error 1 | 05:23 |
pschulz01 | Looking into it. | 05:23 |
pschulz01 | I should put TBBle's name in the update-debian-changelog script :-) | 05:24 |
mithro | ? | 05:26 |
mithro | pschulz01: how are you running that? | 05:27 |
pschulz01 | dpkg-buildpackage -us -uc -b -rfakeroot | 05:27 |
* mithro tests again | 05:29 | |
pschulz01 | Ahah! | 05:29 |
mithro | oh, I see the problem | 05:29 |
pschulz01 | changelog is wrong.. update-debian-changelog | 05:29 |
mithro | yeah | 05:29 |
pschulz01 | Do you want to change.. | 05:29 |
mithro | yeah I will | 05:30 |
pschulz01 | package='libtpproto-py' -> 'libtpclient-py' | 05:30 |
mithro | yeah | 05:30 |
CIA-23 | mithro libtpclient-py-development * r5573423f111a /debian/update-debian-changelog: Fixed the package name in update-debian-changelog. | 05:32 |
CIA-23 | mithro tpclient-pywx-development * r6d8c6d7ff822 /debian/update-debian-changelog: Fixed the package name in update-debian-changelog. | 05:33 |
mithro | pschulz01: same thing in tpclient-pywx's update-debian-changelog | 05:33 |
pschulz01 | woot | 05:33 |
mithro | pschulz01: ahh, found one problem | 05:36 |
mithro | going to dinner | 05:36 |
mithro | bblr | 05:36 |
mithro | back | 06:04 |
mithro | pschulz01: when you install it looses the extra versioning information | 06:05 |
*** zipola has quit IRC | 06:48 | |
*** zipola has joined #tp | 06:48 | |
mithro | pschulz01: ping? | 06:49 |
mithro | niphree: ping? | 06:49 |
CIA-23 | mithro libtpproto-py * r31649bb013e7 / (build-deb.sh tp/netlib/version.py): Version can now be called with "--fix" which fixes the version of the library. | 06:49 |
CIA-23 | mithro libtpclient-py-development * rac517652f8c7 / (build-deb.sh tp/client/version.py): Version can now be called with "--fix" which fixes the version of the library. | 07:04 |
mithro | TBBle: ping? | 07:11 |
*** jotham has joined #tp | 07:29 | |
jotham | new ship design my friend did http://imagebin.org/9891 | 07:30 |
tpb | Title: Imagebin - A place to slap up your images. (at imagebin.org) | 07:30 |
mithro | thats a nasty looking ship | 07:30 |
jotham | some kind of aztek shit | 07:30 |
mithro | won't want to get in the way of that :P | 07:31 |
mithro | jotham: think you can get him to GPL it? | 07:31 |
jotham | he's making it for me, so no doubt | 07:31 |
mithro | cool! | 07:32 |
pschulz01 | mithro: pong | 07:32 |
mithro | any chance you can get him to do the rest of a ship line? | 07:32 |
mithro | pschulz01: have a look at "build-deb.sh" | 07:32 |
pschulz01 | jotham: Wo.. | 07:33 |
pschulz01 | mithro: Where? | 07:33 |
mithro | pschulz01: update | 07:34 |
mithro | jotham: liked watching Epyon's ships fly in circles :P | 07:34 |
jotham | yeah i've been working on a particle emitter | 07:35 |
jotham | so it'll be firing bullets soon enough | 07:35 |
pschulz01 | mithro: chmod 775 build-deb.sh | 07:35 |
jotham | i have a good one i made in C++ but having SWIG as a dependancy is annoying | 07:35 |
jotham | so i'm doing a pure python one | 07:35 |
mithro | yeah | 07:35 |
mithro | jotham: if you had it in C, you could use something like ctypes? | 07:35 |
jotham | yeah but that's even more stuff to learn | 07:35 |
jotham | though i want to at some stage | 07:36 |
mithro | ctypes is pretty cool | 07:36 |
jotham | yeah i've looked at it | 07:36 |
mithro | I'm using to allow me to call guile from Python | 07:36 |
mithro | and the libmng-py wrapper | 07:37 |
jotham | what's guile | 07:38 |
jotham | http://imagebin.org/9893 | 07:38 |
tpb | Title: Imagebin - A place to slap up your images. (at imagebin.org) | 07:38 |
mithro | Guile is a fast Scheme implimentation | 07:38 |
mithro | jotham: cool | 07:39 |
pschulz01 | mithro: Do you have any good guile/scheme documentation/examples? | 07:39 |
mithro | pschulz01: what do you mean "examples"? | 07:39 |
pschulz01 | jotham: That looks nasty.. | 07:40 |
mithro | pschulz01: do you want to do something specific? | 07:40 |
pschulz01 | mithro: .. so I can understand how to program in it properly. | 07:40 |
mithro | lots of good stuff on http://www.schemers.org/ | 07:40 |
tpb | Title: Welcome to schemers.org! (at www.schemers.org) | 07:40 |
pschulz01 | mithro: ta | 07:40 |
mithro | pschulz01: schemepy can be found at http://git.thousandparsec.net/gitweb/gitweb.cgi?p=schemepy.git;a=summary | 07:41 |
tpb | <http://ln-s.net/okn> (at git.thousandparsec.net) | 07:41 |
pschulz01 | mithro: hehe.. schemers.org well laid out :-) | 07:41 |
mithro | pschulz01: :P | 07:49 |
mithro | niphree: ping? | 09:28 |
*** zipola has quit IRC | 09:35 | |
CIA-23 | mithro schemepy * r3c297dbef359 / (60 files in 8 dirs): Move stuff around to prepare for packaging... | 11:15 |
CIA-23 | mithro schemepy * rea3f0312eaa8 /schemepy/ (__init__.py version.py): Added more files for packaging. | 11:15 |
CIA-23 | mithro schemepy * rf2ec4746fb29 /schemepy/guile/ (__init__.py guile.py guilehelper.c profiles/scope.scm): | 11:15 |
CIA-23 | Fixed up various bugs in the type tree. | 11:15 |
CIA-23 | Fixed the exception handling. | 11:15 |
CIA-23 | mithro schemepy * r5439761e0675 /tests/conversion.py: Started a test-suite. | 11:15 |
*** JLP has joined #tp | 12:01 | |
mithro | well I think I'm going to head to bed | 13:05 |
*** zipola has joined #tp | 13:06 | |
CIA-23 | mithro schemepy * rafb861b0e604 /tests/conversion.py: Updated to use py.test testing. | 13:07 |
CIA-23 | mithro schemepy * r43bffdd855c6 /tests/ (10 files): Split the tests out into seperate files. | 13:07 |
CIA-23 | mithro schemepy * r858da4209fab /tests/ (7 files): More verbose output on an error. | 13:07 |
CIA-23 | mithro schemepy * rcf4faf1e1606 /tests/ (TestList.py TestString.py): Small fixes in the test suite. | 13:07 |
CIA-23 | mithro schemepy * r992d367ff29d /tests/TestFloat.py: Added correct 'NaN' test. | 13:07 |
CIA-23 | mithro schemepy * r7a439bec7ecc /tests/TestComplex.py: Fixed complex tests. | 13:07 |
niphree | mithro: pong | 13:09 |
mithro | hey niphree | 13:09 |
mithro | I'm thinking of heading to bed | 13:10 |
mithro | but if you want to go through some of the backconnect stuff, I'm happy to stay up for another hour | 13:10 |
niphree | hmm... we can do this tommorow - or maybe you just tell me if there is something I can read | 13:11 |
CIA-23 | mithro schemepy * r801480fa5e86 /tests/TestFloat.py: Make test portable.. | 13:11 |
mithro | not a huge amount you can read | 13:11 |
mithro | niphree: out of interest, where did you get stuck with doing it? | 13:14 |
mithro | from the looks of it, you got a socket connection working? | 13:15 |
niphree | I didn't test it :/ - it should work, but I didn't test it | 13:17 |
niphree | so first: there is no game server I could test it on | 13:18 |
mithro | well, with the socket stuff you could just connect to any server | 13:19 |
mithro | have you done any socket stuff before? | 13:21 |
niphree | only in Java but mostly it was using something that someone else done | 13:23 |
*** guitsaru has joined #tp | 13:24 | |
mithro | well, they work very much like files | 13:24 |
mithro | you open up a socket | 13:25 |
mithro | then you write/read to it | 13:25 |
niphree | ok | 13:26 |
mithro | the reason it's a little complicated | 13:27 |
mithro | is that if there is not enough data already arrived, a read will wait until enough data arrives | 13:28 |
mithro | on a client - this is normally what you do want however | 13:29 |
mithro | the Thousand Parsec protocol also makes this easy on you | 13:29 |
mithro | because you know at any time how much data to expect | 13:29 |
mithro | you read a Thousand Parsec frame from a socket in two steps | 13:30 |
mithro | 1. Read the header | 13:30 |
mithro | 2. Read the body | 13:30 |
mithro | the header is always 16 bytes long | 13:30 |
mithro | the body is variable in length - but the length is recorded in the header | 13:31 |
niphree | ok | 13:31 |
mithro | so what the code would look like is | 13:32 |
mithro | $header_data = socket_read($sock, 16); $packet = Frame.parse_header($header_data); $body_data = socket_read($sock, $packet->length); $packet->parse_data($body_data); | 13:33 |
mithro | s/16/Frame.header_size/ | 13:34 |
mithro | but that is getting ahead of ourself, the first thing you have to do is make a successful socket connection | 13:35 |
niphree | frame is this same in protocol 3 and 4 ? I can use this same library ? | 13:35 |
mithro | niphree: there have been some small changes | 13:36 |
mithro | the size/length stuff hasn't changed however | 13:36 |
niphree | ok | 13:36 |
mithro | I started a server for you -> http://metaserver.thousandparsec.net/ | 13:36 |
tpb | Title: Thousand Parsec : Metaserver Server Listing (at metaserver.thousandparsec.net) | 13:36 |
niphree | thx :] | 13:37 |
mithro | the server won't send you anything unless you request it | 13:37 |
mithro | btw, incase you don't remember, the protocol is describe here -> http://www.thousandparsec.net/tp/dev/documents/protocol3.php | 13:38 |
tpb | <http://ln-s.net/Ix2> (at www.thousandparsec.net) | 13:38 |
mithro | so you will need to construct a "Connect" Frame and send that to the server | 13:42 |
mithro | niphree: so you need to do the following | 13:45 |
mithro | 1. Connect to the server using socket_connect | 13:45 |
mithro | 2. Create a Connect frame using libtpproto-py | 13:45 |
mithro | 3. Convert the Connect frame to a string | 13:45 |
mithro | 4. Send the string using socket_send | 13:46 |
mithro | 5. Use socket_read to get the result back | 13:46 |
mithro | you probably want the following too | 13:48 |
mithro | To set a socket timeout value (assuming you've set it blocking) use: | 13:48 |
mithro | socket_set_option( | 13:48 |
mithro | $socket, | 13:48 |
mithro | SOL_SOCKET, // socket level | 13:48 |
mithro | SO_SNDTIMEO, // timeout option | 13:48 |
mithro | array( | 13:48 |
mithro | "sec"=>10, // Timeout in seconds | 13:48 |
mithro | "usec"=>0 // I assume timeout in microseconds | 13:48 |
mithro | ) | 13:48 |
mithro | ); | 13:48 |
mithro | opps | 13:49 |
mithro | that should be SO_RCVTIMEO | 13:49 |
niphree | opps ? | 13:49 |
niphree | hmm - ok, I'll read about it :] | 13:49 |
mithro | it sets a timeout | 13:51 |
mithro | but you probably want a receive timeout | 13:51 |
niphree | so - I'll try to do this today - socket connect and try to send some frames | 13:51 |
mithro | rather then a send timeout | 13:51 |
mithro | niphree: okay | 13:55 |
mithro | i'm going to head to bed now | 13:55 |
niphree | k, good night | 13:56 |
mithro | tommorrow I should have time to sit down with you and help you get something working (if you haven't already) | 13:57 |
mithro | see you at 10:30am your time tomorrow! | 13:58 |
niphree | ok ! | 13:58 |
* nash is back | 18:58 | |
*** guitsaru has joined #tp | 19:06 | |
CIA-23 | fr33.em4il tpserver-cpp-rfts * ra6f279673f13 /modules/games/rfts/ (buildfleet.cpp buildfleet.h fleet.cpp fleet.h): Added fleet names | 19:11 |
CIA-23 | fr33.em4il tpserver-cpp-rfts * r654fbee0825d /modules/games/rfts/ (buildfleet.cpp fleet.cpp fleet.h rfts.cpp): | 19:11 |
CIA-23 | Fixing designs, adding mark1s to inital usable designs. | 19:11 |
CIA-23 | Currently a bug when building a mark1 fleet | 19:11 |
CIA-23 | fr33.em4il tpserver-cpp-rfts * r4d7e5395485b /modules/games/rfts/ (containertypes.h move.cpp rftsturn.cpp): debugging move order and misc | 19:11 |
xdotx | wb nash | 19:12 |
nash | thanks xdotx | 19:15 |
nash | Anything interesting happen over the weekend? | 19:16 |
xdotx | still the weekend for me ;) | 19:23 |
*** niphree has quit IRC | 19:23 | |
xdotx | got a lotta things to get done in rfts. i've got a huge todo list and i'm just picking things and doin' them whenever i feel like it | 19:25 |
nash | Cool | 19:33 |
nash | Todo lists to knock down are alays good | 19:33 |
jotham | man, C-r in bash/python interactive interpreter is so hot | 20:06 |
jotham | why didn't i know about it years ago | 20:06 |
nash | ! is useful too | 20:33 |
jotham | what's ! do | 20:37 |
nash | Going back first command that matches what you type after teh ! | 20:40 |
nash | So ! by itself repeats last command | 20:40 |
nash | !make repeats last make command !m will do the same, or last command whihc started with m anyway | 20:40 |
jotham | that's cool | 20:52 |
*** tuna-fish has quit IRC | 21:18 | |
CIA-23 | fr33.em4il tpserver-cpp-rfts * r7de62a423c0e /modules/games/rfts/ (6 files): Added and applied RP cost to fleet creation | 22:18 |
mithro | howdy people | 22:32 |
xdotx | hey mithro | 22:37 |
mithro | xdotx: so you working on getting a playable subset of RFTS? | 22:46 |
mithro | nash: so, I don't see any galaxie commits yet? | 22:48 |
mithro | TBBle: ping? | 22:52 |
mithro | jotham: have you tried iPython? | 23:04 |
jotham | no | 23:04 |
jotham | what is it | 23:04 |
mithro | it's a script which wraps the interactive python and does a bunch of cool things | 23:04 |
jotham | for example? | 23:05 |
* xdotx is busy makin' dinner | 23:06 | |
mithro | * Dynamic object information: | 23:06 |
mithro | Typing ?word or word? prints detailed information about an object. If | 23:06 |
mithro | certain strings in the object are too long (docstrings, code, etc.) they get | 23:06 |
mithro | snipped in the center for brevity. | 23:06 |
xdotx | mithro: almost there. hopefully going to have all but combat implemented before bed today | 23:06 |
mithro | * Completion in the local namespace, by typing TAB at the prompt. | 23:06 |
mithro | * Persistent command history across sessions (readline required). | 23:06 |
mithro | and a whole bunch more | 23:07 |
jotham | cool | 23:08 |
mithro | apt-get install ipython | 23:10 |
nash | mithro: Still don't have internet acces at home | 23:22 |
mithro | I thought the coding was on the bus? :P | 23:41 |
nash | Drove today | 23:44 |
mithro | slacker :P | 23:49 |
nash | mithro: Sorry - I code and drive badly | 23:55 |
*** guitsaru has joined #tp | 23:56 | |
mithro | nash: so? you would probably still drive better then a Victorian ;) | 23:56 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!