Tuesday, 2008-03-11

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
Alklomionright: so i go to authentication, put my key in there and00:00
AlklomionUnable to use key file "...\key" (ssh.com SSH-2 private key)00:02
Alklomioninteresting, it works in ssh client, but not PuTTY00:06
mithroAlklomion: putty can no t read openssh or ssh.com ssh keys00:12
mithroyou will need to load it into puttygen and convert it to putty format00:12
mithroI see that you have successfully logged in once00:15
mithroMar 11 00:05:23 verbal sshd[10020]: Accepted publickey for alklomion from 124.189.245.12 port 45103 ssh200:15
mithroI know who you are and live close enough, so be nice on that server :P00:16
Alklomionhaha00:17
mithroAlklomion: any luck?00:23
Alklomionconnecting? nope00:33
Alklomionits rejecting my private key even if i load it in through puttygen00:33
Alklomionmithro: nevermind, i fixed it00:35
mithroMar 11 00:35:13 verbal sshd[23310]: Accepted publickey for alklomion from 124.189.245.12 port 42834 ssh200:37
mithroMar 11 00:35:14 verbal sshd[23317]: (pam_unix) session opened for user alklomion by alklomion(uid=0)00:37
mithroyay! :)00:37
Alklomionmithro: i've learned a valuable lesson about key management :)00:39
mithroAlklomion: cool00:39
*** Alklomion has quit IRC00:58
*** bddebian has quit IRC01:07
tpbaloril has quit worldforge (Remote host closed the connection)02:23
tpbaloril has joined on worldforge02:28
*** mithro has quit IRC03:29
*** zzorn_laptop has joined #tp03:29
*** TBBle has quit IRC03:57
*** mithro has joined #tp06:49
mithroheyo07:39
mithroanyone alive?07:39
mithroJLP: ping?07:42
mithro~seen JLP07:42
tpbmithro: JLP was last seen in #tp 1 day, 1 hour, 8 minutes, and 8 seconds ago: * JLP has to go away for an hour or two :(07:42
* mithro nudges JLP 08:11
*** _peres has joined #tp08:16
*** zzorn_laptop has quit IRC08:40
*** _peres has quit IRC08:45
JLPmithro: pomg08:56
JLPahoy *08:56
mithroJLP: how goes things?08:56
mithroIE the videos and the forums?08:56
mithroJLP: we really need to do some work on our ideas list too08:58
JLPmithro: with the forums i have stumbled upon one problem that when i tr to add sendmail export to the chain suddenly the connections with the webhosting gets droped and this doesn't get set08:58
mithroprobably want to smtp ?08:58
JLPmithro: i'll start recording videos today08:58
JLPmithro: i think i got the same problem with smtp08:59
mithrodang08:59
JLPi tried to look at the error log in the webhoting  control panel but it wasn't helpfull, mostly empty and only showing the usual about favicon vrap09:04
mithrowe only have a couple of days to "finish up" the ideas page09:17
mithroMarch 12: Mentoring organization application deadline (12 noon PDT/19:00 UTC).09:17
JLPyeah i know, damn if only the days were longer09:18
JLPit looks like i will have to add some short stuff for Parsek too, have no time to work on it :(09:18
*** bddebian has joined #tp09:26
mithrohey bddebian09:28
bddebianHi mithro09:28
mithrobddebian: how goes everything?09:33
bddebianPretty lame.  You?09:35
JLPmithro: did you see this: http://www.last.fm/group/Thousand+Parsec09:43
tpbTitle: Thousand Parsec Groups at Last.fm (at www.last.fm)09:43
mithroyes09:43
mithrowhat is last.fm?09:43
JLPit's a social website focusing on music09:44
JLPfor example you can set amarok to report what music you are playing with it to last.fm09:44
mithrosounds dangerous :P09:45
JLPthis creates a database of what you listen the most and in this way you can find other people with similar taste in music and maybe discover new artists09:45
*** CIA-12 has quit IRC09:57
*** CIA-12 has joined #tp10:02
CIA-12mithro web * re87b22987e6f /dev/documents/protocol4.php: Added metaserver anchor.10:19
mithrohave to be careful you don't listen to something embarrassing and it starts suggesting Madonna :P10:19
*** zzorn_laptop has joined #tp10:31
mithroJLP: can you tell me what you think of my updates to the ideas page?10:38
*** AquaFox has joined #tp10:43
JLPmithro: will look10:44
mithroJLP: we need to improve the Ruleset section10:53
mithroas that is our primary focus10:53
JLPmithro: like the paddings at the top, was going to do that myself but forgot to write it down on my todo list and forgot about it then11:05
mithroJLP: i'm also investigating Jive Forums11:07
mithrowell I'm off to bed11:08
JLPmithro: good night11:10
*** mithro has quit IRC11:30
*** DTRemenak has quit IRC12:02
*** zzorn_laptop has quit IRC12:03
*** DTRemenak has joined #tp12:03
*** tuna-fish has joined #tp12:49
*** tuna-fish is now known as tuna12:49
*** tuna has quit IRC12:56
*** tuna-fish has joined #tp12:57
*** Erroneous has joined #tp13:04
*** tuna-fish has quit IRC13:20
*** tuna-fish has joined #tp13:20
*** tuna-fish has quit IRC13:29
*** tuna-fish has joined #tp13:32
*** AquaFox has quit IRC13:44
*** tuna-fish has quit IRC14:00
*** tuna-fish has joined #tp14:01
*** zzorn has quit IRC14:17
*** tuna-fish has quit IRC14:42
*** tuna-fish has joined #tp14:44
*** Ohm has joined #tp15:24
*** jordi has joined #tp15:49
*** jordi has left #tp15:49
*** Ohm has quit IRC16:11
*** Ohm_ has quit IRC16:34
*** tuna-fish has quit IRC16:44
*** tuna-fish has joined #tp16:44
*** llnz has joined #tp17:03
JLPllnz: hey17:16
llnzhi JLP17:16
* llnz is home again17:26
JLPllnz: hope the travel was all smooth17:29
*** bddebian has quit IRC17:38
*** mithro has joined #tp17:44
JLPoh yay, i think the mail from forums just arrived to mailing lists17:56
JLPhm it is about one hour late, so i thought it still wasn't working17:59
tpbdisconnected from worldforge: Ping sent at 2008-03-11T18:02:11 not replied to.18:04
mithroJLP: oh cool18:10
mithroJLP: was that sent using sendmail?18:11
mithroJLP: as if so, it was probably greylisted18:11
JLPmithro: nope, sendmail didn't work, people from siteground tried several combinations of php and other things18:13
mithrohrm...18:14
JLPmithro: in the end it looks like the only thing wotking is sending from smtp local to forums18:14
mithroJLP: should I alias thousan3 somewhere?18:14
mithroI forwarded you the emails I go18:14
mithros/go/got18:14
*** JLafont has joined #tp18:15
JLafontallo18:15
JLPmithro: i think it would be best to forward them to [email protected]18:16
mithroJLP: i'll forward to you and [email protected] for the moment18:16
JLPJLafont: ahoy18:16
JLafontJLP: How is it going?18:17
JLPJLafont: for the last few days i was trying to connect our forums under construction to our mailing lists (via M2F)18:17
JLPJLafont: it looks like it is finally starting to work18:18
mithroJLafont: how goes your GSoC proposal?18:18
JLafontJLP: Awesome18:18
JLafontmithro: Its going. I tried to play RFTS on DosBox...... not being able to use a mouse is really driving me crazy18:19
mithroJLafont: I don't think RFTS has/had mouse support18:19
mithroI don't think mice where a common sight when RFTS was released :)18:20
JLafontmithro: I know. Its just painful to go through the menus sometimes18:20
JLafontI still have to figure out how to cancel out of a menu18:20
mithroJLafont: escape?18:21
JLafontDidn't work18:21
JLafontI tried that18:21
JLPJLafont: backspace18:24
JLafontnope18:24
JLafontbackspace just goes through the menu18:25
JLafontThe worst part is that when I push a button that is "illegal" It gives off an annoying beeping18:27
JLafontSo I get to find out how wrong I am18:27
*** Ohm has joined #tp18:28
mithrowell I'm off to work18:28
JLafontlATER18:29
JLafontwoops18:29
JLafontLater*18:29
JLafontI'll eventually get past the GUI and actually play for more than 10-20 minutes at a time18:30
*** Wyk3d has joined #tp18:44
*** Wyk3d has left #tp18:44
*** zzorn has joined #tp18:50
*** mithro_ has joined #tp18:52
*** mithro_ has joined #tp18:53
*** mithro has quit IRC18:54
*** mithro_ has quit IRC18:54
*** mithro has joined #tp18:55
* llnz wanders afk to think18:56
*** xdotx has joined #tp19:00
*** xdotx has quit IRC19:18
*** xdotx has joined #tp19:19
mithrohey xdotx19:22
mithrohey llnz19:22
mithrollnz: could you put some time into improving and fleshing out the tpserver-cpp ideas?19:22
llnzmithro: yeah, will try19:25
llnzthere is a lot of freedom in most of them though19:25
*** JLafont has quit IRC19:27
*** JLafont has joined #tp19:27
mithrollnz: yeah, but give some idea about what you are expecting19:28
llnzsure19:28
JLafontMwuahahahaa19:37
JLafonthttp://www.allgame.com/cg/agg.dll?p=agg&sql=1:5984~T219:37
tpb<http://ln-s.net/1fJp> (at www.allgame.com)19:37
JLafontControls!19:37
JLPJLafont: hah wasn't so far from Delete :)19:39
JLafontJLP: Yeah, it figures it was the only one I didn't try19:40
JLafontNow I can finally get a decent idea of how it works19:41
xdotxllnz: btw, i don't like the way Object::getParameter is generally used19:45
llnzok, suggestions?19:45
xdotxllnz: eg, ((OrderQueueObjectParam*)(obj->getParameter(3,1)))19:46
xdotxllnz: i'm working on something right now19:46
xdotxwanted to what your opinion on it's current functionality was19:46
mithroxdotx: ug, that is a nasty piece of code :)19:53
llnzmithro: that is what the various ObjectBehaviour classes do to get the data from the IGObject objects19:55
llnzthe numbers at the end could be #defined, or consts19:56
xdotxllnz: but the problem is they couldn't be!19:56
llnzand the cast could be C++-ified, but other than that? I'm look forward to seeing19:57
mithrotypedefed enums?19:57
llnzxdotx: really?19:57
xdotxllnz: knowing the implementation of how the numbers are generated is the only way to determine them19:57
llnztrue19:57
xdotxllnz: i was thinking something along the lines of when you create the group desc you get the pair of ids back. then you need a way to communicate those to whoever needs them (mapped to a param name?).19:59
xdotxthen you could do a template convinence function that takes an object and a pair of ideas and gets the param and returns as a dynamic_cast20:00
xdotxconvenience*20:00
llnzthe templated convenience method could be added now, i guess20:05
llnzhumm...20:05
xdotxllnz: but that's just the icing20:05
llnztrue20:06
llnzthat was the best i could come up with at the time20:06
xdotx(and better yet it could boost::polymorphic_downcast)20:06
xdotxllnz: it's a tricky problem/situation20:07
llnzi'm open to suggestions to redesign the Object/ObjectBehaviour20:07
xdotxllnz: i quite like the concept. i'll take some time to get my head around all of it and see if i can come up with something20:08
*** mithro has quit IRC20:17
*** mithro has joined #tp20:18
xdotxllnz: if you have a static const ObjectParamType with a standard name in each ObjectParam you could clean up that syntax with a template that looks up the Id based on type20:29
mithrollnz: we need to add some description about the Summer of Code20:33
* llnz is still catching up and needs to look at the ideas for programmers page20:34
*** TBBle has joined #tp20:34
mithroxdotx: you have a link to the documentation for the boost downcast thing20:34
mithroI don't see anything on google20:35
xdotxhttp://www.boost.org/libs/conversion/cast.htm20:36
tpbTitle: Header boost/cast.hpp Documentation (at www.boost.org)20:36
xdotxmithro: boost::polymorphic_downcast catches more logic errors and is faster than a traditional dynamic_cast20:37
mithroxdotx: cool, it still uses RTTI though?20:37
xdotxmithro: iirc, it just asserts the dynamic_cast != NULL and returns a static_cast20:37
xdotxbecause of that assert though, it's only valid on pointers (not really a big limitation)20:38
mithroThe polymorphic_downcast template retains the efficiency of static_cast for non-debug compilations, but for debug compilations adds safety via an assert() that a dynamic_cast  succeeds.20:38
xdotxyep20:38
mithrowhen can a static_cast fail!?20:39
xdotxmithro: also because of the way it's setup, it will catch logic errors in case you try to cast a non-polymorphic type20:39
mithroI thought C++ wouldn't let you use a static_cast where the casting can't be guaranteed20:39
xdotxit can "fail" is the cast is invalid20:39
xdotxmithro: pointers20:40
mithroxdotx: damn, C++ should be able to handle that20:40
xdotxmithro: it can - dynamic_cast is for that20:40
mithroxdotx: well then you shouldn't be able to static_cast pointers then20:41
xdotxmithro: well i think it makes sense, but it's left in there for backwards compatibility too (dynamic cast was added later because static_cast can be unsafe)20:42
mithroxdotx: and in most cases there is enough information at compile time to say if a static_cast (even with pointers) will work20:44
xdotxmithro: not really. if you have a pointer to a base and you want to cast to a derived.. that's pure rtti20:45
*** JLafont has quit IRC20:45
mithroxdotx: yes, hence you *can not* us a static_cast and have too use a dynamic_cast20:45
mithros/us/use/20:45
*** JLafont has joined #tp20:46
xdotxmithro: hmm. but what if the type is not polymorphic? shouldn't you still be able to cast between pointers?20:47
xdotxmithro: us C++ers like our power and flexibility, saying you have to use the extra-safe version wouldn't go over well20:48
mithroxdotx: if you want to be non-safe you use reinterperate_cast20:49
xdotxmithro:  consider this: you have a polymorphic, derived pointer and you know that you want the base's functionality only. a dynamic_cast doesn't make sense here since you're up-casting. is a static_cast not most appropriate?20:50
mithroif you are up-casting (as in a child-class to a parent-class) then a static_cast is safe and that can be checked at compile time20:51
mithroas the compiler knows that the class relationship20:52
* xdotx nods20:52
mithroso you can use static_cast20:52
mithrowith downcasting you really have to use dynamic_cast20:53
mithroand check that the return value is not-null20:53
xdotxtechnically with a downcast you should check that the pointer is the same.20:54
xdotxif you're cross-casting then the pointer may change (but be non-null)20:55
mithroxdotx: yeah20:56
xdotxmithro: so.. static_cast for pointers is still useful, if you're sure you don't need the run-time check.20:56
xdotxmithro: and better than a reinterpret_cast because you still get some compile time sanity check20:57
mithroxdotx: when is that possible? When you impliment your own crappy RTTI and hence get crashes20:57
*** pfo has joined #tp20:57
xdotxmithro: or.. for example, when you want to cast to a const&20:58
xdotxmithro: to cast const-ness onto something you static_cast20:58
mithroxdotx: but again, that should be safe and checked at compile time20:58
mithro(and never fail)20:58
xdotxmithro: right, but only with a static_cast?20:59
mithro?20:59
* mithro 's argument was that static_cast should never fail20:59
mithrohello pfo20:59
mithroyou new here?20:59
mithroand the compiler shouldn't let you use static_cast where it could fail (such as in down-casting)21:00
pfojust wanted to see what chan #tp is :)21:00
mithropfo: It's the project channel for Thousand Parsec - http://www.thousandparsec.net/21:00
tpbTitle: Thousand Parsec : News (at www.thousandparsec.net)21:00
pfoyeah, got that.21:01
pfothx.21:01
xdotxmithro: hmm. at the verry least it's left in for speed and backwards compatibility21:01
pfodid u guys submit your gsoc application already?21:01
xdotxvery, too21:01
mithropfo: yes21:02
*** JLafont has quit IRC21:02
mithroxdotx: hrm... look at this...21:02
*** JLafont has joined #tp21:02
pfomithro: good luck for you guys!21:03
mithropfo: thanks21:04
pfobye!21:07
*** pfo has left #tp21:07
mithroxdotx: http://pastebin.ca/939087 :/21:08
tpbTitle: general pastebin - mithro - post number 939087 (at pastebin.ca)21:08
xdotxmithro: eh, but that's fast and static_cast must support the legacy codes21:12
mithroxdotx: so we need a "safe_static_cast" then21:13
mithroone which the compile will only let you use in cases where it is safe to be used21:13
xdotxhmm. i see the argument for it.. but if you know enough to use a safe_static_cast then you probably know when it's safe to use? more cast operators could get more confusing too21:15
mithroxdotx: but the above could be an accident21:15
mithroand it won't bite me in the arse until the code is deployed on 100,000 machines :/21:15
mithroif you are going to have a typed language - you should use it to it's full extent21:16
xdotxmithro: ionno. by "static_cast" you're saying "only do a compile time check" so you're admitting that if the types are run-time variable, then it's clearly not safe21:16
xdotxcasting pointer to pointer is compile time OK21:17
xdotxc++ is all about giving you the power. if that means you can use it wrong, dang, you used it wrong.21:18
mithroxdotx: it all comes about because pointers are insane in C++ - casting from any pointer to any pointer is compile time OK <- that should not be the case21:19
xdotxhmmmmm. fair enough.21:22
xdotxmithro: aside from the fact that my code compiles slow enough as is, i think you've convinced me21:22
mithroxdotx: it would be trivial for the compiler to check that pointer to pointer casts are valid it knows this is a pointer to a type A or a type B21:23
xdotxa can't-fail static_cast operator would be useful21:23
mithroand it knows the relationship between type A and type B21:23
xdotxmithro: the only thing is afaik, there will be static_casts that could be unsafe, but aren't and the programmer can deduce those where the compiler can't21:24
mithroxdotx: and that is what reinteperate_cast is for, "I know what I'm doing, trust me"21:25
xdotxmithro: static_cast is still more valuable in that case because you're still preventing ~some~ mistakes21:26
mithroso, what mistakes does it prevent?21:26
mithroas I cant think of any?21:27
xdotxmithro: B* b; A* a = &b; static_cast<B>(a); // oops! meant B*21:27
mithroxdotx: umm, test.cpp:16: error: invalid cast from type ‘A*’ to type ‘B’ <- even with a reint cast21:30
xdotxmm. oh yeah21:31
xdotxreint does that check21:31
xdotxhmm... i'm convinced there's something else there that static_cast could do in a looks-potentially unsafe setting that reinterpret won't21:33
xdotxbut i'm not going to read any standards to find out :P21:34
*** bddebian has joined #tp21:39
mithroanyway off to lunch21:43
mithrobblr21:43
mithroxdotx: need feedback on how the client works for RFTS and some things which need priority21:43
JLafontI'd like to know too!21:47
xdotxmithro: i plan on fixing up RFTS some first so that i'm sure there's little/no problems on it's side21:48
*** JLafont has quit IRC21:57
*** Erroneous has quit IRC21:57
*** JLafont has joined #tp21:57
mithroxdotx: feel free to report problems that I can reproduce locally22:31
mithroideas would be good too :)22:31
* xdotx nods22:37
xdotxi'm out. back in a few hours22:37
mithroI'm looking to do a 0.3.1 over easter22:55
llnzbbl22:56
*** llnz has quit IRC22:56
Ohmmithro: over the last week, how much code in tpclient-pywx has changed?23:16
mithrodunno23:39
mithrosince the 4th23:46
mithrotim@vaio:~/oss/tp/tpclient-pywx$ git diff --shortstat cce8ed3e60accb76bd72be81d0752008e68df4ef23:46
mithro 18 files changed, 772 insertions(+), 496 deletions(-)23:46
mithroOhm: which is pretty good23:53
mithroInteresting23:55
mithrotim@vaio:~/oss/tp/tpclient-pywx$ git diff --shortstat TPCLIENT_PYWX_0_2_9923:55
mithro 154 files changed, 41615 insertions(+), 5863 deletions(-)23:55
mithroof course you have to remove this stuff23:59
mithrotim@vaio:~/oss/tp/tpclient-pywx$ git diff --shortstat TPCLIENT_PYWX_0_2_99 ./windows/xrc23:59
mithro 43 files changed, 18654 insertions(+), 0 deletions(-)23:59

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!