*** tpb has joined #tp | 11:36 | |
*** ChanServ sets mode: +o tpb | 11:36 | |
mithro | ~seen nas | 11:37 |
---|---|---|
tpb | mithro: I have not seen nas. | 11:37 |
mithro | ~seen nash | 11:37 |
tpb | mithro: nash was last seen in #tp 1 week, 2 days, 0 hours, 3 minutes, and 33 seconds ago: <nash> Anyway - night all | 11:37 |
*** tpb has joined #tp | 11:37 | |
*** ChanServ sets mode: +o tpb | 11:37 | |
*** cherez has joined #tp | 11:37 | |
sijmen | ah.. it seems pretty straightforward now | 11:43 |
sijmen | Python is definitely cool! | 11:49 |
mithro | cherez: ping? | 11:49 |
cherez | mithro: pong | 11:50 |
mithro | can people get to the website? | 11:50 |
mithro | cherez: your tunnel collapsed again | 11:50 |
cherez | try now | 11:51 |
sijmen | I can reach the website | 11:53 |
mithro | hrm... | 11:55 |
mithro | cherez: seems like it's up 2005 :P | 11:55 |
*** zipola has joined #tp | 12:01 | |
*** zipola has quit IRC | 12:01 | |
sijmen | mithro, I was fiddling around with the message received from getter.retrieve().. and it seemed as if there were no message headers | 12:09 |
sijmen | so I telnetted to port 80 and did a GET, and I didn't get any HTTP headers. Is that correct? | 12:09 |
*** mithro_ has joined #tp | 12:09 | |
*** mithro has quit IRC | 12:10 | |
*** mithro_ is now known as mithro | 12:10 | |
sijmen | mithro, did you get that last question? | 12:10 |
mithro | nope | 12:10 |
sijmen | sijmenmithro, I was fiddling around with the message received from getter.retrieve().. and it seemed as if there were no message headers | 12:10 |
sijmen | sijmenso I telnetted to port 80 and did a GET, and I didn't get any HTTP headers. Is that correct? | 12:10 |
mithro | sijmen: hrm? | 12:11 |
sijmen | I telnetted to darcs.thousandparsec.net port 80, did a GET /repos/media/client/media.gz | 12:12 |
sijmen | and I got bare HTML without any HTTP headers | 12:12 |
mithro | sijmen: that is a bit weird | 12:12 |
mithro | cherez: ping? | 12:13 |
sijmen | also I iterated through the headers in the py code and printed the header, but nothing is printed so it appears there really are no headers returned | 12:14 |
mithro | sijmen: what happens if you use a HTTP bit at the end? | 12:15 |
sijmen | HTTP bit? | 12:17 |
mithro | root@ultraslim:~# telnet www.thousandparsec.net 80 | 12:20 |
mithro | Trying 64.251.14.226... | 12:20 |
mithro | Connected to verbal.mithis.com. | 12:20 |
mithro | Escape character is '^]'. | 12:20 |
mithro | GET /repos/media/client/media.gz HTTP/1.1 | 12:20 |
mithro | s/1.1/1.0 | 12:20 |
sijmen | aaah yes | 12:21 |
sijmen | how to revert a file back to the original version from git? | 12:21 |
mithro | cg-reset ? | 12:22 |
sijmen | okay | 12:23 |
sijmen | again sorry for asking 'stupid' questions, I'm feeling kindof noobish once all over again :) | 12:23 |
mithro | sijmen: it's fine | 12:24 |
mithro | I only found about cg-reset a few minutes go :P | 12:24 |
sijmen | hah | 12:26 |
mithro | i was tried cg-re<tab> | 12:27 |
*** tpb has joined #tp | 12:28 | |
*** ChanServ sets mode: +o tpb | 12:28 | |
*** mithro changes topic to "Logs - http://irc.thousandparsec.net/~irc/ || Metaserver - http://metaserver.thousandparsec.net/ || Code - http://git.thousandparsec.net/ || Website mostly back || 2007-02-26, TP ranked 126th on SF" | 12:30 | |
*** ChanServ changes topic to "Metaserver back - http://metaserver.thousandparsec.net/ || Code now in GIT repository http://git.thousandparsec.net/ || Website mostly back || 2007-02-26, TP ranked 126th on SF" | 12:30 | |
*** tpb changes topic to "Logs - http://irc.thousandparsec.net/~irc/ || Metaserver - http://metaserver.thousandparsec.net/ || Code - http://git.thousandparsec.net/ || Website mostly back || 2007-02-26, TP ranked 126th on SF" | 12:30 | |
*** tpb changes topic to "Metaserver back - http://metaserver.thousandparsec.net/ || Code now in GIT repository http://git.thousandparsec.net/ || Website mostly back || 2007-02-26, TP ranked 126th on SF" | 12:30 | |
* mithro beats tpb with a stick | 12:30 | |
*** mithro changes topic to "Logs - http://irc.thousandparsec.net/~irc/ || Metaserver - http://metaserver.thousandparsec.net/ || Code - http://git.thousandparsec.net/ || Website mostly back || 2007-02-26, TP ranked 126th on SF" | 12:30 | |
*** ChanServ changes topic to "Metaserver back - http://metaserver.thousandparsec.net/ || Code now in GIT repository http://git.thousandparsec.net/ || Website mostly back || 2007-02-26, TP ranked 126th on SF" | 12:30 | |
sijmen | let's kill ChanServ and tpb :+ | 12:32 |
*** ChanServ sets mode: +o mithro | 12:34 | |
*** mithro changes topic to "Logs - http://irc.thousandparsec.net/~irc/ || Metaserver - http://metaserver.thousandparsec.net/ || Code - http://git.thousandparsec.net/ || Website mostly back || 2007-02-26, TP ranked 126th on SF" | 12:34 | |
*** mithro changes topic to "Logs - http://irc.thousandparsec.net/~irc/ || Metaserver - http://metaserver.thousandparsec.net/ || Code - http://git.thousandparsec.net/ || Website mostly back || 2007-02-26, TP ranked 126th on SF" | 12:34 | |
*** mithro sets mode: -o mithro | 12:34 | |
mithro | much better | 12:34 |
mithro | cherez: ping? | 12:35 |
sijmen | aaah :) I found something | 12:35 |
sijmen | Media.updated gets the header for the given remote file | 12:36 |
sijmen | then it checks for the change date | 12:36 |
sijmen | but in this case, a 301 permanently moved header is returned, not containing a last-modified header, and boom | 12:36 |
sijmen | I'll change it so it'll follow the moved header | 12:37 |
mithro | sijmen: cool | 12:40 |
mithro | it's going to end up in a 404 page :P | 12:40 |
sijmen | nice :P | 12:40 |
* sijmen pops the semicolon key off his keyboard | 12:41 | |
mithro | sijmen: havn't restored the media repository yet | 12:47 |
sijmen | I'm off for food, drink in downstairs: | 12:47 |
*** JLP has joined #tp | 12:48 | |
JLP | ahoy all | 12:49 |
JLP | how's it going? | 12:49 |
mithro | hey JLP | 12:49 |
mithro | long time no chat | 12:49 |
mithro | did you see we moved to git repositories? | 12:49 |
JLP | mithro: yeah, busy with uni (time for exams is commin) and with some event organisation, besides normal stuff | 12:50 |
JLP | yup, i've seen the news about server being hacked | 12:50 |
mithro | JLP: yeah - it sucked :/ | 12:50 |
JLP | i can imagine yeah | 12:51 |
JLP | was it thru tp or thru some co-hosted site? | 12:52 |
mithro | co-hosted | 12:53 |
cherez | mithro: pong | 12:53 |
mithro | cherez: tunnel dead again :/ | 12:53 |
JLP | well at least it was not tp's fault | 12:54 |
*** JLP changes topic to "Logs - http://www.thousandparsec.net/~irc/ || Metaserver - http://metaserver.thousandparsec.net/ || Code - http://git.thousandparsec.net/ || Website mostly back || 2007-02-26, TP ranked 126th on SF" | 12:56 | |
* JLP goes reading tp irc logs to get back up to speed | 12:57 | |
* JLP sees that irc logging was also down :( | 12:59 | |
mithro | JLP: yes :/ | 13:05 |
mithro | they only got back up a couple hours ago | 13:05 |
cherez | mithro: try now | 13:06 |
cherez | no idea what's up with my server | 13:06 |
mithro | cherez: hopefully darcs is still converting? | 13:06 |
mithro | up to 20060708 without error, yay! | 13:07 |
mithro | JLP: so when you going to get back to parsek? | 13:10 |
JLP | mithro: have no idea, in may and june i will have to study to get exams done | 13:11 |
JLP | then i'm traveling to akademy 2007 in glasgow (29th june - 6th july) | 13:12 |
JLP | after that i guess i'll have plenty of free time, unless i get some pain in the ass summer job | 13:12 |
mithro | anyone know how to get find to remove all files which are older then 7 days? | 13:15 |
JLP | mithro: use -mtime +7 with find and then pipe thru xargs to rm | 13:18 |
cherez | crap | 13:19 |
cherez | I tried to google to help that | 13:19 |
cherez | thinking to search a man page | 13:19 |
cherez | "find older man" | 13:19 |
cherez | it was bad :( | 13:19 |
cherez | real bad... | 13:20 |
mithro | cherez: he he! :P | 13:20 |
* cherez resumes his lab writeup in defeat | 13:21 | |
mithro | brb | 13:23 |
*** mithro_ has joined #tp | 13:27 | |
*** mithro has quit IRC | 13:28 | |
*** mithro_ is now known as mithro | 13:29 | |
mithro | back | 13:29 |
* mithro ponders heading to bed | 13:36 | |
mithro | JLP: any suggestions of a good-light wiki? | 13:38 |
JLP | mithro: i guess dokuwiki is nice | 13:39 |
JLP | mithro: do you know about plone | 13:48 |
mithro | the zope plone? | 13:49 |
JLP | yup | 13:49 |
mithro | what about it? | 13:51 |
mithro | Zope seems like a good idea until you use it :P | 13:52 |
JLP | well i've been to two of four courses of a plone workshop and it looks quite nice to me | 13:53 |
JLP | was thinking that maybe it would be a nice thing to use for tp webiste | 13:54 |
mithro | JLP: yeah it's pretty cool from the feature point | 13:54 |
mithro | but it's horrible from the performance, maintainability and actually usage :) | 13:54 |
mithro | JLP: why would we want to move from the SCM backed website? | 13:55 |
JLP | don't know exactly why, but it seemed quite easy to set up and it is very flexible and then easy to manage and edit documents on it | 14:02 |
JLP | but then again i've never used it in a real usecase and if we use some wiki for more dynamic parts of the page i guess there is not so much need for it | 14:03 |
JLP | well anyway it was just a thought | 14:03 |
mithro | i had an affair with Zope a long while back | 14:04 |
JLP | well i was quite surprised about how many pages run on plone and i've never heard about it before i went to the worksop | 14:07 |
mithro | maybe it's improved lots since I last used it | 14:10 |
JLP | i even found out about the workshop from a post on our lug mailing list, where they pointed out that our lug website is running on plone and that this woul be on of the ways to be able to help lugos | 14:10 |
*** zipola has joined #tp | 14:10 | |
*** zipola has quit IRC | 14:13 | |
*** zipola has joined #tp | 14:14 | |
mithro | arg!? | 14:28 |
* mithro restarts the conversion from scratch :( | 14:28 | |
JLP | oh i see that google has set up soc planet to collect blogs | 14:30 |
JLP | http://planet-soc.com/ | 14:30 |
tpb | Title: Planet SoC (at planet-soc.com) | 14:30 |
JLP | dmpayton, DystopicFro: If/when you setup a blog for your gsoc projects don't forget to add the fedd to Planet SoC | 14:32 |
sijmen | mithro, little question: what's the use of properties in py? | 14:32 |
mithro | sijmen: hrm? | 14:32 |
sijmen | In the Media class, _connection is wrapped into a property | 14:33 |
sijmen | why is that? | 14:34 |
mithro | properties let you intercept and modify the incoming value | 14:34 |
mithro | IE in java you use setters/getters | 14:34 |
sijmen | okay | 14:35 |
mithro | sijmen: in that case, the system creates _connection the first time you access it | 14:37 |
sijmen | if you have the time, could you please explain line 55 in media.py: self._connection = getattr(httplib, "%sConnection" % type.upper())(host) | 14:37 |
sijmen | I see that getattr is a reflection-like method that retrieves an object by name | 14:37 |
mithro | it returns the previously created connection after the first time | 14:37 |
sijmen | well the thing is, that it appears that this connecton is single-use | 14:38 |
mithro | it's calling either HTTPConnection or HTTPSConnection | 14:38 |
sijmen | aah | 14:38 |
sijmen | Python is really cool now | 14:39 |
mithro | or FTPConnection | 14:39 |
mithro | sijmen: that is no where near the coolest thing you can do with python | 14:39 |
mithro | in Python functions are first-class objects | 14:40 |
sijmen | yeah I read that somewhere | 14:40 |
sijmen | but there's a problem once you do the second request to a HTTPConnection | 14:40 |
sijmen | this is what the doc tells: "Note: Note that you must have read the whole response efore you can send a new request to the server" | 14:41 |
mithro | getresponse() should read the whole response | 14:41 |
sijmen | I'm getting a ResponseNotReady exception at the second call to getresponse() so there seems to be going something wrong | 14:42 |
mithro | (line 73) | 14:42 |
sijmen | well I am doing that.. just a sec I'll pastebin some code | 14:42 |
mithro | okay | 14:43 |
* mithro really should head to bed very soon | 14:43 | |
sijmen | http://rafb.net/p/Bv85vt13.html | 14:43 |
tpb | Title: Nopaste - No description (at rafb.net) | 14:43 |
sijmen | as you see, I am doing getresponse() | 14:44 |
sijmen | ah nevermind fixed it by closing and re-opening the connection | 14:46 |
sijmen | it works now :) good night | 14:46 |
sijmen | (now it's 404 time) | 14:46 |
mithro | yay! | 14:47 |
mithro | sijmen: you might want to checkout the -dev version sometime | 14:47 |
sijmen | should updated() return True or False at 404? | 14:47 |
mithro | cg-clone http://git.thousandparsec.net/git/tpclient-pywx#development tpclient-pywx | 14:47 |
sijmen | will do :) | 14:47 |
mithro | cg-clone http://git.thousandparsec.net/git/libtpclient-py#development libtpclient-py-dev | 14:47 |
mithro | cg-clone http://git.thousandparsec.net/git/tpclient-pywx#development tpclient-pywx-dev | 14:48 |
mithro | sijmen: dunno :P | 14:48 |
mithro | I think false | 14:48 |
sijmen | I'll just say false :) | 14:48 |
mithro | as that is what " except socket.error, e:" does | 14:49 |
mithro | dunno why the IOError returns True :P | 14:49 |
sijmen | hah that's what I was looking at, too :) | 14:49 |
sijmen | can I do those checkouts in the same toplever dir as those others? | 14:49 |
mithro | ahh I know why | 14:49 |
mithro | sijmen: sure | 14:49 |
mithro | the extra argument at the end should let you | 14:50 |
mithro | localdate = eval(open(media_local + ".timestamp").read()) | 14:50 |
mithro | that line will fail with an IOError if the local file doesn't exist | 14:50 |
mithro | hence you want to tell the client to update | 14:50 |
mithro | hence the return True | 14:50 |
sijmen | ah yes | 14:50 |
sijmen | now 404 is reported nicely | 14:50 |
sijmen | but still connection refused.. | 14:51 |
sijmen | I'll try to figure that out now | 14:51 |
mithro | feel free to add comments :P | 14:52 |
mithro | updated returns True, when the remote version has been updated | 14:52 |
mithro | returns False when the remote version is unchanged | 14:52 |
sijmen | or when there's no information on it | 14:53 |
mithro | or when there is not remote information | 14:53 |
mithro | sijmen: this is also a good thing to work on | 14:53 |
mithro | http://bugs.gentoo.org/attachment.cgi?id=99280 | 14:53 |
mithro | https://sourceforge.net/tracker/index.php?func=detail&aid=1688922&group_id=132078&atid=723099 | 14:54 |
tpb | <http://ln-s.net/RFw> (at sourceforge.net) | 14:54 |
sijmen | yeah maybe | 14:54 |
mithro | sijmen: it's the same code you are working with atm :) | 14:55 |
sijmen | yah I know :) | 14:55 |
sijmen | I'm not really sure how to do that though.. for example how is the configuration done? and how about the HTTPConnection class? | 14:57 |
mithro | cherez: tunnel dead again :/ | 14:57 |
mithro | nash: you can now push to git+ssh://git.thousandparsec.net/git/<repo>.git too now | 14:58 |
sijmen | and I'd have no way to test proxy support | 14:58 |
mithro | apt-get install squid :P | 15:09 |
sijmen | arr :P | 15:17 |
sijmen | I'm calling it quits on tp for today, promised my little brother he could use my PC for a WoW raid | 15:18 |
mithro | sijmen: keep up the good work | 15:23 |
mithro | sijmen: don't forgot to set your author before commiting | 15:23 |
mithro | git config --global user.name "Tim Ansell" | 15:24 |
mithro | git config --global user.email [email protected] | 15:24 |
* mithro heads to bed too | 15:24 | |
sijmen | oh yeah | 15:24 |
sijmen | there is no git binary on my system | 15:24 |
sijmen | git-* but not git | 15:24 |
mithro | s/git config/git-config/ | 15:25 |
mithro | git is just a program which does the above :P | 15:25 |
sijmen | goodnight :) | 15:26 |
sijmen | aah okay :) | 15:26 |
* mithro dissolves away | 15:26 | |
*** cherez has quit IRC | 16:01 | |
*** cherez has joined #tp | 16:02 | |
*** dmpayton has quit IRC | 16:29 | |
*** cherez has quit IRC | 17:30 | |
*** JLP has quit IRC | 17:30 | |
*** sijmen has quit IRC | 17:30 | |
*** Epyon has quit IRC | 17:30 | |
*** cherez has joined #tp | 17:31 | |
*** JLP has joined #tp | 17:31 | |
*** sijmen has joined #tp | 17:31 | |
*** Epyon has joined #tp | 17:31 | |
sijmen | this is like the summer of code :P | 18:04 |
sijmen | so eh, I fixed a bug, what do I do now? | 18:08 |
sijmen | I assume I can't do a direct commit, so should I send it to a mailing list or something? | 18:10 |
nash | sijmen: Sending to mailing list is fine | 18:59 |
nash | Else put it where someone can read it | 19:00 |
nash | And they can pull it | 19:00 |
nash | If you look at tp-devel, you'll see I mailed a patch earlier | 19:00 |
sijmen | okay | 19:00 |
nash | This is for tpserver-py I assume? | 19:02 |
nash | sijmen: Hace you seen the rcs page on thousandparsec.net? It lists the two options down the bottom of the page | 19:03 |
sijmen | no, tpclinet-pywx | 19:03 |
nash | Ahh... | 19:05 |
nash | You playing on osx I assume? | 19:06 |
sijmen | Nope, on Linux :) | 19:07 |
sijmen | found it a little bit easier to set up the dev tools there | 19:07 |
nash | Ahh okay | 19:07 |
nash | Well if you want another client to play with... feel free to grab galaxie ;-) | 19:07 |
nash | Although you can't use it play a game just yet | 19:07 |
nash | (Although it's only orders that stop it) | 19:08 |
sijmen | oh yeah I saw it in the git browser, and wondered what it was :P | 19:08 |
nash | My enlightenment foundation library / fancypants based client and AI | 19:08 |
*** niphree has quit IRC | 19:23 | |
sijmen | fancypants sounds funny :P what is it? | 19:23 |
nash | gui toolkit for embedded devices | 19:26 |
sijmen | okay | 19:27 |
* nash takes a deep breath... | 19:52 | |
nash | Time to actually implement order entry... | 19:52 |
nash | for humans that is... | 19:53 |
sijmen | ? | 19:54 |
nash | For my client. | 19:54 |
nash | You can't currently enter orders in any way. | 19:54 |
nash | Biggest limitation | 19:54 |
nash | The AIs have an interface, but not humans. | 19:54 |
nash | So I need to fix that. | 19:55 |
nash | Then it is a usuable client for humans | 19:55 |
sijmen | aaah okay | 19:55 |
sijmen | it appears it's possible to assign member variables outside of a function in Python? | 20:00 |
nash | That sounds right | 20:01 |
sijmen | then why is it sometimes done in the constructor and not at other times? | 20:01 |
nash | Rather then an artificial boundary, it's based on the principle of 'don't do it' | 20:01 |
nash | Not sure I know what you mean? | 20:01 |
sijmen | well in media.py | 20:02 |
nash | Why are the varaibles not always done in the constructor? Not needed always? | 20:02 |
sijmen | there's a function declaration: def getpossible(blablah | 20:02 |
* nash doesn't know the code ;-) | 20:02 | |
nash | yep | 20:02 |
sijmen | on the line above, at the same indentation level, it says 'files = "media.gz"' | 20:02 |
sijmen | it would appear that that's outside of any member function | 20:02 |
nash | So that's a class variable | 20:02 |
sijmen | is that any different from putting this.files = "media.gz" in __init__? | 20:03 |
sijmen | oooh wait you mean it's static? | 20:03 |
nash | Yes | 20:03 |
nash | and yes | 20:03 |
sijmen | aah | 20:03 |
nash | In the rather derranged C/C++ terminology | 20:04 |
sijmen | I see | 20:05 |
sijmen | bit it can be accessed from an instane right? | 20:05 |
nash | Yes | 20:05 |
nash | if I recall correctly, it can only be accessed from the instance, but my python-fu is rather poor | 20:06 |
nash | I'm not sure if the class is a first-class object itself | 20:06 |
sijmen | hmm okay | 20:06 |
nash | But don't quote me on that ;-) | 20:13 |
sijmen | nash>I'm not sure if the class is a first-class object itself | 20:13 |
nash | hmm... where was that kick and ban button... | 20:13 |
sijmen | I guess you didn't implement that yet | 20:14 |
nash | Implemented yes... but the bot doesn't give me ops | 20:14 |
sijmen | and does it support Linux<->Mac (think of endianess)? | 20:16 |
nash | my client? It should, but it hasn't been tested. | 20:19 |
nash | I'm happy to fix any issues it has | 20:19 |
sijmen | the kickban button in your client ;) | 20:19 |
nash | Ahh | 20:19 |
nash | When I get ops... I'll let you know | 20:19 |
sijmen | what programming language did you use? | 20:20 |
nash | C | 20:21 |
sijmen | okay.. but there aren't that many sutations involving endianess as far as I can tell | 20:21 |
nash | Network is it | 20:21 |
nash | And I think I've got all the ntohl places ... | 20:21 |
sijmen | oh yeah network... | 20:22 |
nash | considering x86 is the PITA arch for network issues ;-) | 20:22 |
* sijmen throws Python in front of a huge raptor | 20:52 | |
*** dmpayton has joined #tp | 21:13 | |
nash | heyo dmpayton | 21:14 |
dmpayton | Yo | 21:14 |
dmpayton | HOw's it going? | 21:14 |
nash | getting there... | 21:14 |
nash | Adding better window support to my client.. so I can add order windows | 21:15 |
dmpayton | fun | 21:16 |
nash | Actually it's a good chance for a lot of refactoring ugly code. | 21:17 |
nash | And spliting stuff into files | 21:17 |
nash | Rather then one huge gui gile | 21:17 |
nash | s/gile/file | 21:17 |
dmpayton | that's always a good thing | 21:20 |
dmpayton | work threw more, erm, work my way. | 21:20 |
sijmen | dmpayton, how's your fiance doing? ;) | 21:22 |
dmpayton | Hah, bugging me to go to the store | 21:22 |
dmpayton | but i havnt been able to code all day, so I'm fighting her on it as we speak. :P | 21:22 |
sijmen | see you when you get back then ;) | 21:25 |
sijmen | I'm off to bed | 21:25 |
nash | night | 21:25 |
sijmen | yes those two statements contradict each other | 21:25 |
*** sijmen has quit IRC | 21:25 | |
dmpayton | well, fuck. | 21:28 |
dmpayton | She won | 21:28 |
dmpayton | bbl | 21:28 |
brlcad | heh | 21:29 |
brlcad | you never win | 21:29 |
brlcad | even if you "won", you would pay for it | 21:29 |
nash | With interest | 21:33 |
*** dmpayton has quit IRC | 21:50 | |
*** cherez has quit IRC | 22:35 | |
*** JLP has quit IRC | 22:40 | |
*** JLP has joined #tp | 23:25 | |
*** dmpayton has joined #tp | 23:26 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!