[00:01:48] bobry is now online
[00:03:28] bobry is now away
[00:03:28] bobry is now away
[00:03:28] bobry is now away
[00:05:45] bobry is now away
[00:05:45] bobry is now online
[00:05:45] bobry is now online
[00:06:49] bobry is now online
[00:11:52] bobry is now online
[00:16:55] bobry is now online
[00:17:04] bobry is now away
[00:17:05] bobry is now away
[00:17:05] bobry is now away
[00:18:59] maxim.zemlyakov is now online
[00:18:59] maxim.zemlyakov is now online
[00:19:00] maxim.zemlyakov is now online
[00:19:06] maxim.zemlyakov is now offline
[00:21:58] bobry is now away
[00:22:52] maxim.zemlyakov is now online
[00:22:52] maxim.zemlyakov is now online
[00:23:24] maxim.zemlyakov is now offline
[00:27:01] bobry is now away
[00:28:03] Joes is now offline
[00:28:32] Joes is now Yep, I'm here.
[00:28:49] bobry is now away
[00:28:50] bobry is now online
[00:28:50] bobry is now online
[00:32:03] bobry is now online
[00:37:04] bobry is now online
[00:39:22] mishok13 is now offline
[00:40:19] bobry is now away
[00:40:19] bobry is now away
[00:40:20] bobry is now away
[00:42:07] bobry is now away
[00:47:11] bobry is now away
[00:50:33] bobry is now online
[00:50:33] bobry is now online
[00:52:13] bobry is now online
[00:53:38] mishok13 is now online
[00:55:50] py_two1 is now offline
[00:56:16] mishok13 is now offline
[00:57:15] bobry is now online
[01:02:18] bobry is now online
[01:02:21] bobry is now offline
[01:05:15] maxim.zemlyakov is now online
[01:05:16] maxim.zemlyakov is now online
[01:05:16] maxim.zemlyakov is now online
[01:06:44] maxim.zemlyakov is now online
[01:11:46] maxim.zemlyakov is now online
[01:14:00] webninja is now away
[01:14:01] webninja is now online
[01:16:49] maxim.zemlyakov is now online
[01:21:53] maxim.zemlyakov is now online
[01:25:38] Joes is now offline
[01:26:22] maxim.zemlyakov is now online
[01:26:56] maxim.zemlyakov is now online
[01:27:25] deepwalker is now offline
[01:31:59] maxim.zemlyakov is now online
[01:37:02] maxim.zemlyakov is now online
[01:42:05] maxim.zemlyakov is now online
[01:47:09] maxim.zemlyakov is now online
[01:47:26] xa4a is now away
[01:47:30] xa4a is now online
[01:52:12] maxim.zemlyakov is now online
[01:57:16] maxim.zemlyakov is now online
[02:02:18] maxim.zemlyakov is now online
[02:05:48] webninja is now away
[02:05:48] webninja is now away
[02:07:20] maxim.zemlyakov is now online
[02:12:23] maxim.zemlyakov is now online
[02:15:24] maxim.zemlyakov is now offline
[02:23:12] xa4a is now away
[02:23:12] xa4a is now away
[02:49:21] webninja is now away
[02:49:21] webninja is now online
[02:59:37] Typhon is now online
[03:00:36] Typhon is now offline
[03:00:55] Typhon is now online
[03:24:47] xa4a is now away
[03:24:49] xa4a is now online
[03:43:10] xa4a is now away
[03:43:10] xa4a is now away
[03:54:47] Typhon is now offline
[04:07:01] webninja is now away
[04:07:01] webninja is now away
[04:36:56] webninja is now away
[04:36:56] webninja is now online
[04:57:01] webninja is now away
[04:57:01] webninja is now away
[04:59:52] webninja is now away
[04:59:52] webninja is now online
[05:07:29] alex-bulgakov is now online
[05:19:16] webninja is now away
[05:19:16] webninja is now away
[05:32:56] webninja is now away
[05:32:57] webninja is now online
[05:41:18] webninja is now away
[05:41:18] webninja is now away
[05:49:06] webninja is now away
[05:49:06] webninja is now online
[05:59:35] webninja is now away
[05:59:35] webninja is now away
[05:59:43] webninja is now away
[05:59:45] webninja is now online
[06:21:46] alex-bulgakov is now offline
[06:37:20] mrDoctorWho. is now online
[06:41:28] mrDoctorWho. is now offline
[06:43:15] maxp is now online
[06:59:51] Ляпатяпа is now online
[07:12:51] Tony is now away
[07:16:39] mrDoctorWho. is now online
[07:17:17] alexey-grom is now offline
[07:17:51] Tony is now xa
[07:29:43] mrDoctorWho. is now offline
[07:29:49] mrDoctorWho. is now online
[07:32:31] dicos is now online
[07:46:11] dicos is now away
[07:46:12] dicos is now away
[07:46:20] dicos is now away
[07:46:22] dicos is now online
[07:55:28] dicos is now away
[07:55:29] dicos is now away
[07:56:43] dicos is now away
[07:56:44] dicos is now online
[08:01:44] dicos is now away
[08:01:45] dicos is now away
[08:04:14] dicos is now away
[08:04:15] dicos is now online
[08:08:17] alexey-grom is now online
[08:09:15] dicos is now away
[08:09:16] dicos is now away
[08:10:09] alexey-grom: а что есть такого чтобы в файлы кешировать данные? что-то вроде tempfile.NamedTemporaryFile только с большим функционалом
[08:11:42] dicos is now away
[08:11:43] dicos is now online
[08:13:55] Tony is now offline
[08:15:08] mrDoctorWho. is now offline
[08:16:45] dicos is now away
[08:16:45] dicos is now away
[08:17:56] dicos is now away
[08:17:57] dicos is now online
[08:19:25] livevil is now online
[08:22:33] mrDoctorWho. is now online
[08:29:13] dicos is now away
[08:29:13] dicos is now away
[08:33:14] livevil is now online
[08:33:30] dicos is now away
[08:33:31] dicos is now online
[08:41:16] mrDoctorWho. is now offline
[08:45:25] RaD is now online
[08:45:25] RaD is now online
[08:46:22] RaD: re all
[08:46:30] RaD: камраден, кто пользуется django-salmonella c django 1.4? у вас показывается справа от поля подсказка на значение?
[08:47:24] webninja is now away
[08:47:25] webninja is now away
[08:48:19] webninja is now away
[08:48:19] webninja is now online
[08:49:26] RaD is now online
[08:50:53] gf is now offline
[08:54:28] RaD is now online
[08:59:30] RaD is now online
[09:00:58] maxp is now offline
[09:02:44] dicos is now away
[09:02:46] dicos is now away
[09:04:05] dicos is now away
[09:04:06] dicos is now online
[09:04:34] RaD is now online
[09:09:37] RaD is now online
[09:14:37] RaD is now online
[09:19:41] RaD is now online
[09:23:59] wiz is now online
[09:24:35] bobry is now online
[09:24:35] bobry is now online
[09:24:35] bobry is now online
[09:24:42] RaD is now online
[09:25:30] bobry is now online
[09:29:03] gf is now online
[09:29:19] RaD is now offline
[09:30:32] bobry is now online
[09:33:48] bobry is now away
[09:33:48] bobry is now away
[09:33:48] bobry is now away
[09:35:34] bobry is now away
[09:40:28] dicos is now away
[09:40:30] dicos is now away
[09:40:37] bobry is now away
[09:41:36] bobry is now away
[09:41:37] bobry is now online
[09:41:37] bobry is now online
[09:44:14] dicos is now away
[09:44:15] dicos is now online
[09:44:22] webninja is now away
[09:44:22] webninja is now away
[09:45:10] zandr_dw is now online
[09:45:12] zandr_dw is now offline
[09:45:39] bobry is now online
[09:47:08] levsha is now offline
[09:50:19] webninja is now away
[09:50:19] webninja is now online
[09:50:42] bobry is now online
[09:55:44] bobry is now online
[09:58:11] webninja is now away
[09:58:11] webninja is now away
[09:58:26] mishok13 is now online
[10:00:46] bobry is now online
[10:02:31] mrDoctorWho. is now online
[10:02:43] Ляпатяпа is now away
[10:03:20] webninja is now away
[10:03:20] webninja is now online
[10:04:07] alexey-grom is now offline
[10:05:48] bobry is now online
[10:07:22] mishok13 is now away
[10:10:50] bobry is now online
[10:12:41] Ляпатяпа is now xa
[10:15:52] bobry is now online
[10:16:17] webninja is now away
[10:16:17] webninja is now away
[10:16:41] webninja is now away
[10:16:41] webninja is now online
[10:18:03] bobry is now offline
[10:19:07] levsha is now xa
[10:22:08] mishok13 is now offline
[10:22:31] d1ffuz0r is now online
[10:28:08] erraen is now online
[10:28:10] erraen is now online
[10:29:48] erraen is now online
[10:34:05] Ляпатяпа is now online
[10:34:50] erraen is now online
[10:39:52] erraen is now online
[10:44:55] erraen is now online
[10:49:56] erraen is now online
[10:50:01] webninja is now away
[10:50:02] webninja is now away
[10:50:22] mishok13 is now away
[10:50:41] webninja is now away
[10:50:42] webninja is now online
[10:50:50] mishok13 is now online
[10:50:52] Joes is now Yep, I'm here.
[10:54:58] erraen is now online
[10:56:27] dicos is now away
[10:56:29] dicos is now away
[10:56:48] dicos is now away
[10:56:50] dicos is now online
[10:57:30] webninja is now away
[10:57:31] webninja is now away
[11:00:00] erraen is now online
[11:02:40] webninja is now away
[11:02:41] webninja is now online
[11:03:08] dicos is now away
[11:03:10] dicos is now away
[11:05:02] erraen is now online
[11:09:05] dicos is now away
[11:09:06] dicos is now online
[11:09:47] webninja is now away
[11:09:48] webninja is now away
[11:10:04] erraen is now online
[11:11:41] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[11:15:05] erraen is now online
[11:17:23] deisler is now away
[11:19:11] webninja is now away
[11:19:12] webninja is now online
[11:20:07] erraen is now online
[11:24:12] webninja is now away
[11:24:12] webninja is now away
[11:25:09] erraen is now online
[11:26:52] mrDoctorWho. is now away
[11:30:10] erraen is now online
[11:35:13] erraen is now online
[11:40:15] erraen is now online
[11:41:06] xa4a is now away
[11:41:13] xa4a is now online
[11:41:49] gigimon is now online
[11:45:17] erraen is now online
[11:46:53] mrDoctorWho. is now xa
[11:47:52] mrDoctorWho. is now online
[11:48:13] webninja is now away
[11:48:13] webninja is now online
[11:48:37] Ляпатяпа is now offline
[11:50:20] erraen is now online
[11:55:23] erraen is now online
[12:00:30] erraen is now online
[12:04:35] Martin is now online
[12:04:36] Martin: добрый день
[12:05:02] Martin: в Django у моделей всегда есть поле id?
[12:05:27] erraen is now online
[12:06:52] Martin: но если я поставлю уникальный индекс в другом месте, то она не будет его создавать?
[12:10:28] erraen is now online
[12:10:51] mishok13 is now away
[12:11:05] webninja is now away
[12:11:05] webninja is now away
[12:11:26] MAVr is now away
[12:11:27] MAVr is now away
[12:11:53] webninja is now away
[12:11:53] webninja is now online
[12:13:12] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[12:15:03] xa4a is now away
[12:15:03] xa4a is now away
[12:15:29] erraen is now online
[12:19:42] Ляпатяпа is now online
[12:20:26] mishok13 is now online
[12:20:31] erraen is now online
[12:21:46] livevil is now online
[12:25:35] erraen is now online
[12:26:48] xa4a is now away
[12:26:51] xa4a is now online
[12:28:36] mishok13 is now away
[12:28:46] wiz: А django-hstore нормально живёт с последней джангой? А то оно год не обновлялось уже...
[12:29:33] xa4a is now offline
[12:30:35] erraen is now online
[12:31:25] Tony is now online
[12:35:12] Martin is now away
[12:35:37] erraen is now online
[12:36:13] Martin is now online
[12:36:18] Tony is now xa
[12:36:27] mishok13 is now online
[12:37:50] Martin is now away
[12:37:53] pc_ is now online
[12:39:00] Martin is now online
[12:40:02] Martin is now away
[12:40:38] erraen is now online
[12:41:22] nott is now online
[12:42:02] Martin is now xa
[12:44:30] Typhon is now online
[12:45:36] Tony is now online
[12:45:40] erraen is now online
[12:48:02] Ляпатяпа is now away
[12:50:25] alexey-grom is now online
[12:50:42] erraen is now online
[12:51:08] Ляпатяпа is now online
[12:52:07] nott is now offline
[12:52:16] nott is now online
[12:53:12] xa4a is now online
[12:54:22] Martin is now online
[12:55:43] erraen is now online
[12:56:02] Martin is now away
[12:56:59] webninja is now away
[12:57:00] webninja is now away
[12:57:38] webninja is now away
[12:57:38] webninja is now online
[12:58:03] Martin is now xa
[12:59:49] slav0nic is now xa
[13:00:46] erraen is now online
[13:01:57] Martin is now online
[13:02:12] Tony is now away
[13:02:30] deepwalker is now online
[13:05:48] erraen is now online
[13:07:12] Tony is now online
[13:07:48] mishok13 is now away
[13:08:29] mishok13 is now online
[13:10:49] erraen is now online
[13:14:55] xa4a: Martin: да
[13:15:15] mishok13 is now offline
[13:15:18] xa4a: alexey-grom: чего ты хочешь?
[13:15:36] mishok13 is now online
[13:15:51] erraen is now online
[13:16:08] wiz is now away
[13:17:52] alexey-grom: ответы сервера хранить в файлах, но чтобы более менее удобно было сохранив ответ потом с ним работать + какие-то операции типа переименования/перемещения файла и т.д.
[13:19:29] alexey-grom: а что-то кроме file(..) ничего и нету ) и топорный модуль tempfile от которого пользы в придумывании имени файла и поиске tmp
[13:20:22] xa4a: sqlite
[13:20:34] alexey-grom: но у меня же файлы
[13:20:39] py_two1 is now Automatically away due to idle
[13:20:42] xa4a: у тебя блобы
[13:20:53] erraen is now online
[13:20:54] xa4a: create table files(name varchar, content text);
[13:21:38] alexey-grom: а как BLOB хранится?
[13:22:11] alexey-grom: т.е. не одим файлом все? а то очень много запросов и верхнего потолка в размере ответов нет
[13:24:22] xa4a: Unlike most SQL databases, SQLite does not restrict the type of data that may be inserted into a column based on the columns declared type. Instead, SQLite uses dynamic typing <http://www.sqlite.org/datatype3.html>. The declared type of a column is used to determine the affinity <http://www.sqlite.org/datatype3.html#affinity> of the column only.
[13:25:01] nmk is now online
[13:25:55] erraen is now online
[13:27:24] Tony is now away
[13:27:25] gigimon is now online
[13:29:17] dicos is now offline
[13:30:56] erraen is now online
[13:31:04] alexey-grom: xa4a: не, я боюсь sqlite для этого )
[13:31:10] wiz is now xa
[13:31:15] xa4a: почему?
[13:31:55] alexey-grom: на 10м базе он замедляет работу, а я буду в него по 10мб за один раз совать
[13:32:24] Tony is now xa
[13:33:04] alexey-grom: плюс к тому что файлы все же удобнее потому может понадобится его переименовать в человеческий вид и переместить, а так из базы доставать и сохранять
[13:33:51] alexey-grom: и работа на gevent завязана, с файлами норм, а с sqlite еще хз что получится
[13:34:12] xa4a: ок, а чем tempfile не устраивает тогда?
[13:35:08] alexey-grom: там перегружать нечего )
[13:35:58] erraen is now online
[13:36:16] ds.tihonov is now дома! :)
[13:36:18] Martin is now offline
[13:36:23] Typhon is now away
[13:36:48] alexey-grom: например завел объект-файл, сохранил внего что-то, перевел в режим чтения - прочитал. а от него толку в этом плане нету. вообще что-то такого ничего найти не могу
[13:37:19] py_two1 is now away
[13:37:23] Typhon is now online
[13:38:01] alexey-grom: в tempfile есть одна хорошая функция gettempdir ) остальное постольку поскольку )
[13:39:11] Typhon: with TempFile() as f:
[13:39:36] ds.tihonov is now offline
[13:39:50] py_two1 is now Automatically away due to idle
[13:39:56] mishok13 is now away
[13:40:39] ds.tihonov is now дома! :)
[13:41:00] erraen is now online
[13:42:05] Martin is now online
[13:44:37] alexey-grom: Typhon: ну вот так много раз делать надо на разные режимы, т.е. хранить только имя файла
[13:44:50] alexey-grom: а вообще практикуется перегружать file?
[13:45:18] Typhon: alexey-grom: можно взять NamedTemproraryFile и получить оттуда имя, а сайм файлобжект не трогать, например
[13:45:55] gigimon is now online
[13:46:01] erraen is now online
[13:47:10] alexey-grom: Typhon, он на запись открывается. как режимы менять? только переоткрыть через open, это все неудобно
[13:47:45] pc_ is now away
[13:47:58] alexey-grom: я пробовал NamedTemproraryFile, от него толку только что имя генерирует и занимает сразу.
[13:48:08] xa4a: cache = {}; for url in urls: with NamedTemporaryFile as f: cache[url] = f; f.write(urlopen(url).read())
[13:48:31] xa4a: ну и режим перевести по желаению
[13:50:41] pc_ is now online
[13:51:03] erraen is now online
[13:51:18] alexey-grom: а нет ничего готового чтобы сам я руками не открывал файл и режимы не менял?
[13:51:38] alexey-grom: какой-то буфер который память не занимает.
[13:51:43] webninja is now away
[13:51:43] webninja is now away
[13:51:44] alexey-grom: вот смотрю может mmap подойдет?
[13:51:46] mishok13 is now online
[13:54:52] mishok13 is now away
[13:55:44] Martin is now offline
[13:56:06] erraen is now online
[13:56:10] py_two1 is now away
[13:56:26] Martin is now online
[13:56:35] Martin: тест...
[13:57:13] mishok13 is now online
[13:58:29] xa4a: Martin: passed.
[13:58:32] Martin: извините, что так передаю так мессаг, но уже два или три раза рвется связь. мб глюки jabber.org. вопрос опять про Django, приглянулась все же :). http://pastebin.com/DF1a5Fmz
[13:58:47] xa4a: alexey-grom: mmap полезный для рандомного доступа к кускам файла, насколько я понимаю
[13:58:56] xa4a: ты так и не сказал, что тебе нужно
[13:59:14] xa4a: для переименования и перемещения файла mmap не нужен
[13:59:32] slav0nic: Martin, блоками может заниматься темплейт тег если очень хочется
[14:01:03] Martin: {% block myblock %} {% endblock %} или {{ myblocks }} ?
[14:01:09] erraen is now online
[14:01:40] slav0nic: ты мне блок и перменную показываешь
[14:02:02] py_two1 is now Automatically away due to idle
[14:03:52] mishok13 is now away
[14:04:13] Martin: что-то не понимаю. после роутера управление должно передаваться view, она сгенерит свой контент. но после должен запустится шаблонизатор, который прозрачно скомпилирует страницу (то есть view не должно интересовать как и что там будет дальше. она честно сгенерировала и передала). как-то так.
[14:04:32] slav0nic: ну да
[14:05:00] slav0nic: короче смотри custom template tags, context processors
[14:05:13] slav0nic: если надо что-то глобальное прокидывать везде - то тебе 2е подходит
[14:05:23] nott is now away
[14:06:11] erraen is now online
[14:07:02] py_two1 is now away
[14:08:55] nott is now online
[14:11:15] erraen is now online
[14:12:30] Martin is now away
[14:12:48] alexey-grom: xa4a, да, я плохо объяснил. нужен некий буфер с такими требованиями 1) в апи нужно скрыть как-что хранится и предоставить удобный интерфейс для чтения/записи, 2) хранить желательно в файле (оперативу нужно экономить etc), 3) это должен быть класс. вот что-то из стдлиб или рядом для этого есть?
[14:12:53] Martin is now online
[14:14:19] xa4a: TemporaryFile
[14:14:53] xa4a: в него можно писать и читать; хранит данные на ФС; класс.
[14:16:16] erraen is now online
[14:16:17] Martin: хеллоуворд на джанге 1.3 нельзя запустить на 1.2?
[14:17:02] py_two1 is now xa
[14:17:46] Typhon is now away
[14:19:33] alexey-grom: xa4a, а как режим то менять после того как туда все запишу? руками переоткрывать через open?
[14:19:55] xa4a: да
[14:21:17] erraen is now online
[14:21:44] xa4a: а может и f.seek(0) достаточно будет
[14:22:34] alexey-grom: на чтение мне кажется все равно переоткрывать придется
[14:22:43] xa4a: alexey-grom: http://paste.in.ua/4213/
[14:24:44] alexey-grom: xa4a: спасибо! то что нужно )
[14:25:28] wiz is now online
[14:26:06] Martin: в дебиане через apt-get можно удалить старую джангу?
[14:26:19] erraen is now online
[14:27:47] Typhon is now away
[14:27:48] slav0nic: деб можно
[14:28:17] slav0nic: http://snapshot.debian.org/
[14:28:24] slav0nic: но смотря на сколько старую)
[14:28:39] Martin: удалился пакет python-django, но пакет все еще можно заимпортить
[14:28:47] Martin: джанга python-django-1.2.3-3+squeeze2
[14:28:51] Martin: Debian 6
[14:29:55] Martin: в путях ее не нашел
[14:31:20] erraen is now online
[14:33:49] MAVr is now away
[14:33:54] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[14:34:37] Martin: easy_install django==1.3.1 рулит)
[14:35:52] xa4a: pip же
[14:36:22] erraen is now online
[14:38:21] Martin: пытаюсь запустить под mod_wsgi. есть строка os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'. у меня такого конфига нет, только settings.py. создавал в PyCharm проект.
[14:40:08] gigimon is now online
[14:40:29] Ляпатяпа is now offline
[14:40:43] Typhon is now away
[14:40:46] Typhon is now online
[14:41:24] erraen is now online
[14:43:42] nott is now away
[14:46:25] erraen is now online
[14:47:56] pc_ is now away
[14:51:26] Joes is now Yep, I'm here.
[14:51:27] erraen is now online
[14:52:15] Martin is now away
[14:53:21] Typhon is now away
[14:53:26] gigimon is now online
[14:53:37] pc_ is now online
[14:54:15] Martin is now xa
[14:55:15] Typhon is now online
[14:55:43] Martin is now online
[14:56:16] py_two1 is now Automatically away due to idle
[14:56:29] erraen is now online
[14:56:49] wiz: select * from payment_order where context->'spam' = 'bacon';
[14:56:56] wiz: postgresql + hstore рулит
[14:59:12] MAVr is now away
[14:59:49] Martin: http://pastebin.com/ZGxMHZFu что еще можно предпринять?
[15:00:42] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[15:01:31] erraen is now online
[15:01:58] xa4a: wiz: h - от слова хипстер?
[15:02:32] xa4a: Martin: можно почитать о том, как питон ищет модули
[15:02:47] xa4a: и какой файл он будет искать, если ты напишешь import nya.settings
[15:03:05] Martin: nya/settings может
[15:03:13] xa4a: nya/settings.py, да
[15:03:18] xa4a: а утебя есть такой файл7
[15:03:29] xa4a: в /var/www/nya/data/www/new.nya.ru
[15:03:49] py_two1 is now away
[15:03:58] Martin: /var/www/nya/data/www/new.nya.ru/nya.settings
[15:04:05] Martin: я пробовал и nya
[15:04:17] xa4a: перечитай ещё раз последние сообщения
[15:04:21] xa4a: только теперь внимательно
[15:04:26] xa4a: и сравни с тем, что ты написал
[15:04:28] wiz: xa4a, ага, hipstore.
[15:04:34] xa4a: а потом ls /var/www/nya/data/www/new.nya.ru/nya/settings.py
[15:05:09] py_two1 is now Automatically away due to idle
[15:05:10] xa4a: wiz: так зачем он нужен?
[15:06:11] wiz: хранить словарь с динамическим хламом рядом с основной записью без извратов с таблицей (parent, key, value)
[15:06:21] xa4a: его, я так понимаю, в ключе использовать нельзя?
[15:06:33] erraen is now online
[15:06:39] wiz: сами ключи индексируются
[15:06:44] wiz: составной скорее всего нельзя
[15:09:00] Martin: > ls /var/www/nya/data/www/new.nya.ru/nya/settings.py
ну естессно такого файла не существует. но и конфиг "nya" его тоже не устраивает... мешает папка с доменом?
[15:09:25] xa4a: Martin: нет, иди читай про модули в питоне
[15:09:27] xa4a: и про пакеты
[15:11:12] Typhon is now away
[15:11:35] erraen is now online
[15:12:32] Martin: http://docs.python.org/tutorial/modules.html это подойдет? мне что-то кажется, что тут поверхностно рассказывается
[15:16:37] erraen is now online
[15:19:24] Typhon is now online
[15:19:58] pc_ is now away
[15:21:37] pc_ is now online
[15:21:39] erraen is now online
[15:24:39] xa4a is now online
[15:25:39] Tony is now online
[15:26:41] erraen is now online
[15:29:38] xa4a is now away
[15:31:27] Martin is now away
[15:31:39] Martin is now online
[15:31:42] erraen is now online
[15:32:48] Martin: ну написано, что сначало ищет в своей либе, потом в папке скрипта, да что ему там еще в path прописали
[15:35:39] Martin is now away
[15:35:43] py_two1 is now away
[15:36:23] Martin is now online
[15:36:44] erraen is now online
[15:37:11] py_two1 is now Automatically away due to idle
[15:38:38] nott is now xa
[15:38:55] pc_ is now away
[15:41:47] erraen is now online
[15:42:29] Martin: вкурил. оно хотело модуль заимпортить, а не файл...
[15:43:08] py_two1 is now away
[15:43:47] xa4a is now away
[15:43:49] xa4a is now online
[15:45:22] mishok13 is now online
[15:46:48] erraen is now online
[15:48:55] pc_ is now xa
[15:51:51] erraen is now online
[15:52:50] Typhon is now away
[15:53:08] py_two1 is now xa
[15:54:33] Typhon is now online
[15:56:52] erraen is now online
[15:57:06] py_two1 is now Automatically away due to idle
[15:58:50] gigimon: питон не импортит файлы
[16:01:54] erraen is now online
[16:02:06] py_two1 is now away
[16:06:56] nott is now online
[16:06:56] erraen is now online
[16:12:00] erraen is now online
[16:12:06] py_two1 is now xa
[16:13:45] pc_ is now online
[16:15:08] klichuk is now online
[16:15:26] klichuk is now offline
[16:17:01] erraen is now online
[16:18:22] alex-bulgakov is now online
[16:18:28] Martin is now away
[16:20:29] Martin is now xa
[16:22:03] erraen is now online
[16:26:49] alex-bulgakov is now offline
[16:27:05] erraen is now online
[16:28:51] Martin is now online
[16:32:07] erraen is now online
[16:36:22] nott is now away
[16:37:09] erraen is now online
[16:42:11] erraen is now online
[16:46:49] огыешсук is now online
[16:47:13] erraen is now online
[16:48:33] dicos is now online
[16:49:21] wiz is now away
[16:49:46] wiz is now online
[16:51:42] Tony is now away
[16:51:45] gigimon is now online
[16:52:14] erraen is now online
[16:53:26] pc_ is now away
[16:56:42] Tony is now xa
[16:57:16] erraen is now online
[17:02:18] erraen is now online
[17:02:36] dicos is now away
[17:02:37] dicos is now away
[17:03:02] Tony is now online
[17:03:25] pc_ is now xa
[17:04:30] nott is now online
[17:05:31] pc_ is now online
[17:07:20] erraen is now online
[17:12:07] Typhon is now away
[17:12:22] erraen is now online
[17:12:24] xa4a is now away
[17:13:24] Typhon is now online
[17:15:04] xa4a is now online
[17:17:24] erraen is now online
[17:18:33] maxp is now online
[17:18:39] xa4a: смотрю вот http://pyvideo.org/video/605/ipython-in-depth-high-productivity-interactive-a
[17:18:55] xa4a: рекомендуется
[17:19:05] xa4a: правда 3 часа :\
[17:22:26] erraen is now online
[17:27:28] erraen is now online
[17:31:55] nott is now away
[17:32:04] nott is now online
[17:32:29] erraen is now online
[17:37:32] erraen is now online
[17:39:53] Martin is now away
[17:40:06] dicos is now away
[17:40:06] Martin is now online
[17:40:07] dicos is now online
[17:40:20] wiz: чем кошерней всего в джангу очереди воткнуть окромя celery?
[17:40:27] wiz: с бэкендом на редисе
[17:41:44] gigimon is now away
[17:42:34] erraen is now online
[17:44:41] Martin is now away
[17:45:12] dicos is now away
[17:45:14] dicos is now away
[17:45:35] Martin is now online
[17:46:35] Martin is now away
[17:47:09] xa4a: почему кроме celery? снова нужен какой-то hcelery?
[17:47:36] erraen is now online
[17:47:51] Martin is now online
[17:48:15] wiz: а бинсталк не ок?
[17:49:00] dicos is now away
[17:49:02] dicos is now online
[17:50:38] Typhon is now away
[17:51:21] xa4a: ни с тем ни с другим не работал
[17:51:27] xa4a: а celery - не ок?
[17:52:38] erraen is now online
[17:53:32] wiz: мне показалось оно черезчур тяжёлое
[17:53:59] wiz: а бинсталк довольно приятен по докам https://github.com/earl/beanstalkc/blob/master/TUTORIAL.mkd
[17:57:39] erraen is now online
[18:00:40] Typhon is now away
[18:02:42] erraen is now online
[18:02:51] Tony is now away
[18:04:31] gigimon is now away
[18:04:31] gigimon is now online
[18:05:22] slav0nic is now offline
[18:05:41] mishok13 is now away
[18:06:17] Tony is now online
[18:06:58] mishok13 is now online
[18:07:43] erraen is now online
[18:11:20] Martin is now away
[18:11:52] Martin is now online
[18:12:45] erraen is now online
[18:13:26] mishok13 is now away
[18:13:32] mishok13 is now online
[18:14:30] gigimon is now online
[18:14:46] dicos is now away
[18:14:48] dicos is now away
[18:14:50] dicos is now away
[18:14:51] dicos is now online
[18:17:48] erraen is now online
[18:18:47] alexey-grom is now offline
[18:18:48] alexey-grom is now online
[18:20:37] levsha is now offline
[18:22:50] erraen is now online
[18:23:37] gigimon is now online
[18:24:12] pc_ is now away
[18:24:15] Tony is now away
[18:25:34] gigimon: wiz: целери простое же
[18:25:38] gigimon: и редис умеет
[18:26:12] gigimon: wiz: бинсталк этот судя по доке не умеет демонизироваться?
[18:27:52] erraen is now online
[18:29:15] Tony is now xa
[18:29:15] pc_ is now online
[18:31:31] Tony is now online
[18:32:54] erraen is now online
[18:33:27] Martin is now away
[18:34:30] Martin is now online
[18:37:29] wiz: хз, я из PPA в убунте поставил, оно дальше само как-то
[18:37:43] wiz is now offline
[18:37:56] erraen is now online
[18:38:05] cutwater is now online
[18:38:08] gigimon is now offline
[18:38:23] gigimon is now online
[18:38:24] gigimon is now offline
[18:39:32] nott is now away
[18:40:48] nott is now online
[18:41:52] nott is now offline
[18:42:53] maxp is now away
[18:42:55] maxp is now away
[18:42:58] erraen is now online
[18:44:20] maxp is now away
[18:44:21] maxp is now online
[18:48:01] erraen is now online
[18:50:40] py_two1 is now Automatically away due to idle
[18:51:46] Typhon is now away
[18:51:49] Typhon is now online
[18:53:02] erraen is now online
[18:56:10] py_two1 is now away
[18:58:04] erraen is now online
[18:58:41] Martin is now away
[18:59:56] Martin is now online
[19:01:46] cutwater is now offline
[19:03:06] erraen is now online
[19:06:09] py_two1 is now xa
[19:08:09] erraen is now online
[19:11:01] MAVr is now offline
[19:13:11] erraen is now online
[19:13:59] erraen is now offline
[19:23:29] dicos is now away
[19:23:29] dicos is now away
[19:26:53] maxp is now offline
[19:29:52] Martin is now away
[19:30:47] dicos is now away
[19:30:47] dicos is now online
[19:31:52] Martin is now xa
[19:33:20] d1ffuz0r is now offline
[19:33:54] Martin is now online
[19:34:55] Martin is now away
[19:35:30] levsha is now xa
[19:35:54] Martin is now online
[19:38:19] Martin: полагаю, что в джанге лучше везде юзать u'строки', дабы гемора с кириллицей не было?
[19:38:28] Tony is now away
[19:43:28] Tony is now xa
[19:44:31] Typhon: from __future__ import unicode_lite
[19:46:08] mishok13 is now away
[19:46:31] xa4a: полагаю, что в .py файлах не стоит использовать кириллицу
[19:47:15] Martin: шаблоны переваривают полностью?
[19:47:22] xa4a: да
[19:47:40] mishok13 is now online
[19:48:06] Martin: текста в коде вряд ли будет, это пока я балуюсь. для комментов хватит указания кодировки. но очень жду джангу 1.5 с поддержкой питона 3.
[19:50:54] Martin: unicode_literals тру. но его нужно указывать в каждом файле?
[19:52:19] xa4a is now away
[19:56:27] alex-bulgakov is now online
[20:00:47] xa4a is now online
[20:01:02] Martin is now away
[20:01:08] Martin is now online
[20:02:54] Tony is now online
[20:03:17] Martin is now away
[20:04:09] Martin is now online
[20:07:05] mishok13 is now offline
[20:07:19] Martin is now away
[20:08:47] Martin is now online
[20:14:34] dicos is now offline
[20:26:52] Tony is now away
[20:31:52] Tony is now xa
[20:38:10] pc_ is now away
[20:40:42] gigimon is now online
[20:48:09] pc_ is now xa
[20:48:24] pc_ is now online
[20:48:38] Tony is now online
[20:53:06] mrDoctorWho. is now offline
[20:53:54] levsha is now offline
[20:54:47] alexey-grom is now offline
[20:56:50] Typhon is now offline
[20:58:56] gigimon is now offline
[21:06:15] xa4a is now away
[21:07:12] xa4a is now online
[21:09:06] pc_ is now away
[21:16:39] nmk is now offline
[21:19:05] pc_ is now xa
[21:32:11] Tony is now offline
[21:32:27] Tony is now online
[21:37:29] levsha is now xa
[21:42:41] Martin is now away
[21:43:43] Martin is now online
[21:47:32] py_two1 is now Automatically away due to idle
[21:47:39] bobry is now online
[21:47:39] bobry is now online
[21:47:39] bobry is now online
[21:50:45] bobry is now online
[21:53:02] py_two1 is now away
[21:55:47] bobry is now online
[21:58:45] gf is now online
[22:00:50] bobry is now online
[22:03:02] py_two1 is now xa
[22:05:52] bobry is now online
[22:10:55] bobry is now online
[22:10:55] Martin is now offline
[22:15:58] bobry is now online
[22:18:18] levsha is now offline
[22:18:19] levsha is now xa
[22:21:00] bobry is now online
[22:25:57] erraen is now online
[22:25:58] erraen is now online
[22:25:58] erraen is now online
[22:26:03] xa4a is now offline
[22:26:11] bobry is now online
[22:26:11] erraen is now online
[22:26:18] erraen is now online
[22:27:05] огыешсук is now offline
[22:30:59] Typhon is now online
[22:31:05] bobry is now online
[22:31:21] erraen is now online
[22:34:10] livevil is now online
[22:36:06] bobry is now online
[22:36:21] erraen is now online
[22:38:25] bobry is now away
[22:38:25] bobry is now away
[22:38:25] bobry is now away
[22:39:16] alex-bulgakov is now offline
[22:41:08] bobry is now away
[22:41:24] erraen is now online
[22:43:20] xa4a is now online
[22:43:26] xa4a is now online
[22:46:09] bobry is now away
[22:46:26] erraen is now online
[22:46:57] xa4a is now online
[22:48:43] xa4a is now away
[22:51:12] bobry is now away
[22:51:14] Typhon is now offline
[22:51:27] erraen is now online
[22:52:13] bobry is now away
[22:52:13] bobry is now online
[22:52:13] bobry is now online
[22:56:15] bobry is now online
[22:56:30] erraen is now online
[22:56:43] xa4a is now away
[23:01:10] py_two1 is now Automatically away due to idle
[23:01:18] bobry is now online
[23:01:31] erraen is now online
[23:03:54] alexey-grom is now online
[23:06:20] bobry is now online
[23:06:33] erraen is now online
[23:08:00] maxim.zemlyakov is now online
[23:08:00] maxim.zemlyakov is now online
[23:10:51] maxim.zemlyakov is now offline
[23:11:22] bobry is now online
[23:11:35] erraen is now online
[23:12:23] maxim.zemlyakov is now online
[23:12:24] maxim.zemlyakov is now online
[23:12:38] maxim.zemlyakov is now online
[23:12:53] maxim.zemlyakov is now online
[23:12:54] maxim.zemlyakov is now offline
[23:15:38] xa4a is now away
[23:15:40] xa4a is now online
[23:16:24] bobry is now online
[23:16:36] erraen is now online
[23:16:37] Septem is now online
[23:16:58] maxim.zemlyakov is now online
[23:16:58] maxim.zemlyakov is now online
[23:17:03] Septem: вопрос, существует ли способ ускороть записать в фаил за памяти?
[23:17:24] Septem: просто мне судя по всему нужно запсать с несоклько гигабайт и это откровенно говоря долго
[23:18:22] maxim.zemlyakov is now online
[23:18:33] levsha: поставить быстрый сторадж
[23:18:43] Septem: ?
[23:18:43] py_two1: Septem: я думаю тут без черной магии не обойтись. Сходи к бабке какой-то, пусть тебе заговорит компьютер, может быть быстрей будет записываться
[23:18:59] py_two1: Septem: говорят девайс поставь быстрее
[23:19:14] py_two1: Septem: рэйд, не ?
[23:19:58] py_two1: чередование нафик и вперед
[23:20:06] Septem: py_two1: просто запись из памяти 1 гигабайта идёт слишком долго банальное копирование было бы быстрее
[23:20:17] Septem: то есть уже с 10 минут нверное
[23:21:21] levsha: наверное нужно просто производить записть нормально, а не через жопу
[23:21:25] Septem: я понимаю что факториал от 1000000 весит много но всё же
[23:21:26] bobry is now online
[23:21:32] Septem: levsha: и как это нормально?
[23:21:37] erraen is now online
[23:21:43] levsha: Septem: просто нормально. А ты как пишешь?
[23:21:58] Septem: levsha: f=open("f10000.txt","w") f.write(a)
[23:22:26] Septem: ну и после записи f.close() что не так?
[23:22:47] levsha: и a содержит гигабайт данных?
[23:23:00] Septem: levsha: около того наверное
[23:23:13] py_two1: Septem: ну так а по ходу событий в файл инфо писать нельзя ?
[23:23:25] maxim.zemlyakov is now online
[23:23:30] Septem: py_two1: думаю конкреткно с факториалом не выёдет
[23:23:34] Septem: выйдет*
[23:23:59] bobry is now away
[23:23:59] bobry is now away
[23:23:59] bobry is now away
[23:24:13] levsha: кстати а сколько времени вычислялся?
[23:24:18] py_two1: Septem: http://stackoverflow.com/questions/6524635/writing-to-a-file-with-multiprocessing
[23:24:35] Septem: levsha: стандартный пример на stacless 3305.572000026703
[23:25:12] Septem: долговато конечно но всё же факториал от 1 милиона, да и в 1 поток (только как там распаралелить то да же?)
[23:25:53] levsha: Septem: факториал распаралелить? Да элементарно
[23:26:08] Septem: levsha: а точно
[23:26:20] Septem: вычислять кусочки и перемножать между собой
[23:26:29] bobry is now away
[23:26:38] erraen is now online
[23:26:40] levsha: но вообще у тебя какая-то хрень. a это что?
[23:26:49] xa4a is now online
[23:26:50] xa4a is now away
[23:26:55] levsha: на современном железе запись должна упираться в производительность диска
[23:27:01] Septem: вот вот
[23:27:05] Septem: а стоп
[23:27:15] Septem: оно ещё и число это втсроку конвектирует
[23:27:16] Septem: ох
[23:27:27] Septem: этож каких размеров то будут строка
[23:27:29] Septem: будет*
[23:27:32] levsha: ыыы
[23:27:41] Septem: кстати
[23:27:56] Septem: есть возможность заставить python использовать своп?
[23:28:04] alexey-grom: Septem: и сколько цифр в факториале 1м?
[23:28:19] Septem: alexey-grom: да хз я не стану даже смотреть на это число пока что
[23:28:26] maxim.zemlyakov is now online
[23:28:31] Septem: как запишу в файл так и скажу =)
[23:28:39] levsha: Septem: что значит "заставить использовать своп"? Своп контролируется операционкой. Его использование происходит прозрачно для программы
[23:28:54] alexey-grom: Septem, ок, не забудь, интересно
[23:29:22] Septem: alexey-grom: завтравка для 100000 http://dl.dropbox.com/u/19243931/f10000.txt
[23:29:26] bobry is now away
[23:29:26] bobry is now online
[23:29:26] bobry is now online
[23:30:18] Septem: levsha: у меня на винде сейчас своп в 6г, когда я пробовал вычислить что то вдухе 256**256**256 в тот момет когда кончалась именно ОП питон вылетал с ошибкой по памяти
[23:30:26] Septem: винда разумеется 64 бит как и питон
[23:30:36] Septem: python *
[23:31:29] Septem: сейчас правда x32 так как stacless но тестировал на обычном ещё
[23:31:31] bobry is now online
[23:31:41] erraen is now online
[23:31:41] levsha: мне всегда очень нравится когда пересказывают ошибки, или просто упоминают "ошибка по памяти". Нахрена в обработчиках ошибок вообще выводят какую-то информацию ...
[23:32:09] Septem: levsha: ок как запишется воспроизведу и скину
[23:32:51] levsha: Septem: а мне вот интересно: без подсказки, по умолчанию, никогда не возникало мыслей записывать ошибки?
[23:33:28] maxim.zemlyakov is now online
[23:33:43] alexey-grom: Septem: делай умножение сам чтобы с памятью не вылетала, это медленнее но расход оперативы будет строго фиксированный и размер определишь сам
[23:33:55] Septem: levsha: обычно я ошибки исправляю по мере их появления
[23:33:55] alexey-grom: есть же алгоритм быстрого умножения
[23:34:14] Septem: alexey-grom: по подробнее ?
[23:35:11] Septem: вот кстати stacless делает что то иначе судя по всему. Так как факториал он искал строго в ограниченой памяти не увеличивая её
[23:35:26] Septem: stackless*
[23:35:36] alexey-grom: там на преобразовании Фурье что-то
[23:35:45] alexey-grom: я уже не помню (
[23:35:57] alexey-grom: http://ru.wikipedia.org/wiki/%D0%9C%D0%B5%D1%82%D0%BE%D0%B4_%D1%83%D0%BC%D0%BD%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F_%D0%A8%D1%91%D0%BD%D1%85%D0%B0%D0%B3%D0%B5_%E2%80%94_%D0%A8%D1%82%D1%80%D0%B0%D1%81%D1%81%D0%B5%D0%BD%D0%B0
[23:36:03] alexey-grom: ой
[23:36:28] alexey-grom: страшная ссылка. есть примеры - легко найти
[23:36:33] bobry is now online
[23:36:33] Septem: alexey-grom: я подумал об Умножение Карацубы
[23:36:43] erraen is now online
[23:37:05] alexey-grom: да, это тоже, только на Фурье считается лучче )
[23:38:07] Septem: alexey-grom: занятный способ кстати
[23:38:31] maxim.zemlyakov is now online
[23:38:35] Septem: 5565709 - это символов в строке?)
[23:38:52] maxim.zemlyakov is now offline
[23:39:05] Septem: ну кому текстовичок в 5мб ? =)
[23:39:17] Septem: сейчас только залью
[23:39:23] Septem: http://dl.dropbox.com/u/19243931/f1000000.txt
[23:39:54] Septem: alexey-grom:
[23:40:02] Typhon is now online
[23:40:04] alexey-grom: ага, смотрю )
[23:40:10] alexey-grom: уже посчитал?
[23:40:32] Septem: считал он 3305.572000026703 секунд
[23:40:39] Septem: сколько записывал хз =)
[23:41:35] bobry is now online
[23:41:44] erraen is now online
[23:46:37] bobry is now online
[23:46:46] erraen is now online
[23:50:47] maxim.zemlyakov is now online
[23:50:47] maxim.zemlyakov is now online
[23:51:36] maxim.zemlyakov is now offline
[23:51:40] maxim.zemlyakov is now online
[23:51:40] maxim.zemlyakov is now online
[23:51:40] bobry is now online
[23:51:43] maxim.zemlyakov is now offline
[23:51:47] erraen is now online
[23:56:42] bobry is now online
[23:56:48] erraen is now online