2011-04-22T00:14:03 *** janzert1 has quit IRC (Read error: Connection reset by peer) 2011-04-22T00:14:34 *** yasith__ has joined #aichallenge 2011-04-22T00:15:15 *** janzert has joined #aichallenge 2011-04-22T00:16:01 *** yasith_ has quit IRC (Ping timeout: 248 seconds) 2011-04-22T00:16:55 *** Kingpin13 has quit IRC (Ping timeout: 260 seconds) 2011-04-22T00:40:36 *** yasith__ has quit IRC (Ping timeout: 246 seconds) 2011-04-22T00:47:56 *** siddharth has joined #aichallenge 2011-04-22T00:50:13 *** sids_aquarius has joined #aichallenge 2011-04-22T00:53:14 sigh: :P 2011-04-22T00:55:01 *** yasith has joined #aichallenge 2011-04-22T01:22:33 *** _flag <_flag!~flag@69.165.173.172> has quit IRC (Quit: Lost terminal) 2011-04-22T01:36:54 *** McLeopold has joined #aichallenge 2011-04-22T01:38:25 *** yasith has quit IRC (Remote host closed the connection) 2011-04-22T01:49:41 *** Ice_Harley has joined #aichallenge 2011-04-22T01:58:25 fuuuu amazon 2011-04-22T01:59:15 http://www.reddit.com/r/reddit.com/comments/gv5s8/were_back/ 2011-04-22T01:59:16 huzzah 2011-04-22T01:59:35 :P 2011-04-22T01:59:36 still can't login though 2011-04-22T01:59:55 must have been up for like 2 seconds 2011-04-22T02:00:28 somebodies voting on it 2011-04-22T02:01:35 people are adding commengts 2011-04-22T02:01:54 *** ahmedhelal has quit IRC (Read error: Connection reset by peer) 2011-04-22T02:01:59 must be bringing things up in stages 2011-04-22T02:02:24 *** ahmedhelal has joined #aichallenge 2011-04-22T02:02:55 it says there is one comment 2011-04-22T02:03:00 but then shows none for me :\ 2011-04-22T02:03:28 look at this one: http://www.reddit.com/r/reddit.com/comments/gv5s5/and_were_back/ 2011-04-22T02:05:04 interesting 2011-04-22T02:05:09 i can get those comments 2011-04-22T02:05:24 but now i see just 3 comments when loading the page, i think i'm being fed a cached version? 2011-04-22T02:07:45 *shrug* 2011-04-22T02:10:51 *** kaemo has joined #aichallenge 2011-04-22T02:14:21 *** McLeopold has left #aichallenge 2011-04-22T02:30:20 haha sorry, what did I manage to do 2011-04-22T02:31:41 you managed to type an obscure control character into the channel the other day, which caused the logs to not get served correctly 2011-04-22T02:34:04 might I inquire as to where? 2011-04-22T02:35:35 it *was* the 5th line of http://contestbot.hypertriangle.com/channellogs/%23aichallenge/%23aichallenge.2011-04-20.log 2011-04-22T02:35:59 you had typed "He don' seem to be.n" where the . is the character 0x10 2011-04-22T02:36:39 apparently it's called the "Data link escape"... no idea what it does 2011-04-22T02:37:10 *** berak has joined #aichallenge 2011-04-22T02:37:29 * janzert wonders if it was random data corruption somewhere along the line 2011-04-22T02:40:06 *** sigh has quit IRC (Quit: Leaving...) 2011-04-22T02:40:19 *** sigh has joined #aichallenge 2011-04-22T02:42:57 interesting, most places other than wikipedia seem to list 0x10 as backspace 2011-04-22T02:44:01 janzert: ascii on my system says it is DLE 2011-04-22T02:44:45 ascii 0x10 2011-04-22T02:44:45 ASCII 1/0 is decimal 016, hex 10, octal 020, bits 00010000: called ^P, DLE 2011-04-22T02:44:47 Official name: Data Link Escape 2011-04-22T02:45:01 the first line is the command I ran 2011-04-22T02:46:17 yeah, I see that a few other places now as well. two examples that list it as backspace are http://www.asciitable.com and http://bestofthisweb.com/blogs/tag/ascii-table/ 2011-04-22T02:46:50 although it looks like the second is just a rip off of the first 2011-04-22T02:47:07 backspace is 010 2011-04-22T02:47:12 those sites get it right 2011-04-22T02:47:23 are you sure you are looking at them correctly :P 2011-04-22T02:47:35 oops, yeah I was looking at the octal column 2011-04-22T02:49:59 I wonder why it forced a download... I think it's the browser's fault, not apache 2011-04-22T02:50:27 must trigger binary file handling? 2011-04-22T02:50:37 yeah 2011-04-22T02:51:10 (HTTP response headers for the borked log file was the same as the other files back before it was fixed, which is why I don't think it is apache) 2011-04-22T02:51:29 *** berak has quit IRC (Read error: Connection reset by peer) 2011-04-22T02:55:24 bah... if I serves the logs to myself with "python -m SimpleHTTPServer" it thinks all the logs are binary files 2011-04-22T02:55:50 wrong mime type in the headers? 2011-04-22T02:56:44 yeah, application/octet-stream 2011-04-22T02:57:27 I believe a DLE needs to be terminated by another command 2011-04-22T02:57:41 what does it actually do? 2011-04-22T02:57:53 Interprets everything following as raw data 2011-04-22T02:58:33 http://www.lammertbies.nl/comm/info/ascii-characters.html#data 2011-04-22T02:59:25 yeah... I've been reading that 2011-04-22T02:59:42 never seen it before, I wonder what uses it 2011-04-22T02:59:59 it sounds to me like not much of anything ever used it 2011-04-22T03:00:09 does this mean that I somehow managed to type three plus signs in a row? 2011-04-22T03:00:17 no 2011-04-22T03:00:27 nah, three plus signs are safe 2011-04-22T03:00:28 ++ 2011-04-22T03:00:30 +++ 2011-04-22T03:00:40 hayes modems used the three plus signs instead of the DLE character 2011-04-22T03:01:12 (well, with silence before and after) 2011-04-22T03:01:39 Ah yes I see 2011-04-22T03:01:58 So then it is command p that's the worry? 2011-04-22T03:02:19 ^P is just the way it is rendered in plain text 2011-04-22T03:02:43 gotcha 2011-04-22T03:03:24 it's a byte with just the 4th bit set ;) 2011-04-22T03:03:45 I have a feeling that any wierd control code probably triggers the browser to treat it as binary data 2011-04-22T03:04:05 well this was a strange and informative incident. Sorry to anyone I caused problems for : ) 2011-04-22T03:04:38 :) 2011-04-22T03:04:48 jaycobcoleman: what IRC client do you use? 2011-04-22T03:05:14 I'm using freenode 2011-04-22T03:05:37 web interface? 2011-04-22T03:05:59 freenode is the server, what program are you using? 2011-04-22T03:07:19 or http://webchat.freenode.net/ possibly? 2011-04-22T03:07:47 oh yes, sorry 2011-04-22T03:11:03 *** Frontier has joined #aichallenge 2011-04-22T03:21:32 Why did you want to know the client? 2011-04-22T03:35:20 *** _0x47 <_0x47!~slash@p3EE0BFBC.dip.t-dialin.net> has joined #aichallenge 2011-04-22T03:36:11 *** berak has joined #aichallenge 2011-04-22T03:39:27 *** janzert has quit IRC (Ping timeout: 276 seconds) 2011-04-22T03:39:46 *** amstan_ has quit IRC (Ping timeout: 250 seconds) 2011-04-22T03:47:12 *** Kingpin13 has joined #aichallenge 2011-04-22T03:47:14 *** Kingpin13 has joined #aichallenge 2011-04-22T03:48:37 *** woudshoo` has joined #aichallenge 2011-04-22T03:53:36 jaycobcoleman: just wondering if it might have been able to add those types of characters accidentally 2011-04-22T03:57:15 Alright, I imagined so. I tried looking around myself and there's shockingly little reading marerial on the subject 2011-04-22T04:33:30 *** sids_aquarius has quit IRC (Ping timeout: 258 seconds) 2011-04-22T04:34:26 *** sids_aquarius has joined #aichallenge 2011-04-22T04:37:08 *** Stocha has joined #aichallenge 2011-04-22T04:37:54 is there any tutorial for how the server stuff works ? what has been implemented already ? what is still in work. Question for begining to thing about a tcp server 2011-04-22T04:49:20 There's no up-to-date info on server setup 2011-04-22T04:58:54 What aspects are you looking for help with? because I believe simply running server_setup.py on a clean ubuntu install works at this point 2011-04-22T04:59:08 for setup, obviously 2011-04-22T05:00:15 but if you're looking for tutorials on what to do once you've gotten that then I think you're out of luck 2011-04-22T05:03:41 What i would like is way for n bot to get a ranking and put it on a web page. 2011-04-22T05:03:54 incremental update would be best. 2011-04-22T05:04:19 then i could try to specify a way to furnish the bot set from distant bots through tcp means. 2011-04-22T05:04:30 but i have to have the local server working properly first. 2011-04-22T05:04:40 so i have to know if it already exists i guess :p 2011-04-22T05:04:45 and they learn to set it up. 2011-04-22T05:04:48 then 2011-04-22T05:05:58 i need to know what exists so far. maybe i 'll have a look at server_setup.py when i have time. But if you tell me how it works ? 2011-04-22T05:10:24 The idea is to have a local server than can rank all bot from a local bot set. Then i will make it so that that a local bot can in fact call through tcp a distant bot. 2011-04-22T05:10:38 and also log the games 2011-04-22T05:17:20 well if you want real answers then Janzert is the man you wanna talk to 2011-04-22T05:19:41 I would tell you what I do know, but actually janzert just updated the packages a few days ago and it's well documented enough that I think it'd be relatively straight-forward for you to understand what's going on 2011-04-22T05:22:10 i'll try to have a look if / when i have time then. 2011-04-22T05:23:23 sigh: I think I have a very simple and elegant solution for the problem of dead ants overwriting food info from the same turn 2011-04-22T05:23:45 don't display dead ants on the map? 2011-04-22T05:24:24 well there's an option. really why was it setup to do that in the first place? 2011-04-22T05:24:40 dunno, ask mcleopold 2011-04-22T05:25:01 the slightly more effort way is to place the food after the dead ants 2011-04-22T05:25:11 but really, there is no reason to mark dead ants on the map 2011-04-22T05:26:56 yes indeed, nonetheless I think right before the end of the render_changes function in the ants.py that runs the game we should just insert visible_updates.sort() 2011-04-22T05:27:45 It would get rid of the need for a parsing system, which should make updates run slightly faster 2011-04-22T05:31:23 sure, but it's not so good to make the bots rely on the particular order that the engine sends out updates 2011-04-22T05:31:36 unless that is made part of the specs 2011-04-22T05:31:54 especially when there is no real need to mark dead ants on the map 2011-04-22T05:33:28 they wouldn't rely on it. The current setup would still work, only it would allow for a more efficient system to be used in its place 2011-04-22T05:33:54 and wether or not you care about marking dead ants, it will speed up updates, which is very important 2011-04-22T05:34:55 why would it speed up updates? 2011-04-22T05:35:57 it would require less testing of each input to see which method should be followed 2011-04-22T05:36:59 the updates are already grouped by type 2011-04-22T05:37:39 but the bots should not be relying on that 2011-04-22T05:38:18 currently, the engine DOES sort, but the order is explictly ants, food, dead ants... dead ants is last because it is the least important 2011-04-22T05:38:45 this can be changed BUT, making the order part of the specs is overly restrictive 2011-04-22T05:39:20 *** needsch has joined #aichallenge 2011-04-22T05:39:22 if it isn't part of the specs the bots should not be relying on it 2011-04-22T05:39:40 I'm happy to change the engine if there is some consensus on this though 2011-04-22T05:39:48 what specs are you referring to? 2011-04-22T05:41:10 well, currently it is on the wiki... but the point is that if your bot is relying on it then it should have some guarantee that it will always work that way 2011-04-22T05:41:17 concensus about droping dead ants ? 2011-04-22T05:41:51 what about dead ants only marked when there is no food/ no ant that have been there ? 2011-04-22T05:41:52 currently the only reason the engine sorts is to ensure deterministic output 2011-04-22T05:42:05 Stocha: you can do that, but why? 2011-04-22T05:42:23 i though it would simplify. maybe i didn't get the problem 2011-04-22T05:42:37 incomplete infomation like that is next to useless 2011-04-22T05:42:47 yeah but dead ant seems useless 2011-04-22T05:42:51 In it's current state, the updating method, at least in the python bot, is already restrictive to the extent that basically any changes to it will result in it no longer working 2011-04-22T05:43:04 except maybe if an ant dies at the limit of the vision radius 2011-04-22T05:43:08 dead ants is useful, because there is no other way to track ants properly 2011-04-22T05:43:10 That's because the input recieved is so restrictive 2011-04-22T05:43:10 wich means it wasn't killed by you. 2011-04-22T05:43:36 usefull for bots ? 2011-04-22T05:44:11 the thing with dead ant for bot, is that it can be deduced, except in the limit cases above stated. 2011-04-22T05:44:12 If somebody is planning on making a bot they're pretty much going to have to rely on our pre-made updating functions anyway, so I think we might as well make them as fast as possible 2011-04-22T05:44:18 jaycobcoleman: the only restrictions are those detailed in the specifications 2011-04-22T05:44:34 how do they take jaycobcoleman ? 2011-04-22T05:44:46 if it's less than 10ms, then it's probably no big deal. 2011-04-22T05:44:57 if it's higher then i agree. 2011-04-22T05:45:08 I ignored dead ants, but now I noticed I like the info. When I look at my bot and you don't have dead ant information, it is sometimes hard to see what happened 2011-04-22T05:45:10 how long do they take 2011-04-22T05:45:47 you mean you think building the dead status from scratch is too demanding ? 2011-04-22T05:45:49 I haven't timed it, but I'd like to be able to use the same sytem for a large variety of maps 2011-04-22T05:46:13 jaycobcoleman: fast as possible is not the goal, if someone wants fast as possible (1) they shouldn't be using python, and (2) they will need to rewrite the starter pack anyway 2011-04-22T05:46:14 i guess i just don't get what the discussion is really about :p 2011-04-22T05:46:37 and you are looking at an area of the code which will never ever be a bottleneck 2011-04-22T05:46:57 if you want to improve the speed then work on the vision algorithm 2011-04-22T05:46:58 haha, I think using python probably is a reason to try to make what you're doing as fast as possible 2011-04-22T05:47:17 What's wrong with it? 2011-04-22T05:47:32 just slow? 2011-04-22T05:47:36 well, the current one is broken :) 2011-04-22T05:47:43 in the python starter bot 2011-04-22T05:48:09 the one in the engine is fast and works, but will NOT be put into the starter bot because it is complicated 2011-04-22T05:48:09 It works perfectly, the problem is with parsing at setup 2011-04-22T05:48:34 are you taking about vision? 2011-04-22T05:48:43 yes 2011-04-22T05:48:56 it is broken 2011-04-22T05:49:06 does it return all false or do you get an error of some sort? 2011-04-22T05:49:35 no, it returns results which are slightly wrong 2011-04-22T05:49:44 hang on, I'll pull up an example 2011-04-22T05:49:58 that'd be lovely 2011-04-22T05:49:59 Stocha: No, it is just that you can't see which move an enemy made just before it died. When watching replays (with my own visualizing thingy) this is really puzzling sometimes. 2011-04-22T05:50:36 jaycobcoleman: http://pastebin.com/gscdvw3u 2011-04-22T05:52:56 and parsing is never going to be a bottleneck, there is absolutely no reason to worry about optimising it for the starter pack 2011-04-22T05:53:18 main issue atm is correctness, so let's get that right :P 2011-04-22T05:53:27 Alright, well then moving onto this issue : ) I can't see why that would happen. 2011-04-22T05:53:41 however, I would like to use numpy arrays for a couple of reasons 2011-04-22T05:53:53 sure, you can use whatever you like 2011-04-22T05:53:59 they're simpler to see created 2011-04-22T05:54:02 but it won't be part of he starter pack :) 2011-04-22T05:54:07 Why 2011-04-22T05:55:03 they're much simpler to understand for someone who isn't great with programming 2011-04-22T05:55:21 maybe, but then they have to install numpy 2011-04-22T05:55:37 the fewer dependencies the better for a starter pack 2011-04-22T05:55:49 numpy has been standard for a while I thought 2011-04-22T05:56:08 numpy doesn't come with python 2011-04-22T05:56:40 hmm. It's weird that I already had it then, on a 2 week old install of Ubuntu 2011-04-22T05:57:30 *** ginDeVine has joined #aichallenge 2011-04-22T05:57:51 maybe you installed something else which has a numpy dependancy, or your ubuntu dist might have had it installed already 2011-04-22T05:58:07 *** Eruonen has joined #aichallenge 2011-04-22T06:00:13 I also have it on my mac evidently, and I don't do anything programming related with that 2011-04-22T06:00:26 that's unfortunate though 2011-04-22T06:01:02 the ability to call indexes in tuple form would make the code a lot simpler to understand 2011-04-22T06:03:20 *shrug* dunno... numpy is not part of python standard library 2011-04-22T06:03:23 anything further about starter packs, tell McLeopold :P 2011-04-22T06:03:48 woudshoo: good point 2011-04-22T06:04:06 alright. I haven't run into any odd vision problems like that though and I can't see any reason for it to happen 2011-04-22T06:04:48 jaycobcoleman: the problems are small enough that you generally won't notice unless you explictly test for it 2011-04-22T06:05:25 alright I'll run some test then 2011-04-22T06:06:04 the canonical failure case is when two ants are diagonal each other 2011-04-22T06:06:40 there's already a script ants/util/vision_compare.py to test still stuff 2011-04-22T06:07:32 oh wait, I understand exactly what's happening. Alright, I'm gonna mess with it for a little bit 2011-04-22T06:08:38 jaycobcoleman: if you are looking at vision algorithms then have a look at ants/util/vision_compare.py 2011-04-22T06:09:12 vision_by_ants_faster is the fastest for a python bot 2011-04-22T06:10:09 engine uses an algorithm which is even faster, but it can't be implemented by bots in the general case 2011-04-22T06:11:14 Oh I see. This is lovely 2011-04-22T06:12:45 if the not portion of "if (not vision[n_row][n_col] and self.vision_distance(a_loc, n_loc) <= self.viewradius2):" is removed from vision_by_square then it should work perfectly 2011-04-22T06:13:13 without getting weird diagonals problems 2011-04-22T06:13:24 *** ginDeVine has quit IRC (Quit: ginDeVine) 2011-04-22T06:14:09 jaycobcoleman: well, it will go into an infinite loop 2011-04-22T06:14:53 haha, silly me, what was I thinking :) 2011-04-22T06:15:02 if you want to fix vision_by_squares you end up with vision_by_distance_2 2011-04-22T06:16:05 as you can see, I've been over all this :P 2011-04-22T06:16:17 I can tell : ) 2011-04-22T06:16:53 *** Eruonen has quit IRC (Ping timeout: 260 seconds) 2011-04-22T06:17:18 alright, then what are you looking for in terms of vision code? 2011-04-22T06:18:50 sigh: is your reddit working yet? :P 2011-04-22T06:19:13 *** Frontier has quit IRC (Quit: Leaving.) 2011-04-22T06:19:15 something that works :P 2011-04-22T06:19:16 I changed the vision code in the starter pack once, but McLeopold reverted it :P 2011-04-22T06:19:21 mine sure isn't 2011-04-22T06:19:22 so I'm just leaving it up to him 2011-04-22T06:19:38 antimatroid: no 2011-04-22T06:19:50 what's the go with mcleopold? 2011-04-22T06:20:00 he doesn't seem to be around much atm 2011-04-22T06:20:02 dunno 2011-04-22T06:20:13 I haven't seen him at all today 2011-04-22T06:21:05 sigh: vision_by_ant_faster is the fastest you have so far? 2011-04-22T06:21:36 for a bot yeah... engine is faster though 2011-04-22T06:21:57 So I've been told :P 2011-04-22T06:22:09 technically the bot can be made even fast by doing a hybrid with what the engine is doing 2011-04-22T06:23:25 either vision_by_ant or a non-cached version of it should go in the starter pack 2011-04-22T06:23:45 *** skynetz has joined #aichallenge 2011-04-22T06:29:16 *** amstan_ has joined #aichallenge 2011-04-22T06:29:16 *** ChanServ sets mode: +o amstan_ 2011-04-22T06:29:45 it's just an abstract sort of idea at the moment, but I think it would be very fast to create a small array just large enough to fit the entire view radius of one ant into it, then specify a row/col offset for each element to be placed(of course based on the position of the ant) 2011-04-22T06:30:30 each turn you create a False array and for each ant compare the two using bitwise & and restoring it as the main map 2011-04-22T06:31:11 it's like drawing a picture and then pasting it everywhere you want it 2011-04-22T06:31:44 stocha was doing/trying something like that 2011-04-22T06:32:09 was he successful? 2011-04-22T06:33:20 Stocha: sigh says you had an idea similar to mine for vision. How has that turned out? 2011-04-22T06:33:32 dunno, but either way that approach is much more suited to a language like c 2011-04-22T06:33:40 Why is that? 2011-04-22T06:34:14 are you packing each cell as a bit? 2011-04-22T06:34:44 *** berak has quit IRC (Read error: Connection timed out) 2011-04-22T06:34:49 possibly? 2011-04-22T06:35:02 Why wouldn't you? 2011-04-22T06:35:30 *** berak has joined #aichallenge 2011-04-22T06:35:47 by the way, I meant bitwise or 2011-04-22T06:35:50 no reason, just hat the overhead in python doesn't seem worth it... but try it out and see 2011-04-22T06:36:26 psyco should speed an operation like that up almost to c standards 2011-04-22T06:36:43 try it and see how it goes 2011-04-22T06:36:53 there's nothing wrong with the actual approach 2011-04-22T06:36:58 Alright I'll do so :P 2011-04-22T06:38:19 I don't exactly understand the dos and don'ts of different programming languages yet 2011-04-22T06:39:13 know the dos or don'ts or why they happen? 2011-04-22T06:40:32 as in, what is good for one language yet terrible in another 2011-04-22T06:41:26 and of course I also don't know the reasons why the things happen that I don't know are happening 2011-04-22T06:42:29 i meant generally not specifically, but it's alright, i was just making sure you weren't saying you don't understand why some things work better in some langauges than others :P 2011-04-22T06:44:25 Well I don't entirely know what works in what yet. 2011-04-22T06:49:06 *** Eruonen has joined #aichallenge 2011-04-22T06:58:59 well my vision algorithm is okay. i didn't time it or anything. 2011-04-22T06:59:17 nor did i try to optimize it. 2011-04-22T06:59:49 but it uses the parallel capacity of 64 int bit logic. 2011-04-22T07:00:03 int 64 bit logic. 2011-04-22T07:00:40 I draw the view radius from every ant at the same time. 2011-04-22T07:01:00 Hmm. I don't think we're doing the same thing 2011-04-22T07:01:39 but you should compare it to the other methods in util/vision_compare.py 2011-04-22T07:02:01 Stocha: be careful doing that for vision 2011-04-22T07:02:08 it gets hairy with the euclidean metric 2011-04-22T07:02:17 *** berak has quit IRC (Read error: Connection timed out) 2011-04-22T07:02:22 ...i don't have much time for it. The thing is, i have working bitmap framework. so i will use that of non critical task. like vision. 2011-04-22T07:02:38 (unless vision somehow becomes time crititical, but there are few chances at this point) 2011-04-22T07:03:08 antimatroid: ? 2011-04-22T07:03:28 i use the straight forward double for loop. 2011-04-22T07:03:33 *** berak has joined #aichallenge 2011-04-22T07:03:40 with inequality x2 + y2 < rad2 2011-04-22T07:03:55 sigh: okay, so what you're doing in vision_by_ant _faster is almost exactly what I was talking about with the exception that I'm caching the entire overlay as an array so I can do it more quickly per ant. 2011-04-22T07:04:00 sure okay 2011-04-22T07:04:00 i didn't dare to optimized. Although you can calculate x2 y2 incrementally. 2011-04-22T07:04:11 why are you using x and y? 2011-04-22T07:04:16 You probably already figured that out, but I hadn't looked through your methods yet 2011-04-22T07:04:20 use row and col, or you will just confuse the hell out of yourself 2011-04-22T07:04:25 i say x, y doesn't really matter how you call them. 2011-04-22T07:04:31 hehe 2011-04-22T07:04:39 you about to get yelled at 2011-04-22T07:04:44 x implied indexing of the horizontal dimension 2011-04-22T07:04:45 i agree row and col are better for specifications though. 2011-04-22T07:05:05 i don't agree that it is better for quick prototyping :p 2011-04-22T07:05:19 antimatroid: just turn your monitor on its side :P 2011-04-22T07:05:19 transposing stuff is painful and unecessary 2011-04-22T07:05:29 i don't transpose 2011-04-22T07:05:37 sigh: for making moves you need to transpose directions 2011-04-22T07:05:42 i use x for what you call col. and y for what you call row 2011-04-22T07:05:49 and then you need to worry about where you do and don't need to convert 2011-04-22T07:06:02 Stocha: that's just even less clear to someone reading your code :P 2011-04-22T07:06:06 i never need to convert anything. I always use the same. 2011-04-22T07:06:15 actually, that's what one would expect 2011-04-22T07:06:20 so fare nobody is supposed to have read the code. 2011-04-22T07:06:21 but my above statements still stand 2011-04-22T07:06:48 it's still to be proven that row and cols are unambiguous 2011-04-22T07:06:57 unambiguous? 2011-04-22T07:07:03 what about arabian developper ? 2011-04-22T07:07:24 the contest is done in english 2011-04-22T07:08:24 x, y are clear to some. i always use top to bottome and left to right directions. 2011-04-22T07:09:03 because it was the coor system that was used on the early MacOs systems. 2011-04-22T07:09:17 when i learned about programming. in 1980's 2011-04-22T07:10:10 stil i agree that rows and cols are better for talking about coordinate. as long as it go left to right and top to bottom :p 2011-04-22T07:10:38 *** contestbot has joined #aichallenge 2011-04-22T07:10:39 *** ChanServ sets mode: +o contestbot 2011-04-22T07:10:49 antimatroid:are you sure ? 2011-04-22T07:10:51 yeah.. i'm playing with it a little 2011-04-22T07:11:02 :P 2011-04-22T07:11:26 is there a shelter for no-log time periods ? 2011-04-22T07:11:36 aww missed my chance to spam control characters into the channel without breaking the logs :P 2011-04-22T07:12:12 oh man.. why was that even installed? sudo apt-get purge cvs 2011-04-22T07:12:22 :P 2011-04-22T07:12:22 *** amstan_ is now known as amstan 2011-04-22T07:12:39 where do ppl usually run programs like these from? 2011-04-22T07:12:48 i'm thinking i should use /srv for this or something 2011-04-22T07:13:08 programs like what? 2011-04-22T07:13:15 supybot 2011-04-22T07:13:22 or game servers 2011-04-22T07:13:42 or annoying stuff that you don't want to use special users for.. but you don't want to run as root either 2011-04-22T07:14:55 /opt? 2011-04-22T07:15:17 i use opt, yes 2011-04-22T07:15:25 but i noticed that srv is more semantic than opt 2011-04-22T07:15:45 also: root@server:/srv# ls => cvs 2011-04-22T07:15:46 root@server:/srv# rm -Rf csv 2011-04-22T07:15:48 root@server:/srv# ls => cvs 2011-04-22T07:15:53 why is it still there? lol 2011-04-22T07:16:09 o_O 2011-04-22T07:16:16 haha 2011-04-22T07:16:22 try rm -Rf cvs 2011-04-22T07:16:40 oh 2011-04-22T07:16:56 you serious? i kept mistyping it 2011-04-22T07:17:19 I'm lazy, I would just have typed c 2011-04-22T07:17:36 or just since it's the only file in there 2011-04-22T07:20:03 some tab complete things refuse to do anything unless you type a few letters 2011-04-22T07:20:43 depends how you have things set up 2011-04-22T07:20:55 one of them is the kde start menu 2011-04-22T07:21:05 it doesn't do a search unless you type the first 3 letters 2011-04-22T07:21:10 :( 2011-04-22T07:21:42 I suppose that can give too many results sometimes 2011-04-22T07:23:21 i might as well update too 2011-04-22T07:27:07 *** contestbot has joined #aichallenge 2011-04-22T07:27:15 *** ChanServ sets mode: +o contestbot 2011-04-22T07:27:24 just in time! 2011-04-22T07:27:24 decent, now it has its own screen session 2011-04-22T07:27:31 :) 2011-04-22T07:29:30 I've been messing with screen all day... it is unbelievably annoying when it comes to changing sessionnames once a session has started 2011-04-22T07:30:48 what if you type them, and then contest bot is up, and get hit by them. 2011-04-22T07:31:04 o_O 2011-04-22T07:31:34 control characters. it's risky to send, even if contestbot is not up. 2011-04-22T07:31:40 *** aeter has joined #aichallenge 2011-04-22T07:32:21 haha... well at worst no one will be able to view the logs in their browser until amstan deleted the lines :P 2011-04-22T07:33:16 no core fusion reaction then ? 2011-04-22T07:33:40 is contestbot run near a shore ? 2011-04-22T07:34:44 again... 2011-04-22T07:34:45 i never undestood one thing, can i do cds in cron lines? 2011-04-22T07:34:57 like, how would i go adding a git commit to a cronjob 2011-04-22T07:35:14 you can use at 2011-04-22T07:35:43 instead of cron, unless you want it to execute every single time and not only once 2011-04-22T07:35:58 otherwise just make a script that does the git commit,cds etc. 2011-04-22T07:35:59 amstan: just specify the full path 2011-04-22T07:36:03 and point cron to it 2011-04-22T07:36:03 i want it to do every single time 2011-04-22T07:36:04 or that 2011-04-22T07:36:04 why do you need to cd? 2011-04-22T07:36:22 sigh: i don't think i can tell git add where the repo path is 2011-04-22T07:38:02 amstan: hmm... you are right 2011-04-22T07:38:57 what about git --git-dir=... ?? 2011-04-22T07:43:15 *** contestbot has joined #aichallenge 2011-04-22T07:43:15 *** ChanServ sets mode: +o contestbot 2011-04-22T07:43:25 woudshoo`: i guess that could work, too late, the damage has been done with a script 2011-04-22T07:50:47 *** berak has quit IRC (Read error: Connection timed out) 2011-04-22T07:50:51 sigh: 0 4 * * * /etc/alex/contestbot_cron good for you? 2011-04-22T07:51:00 4 meaninig 4am for me 2011-04-22T07:51:01 contestbot: time 2011-04-22T07:51:01 amstan: 07:51 AM, April 22, 2011 2011-04-22T07:51:17 sure, anytime is fine :) 2011-04-22T07:51:33 *** berak has joined #aichallenge 2011-04-22T07:57:34 sigh: git clone http://contestbot.hypertriangle.com/channellogs/%23aichallenge/git/ 2011-04-22T07:57:37 wiat 2011-04-22T07:57:39 noo! 2011-04-22T07:58:34 there we go 2011-04-22T07:58:37 now it has a dot too 2011-04-22T08:00:25 contestbot: time 2011-04-22T08:00:25 Stocha: 08:00 AM, April 22, 2011 2011-04-22T08:00:42 oh.. that reminds me, i should really get ntpdate working 2011-04-22T08:00:45 contestbot: location 2011-04-22T08:00:46 Stocha: An error occured while trying to show the previous error. 2011-04-22T08:01:29 how to run a tchat bot contest. 2011-04-22T08:01:41 that would be fun. but hard to get a metric for. 2011-04-22T08:03:23 amstan: that url doesn't exist? 2011-04-22T08:03:33 git clone http://contestbot.hypertriangle.com/channellogs/%23aichallenge/.git/ 2011-04-22T08:03:57 oh right 2011-04-22T08:05:28 amstan: awesome, now I can stop using wget -r -l1 -N -A.log -nd http://contestbot.hypertriangle.com/channellogs/%23aichallenge 2011-04-22T08:06:09 sigh: tell anyone else who wants this 2011-04-22T08:06:47 yeah... no worries, although you are mentioning it right on the page which is good :) 2011-04-22T08:09:21 hmm.. i should probably restart my server to reload the new software.. 2011-04-22T08:09:25 on the other hand... uptime 2011-04-22T08:09:29 Where do you live amstan? 2011-04-22T08:09:38 jaycobcoleman: near toronto/canada 2011-04-22T08:09:54 ahh makes sense. We share a time zone :) 2011-04-22T08:12:41 sigh: any ideas on the CI system, should i get a VM for that? 2011-04-22T08:12:53 CI system? 2011-04-22T08:16:06 the countinous integration system for the contest 2011-04-22T08:16:13 a place where we can test the new code 2011-04-22T08:18:27 oh right, yeah a vm seems like it's best... not sure how else you would do it 2011-04-22T08:18:35 not like you want to dedicate a server to it 2011-04-22T08:19:31 i was just thinking if there's a way to not use a vm 2011-04-22T08:19:37 and just do it on a separate user or something 2011-04-22T08:19:41 but it seems like it isn't 2011-04-22T08:20:15 your setup pretty much takes over the server, yeah? 2011-04-22T08:21:08 well.. i use the server for other stuff too 2011-04-22T08:21:14 and yes.. janzert's setup takes over 2011-04-22T08:21:36 see if janzert has any ideas then :) 2011-04-22T08:24:50 contestbot: seen janzert 2011-04-22T08:24:50 amstan: janzert was last seen in #aichallenge 5 hours, 17 minutes, and 31 seconds ago: or http://webchat.freenode.net/ possibly? 2011-04-22T08:25:22 *** mceier has joined #aichallenge 2011-04-22T08:26:18 *** sids_aquarius has quit IRC (Ping timeout: 240 seconds) 2011-04-22T08:26:36 *** Stocha has quit IRC (Quit: Page closed) 2011-04-22T08:32:23 that's it.. apt-get remove sl 2011-04-22T08:32:26 it was fun.. but.. 2011-04-22T08:47:57 *** contestbot has joined #aichallenge 2011-04-22T08:47:58 *** ChanServ sets mode: +o contestbot 2011-04-22T08:49:05 *** UncleVasya has joined #aichallenge 2011-04-22T08:58:25 *** contestbot has joined #aichallenge 2011-04-22T08:58:26 *** ChanServ sets mode: +o contestbot 2011-04-22T09:11:28 *** contestbot has joined #aichallenge 2011-04-22T09:11:28 *** ChanServ sets mode: +o contestbot 2011-04-22T09:11:57 there we go.. except that darn plugin 2011-04-22T09:12:56 contestbot: part 2011-04-22T09:12:56 *** contestbot has left #aichallenge ("amstan") 2011-04-22T09:25:36 *** contestbot has joined #aichallenge 2011-04-22T09:25:40 contestbot: rankings 2011-04-22T09:25:41 amstan: Top 10 players: bocsimacko(3765), _iouri_(3565), Slin-.-(3524), _Astek_(3501), jimrogerz(3500), Accoun(3498), george(3494), GreenTea(3489), asavis(3480), bix0r4ever(3476) 2011-04-22T09:25:42 yay 2011-04-22T09:26:30 *** needsch has quit IRC (Quit: Leaving.) 2011-04-22T09:37:55 oh man.. vnc qemu, this is clearly supperior to other supervisors that need me to get random programs to see the screen 2011-04-22T09:41:37 *** delt0r_ has quit IRC (Ping timeout: 240 seconds) 2011-04-22T09:41:59 *** delt0r_ has joined #aichallenge 2011-04-22T09:43:57 ok, this vm is superslow 2011-04-22T09:45:00 *** berak has quit IRC (Read error: Connection timed out) 2011-04-22T09:46:44 *** berak has joined #aichallenge 2011-04-22T10:04:45 *** berak has quit IRC (Read error: Connection timed out) 2011-04-22T10:06:43 *** berak has joined #aichallenge 2011-04-22T10:21:35 *** dr- has quit IRC (Ping timeout: 252 seconds) 2011-04-22T10:22:51 *** berak has quit IRC (Read error: Connection timed out) 2011-04-22T10:23:45 *** berak has joined #aichallenge 2011-04-22T10:34:11 *** Kingpin13 has quit IRC (Quit: money can't buy you love, but it can if you have enough) 2011-04-22T10:37:24 *** janzert has joined #aichallenge 2011-04-22T10:41:08 *** berak has quit IRC (Read error: Connection timed out) 2011-04-22T10:42:40 *** berak has joined #aichallenge 2011-04-22T10:44:03 *** aeter has quit IRC (Quit: Leaving.) 2011-04-22T11:01:37 *** sigh has quit IRC (Remote host closed the connection) 2011-04-22T11:02:22 *** berak has quit IRC (Read error: Connection timed out) 2011-04-22T11:11:27 *** delt0r_ has quit IRC (Ping timeout: 248 seconds) 2011-04-22T11:11:45 *** kaemo has quit IRC (Ping timeout: 246 seconds) 2011-04-22T11:11:48 *** needsch has joined #aichallenge 2011-04-22T11:13:50 *** berak has joined #aichallenge 2011-04-22T11:21:17 *** Ice_Harley has quit IRC (Ping timeout: 252 seconds) 2011-04-22T11:21:35 *** FireFly has joined #aichallenge 2011-04-22T11:31:10 *** berak has quit IRC (Read error: Connection timed out) 2011-04-22T11:38:41 *** berak has joined #aichallenge 2011-04-22T11:50:29 *** Kingpin13 has joined #aichallenge 2011-04-22T11:59:17 *** berak has quit IRC (Ping timeout: 250 seconds) 2011-04-22T12:06:23 *** arkadius has joined #aichallenge 2011-04-22T12:28:34 *** _flag <_flag!~flag@69.165.173.172> has joined #aichallenge 2011-04-22T12:32:35 *** Eruonen has quit IRC (Ping timeout: 260 seconds) 2011-04-22T12:33:05 *** kaemo has joined #aichallenge 2011-04-22T12:34:00 *** sids_aquarius has quit IRC (Ping timeout: 260 seconds) 2011-04-22T12:41:19 *** amstan has quit IRC (Ping timeout: 250 seconds) 2011-04-22T12:51:29 *** Naktibalda has joined #aichallenge 2011-04-22T12:52:27 *** sids_aquarius has joined #aichallenge 2011-04-22T12:53:26 *** dr- has joined #aichallenge 2011-04-22T13:15:04 *** Eruonen has joined #aichallenge 2011-04-22T13:18:02 *** Ice_Harley has joined #aichallenge 2011-04-22T13:24:38 *** woudshoo` has quit IRC (Ping timeout: 260 seconds) 2011-04-22T13:24:49 *** Chris_0076 has joined #aichallenge 2011-04-22T13:27:19 *** berak has joined #aichallenge 2011-04-22T13:35:58 *** bhasker_ has quit IRC (Quit: bhasker_) 2011-04-22T13:39:12 *** woudshoo` has joined #aichallenge 2011-04-22T13:42:40 *** arkadius has quit IRC (Quit: Page closed) 2011-04-22T13:49:29 *** sids_aquarius has quit IRC (Ping timeout: 252 seconds) 2011-04-22T13:49:35 *** woudshoo` has quit IRC (Ping timeout: 260 seconds) 2011-04-22T13:59:28 *** Ice_Harley_ has joined #aichallenge 2011-04-22T14:04:58 *** amstan has joined #aichallenge 2011-04-22T14:04:58 *** ChanServ sets mode: +o amstan 2011-04-22T14:06:22 *** sids_aquarius has joined #aichallenge 2011-04-22T14:16:39 *** Naktibalda has quit IRC (Ping timeout: 250 seconds) 2011-04-22T14:21:30 *** smiley1983 has joined #aichallenge 2011-04-22T14:28:06 *** Chris_0076_ has joined #aichallenge 2011-04-22T14:30:43 *** smiley1983 has quit IRC (Quit: leaving) 2011-04-22T14:31:11 *** Chris_0076 has quit IRC (Ping timeout: 240 seconds) 2011-04-22T14:41:58 *** McLeopold has joined #aichallenge 2011-04-22T14:43:11 *** Naktibalda has joined #aichallenge 2011-04-22T14:43:46 antimatroid: you around? 2011-04-22T14:43:52 yep 2011-04-22T14:44:47 cool 2011-04-22T14:44:58 I've been away, I feel out of touch 2011-04-22T14:45:20 i don't think that much has happened for you to get out of touch :P 2011-04-22T14:46:36 contestbot: ping 2011-04-22T14:46:36 pong 2011-04-22T14:46:40 did you look at jaycobcoleman's solution to dead ants? 2011-04-22T14:46:50 contestbot: how did you stay connected when i was yanking the ethernet? 2011-04-22T14:46:51 amstan: User error, it's not my fault. 2011-04-22T14:47:09 no? 2011-04-22T14:47:12 McLeopold: so.. i have a problem with the CI: the VM is slow.... super slow 2011-04-22T14:47:19 McLeopold: i'm gonna get a separated box for it 2011-04-22T14:47:24 ok 2011-04-22T14:47:33 VirtualBox? 2011-04-22T14:47:49 qemu 2011-04-22T14:47:55 virtualbox needs x 2011-04-22T14:48:54 why qemu? 2011-04-22T14:50:24 because it's the most lightweight thing that i can find 2011-04-22T14:50:39 the real problem is that my hypertriangle server doesn't have the virtualization cpu extensions 2011-04-22T14:51:53 are you running it at your house? 2011-04-22T14:53:16 yes 2011-04-22T14:59:31 *** Chris_0076__ has joined #aichallenge 2011-04-22T15:02:29 *** Chris_0076_ has quit IRC (Ping timeout: 276 seconds) 2011-04-22T15:14:12 McLeopold: people would probably like it if you fixed up the python starter bot :) 2011-04-22T15:15:13 I'm doing that now :) 2011-04-22T15:19:22 aichallenge: McLeopold epsilon * ra46c0fe / ants/dist/starter_bots/python/ants.py : Added proper vision code. Closes #50 - http://bit.ly/eVd1Dz 2011-04-22T15:19:23 aichallenge: McLeopold epsilon * rdc599f6 / ants/dist/starter_bots/python/ants.py : Update code does not allow dead ants to overwrite food. Closes #51 - http://bit.ly/gyVIsD 2011-04-22T15:24:31 *** Ice_Harley_ has quit IRC (Quit: Page closed) 2011-04-22T15:32:23 *** skynetz has quit IRC (Quit: .) 2011-04-22T15:34:15 *** Naktibalda has quit IRC (Quit: ChatZilla 0.9.86.1 [Firefox 3.6.16/20110323143040]) 2011-04-22T15:35:43 <_flag> What's the expected amount of time per turn that bots will have to make their moves? Have we decided that yet? 2011-04-22T15:36:53 probably 1s 2011-04-22T15:39:06 McLeopold: ping 2011-04-22T15:39:11 McLeopold: want a user? 2011-04-22T15:44:18 *** Accoun has quit IRC () 2011-04-22T15:55:32 *** Chris_0076_ has joined #aichallenge 2011-04-22T15:55:48 *** Accoun has joined #aichallenge 2011-04-22T15:58:29 *** Chris_0076__ has quit IRC (Ping timeout: 250 seconds) 2011-04-22T15:59:36 interesting.. http://pastebin.com/VnDaziAm @McLeopold @janzert 2011-04-22T16:00:37 try apt-get install python 2011-04-22T16:00:49 I had that problem earlier with a fresh chroot install as well 2011-04-22T16:01:12 janzert: i already have python 2011-04-22T16:01:23 getopt works fine in a small python interactive shell 2011-04-22T16:01:25 wait.. 2011-04-22T16:01:27 * janzert doesn't understand why modern desktop/server distros split up the python standard lib so much 2011-04-22T16:01:30 see ^^ 2011-04-22T16:01:34 getpass* 2011-04-22T16:01:52 *** McLeopold has quit IRC (Quit: Leaving.) 2011-04-22T16:01:59 it's a stdlib module but the minimal python install on ubuntu doesn't seem to include it 2011-04-22T16:02:12 so even though python is there the whole stdlib isn't 2011-04-22T16:02:27 the python package is installed though 2011-04-22T16:02:33 also.. i'm using 11.04 beta 2 2011-04-22T16:02:42 hmm :( 2011-04-22T16:04:10 could try the python-dev package but I wouldn't think it would have got stuck in there 2011-04-22T16:04:23 or wait... 2011-04-22T16:04:32 wtf? that line works just fine on its own 2011-04-22T16:04:35 in the interpreter 2011-04-22T16:04:39 it's not an import error so 2011-04-22T16:04:53 the error I was getting earlier was that it couldn't even be imported 2011-04-22T16:05:00 janzert: do i have to adduser before i tell it to use that user? 2011-04-22T16:05:03 or does it make it? 2011-04-22T16:05:37 it needs to be added already, but that shouldn't matter until after all the interactive options have been gathered 2011-04-22T16:08:57 hmm, not sure how this is working at all. but add an "import getpass" to the top of install_tools.py 2011-04-22T16:08:58 janzert: found the problem.. 2011-04-22T16:09:05 that should fix your immediate error 2011-04-22T16:09:05 install_tools.py doesn't have the import 2011-04-22T16:09:12 right :) 2011-04-22T16:09:47 I'll check in a fix along with a bunch of other stuff in a little bit 2011-04-22T16:09:55 aichallenge: Alexandru Stan epsilon * r129b2a5 / setup/install_tools.py : fixed getpass error in the setup script - http://bit.ly/hJ6Qu2 2011-04-22T16:10:15 janzert: does it want mysql already installed? 2011-04-22T16:10:16 agh, now I'm going to be in conflict :P 2011-04-22T16:10:23 no, it'll do that 2011-04-22T16:10:38 it asks me for the db root pass 2011-04-22T16:10:45 right, in case it is already installed 2011-04-22T16:10:51 otherwise just hit enter 2011-04-22T16:10:54 and leave it blank 2011-04-22T16:11:21 blank? but then what will the pass be? 2011-04-22T16:11:27 blank 2011-04-22T16:11:28 :) 2011-04-22T16:11:46 that's what is with an automatic install of mysql 2011-04-22T16:12:19 janzert: also.. where should i git clone the repo? 2011-04-22T16:12:53 /home/contest/aichallenge is the location I've been using 2011-04-22T16:12:57 ok 2011-04-22T16:13:09 it should be in aichallenge under whatever you set the contest root to 2011-04-22T16:14:12 grr,"Your local changes to 'setup/install_tools.py' would be overwritten by merge..." 2011-04-22T16:14:51 janzert: you should be commiting you changes, lol 2011-04-22T16:15:07 everytime I have something that works I do :) 2011-04-22T16:15:24 janzert: You can stash, merge, and then stash apply. 2011-04-22T16:15:36 yeah, reading the stash docs now 2011-04-22T16:17:37 Contest root directory? [/home/contest] 2011-04-22T16:17:39 is that right? 2011-04-22T16:17:46 or should it be ~contest/aichallenge 2011-04-22T16:18:11 /home/contest 2011-04-22T16:18:41 local-repo is aichallenge lives under the contest root 2011-04-22T16:19:31 yeah, got it 2011-04-22T16:19:37 i assume that this is fine: http://pastebin.com/c8wt9BZ2 2011-04-22T16:19:41 i installed apache2" 2011-04-22T16:19:47 just before lanunching this 2011-04-22T16:19:53 to test my port forwards 2011-04-22T16:20:20 janzert: also.. why does the installer need the website hostname? 2011-04-22T16:20:21 it's going to change from a worker apache to prefork 2011-04-22T16:20:32 for the apache config 2011-04-22T16:21:19 so it wasn't a good idea to include the port in there as well then, lol 2011-04-22T16:21:36 also: _mysql_exceptions.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)") 2011-04-22T16:22:05 that's probably an expected error 2011-04-22T16:22:14 testing whether the contest database already exists 2011-04-22T16:22:17 like.. it quit 2011-04-22T16:22:34 this step: Executing: echo 'quit' | mysql -u contest -p'contest' aichallenge 2011-04-22T16:23:15 pastebin the last few lines? 2011-04-22T16:23:20 of output 2011-04-22T16:23:41 http://pastebin.com/HNDeZG9y 2011-04-22T16:24:06 it seems like it installed the mysql server, but didn't set a password on it or something 2011-04-22T16:24:19 i tried blank and "contest"(what i gave it during the wizzard) 2011-04-22T16:24:57 you should be able to connect as root with no password 2011-04-22T16:25:16 that's the way apt-get installs mysql by default at least in 10.10 2011-04-22T16:25:34 yeah, that works 2011-04-22T16:25:54 hmm, but yeah that seems to be where it is having a problem in the script 2011-04-22T16:26:13 well, there's 2 users now, root and contest 2011-04-22T16:26:58 wait.. no.. only root exists 2011-04-22T16:31:26 janzert: what can i do now? 2011-04-22T16:32:04 I guess try and find out what MySQLdb can't login 2011-04-22T16:32:20 it should have been doing the same thing as you just did 2011-04-22T16:34:04 *** McLeopold has joined #aichallenge 2011-04-22T16:34:35 janzert: well.. i did give the root pass for the mysql at the beggining as "contest" 2011-04-22T16:34:50 i guess that's why it failed, since it didn't change it after it got installed 2011-04-22T16:34:57 janzert: can i restart the script? 2011-04-22T16:35:45 yeah, it should run fine still after dying in that spot 2011-04-22T16:36:02 what about the apache configs? do they get overwritten? 2011-04-22T16:36:16 they weren't written yet 2011-04-22T16:36:21 oh, ok 2011-04-22T16:36:35 or do you mean some other current ones you have? 2011-04-22T16:37:04 *** Mathnerd314 has joined #aichallenge 2011-04-22T16:37:30 decent: http://hypertriangle.com:13080/ 2011-04-22T16:37:41 janzert: nope, the server's blank 2011-04-22T16:37:56 looks good 2011-04-22T16:38:30 btw, that's basically as far as anything works from the setup script so far :/ 2011-04-22T16:38:56 I don't really even know what else the current system needs if anything yet 2011-04-22T16:39:08 memcache 2011-04-22T16:39:39 btw.. ssh is provided at ssh contest@hypertriangle.com -p 13022 2011-04-22T16:39:40 I meant as far as cron jobs and such ;) 2011-04-22T16:39:50 oh 2011-04-22T16:40:01 but memcach install is as simple as adding the correct package name to the list of required packages 2011-04-22T16:40:10 though.. we should get proper users 2011-04-22T16:40:42 err, website packages rather 2011-04-22T16:41:08 also.. for some reason process_registration.php is blank 2011-04-22T16:41:38 McLeopold, janzert: do you guys want users? 2011-04-22T16:41:58 I don't think I need it 2011-04-22T16:42:09 to ssh into it? 2011-04-22T16:42:14 as in the process_registration file itself or the result? 2011-04-22T16:42:17 yes 2011-04-22T16:42:22 janzert: results 2011-04-22T16:42:25 janzert: might be a php error 2011-04-22T16:42:29 janzert: i'll look into it after users 2011-04-22T16:42:34 I'd rather just git a webpage or something that shows test errors 2011-04-22T16:42:53 Maybe we would want to change server_info? 2011-04-22T16:45:12 amstan: my guess on the process_registration problem is change mailer_address in server_info.php to "donotsend" should fix it, otherwise set it up to actually be able to send email. 2011-04-22T16:45:24 that is something not handled by the setup script at all yet 2011-04-22T16:45:26 found the logs 2011-04-22T16:45:28 PHP Fatal error: require_once(): Failed opening required 'phpmailer/class.phpmailer.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/contest/aichallenge/website/gmail.php on line 3, referer: http://hypertriangle.com:13080/register.php 2011-04-22T16:46:35 *** Chris_0076_ has quit IRC (Ping timeout: 250 seconds) 2011-04-22T16:48:12 McLeopold: btw, I changed the default name of the submissions directory on workers so that a worker should be able to be setup from the same location as a manager/website 2011-04-22T16:49:10 cool 2011-04-22T16:50:57 *** skynetz has joined #aichallenge 2011-04-22T16:54:08 well, this is dissapointing: http://hypertriangle.com:13080/account_confirmation.php?confirmation_code=dba7cf04c27e1f742e564b46193e8e39 2011-04-22T16:56:12 * amstan is getting phpmyadmin 2011-04-22T16:58:00 what's wrong with mysql command line? 2011-04-22T16:58:09 McLeopold: what about it? 2011-04-22T16:58:41 it doesn't have the letters "php" in it 2011-04-22T16:58:59 oh.. right 2011-04-22T16:59:14 i'm just quicker with it, i haven't used queries in a while 2011-04-22T17:01:09 I really wish everyone would just port to python 3 already :/ 2011-04-22T17:01:15 *** berak has quit IRC (Quit: ChatZilla 0.9.84 [SeaMonkey 2.0a3/20090223135443]) 2011-04-22T17:02:02 ok.. so there's a problem with the user authentication then 2011-04-22T17:04:16 amstan: I think I see the problem 2011-04-22T17:06:09 aichallenge: McLeopold epsilon * rce90441 / website/session.php : fixed incorrect table name in activation sql - http://bit.ly/fGacGt 2011-04-22T17:06:12 aichallenge: McLeopold epsilon * rc32e995 / setup/install_tools.py : Merge branch 'epsilon' of github.com:aichallenge/aichallenge into epsilon - http://bit.ly/f3thPP 2011-04-22T17:06:26 McLeopold: so there's no need to open a bug then 2011-04-22T17:06:43 no, just pull that change, a good test for your continuous integration 2011-04-22T17:06:54 janzert: what's this? aicontest.tgz 2011-04-22T17:07:06 McLeopold: pulled 2011-04-22T17:07:07 the file workers will set up from 2011-04-22T17:07:28 activation success! 2011-04-22T17:07:51 see setup/create_worker_archive.py 2011-04-22T17:08:44 although there is currently no explanation in there 2011-04-22T17:11:35 So we have https://github.com/aichallenge/aichallenge/issues/74 && https://github.com/aichallenge/aichallenge/issues/73 2011-04-22T17:12:24 aichallenge: janzert epsilon * rdc6eef9 / (4 files in 3 dirs): Initial work to create the base chroot to run submissions in - http://bit.ly/gIPd9i 2011-04-22T17:16:11 McLeopold: did you know the memcache package you are using? I don't recall what it is 2011-04-22T17:16:27 I remember there were two and one was better than the other ;) 2011-04-22T17:19:20 let me look... 2011-04-22T17:20:35 janzert: http://stackoverflow.com/questions/1442411/using-memcache-vs-memcached-with-php I think I went with this recommendation. 2011-04-22T17:21:01 ok; so memcached then 2011-04-22T17:21:10 ok, i g2g 2011-04-22T17:21:18 i'll be back in like 2 hours 2011-04-22T17:21:32 see you in a bit then 2011-04-22T17:25:32 *** amstan has quit IRC (Ping timeout: 246 seconds) 2011-04-22T17:26:42 aichallenge: McLeopold epsilon * rd17c4ff / (website/session.php website/sql.php): moved some sql into sql.php - http://bit.ly/eN3Pg3 2011-04-22T17:32:44 so I see phpmailer is available as a ubuntu package but I'm not sure how to get our php to use it 2011-04-22T17:33:11 instead of installing phpmailer directly into our website directory structure 2011-04-22T17:33:46 I wouldn't bother, we are going to dump php after ants, aren't we? 2011-04-22T17:34:05 * janzert shrugs 2011-04-22T17:34:19 assuming email currently works 2011-04-22T17:34:20 if someone puts zeta into useable shape 2011-04-22T17:34:49 well we have to install phpmailer somehow, that's the cause of amstan's email error earlier 2011-04-22T17:35:05 when I get the api functions to be a separate http server running on a different port, then the website can be done in django easily 2011-04-22T17:39:58 aichallenge: janzert epsilon * r8aedba2 / setup/server_setup.py : Add memcached to list of website packages to install - http://bit.ly/h9wQHY 2011-04-22T17:42:37 janzert: don't you need php-memcached as well? 2011-04-22T17:42:56 oh, do you? probably 2011-04-22T17:43:14 you just pulled in the server piece, now we need the client 2011-04-22T17:44:18 probably just need php-memcached and it will depend on memcached 2011-04-22T17:44:35 I don't think they are related like that 2011-04-22T17:45:39 also the actual package is php5-memcached? 2011-04-22T17:45:49 probably 2011-04-22T17:45:50 this is why I was asking for the package name earlier :) 2011-04-22T17:46:15 yeah, but I would have given you the win32 dll name :) 2011-04-22T17:46:33 hehe, I thought you had it on ubuntu now? 2011-04-22T17:46:45 ok, adding php5-memcached 2011-04-22T17:46:51 I've got 5 machines 2011-04-22T17:48:21 aichallenge: janzert epsilon * r35dbf37 / setup/server_setup.py : and add the php memcached package as well - http://bit.ly/gP5mU4 2011-04-22T17:58:42 *** McLeopold has quit IRC (Read error: Connection reset by peer) 2011-04-22T18:02:53 *** sids_aquarius has quit IRC (Ping timeout: 260 seconds) 2011-04-22T18:15:16 *** Kingpin13 has quit IRC (Quit: money can't buy you love, but it can if you have enough) 2011-04-22T18:15:21 *** sids_aquarius has joined #aichallenge 2011-04-22T18:18:31 *** skynetz has quit IRC (Quit: .) 2011-04-22T18:20:59 *** thagomizr has joined #aichallenge 2011-04-22T18:24:53 *** sigh has joined #aichallenge 2011-04-22T18:25:44 *** sids_aquarius has quit IRC (Ping timeout: 276 seconds) 2011-04-22T18:59:06 *** McLeopold has joined #aichallenge 2011-04-22T19:07:16 *** amstan has joined #aichallenge 2011-04-22T19:07:16 *** ChanServ sets mode: +o amstan 2011-04-22T19:07:22 k 2011-04-22T19:07:56 :O! 2011-04-22T19:10:43 contestbot: botdoc 2011-04-22T19:10:44 amstan: botdoc could be (#1) http://ubottu.com/stdin/supydocs/plugins/, or (#2) http://supybook.fealdia.org/devel/, or (#3) http://sourceforge.net/apps/mediawiki/gribble/index.php?title=Supybot_Resources. 2011-04-22T19:25:10 *** contestbot has joined #aichallenge 2011-04-22T19:25:16 now? 2011-04-22T19:25:21 yes! 2011-04-22T19:26:14 McLeopold, janzert: ping 2011-04-22T19:26:45 pong 2011-04-22T19:26:53 well.. i'm back 2011-04-22T19:26:56 and i can do more stuff 2011-04-22T19:26:59 although fairly distracted at the moment 2011-04-22T19:31:11 howdy 2011-04-22T19:31:56 amstan: I think I wrote a script to create a sample bot as a contestant 2011-04-22T19:32:05 McLeopold: with latest git I'm now getting a php error in session.php: PHP Parse error: syntax error, unexpected '[' in /home/contest/aichallenge/website/session.php on line 84 2011-04-22T19:33:12 although I don't understand why after taking a quick look at it 2011-04-22T19:34:23 missing dollar sign 2011-04-22T19:34:30 ahh 2011-04-22T19:35:13 aichallenge: McLeopold epsilon * r002cfb2 / website/session.php : oops - http://bit.ly/dEJA4F 2011-04-22T19:35:53 my local environment isn't setup yet :), so I didn't test 2011-04-22T19:36:14 *** FireFly has quit IRC (Quit: swatted to death) 2011-04-22T19:36:30 ok.. idea! tell contestbot when to git pull on my test server! 2011-04-22T19:37:25 Affiliation... nice.. i like the new name 2011-04-22T19:37:28 not Organization 2011-04-22T19:39:31 janzert: i had a step in the old readme: Change www/check_submit.php and manager/compile_daemon.py to point to the submissions directory 2011-04-22T19:39:35 janzert: does your setup do that? 2011-04-22T19:40:55 they should be reading it out of the server_info.php, although I don't know if they really do 2011-04-22T19:41:13 but I seem to recall McLeopold fixed that quite a while back 2011-04-22T19:41:22 McLeopold: do submissions work? 2011-04-22T19:41:33 they did a month ago on my machine :) 2011-04-22T19:41:35 we would have got an error message if it wasn't 2011-04-22T19:42:16 contestbot: learn betatest as http://hypertriangle.com:13080/ 2011-04-22T19:42:16 amstan: As you wish. 2011-04-22T19:42:54 McLeopold: Failed to move file from temporary to permanent location. 2011-04-22T19:43:09 hmm... that an upload error? 2011-04-22T19:43:54 yes 2011-04-22T19:45:18 aichallenge: McLeopold epsilon * r6f9c683 / (2 files in 2 dirs): update sample python bots and sample bot creation - http://bit.ly/fh6JaX 2011-04-22T19:46:35 amstan: I'd check permissions on the upload dir first. 2011-04-22T19:46:51 check_submit.php should be doing the work 2011-04-22T19:47:00 aichallenge: Alexandru Stan epsilon * r0da105d / (README.md INSTALL.md): Updated the documentation - http://bit.ly/hTWAXh 2011-04-22T19:48:08 aichallenge: janzert epsilon * r9a6c450 / (setup/server_setup.py website/gmail.php): Install phpmailer for website email sending. Closes #74 - http://bit.ly/gaODho 2011-04-22T19:49:12 *** jaycobcoleman has joined #aichallenge 2011-04-22T19:49:22 jaycobcoleman: how's it going? 2011-04-22T19:49:38 Pretty good. Yourself? 2011-04-22T19:50:01 okay, I've been out of touch lately. I noticed in the irc logs you had some ideas for the python bot? 2011-04-22T19:50:25 regarding what specifically? 2011-04-22T19:50:32 dead ants and vision 2011-04-22T19:50:40 amstan: guess you're planning on the contest being farther away than I thought, since you say to use ubuntu 11.10 ;) 2011-04-22T19:50:41 I think I got vision working per the util files 2011-04-22T19:50:54 I'm glad you changed the vision code. That's the one I was hoping for 2011-04-22T19:51:03 janzert: ohsit, lol where? 2011-04-22T19:51:08 thanks to sigh : ) 2011-04-22T19:51:13 first step of install.md 2011-04-22T19:51:17 oh man 2011-04-22T19:51:27 :) 2011-04-22T19:51:34 so.. we might as well say: install: requirements: a time machine or wait 5 months 2011-04-22T19:51:35 I'm working on a close variant of that method and I'll compare them to see how it works 2011-04-22T19:52:54 as for dead ants, sorting the inputs in the ants.py that controls the game right before the new line and then ouput would allow you to leave the old code for dead ants exactly as it was 2011-04-22T19:53:10 in the python ants.py 2011-04-22T19:53:47 I updated the starter bot today, I just put in an if that said don't overwrite non-land data with dead ant data 2011-04-22T19:54:01 amstan: also where does check_submit.php not use the server_info variable? 2011-04-22T19:54:03 the starterbot still has the dead ant list, so people can use it 2011-04-22T19:54:16 janzert: i'm going to trace that now 2011-04-22T19:54:28 ok 2011-04-22T19:54:37 check_submit.php has an include at the top for server_info.php 2011-04-22T19:54:55 the website mixes require_once and includes, which I'm not sure if that is bad practice 2011-04-22T19:55:05 PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpsgEUIT' to '/home/contest/submissions2/entry.zip' in /home/contest/aichallenge/website/check_submit.php on line 82, referer: http://hypertriangle.com:13080/submit.php 2011-04-22T19:55:13 I just left things alone when I didn't need to touch them 2011-04-22T19:55:13 submissions2 eh? 2011-04-22T19:55:35 that's the submissionid 2011-04-22T19:55:41 it's missing a path separator 2011-04-22T19:56:21 line 73 needs some extra stuff in it 2011-04-22T19:56:24 I thought it was using a 2 tier directory layout now? 2011-04-22T19:56:49 oh, my submission_directory probably had a trailing slash, so it worked for me 2011-04-22T19:56:56 McLeopold: $target_path = $destination_folder . '/' . $filename; 2011-04-22T19:57:09 or fix the server_info.php 2011-04-22T19:57:16 does php have an os.path.join? 2011-04-22T19:57:30 McLeopold: no idea, i always hardcoded it 2011-04-22T19:58:01 first website i made.. hardcoded everything to use \ slashes 2011-04-22T19:58:06 grated i was in grade 6 2011-04-22T19:58:10 granted* 2011-04-22T19:58:13 :) 2011-04-22T19:58:43 well, it ought to check to see if a separator already exists at the end of the server_info vars 2011-04-22T19:59:22 I'd put the slash in server_info.php and try again 2011-04-22T19:59:39 McLeopold: yes, but then you have to add that slash in the install script somewhere 2011-04-22T19:59:45 yep 2011-04-22T19:59:50 better fix the php instead 2011-04-22T20:00:01 having 2 slashes will work, having none doesn't 2011-04-22T20:00:02 adding a slash in the php is not better, just different 2011-04-22T20:00:06 2 will work? 2011-04-22T20:00:19 uck, http://stackoverflow.com/questions/1091107/how-to-join-filesystem-path-strings-in-php 2011-04-22T20:00:31 McLeopold: /home//alex is the same as saying /home/alex 2011-04-22T20:00:38 function joinPaths, I was looking at that :) 2011-04-22T20:00:55 apparently there is nothing built in 2011-04-22T20:00:59 okay, so, better safe than sorry, I guess 2011-04-22T20:01:14 janzert: that seems very unlike the php way 2011-04-22T20:01:15 *** Chris_0076_ has joined #aichallenge 2011-04-22T20:02:23 so, amstan: you updating the code, or me? 2011-04-22T20:02:32 McLeopold: we can race 2011-04-22T20:03:36 we, could, but at the end of the race you're going to make me do a git reset --hard to get past conflicts and then my laptop will probably bluescreen and send my drive heads flying out the window 2011-04-22T20:03:58 well.. [Fri Apr 22 20:03:29 2011] [error] [client 192.168.0.1] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpSTHuWJ' to '/home/contest/submissions/5/entry.zip' in /home/contest/aichallenge/website/check_submit.php on line 82, referer: http://hypertriangle.com:13080/submit.php 2011-04-22T20:04:09 McLeopold: ok.. so i could do it then 2011-04-22T20:04:21 problem is.. 2011-04-22T20:04:21 same problem 2011-04-22T20:04:28 with the new path 2011-04-22T20:04:40 unable to move.. 2011-04-22T20:04:46 oh! is it writable by www-data? 2011-04-22T20:04:49 does /home/contest/submissions/5/ exist? 2011-04-22T20:04:56 janzert: that too 2011-04-22T20:04:57 ahh, there's a thought 2011-04-22T20:05:14 line 80 is a mkdir 2011-04-22T20:05:25 so, it is probably permissions 2011-04-22T20:05:33 I bet the setup script didn't get the submission directory permission correct 2011-04-22T20:06:12 janzert: how would you set that? chown www-data:www-data? 2011-04-22T20:06:20 i would use setfacl, but it's more complicated to setup 2011-04-22T20:06:34 I think we want it owned by the contest user 2011-04-22T20:06:48 maybe www-data group or world writable 2011-04-22T20:06:57 not sure which or if either is better 2011-04-22T20:07:02 when php mobes it, he'll create a new file with www-data:www-data as permissions 2011-04-22T20:07:09 moves* 2011-04-22T20:07:14 i'll make it group 2011-04-22T20:07:17 that's fine I meant the submission directory itself 2011-04-22T20:07:47 success! 2011-04-22T20:08:01 drwxrwxr-x 3 contest www-data 4.0K 2011-04-22 20:07 submissions 2011-04-22T20:08:33 *** jaycobcoleman has quit IRC (Ping timeout: 252 seconds) 2011-04-22T20:08:36 now.. the problem is -rwxrwxrwx 1 www-data www-data 52K 2011-04-22 20:07 entry.zip 2011-04-22T20:08:39 it's 777 2011-04-22T20:08:44 i don't like world writable 2011-04-22T20:10:13 aichallenge: janzert epsilon * r3354985 / setup/server_setup.py : Set submission directory group to www-data so webserver can write submission files - http://bit.ly/eoyNJQ 2011-04-22T20:10:47 amstan: I think only the group needs to be set to www-data 2011-04-22T20:10:50 McLeopold: what about that files in a folder limit? shouldn't the webserver move it to a deeper path? 2011-04-22T20:10:55 McLeopold: that's what i did 2011-04-22T20:11:05 you set the owner as well 2011-04-22T20:11:11 McLeopold: shouldn't id 1 be in submissions/0/1 2011-04-22T20:11:20 and id 1001 in submissions 1/1001 2011-04-22T20:11:22 amstan: yes, I never implemented it 2011-04-22T20:11:36 that should be implemented 2011-04-22T20:11:36 or maybe I just did it for the workers? 2011-04-22T20:11:43 ... 2011-04-22T20:12:46 nope 2011-04-22T20:13:48 I never implemented it, just talked about it. 2011-04-22T20:14:01 We should open an issues, because the worker.py script ought to do it too 2011-04-22T20:15:03 McLeopold: https://github.com/aichallenge/aichallenge/issues/75 2011-04-22T20:16:10 aichallenge: Alexandru Stan epsilon * r3eb792c / website/check_submit.php : the submissions are now uploaded to the correct path, it was missing a slash - http://bit.ly/fTNvwh 2011-04-22T20:16:14 aichallenge: Alexandru Stan epsilon * r1756268 / (setup/server_setup.py website/gmail.php): Merge branch 'epsilon' of github.com:aichallenge/aichallenge into epsilon - http://bit.ly/fkTaOC 2011-04-22T20:17:28 janzert: Sorry your last submission was too recent. 2011-04-22T20:17:30 can i change that? 2011-04-22T20:17:39 the interval 2011-04-22T20:18:27 so long as the pairing has been switched to player based (I believe McLeopold was making it that way) the interval can be removed altogether yes 2011-04-22T20:18:46 it should just check that the previous submission has finished going through the submit process 2011-04-22T20:19:21 amstan: line 85-86 of submission.php 2011-04-22T20:19:43 but, you need worker.py running compile tasks to get past status 20 2011-04-22T20:20:12 so then if your submission doesn't get compiled, you can't resubmit it? 2011-04-22T20:20:21 correct 2011-04-22T20:20:24 yes 2011-04-22T20:20:28 ew 2011-04-22T20:20:30 lol 2011-04-22T20:20:38 otherwise they can just keep piling up the submission queue 2011-04-22T20:21:00 if the queue isn't being processed there's no reason to allow them to keep submitting anyway 2011-04-22T20:21:45 a more informative message wouldn't be a bad idea though :) 2011-04-22T20:21:48 how does it even get past 20 anyway? isn't there many workers that have to all compile it? 2011-04-22T20:22:12 just the first one takes and tests that it compiles sucessfully 2011-04-22T20:22:18 python worker.py -t -n 0 2011-04-22T20:22:24 the rest compile as they need that submission to play a game 2011-04-22T20:22:47 that will start a worker and continuosly get tasks from the server 2011-04-22T20:23:05 including creating matchups if there are no compile tasks 2011-04-22T20:23:18 I expect that part to crash gloriously 2011-04-22T20:23:57 amstan: the first compile also does the submission test game and reports the status 2011-04-22T20:24:14 gotta run for probably an hour, be back later 2011-04-22T20:24:35 notice also that there is no real sandboxing going on 2011-04-22T20:24:59 (in case you're thinking of opening up a public beta test server) 2011-04-22T20:25:36 *** bhasker has joined #aichallenge 2011-04-22T20:26:06 I do almost have the jail users set up with chroots, then I /just/ have to make sandbox.py actually use them :P 2011-04-22T20:26:41 ok, decent 2011-04-22T20:40:16 *** computerwiz_222 has joined #aichallenge 2011-04-22T20:40:23 computerwiz_222: yo 2011-04-22T20:40:31 amstan: hey 2011-04-22T20:40:31 contestbot: betatest 2011-04-22T20:40:32 amstan: betatest could be http://hypertriangle.com:13080/. 2011-04-22T20:41:15 *** computerwiz_222 has quit IRC (Quit: leaving) 2011-04-22T20:41:15 McLeopold: also.. what about that seq branch? 2011-04-22T20:41:42 ? 2011-04-22T20:41:56 oh, sequential bot running? 2011-04-22T20:42:01 I haven't looked at it 2011-04-22T20:42:01 McLeopold: i have no idea 2011-04-22T20:42:12 McLeopold: yeah, you have to review it 2011-04-22T20:42:15 sigh made it 2011-04-22T20:42:27 ok 2011-04-22T20:43:26 aichallenge: Alexandru Stan epsilon * rc6d723c / (4 files): Merge remote branch 'ocaml/epsilon' into epsilon - http://bit.ly/dIZI8y 2011-04-22T20:44:25 *** _0x47 <_0x47!~slash@p3EE0BFBC.dip.t-dialin.net> has quit IRC (Quit: Leaving.) 2011-04-22T20:48:38 *** andrew_ has joined #aichallenge 2011-04-22T20:48:43 *** andrew_ is now known as Guest59852 2011-04-22T20:51:00 aichallenge: Alexandru Stan websiteinstall * rcb72680 / (3 files in 2 dirs): added some install scripts, more todo - http://bit.ly/fuLTca 2011-04-22T20:53:28 aichallenge: Alexandru Stan epsilon * r9719ea3 / (4 files): Merge remote branch 'tjc/perlimprove' into epsilon - http://bit.ly/g3cJaD 2011-04-22T20:54:01 aichallenge: McLeopold epsilon * r94ac893 / (4 files): refactored submission dir to one function that uses 2 layers for submission directories. Closes #75 - http://bit.ly/e4W93u 2011-04-22T20:54:02 aichallenge: McLeopold epsilon * rb9fe0e2 / (8 files in 2 dirs): Merge branch 'epsilon' of github.com:aichallenge/aichallenge into epsilon - http://bit.ly/eAY3RY 2011-04-22T20:54:11 *** Guest59852 is now known as computerwiz_222 2011-04-22T20:54:22 McLeopold: this seems cool: https://github.com/aichallenge/aichallenge/pull/67 2011-04-22T20:54:26 amstan: once again I've committed code without testing... 2011-04-22T20:54:32 McLeopold: ... 2011-04-22T20:54:39 McLeopold: i guess we can use my server 2011-04-22T20:55:13 *** Chris_0076 has joined #aichallenge 2011-04-22T20:55:17 McLeopold: that's only php though, what about the workers? 2011-04-22T20:55:55 that should be there too... 2011-04-22T20:56:16 there are 2 commits there 2011-04-22T20:57:06 [Fri Apr 22 20:56:35 2011] [error] [client 192.168.0.1] PHP Parse error: syntax error, unexpected ')' in /home/contest/aichallenge/website/submission.php on line 126, referer: http://hypertriangle.com:13080/profile.php?user_id=1 2011-04-22T20:57:26 McLeopold: test your code pls 2011-04-22T20:58:10 *** Chris_0076_ has quit IRC (Ping timeout: 240 seconds) 2011-04-22T21:00:54 aichallenge: McLeopold epsilon * rb125304 / website/submission.php : fixed syntax error - http://bit.ly/feyVcg 2011-04-22T21:02:16 amstan: sry about coding from the hip, I'll get a test environment soon, g2g 2011-04-22T21:02:43 ugh... do i really have to reset now? 2011-04-22T21:02:49 *** jaycobcoleman has joined #aichallenge 2011-04-22T21:04:32 amstan: I don't understand your comment? 2011-04-22T21:04:47 i have to checkout a previous revision now, or revert your commit 2011-04-22T21:04:59 the test server is in a broken state now 2011-04-22T21:06:32 *** McLeopold has left #aichallenge 2011-04-22T21:11:33 *** bhasker has quit IRC (Quit: bhasker) 2011-04-22T21:16:42 contestbot: later tell mcleopold I saw your change, but there's still some bugs. I reset the branch to the commit before the merge, you can fix it locally then push when it's all done 2011-04-22T21:16:42 amstan: Job's done. 2011-04-22T21:17:15 Like from Warcraft! 2011-04-22T21:21:27 *** jaycobcoleman has quit IRC (Quit: Page closed) 2011-04-22T21:22:44 contestbot: betatest 2011-04-22T21:22:45 amstan: betatest could be http://hypertriangle.com:13080/. 2011-04-22T21:27:33 *** Eruonen has quit IRC () 2011-04-22T21:28:10 *** Chris_0076 has quit IRC (Quit: Leaving) 2011-04-22T21:37:16 *** needsch has quit IRC (Quit: Leaving.) 2011-04-22T21:41:59 *** bhasker has joined #aichallenge 2011-04-22T21:43:13 bhasker: oh yeah, i get conflicts when trying to pull your fork: https://github.com/aichallenge/aichallenge/pull/71 2011-04-22T21:43:15 can you merge pls? 2011-04-22T21:44:00 saw that , can't do it right now :-) baby here no time 2011-04-22T21:44:11 aww 2011-04-22T21:44:13 ok 2011-04-22T21:44:17 congrats 2011-04-22T21:44:28 wait.. as in new baby? congrats 2011-04-22T22:09:53 *** sigh has quit IRC (Read error: Connection reset by peer) 2011-04-22T22:10:04 *** sigh has joined #aichallenge 2011-04-22T22:16:29 sigh: hey 2011-04-22T22:20:15 *** bhasker has quit IRC (Quit: bhasker) 2011-04-22T22:21:14 amstan: ? 2011-04-22T22:21:29 sigh: we have a test server 2011-04-22T22:21:32 contestbot: betatest 2011-04-22T22:21:33 amstan: betatest could be http://hypertriangle.com:13080/. 2011-04-22T22:22:00 awesome :) 2011-04-22T22:31:11 aichallenge: Alexandru Stan websiteinstall * r4e01c92 / (website/index.php website/setup.py website/setup2.py): perfected the setup.py file, linked index.php - http://bit.ly/eUT2G6 2011-04-22T22:31:12 aichallenge: Alexandru Stan websiteinstall * r2275a53 / (website/index.php website/setup.py): now you can execute setup.py as many times as you want, it proceeds on syncing the php with the md files - http://bit.ly/fTivOX 2011-04-22T22:31:14 sigh: also.. that ^ 2011-04-22T22:47:50 *** Stocha has joined #aichallenge 2011-04-22T22:48:04 hello 2011-04-22T22:48:08 anything going on ? 2011-04-22T22:48:49 Stocha: yeah 2011-04-22T22:48:52 test server's up 2011-04-22T22:50:35 aichallenge: Alexandru Stan epsilon * r4e01c92 / (website/index.php website/setup.py website/setup2.py): perfected the setup.py file, linked index.php - http://bit.ly/eUT2G6 2011-04-22T22:50:36 aichallenge: Alexandru Stan epsilon * r2275a53 / (website/index.php website/setup.py): now you can execute setup.py as many times as you want, it proceeds on syncing the php with the md files - http://bit.ly/fTivOX 2011-04-22T22:50:36 aichallenge: Alexandru Stan epsilon * r04c2816 / (5 files): linked all files, fixed the menu, content adding should be done - http://bit.ly/eyAEQL 2011-04-22T22:50:37 aichallenge: Alexandru Stan websiteinstall * r04c2816 / (5 files): linked all files, fixed the menu, content adding should be done - http://bit.ly/eyAEQL 2011-04-22T22:50:39 aichallenge: Alexandru Stan epsilon * rf403519 / (7 files in 2 dirs): Merge branch 'websiteinstall' into epsilon - http://bit.ly/ftXC5G 2011-04-22T22:53:20 aichallenge: Alexandru Stan epsilon * r84cfbc6 / website/setup.py : added a pass error in the website setup script - http://bit.ly/fPxioN 2011-04-22T22:57:52 contestbot: later tell antimatroid done with inserting content on the site: https://github.com/aichallenge/aichallenge/issues/61 2011-04-22T22:57:52 amstan: Yep. 2011-04-22T22:58:01 contestbot: later tell antimatroid please look over it 2011-04-22T22:58:01 amstan: I think that worked... 2011-04-22T22:58:26 *** Mathnerd314 has quit IRC (Disconnected by services) 2011-04-22T22:59:33 *** Mathnerd314_ has joined #aichallenge 2011-04-22T23:00:30 *** Mathnerd314_ is now known as Mathnerd314 2011-04-22T23:02:00 what do one need to install a full test server ? 2011-04-22T23:02:04 only python ? 2011-04-22T23:02:06 also.. what about this? http://home.hypertriangle.com/~andrew/aicontest/ 2011-04-22T23:02:28 Stocha: see this: https://github.com/aichallenge/aichallenge/blob/epsilon/INSTALL.md 2011-04-22T23:02:31 i just made it today 2011-04-22T23:02:44 Stocha: server part should be complete 2011-04-22T23:02:51 i don't know about the color 2011-04-22T23:03:03 i'm color blind. i like the shape though 2011-04-22T23:04:43 Stocha: if you do try to set up a server be warned, the last line of the server section should just not be there as it's not accurate and no longer needed also the worker section is completely outdated 2011-04-22T23:05:25 it seems complicated :/ 2011-04-22T23:05:50 it's really not that bad, but it is a rather complex system so... 2011-04-22T23:05:51 do you need mysql or not ? i didn't get it. 2011-04-22T23:06:12 yes, but the server setup script will install it 2011-04-22T23:06:32 what passwd is to be blank ? 2011-04-22T23:06:44 Stocha: the root mysql pass 2011-04-22T23:06:57 and the setup script has more than a few rough edges still 2011-04-22T23:07:45 aichallenge: Alexandru Stan epsilon * re991807 / INSTALL.md : some fixes to the INSTALL doc - http://bit.ly/fwwQ6Y 2011-04-22T23:07:50 Stocha: refresh ^ 2011-04-22T23:09:26 amstan: you forgot the 11.10 again :P 2011-04-22T23:09:38 noo! 2011-04-22T23:09:58 oh well, next time 2011-04-22T23:10:20 *** jaycobcoleman has joined #aichallenge 2011-04-22T23:10:51 aichallenge: Alexandru Stan epsilon * r620ead1 / INSTALL.md : Yes.. we'll release before fall comes - http://bit.ly/f7wJkd 2011-04-22T23:10:58 janzert: there ^ 2011-04-22T23:11:21 yay. although I would have gone with 10.10 still 2011-04-22T23:11:37 janzert: yeah, i just wanted to specify what we'll use 2011-04-22T23:11:45 since that is what I'm actually developing on until I know 11.04 is stable on ec2 2011-04-22T23:12:03 oh 2011-04-22T23:12:07 *** sigh has quit IRC (Ping timeout: 264 seconds) 2011-04-22T23:12:10 ok, I'm hoping we do use 11.04 2011-04-22T23:12:16 internet bots are scanning default mysql setup non stop 2011-04-22T23:12:30 Stocha: oh yes.. i should change that 2011-04-22T23:12:32 i don't have it installed. but leaving the passwd blank seems dangerous 2011-04-22T23:12:53 Stocha: Isn't MySQL default on Ubuntu also not listening to the network? 2011-04-22T23:13:04 jbroman: phpmyadmin is wide open 2011-04-22T23:13:07 (Haven't checked recently, but I thought it either had networking off or was bound to loopback) 2011-04-22T23:13:07 ah maybe 2011-04-22T23:13:18 if it doesn't that's less of a problem 2011-04-22T23:13:18 Oh sure, it's still not a good idea to have a blank root pw. 2011-04-22T23:13:20 but like.. there's not much they can take anyway 2011-04-22T23:13:45 oh nvm.. you can't login with it anyway, phpmyadmin doesn't let you 2011-04-22T23:13:47 i don't know what they are trying to do. nothing good i would say 2011-04-22T23:13:53 yeah last I checked you shouldn't be able to access it unless you have local user access 2011-04-22T23:13:59 http://hypertriangle.com:13080/phpMyAdmin/ 2011-04-22T23:14:25 and if you're going to install phpmyadmin it's your responsibility to make it secure ;) 2011-04-22T23:14:45 ah why so much stuff to install to run a server 2011-04-22T23:14:49 *** jaycobcoleman has quit IRC (Ping timeout: 252 seconds) 2011-04-22T23:14:55 anyway, about the new theme: computerwiz_222 is working on it, i encourage everyone to support him (if you like it..) 2011-04-22T23:15:24 he is the official graphist then 2011-04-22T23:16:00 how does a sever work ? 2011-04-22T23:16:06 does it rank a set of local bot ? 2011-04-22T23:16:25 ? the server is the full contest setup 2011-04-22T23:16:33 janzert: not yet 2011-04-22T23:16:36 well server and corresponding workers that is 2011-04-22T23:16:40 i didn't get the cronjobs setup yet 2011-04-22T23:16:45 and the workers either 2011-04-22T23:16:50 i'm wondering about what to make to render it tcp compatible 2011-04-22T23:17:24 tcp servers use quite a different backend infrastructure 2011-04-22T23:17:33 why ? 2011-04-22T23:17:38 it doesn't need to 2011-04-22T23:17:48 because the do quite a different job :) 2011-04-22T23:17:51 unless the official one has problems 2011-04-22T23:18:01 what does the official one do ? 2011-04-22T23:18:12 it's not about ranking bot, and letting people see games ? 2011-04-22T23:18:13 they don't need all the infrastructure the official one needs for starters 2011-04-22T23:18:32 ah they could be more lightweight true 2011-04-22T23:19:00 starting from the planetwars tcp server is probably a better starting point for an ants tcp server 2011-04-22T23:19:09 but the thing is, the infrastructure is there. so some people will be able to install it quicker than developping a new lightweight one 2011-04-22T23:19:27 do you have a planetwars tcp server that i could install ? 2011-04-22T23:19:57 check the old planetwar tcp servers I thought they had source available 2011-04-22T23:20:07 Stocha: it's on the forums 2011-04-22T23:20:12 mm 2011-04-22T23:20:58 besides infrastructure the main server pairing algorithms aren't going to appropriate for a tcp server 2011-04-22T23:21:17 since a tcp server needs to work with whatever clients happen to be connected at the time 2011-04-22T23:23:16 i though you could resubmit your bots anytime ? 2011-04-22T23:23:26 what is it doesn't run properly then ? 2011-04-22T23:23:54 if it doesn't pass the initial test it is never entered into active participation 2011-04-22T23:23:59 say you submit a 1500 strength bot, and then submit one that timeout always. 2011-04-22T23:24:19 it times out, but not during the tests then :p 2011-04-22T23:24:20 if it does pass the initial test but then crashes in all your games then you start piling up losses 2011-04-22T23:24:41 see the bottom bunch of bots in the planetwars leaderboard :} 2011-04-22T23:24:54 the ranking is dynamic enough that it can handle such cases well ? 2011-04-22T23:25:17 yeah, your rank is basically reset to completely uncertain when you resubmit 2011-04-22T23:25:22 1500 strengh then 0 then 2000. will attain 2000. 2011-04-22T23:25:26 ah 2011-04-22T23:25:41 how do people use a tcp server ? 2011-04-22T23:25:52 they do not let their bot play for a long time ? 2011-04-22T23:26:07 not most people I don't believe 2011-04-22T23:26:11 the bad cases being when the bot get disconected i guess 2011-04-22T23:26:21 in fact the default client for a long time only played one game and quit 2011-04-22T23:26:23 what do they use the tcp server for then ? 2011-04-22T23:26:30 testing 2011-04-22T23:26:46 what kind of testing is one game testing achieving ? 2011-04-22T23:27:00 or they just don't want to run the games themselves ? 2011-04-22T23:27:03 they know it runs and they look at the game to see what they want to change I suppose 2011-04-22T23:27:21 contestbot: betatest 2011-04-22T23:27:22 amstan: betatest could be http://hypertriangle.com:13080/. 2011-04-22T23:27:33 generally it gives you an instant game against fairly strong opponent 2011-04-22T23:27:53 so tcp server isn't about ranking their bots for most people ? 2011-04-22T23:28:04 i guess there would be two tcp scenario then 2011-04-22T23:28:04 not primarily I don't think 2011-04-22T23:28:16 one for ranking a bot, and one for getting a few games. 2011-04-22T23:28:38 what i need is to have some sort of objective comparison for sure. 2011-04-22T23:30:11 it seems quite a bit of work to have the tcp server if not reusing official stuff. 2011-04-22T23:30:51 *** bhasker has joined #aichallenge 2011-04-22T23:31:08 I just doubt there is much of the official stuff that is actually reusable 2011-04-22T23:31:27 the playonegame certainly is 2011-04-22T23:31:34 but I'm not the one doing it so, take my advice for what it's worth 2011-04-22T23:31:35 *** Mathnerd314 has quit IRC (Disconnected by services) 2011-04-22T23:31:55 ok, the ants directory is certainly going to have useful stuff 2011-04-22T23:31:59 at least tcp server should use official rules and formats. 2011-04-22T23:32:06 I don't think of that as the server 2011-04-22T23:32:19 yes the official engine should be used if possible 2011-04-22T23:32:28 *** Mathnerd314_ has joined #aichallenge 2011-04-22T23:32:30 if the use case is just having a few games mmm 2011-04-22T23:32:46 the game result is embeded in the game format ? 2011-04-22T23:32:58 but not the players name i think. 2011-04-22T23:33:21 *** Mathnerd314_ is now known as Mathnerd314 2011-04-22T23:33:29 is there a player id in the format ? 2011-04-22T23:33:40 i should have a look at it i guess 2011-04-22T23:35:11 the player name is in the format. where did i get the idea it wasn't 2011-04-22T23:35:22 computerwiz_222: min-height: 2011-04-22T23:35:24 I'm not terribly familiar with the current game formats 2011-04-22T23:36:43 does the onegame script put in the storage header ? 2011-04-22T23:36:53 no, idea :) 2011-04-22T23:37:03 i guess i'll check that 2011-04-22T23:37:22 I really do limit myself to working on the server side of things and I haven't had much time for even that :/ 2011-04-22T23:39:10 mm i'm confused 2011-04-22T23:39:23 i don't even remember how to use the playonegame :p 2011-04-22T23:40:07 true i wasn't the one that did the testing with the official stuff. only a game to check that my wrapper indeed worked with official engine. 2011-04-22T23:41:00 i guess i'm in no position to plan for the tcp thingy. you have to know the ant directory and functions and replay format well. 2011-04-22T23:41:13 *** bhasker has quit IRC (Quit: bhasker) 2011-04-22T23:41:16 who does know that ant directory well then ? 2011-04-22T23:41:31 sigh, Mcleopold 2011-04-22T23:41:32 ants 2011-04-22T23:41:43 @seen sigh 2011-04-22T23:41:43 Stocha: sigh was last seen in #aichallenge 1 hour, 19 minutes, and 43 seconds ago: awesome :) 2011-04-22T23:41:57 @seen Mcleopold 2011-04-22T23:41:57 Stocha: Mcleopold was last seen in #aichallenge 2 hours, 37 minutes, and 24 seconds ago: amstan: I don't understand your comment? 2011-04-22T23:43:31 how does official ranking work ? 2011-04-22T23:43:53 i mean do you feed games linearly to a script ? 2011-04-22T23:44:04 Stocha: it's described on the wiki 2011-04-22T23:44:07 it check the header, and update whatever states it maintains ? 2011-04-22T23:44:33 idk much more 2011-04-22T23:44:39 is there a script you can run with mocked game, and get a ranking out of it ? 2011-04-22T23:45:35 i think there's a script already done, but idk how to use it or if it's hooked up 2011-04-22T23:45:41 i don't see anything in the wiki that would help me understand how to do that. 2011-04-22T23:46:11 Mcleopold has been doing the ranking stuff and I haven't been paying real close attention but I believe it is pretty much all done in sql now and triggered when adding a game result to the database 2011-04-22T23:46:33 the usage of the script is not there, but the method is described in great detail at https://github.com/aichallenge/aichallenge/wiki/TrueSkill-Matchmaking 2011-04-22T23:46:39 i.e. no I don't think there is a sript you could easily run and feed mocked games to 2011-04-22T23:46:41 so there might not be any script 2011-04-22T23:47:24 will the raw games result be available for people to run their own ranking stuff ? 2011-04-22T23:47:53 i suppose the whole game setup will be available 2011-04-22T23:48:12 still it would be good if people could see how the ranking work locally. 2011-04-22T23:48:26 and use it on their own tcp server or something :p 2011-04-22T23:48:30 I was able to make that available pretty easily in the last contest, it probably won't be quite as easy to do this time 2011-04-22T23:48:37 but I don't think it will be terribly hard 2011-04-22T23:48:56 what forms take the rankng algorithm ? 2011-04-22T23:49:08 is it a python script somewhere ? 2011-04-22T23:49:11 ? 2011-04-22T23:49:26 Stocha: yes, check the repo, it's in there somewhere 2011-04-22T23:49:53 https://github.com/aichallenge/trueskill 2011-04-22T23:49:53 that's a part of what I was referring to above, I believe it's pretty much all sql now 2011-04-22T23:50:14 amstan: is that actually used anywhere? 2011-04-22T23:50:34 janzert: yes, i think the stuff you are reffering to is the matchmaking 2011-04-22T23:50:41 the scores are calculated with that python 2011-04-22T23:50:46 since it's pretty complex 2011-04-22T23:50:55 i don't see it when browsing 2011-04-22T23:53:11 https://github.com/aichallenge/trueskill/blob/master/sample.py 2011-04-22T23:53:14 contestbot: learn newdesign as http://home.hypertriangle.com/~andrew/aicontest/ 2011-04-22T23:53:14 amstan: Ready to serve, my lord. 2011-04-22T23:53:20 it seems i have trouble understanding python :p 2011-04-22T23:54:01 contestbot: betatest 2011-04-22T23:54:02 amstan: betatest could be http://hypertriangle.com:13080/. 2011-04-22T23:54:35 ah the trueskill things is not in the epsilon challenge yet i guess 2011-04-22T23:54:50 still i'd like to understand that sample.py 2011-04-22T23:54:50 Stocha: it is, just not hooked up yet 2011-04-22T23:54:57 *** sids_aquarius has joined #aichallenge 2011-04-22T23:56:58 bwark 2011-04-22T23:57:08 antimatroid: yo 2011-04-22T23:57:11 antimatroid: lots of new things 2011-04-22T23:57:19 i noticed there was a lot of talk 2011-04-22T23:57:34 antimatroid: 1. test server 2. content on the website 3. website design 2011-04-22T23:58:29 okay so https://github.com/aichallenge/trueskill/blob/master/trueskill.py is the thing 2011-04-22T23:58:46 with adjustplayer being the main interface 2011-04-22T23:59:46 jbroman: you're who i harass about getting organisation/country rankings and performance graphs on peoples profiles? 2011-04-22T23:59:53 but it is a stateful python function