[00:04:34] madmercen is now xa
[00:15:35] singularity is now offline
[00:15:57] singularity is now online
[00:16:48] gigimon is now online
[00:17:01] remo is now online
[00:18:43] opka is now online
[00:18:53] remo is now online
[00:20:11] remo is now online
[00:20:29] opka: кто-то хочет шевельнуть мозгом? Наткнулся на старые задачки, вот решаю. Простенькая: "Даны целые положительные числа A, B, C. На прямоугольнике размера A × B размещено максимально возможное количество квадратов со стороной C (без наложений)". решает просто: N = A/C * B/C, ну и там проверки чтоб a>c && b>c; а вот как ее решать, если квадраты накладываются друг на друганапример?
[00:21:00] opka: это же их может быть ооочень много
[00:21:48] gigimon is now away
[00:22:37] remo is now online
[00:26:59] emese: почему нельзя сложить бесконечное количество квадратов стопкой друг на друга?
[00:27:17] emese: наверное ты какое-то условие упустил
[00:27:24] emese: или это и есть ответ
[00:27:42] ambush is now offline
[00:28:06] opka: да нет, в оригинале квадраты не накладываются. Мне просто любопытно, как решать, если вдруг таки накладываются :))
[00:28:17] gigimon is now away
[00:28:19] gigimon is now online
[00:28:20] ambush is now online
[00:37:08] ambush is now offline
[00:37:37] ambush is now online
[00:48:54] madmercen is now online
[00:52:33] gigimon is now online
[00:57:34] gigimon is now away
[01:04:58] gigimon is now away
[01:05:01] gigimon is now online
[01:07:30] gigimon: opka: если накладываются, то количество, думаю, стремится к бесконечности
[01:13:47] Typhon is now online
[01:19:19] remo is now online
[01:22:36] Typhon is now offline
[01:26:44] madmercen is now away
[01:31:20] madmercen is now online
[01:35:01] fuzzy is now away
[01:35:58] ds.tihonov is now offline
[01:36:47] remo is now away
[01:39:30] emese is now away
[01:39:32] emese is now away
[01:40:08] singularity is now offline
[01:43:04] emese is now away
[01:43:05] emese is now online
[01:43:32] opka: gigimon: да
[01:43:37] opka: туда и стремится :)
[01:48:06] emese is now away
[01:48:08] emese is now away
[01:48:25] AlexZenon is now xa
[01:52:59] ds.tihonov is now дома! :)
[01:53:15] emese is now away
[01:53:17] emese is now online
[01:53:52] madmercen is now away
[01:56:47] remo is now xa
[01:58:17] emese is now away
[01:58:19] emese is now away
[01:58:23] remo is now online
[01:59:00] fuzzy is now away
[01:59:06] fuzzy is now away
[02:03:17] emese is now away
[02:03:18] emese is now online
[02:03:52] madmercen is now xa
[02:07:42] fuzzy: не стремится, а может быть любое
[02:09:37] emese is now away
[02:09:39] emese is now away
[02:11:28] remo is now away
[02:12:46] remo is now online
[02:14:40] emese is now away
[02:14:41] emese is now online
[02:20:47] Tony is now away
[02:21:16] bliznezz is now away
[02:21:17] bliznezz is now away
[02:21:28] emese is now away
[02:21:30] emese is now away
[02:25:08] mishok13 is now offline
[02:26:28] emese is now away
[02:26:29] emese is now online
[02:31:30] emese is now away
[02:31:32] emese is now away
[02:36:33] emese is now away
[02:36:34] emese is now online
[02:41:33] emese is now away
[02:41:35] emese is now away
[02:44:24] pythonua@conference.jabber.ru is now Available
[02:44:38] Tony is now offline
[02:44:54] Tony is now away
[02:45:14] gigimon: чуваки, кто рубит js подскажите, как из метода search доступаться к тому, что было определено при создании объекта? (грубо говоря к self)
[02:45:19] gigimon: https://gist.github.com/gigimon/6955788
[02:45:32] gigimon: сейчас оно работает, но смотрится как то уродски
[02:45:46] Tony is now xa
[02:46:37] emese is now away
[02:46:38] emese is now online
[02:54:08] pythonua@conference.jabber.ru is now offline
[02:59:00] fuzzy is now online
[03:03:28] bliznezz is now away
[03:03:29] bliznezz is now online
[03:12:30] bliznezz is now away
[03:12:31] bliznezz is now away
[03:15:21] bliznezz is now away
[03:15:22] bliznezz is now online
[03:34:37] bliznezz is now away
[03:34:38] bliznezz is now away
[03:43:35] opka is now offline
[03:43:37] opka is now online
[03:44:14] gigimon is now offline
[04:07:07] ambush is now offline
[04:07:38] ambush is now online
[04:20:30] opka is now offline
[04:24:08] emese is now offline
[04:26:28] bliznezz is now away
[04:26:29] bliznezz is now online
[04:47:23] Сволота is now online
[04:57:09] fuzzy is now online
[04:57:11] fuzzy is now online
[04:57:18] bliznezz is now offline
[05:01:38] fuzzy is now away
[05:06:38] fuzzy is now away
[05:14:05] fuzzy is now away
[05:19:04] fuzzy is now away
[05:45:26] madmercen is now online
[06:03:20] madmercen is now away
[06:07:34] madmercen is now online
[06:37:41] Сволота is now online
[06:37:41] blw0rm is now dnd
[06:37:41] ambush is now online
[06:37:41] best is now xa
[06:37:41] deisler is now away
[06:37:41] fuzzy is now away
[06:37:41] Tony is now xa
[06:37:41] madmercen is now online
[06:37:41] ds.tihonov is now дома! :)
[06:37:41] AlexZenon is now xa
[06:37:41] magic_pony is now online
[06:37:41] remo is now online
[06:37:41] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[06:41:59] madmercen is now away
[06:43:13] madmercen is now online
[06:45:54] ambush is now offline
[07:00:54] Сволота is now away
[07:09:22] deisler is now offline
[07:10:54] Сволота is now xa
[07:25:18] madmercen is now away
[07:25:26] Сволота is now online
[07:35:18] madmercen is now xa
[07:35:34] Сволота is now away
[07:45:34] Сволота is now xa
[07:47:19] madmercen is now online
[07:47:34] remo is now offline
[07:48:14] remo is now online
[08:09:15] madmercen is now away
[08:11:16] Сволота is now online
[08:18:12] Сволота is now away
[08:19:15] madmercen is now xa
[08:19:47] madmercen is now online
[08:28:12] Сволота is now xa
[08:55:45] fuzzy is now away
[08:58:36] fuzzy is now away
[08:58:40] fuzzy is now away
[09:04:20] Сволота is now online
[09:09:22] Сволота is now away
[09:09:59] fuzzy is now away
[09:15:00] fuzzy is now away
[09:17:22] Сволота is now online
[09:22:24] Сволота is now away
[09:22:28] Сволота is now online
[09:43:13] singularity is now online
[09:52:38] Сволота is now away
[09:53:38] Сволота is now online
[09:59:30] Сволота is now away
[10:00:26] Сволота is now online
[10:19:08] singularity is now offline
[10:36:30] moonhawk is now Yep, I'm here.
[10:38:10] moonhawk is now offline
[11:01:20] pythonua@conference.jabber.ru is now Available
[11:05:41] singularity is now online
[11:07:18] pythonua@conference.jabber.ru is now away
[11:13:42] pythonua@conference.jabber.ru is now Available
[11:13:42] singularity is now offline
[11:14:11] pythonua@conference.jabber.ru is now offline
[11:14:36] singularity is now online
[11:20:23] fuzzy is now away
[11:30:23] foob is now online
[11:32:00] foob: всем привет, пишу небольшой сервис на торнадо, там есть обращения к внешнему апи, которые лимитированны, это апи вконтакта, там есть некоторые ограничения, типа одно обращение в секунду
[11:32:20] Сволота is now away
[11:32:51] foob: плюс предполагается выполнение небольших фоновых задач, расщеты и кеширование в базе, задачи инициируются запросами и несложной периодикой (глобальный пересчет раз в сутки например)
[11:33:07] foob: так вот, нужен ли мне какой-то агент для этого, или достаточно add_callback'ов в ioloop самого торнадо?
[11:33:34] Сволота is now online
[11:33:44] foob: ограничения к апи предполагают последовательное выполнение, я бы мог ложить задачи в монгу например и просто дергать их из отдельного процесса в бесконечном цикле, если они есть, правильно я размышляю*
[11:34:24] foob: трабл в том что к апи идут запросы при входе юзера, тоесть мне нужно сделать это ленивым, иначе при внезапно возросшей нагрузке начнется давка на входе
[11:34:47] foob: тоесть даже без иолупа
[11:37:33] foob: меня терзают сомнения, я пытаюсь нагуглить что-то более легкое селеры для торнадо и вообще как принято это делать и не могу найти ничего внятного
[11:40:09] singularity is now offline
[11:43:55] foob: хотя с другой стороны тот же селери дает дитрибютед из коробки, а ограничения у меня на айпи, если я офигею и захочу поставить два бекенда для связи с апи это прийдется как нельзя кстати
[11:47:55] foob: ладно, надо заводить селеру, кого я обманываю
[11:47:56] foob is now offline
[12:18:06] Сволота is now online
[12:18:06] blw0rm is now dnd
[12:18:06] best is now xa
[12:18:06] fuzzy is now away
[12:18:06] Tony is now xa
[12:18:06] ds.tihonov is now дома! :)
[12:18:06] madmercen is now online
[12:18:06] AlexZenon is now xa
[12:18:06] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[12:18:06] magic_pony is now online
[12:18:06] remo is now online
[12:20:36] Typhon is now online
[12:29:47] Typhon is now offline
[12:33:41] remo is now offline
[12:33:57] remo is now online
[12:38:30] mishok13 is now away
[12:48:23] mishok13 is now xa
[12:48:38] gigimon is now online
[12:51:57] mishok13 is now online
[12:54:21] opka is now online
[12:55:57] opka is now offline
[12:56:01] opka is now online
[12:57:53] mishok13 is now away
[12:59:22] fuzzy is now away
[12:59:29] fuzzy is now away
[13:04:23] fuzzy is now away
[13:04:27] deisler is now away
[13:04:30] fuzzy is now online
[13:06:42] Tony is now online
[13:07:53] mishok13 is now xa
[13:09:27] gigimon is now away
[13:12:54] gigimon is now online
[13:13:45] fuzzy is now online
[13:13:45] ambush is now online
[13:18:45] fuzzy is now online
[13:22:39] mishok13 is now online
[13:23:43] opka is now offline
[13:27:56] mishok13 is now offline
[13:30:02] yugo-salem is now online
[13:41:54] fuzzy is now away
[13:43:15] fuzzy is now away
[13:43:17] fuzzy is now away
[13:46:37] Tony is now offline
[13:46:56] fuzzy is now away
[13:48:03] Tony is now online
[13:53:02] fuzzy is now away
[13:58:37] yugo-salem is now offline
[14:03:02] fuzzy is now away
[14:07:01] ambush is now away
[14:07:29] ambush is now online
[14:30:46] gigimon is now away
[14:35:45] gigimon is now away
[14:41:14] gigimon is now away
[14:41:14] gigimon is now offline
[14:45:56] gigimon is now online
[15:04:15] AlexZenon is now online
[15:13:45] fuzzy: foob: да
[15:18:13] fuzzy is now away
[15:18:16] fuzzy is now online
[15:24:12] fuzzy is now online
[15:24:20] fuzzy is now online
[15:26:31] mks is now online
[15:29:33] fuzzy is now online
[15:30:51] Tony is now away
[15:34:31] gigimon is now offline
[15:35:34] gigimon is now online
[15:37:31] Tony is now online
[15:40:54] fuzzy is now away
[15:45:54] fuzzy is now away
[15:51:47] fuzzy is now away
[15:51:52] fuzzy is now online
[16:09:30] remo is now online
[16:14:45] ambush is now offline
[16:18:11] fuzzy is now online
[16:18:15] fuzzy is now online
[16:22:51] fuzzy is now away
[16:27:52] fuzzy is now away
[16:28:07] mks is now away
[16:28:49] fuzzy is now away
[16:28:53] fuzzy is now online
[16:33:07] mks is now xa
[16:33:29] emese is now online
[16:35:01] Typhon is now online
[16:37:05] gigimon is now online
[16:42:05] gigimon is now away
[16:48:57] syshnak is now online
[16:50:33] mks is now online
[17:01:59] fuzzy is now online
[17:02:15] syshnak is now away
[17:02:15] syshnak is now away
[17:04:35] fuzzy is now online
[17:06:49] singularity is now online
[17:07:54] syshnak is now away
[17:07:54] syshnak is now online
[17:08:05] gigimon is now away
[17:08:08] gigimon is now online
[17:09:27] singularity is now offline
[17:09:55] singularity is now online
[17:10:02] deisler is now offline
[17:11:02] fuzzy is now online
[17:16:04] fuzzy is now online
[17:21:59] Сволота is now away
[17:23:10] gigimon is now offline
[17:23:51] remo is now offline
[17:24:13] remo is now online
[17:24:19] Сволота is now online
[17:26:39] mks is now away
[17:28:31] remo is now offline
[17:28:31] remo is now online
[17:30:53] singularity is now online
[17:31:39] mks is now xa
[17:33:47] Сволота is now away
[17:35:47] Сволота is now online
[17:36:32] fuzzy is now online
[17:36:39] fuzzy is now online
[17:37:08] огыешсук is now online
[17:38:39] ambush is now online
[17:38:43] syshnak is now away
[17:40:49] Сволота is now away
[17:41:05] emese is now online
[17:42:01] Сволота is now online
[17:49:01] Сволота is now away
[17:50:09] Сволота is now online
[17:51:13] mks is now online
[17:56:13] mks is now away
[17:59:04] syshnak is now online
[18:00:29] fuzzy is now away
[18:00:35] fuzzy is now online
[18:01:13] mks is now xa
[18:01:57] ambush is now offline
[18:08:22] andreyjkee is now online
[18:09:01] remo is now offline
[18:09:08] remo is now away
[18:10:07] remo is now offline
[18:10:16] remo is now away
[18:13:26] syshnak is now away
[18:13:26] syshnak is now away
[18:14:12] fuzzy is now away
[18:14:13] fuzzy is now away
[18:16:41] AlexZenon is now offline
[18:16:43] AlexZenon is now online
[18:19:00] remo is now offline
[18:19:41] remo is now away
[18:22:43] singularity is now offline
[18:23:17] singularity is now online
[18:29:47] syshnak is now online
[18:35:16] Typhon is now away
[18:35:29] Typhon is now online
[18:47:25] Tony is now away
[18:48:51] fuzzy is now online
[18:49:33] Tony is now online
[18:56:17] andreyjkee is now online
[18:56:18] andreyjkee is now away
[18:56:37] andreyjkee is now away
[18:56:38] andreyjkee is now online
[18:59:33] Typhon is now away
[19:02:01] Typhon is now online
[19:04:19] Typhon is now away
[19:07:39] Сволота is now away
[19:10:13] Сволота is now online
[19:11:15] remo is now offline
[19:12:00] singularity: In [1]: import django

