new_chat_messages = [{"u":"guest2669","m":"hello","t":1265366808,"ip":"123.49.32.*","i":4199},{"u":"guest2669","m":"hello","t":1265366810,"ip":"123.49.32.*","i":4200},{"u":"guest2669","m":"hello","t":1265366810,"ip":"123.49.32.*","i":4201},{"u":"guest2794","m":"hello","t":1265367877,"ip":"93.84.162.*","i":4202},{"u":"SlNPacifist","m":"&lt;","t":1265368366,"ip":"94.251.110.*","c":"Yellow","i":4203},{"u":"guest7601","m":"welcome","t":1265370933,"ip":"115.195.80.*","i":4204},{"u":"chandubaba","m":"..","t":1265372527,"ip":"59.178.55.*","c":"Green","i":4205},{"u":"freopen","m":"\u043a\u0442\u043e \u043d\u0438\u0431\u0443\u0434\u044c \u0437\u043d\u0430\u0435\u0442, \u043c\u043e\u0436\u0435\u0442 \u043b\u0438 \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u044b \u043f\u0438\u0442\u0435\u0440 \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0431\u0435\u0437 \u0441\u0435\u0440\u0435\u0431\u0440\u0430?","t":1265376286,"ip":"92.101.185.*","c":"Blue","i":4206},{"u":"qwerty","m":"freopen&gt; \u0434\u0430 \u043c\u043e\u0436\u0435\u0442","t":1265376759,"ip":"83.149.3.*","i":4207},{"u":"guest6274","m":"\u0442\u0430\u043a \u043a\u0442\u043e \u043c\u043d\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442. \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043d\u0430 snarknews \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e \u043c\u0435\u0434\u0430\u043b\u044f\u043c. \u0427\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435?","t":1265377723,"ip":"80.76.176.*","i":4208},{"u":"ortschun","m":"is it gonna be updated according to official results?","t":1265377919,"ip":"130.238.18.*","c":"Yellow","i":4209},{"u":"zibada","m":"no","t":1265378243,"ip":"93.185.190.*","c":"Red","i":4210},{"u":"zibada","m":"only if they post complete final scoreboard :)","t":1265378272,"ip":"93.185.190.*","c":"Red","i":4211},{"u":"guest9001","m":"\u0431\u043b\u0438\u043d","t":1265378764,"ip":"218.8.93.*","i":4212},{"u":"guest9001","m":"\u0435\u0449\u0435 \u0431\u044b \u043c\u0438\u043d\u0443\u0442\u0430, \u0438 \u043c\u044b \u0431\u044b \u0432\u044b\u0438\u0433\u0440\u0430\u043b\u0438 :(","t":1265378773,"ip":"218.8.93.*","i":4213},{"u":"ilyaraz","m":"\u0447\u0442\u043e \u0437\u0430 \u0436\u0438\u0437\u043d\u044c... :)","t":1265378792,"ip":"218.8.93.*","c":"Red","i":4214},{"u":"ashmelev","m":"\u0436\u0438\u0437\u043d\u044c - \u043e\u0442\u0441\u0442\u043e\u0439! :)","t":1265378868,"ip":"81.18.128.*","c":"Red","i":4215},{"u":"qwerty","m":"\u043d\u0443\u043d\u0435 \u043f\u0435\u0440\u0435\u0431\u0430\u0440\u0449\u0438\u0432\u0430\u0439\u0442\u0435 \u0436\u0435)))","t":1265383383,"ip":"83.149.3.*","i":4216},{"u":"guest7452","m":"\u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0449\u0438\u043b\u0438)","t":1265388459,"ip":"78.140.13.*","i":4217},{"u":"guest2782","m":"congratulations to SJTU! Then I'm gonna sleep.","t":1265388467,"ip":"123.163.41.*","i":4218},{"u":"guest7452","m":"\u0438\u0434\u0438 \u0441\u043f\u0438","t":1265388514,"ip":"78.140.13.*","i":4219},{"u":"guest7452","m":"\u0447\u0435\u043c\u043f\u0438\u043e\u043d\u0430 \u043d\u0435\u0442","t":1265388531,"ip":"78.140.13.*","i":4220},{"u":"guest7452","m":"\u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e\u0431 \u043e\u0442\u0440\u044b\u0432 \u0431\u044b\u043b \u0432 \u0434\u0432\u0435 \u0437\u0430\u0434\u0430\u0447\u0438))","t":1265388548,"ip":"78.140.13.*","i":4221},{"u":"manutd","m":"@zibada can you share source code of this site ? it's great !","t":1265390266,"ip":"210.245.12.*","i":4222},{"u":"zibada","m":"you may view client-side code using 'view source' feature in your browser =)","t":1265390338,"ip":"93.185.190.*","c":"Red","i":4223},{"u":"zibada","m":"server-side is pretty simple, just cached heavily using special webserver modules to handle all the load","t":1265390394,"ip":"93.185.190.*","c":"Red","i":4224},{"u":"guest9207","m":"Hey zibada, really cool script, thx!","t":1265395136,"ip":"41.212.134.*","i":4225},{"u":"zibada","m":"well guys","t":1265400147,"ip":"93.185.190.*","c":"Red","i":4226},{"u":"zibada","m":"i'm shutting down chat posting and updates in 5 minutes","t":1265400168,"ip":"93.185.190.*","c":"Red","i":4227},{"u":"zibada","m":"hope you all had a good time watching, see you in 2011!","t":1265400200,"ip":"93.185.190.*","c":"Red","i":4228}]
bad_ips = ["137.132.3","199.71.215","199.71.215","61.135.255","116.31.163","91.207.42","128.237.237","62.122.89","122.52.145","121.96.76","178.66.46","178.66.50","92.47.251","89.110.51"]