2011-05-22T00:01:09 demerzel: here.. i think i disabled that 2011-05-22T00:03:00 oh your'e fine 2011-05-22T00:03:09 it's the starter package anyway - the pathfinding logic is shitty 2011-05-22T00:03:20 but honestly i didn't expect to put a lot of effort into the starter package haha 2011-05-22T00:03:28 in that sense anwyay 2011-05-22T00:03:59 it basically just goes west but gets stuck idk if i should bother to fix it for the starter package 2011-05-22T00:04:16 i ahve a parallel real bot but it uses a completely different map idea that is quite a bit more advanced with XORs etc 2011-05-22T00:04:21 dno't think i want to put that into the starter one 2011-05-22T00:14:17 *** chris___0076 has joined #aichallenge 2011-05-22T00:16:16 *** chris__0076 has quit IRC (Ping timeout: 246 seconds) 2011-05-22T00:26:30 *** chris__0076 has joined #aichallenge 2011-05-22T00:28:59 *** chris___0076 has quit IRC (Ping timeout: 260 seconds) 2011-05-22T00:35:20 *** Boom has quit IRC (Ping timeout: 252 seconds) 2011-05-22T00:47:28 *** _flag <_flag!~flag@69-165-173-172.dsl.teksavvy.com> has quit IRC (Quit: Lost terminal) 2011-05-22T00:48:15 *** McLeopold has joined #aichallenge 2011-05-22T01:00:42 *** Nebri has quit IRC () 2011-05-22T01:02:59 aichallenge: McLeopold epsilon * r47f870c / worker/worker.py : fix for 30 game no food issue. Closes #114 - http://bit.ly/k5EFoH 2011-05-22T01:06:50 McLeopold: woot! 2011-05-22T01:07:05 McLeopold: oh man! you serious? lol 2011-05-22T01:07:10 [:] 2011-05-22T01:07:22 yeah, I said earlier it was bad oop state 2011-05-22T01:07:32 modifying a global 2011-05-22T01:07:50 sry it's so late, life gets busy 2011-05-22T01:08:27 amstan: the api_game_result.php isn't running the manager.py correctly, so mu/sigma don't get updated 2011-05-22T01:08:52 my question is why there's so many duplicates in the rankings 2011-05-22T01:09:00 https://github.com/aichallenge/aichallenge/blob/epsilon/website/api_game_result.php#L99 2011-05-22T01:09:28 oh, that's because I'm going to attempt to show current and previous bots until the current bots stabalizes 2011-05-22T01:09:43 ok 2011-05-22T01:09:45 janzert and I had that discussion 2 months ago or so 2011-05-22T01:10:04 obviously, there's an issue with it right now... 2011-05-22T01:10:11 is it just me? or does this page not load? http://hypertriangle.com:13080/profile.php?user=7 2011-05-22T01:10:19 any user page for that matter 2011-05-22T01:10:53 apache is using 100% cpu 2011-05-22T01:10:57 hmm 2011-05-22T01:11:02 what about sql? 2011-05-22T01:11:32 it was fine 2011-05-22T01:12:47 It looks like you are running games? 2011-05-22T01:13:16 yes 2011-05-22T01:13:21 i restarted apache 2011-05-22T01:13:46 logs/error.log is full of [Sun May 22 01:13:22 2011] [error] [client 192.168.0.1] PHP Notice: Use of undefined constant match_result - assumed 'match_result' in /home/contest/aichallenge/website/api_get_task.php on line 54 2011-05-22T01:14:08 I was just looking at that 2011-05-22T01:14:16 other than that, idk 2011-05-22T01:14:21 it was probably an infinite loop in apache 2011-05-22T01:14:24 php* 2011-05-22T01:14:27 that had to timout 2011-05-22T01:14:54 the user pages still take forever to load though 2011-05-22T01:15:38 it's probably my memcache code turned off 2011-05-22T01:15:56 memcached is in htop 2011-05-22T01:17:41 contestbot: later tell demerzel you know someone tried to do a c# starter before: https://github.com/jmcgonegal/aichallenge/commit/85ccd3ab669cc47b1fe63317b60870b0e4ded801 2011-05-22T01:17:41 amstan: Yep. 2011-05-22T01:17:59 tell me now 2011-05-22T01:18:41 demerzel: it's only one commit, it seems they kinda gave up after that 2011-05-22T01:18:49 ah well the one i submitted works 2011-05-22T01:18:54 did that one not work? 2011-05-22T01:18:59 i have no idea 2011-05-22T01:20:07 ok, well, i feel like going to sleep 2011-05-22T01:20:16 McLeopold: do you need my beta server anymore? 2011-05-22T01:20:16 cya :) 2011-05-22T01:20:22 yes he does 2011-05-22T01:20:29 amstan: yes 2011-05-22T01:20:34 aww 2011-05-22T01:20:35 ok 2011-05-22T01:20:36 oh wait i guess not since the games are broken haha 2011-05-22T01:20:46 you want me to issue a shutdown later? does that even help? 2011-05-22T01:20:48 demerzel: games are broken? 2011-05-22T01:20:54 30 turns no food 2011-05-22T01:20:56 McLeopold: yes, that would be nice 2011-05-22T01:20:58 ? 2011-05-22T01:21:08 demerzel: you must have missed the [01:02] aichallenge: McLeopold epsilon * r47f870c / worker/worker.py : fix for 30 game no food issue. Closes #114 - http://bit.ly/k5EFoH 2011-05-22T01:21:14 amstan: is there a command that would do a power off as well? 2011-05-22T01:21:18 i did miss it then 2011-05-22T01:21:22 McLeopold: sudo shutdown -h now 2011-05-22T01:22:49 k 2011-05-22T01:22:57 thanks 2011-05-22T01:44:17 *** jmpespxoreax has quit IRC (Read error: Operation timed out) 2011-05-22T01:55:04 *** sigh has joined #aichallenge 2011-05-22T02:23:41 *** delt0r_ has joined #aichallenge 2011-05-22T03:16:18 *** demerzel has quit IRC (Ping timeout: 252 seconds) 2011-05-22T03:17:17 *** berak has joined #aichallenge 2011-05-22T03:28:41 *** _0x47 <_0x47!~slash@p57B3E77A.dip.t-dialin.net> has joined #aichallenge 2011-05-22T03:29:21 *** UncleVasya has joined #aichallenge 2011-05-22T04:21:44 *** UncleVasya has quit IRC (Ping timeout: 260 seconds) 2011-05-22T04:23:19 *** boegel has joined #aichallenge 2011-05-22T04:32:28 *** amstan has quit IRC (Remote host closed the connection) 2011-05-22T04:49:53 *** qacek has quit IRC (Quit: WeeChat 0.3.5) 2011-05-22T05:16:54 *** McLeopold has left #aichallenge 2011-05-22T06:37:38 *** mcstar has joined #aichallenge 2011-05-22T06:44:06 *** orivej has quit IRC (Ping timeout: 248 seconds) 2011-05-22T06:57:51 *** delt0r___ has joined #aichallenge 2011-05-22T06:59:29 *** delt0r_ has quit IRC (Ping timeout: 252 seconds) 2011-05-22T07:03:52 *** FireFly has joined #aichallenge 2011-05-22T07:27:27 *** sigh has quit IRC (Ping timeout: 250 seconds) 2011-05-22T07:43:49 *** Redgis has joined #aichallenge 2011-05-22T08:03:05 *** smiley1983 has joined #aichallenge 2011-05-22T08:10:15 *** akranis has joined #aichallenge 2011-05-22T08:26:24 *** olexs has joined #aichallenge 2011-05-22T08:35:24 *** sigh has joined #aichallenge 2011-05-22T08:51:49 *** berak has quit IRC (Ping timeout: 246 seconds) 2011-05-22T08:56:00 I'm trying to find the correct setting for api_base_url in server_info.py when setting up a contest server inside a virtualbox. I've tried all of the api_something_something.php files from the website directory, but each gives me an error when I run worker.py -t 2011-05-22T09:01:23 Apache is running, the website is accessible on localhost, and I've made a few users and uploaded some code. 2011-05-22T09:15:36 *** sigh has quit IRC (Remote host closed the connection) 2011-05-22T09:23:39 *** Eruonen has joined #aichallenge 2011-05-22T09:40:16 *** choas has joined #aichallenge 2011-05-22T09:53:26 http://armorgames.com/play/11498/reimagine-the-game 2011-05-22T09:53:27 oh god 2011-05-22T10:02:09 *** LastScene has joined #aichallenge 2011-05-22T10:05:21 *** Ttech has quit IRC (Quit: Your nick was overruled.) 2011-05-22T10:08:33 *** Naktibalda has joined #aichallenge 2011-05-22T10:12:06 *** jmpespxoreax has joined #aichallenge 2011-05-22T10:18:23 *** Ttech has joined #aichallenge 2011-05-22T10:33:15 it says im a monster :( 2011-05-22T10:38:43 *** boegel has quit IRC (Quit: This computer has gone to sleep) 2011-05-22T10:40:03 *** _flag <_flag!~flag@69-165-173-172.dsl.teksavvy.com> has joined #aichallenge 2011-05-22T10:47:16 *** Frontier has joined #aichallenge 2011-05-22T10:53:06 *** Nebri has joined #aichallenge 2011-05-22T12:20:18 *** orivej has joined #aichallenge 2011-05-22T12:20:23 *** smiley1983 has quit IRC (Quit: leaving) 2011-05-22T12:25:47 *** berak has joined #aichallenge 2011-05-22T12:43:24 *** berak_ has joined #aichallenge 2011-05-22T12:44:58 *** Kingpin13 has joined #aichallenge 2011-05-22T12:46:40 *** berak has quit IRC (Ping timeout: 246 seconds) 2011-05-22T12:49:42 *** boegel has joined #aichallenge 2011-05-22T13:04:32 *** smiley1983 has joined #aichallenge 2011-05-22T13:24:49 *** boegel has quit IRC (Quit: This computer has gone to sleep) 2011-05-22T13:30:30 *** demerzel has joined #aichallenge 2011-05-22T13:39:39 *** smiley1983 has quit IRC (Quit: leaving) 2011-05-22T13:55:59 *** qacek has joined #aichallenge 2011-05-22T14:01:49 *** Nebri has quit IRC () 2011-05-22T14:01:57 *** Eruonen has quit IRC () 2011-05-22T14:22:09 *** boegel has joined #aichallenge 2011-05-22T14:28:42 *** chris___0076 has joined #aichallenge 2011-05-22T14:28:42 *** UncleVasya has joined #aichallenge 2011-05-22T14:29:30 *** KP13 has joined #aichallenge 2011-05-22T14:29:43 *** chris__0076 has quit IRC (Ping timeout: 240 seconds) 2011-05-22T14:31:49 *** Kingpin13 has quit IRC (Ping timeout: 244 seconds) 2011-05-22T14:36:12 *** amstan has joined #aichallenge 2011-05-22T14:36:12 *** ChanServ sets mode: +o amstan 2011-05-22T14:40:40 amstan why are you running the server on your home machine 2011-05-22T14:40:46 i can grab a linux vps for cheap if you want one 2011-05-22T14:41:25 demerzel: i have nothing else 2011-05-22T14:41:31 demerzel: that could help 2011-05-22T14:41:36 if i gave you access to a vps would you use it? 2011-05-22T14:41:37 *** needsch has joined #aichallenge 2011-05-22T14:41:49 demerzel: for beta testing, probably 2011-05-22T14:42:08 is the actual contest run on uni servers or clouded or what? 2011-05-22T14:42:10 i don't remember 2011-05-22T14:42:16 ec2 2011-05-22T14:42:43 ah so you are clouding yea i can grab you a vps it's only like 20 bucks for a pretty decent one 2011-05-22T14:43:02 actually we might have an extra softlayer node at work 2011-05-22T14:43:06 i'll check on that 2011-05-22T14:43:13 what os? 2011-05-22T14:43:20 debian iirc 2011-05-22T14:43:39 it should be ubuntu natty, we haven't tested the framework on debian 2011-05-22T14:43:46 there's different package names, locations and so on 2011-05-22T14:43:57 ah the vps are ubuntu i think so i'll grab that 2011-05-22T14:44:59 damn they're running a special even 2011-05-22T14:45:06 2gig mem / 100gb storage? 2011-05-22T14:45:13 that's fine 2011-05-22T14:48:01 nameserver? 2011-05-22T14:48:06 i think i only own one domain 2011-05-22T14:48:19 or i guess you could access it by IP that's what i did 2011-05-22T14:53:25 *** olexs1 has joined #aichallenge 2011-05-22T14:55:07 *** olexs has quit IRC (Ping timeout: 246 seconds) 2011-05-22T14:58:27 *** delt0r_ has joined #aichallenge 2011-05-22T14:59:21 *** KP13 is now known as Kingpin13 2011-05-22T14:59:41 *** delt0r___ has quit IRC (Ping timeout: 240 seconds) 2011-05-22T15:05:09 *** UncleVasya has quit IRC (Ping timeout: 260 seconds) 2011-05-22T15:05:37 *** chris___0076 has quit IRC (Ping timeout: 246 seconds) 2011-05-22T15:06:57 *** chris___0076 has joined #aichallenge 2011-05-22T15:12:32 *** chris__0076 has joined #aichallenge 2011-05-22T15:14:22 *** chris___0076 has quit IRC (Ping timeout: 246 seconds) 2011-05-22T15:23:16 *** chris__0076 has quit IRC (Read error: Operation timed out) 2011-05-22T15:24:27 *** chris__0076 has joined #aichallenge 2011-05-22T15:26:56 *** Mathnerd314 has joined #aichallenge 2011-05-22T15:45:10 *** olexs1 has quit IRC (Read error: Connection reset by peer) 2011-05-22T15:52:37 *** Accoun has quit IRC () 2011-05-22T15:52:58 *** Naktibalda has quit IRC (Remote host closed the connection) 2011-05-22T16:05:27 *** Accoun has joined #aichallenge 2011-05-22T16:12:49 *** berak_ has quit IRC (Ping timeout: 246 seconds) 2011-05-22T16:13:18 * amstan is setting up the beta host donated by demerzel 2011-05-22T16:13:41 hopefully its not a pos 2011-05-22T16:13:43 lol 2011-05-22T16:17:55 * Frontier is setting up his administration in the citadel donated by our benefactors 2011-05-22T16:19:11 demerzel: it's a little fishy though, it's not a default ubuntu install, there's a bunch of warning poping out 2011-05-22T16:19:42 warning? 2011-05-22T16:20:20 if you cant use it tell me soon so i can get it from my buddyhost 2011-05-22T16:20:28 just chargeback that one 2011-05-22T16:20:33 <3 paypal 2011-05-22T16:22:28 i believe i can 2011-05-22T16:22:39 it'll be less of a hassle to try to fix it, than change hosts 2011-05-22T16:22:54 well you're about 10 minutes into that one lol 2011-05-22T16:22:54 and i think i just fixed it 2011-05-22T16:22:58 that sounds good tho 2011-05-22T16:23:01 http://ubuntuforums.org/showthread.php?p=2090770#post2090770 2011-05-22T16:23:14 demerzel: so you wanted a user then? 2011-05-22T16:23:23 demerzel ok? 2011-05-22T16:23:26 yep 2011-05-22T16:23:34 just reply to my forwarded email with it 2011-05-22T16:23:50 doubt i will use it but good for emergencies 2011-05-22T16:24:30 i will get the dns resolving correctly lost my cpanel login for the host haha 2011-05-22T16:24:37 once i get ticket resolved i will fix it 2011-05-22T16:25:13 what perl are you using? 2011-05-22T16:25:18 i mean what does the perl do for you 2011-05-22T16:25:25 demerzel: ssh demerzel@aichallengebeta.hypertriangle.com 2011-05-22T16:25:35 demerzel: the pass is the root pass that you sent me 2011-05-22T16:25:41 ok 2011-05-22T16:25:55 email me anyway when you get a chance so i have it somewhere other than here 2011-05-22T16:26:06 demerzel: login now, it'll ask you to change the pass 2011-05-22T16:26:15 demerzel: you can put something that you can remember then 2011-05-22T16:26:26 leaving in a min 2011-05-22T16:26:31 *** stride is now known as dominictarr 2011-05-22T16:26:36 *** dominictarr is now known as stride 2011-05-22T16:27:05 demerzel: sent 2011-05-22T16:27:10 ty 2011-05-22T16:30:06 *** boegel has quit IRC (Quit: Leaving) 2011-05-22T16:31:14 <_flag> Is there a way I can find out what's the rate at which food spawns (how much food per unit area per turn)? 2011-05-22T16:34:27 * amstan goes to eat 2011-05-22T16:34:37 _flag: how about having a statistic 2011-05-22T16:34:42 observe around you 2011-05-22T16:41:54 <_flag> I suppose what I mean is if that's something that has been discussed and settled upon. I'd assume it's in the engine somewhere (I'm trying to find it right now) 2011-05-22T16:42:03 *** chris___0076 has joined #aichallenge 2011-05-22T16:43:37 *** chris__0076 has quit IRC (Ping timeout: 246 seconds) 2011-05-22T16:48:48 *** chris___0076 has quit IRC (Quit: Leaving) 2011-05-22T16:50:30 <_flag> It would appear that food spawns at a rate of player_num/map_area/turn 2011-05-22T17:01:05 *** Redgis has quit IRC (Quit: ... mains libres) 2011-05-22T17:01:30 *** Eruonen has joined #aichallenge 2011-05-22T17:05:56 contestbot: later tell mcleopold We have a new test server(donated by demerzel), please contact me for details 2011-05-22T17:05:56 amstan: I think that worked... 2011-05-22T17:12:10 *** choas has quit IRC (Quit: leaving) 2011-05-22T17:31:34 *** sigh has joined #aichallenge 2011-05-22T17:31:48 sigh: i'm working on the credits page 2011-05-22T17:32:02 sigh: i included everyone like this: "amstan (Alexandru Stan)" 2011-05-22T17:32:09 sigh: do you want me to get your full name as well in there? 2011-05-22T17:35:27 amstan: is it ok if I don't have my full name there for now? 2011-05-22T17:35:33 sigh: that's fine 2011-05-22T17:35:40 thanks 2011-05-22T17:35:57 so far it looks like this: http://home.hypertriangle.com/~alex/aichallenge/website/credits.php 2011-05-22T17:36:05 oppinions, concerns? 2011-05-22T17:38:27 aichallenge: Alexandru Stan epsilon * r7562419 / (4 files in 2 dirs): changed the footer to include links, removed people from the credits - http://bit.ly/mst2dZ 2011-05-22T17:38:27 aichallenge: Alexandru Stan epsilon * r985a59e / website/credits.php : redesigned the credits page - http://bit.ly/kWWPeb 2011-05-22T17:38:28 aichallenge: Alexandru Stan epsilon * r487fd58 / (4 files in 2 dirs): Merge branch 'credits' into epsilon - http://bit.ly/kRnVkj 2011-05-22T17:39:04 (your not asking me, and its a negative opinion, but i dont think that green theme is nice) 2011-05-22T17:39:26 mcstar: someone is working on a new theme 2011-05-22T17:39:30 we'll see what he's got 2011-05-22T17:39:55 mcstar: would you prefer that we don't switch teams, stay with the old one? 2011-05-22T17:40:04 themes* 2011-05-22T17:40:36 actually i liked that 2011-05-22T17:40:51 no colors, except a nice image with a logo in the header or something 2011-05-22T17:41:47 thaT look like professional, and this green one is sort of cheap-looking 2011-05-22T17:41:54 if you know what i mean 2011-05-22T17:42:21 but the font is nice on the new page 2011-05-22T17:42:27 is it the new ubuntu font? 2011-05-22T17:42:53 yes 2011-05-22T17:51:34 well.. shit: There is insufficient memory for the Java Runtime Environment to continue. 2011-05-22T17:51:44 how does that work? i have 2GB, 100MB is used 2011-05-22T17:58:54 *** _0x47 <_0x47!~slash@p57B3E77A.dip.t-dialin.net> has quit IRC (Quit: Leaving.) 2011-05-22T18:03:45 demerzel: ping 2011-05-22T18:03:50 ? 2011-05-22T18:04:09 demerzel: i'm having some issues running java, i think it's because that burst ram thing 2011-05-22T18:04:19 is there a way i can access this: https://secure.sshvm.com/clientarea.php 2011-05-22T18:04:25 for the support 2011-05-22T18:04:57 yes pm 2011-05-22T18:16:04 *** ltriant has joined #aichallenge 2011-05-22T18:19:17 @later tell McLeopold: map files can now be read by the visualizer like replay files. Only the toolbar buttons will be shown (excluding the speed buttons) 2011-05-22T18:19:17 Frontier: Ready to serve. 2011-05-22T18:20:18 Frontier: is there a way to make the visualizer on the frontpage link to a visualizer page? 2011-05-22T18:20:23 amstan: I don't know how much you know about Java, but the default memory limit was at 256 MB for a long time. You can set it with -Xms or something like that 2011-05-22T18:20:40 Frontier: how do you make ant do that? 2011-05-22T18:20:41 amstan: you want a link to the 'original' replay? 2011-05-22T18:21:01 is the build process the prooblem? 2011-05-22T18:21:06 Frontier: yes 2011-05-22T18:21:09 probably more though 2011-05-22T18:21:19 i think that java doesn't like the ubuntu vm 2011-05-22T18:21:20 amstan: If you are executing the task in Ant you can add the tag to it. 2011-05-22T18:21:35 since it has 1GB of actual ram, but 2GB burst(whatever that means) 2011-05-22T18:21:36 that is strange, I never hat to fiddle with the default setting for anything. 2011-05-22T18:21:37 http://pastebin.com/fm3xK8DY 2011-05-22T18:21:43 except for Java servers 2011-05-22T18:22:04 idk wtf 'burst' ram is in thsi case tho 2011-05-22T18:22:16 hopefully the first gig is real ram lol 2011-05-22T18:22:17 maybe disk swap :p 2011-05-22T18:22:59 Is this ubuntu using icedtea6? 2011-05-22T18:23:02 try 512 or 796 just to be sure you're under the 1st meg 2011-05-22T18:23:07 err gig 2011-05-22T18:23:19 java version "1.6.0_22" 2011-05-22T18:23:20 OpenJDK Runtime Environment (IcedTea6 1.10.1) (6b22-1.10.1-0ubuntu1) 2011-05-22T18:23:21 OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode) 2011-05-22T18:23:28 openjdk hmm 2011-05-22T18:23:43 so the options may be different ^^ 2011-05-22T18:23:52 never used open always used sun 2011-05-22T18:24:00 even on the centos vps i had 2011-05-22T18:24:23 should be the same tho as far as ant is concerned 2011-05-22T18:24:24 well, i'm thinking we might have this issue on ec2 as well 2011-05-22T18:25:09 have you tried adding that tag? 2011-05-22T18:25:16 They probably support most of the Sun command line options 2011-05-22T18:25:20 demerzel: where? 2011-05-22T18:25:34 yea ec2 probably won't have the same issues as some homebrew reseller 2011-05-22T18:25:50 considering they've probably had the issue come up a billion times 2011-05-22T18:26:02 i assume to the actual script 2011-05-22T18:26:07 unless there's an xml config file somewhere 2011-05-22T18:26:09 for ant that is 2011-05-22T18:26:29 demerzel: well, we have this: https://github.com/aichallenge/aichallenge/blob/epsilon/ants/visualizer/build.xml 2011-05-22T18:26:43 there's also something called ANT_OPTS environment variable 2011-05-22T18:26:57 i don't know that much about ant since i don't use it but afaik it's just an xml build script 2011-05-22T18:27:17 *** sigh has quit IRC (Remote host closed the connection) 2011-05-22T18:27:26 "The size of the initial heap is set dynamically, depending on your machine's capacity." - since we all have more than 1 gig i assume that the limit is set too low for this test server 2011-05-22T18:28:11 i /think/ you would put the inside the javac tags 2011-05-22T18:28:35 demerzel: after line 22? 2011-05-22T18:28:51 also, isn't it -Xmx? 2011-05-22T18:29:09 maybe a typo 2011-05-22T18:29:11 yankedt hat 2011-05-22T18:29:14 actually wait look at the java tag 2011-05-22T18:29:15 2011-05-22T18:29:21 why not just try changing that 2011-05-22T18:29:24 is it dying on javac or java 2011-05-22T18:29:41 looks like arg is a no nonsense addition of whatever the hell 2011-05-22T18:29:41 /home/contest/aichallenge/ants/visualizer/build.xml:36: java.io.IOException: Cannot run program "/usr/lib/jvm/java-6-openjdk/jre/bin/java" 2011-05-22T18:29:43 so that's a good fallback 2011-05-22T18:30:42 idk honestly i'd just be making an .sh if i were you but thats only because i would rather not dick with ant xml and just write the commands myself 2011-05-22T18:31:07 or at least just make the first javac statement and try to run it with the Xmx tag and see if it works 2011-05-22T18:31:15 if it does then you know what to do at least 2011-05-22T18:31:33 and its just a matter of translating it to ant 2011-05-22T18:32:02 aichallenge: Alexandru Stan fix-java-on-vm * rf0f8d51 / ants/visualizer/build.xml : added upper limit for ram - http://bit.ly/iyt19Y 2011-05-22T18:32:06 like that? 2011-05-22T18:32:21 *** antimatroid has quit IRC (Ping timeout: 260 seconds) 2011-05-22T18:33:06 does that work? 2011-05-22T18:33:18 /home/contest/aichallenge/ants/visualizer/build.xml:22: javac doesn't support the nested "jvmarg" element. 2011-05-22T18:33:25 drop the jvmarg part 2011-05-22T18:33:27 just arg 2011-05-22T18:33:44 since you know arg is just a 'put this on the command line' 2011-05-22T18:33:55 nope 2011-05-22T18:34:00 same stuff 2011-05-22T18:34:08 *** mcstar has quit IRC (Quit: WeeChat 0.3.5) 2011-05-22T18:34:21 well sheeit 2011-05-22T18:34:26 ANT_OPTS="-Xmx32m" ant deploy <- works for me 2011-05-22T18:34:34 *** needsch has quit IRC (Quit: Leaving.) 2011-05-22T18:34:40 ah so the ANT_OPTS is a good lead then cool 2011-05-22T18:34:48 Frontier: nope 2011-05-22T18:35:13 try 64m or 700m 2011-05-22T18:35:41 but I don't get why it would work with 32m in the Sun JVM and not with the default in icedtea 2011-05-22T18:35:57 *** mcstar has joined #aichallenge 2011-05-22T18:36:01 i mean how low can that default be on a 1gb machine?! 2011-05-22T18:36:16 i don't think it's actually out of memory 2011-05-22T18:36:27 I don't think either, but what is it then? 2011-05-22T18:36:27 i think it's a false error or something caused by that burst ram 2011-05-22T18:36:38 it tries to use the whole 2gb but it can't 2011-05-22T18:36:51 ahhh 2011-05-22T18:36:56 or maybe I just set the limit for ant with ANT_OPTS, but not the sub tasks... 2011-05-22T18:36:58 ant runs javac in process unlike java 2011-05-22T18:37:06 ANT_OPTS should be doing it 2011-05-22T18:37:07 but 2011-05-22T18:37:10 If, however, you specify the attribute fork="true" on the tag you will be able to specify -J-Xms and -J-Xmx. 2011-05-22T18:37:29 forces it to actually launch javac separately instead of inproc with ant 2011-05-22T18:37:45 demerzel: you can ssh in and try it 2011-05-22T18:37:47 Which slows down the compile in turn :p, but yeah 2011-05-22T18:37:55 command is this: contest@aichallengebeta:~/aichallenge/ants/visualizer$ ant deploy -Djava.plugin=/usr/share/icedtea-web/plugin.jar -Ddeploy.path=/home/contest/aichallenge/website 2011-05-22T18:38:02 sudo su contest to switch user 2011-05-22T18:38:06 Frontier: wanna try? 2011-05-22T18:38:08 pass :P 2011-05-22T18:38:11 http://stackoverflow.com/questions/4134803/ant-passing-compilerarg-into-javac 2011-05-22T18:38:40 i don't really use linux or ant so debugging problems with those 2 is far outside my specialty 2011-05-22T18:38:50 Frontier: ? 2011-05-22T18:39:06 yeah sure, I was wondering what my password was 2011-05-22T18:39:29 tbh this should work -- set ANT_OPTS=-Xms128m -Xmx512m 2011-05-22T18:39:33 but idk 2011-05-22T18:39:37 Frontier: ssh frontrier@aichallengebeta.hypertriangle.com 2011-05-22T18:39:39 looks, like I will need a coffee, it is 00:40 here :p 2011-05-22T18:39:41 Frontier: hold on a sec 2011-05-22T18:39:47 frontrier? 2011-05-22T18:39:48 lol 2011-05-22T18:42:43 Frontier: sudo su contest 2011-05-22T18:44:23 ok, so it is the compile-js part failing 2011-05-22T18:44:35 yes, as shown in the pastebin 2011-05-22T18:45:23 *** asdf_ has joined #aichallenge 2011-05-22T18:49:58 it is an IOException 2011-05-22T18:52:28 someone solved this by increasing the number of file descriptors with "ulimit -n 2048" 2011-05-22T18:52:51 but mine is set to 1024, too and it doesn't work on the server 2011-05-22T18:53:00 i mean: it doesnt solve the problem 2011-05-22T18:56:27 There are memoryInitialSize (equivalent to -Xms) and memoryMaximumSize (equivalent to -Xmx) options for the javac task so try those instead of using compilerargs e.g. 2011-05-22T18:56:35 only other thing i've read of interest 2011-05-22T18:56:52 2011-05-22T18:57:40 amstan: ticket just got a response 2011-05-22T18:57:43 The required changes is already done. root@aichallengebeta:/# cat /proc/sys/vm/overcommit_memory 0 2011-05-22T18:57:52 doesn't mean a damn thing to me but that's the meat of it 2011-05-22T18:58:17 demerzel: it's supposed to be 1, not 0 2011-05-22T18:58:20 they work for javac only, not for java, and yes i tried them ;) 2011-05-22T18:58:28 says we should have 1732 2011-05-22T18:58:39 dmerzel: Yeah just found that thread, too 2011-05-22T18:58:39 yea but its dying on javac not java isn't it 2011-05-22T18:58:46 since thats the first command 2011-05-22T18:58:59 no it dies on java 2011-05-22T18:59:05 oh that's news to me then 2011-05-22T18:59:11 ok so lets do it 2011-05-22T18:59:53 amstan: feel free to respodn to the ticket you'd have to explain way too much to be worthwhile for me to 2011-05-22T19:00:33 "bash: echo: write error: Operation not permitted" *cries out loud* 2011-05-22T19:00:49 Frontier: yes, i noticed 2011-05-22T19:00:58 on the positive side http://aibeta.net-supremacy.com/ resolves correctly now lol 2011-05-22T19:00:58 I cannot set overcommit_memory, but why? 2011-05-22T19:01:58 Frontier: idk 2011-05-22T19:02:06 demerzel: i changed the hostname though 2011-05-22T19:02:31 well this has nothing to do with what linux has set 2011-05-22T19:02:35 we may try the other way: set the memory max to something low like 128m 2011-05-22T19:02:39 *** Kingpin13 has quit IRC (Ping timeout: 240 seconds) 2011-05-22T19:02:52 i guess if you set another hostname up both will resolve to the same ip 2011-05-22T19:03:08 assuming you set the dns records up for that domain 2011-05-22T19:03:12 yeah that works 2011-05-22T19:03:25 you didn't try setting the max yet? :P 2011-05-22T19:03:30 thought that was the first thing 2011-05-22T19:03:49 Frontier: i tried.. 2011-05-22T19:04:12 i set the max, but i set it to 700m 2011-05-22T19:04:30 he was setting up the javac max i think 2011-05-22T19:04:40 if that was ok and java was breaking taht would explain it 2011-05-22T19:04:53 (ANT_OPTS="-Xmx100m") now with 100m it runs through, but there seem to be file system issues 2011-05-22T19:05:22 try 512? 100 seems low 2011-05-22T19:05:30 or maybe not actually 2011-05-22T19:05:44 idk imma shut up and let people who know what they're doing fix it 2011-05-22T19:06:28 I'll settle with 256 I think, I was just testing. But I wonder why the Java process cannot find a file that it just generated. 2011-05-22T19:06:29 *** computerwiz_222 has joined #aichallenge 2011-05-22T19:07:46 ah because "permission denied". It couldn't create a directory 2011-05-22T19:08:02 wtf ? amstan !?!? :p 2011-05-22T19:08:13 Frontier: what are you doing? 2011-05-22T19:08:56 this is the thing McLeopold told me about. The contest user cannot create a directory inside build/deploy/org/mozilla/javascript. This is really strange I think 2011-05-22T19:09:17 oh.. right, run ant deploy with sudo 2011-05-22T19:10:04 hmm ok, but usually you would compile without root privileges. 2011-05-22T19:11:42 i really dont understand the radius thing 2011-05-22T19:13:01 i am using manhattan + wrap for distance calcs but i am not sure what is going on with radius 2011-05-22T19:13:55 in euclidean distance isn't the square up and to the left the same distance as the one directly to the left and the one directly up? 2011-05-22T19:13:59 maybe my brain isnt working right 2011-05-22T19:14:52 wow Xmx200m is too much 2011-05-22T19:14:55 ah nm ok i got it lol 2011-05-22T19:14:56 is it? 2011-05-22T19:14:57 damn 2011-05-22T19:15:14 well ant/javac themselves would have grabbed a bunch 2011-05-22T19:15:46 128m is too much as well... i guess I'll settle with 100m :p 2011-05-22T19:20:22 i think the java process with 128m hang up. can i just killall java or is there anything else running on java? 2011-05-22T19:21:51 *** FireFly has quit IRC (Quit: swatted to death) 2011-05-22T19:22:50 *** asdf_ has quit IRC (Ping timeout: 252 seconds) 2011-05-22T19:24:09 doubt there's anything running on java 2011-05-22T19:24:16 sicne the server is about 2 hours old 2011-05-22T19:24:55 :) I used "ps -Af" to pin it down. I just always forget the command line options 2011-05-22T19:28:59 amstan: ok it works now if ANT_OPTS=-Xmx100m is set. It also runs without root privileges as long as you never compile and deploy as root since then directories cannot be synched from a process running as the contest user. 2011-05-22T19:32:15 I'll do a run with "deepclean" to see if "it needs root privileges to download rhino" as McLeopold reported. 2011-05-22T19:33:40 jesus christ? is that a 1GB internet connection? 2011-05-22T19:34:14 Frontier: maybe 2011-05-22T19:34:18 yeah, all working without root priv. 2011-05-22T19:35:12 ANT_OPTS="-Xmx100m" ant deploy -Djava.plugin=/usr/share/icedtea-web/plugin.jar -Ddeploy.path=/home/contest/aichallenge/website 2011-05-22T19:36:01 the question is: do you want to put that into a script or is /home/contest/aichallenge/website the final destination folder? 2011-05-22T19:36:57 Frontier: it's already in the setup script 2011-05-22T19:36:59 so.. does it work? 2011-05-22T19:37:49 I'm a bit concerned still that it will work as well on 32-bit and 64-bit and with any possible update that may require more than 100mb ram, but hey... it works for now 2011-05-22T19:38:50 I guess the setup script is running ant as 'root'? 2011-05-22T19:38:50 contest@aichallengebeta:~/aichallenge/ants/visualizer$ ANT_OPTS="-Xmx100m" 2011-05-22T19:38:52 contest@aichallengebeta:~/aichallenge/ants/visualizer$ sudo ant deploy -Djava.plugin=/usr/share/icedtea-web/plugin.jar -Ddeploy.path=/home/contest/aichallenge/website 2011-05-22T19:38:53 doesn't work for me 2011-05-22T19:39:00 same error 2011-05-22T19:39:11 ah no! you do it wrong :p 2011-05-22T19:39:22 it's an env variable, right? 2011-05-22T19:39:35 login as contest then just copy&paste the line I posted 2011-05-22T19:39:45 i am logged in as contest 2011-05-22T19:39:47 but make sure the directories aren't owned by root 2011-05-22T19:39:53 but this must work from server_setup as well 2011-05-22T19:40:20 ok, then tell McLeopold not to complain about having to run it as root 2011-05-22T19:40:41 yeah, don't worry about him 2011-05-22T19:40:48 what i'm concerned about is how to make it run at all 2011-05-22T19:41:39 Frontier: is that an enviromental variable then? 2011-05-22T19:41:41 kk, so set that environment variable in the setup script then run "ant deploy -Djava.plugin=/usr/share/icedtea-web/plugin.jar -Ddeploy.path=/home/contest/aichallenge/website" 2011-05-22T19:42:40 it is "export ANT_OPTS=-Xmx100m" in bash, don't know about python 2011-05-22T19:42:46 so shouldn't this work? contest@aichallengebeta:~/aichallenge/ants/visualizer$ export ANT_OPTS="-Xmx100m" 2011-05-22T19:42:53 yes 2011-05-22T19:42:57 i'm running contest@aichallengebeta:~/aichallenge/ants/visualizer$ sudo ant deploy -Djava.plugin=/usr/share/icedtea-web/plugin.jar -Ddeploy.path=/home/contest/aichallenge/website just after 2011-05-22T19:43:01 and it doesn't work 2011-05-22T19:43:06 same ioexception 2011-05-22T19:43:16 because you exported it as the contest user 2011-05-22T19:43:20 log in as root to do it 2011-05-22T19:43:25 ugh 2011-05-22T19:43:26 ok 2011-05-22T19:45:47 k, installing 2011-05-22T19:45:51 i hope for the last time 2011-05-22T19:46:08 what are you installing? 2011-05-22T19:46:58 everything 2011-05-22T19:47:27 perfect: http://aichallengebeta.hypertriangle.com/ 2011-05-22T19:47:49 Status 404: not found is perfect? 2011-05-22T19:48:17 Frontier: yes 2011-05-22T19:48:21 Frontier: there's no games yet.. so 2011-05-22T19:48:37 wait.. 2011-05-22T19:48:40 the content is not there either 2011-05-22T19:48:42 wtf? 2011-05-22T19:48:42 so... you added a fallback for that case of course? :p 2011-05-22T19:48:59 Planet Wars isn't right, is it? 2011-05-22T19:49:20 where? 2011-05-22T19:49:25 it is 2011-05-22T19:49:30 i just left that entry 2011-05-22T19:49:46 * amstan is reinstalling for the last time again now 2011-05-22T19:49:49 Oh and I agree with that other guy that Sign In and Sign Up should be the same size. 2011-05-22T19:51:48 And with a grin on my face I say: Even Microsoft does that: http://login.live.com/ 2011-05-22T19:52:08 grin? why? 2011-05-22T19:53:02 there we go! 2011-05-22T19:53:03 Because you get a lot of hate when you refer to Microsoft as a setter of standards 2011-05-22T19:53:04 http://aichallengebeta.hypertriangle.com/ 2011-05-22T19:53:05 now it's perfect 2011-05-22T19:53:24 cool, the rankings are there 2011-05-22T19:53:58 Frontier: can you make an account? 2011-05-22T19:55:01 hmm, I'm waiting for my email 2011-05-22T19:55:13 Frontier: you're not supposed to 2011-05-22T19:55:17 click the link at the bottom 2011-05-22T19:55:29 ah, reading helps 2011-05-22T19:55:44 * amstan is installing the worker now 2011-05-22T19:56:57 cool, and we should add tools to the downloads section. for example the 2 visualizer downloads and whatever others are working on. 2011-05-22T19:57:32 Frontier: tell me what to include and i'll gladly do it 2011-05-22T19:57:47 i haven't got a straight answer on that yet 2011-05-22T19:58:07 visualizer.jar and html_visualizer.zip 2011-05-22T19:58:21 what about the engine? 2011-05-22T19:58:43 ask McLeopold or sigh about that. I haven't seen any zip package for that 2011-05-22T19:59:00 i'm pretty sure it's all that's in ants/ 2011-05-22T19:59:17 oh i'm on the credits yay 2011-05-22T19:59:20 you can put my real name lol 2011-05-22T19:59:39 guess you got it working congrats 2011-05-22T19:59:39 demerzel: can you give it to me? 2011-05-22T19:59:49 *** olexs has joined #aichallenge 2011-05-22T19:59:49 isn't it in the email header? 2011-05-22T19:59:54 Jay Pearce anyway 2011-05-22T19:59:57 demerzel: i guess 2011-05-22T20:01:11 aichallenge: Alexandru Stan epsilon * rcfcb9fb / website/credits.php : included full name for demerzel - http://bit.ly/kn7jKa 2011-05-22T20:01:12 aichallenge: Alexandru Stan fix-java-on-vm * r9564344 / website/credits.php : included full name for demerzel - http://bit.ly/jjf7em 2011-05-22T20:01:52 29 commiters, I don't think I know half of them ;) 2011-05-22T20:02:10 Frontier: half of them are probably from the start of pw 2011-05-22T20:02:12 one year ago 2011-05-22T20:02:15 like askhader 2011-05-22T20:02:25 and patrick(phor) 2011-05-22T20:02:30 or amreidle 2011-05-22T20:02:45 oh right, I forgot how old the repo is. 2011-05-22T20:02:46 are the starter packages forks? 2011-05-22T20:02:55 demerzel: what? 2011-05-22T20:02:56 some of them 2011-05-22T20:03:08 oh.. yes, all the starter packages guys also appear there 2011-05-22T20:03:17 can give me commit access to the cs one i'll put the cs starter packagei n there 2011-05-22T20:03:37 demerzel: most ppl forked then sent a pull request 2011-05-22T20:03:39 https://github.com/jpearce 2011-05-22T20:03:56 http://help.github.com/fork-a-repo/ 2011-05-22T20:04:16 ah i can fork a repo i don't have commit to? didn't know that 2011-05-22T20:04:22 only use git for work and small personal shit 2011-05-22T20:04:31 demerzel: yes, that's why forks are so popular 2011-05-22T20:04:49 using git for work... you should be grateful for that 2011-05-22T20:04:50 i was forced into git by my unix-loving macboss 2011-05-22T20:05:01 always used svn 2011-05-22T20:05:10 yes, i was about to say.. better than svn 2011-05-22T20:05:24 don't think so but not worth arguing 2011-05-22T20:05:35 *** antimatroid has joined #aichallenge 2011-05-22T20:05:36 i am familiar with git now at least it was hell when i wasn't 2011-05-22T20:05:52 just wait a while, then try going back to svn 2011-05-22T20:05:59 you'll start swearing at it for various things 2011-05-22T20:06:03 like merges 2011-05-22T20:06:14 keep in mind i am talking from a windows perspective as always haha 2011-05-22T20:06:30 svn is well integrated - though smartgit is decent one you get the hang of it 2011-05-22T20:06:54 TortoiseSVN is a great tool under Windows. I am still waiting for the NetBeans git plugin 2011-05-22T20:07:02 * amstan waits until something crashes in this install 2011-05-22T20:07:14 are the workers working? 2011-05-22T20:07:33 Frontier: i just rembered, the worker will probably fail working 2011-05-22T20:07:41 you use netbeans? i'm surprised 2011-05-22T20:07:46 i hated how much it tried to package everything for me, i like intellij better 2011-05-22T20:07:47 on the server that i had before i gave up on the sandbox 2011-05-22T20:08:20 in my os i like things to be automatically handled, in my coding not so much 2011-05-22T20:08:47 there is an extra space in front of "My Profile" 2011-05-22T20:08:49 demerzel: weren't you the one that liked to double click on things? 2011-05-22T20:09:07 re: batch files to run compiled programs? yes 2011-05-22T20:09:09 Frontier: what? 2011-05-22T20:09:47 demerzel: actually I use Eclipse, but NetBeans has better support for php/JavaScript 2011-05-22T20:10:17 amstan: the menu item in the right column after you sign in says " My Profile" 2011-05-22T20:10:23 i really liked kdevelop for the few minutes i had it going 2011-05-22T20:10:46 eclipse is ok but i had a hell of a time making it work with 64-bit windows 7 and 64-bit java and just gave up 2011-05-22T20:10:53 Frontier: on the brigth green? it's fine for me, no extra space 2011-05-22T20:10:54 For C++ I use Code::Blocks and for Delphi... well Turbo Delphi 2006 2011-05-22T20:11:15 i use vs for c/c++ haha 2011-05-22T20:11:22 it actually has a compiler for iso c 2011-05-22T20:11:26 *** akranis has quit IRC (Remote host closed the connection) 2011-05-22T20:11:27 amazingly enough, hidden thoguh it is 2011-05-22T20:11:30 Frontier: you on opera? 2011-05-22T20:11:47 on opera it is fine, it is firefox showing the space 2011-05-22T20:12:22 i see it 2011-05-22T20:13:10 aichallenge: Alexandru Stan epsilon * rc90f3ca / website/menu.php : removed space in front of 'my profile' - http://bit.ly/kXjAZa 2011-05-22T20:13:15 frontier you made the visualizer? nice work 2011-05-22T20:13:37 ugh.. 2011-05-22T20:13:40 freaking workers 2011-05-22T20:13:42 requesting 'small buttons' and 'don't wrap' options lol 2011-05-22T20:13:50 I just uploaded a zip file 2011-05-22T20:13:58 fuse: failed to open /dev/fuse: Permission denied 2011-05-22T20:14:03 wtf does that mean? 2011-05-22T20:14:14 wikipedia.org/File_permissions 2011-05-22T20:14:16 lol 2011-05-22T20:14:20 demerzel: you are welcome, but I had an unwrapped view and trashed it :p 2011-05-22T20:14:25 whyyy 2011-05-22T20:14:27 did you guys upload something? 2011-05-22T20:14:35 I did 2011-05-22T20:14:45 frontier: how about a defined line around 1 instance then 2011-05-22T20:14:49 *** mcstar has quit IRC (Quit: WeeChat 0.3.5) 2011-05-22T20:14:55 i have zero problems tracking wrap horizontally but vertically i do for some reason 2011-05-22T20:15:03 You said you would wait until the workers crash and I thought you need some rest from waiting 2011-05-22T20:15:47 amstan: should i mark that ticket resolved? 2011-05-22T20:15:52 or frontier 2011-05-22T20:15:54 whoever can tell me 2011-05-22T20:15:57 demerzel: So if I framed the 'main instance' of the map that would be ok for you? 2011-05-22T20:15:59 demerzel: i guess 2011-05-22T20:16:06 demerzel: for us, yes, we found a workaround 2011-05-22T20:16:10 demerzel: but it's still broken, lol 2011-05-22T20:16:18 what's broken 2011-05-22T20:16:25 frontier: yea that would be awesome! 2011-05-22T20:16:36 we just made sure java wasn't using above 100mb of ram 2011-05-22T20:16:45 i'll say something to that effect then 2011-05-22T20:16:46 but we should be able to use 2gb 2011-05-22T20:16:52 agreed 2011-05-22T20:17:00 i can write the response i understand that 2011-05-22T20:17:08 amstan: the limit is per process and ant spawns a sub process now and then 2011-05-22T20:17:45 hmm 2011-05-22T20:17:52 have you ran java by itself to see what kind of memory usage you can get 2011-05-22T20:17:55 (but i'm really confused how it would add up to 1.7 GB) 2011-05-22T20:17:57 if not can i request that 2011-05-22T20:18:15 just run java -whatever -Xmx796M 2011-05-22T20:18:17 see if it works 2011-05-22T20:18:32 if it does then it's an ant hogging resources problem 2011-05-22T20:18:43 if it doesn't then we still don' have a full gig we can allocate (whcih is what we should have) 2011-05-22T20:19:27 oh hell i'll do it actually lol 2011-05-22T20:20:10 java -Xmx900m -version works 2011-05-22T20:20:40 ah ok 2011-05-22T20:20:46 nice call didn't even think about -version 2011-05-22T20:21:05 ok i'll resolve it 2011-05-22T20:21:07 ty 2011-05-22T20:21:18 But we get an IOError from the fork() somehow. I don't know if we can simply point at ant here. 2011-05-22T20:21:46 what are you forking 2011-05-22T20:21:51 in ant? 2011-05-22T20:22:15 it could be ant, the vm, the kernel... yes in the build script i fork processes 2011-05-22T20:22:33 well, ant does that if you set fork="yes" on a task. 2011-05-22T20:22:40 yea thats what i meant by 'in ant' 2011-05-22T20:22:49 but you are actually using a command line fork? 2011-05-22T20:22:50 i did that to change into a different working directory 2011-05-22T20:23:11 no I don't use a command line fork. 2011-05-22T20:23:15 ie pid_t fork 2011-05-22T20:23:41 No I would have to write C to do that 2011-05-22T20:24:16 oh duh linux has a fork() command doesn't it 2011-05-22T20:24:19 what about clone() 2011-05-22T20:24:46 whatever, ant is calling some Java method that calls fork() internally at some point 2011-05-22T20:25:12 ahaha ok so the fork is inside java code whic h is inside a java process whcih is forked from ant 2011-05-22T20:25:14 or maybe a modern replacement, but I only know about fork() to spawn sub processes on unix 2011-05-22T20:25:15 simple enough 2011-05-22T20:25:40 https://github.com/aichallenge/aichallenge/issues/118 2011-05-22T20:25:45 :( 2011-05-22T20:25:50 well if you hit a brick wall that you think is a system problem pastebin it and i will ticket 2011-05-22T20:25:58 lol, in other words, I let ant spawn a sub process when it should run a 'java' task 2011-05-22T20:26:50 amstan have you tried just running it as root instead of sudo 2011-05-22T20:26:59 i mean yea its bad practice but worth a shot 2011-05-22T20:27:32 should work the same 2011-05-22T20:27:49 if i understand that error correctly it's a permissions issue with a python script? 2011-05-22T20:28:05 the permission is with fuse 2011-05-22T20:29:04 so /dev/fuse is read/write for root? 2011-05-22T20:29:39 crw-rw---- 1 root fuse 10, 229 2011-05-23 03:55 fuse 2011-05-22T20:29:52 i made sure contest is a fuse member 2011-05-22T20:29:53 no deal 2011-05-22T20:30:19 hmm 2011-05-22T20:30:30 my other comp has it crw-rw-rw- 1 root fuse 10, 229 2011-05-22 20:21 /dev/fuse 2011-05-22T20:31:08 my laptop has that as well 2011-05-22T20:31:35 actually its group is root here 2011-05-22T20:31:50 same issue.. 2011-05-22T20:31:56 damn 2011-05-22T20:32:05 maybe a reboot? lol 2011-05-22T20:32:12 ah shit 2011-05-22T20:32:20 you rebooted it as i was confirming my new password lol 2011-05-22T20:32:32 demerzel: that's fine 2011-05-22T20:32:40 demerzel: it'll prompt you again 2011-05-22T20:34:59 ok, i give up, fuck this 2011-05-22T20:35:22 Oo no ai-contest? 2011-05-22T20:36:19 hmm i can't even add myself to the fuse group lol 2011-05-22T20:36:37 why not? 2011-05-22T20:36:43 i mean it took the cmd 2011-05-22T20:36:47 but when i looked at my groups it wasn't adde 2011-05-22T20:36:47 d 2011-05-22T20:37:33 oh i had to relog 2011-05-22T20:37:34 now i have it 2011-05-22T20:38:10 did you add contest to the fuse group i assume? 2011-05-22T20:38:12 ok.. installing the languages directly on the host 2011-05-22T20:38:15 demerzel: yes 2011-05-22T20:38:25 bizarre 2011-05-22T20:38:29 i'll just do it without a sandbox for now 2011-05-22T20:38:47 temp host hack sounds reasonable 2011-05-22T20:39:00 demerzel: oh yeah, do htop if you want fun stuff 2011-05-22T20:39:32 Frontier: the host doesn't have swap, would that matter for java? 2011-05-22T20:39:37 is that the super ps 2011-05-22T20:39:43 demerzel: pretty much 2011-05-22T20:40:03 im off now didn't wanna be jacking with groups while you were 2011-05-22T20:40:06 amstan: not specifically no 2011-05-22T20:40:10 i can add nothing of value at this point haha 2011-05-22T20:41:00 i don't think 4GB of swap would hurt 2011-05-22T20:41:09 demerzel: There is some tricky hack to add yourself to a group without logging out, but I forgot it :p 2011-05-22T20:41:24 you type bash? 2011-05-22T20:41:26 *** olexs has quit IRC (Quit: Leaving.) 2011-05-22T20:41:46 no, don't tell me that is enough 2011-05-22T20:41:59 bash;logout 2011-05-22T20:42:05 will be seamless then 2011-05-22T20:44:38 gay: swapon: /mnt/swap: swapon failed: Operation not permitted 2011-05-22T20:44:44 demerzel: this host sucks! lol 2011-05-22T20:44:46 I don't think a process knows about swap at all. It is all in the kernel realm where virtual adresses are mapped to RAM or swapped out if unused for a while. I ran Windows and Linux without swap and it works fine. 2011-05-22T20:44:56 lol @ host 2011-05-22T20:45:00 Frontier: i'm thinking maybe java went over the 2GB 2011-05-22T20:45:02 somehow 2011-05-22T20:45:21 amstan: i am not familiar with 'gay: swapon' 2011-05-22T20:45:35 swapon enables swap 2011-05-22T20:45:43 i was trying to add more swap from a file 2011-05-22T20:45:50 yea i know what swapon is lol 2011-05-22T20:45:50 apparently root is not permitted to do that 2011-05-22T20:46:03 thats probably what 'super hyper memory' is lol 2011-05-22T20:46:06 from stackexchange: think you were hit by the limitations of OpenVZ. OpenVZ does not allow what they call "user defined swap": Swap is only available "as a whole" for the whole system, not for individual VPSes, see 2011-05-22T20:46:26 ah 2011-05-22T20:46:30 why do you need a swap anyway 2011-05-22T20:46:38 what the hell are you running that needs all this memory 2011-05-22T20:46:52 demerzel: i was just thinking just in case 2011-05-22T20:47:10 preoptimization 2011-05-22T20:47:24 ugh, now what! another error 2011-05-22T20:47:38 maybe the virtual memory management is a bit buggy in OpenVZ. If they manage swap themselves that is. 2011-05-22T20:47:52 you will run into these problems on any vps vs. your home machine anyway just by design i think unless we got a dedicated host 2011-05-22T20:47:57 dedicated server* 2011-05-22T20:49:25 When I worked on Wewaii, we had a Java server running on virtual server 2011-05-22T20:50:06 It was slow with many users logging in, but we were using a lot of memory there. 2011-05-22T20:50:59 And it worked without flaws. We did not use ant or OpenJDK though. 2011-05-22T20:51:12 And I don't know if OpenVZ was involved 2011-05-22T20:53:24 *** LastScene has quit IRC (Ping timeout: 252 seconds) 2011-05-22T20:54:12 :p I'm just thinking loud. -> I can add nothing of value at this point. 2011-05-22T20:55:38 same! 2011-05-22T20:55:39 lol 2011-05-22T20:59:26 this is nice btw: http://www.moeding.net/archives/20-Optimizing-virtual-memory-in-OpenVZ-I.html 2011-05-22T21:03:26 OpenVZ shares one kernel among all running systems. That's probably why you cannot change kernel parameters. 2011-05-22T21:11:02 It is also said that OpenVZ advertises virtual memory as RAM. 2011-05-22T21:12:30 not surprising lol 2011-05-22T21:17:13 Looking at the output of 'ps -A -ovsz,rsz,command' I see a lot of programs using a lot more virtual memory than resident. java for example: vsz: 1,326,292 / rsz: 223,080 2011-05-22T21:18:36 And since you cannot add swap files in OpenVZ, you better buy a lot of 'RAM' if you want to run a Java server :p 2011-05-22T21:20:05 Now I know what vm.overcommit_memory does! 2011-05-22T21:21:31 If you allocate virtual memory and there is not enough RAM+swap to support it if you really used it later on, Linux errors out. With vm.overcommit_memory you can allocate more virtual memory than the system can pysically support. 2011-05-22T21:21:39 *** Cerealklr has left #aichallenge 2011-05-22T21:25:16 *** Blarg has joined #aichallenge 2011-05-22T21:27:28 Ok, applying what I leant the server can currently guarantee you exactly 1GB of virtual memory. Depending on the load it may be up to 1,65 GB. 2011-05-22T21:28:20 ~17% of virtual memory is currently used 2011-05-22T21:30:49 *** computerwiz_222 has quit IRC (Remote host closed the connection) 2011-05-22T21:39:16 burst memory is memory that doesn't belong to your vps. it is available to programs, but can be reclaimed at any time. if you don't want your programs to crash, don't use it. the biggest process will get killed first 2011-05-22T21:45:59 *** Eruonen has quit IRC () 2011-05-22T21:52:53 that sounds shitty 2011-05-22T21:53:00 makes sense tho 2011-05-22T21:59:51 demerzel: I'm running a simple java app right now that just goes to sleep. It uses 930 MB 'RAM' 2011-05-22T22:00:52 see how long it lasts? 2011-05-22T22:01:44 is that a question? 2011-05-22T22:03:44 25 MB is the lowest it will go if I set the stack to 104 KB and Xmx2m (<- lol) 2011-05-22T22:05:19 wait so it juts naturally uses 930mb to run that? 2011-05-22T22:05:23 i thought you were testing the upper limit 2011-05-22T22:08:06 no it naturally uses 1 GB on my computer as well. Remember it is virtual memory! 2011-05-22T22:08:30 i am completely lost now 2011-05-22T22:08:33 thats ok i'm in 3 places at once 2011-05-22T22:09:46 Ok, a Java process in OpenJDK or Sun JDK uses ~1 GB of virtual memory. Out of this allocated block it really uses only 10-13 MB for a simple program. 2011-05-22T22:18:49 Unfortunatly in OpenVZ it is like using 1 GB of real RAM, so you HAVE to run any Java app with the -Xmx option. 2011-05-22T22:19:11 amstan: ^ happy reading 2011-05-22T22:25:29 I left the Test.java and Test.class in the visualizer folder for reference. 2011-05-22T22:26:56 Frontier: can you submit another submission? i think the D one crashes the worker 2011-05-22T22:27:05 also: {'errors': ['std.date and std.dateparse have been scheduled for deprecation. Please use std.datetime instead.\n']} 2011-05-22T22:27:29 arrr, can't they stop deprecating stuff :p 2011-05-22T22:27:44 it was like what? one month ago? 2011-05-22T22:28:17 I'll try something clean from our repo 2011-05-22T22:28:37 neat - http://news.ycombinator.com/item?id=2573588 2011-05-22T22:29:21 Frontier: done? 2011-05-22T22:29:28 its a python ai game I just found on ycombinator.com 2011-05-22T22:30:15 done 2011-05-22T22:30:43 you have the D submission right? 2011-05-22T22:31:46 no I used cpp this time, but did not rename the zip file 2011-05-22T22:32:32 *ready to be compiled* (the first D submission was mine if that's the question) 2011-05-22T22:32:40 yeah, it's not going to skip the D one 2011-05-22T22:32:43 it has to do it anyway 2011-05-22T22:33:10 aha, that's not good :p 2011-05-22T22:33:26 is there a save in nano? 2011-05-22T22:33:36 Ctrl+O 2011-05-22T22:35:18 and is there a way to display line numbers? 2011-05-22T22:41:30 I have no clue. 2011-05-22T22:43:25 we need more ppl to submit 2011-05-22T22:44:26 <_flag> How come bots aren't being ranked? 2011-05-22T22:44:41 <_flag> They were at the beginning 2011-05-22T22:45:06 different server 2011-05-22T22:45:57 <_flag> Different server with the same accounts/database? I'm talking about hypertriangle.com:13080 2011-05-22T22:46:33 _flag: they're not the same 2011-05-22T22:46:44 _flag: 13080 is going to be superseeded by this one 2011-05-22T22:46:56 <_flag> Wait, so which one are you talking about then? 2011-05-22T22:46:58 superceded heh 2011-05-22T22:47:08 aichallengebeta.hypertriangle.com 2011-05-22T22:47:12 <_flag> ah 2011-05-22T22:47:12 they're setting it up 2011-05-22T22:47:29 can i get more ppl to submit? 2011-05-22T22:47:39 <_flag> I'll submit in a second 2011-05-22T22:48:23 damn i'm only userid 6? 2011-05-22T22:48:34 i'll submit a cs bot haha 2011-05-22T22:48:54 does it even have mono yet 2011-05-22T22:48:58 or is that standard 2011-05-22T22:49:50 oh.. right, i need maps 2011-05-22T22:50:23 <_flag> pfft... maps 2011-05-22T22:50:55 i have no idea how to get them though 2011-05-22T22:51:07 <_flag> download them from github? 2011-05-22T22:51:24 there we go 2011-05-22T22:51:24 <_flag> Run the generator? 2011-05-22T22:52:08 the squared distance thing is screwing me up 2011-05-22T22:52:25 so it's manhattan distance but with the row/col squared before added together? 2011-05-22T22:52:39 yay 2011-05-22T22:52:40 it says euclidian but can that be right idk my brain isn't working right 2011-05-22T22:52:41 it works! 2011-05-22T22:52:58 awesome you had me worried 2011-05-22T22:53:05 wait, wtf? 2011-05-22T22:53:15 nobody is eating 2011-05-22T22:53:46 ? 2011-05-22T22:53:48 http://aichallengebeta.hypertriangle.com/visualizer.php?game=4 2011-05-22T22:53:55 <_flag> They're starter bots, they don't eat 2011-05-22T22:53:59 aichallenge: Alexandru Stan epsilon * r52ab8b9 / worker/worker.py : hopefully might fix #119 - http://bit.ly/jOVkiZ 2011-05-22T22:54:06 _flag: you sure? 2011-05-22T22:54:09 <_flag> Or they do, but they do it poorly 2011-05-22T22:54:21 <_flag> http://aichallengebeta.hypertriangle.com/visualizer.php?game=4 2011-05-22T22:54:25 the starter bots just basically go north lol 2011-05-22T22:54:27 wtf??? lol 2011-05-22T22:54:46 unless they can't in which case they back up 1 and then go north again 2011-05-22T22:54:46 haha 2011-05-22T22:54:48 <_flag> The starter bot is made to try all four directions in a clockwise sequence 2011-05-22T22:55:00 <_flag> Nothing else 2011-05-22T22:55:00 ok.. at least that 2011-05-22T22:55:02 really? the cpp one just went north and got stuck when i uploaded it 2011-05-22T22:55:11 <_flag> Then I think it's broken 2011-05-22T22:55:22 <_flag> Or someone told me the wrong spec 2011-05-22T22:55:40 damn 1000 turns 2011-05-22T22:55:44 <_flag> That's what my C one does anyway 2011-05-22T22:56:04 yea look at purple in that game @ turn 632 2011-05-22T22:56:16 all of the ones hitting that big water llump just run into each other haha 2011-05-22T22:56:35 the first time they can't go e/w/n 2011-05-22T22:56:35 aichallenge: Alexandru Stan epsilon * r08575a8 / worker/worker.py : 2011-05-22T22:56:35 aichallenge: Nope... 2011-05-22T22:56:35 aichallenge: Revert "hopefully might fix #119" 2011-05-22T22:56:36 aichallenge: This reverts commit 52ab8b9e147403db8bf472421542eac0e5691a66. - http://bit.ly/k1xeqH 2011-05-22T22:57:22 aichallenge: Alexandru Stan epsilon * re3b876a / worker/worker.py : this might work - http://bit.ly/k5kOJ4 2011-05-22T22:58:23 sigh.. 2011-05-22T22:58:25 *** delt0r___ has joined #aichallenge 2011-05-22T22:58:48 i am gonna try to do this without pathfinding 2011-05-22T22:58:55 just pure heuristic tile weight 2011-05-22T22:58:59 probably going to be a dismal failure 2011-05-22T22:59:47 <_flag> What's the status on the/a tcp server? 2011-05-22T22:59:58 is dhartmei not doing it again? 2011-05-22T23:00:12 i can prob swing one if not but i assume he is 2011-05-22T23:00:20 *** delt0r_ has quit IRC (Ping timeout: 276 seconds) 2011-05-22T23:00:27 <_flag> Is he aware that this is even going on? 2011-05-22T23:00:34 he was there in the last 2 2011-05-22T23:00:40 but maybe not since it's not exactly well advertised 2011-05-22T23:00:51 <_flag> McLeopold was making a python one, but I'm not sure how that's going 2011-05-22T23:01:04 i'd make a pure c one if i did 2011-05-22T23:01:10 still have my socket code from last year 2011-05-22T23:01:40 maybe when they move to ec2 i'll just take the vps if it isn't a pile of shit 2011-05-22T23:02:14 yeah, i'm not sure, i need mcleopold to take a look at it 2011-05-22T23:02:16 <_flag> I was thinking the old one could be adapted but the problem is that it was written with its own implementation of the game, and ants is a lot more complicated than PlanetWars 2011-05-22T23:02:19 contestbot: seen mcleopold 2011-05-22T23:02:20 amstan: mcleopold was last seen in #aichallenge 21 hours, 39 minutes, and 29 seconds ago: k 2011-05-22T23:04:33 demerzel: apparently playgame.py includes options to write the inputs, outputs and error from bots to files 2011-05-22T23:04:48 demerzel: see *_logs options 2011-05-22T23:05:22 interesting 2011-05-22T23:05:26 is that causing problems? 2011-05-22T23:05:37 demerzel: weren't you asking about that? 2011-05-22T23:05:44 or are you telling me that if i were to implement playgame 2011-05-22T23:05:50 no 2011-05-22T23:05:54 remember when i suggested tee? 2011-05-22T23:06:01 barely because i don't know what tee is 2011-05-22T23:06:52 oh apparently it's the term for >> 2011-05-22T23:06:57 ok now i am with you 2011-05-22T23:08:02 dhartmei's server used a direct TCP connection 2011-05-22T23:08:10 although i guess you could wrap the output in json or something 2011-05-22T23:08:23 or point to it idk i am rambling 2011-05-22T23:08:54 playgame.py is just a wrapper around ants.py 2011-05-22T23:09:04 which adds those options for logging and stuff 2011-05-22T23:09:12 i'm pretty sure it could be adapted for tcp 2011-05-22T23:12:30 would have to be done by somebody else since it would be easier for me to just rewrite in c__ than try to tweak python 2011-05-22T23:12:42 if there's a volunteer i'm all for it lol 2011-05-22T23:37:03 *** Blarg has quit IRC (Quit: Page closed) 2011-05-22T23:41:15 *** ahmedhelal has quit IRC (Read error: No route to host) 2011-05-22T23:56:48 argh i have collisions and i have no idea why gdi