2013-12-10T00:15:48 write a python script 2013-12-10T00:28:02 *** antimatroid has joined #aichallenge 2013-12-10T00:37:57 *** deltreey has joined #aichallenge 2013-12-10T00:38:14 well that's wierd 2013-12-10T00:38:48 if I gzip -9c > "temp.gz" it's fine, but when I do gzip -9c > "$file" it replaces it with a 0 byte file and gzips that... 2013-12-10T00:40:18 find . -name "*.replaygz" | while read -r file; do zcat -d -f "$file" | sed -e 's@http:\\/aichallenge\.org@http:\\/\\/ants.aichallenge.org@g' | gzip -9c > "SOMETHINGHERE"; done 2013-12-10T00:40:22 that's as far as I got 2013-12-10T00:40:25 sorry man 2013-12-10T00:40:57 it unzips and changes all the text, and writes the files individually to whatever that file is, but I can't use $file there so I'm lost 2013-12-10T00:41:11 don't get me wrong, $file is the correct file 2013-12-10T00:41:29 but for some reason the result is an empty file 2013-12-10T00:41:57 well, missed a \\/ copying that over anyway 2013-12-10T00:41:58 that's because the moment you execute that pipe it runs open($file,"w") which truncates the file to prepare to write to it 2013-12-10T00:42:11 you can't do stuff like cat myfile|grep stuff > myfile 2013-12-10T00:42:16 you have to use a temporary one 2013-12-10T00:42:30 of course, lol 2013-12-10T00:42:41 can I try one more time? 2013-12-10T00:42:46 no, lol 2013-12-10T00:42:48 sure.. 2013-12-10T00:42:54 it's just that i wanna go to sleep 2013-12-10T00:43:01 just paste it in here when you're done 2013-12-10T00:43:05 contestbot will log it 2013-12-10T00:43:06 k, night 2013-12-10T00:43:06 amstan: User error -- Replace user. 2013-12-10T00:43:13 cya 2013-12-10T00:43:22 wow 2013-12-10T00:43:24 lol 2013-12-10T00:43:37 that never gets old 2013-12-10T00:48:22 *** amstan has quit IRC (Quit: Konversation terminated!) 2013-12-10T01:19:09 find . -name "*.replaygz" | while read -r file; do zcat -d -f "$file" | sed -e 's@http:\\/\\/aichallenge\.org@http:\\/\\/ants.aichallenge.org@g' | gzip -9c > "${file}.temp"; mv -f "${file}.temp" "$file"; done 2013-12-10T01:19:48 That should unzip your files, replace the url and rezip them, creating a temp file, then replacing it, man i haven't done linux in a while, that was fun 2013-12-10T01:20:49 and of course, the earlier code works for replacing any not gzipped files, but you even had that code yoruself 2013-12-10T01:22:09 and of course, I tested it on a VM, but that also meant I couldn't copy paste, so I apologize if there's a typo in there 2013-12-10T01:22:43 g'night 2013-12-10T01:22:48 *** deltreey has quit IRC (Quit: Page closed) 2013-12-10T02:49:11 *** thestinger has joined #aichallenge 2013-12-10T02:50:09 *** antimatroid has quit IRC (Quit: Leaving.) 2013-12-10T02:50:19 *** antimatroid has joined #aichallenge 2013-12-10T02:51:46 *** antimatroid has quit IRC (Read error: Connection reset by peer) 2013-12-10T02:51:59 *** antimatroid has joined #aichallenge 2013-12-10T02:53:31 *** antimatroid has quit IRC (Client Quit) 2013-12-10T02:53:49 *** antimatroid has joined #aichallenge 2013-12-10T02:58:45 *** antimatroid has quit IRC (Ping timeout: 272 seconds) 2013-12-10T02:59:08 *** antimatroid1 has joined #aichallenge 2013-12-10T03:03:47 *** antimatroid1 has quit IRC (Ping timeout: 260 seconds) 2013-12-10T03:07:23 *** antimatroid has joined #aichallenge 2013-12-10T03:11:26 *** antimatroid has quit IRC (Ping timeout: 240 seconds) 2013-12-10T03:13:16 *** antimatroid has joined #aichallenge 2013-12-10T03:15:17 *** antimatroid1 has joined #aichallenge 2013-12-10T03:15:53 *** antimatroid has quit IRC (Read error: Connection reset by peer) 2013-12-10T03:17:14 *** foRei has quit IRC (Quit: Bye) 2013-12-10T03:19:42 *** antimatroid1 has quit IRC (Client Quit) 2013-12-10T03:19:44 *** antimatroid has joined #aichallenge 2013-12-10T03:28:38 *** antimatroid has quit IRC (Quit: Leaving.) 2013-12-10T03:28:44 *** antimatroid1 has joined #aichallenge 2013-12-10T03:30:07 *** thestinger has quit IRC (Ping timeout: 240 seconds) 2013-12-10T03:33:09 *** antimatroid1 has quit IRC (Ping timeout: 248 seconds) 2013-12-10T03:39:43 *** antimatroid has joined #aichallenge 2013-12-10T03:56:14 *** smiley1983 has joined #aichallenge 2013-12-10T04:09:54 *** sigh has joined #aichallenge 2013-12-10T05:10:16 *** coeus has quit IRC (Ping timeout: 246 seconds) 2013-12-10T05:53:00 *** iglo has joined #aichallenge 2013-12-10T07:27:30 *** sigh has quit IRC (Remote host closed the connection) 2013-12-10T09:08:21 *** cyphase has quit IRC (Ping timeout: 246 seconds) 2013-12-10T09:12:18 *** Accoun has quit IRC () 2013-12-10T09:23:48 *** cyphase has joined #aichallenge 2013-12-10T09:40:16 *** Accoun has joined #aichallenge 2013-12-10T09:41:10 *** smiley1983 has quit IRC (Ping timeout: 246 seconds) 2013-12-10T09:41:17 *** cyphase has quit IRC (Ping timeout: 272 seconds) 2013-12-10T10:23:09 *** dici has joined #aichallenge 2013-12-10T10:41:20 *** smiley1983 has joined #aichallenge 2013-12-10T10:54:33 *** foRei has joined #aichallenge 2013-12-10T10:59:08 *** yoden1 has joined #aichallenge 2013-12-10T10:59:27 *** yoden has quit IRC (Ping timeout: 272 seconds) 2013-12-10T11:05:15 *** iglo has joined #aichallenge 2013-12-10T11:45:03 *** iglo has quit IRC (Remote host closed the connection) 2013-12-10T12:06:16 *** cyphase has joined #aichallenge 2013-12-10T12:07:27 *** smiley1983 has quit IRC (Ping timeout: 260 seconds) 2013-12-10T14:03:01 *** thestinger has joined #aichallenge 2013-12-10T14:23:21 *** Scooper has joined #aichallenge 2013-12-10T15:54:03 *** yoden1 has quit IRC (Read error: Connection reset by peer) 2013-12-10T16:15:59 *** cyphase has quit IRC (Read error: Connection reset by peer) 2013-12-10T16:19:43 *** cyphase has joined #aichallenge 2013-12-10T16:23:32 *** yoden has joined #aichallenge 2013-12-10T16:35:01 *** amstan has joined #aichallenge 2013-12-10T16:35:01 *** ChanServ sets mode: +o amstan 2013-12-10T16:40:54 *** yoden1 has joined #aichallenge 2013-12-10T16:44:07 *** yoden has quit IRC (Ping timeout: 260 seconds) 2013-12-10T16:47:53 *** floWenoL has quit IRC (Quit: Lost terminal) 2013-12-10T16:48:07 *** floWenoL has joined #aichallenge 2013-12-10T17:05:41 *** iglo has joined #aichallenge 2013-12-10T17:16:15 *** iglo has quit IRC (Quit: .) 2013-12-10T17:29:10 *** dici has quit IRC (Read error: Connection reset by peer) 2013-12-10T17:39:51 *** xScooper has joined #aichallenge 2013-12-10T17:43:03 *** Scooper has quit IRC (Ping timeout: 250 seconds) 2013-12-10T18:14:25 *** antimatroid has quit IRC (Quit: Leaving.) 2013-12-10T18:15:35 *** antimatroid has joined #aichallenge 2013-12-10T18:53:36 contestbot: topic add http://tron.aichallenge.org/ is back up! 2013-12-10T18:53:36 *** contestbot changes topic to "AI Challenge (sponsored by Google): http://aichallenge.org || Channel Logs: http://contestbot.aichallenge.org || Code Repo: http://github.com/aichallenge/aichallenge || How to launch new contest: Handle funding, Get servers, Get a sysadmin willing to serve the workers || http://tron.aichallenge.org/ is back up! (amstan)" 2013-12-10T19:05:48 *** smiley1983 has joined #aichallenge 2013-12-10T19:20:23 *** deltreey has joined #aichallenge 2013-12-10T19:20:35 hope everything worked for you last night amstan 2013-12-10T19:46:22 *** MuTaLiSk has joined #aichallenge 2013-12-10T19:48:37 *** foRei has quit IRC (Ping timeout: 248 seconds) 2013-12-10T20:19:26 *** deltreey has quit IRC (Ping timeout: 240 seconds) 2013-12-10T20:26:29 *** deltreey has joined #aichallenge 2013-12-10T20:34:04 *** xScooper has quit IRC (Quit: Leaving) 2013-12-10T20:37:42 *** deltreey has quit IRC (Ping timeout: 250 seconds) 2013-12-10T20:48:30 *** deltreey has joined #aichallenge 2013-12-10T20:49:08 ah, new router installed and flashed to easytomato 2013-12-10T20:49:26 no more crappy wifio 2013-12-10T21:32:21 *** chris__0076 has joined #aichallenge 2013-12-10T21:32:47 deltreey: ew, go get openwrt instead 2013-12-10T21:35:51 *** chris___0076 has quit IRC (Ping timeout: 260 seconds) 2013-12-10T22:08:25 *** MuTaLiSk has quit IRC (Read error: Connection reset by peer) 2013-12-10T22:36:39 *** thestinger has quit IRC (Quit: WeeChat 0.4.2) 2013-12-10T22:50:04 *** Accoun has quit IRC (Ping timeout: 246 seconds) 2013-12-10T22:54:37 *** Accoun has joined #aichallenge 2013-12-10T23:03:20 amstan: I didn't randomly grab tomato. This is from a position of experience. Easytomato is just my latest exploration of th emods