In [2]: django.
django.VERSION django.get_version

In [2]: from django import
VERSION db http templatetags
conf dispatch middleware test
contrib forms shortcuts utils
core get_version template views


[19:12:16] singularity: почему так ?
[19:12:18] remo is now online
[19:14:20] Typhon is now online
[19:16:23] singularity: в баг трекерах многих заброшенных проджектов можно найти что-то такое
I'll study and test it next week. I don't have time this week. :)
[19:17:01] singularity: оставленные от 2 да 5 лет назад :-D
[19:22:19] Tony is now away
[19:26:09] fuzzy: singularity: что почему?
[19:27:33] singularity: не видно модули django если просто импортировать import django
[19:27:50] fuzzy: потому что ты их не импортировал?
[19:28:12] singularity: import django
django.db
# error
from django import db
# ok
[19:29:26] singularity: fuzzy: у тебя не так ?
[19:30:19] fuzzy: так
[19:30:24] singularity: http://dumpz.org/694446/
[19:30:26] andreyjkee is now offline
[19:30:29] singularity: и почему так ?
[19:31:43] Tony is now online
[19:32:49] fuzzy: потому что django.db и import django.db - это не одно и то же
[19:36:06] singularity: и почему ?
[19:38:12] fuzzy: потому что импорт - сложная операция
[19:38:16] fuzzy: ищет файлы
[19:38:18] fuzzy: читает их
[19:38:22] fuzzy: как-то интерпретирует
[19:38:27] fuzzy: что-то выполняет
[19:38:38] fuzzy: а доступ к аттрибуту - просто в словаре выбирает готовый атрибут
[19:40:39] singularity: и почему питон не делает при первом то что он делает при втором (в контесте примера на dumpz.org)
[19:43:23] singularity: http://asvetlov.blogspot.com/2010/05/blog-post.html
При
import a.b.c
будут последовательно выполнены
import a
import a.b
import a.b.c
[19:43:41] mks is now online
[20:13:49] Сволота is now online
[20:13:49] emese is now online
[20:13:49] blw0rm is now dnd
[20:13:49] best is now xa
[20:13:49] mks is now online
[20:13:49] fuzzy is now online
[20:13:49] Typhon is now online
[20:13:49] Tony is now online
[20:13:49] AlexZenon is now online
[20:13:49] ds.tihonov is now дома! :)
[20:13:49] madmercen is now online
[20:13:49] syshnak is now online
[20:13:49] remo is now online
[20:13:49] singularity is now online
[20:13:49] огыешсук is now online
[20:13:49] magic_pony is now online
[20:13:49] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[20:20:22] mks is now away
[20:21:40] RanWise is now ** This message was blocked by the ICQ server **
[20:25:22] mks is now xa
[20:28:01] fuzzy is now online
[20:28:05] fuzzy is now online
[20:28:56] remo is now away
[20:34:41] RanWise is now offline
[20:34:45] RanWise is now ** This message was blocked by the ICQ server **
[20:35:20] fuzzy is now online
[20:37:26] огыешсук is now away
[20:40:03] огыешсук is now away
[20:40:21] fuzzy is now online
[20:44:12] madmercen is now away
[20:44:54] madmercen is now online
[20:47:57] fuzzy is now online
[20:48:01] fuzzy is now online
[20:48:41] mks is now online
[20:49:25] singularity is now offline
[20:50:34] AlexZenon is now offline
[20:51:20] levsha is now online
[20:53:48] огыешсук is now away
[20:53:50] огыешсук is now online
[20:54:27] levsha is now offline
[20:58:10] AlexZenon is now online
[20:58:48] огыешсук is now offline
[20:58:49] огыешсук is now online
[21:19:32] singularity is now online
[21:23:25] madmercen is now away
[21:24:27] madmercen is now online
[21:27:25] singularity is now offline
[21:27:37] mks is now away
[21:27:54] ambush is now online
[21:29:04] ambush is now offline
[21:29:12] ambush is now online
[21:30:28] огыешсук is now offline
[21:31:08] огыешсук is now online
[21:31:13] огыешсук is now offline
[21:31:53] огыешсук is now online
[21:32:32] огыешсук is now offline
[21:32:37] mks is now xa
[21:36:31] madmercen is now away
[21:39:40] ambush is now away
[21:42:53] RanWise is now away
[21:45:07] ambush is now online
[21:46:31] madmercen is now xa
[21:51:54] mks is now online
[22:00:15] Typhon is now offline
[22:00:15] RanWise is now ** This message was blocked by the ICQ server **
[22:00:35] Typhon is now online
[22:10:26] singularity is now online
[22:11:32] Typhon is now offline
[22:12:34] RanWise is now offline
[22:20:50] singularity is now offline
[22:29:34] fuzzy is now away
[22:46:06] pythonua@conference.jabber.ru is now Available
[22:50:47] Сволота is now away
[22:55:57] Сволота is now online
[23:09:36] mks is now away
[23:11:28] mks is now online
[23:13:28] emese is now offline
[23:16:50] mks is now away
[23:21:50] mks is now xa
[23:22:40] ambush is now offline
[23:23:56] ambush is now online
[23:29:47] emese is now online
[23:31:34] pythonua@conference.jabber.ru is now away
[23:31:51] pythonua@conference.jabber.ru is now offline
[23:39:32] singularity is now online
[23:41:12] singularity is now offline
[23:45:35] ambush is now offline
[23:51:44] fuzzy is now online
[23:52:11] ambush is now online
[23:57:09] Typhon is now online