[00:00:44] arsemyonov is now away
[00:01:09] arsemyonov is now online
[00:01:48] Typhon is now away
[00:04:35] sakal is now online
[00:10:03] fbvaal is now online
[00:17:15] alexey-grom is now away
[00:17:33] fbvaal is now online
[00:17:45] fbvaal is now offline
[00:37:16] alexey-grom is now xa
[00:47:02] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[00:47:27] arsemyonov is now away
[00:47:34] Сволота is now online
[00:47:55] MAVr is now offline
[00:50:28] evrial is now online
[00:55:03] arsemyonov is now online
[01:09:34] livevil is now away
[01:17:19] gigimon is now online
[01:19:34] livevil is now away
[01:26:38] fbvaal is now online
[01:27:08] fbvaal is now offline
[01:30:33] Joes is now offline
[01:32:27] py_two is now offline
[01:35:12] Joes is now Yep, I'm here.
[01:37:39] fbvaal is now online
[01:37:59] arsemyonov is now away
[01:38:02] fbvaal is now offline
[01:38:25] arsemyonov is now online
[01:42:35] Сволота is now away
[01:47:35] Сволота is now online
[01:49:07] arsemyonov is now away
[01:51:02] fbvaal is now online
[01:52:29] arsemyonov is now online
[01:52:37] Сволота is now away
[01:57:37] Сволота is now online
[02:02:39] Сволота is now away
[02:07:39] Сволота is now online
[02:11:51] tranq is now away
[02:11:51] tranq is now offline
[02:14:41] fbvaal is now offline
[02:15:08] fbvaal is now online
[02:16:35] fbvaal is now offline
[02:16:49] fbvaal is now online
[02:17:11] tranq is now away
[02:17:31] fbvaal is now online
[02:18:53] tranq is now online
[02:19:02] fbvaal is now offline
[02:19:24] xa4a is now away
[02:19:28] xa4a is now online
[02:20:14] xa4a: webninja: а чо?
[02:21:31] arsemyonov is now offline
[02:23:25] fbvaal is now online
[02:24:48] fbvaal is now offline
[02:36:45] fbvaal is now online
[02:36:57] Сволота is now away
[02:37:40] fbvaal is now offline
[02:40:45] evrial is now dnd
[02:41:59] Сволота is now online
[02:43:53] evrial is now online
[02:48:33] Сволота is now offline
[02:53:42] gigimon is now offline
[03:00:26] ds.tihonov is now offline
[03:00:28] evrial is now offline
[03:05:55] xa4a is now online
[03:10:55] xa4a is now away
[03:41:01] alexey-grom is now xa
[03:41:01] bugi is now xa
[03:41:01] emese is now away
[03:41:01] blw0rm is now xa
[03:41:01] sakal is now online
[03:41:01] Joes is now Yep, I'm here.
[03:41:01] tranq is now online
[03:41:01] levsha is now xa
[03:41:01] livevil is now away
[03:41:01] pc_ is now xa
[03:41:01] Typhon is now away
[03:41:01] Tony is now online
[03:41:01] plkjm is now xa
[03:41:01] xa4a is now away
[03:41:01] Спящий is now away
[03:41:01] magic_pony is now online
[03:41:01] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[04:04:31] tranq is now away
[04:04:31] tranq is now away
[04:34:43] alexey-grom is now xa
[04:34:43] bugi is now xa
[04:34:43] emese is now away
[04:34:43] sakal is now online
[04:34:43] Joes is now Yep, I'm here.
[04:34:43] blw0rm is now xa
[04:34:43] tranq is now away
[04:34:43] levsha is now xa
[04:34:43] livevil is now away
[04:34:43] pc_ is now xa
[04:34:43] Typhon is now away
[04:34:43] Tony is now online
[04:34:43] Спящий is now away
[04:34:43] xa4a is now away
[04:34:43] magic_pony is now online
[04:34:43] plkjm is now xa
[04:34:43] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[05:03:25] Tony is now away
[05:08:10] tranq is now away
[05:08:10] tranq is now online
[05:23:10] tranq is now away
[05:23:10] tranq is now away
[05:28:25] Tony is now xa
[05:31:31] Tony is now online
[05:32:17] Typhon is now away
[05:32:21] Typhon is now online
[06:02:26] alexey-grom is now xa
[06:02:26] emese is now away
[06:02:26] sakal is now online
[06:02:26] blw0rm is now xa
[06:02:26] bugi is now xa
[06:02:26] Joes is now Yep, I'm here.
[06:02:26] tranq is now away
[06:02:27] levsha is now xa
[06:02:27] livevil is now away
[06:02:27] Typhon is now online
[06:02:27] pc_ is now xa
[06:02:27] Tony is now online
[06:02:27] plkjm is now xa
[06:02:27] xa4a is now away
[06:02:27] Спящий is now away
[06:02:27] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[06:02:27] magic_pony is now online
[06:16:51] Tony is now away
[06:41:51] Tony is now xa
[06:45:40] emese is now away
[06:45:40] emese is now online
[06:52:16] Typhon is now online
[06:52:17] Typhon is now away
[07:14:58] xa4a is now away
[07:45:00] alexey-grom is now xa
[07:45:00] bugi is now xa
[07:45:00] sakal is now online
[07:45:00] emese is now online
[07:45:00] blw0rm is now xa
[07:45:00] Joes is now Yep, I'm here.
[07:45:00] tranq is now away
[07:45:00] levsha is now xa
[07:45:00] livevil is now away
[07:45:00] pc_ is now xa
[07:45:00] Typhon is now away
[07:45:00] Tony is now xa
[07:45:00] plkjm is now xa
[07:45:00] xa4a is now away
[07:45:00] magic_pony is now online
[07:45:00] Спящий is now away
[07:45:00] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[08:05:08] livevil is now away
[08:08:52] livevil is now away
[08:30:07] emese is now away
[08:30:07] emese is now away
[08:41:24] Typhon is now away
[08:45:41] emese is now away
[08:45:41] emese is now online
[09:15:45] alexey-grom is now xa
[09:15:45] bugi is now xa
[09:15:45] emese is now online
[09:15:45] sakal is now online
[09:15:45] blw0rm is now xa
[09:15:45] Joes is now Yep, I'm here.
[09:15:45] tranq is now away
[09:15:45] levsha is now xa
[09:15:45] livevil is now away
[09:15:45] pc_ is now xa
[09:15:45] Typhon is now away
[09:15:45] Tony is now xa
[09:15:45] plkjm is now xa
[09:15:45] xa4a is now away
[09:15:45] Спящий is now away
[09:15:45] magic_pony is now online
[09:15:45] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[09:36:45] огыешсук is now online
[09:38:58] livevil is now away
[09:39:08] livevil is now online
[09:39:44] огыешсук is now away
[09:41:57] огыешсук is now online
[09:49:31] livevil is now away
[09:54:31] livevil is now away
[10:04:02] mrDoctorWho is now online
[10:17:01] tranq is now online
[10:26:43] plkjm is now offline
[10:31:43] mrDoctorWho is now away
[10:37:18] mrDoctorWho is now online
[10:51:16] огыешсук is now away
[10:52:43] огыешсук is now online
[10:54:45] Сволота is now online
[10:56:07] plkjm is now xa
[10:58:46] fbvaal is now online
[11:01:02] fbvaal is now offline
[11:01:14] fbvaal is now online
[11:01:41] fbvaal is now offline
[11:01:49] plkjm is now offline
[11:01:54] fbvaal is now online
[11:14:02] plkjm is now xa
[11:14:54] arsemyonov is now online
[11:17:18] Tony is now online
[11:23:14] ds.tihonov is now дома! :)
[11:34:29] xa4a is now away
[11:34:31] xa4a is now online
[11:45:39] tranq is now away
[11:45:39] tranq is now away
[11:47:52] Typhon is now away
[11:47:58] Typhon is now online
[11:48:04] Tony is now away
[11:50:58] xa4a is now online
[11:55:59] xa4a is now away
[11:58:02] Сволота is now away
[12:00:00] alexey-grom is now online
[12:05:04] xa4a is now away
[12:07:32] mrDoctorWho is now offline
[12:07:44] Typhon is now online
[12:07:45] Typhon is now away
[12:08:02] Сволота is now xa
[12:08:27] tourniquet is now online
[12:13:04] Tony is now xa
[12:13:26] arsemyonov is now away
[12:22:04] arsemyonov is now online
[12:27:07] livevil is now away
[12:32:03] emese is now away
[12:32:03] emese is now away
[12:35:30] Сволота is now offline
[12:40:32] emese is now away
[12:40:32] emese is now online
[12:43:30] arsemyonov is now away
[12:48:48] огыешсук is now away
[12:49:09] огыешсук is now online
[12:53:30] arsemyonov is now xa
[12:53:53] xa4a is now away
[12:53:58] xa4a is now online
[13:02:38] arsemyonov is now online
[13:09:36] Сволота is now online
[13:13:48] livevil is now away
[13:14:09] livevil is now online
[13:21:40] огыешсук is now offline
[13:21:43] огыешсук is now online
[13:29:12] gigimon is now online
[13:29:14] livevil is now away
[13:31:50] Сволота is now offline
[13:34:14] livevil is now away
[13:34:17] ink08 is now online
[13:34:21] livevil is now away
[13:34:24] livevil is now online
[13:34:25] pytwo is now online
[13:37:08] alexey-grom is now away
[13:38:38] some_user is now одиноко пуле в темноте, ищет пуля друга
[13:41:18] alexey-grom is now online
[13:42:07] some_user: а отличия в httplib python-a 2.6 и 2.7 оч сильные? или их воще нет?
[13:43:27] emese is now away
[13:43:28] emese is now away
[13:43:37] emese is now away
[13:43:38] emese is now online
[13:43:56] огыешсук: считай нет
[13:45:10] some_user: нашол код http://stackoverflow.com/questions/8479736/using-python-urllib-how-to-avoid-non-html-content по получению инфы о файле (headers content-type ) без его полной закачки, на компе работает( питон 2.7) на ВДС нед ( линупс питон 2.6.6)
[13:46:13] some_user: line 68, in open_http
h.endheaders(data)
TypeError: endheaders() takes exactly 1 argument (2 given)
[13:49:56] gigimon is now online
[13:51:36] ink08 is now away
[13:51:38] ink08 is now away
[13:52:43] some_user: видима сначала нада врубица что эт за опенер FancyURLopener, китрый какойта наверное
[13:55:39] gigimon is now online
[13:56:20] xa4a is now online
[13:58:53] pytwo is now offline
[14:00:16] emese is now away
[14:00:17] emese is now away
[14:01:20] xa4a is now away
[14:04:10] alexey-grom is now offline
[14:04:52] alexey-grom is now online
[14:06:48] arsemyonov is now away
[14:08:53] огыешсук is now away
[14:10:01] some_user: решение методом тыка оказалось банальным, h.endheaders(data) на h.endheaders() и все воркает
[14:10:10] xa4a is now away
[14:10:12] xa4a is now online
[14:11:21] some_user is now offline
[14:11:34] arsemyonov is now online
[14:12:05] pytwo is now online
[14:12:33] огыешсук is now online
[14:17:45] tranq is now online
[14:18:12] arsemyonov is now away
[14:19:15] arsemyonov is now offline
[14:19:40] Tony is now online
[14:22:21] огыешсук is now offline
[14:22:34] огыешсук is now online
[14:23:55] ink08 is now away
[14:23:56] ink08 is now online
[14:23:59] xa4a is now online
[14:24:17] tourniquet is now away
[14:24:48] livevil is now away
[14:24:58] livevil is now online
[14:25:00] огыешсук is now offline
[14:25:22] emese is now away
[14:25:23] emese is now online
[14:25:25] огыешсук is now online
[14:28:59] xa4a is now away
[14:29:17] tourniquet is now online
[14:29:57] alexey-grom is now away
[14:31:48] xa4a is now away
[14:31:51] xa4a is now online
[14:33:40] огыешсук is now away
[14:34:18] alexey-grom is now online
[14:34:39] tourniquet is now away
[14:35:48] огыешсук is now online
[14:37:01] tourniquet is now online
[14:42:09] xa4a is now online
[14:42:13] tourniquet is now away
[14:42:33] tourniquet is now online
[14:44:27] gigimon is now offline
[14:47:08] xa4a is now away
[14:47:34] tranq is now away
[14:47:34] tranq is now away
[14:48:15] livevil is now away
[14:48:16] livevil is now online
[14:48:39] tourniquet is now away
[14:48:50] webninja is now dnd
[14:49:22] webninja: xa4a что скажешь по распределенным ФС?
[14:49:43] Typhon is now away
[14:49:45] webninja: короче не знаю, тут задача встала хранить кучи статики да так, чтобы было проще масштабировать.
[14:49:48] Typhon is now online
[14:50:01] webninja: в духе, место кончилось, еще сервер взял и все заработало
[14:50:21] tourniquet is now online
[14:55:37] xa4a is now away
[14:55:48] Спящий: Купить CDN на амазоне?
[14:56:11] webninja is now dnd
[15:02:51] webninja is now dnd
[15:04:09] ink08 is now away
[15:04:11] ink08 is now away
[15:05:17] evrial is now online
[15:07:21] tourniquet is now away
[15:09:54] огыешсук is now away
[15:10:29] xa4a is now away
[15:11:45] огыешсук is now online
[15:12:21] webninja is now dnd
[15:13:20] webninja is now dnd
[15:13:34] ink08 is now away
[15:13:35] ink08 is now online
[15:16:53] evrial is now away
[15:17:21] tourniquet is now xa
[15:17:57] evrial is now online
[15:18:36] ink08 is now away
[15:18:38] ink08 is now away
[15:19:51] огыешсук is now away
[15:20:17] emese is now away
[15:20:18] emese is now away
[15:20:31] tourniquet is now online
[15:22:03] огыешсук is now online
[15:22:57] ink08 is now away
[15:22:58] ink08 is now online
[15:23:03] pytwo is now offline
[15:24:01] xa4a is now away
[15:24:04] xa4a is now online
[15:24:24] xa4a: webninja: купить cdn, да
[15:24:43] webninja is now dnd
[15:25:20] emese is now away
[15:25:21] emese is now online
[15:26:25] webninja is now dnd
[15:27:20] xa4a: ну и э..
[15:27:28] xa4a: это ж просто написать самому?
[15:29:54] xa4a: см. шардинг
[15:30:09] xa4a: !g static content sharding django
[15:30:20] xa4a: !g web static content sharding
[15:31:39] emese is now away
[15:31:40] emese is now away
[15:31:42] огыешсук is now away
[15:32:52] webninja is now dnd
[15:32:57] xa4a: amazon clodfront?
[15:34:27] огыешсук is now online
[15:35:17] tourniquet is now away
[15:36:21] evrial is now away
[15:36:40] emese is now away
[15:36:40] emese is now online
[15:38:25] tranq is now online
[15:38:47] tourniquet is now online
[15:39:15] ink08 is now away
[15:39:17] ink08 is now away
[15:40:58] evrial is now online
[15:44:23] xa4a is now online
[15:44:42] ink08 is now away
[15:44:43] ink08 is now online
[15:47:27] evrial is now away
[15:49:19] xa4a is now online
[15:49:20] xa4a is now offline
[15:52:27] evrial is now xa
[15:53:24] emese is now away
[15:53:24] emese is now away
[15:57:56] evrial is now online
[15:58:23] emese is now away
[15:58:24] emese is now online
[15:58:56] ink08 is now away
[15:58:58] ink08 is now away
[15:59:26] ink08 is now away
[15:59:27] ink08 is now online
[16:00:23] tranq is now away
[16:00:23] tranq is now away
[16:02:57] evrial is now away
[16:05:03] livevil is now away
[16:05:14] livevil is now online
[16:07:57] evrial is now xa
[16:08:32] emese is now away
[16:08:32] emese is now away
[16:10:23] livevil is now away
[16:10:34] livevil is now online
[16:10:53] evrial is now online
[16:13:19] tourniquet is now away
[16:14:29] ink08 is now away
[16:14:31] ink08 is now away
[16:14:50] emese is now away
[16:14:50] emese is now online
[16:16:10] evrial is now away
[16:16:14] tranq is now online
[16:16:47] tourniquet is now online
[16:17:17] ink08 is now away
[16:17:18] ink08 is now online
[16:18:22] Typhon is now online
[16:18:23] Typhon is now away
[16:19:52] emese is now away
[16:19:52] emese is now away
[16:21:10] evrial is now xa
[16:23:44] Tony is now away
[16:24:32] Typhon is now away
[16:24:35] Typhon is now online
[16:31:30] tourniquet is now away
[16:33:45] ink08 is now away
[16:33:47] ink08 is now away
[16:38:36] ink08 is now away
[16:38:37] ink08 is now online
[16:39:05] andreyjkee is now online
[16:41:29] tourniquet is now xa
[16:43:36] ink08 is now away
[16:43:38] ink08 is now away
[16:43:54] ink08 is now away
[16:43:55] ink08 is now online
[16:48:17] огыешсук is now away
[16:48:44] Tony is now xa
[16:48:47] evrial is now online
[16:49:47] ink08 is now away
[16:49:49] ink08 is now away
[16:50:15] Typhon is now away
[16:50:15] Typhon is now online
[16:51:37] Сволота is now online
[16:52:51] webninja is now dnd
[16:52:51] webninja is now offline
[16:54:05] огыешсук is now online
[16:56:55] Typhon is now away
[16:58:57] Typhon is now online
[16:59:07] arsemyonov is now online
[16:59:13] огыешсук is now away
[17:00:32] Tony is now online
[17:00:41] Typhon is now away
[17:01:49] tranq is now away
[17:01:49] tranq is now away
[17:02:53] tourniquet is now online
[17:04:54] Typhon is now online
[17:07:46] evrial is now offline
[17:08:19] tourniquet is now away
[17:09:13] огыешсук is now xa
[17:09:26] Typhon is now away
[17:11:47] ink08 is now away
[17:11:48] ink08 is now online
[17:12:16] tourniquet is now online
[17:18:03] ink08 is now away
[17:18:05] ink08 is now away
[17:18:10] tranq is now online
[17:19:27] Typhon is now away
[17:24:05] livevil is now away
[17:27:39] livevil is now online
[17:28:57] py_two is now away
[17:29:24] tourniquet is now away
[17:33:24] ink08 is now away
[17:33:25] ink08 is now online
[17:33:38] tranq is now away
[17:33:38] tranq is now away
[17:36:06] tourniquet is now online
[17:42:23] ink08 is now away
[17:42:25] ink08 is now away
[17:43:58] emese is now away
[17:43:58] emese is now online
[17:44:08] ink08 is now away
[17:44:09] ink08 is now online
[17:45:28] andreyjkee is now online
[17:45:28] andreyjkee is now away
[17:47:23] andreyjkee is now away
[17:47:23] andreyjkee is now online
[17:49:33] tourniquet is now away
[17:52:20] andreyjkee is now online
[17:52:20] andreyjkee is now away
[17:52:59] ink08 is now away
[17:53:01] ink08 is now away
[17:54:41] ink08 is now away
[17:54:42] ink08 is now online
[17:56:32] tourniquet is now online
[18:01:45] tourniquet is now away
[18:02:03] arsemyonov is now away
[18:03:16] tourniquet is now online
[18:04:47] огыешсук is now online
[18:08:59] emese is now away
[18:08:59] emese is now away
[18:09:22] andreyjkee is now away
[18:09:22] andreyjkee is now online
[18:09:53] огыешсук is now away
[18:10:23] arsemyonov is now online
[18:11:30] огыешсук is now online
[18:11:47] ink08 is now away
[18:11:49] ink08 is now away
[18:18:50] emese is now away
[18:18:50] emese is now online
[18:19:47] ink08 is now away
[18:19:48] ink08 is now online
[18:20:00] gigimon is now online
[18:21:42] xa4a is now online
[18:25:11] огыешсук is now away
[18:28:10] огыешсук is now online
[18:29:33] Сволота is now offline
[18:30:25] ink08 is now away
[18:30:27] ink08 is now away
[18:34:51] arsemyonov is now away
[18:35:29] arsemyonov is now online
[18:36:23] livevil is now away
[18:38:19] ink08 is now away
[18:38:20] ink08 is now online
[18:38:48] Radzhab is now chat
[18:38:52] Radzhab: всем привет
[18:39:06] Radzhab: json парсер для vk api
[18:39:09] Radzhab: кто писал
[18:39:12] Radzhab: кто делал
[18:41:23] livevil is now away
[18:43:25] arsemyonov is now away
[18:43:30] moog is now online
[18:43:53] arsemyonov is now online
[18:47:12] livevil is now away
[18:47:16] livevil is now online
[18:47:37] tourniquet is now away
[18:53:21] gigimon is now online
[18:57:36] tourniquet is now xa
[18:59:18] gigimon is now online
[18:59:36] огыешсук is now away
[19:00:43] arsemyonov: Radzhab, import json, лол.
[19:00:55] Radzhab: arsemyonov: сенкс кеп
[19:01:26] arsemyonov: Radzhab, ты хотел другого ответа?
[19:01:37] mrDoctorWho is now online
[19:01:48] Radzhab: arsemyonov: я хотел вразумительного ответа на невразумительный вопрос)
[19:02:02] Radzhab: короче сервер возвращает ППЦ страшный json
[19:02:13] Radzhab: там ахренеть можно если регулярками парсить
[19:02:16] arsemyonov: Radzhab, чем тебе «import json» не вразумительный?
[19:02:19] Radzhab: думал кто нить встречался
[19:02:33] arsemyonov: Нормальный там json.
[19:03:01] Radzhab: arsemyonov:
[19:05:02] tourniquet is now online
[19:05:22] ink08 is now away
[19:05:23] ink08 is now away
[19:08:30] gigimon: Radzhab: import json json.load() чем тебе не катит
[19:08:33] gigimon: зачем регулярки какие-то
[19:09:38] огыешсук is now xa
[19:09:49] Radzhab: Traceback (most recent call last):
File "C:/kontakt/123.py", line 21, in <module>
json.load(x)
File "C:\Python27\lib\json\__init__.py", line 266, in load
return loads(fp.read(),
AttributeError: 'str' object has no attribute 'read'
[19:10:23] Radzhab: req = urllib2.urlopen("https://api.vk.com/method/wall.get?format=xml&from_group=1&owner_id=-1555&count=1")
x = req.read()
json.load(x)
[19:13:05] gigimon: ну и?
[19:13:33] Radzhab: Traceback (most recent call last):
File "C:/kontakt/123.py", line 21, in <module>
json.load(x)
File "C:\Python27\lib\json\__init__.py", line 266, in load
return loads(fp.read(),
AttributeError: 'str' object has no attribute 'read'
[19:14:59] Спящий: Ради прикола попытался повторить и...
[19:15:07] Спящий: >>> import urllib2
Traceback (most recent call last):
File "<input>", line 1, in <module>
ImportError: No module named 'urllib2'
[19:15:23] Спящий: Не буду повторять.
[19:15:39] Radzhab: :-D
[19:15:45] Radzhab: я импорты не вставил сюда
[19:16:02] Спящий: Да не, я додумался их встатить.
[19:16:17] Спящий: Просто не додумался, что у меня тут питон 3.3...
[19:16:24] gigimon: гг
[19:16:30] xa4a is now offline
[19:16:37] Radzhab: x = req.read()
z = json.loads(x)
print z
[19:16:41] Radzhab: вот так работает
[19:16:44] Radzhab: делаю принт
[19:16:46] gigimon: кто бы сомневался
[19:16:52] Radzhab: те же яца тока в профиль))
[19:16:52] Спящий: :-)
[19:17:04] ink08 is now away
[19:17:04] ink08 is now online
[19:17:14] gigimon: Radzhab: чувак, иди почитай про __repr___, и что делает принт
[19:17:20] Radzhab: gigimon: я знаю
[19:17:21] Radzhab: чувак
[19:17:24] gigimon: незаметно)
[19:17:45] gigimon: после loads у тебя питон объект, принт z приводит его к строке и НИКАК не форматирует
[19:17:56] gigimon: текст-объект-текст
[19:17:59] Radzhab: gigimon: вот это адекватный ответ)
[19:18:09] Radzhab: а как сделать иерархический "принт"
[19:18:14] gigimon: ты бы это понял, если почитал доку на json и про принт
[19:18:29] gigimon: гугл pretty print
[19:18:47] Спящий: На pypi есть куча либ. Искать по ключевым словам "nested lists".
[19:18:51] Radzhab: pprint
[19:20:08] arsemyonov: Radzhab, о чём несешь?
>>> req = urllib2.urlopen('https://api.vk.com/method/wall.get?format=xml&from_group=1&owner_id=-1555&count=1')
>>> data = req.read()
>>> json.loads(data)
{u'error': {u'error_code': 15, u'error_msg': u'Access denied: this wall available only for community members', u'request_params': [{u'value': u'1', u'key': u'oauth'}, {u'value': u'wall.get', u'key': u'method'}, {u'value': u'xml', u'key': u'format'}, {u'value': u'1', u'key': u'from_group'}, {u'value': u'-1555', u'key': u'owner_id'}, {u'value': u'1', u'key': u'count'}]}}
[19:20:11] arsemyonov: /me отходил
[19:20:36] Radzhab: https://api.vk.com/method/wall.get?format=xml&from_group=1&owner_id=-15565&count=1')
[19:20:41] Radzhab: вот попробуй этот
[19:20:46] andreyjkee is now online
[19:20:47] andreyjkee is now away
[19:21:03] Radzhab: там норм должно быть
[19:21:23] xa4a is now online
[19:21:31] arsemyonov:
>>> from pprint import pprint as pp
>>> pp
<function pprint at 0x99daae4>
>>> pp(json.loads(data))
{u'error': {u'error_code': 15,
u'error_msg': u'Access denied: this wall available only for community members',
u'request_params': [{u'key': u'oauth', u'value': u'1'},
{u'key': u'method', u'value': u'wall.get'},
{u'key': u'format', u'value': u'xml'},
{u'key': u'from_group', u'value': u'1'},
{u'key': u'owner_id', u'value': u'-1555'},
{u'key': u'count', u'value': u'1'}]}}
[19:21:37] andreyjkee is now away
[19:21:37] andreyjkee is now online
[19:21:50] xa4a: я когда-то писал что-то для vk api
[19:22:21] Radzhab: arsemyonov: круто
[19:22:30] Radzhab: все очень структурировано
[19:22:41] arsemyonov: xa4a, да все писали, гг.
[19:22:48] gigimon: /me не понимает, зачем выводить апи реквесты
[19:22:52] Спящий: Я не писал...
[19:22:58] Radzhab: arsemyonov: а как в xml можно получить доступ к элементам
[19:22:59] gigimon: и я не писал
[19:23:06] gigimon: отправьте человека в доку питона
[19:23:17] gigimon: Radzhab: import dom
[19:23:18] Radzhab: :-D там все на инглише
[19:23:23] gigimon: лол
[19:23:26] Спящий: И что?
[19:23:26] gigimon: учи английский
[19:23:27] arsemyonov: Radzhab, учи инглишь.
[19:23:32] Radzhab: arsemyonov: учу
[19:23:36] arsemyonov: /ban Radzhab
[19:23:38] arsemyonov: лол
[19:23:45] Спящий: Ну зачем же так?
[19:23:49] Radzhab: как же я любил codeproject))
[19:24:18] arsemyonov: Radzhab, ты меня вообще не спрашивай, я рубист.
[19:24:36] arsemyonov: /me не писал на пейтоне over двух лет
[19:24:45] Radzhab: arsemyonov: хм.. да ты крут
[19:24:46] gigimon: шпионы!
[19:24:58] gigimon: arsemyonov: шпион?
[19:25:03] Radzhab: :-) но для руберойда хороший знаток
[19:25:21] Спящий: Мдя… Как можно писать на перлоподобном руби? Моё внутреннее я не понимает этого.
[19:25:27] andreyjkee is now online
[19:25:28] andreyjkee is now away
[19:25:32] gigimon: да ладно
[19:25:35] gigimon: на перле ж пишут
[19:25:35] arsemyonov: gigimon, дедушка у меня в детстве «шпиёнами» называл тихие пуки.
[19:25:53] Спящий: Кто пишет? Это не люди!
[19:25:57] arsemyonov: Спящий, максимализм.
[19:26:20] Спящий: Нет, это идеализм с перфекциализмом.
[19:26:24] arsemyonov: /me не так давно переписал tsung_stats.pl под свежие задачи.
[19:26:53] levsha is now offline
[19:26:54] arsemyonov: > перфекционизм
Лол. И что ты с ним делаешь в вебе? Срёшь кирпичами?
[19:27:08] Спящий: Именно.
[19:27:20] Спящий: Но я не сколько в вебе, сколько рядом.
[19:27:35] xa4a: о, мой вконтакте-клиент даже до сих пор работает. хз сейчас, правда, что он делает...
[19:27:56] Radzhab: xa4a: скинь код
[19:28:14] xa4a: https://bitbucket.org/xa4a/meta_v/src/tip
[19:28:15] arsemyonov: Щас процеритую себя же.
> Любой сложный UI на JavaScript абсолютно прозрачно превращается в кучку кода на JabbaScript, не зависимо от того, насколько у разработчика развит перфекционизм.
[19:28:29] xa4a: Radzhab: fetcher.py - собсно библиотека с клиентом
[19:28:42] xa4a: в test.py какой-то пример использования
[19:29:11] огыешсук is now online
[19:29:30] xa4a: а, гм.. судя по except ValueError, e:
if e.message == u'All strings must be XML compatible: Unicode or ASCII, no NULL bytes':
у меня тоже были проблемы с jsonом
[19:29:46] gigimon: мож все же проблемы у вк?)
[19:29:55] xa4a: да, у него
[19:30:06] xa4a: нуэ.. он-то работает. так что проблемы у нас)
[19:30:13] xa4a: говно у него вместо json
[19:30:33] xa4a is now offline
[19:30:53] Radzhab: xa4a: как получить доступ к элементам jdon
[19:30:55] Radzhab: json
[19:31:02] Radzhab: типа json[1][2]
[19:31:04] py_two: xa4a: можно ли не используя js сделать перегружаемые динамические списки ?
[19:31:16] tourniquet is now away
[19:32:09] gigimon: Radzhab: type(объект_после_json.load)
[19:32:16] gigimon: и потом в туториал по питону
[19:32:21] Radzhab: gigimon: ))
[19:32:25] arsemyonov: Radzhab, бляха. json.loads() => dict. Так и ходи: data['errors']['foo']['bar']
[19:32:39] gigimon: отправьте человека в доку и гугл
[19:32:41] gigimon: ну серьезно)
[19:32:46] arsemyonov: в бан
[19:32:50] gigimon: тож вариант
[19:32:51] Radzhab: gigimon: какой бан чувак)
[19:32:55] gigimon: такой
[19:32:56] tourniquet is now online
[19:33:00] gigimon: это вопросы из ДОКИ
[19:33:00] py_two: xa4a: http://s1.ipicture.ru/uploads/20121129/W84B5vHV.jpg
[19:33:03] gigimon: причем туториала
[19:33:13] arsemyonov: py_two, конечно можно.
[19:33:16] gigimon: py_two: о, я думал ты уже сделал это
[19:33:16] Radzhab: gigimon: покажи мне на русском туториал
[19:33:20] py_two: xa4a: первый квадрат - информация динамически добавляется или исчзает
[19:33:33] Radzhab: точнее доки на русском
[19:33:35] gigimon: Radzhab: ГУГЛ, мы тебе не переводчики
[19:33:40] arsemyonov: Radzhab, читай по-англицки, либо вали из погроминга.
[19:33:42] py_two: gigimon: да я потихоньку в фоне занимаюсь вебдев дома на десктопе
[19:34:24] alexey-grom is now away
[19:34:54] andreyjkee is now away
[19:34:54] andreyjkee is now online
[19:35:13] alexey-grom is now online
[19:35:20] gigimon: py_two: че такое делаешь с таким списком?
[19:35:32] Radzhab is now offline
[19:37:52] py_two: gigimon: распределение данных пользователем
[19:37:53] andreyjkee is now online
[19:37:53] andreyjkee is now away
[19:38:08] py_two: gigimon: верней классификация и распределение
[19:38:40] Сволота is now online
[19:39:37] arsemyonov is now away
[19:42:59] andreyjkee is now away
[19:42:59] andreyjkee is now online
[19:43:23] py_two: gigimon: так как это сделать без js + ajax ?
[19:43:32] gigimon: эээ
[19:43:39] gigimon: только с перегрузкой страницы)
[19:43:40] py_two: gigimon: еще только не хватало в js залезть по уши
[19:43:59] py_two: gigimon: а конкретный пример на ajax есть ?
[19:44:04] gigimon: у меня нету
[19:44:13] py_two: прийдется разбираться во всем этом
[19:44:18] gigimon: но тут же работы на jquery 10 минут
[19:44:33] gigimon: выбраный элемент из правого пернести в левый
[19:44:41] py_two: короче искать jquery
[19:44:45] py_two: ясно
[19:45:56] andreyjkee is now online
[19:45:57] andreyjkee is now away
[19:47:22] andreyjkee is now away
[19:47:22] andreyjkee is now online
[19:47:42] tourniquet is now away
[19:47:52] tourniquet is now online
[19:49:38] arsemyonov is now xa
[19:51:01] py_two: gigimon: jquery dynamic list example выдает трололо
[19:51:57] py_two: надо за что-то зацепиться
[19:52:16] ink08 is now away
[19:52:17] ink08 is now away
[19:52:17] py_two is now offline
[19:53:43] py_two is now away
[19:54:12] gigimon: да я хз как загуглить
[19:54:14] gigimon: честно)
[19:55:15] py_two: gigimon: дык вот и я не могу понять как загуглить по данному вопросу
[19:56:04] tourniquet is now away
[19:56:49] arsemyonov is now online
[19:58:16] ink08 is now away
[19:58:16] ink08 is now online
[20:00:22] tourniquet is now online
[20:04:18] ink08 is now away
[20:04:19] ink08 is now away
[20:08:11] огыешсук is now away
[20:09:51] ink08 is now away
[20:09:51] ink08 is now online
[20:10:04] огыешсук is now online
[20:11:51] livevil is now online
[20:12:11] levsha is now xa
[20:13:11] py_two is now offline
[20:13:19] py_two is now away
[20:16:39] ink08 is now away
[20:16:40] ink08 is now away
[20:17:09] ink08 is now away
[20:17:09] ink08 is now online
[20:19:06] tourniquet is now away
[20:19:18] огыешсук is now offline
[20:20:14] mrDoctorWho is now away
[20:20:26] tourniquet is now online
[20:21:22] mrDoctorWho is now online
[20:22:41] arsemyonov is now away
[20:24:44] arsemyonov is now online
[20:38:16] Typhon is now away
[20:38:20] Typhon is now online
[20:38:58] tourniquet is now away
[20:40:22] tourniquet is now online
[20:45:42] livevil is now away
[20:45:48] livevil is now online
[20:46:21] arsemyonov is now away
[20:46:32] andreyjkee is now offline
[20:49:42] arsemyonov is now online
[20:50:37] slav0nic is now xa
[20:54:00] tourniquet is now xa
[20:55:41] py_two is now offline
[21:11:43] tourniquet is now offline
[21:22:08] evrial is now online
[21:22:59] gigimon is now online
[21:28:30] gigimon is now online
[21:39:24] mrDoctorWho is now offline
[21:46:25] ink08 is now away
[21:46:26] ink08 is now away
[21:46:41] Typhon is now offline
[21:49:07] evrial is now away
[21:49:29] arsemyonov is now away
[21:50:29] evrial is now online
[21:52:54] gigimon is now online
[21:56:28] ink08 is now away
[21:56:28] ink08 is now online
[21:59:29] arsemyonov is now xa
[22:02:54] gigimon is now away
[22:07:44] slav0nic is now offline
[22:08:28] py_two is now away
[22:15:56] evrial is now offline
[22:15:56] evrial is now online
[22:22:57] gigimon is now away
[22:22:57] gigimon is now online
[22:25:39] arsemyonov is now online
[22:36:36] ink08 is now away
[22:36:37] ink08 is now away
[22:39:52] Tony is now offline
[22:39:58] Tony is now online
[22:45:46] ink08 is now away
[22:45:46] ink08 is now online
[22:51:00] ink08 is now away
[22:51:01] ink08 is now away
[23:00:14] evrial is now offline
[23:00:29] evrial is now online
[23:02:42] ink08 is now away
[23:02:42] ink08 is now online
[23:10:59] aries.ua is now online
[23:11:09] aries.ua is now online
[23:11:12] aries.ua: Всем привет!
[23:11:35] aries.ua: test
[23:12:02] plkjm is now offline
[23:12:05] plkjm is now xa
[23:13:52] aries.ua: Народ, кто нить делал опросники в джанге?
[23:14:02] aries.ua: Стоит задача, а не знаю с чего начать
[23:14:27] aries.ua is now online
[23:19:30] aries.ua is now online
[23:21:18] gigimon: с ТЗ
[23:24:33] aries.ua is now online
[23:27:48] aries.ua: ТЗ уже написано. Загвоздка - как добавить опрос в админке и к нему динамически ответы.
[23:28:25] deisler is now away
[23:29:35] aries.ua: Типа - нажимаем "создать опрос". Указываем время жизни опроса. Активность опроса. Тут же на этой странице жмакаем линк "Добавить ответ". Появляется поле "Ответ", в которое вбиваем ответ. Ответов может быть не ограничено.
[23:29:35] aries.ua is now online
[23:30:36] aries.ua: После нажатия сохранить - данные по опросу попадают на страницу опроса. А ответы в таблицу ответов, которая связана с таблице опросов через ForeignKey
[23:31:17] aries.ua: Стандартным методом джанги можно сделать, но хочется сделать как я написал, что все на одной странице
[23:34:11] aries.ua: Вопрос - такую штуку можно сделать через TabularInline
[23:34:37] aries.ua is now online
[23:39:40] aries.ua is now online
[23:41:02] gigimon is now online
[23:44:42] aries.ua is now online
[23:49:28] aries.ua is now offline
[23:49:37] alexey-grom is now away
[23:51:02] gigimon is now away
[23:58:48] plkjm is now offline
[23:58:51] plkjm is now xa