Monday, 2007-09-03

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
* nash is back00:01
nashgreywhind: Sort it out>00:01
nash?00:01
greywhindnash: not sure - mithro hasn't told me whether it worked or not00:02
nashgreywhind: So what are you trying to do?00:11
greywhindnash: generate a patch to show mithro the code for winIdleFinder00:11
nashSo you commited it?00:12
greywhindnash: yes, then did a cg-update to merge with the current changes00:12
nashWhat platform are you on?00:13
greywhindnash: mac00:13
nashOkay - are you using hte command line for this?00:13
greywhindnash: yes.00:14
*** mithro has quit IRC00:15
nashTwo ways... one: Just generate a list of all patches in your tree not in mainline:00:15
nashgit-format-patch -r origin..master00:15
nashOr use git-log to find the patch id, then use git-format-patch -r patchid^..patchid00:16
greywhindis the 2nd one the same as cg-patch -r patchid..patchid?00:17
greywhindi mean cg-mkpatch00:17
* nash looks00:20
nashYou need cg-mkpatch  id^..id00:21
nashThe carat says 'go back one revision from there', then up to the patch you want00:21
greywhindah.00:21
nashid..id (changes from id..id is the empty set)00:21
greywhindbut git-format-patch -r origin..master will do it without as much hassle?00:22
nashIt will give you all the patches in your local tree not in master...00:24
nashIf you only have one... it's pretty easy ;-)00:24
*** mithro has joined #tp00:25
nashorigin..master (Assuming the trees are called that) is a quick and easy way00:25
mithrogreywhind: sadly, that patch didn't include everything either :/00:26
mithrohey nash00:26
greywhindmithro: alright - let me try it the way nash suggested00:26
nashheyo mithro00:26
nashmithro: Did you look at the API for my struct extraction thing?00:26
mithronash: nope00:27
nashOkay...00:27
mithromy laptop died last Thursday night00:27
nashIt's only first round, but does it do the basics you need?00:27
mithroso I got a new one on Friday night, and spent most of the weekend setting it up00:27
* mithro is still getting use to the keyboard00:27
greywhindmithro: sent00:28
mithrogreywhind: checking now00:28
mithronash: did you get the Summit email?00:28
nashmithro: Which summit email?00:29
* nash guesses not00:29
nashWhen was it sent, and to where?00:29
mithronash: about the Summer of Code mentor summit00:30
mithroyou should have gotten an email from me, and an email from Tiffany00:30
nashAhh... yep - lost in my unspam-filtered inbox...00:30
mithronash: what is your prefered email these days?00:31
nashmithro: No chance... my wedding anniversary is the 1st of october, we start a massive new project on the day for our largest client, with 3 new staff starting00:31
mithrogreywhind: looking much better00:31
nashmithro: That's it.00:31
mithronash: ahh well :/00:31
greywhindmithro: k, great00:31
nashJust no filtering at the moment - so things are a bit vrap00:31
mithrolooks like it is going to be too expensive for me to get there, Lee is planing on going however00:31
mithrocheapest flight I can get so far is $2000 AUD00:32
nashAbout right00:32
nashTry a good agent though, you should be able to get 1600 AUD if you try00:32
mithro(specially at such short notice(00:32
mithroalso have to figure out if I can get out of work00:33
mithroI figure that my first day isn't the best time to ask for 1 week leave :P00:34
nashheh00:34
nashHow long is it?00:34
mithroonly 1 day, but by the time you add in getting there and back it would work out to be about one week for me00:34
nashYech00:36
nashTo be frank, the listed reason would only be a maybe for me to go00:37
mithroI've never been to the US, and Google is paying in theory :P00:38
nashWell they are paying quite a substantial chunk00:39
* mithro ponders00:39
mithronash: I'll see if I'm up to looking at the struct stuff tonight00:39
nashCool00:40
nashmithro: I'm going to continue rebuilding my machine in the next day or so00:40
nashSo I'll have mail filtering soon ;-)00:40
mithronash: would be a good idea00:40
nashmithro: It's scary how much my filters were taking care of00:42
mithroI have 108 filters00:43
nashNot bad00:43
nashAll procmail I assume?00:44
greywhindmithro: so... did it work?00:45
mithrogreywhind: will have to wait till tonight00:45
mithrogreywhind: but the patches look okay00:46
greywhindmithro: alright. no problem.00:46
mithronash: nope, just Evolution's email filtering00:46
nashWow -00:46
nashEvolution's mail filtering i've tried many times, but never found it up to the task00:46
mithroI can do all types of things, like color emails too00:49
nashformail -X"X-Status: Important"00:49
*** mithro has quit IRC01:00
*** mithro has joined #tp01:00
*** mithro has joined #tp01:01
*** mithro has quit IRC01:18
*** mithro has joined #tp01:18
*** xdotx has quit IRC01:23
*** mithro has quit IRC02:11
*** mithro has joined #tp02:14
*** daxxar has quit IRC02:47
*** daxxar has joined #tp02:47
mithronash: you sorted out your internet at home yet?03:23
nashmithro: Yeah03:27
nashBUt not my computer ;-)03:27
mithrobeen really busy at home then? :P03:27
nashI got fed up with being so farked so I reinstalled03:27
nashStill farked however03:27
nashYou bet03:27
nashWe have lots of work to do fix our house up03:28
nashSpent all weekend in the garden03:28
*** mithro has quit IRC04:15
*** mithro has joined #tp04:44
tpbaloril_ has quit worldforge (Ping timeout: 624 seconds)04:50
tpbaloril has joined on worldforge05:13
*** peres has joined #tp05:26
mithrohi peres05:28
mithroI don't think we have seen you here before05:28
pereshi mithro :)05:29
peresi'm pretty new05:29
peresi was reading your motivation page and got somewhat attracted by that text generator stuff05:29
mithroperes: what are you interested in?05:30
mithrowhat other games have inspired you? Stars!? VGA Planets? MOO?05:31
peresno one actually, i was just wondering how hard could it be to create that planet name/description generators05:31
peresand was also wondering what is the expected output for that05:32
mithroperes: text files would be good05:46
peresmithro: of course ;)05:47
mithroperes: cool text descriptions would be a good start05:53
peressomething like 'third moon of klingon'?05:53
mithroperes: yeah05:54
peresok, so parametrized names are fine05:54
pereswhat about descriptions?05:54
mithroSomething similar?05:55
peresi see, so what are the differences between name and descriptions?05:56
mithroname is the thing which gets displayed on the starmap05:56
mithroso should be quite short05:57
mithrodescription should be a more interesting stuff05:57
pereslike planet features?05:57
mithrolike "The planet has wild planes with strange bird like animals eating grass. ....."05:57
peresi see, so it's another parametric generator with a *large* combinatorial space05:58
mithrowell, the name would be best something which isn't parametric - something which just tries to produce pronouncable words05:59
peresa database with real names and attributes might be ok for that06:00
mithrohttps://sourceforge.net/tracker/index.php?func=detail&aid=1460527&group_id=132078&atid=82972406:00
tpbTodo #1460527: Design a Planet name/description generator06:00
peresi should have found that on my own ;)06:01
mithrohttp://www.seventhsanctum.com/gens/planetname.html06:02
tpb<http://ln-s.net/tLJ> (at www.seventhsanctum.com)06:02
peresthe generator at seventhsanctum is not seeded, though06:03
mithroperes: I'm sure there is a seed somewhere :P06:04
pereswell, the same code yields different names :P06:04
peresit's nice so get a fair idea of what you need, though06:04
peress/so/to06:04
mithroif you generate to a file, we can then load it into the server independent of what you write it in06:05
mithroanyway, I'm off to dinner06:05
mithrobblr06:05
peressee you06:05
* peres off for lunch06:30
*** Demitar has quit IRC06:37
*** peres has quit IRC06:51
CIA-23noegnud tpclient-pywx-development * rc530e5dd6df8 / (tpclient-pywx windows/winIdleFinder.py windows/winUpdate.py):07:05
CIA-23Added winIdleFinder.py, a window that displays a table of all units that07:05
CIA-23have no orders for the current turn and are owned by the player viewing the07:05
CIA-23report. Currently, it hides the main window when shown, but Mithro is07:05
CIA-23working to resolve that. Will be fixed as soon as possible.07:05
CIA-23noegnud tpclient-pywx-development * rf1aecca7ce56 / (6 files in 3 dirs):07:05
CIA-23Modified winIdleFinder to make it a popup window from winMain, rather than07:05
CIA-23a separate main window that hides winMain when it is shown.07:05
mithrogreywhind: ping?07:32
mithrobrb07:34
*** mithro has quit IRC07:34
*** mithro has joined #tp07:35
mithronash: ping?07:47
*** Demitar has joined #tp08:25
*** Demitar has quit IRC08:48
*** peres has joined #tp08:51
*** Demitar has joined #tp10:31
*** zipola has quit IRC11:39
*** zipola has joined #tp12:06
*** peres has quit IRC12:35
greywhindmithro: pong?12:57
*** peres has joined #tp14:14
pereshello14:14
*** tuna-fish has quit IRC16:18
mithrogreywhind: you see that your changes where merged in?18:34
nashmithro: pong18:42
mithronash: I send an email instead18:44
nashokay18:45
peresmithro: here?18:59
*** mithro has quit IRC19:03
*** mithro has joined #tp19:12
mithroperes: sorry went to work19:16
mithroperes: anything quick?19:16
peresnothing so quick, we can talk later19:16
pereshave a good day :)19:17
*** peres has quit IRC19:17
mithronash: had a chance to read the email?19:20
nashYeah, reviewing my code before I comment19:20
mithroI think I can see why you have done it the way you have, which matches your use case better then mine19:22
greywhindmithro: yeah, i see that. :)19:28
mithrogreywhind: now of course, you have to figure out how to make git understand that your changes have been merged19:28
greywhindmithro: right.19:28
mithroi think it's related to git-rebase19:29
greywhindmithro: so you checked that the code worked for you?19:35
mithrogreywhind: I had to make a small change for it to work properly19:35
greywhindmithro: what change?19:35
mithromoved the file from ./windows to ./windows/main19:36
mithrochanged to the __init__ method19:36
mithroand a change to ./windows/winMain.py19:36
greywhindmithro: ah... i think i forgot to add windows/main/winIdleFInder.py to the list of files tracked by git19:36
mithrogreywhind: oh19:38
greywhindmithro: ok, i think i've got it merged correctly... let me make sure it still works19:42
greywhindyep - works great19:46
mithrogreywhind: I think you actually wanted git-rebase - you did a cg-update and merged in the upstream changes right?19:49
greywhindyeah19:49
mithrowhat does the git-am output produce now?19:49
mithro(hopefully one patch?)19:50
greywhindalthough cg-update says it recognizes when your patches have been merged...19:50
mithrogreywhind: oh?19:50
mithrogreywhind: I really should test your situtation more19:50
greywhindgit-am is just sitting there...19:51
mithrogreywhind: could you email me the output of your cg-update ?19:51
greywhindhold on a bit19:51
mithrogreywhind: oopps, not git-am - the one nash gave you to send me your patches19:51
*** greywhind has left #tp19:52
nashgit-format-patch?19:52
*** greywhind has joined #tp19:52
greywhindsorry - hold on.19:52
mithronash: yes, git-am to apply patches19:52
nashYep19:52
greywhindnope, i did it wrong.19:52
greywhindhow do i remove commits again?19:53
nashcg-admin-uncommit19:56
greywhindcg-admin-uncommit: cannot rewind merges; please 'cg-switch -f -r parentid master' instead19:57
nashtry that then19:59
nashmithro: I just responded19:59
greywhind"parentid" needs to be replaced with something19:59
nashcg-log to get the id of the patch or if it is just the last commit HEAD^20:00
nashmithro: BTW: This has got to be my worst 3 lines of code ever:20:00
nash*((char**)(dest+off2)) = malloc(slen+1);20:01
nashmemcpy(*(char **)(dest+off2),buf,slen);20:01
nash*(char **)(dest+off2))[slen] = 0;20:01
nashIt's like lisp with C extensions20:01
greywhindhttp://rafb.net/p/O4cXnx52.html (9 lines)20:01
tpbTitle: Nopaste - No description (at rafb.net)20:01
nashgreywhind: Look at git-reset and git-revert20:03
greywhindnash: i figured it out, i think.20:03
nashcool20:04
greywhindso now that i've got it back to the state before i updated today20:04
greywhinddo i do git-rebase, then cg-update?20:04
nashI'm not sure what you are doing... mithro?20:05
greywhindhe merged in my patches. now i have to get my local copy to understand what happened20:05
nashRight - rebase is the canonical way of doing it.20:06
nashIf you like can see if update handles it okay20:06
greywhindi already tried that... didn't work.20:06
greywhindmaybe after git-rebase it will though20:07
nashYep - have you seen the tuts on tehgit website about rebase?20:07
greywhindno20:08
nashHave a peak, or at least man git-rebase20:12
greywhindnash: it's giving me a lot of errors.20:13
nashOkay - which ones?20:14
* nash is not very familiar with rebased20:14
greywhindhttp://rafb.net/p/pQGwbF81.html (43 lines)20:14
tpbTitle: Nopaste - No description (at rafb.net)20:14
nashback in a few minutes - meetings20:15
*** mithro has quit IRC20:22
*** mithro has joined #tp20:24
greywhindk - i'm pretty sure i fixed everything.20:25
mithrosorry my laptop went to sleep20:25
greywhindsays i no longer have any patches when i git-format-patch -r origin..master20:25
nashAll good20:32
nashgreywhind: You can also just use git-diff -r origin..master or even cg-status - look at the revision ids20:32
greywhindnash: thanks20:33
nashgreywhind: Does gitk or giggle work for you?20:33
nash(both are probably separate downloads, but I find them invaluable)(20:33
greywhindgitk works, it seems20:33
nashUseful?20:34
greywhindlooks like it20:34
nashIf you are visually inclined - it's greay20:35
nashClick on a patch - note it shows you which trees it is in - priceless20:35
greywhindyeah20:35
*** tuna-fish has joined #tp20:36
mithroi love gitk20:39
*** mithro has quit IRC21:50
*** mithro has joined #tp22:28

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