Saturday, 2007-04-21

*** tpb has joined #tp11:36
*** ChanServ sets mode: +o tpb11:36
mithro~seen nas11:37
tpbmithro: I have not seen nas.11:37
mithro~seen nash11:37
tpbmithro: nash was last seen in #tp 1 week, 2 days, 0 hours, 3 minutes, and 33 seconds ago: <nash> Anyway - night all11:37
*** tpb has joined #tp11:37
*** ChanServ sets mode: +o tpb11:37
*** cherez has joined #tp11:37
sijmenah.. it seems pretty straightforward now11:43
sijmenPython is definitely cool!11:49
mithrocherez: ping?11:49
cherezmithro: pong11:50
mithrocan people get to the website?11:50
mithrocherez: your tunnel collapsed again11:50
chereztry now11:51
sijmenI can reach the website11:53
mithrohrm...11:55
mithrocherez: seems like it's up 2005 :P11:55
*** zipola has joined #tp12:01
*** zipola has quit IRC12:01
sijmenmithro, I was fiddling around with the message received from getter.retrieve().. and it seemed as if there were no message headers12:09
sijmenso 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 #tp12:09
*** mithro has quit IRC12:10
*** mithro_ is now known as mithro12:10
sijmenmithro, did you get that last question?12:10
mithronope12:10
sijmensijmenmithro, I was fiddling around with the message received from getter.retrieve().. and it seemed as if there were no message headers12:10
sijmensijmenso I telnetted to port 80 and did a GET, and I didn't get any HTTP headers. Is that correct?12:10
mithrosijmen: hrm?12:11
sijmenI telnetted to darcs.thousandparsec.net port 80, did a GET /repos/media/client/media.gz12:12
sijmenand I got bare HTML without any HTTP headers12:12
mithrosijmen: that is a bit weird12:12
mithrocherez: ping?12:13
sijmenalso 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 returned12:14
mithrosijmen: what happens if you use a HTTP bit at the end?12:15
sijmenHTTP bit?12:17
mithroroot@ultraslim:~# telnet www.thousandparsec.net 8012:20
mithroTrying 64.251.14.226...12:20
mithroConnected to verbal.mithis.com.12:20
mithroEscape character is '^]'.12:20
mithroGET /repos/media/client/media.gz HTTP/1.112:20
mithros/1.1/1.012:20
sijmenaaah yes12:21
sijmenhow to revert a file back to the original version from git?12:21
mithrocg-reset ?12:22
sijmenokay12:23
sijmenagain sorry for asking 'stupid' questions, I'm feeling kindof noobish once all over again :)12:23
mithrosijmen: it's fine12:24
mithroI only found about cg-reset a few minutes go :P12:24
sijmenhah12:26
mithroi was tried cg-re<tab>12:27
*** tpb has joined #tp12:28
*** ChanServ sets mode: +o tpb12: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 stick12: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
sijmenlet's kill ChanServ and tpb :+12:32
*** ChanServ sets mode: +o mithro12: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 mithro12:34
mithromuch better12:34
mithrocherez: ping?12:35
sijmenaaah :) I found something12:35
sijmenMedia.updated gets the header for the given remote file12:36
sijmenthen it checks for the change date12:36
sijmenbut in this case, a 301 permanently moved header is returned, not containing a last-modified header, and boom12:36
sijmenI'll change it so it'll follow the moved header12:37
mithrosijmen: cool12:40
mithroit's going to end up in a 404 page :P12:40
sijmennice :P12:40
* sijmen pops the semicolon key off his keyboard12:41
mithrosijmen: havn't restored the media repository yet12:47
sijmenI'm off  for food, drink in downstairs:12:47
*** JLP has joined #tp12:48
JLPahoy all12:49
JLPhow's it going?12:49
mithrohey JLP12:49
mithrolong time no chat12:49
mithrodid you see we moved to git repositories?12:49
JLPmithro: yeah, busy with uni (time for exams is commin) and with some event organisation, besides normal stuff12:50
JLPyup, i've seen the news about server being hacked12:50
mithroJLP: yeah - it sucked :/12:50
JLPi can imagine yeah12:51
JLPwas it thru tp or thru some co-hosted site?12:52
mithroco-hosted12:53
cherezmithro: pong12:53
mithrocherez: tunnel dead again :/12:53
JLPwell at least it was not tp's fault12: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 speed12:57
* JLP sees that irc logging was also down :(12:59
mithroJLP: yes :/13:05
mithrothey only got back up a couple hours ago13:05
cherezmithro: try now13:06
cherezno idea what's up with my server13:06
mithrocherez: hopefully darcs is still converting?13:06
mithroup to 20060708 without error, yay!13:07
mithroJLP: so when you going to get back to parsek?13:10
JLPmithro: have no idea, in may and june i will have to study to get exams done13:11
JLPthen i'm traveling to akademy 2007 in glasgow (29th june - 6th july)13:12
JLPafter that i guess i'll have plenty of free time, unless i get some pain in the ass summer job13:12
mithroanyone know how to get find to remove all files which are older then 7 days?13:15
JLPmithro: use -mtime +7 with find and then pipe thru xargs to rm13:18
cherezcrap13:19
cherezI tried to google to help that13:19
cherezthinking to search a man page13:19
cherez"find older man"13:19
cherezit was bad :(13:19
cherezreal bad...13:20
mithrocherez: he he! :P13:20
* cherez resumes his lab writeup in defeat13:21
mithrobrb13:23
*** mithro_ has joined #tp13:27
*** mithro has quit IRC13:28
*** mithro_ is now known as mithro13:29
mithroback13:29
* mithro ponders heading to bed13:36
mithroJLP: any suggestions of a good-light wiki?13:38
JLPmithro: i guess dokuwiki is nice13:39
JLPmithro: do you know about plone13:48
mithrothe zope plone?13:49
JLPyup13:49
mithrowhat about it?13:51
mithroZope seems like a good idea until you use it :P13:52
JLPwell i've been to two of four courses of a plone workshop and it looks quite nice to me13:53
JLPwas thinking that maybe it would be a nice thing to use for tp webiste13:54
mithroJLP: yeah it's pretty cool from the feature point13:54
mithrobut it's horrible from the performance, maintainability and actually usage :)13:54
mithroJLP: why would we want to move from the SCM backed website?13:55
JLPdon'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 it14:02
JLPbut 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 it14:03
JLPwell anyway it was just a thought14:03
mithroi had an affair with Zope a long while back14:04
JLPwell i was quite surprised about how many pages run on plone and i've never heard about it before i went to the worksop14:07
mithromaybe it's improved lots since I last used it14:10
JLPi 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 lugos14:10
*** zipola has joined #tp14:10
*** zipola has quit IRC14:13
*** zipola has joined #tp14:14
mithroarg!?14:28
* mithro restarts the conversion from scratch :(14:28
JLPoh i see that google has set up soc planet to collect blogs14:30
JLPhttp://planet-soc.com/14:30
tpbTitle: Planet SoC (at planet-soc.com)14:30
JLPdmpayton, DystopicFro: If/when you setup a blog for your gsoc projects don't forget to add the fedd to Planet SoC14:32
sijmenmithro, little question: what's the use of properties in py?14:32
mithrosijmen: hrm?14:32
sijmenIn the Media class, _connection is wrapped into a property14:33
sijmenwhy is that?14:34
mithroproperties let you intercept and modify the incoming value14:34
mithroIE in java you use setters/getters14:34
sijmenokay14:35
mithrosijmen: in that case, the system creates _connection the first time you access it14:37
sijmenif you have the time, could you please explain line 55 in media.py:  self._connection = getattr(httplib, "%sConnection" % type.upper())(host)14:37
sijmenI see that getattr is a reflection-like method that retrieves an object by name14:37
mithroit returns the previously created connection after the first time14:37
sijmenwell the thing is, that it appears that this connecton is single-use14:38
mithroit's calling either HTTPConnection or HTTPSConnection14:38
sijmenaah14:38
sijmenPython is really cool now14:39
mithroor FTPConnection14:39
mithrosijmen: that is no where near the coolest thing you can do with python14:39
mithroin Python functions are first-class objects14:40
sijmenyeah I read that somewhere14:40
sijmenbut there's a problem once you do the second request to a HTTPConnection14:40
sijmenthis 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
mithrogetresponse() should read the whole response14:41
sijmenI'm getting a ResponseNotReady exception at the second call to getresponse() so there seems to be going something wrong14:42
mithro(line 73)14:42
sijmenwell I am doing that.. just a sec I'll pastebin some code14:42
mithrookay14:43
* mithro really should head to bed very soon14:43
sijmenhttp://rafb.net/p/Bv85vt13.html14:43
tpbTitle: Nopaste - No description (at rafb.net)14:43
sijmenas you see, I am doing getresponse()14:44
sijmenah nevermind fixed it by closing and re-opening the connection14:46
sijmenit works now :) good night14:46
sijmen(now it's 404 time)14:46
mithroyay!14:47
mithrosijmen: you might want to checkout the -dev version sometime14:47
sijmenshould updated() return True or False at 404?14:47
mithrocg-clone http://git.thousandparsec.net/git/tpclient-pywx#development tpclient-pywx14:47
sijmenwill do :)14:47
mithrocg-clone http://git.thousandparsec.net/git/libtpclient-py#development libtpclient-py-dev14:47
mithrocg-clone http://git.thousandparsec.net/git/tpclient-pywx#development tpclient-pywx-dev14:48
mithrosijmen: dunno :P14:48
mithroI think false14:48
sijmenI'll just say false :)14:48
mithroas that is what "                except socket.error, e:" does14:49
mithrodunno why the IOError returns True :P14:49
sijmenhah that's what I was looking at, too :)14:49
sijmencan I do those checkouts in the same toplever dir as those others?14:49
mithroahh I know why14:49
mithrosijmen: sure14:49
mithrothe extra argument at the end should let you14:50
mithrolocaldate = eval(open(media_local + ".timestamp").read())14:50
mithrothat line will fail with an IOError if the local file doesn't exist14:50
mithrohence you want to tell the client to update14:50
mithrohence the return True14:50
sijmenah yes14:50
sijmennow 404 is reported nicely14:50
sijmenbut still connection refused..14:51
sijmenI'll try to figure that out now14:51
mithrofeel free to add comments :P14:52
mithroupdated returns True, when the remote version has been updated14:52
mithroreturns False when the remote version is unchanged14:52
sijmenor when there's no information on it14:53
mithroor when there is not remote information14:53
mithrosijmen: this is also a good thing to work on14:53
mithrohttp://bugs.gentoo.org/attachment.cgi?id=9928014:53
mithrohttps://sourceforge.net/tracker/index.php?func=detail&aid=1688922&group_id=132078&atid=72309914:54
tpb<http://ln-s.net/RFw> (at sourceforge.net)14:54
sijmenyeah maybe14:54
mithrosijmen: it's the same code you are working with atm :)14:55
sijmenyah I know :)14:55
sijmenI'm not really sure how to do that though.. for example how is the configuration done? and how about the HTTPConnection class?14:57
mithrocherez: tunnel dead again :/14:57
mithronash: you can now push to git+ssh://git.thousandparsec.net/git/<repo>.git too now14:58
sijmenand I'd have no way to test proxy support14:58
mithroapt-get install squid :P15:09
sijmenarr :P15:17
sijmenI'm calling it quits on tp for today, promised my little brother he could use my PC for a WoW raid15:18
mithrosijmen: keep up the good work15:23
mithrosijmen: don't forgot to set your author before commiting15:23
mithrogit config --global user.name "Tim Ansell"15:24
mithrogit config --global user.email [email protected]15:24
* mithro heads to bed too15:24
sijmenoh yeah15:24
sijmenthere is no git binary on my system15:24
sijmengit-* but not git15:24
mithros/git config/git-config/15:25
mithrogit is just a program which does the above :P15:25
sijmengoodnight :)15:26
sijmenaah okay :)15:26
* mithro dissolves away15:26
*** cherez has quit IRC16:01
*** cherez has joined #tp16:02
*** dmpayton has quit IRC16:29
*** cherez has quit IRC17:30
*** JLP has quit IRC17:30
*** sijmen has quit IRC17:30
*** Epyon has quit IRC17:30
*** cherez has joined #tp17:31
*** JLP has joined #tp17:31
*** sijmen has joined #tp17:31
*** Epyon has joined #tp17:31
sijmenthis is like the summer of code :P18:04
sijmenso eh, I fixed a bug, what do I do now?18:08
sijmenI assume I can't do a direct commit, so should I send it to a mailing list or something?18:10
nashsijmen: Sending to mailing list is fine18:59
nashElse put it where someone can read it19:00
nashAnd they can pull it19:00
nashIf you look at tp-devel, you'll see I mailed a patch earlier19:00
sijmenokay19:00
nashThis is for tpserver-py I assume?19:02
nashsijmen: Hace you seen the rcs page on thousandparsec.net?  It lists the two options down the bottom of the page19:03
sijmenno, tpclinet-pywx19:03
nashAhh...19:05
nashYou playing on osx I assume?19:06
sijmenNope, on Linux :)19:07
sijmenfound it a little bit easier to set up the dev tools there19:07
nashAhh okay19:07
nashWell if you want another client to play with... feel free to grab galaxie ;-)19:07
nashAlthough you can't use it play a game just yet19:07
nash(Although it's only orders that stop it)19:08
sijmenoh yeah I saw it in the git browser, and wondered what it was :P19:08
nashMy enlightenment foundation library / fancypants based client and AI19:08
*** niphree has quit IRC19:23
sijmenfancypants sounds funny :P what is it?19:23
nashgui toolkit for embedded devices19:26
sijmenokay19:27
* nash takes a deep breath...19:52
nashTime to actually implement order entry...19:52
nashfor humans that is...19:53
sijmen?19:54
nashFor my client.19:54
nash You can't currently enter orders in any way.19:54
nashBiggest limitation19:54
nashThe AIs have an interface, but not humans.19:54
nashSo I need to fix that.19:55
nashThen it is a usuable client for humans19:55
sijmenaaah okay19:55
sijmenit appears it's possible to assign member variables outside of a function in Python?20:00
nashThat sounds right20:01
sijmenthen why is it sometimes done in the constructor and not at other times?20:01
nashRather then an artificial boundary, it's based on the principle of 'don't do it'20:01
nashNot sure I know what you mean?20:01
sijmenwell in media.py20:02
nashWhy are the varaibles not always done in the constructor?  Not needed always?20:02
sijmenthere's a function declaration: def getpossible(blablah20:02
* nash doesn't know the code ;-)20:02
nashyep20:02
sijmenon the line above, at the same indentation level, it says 'files = "media.gz"'20:02
sijmenit would appear that that's outside of any member function20:02
nashSo that's a class variable20:02
sijmenis that any different from putting this.files = "media.gz" in __init__?20:03
sijmenoooh wait you mean it's static?20:03
nashYes20:03
nashand yes20:03
sijmenaah20:03
nashIn the rather derranged C/C++ terminology20:04
sijmenI see20:05
sijmenbit it can be accessed from an instane right?20:05
nashYes20:05
nashif I recall correctly, it can only be accessed from the instance, but my python-fu is rather poor20:06
nashI'm not sure if the class is a first-class object itself20:06
sijmenhmm okay20:06
nashBut don't quote me on that ;-)20:13
sijmennash>I'm not sure if the class is a first-class object itself20:13
nashhmm... where was that kick and ban button...20:13
sijmenI guess you didn't implement that yet20:14
nashImplemented yes... but the bot doesn't give me ops20:14
sijmenand does it support Linux<->Mac (think of endianess)?20:16
nashmy client?  It should, but it hasn't been tested.20:19
nashI'm happy to fix any issues it has20:19
sijmenthe kickban button in your client ;)20:19
nashAhh20:19
nashWhen I get ops... I'll let you know20:19
sijmenwhat programming language did you use?20:20
nashC20:21
sijmenokay.. but there aren't that many sutations involving endianess as far as I can tell20:21
nashNetwork is it20:21
nashAnd I think I've got all the ntohl places ...20:21
sijmenoh yeah network...20:22
nashconsidering x86 is the PITA arch for network issues ;-)20:22
* sijmen throws Python in front of a huge raptor20:52
*** dmpayton has joined #tp21:13
nashheyo dmpayton21:14
dmpaytonYo21:14
dmpaytonHOw's it going?21:14
nashgetting there...21:14
nashAdding better window support to my client.. so I can add order windows21:15
dmpaytonfun21:16
nashActually it's a good chance for a lot of refactoring ugly code.21:17
nashAnd spliting stuff into files21:17
nashRather then one huge gui gile21:17
nashs/gile/file21:17
dmpaytonthat's always a good thing21:20
dmpaytonwork threw more, erm, work my way.21:20
sijmendmpayton, how's your fiance doing? ;)21:22
dmpaytonHah, bugging me to go to the store21:22
dmpaytonbut i havnt been able to code all day, so I'm fighting her on it as we speak. :P21:22
sijmensee you when you get back then ;)21:25
sijmenI'm off to bed21:25
nashnight21:25
sijmenyes those two statements contradict each other21:25
*** sijmen has quit IRC21:25
dmpaytonwell, fuck.21:28
dmpaytonShe won21:28
dmpaytonbbl21:28
brlcadheh21:29
brlcadyou never win21:29
brlcadeven if you "won", you would pay for it21:29
nashWith interest21:33
*** dmpayton has quit IRC21:50
*** cherez has quit IRC22:35
*** JLP has quit IRC22:40
*** JLP has joined #tp23:25
*** dmpayton has joined #tp23:26

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