[00:00:07] bobry is now away
[00:01:53] Typhon is now away
[00:05:08] bobry is now away
[00:08:44] kwis is now away
[00:10:08] bobry is now away
[00:10:32] kwis is now online
[00:11:53] Typhon is now xa
[00:15:10] bobry is now away
[00:15:34] kwis is now away
[00:20:10] Tony is now xa
[00:20:10] bobry is now away
[00:21:55] ds.tihonov is now offline
[00:22:36] ds.tihonov is now дома! :)
[00:22:36] ds.tihonov is now offline
[00:25:12] bobry is now away
[00:25:34] kwis is now xa
[00:27:27] bobry is now away
[00:27:32] kwis is now online
[00:30:13] bobry is now away
[00:35:13] bobry is now away
[00:40:15] bobry is now away
[00:42:14] kwis is now away
[00:44:36] kwis is now online
[00:45:18] bobry is now away
[00:50:19] bobry is now away
[00:51:44] kwis is now away
[00:52:07] ink08 is now offline
[00:52:23] ink08 is now xa
[00:53:10] kwis is now online
[00:55:20] bobry is now away
[00:58:14] kwis is now away
[00:59:04] kwis is now online
[01:00:20] bobry is now away
[01:03:32] gigimon is now online
[01:05:22] bobry is now away
[01:10:22] bobry is now away
[01:15:22] bobry is now away
[01:20:24] bobry is now away
[01:25:24] bobry is now away
[01:30:25] bobry is now away
[01:35:21] bobry is now away
[01:35:25] bobry is now away
[01:37:03] Typhon is now online
[01:40:26] bobry is now away
[01:40:59] bobry is now away
[01:43:48] xa4a is now away
[01:45:27] bobry is now away
[01:50:29] bobry is now away
[01:50:56] XIT is now away
[01:51:08] XIT is now away
[01:51:08] XIT is now offline
[01:55:30] Typhon is now away
[01:55:31] bobry is now away
[01:57:18] Typhon is now online
[02:00:32] bobry is now away
[02:00:35] gigimon is now offline
[02:05:32] bobry is now away
[02:10:34] bobry is now away
[02:14:56] Typhon is now away
[02:15:00] Typhon is now online
[02:15:34] bobry is now away
[02:17:04] vw is now online
[02:17:04] vw is now online
[02:17:05] vw is now online
[02:19:28] vw is now online
[02:20:35] bobry is now away
[02:24:00] Typhon is now away
[02:24:29] vw is now online
[02:24:56] Typhon is now online
[02:25:09] kwis is now offline
[02:25:30] kwis is now online
[02:25:36] bobry is now away
[02:29:31] vw is now online
[02:30:25] kwis is now offline
[02:30:36] bobry is now away
[02:31:04] kwis is now online
[02:33:32] Typhon is now away
[02:34:31] vw is now online
[02:35:37] bobry is now away
[02:39:32] vw is now online
[02:40:39] bobry is now away
[02:41:52] Typhon is now online
[02:44:33] vw is now online
[02:45:06] kwis is now offline
[02:45:40] bobry is now away
[02:46:13] kwis is now online
[02:48:54] kwis is now offline
[02:49:12] kwis is now online
[02:49:34] vw is now online
[02:50:40] bobry is now away
[02:50:55] vw is now offline
[02:55:39] bobry is now away
[03:00:40] bobry is now away
[03:00:43] kwis is now chat
[03:00:56] kwis is now online
[03:05:32] Typhon is now offline
[03:05:40] bobry is now away
[03:07:40] deepwalker is now offline
[03:10:40] bobry is now away
[03:12:02] kwis is now offline
[03:15:41] bobry is now away
[03:20:41] bobry is now away
[03:25:43] bobry is now away
[03:30:42] bobry is now away
[03:35:42] bobry is now away
[03:38:11] sypper.pit is now es-net.ru
[03:38:11] sypper.pit is now es-net.ru
[03:38:44] sypper.pit is now es-net.ru
[03:40:42] bobry is now away
[03:43:46] sypper.pit is now es-net.ru
[03:45:44] bobry is now away
[03:48:47] sypper.pit is now es-net.ru
[03:50:45] bobry is now away
[03:53:47] sypper.pit is now es-net.ru
[03:55:46] bobry is now away
[03:58:49] sypper.pit is now es-net.ru
[04:00:46] bobry is now away
[04:03:49] sypper.pit is now es-net.ru
[04:05:47] bobry is now away
[04:08:51] sypper.pit is now es-net.ru
[04:10:48] bobry is now away
[04:13:51] sypper.pit is now es-net.ru
[04:15:48] bobry is now away
[04:18:52] sypper.pit is now es-net.ru
[04:20:49] bobry is now away
[04:23:53] sypper.pit is now es-net.ru
[04:25:50] bobry is now away
[04:28:54] sypper.pit is now es-net.ru
[04:30:51] bobry is now away
[04:33:55] sypper.pit is now es-net.ru
[04:35:52] bobry is now away
[04:38:55] sypper.pit is now es-net.ru
[04:40:53] bobry is now away
[04:43:55] sypper.pit is now es-net.ru
[04:45:54] bobry is now away
[04:48:56] sypper.pit is now es-net.ru
[04:50:55] bobry is now away
[04:53:58] sypper.pit is now es-net.ru
[04:55:55] bobry is now away
[04:58:59] sypper.pit is now es-net.ru
[05:00:55] bobry is now away
[05:01:01] sypper.pit is now xa
[05:01:01] sypper.pit is now xa
[05:01:05] sypper.pit is now es-net.ru
[05:01:06] sypper.pit is now es-net.ru
[05:04:00] sypper.pit is now es-net.ru
[05:05:56] bobry is now away
[05:09:01] sypper.pit is now es-net.ru
[05:09:28] sypper.pit is now xa
[05:09:28] sypper.pit is now xa
[05:10:57] bobry is now away
[05:14:02] sypper.pit is now xa
[05:15:57] bobry is now away
[05:19:03] sypper.pit is now xa
[05:20:58] bobry is now away
[05:24:05] sypper.pit is now xa
[05:25:59] bobry is now away
[05:29:06] sypper.pit is now xa
[05:30:13] sypper.pit is now es-net.ru
[05:30:13] sypper.pit is now es-net.ru
[05:30:59] bobry is now away
[05:34:06] sypper.pit is now es-net.ru
[05:35:59] bobry is now away
[05:39:06] sypper.pit is now es-net.ru
[05:39:40] sypper.pit is now xa
[05:39:40] sypper.pit is now xa
[05:39:43] sypper.pit is now es-net.ru
[05:39:43] sypper.pit is now es-net.ru
[05:41:01] bobry is now away
[05:44:07] sypper.pit is now es-net.ru
[05:46:03] bobry is now away
[05:49:08] sypper.pit is now es-net.ru
[05:51:03] bobry is now away
[05:54:08] sypper.pit is now es-net.ru
[05:56:04] bobry is now away
[05:59:08] sypper.pit is now es-net.ru
[06:01:04] bobry is now away
[06:02:50] dicos is now online
[06:04:09] sypper.pit is now es-net.ru
[06:06:06] bobry is now away
[06:07:40] sypper.pit is now xa
[06:07:40] sypper.pit is now xa
[06:09:09] sypper.pit is now xa
[06:09:22] sypper.pit is now es-net.ru
[06:09:22] sypper.pit is now es-net.ru
[06:09:50] dicos is now away
[06:09:52] dicos is now away
[06:11:06] bobry is now away
[06:14:10] sypper.pit is now es-net.ru
[06:16:07] bobry is now away
[06:19:11] sypper.pit is now es-net.ru
[06:21:08] bobry is now away
[06:24:11] sypper.pit is now es-net.ru
[06:26:10] bobry is now away
[06:29:12] sypper.pit is now es-net.ru
[06:31:10] bobry is now away
[06:34:12] sypper.pit is now es-net.ru
[06:35:32] dicos is now away
[06:35:33] dicos is now online
[06:35:49] sypper.pit is now xa
[06:35:50] sypper.pit is now xa
[06:35:53] sypper.pit is now es-net.ru
[06:35:54] sypper.pit is now es-net.ru
[06:36:09] bobry is now away
[06:39:13] sypper.pit is now es-net.ru
[06:41:11] bobry is now away
[06:44:13] sypper.pit is now es-net.ru
[06:46:10] bobry is now away
[06:49:13] sypper.pit is now es-net.ru
[06:51:11] bobry is now away
[06:54:06] dicos is now away
[06:54:08] dicos is now away
[06:54:14] sypper.pit is now es-net.ru
[06:56:13] bobry is now away
[06:56:28] dicos is now away
[06:56:30] dicos is now online
[06:59:15] sypper.pit is now es-net.ru
[07:01:13] bobry is now away
[07:02:17] sypper.pit is now xa
[07:02:18] sypper.pit is now xa
[07:03:06] sypper.pit is now es-net.ru
[07:03:06] sypper.pit is now es-net.ru
[07:04:15] sypper.pit is now es-net.ru
[07:06:14] bobry is now away
[07:08:34] sypper.pit is now offline
[07:11:14] bobry is now away
[07:16:15] bobry is now away
[07:21:16] bobry is now away
[07:26:15] bobry is now away
[07:27:59] alecs is now online
[07:27:59] alecs is now online
[07:28:09] alecs is now online
[07:28:10] alecs is now online
[07:31:16] bobry is now away
[07:32:51] alecs is now online
[07:36:17] bobry is now away
[07:37:52] alecs is now online
[07:41:17] bobry is now away
[07:42:52] alecs is now online
[07:46:18] bobry is now away
[07:47:53] alecs is now online
[07:51:19] bobry is now away
[07:52:54] alecs is now online
[07:56:21] bobry is now away
[07:57:01] alecs is now offline
[08:01:22] bobry is now away
[08:06:24] bobry is now away
[08:11:25] bobry is now away
[08:16:26] bobry is now away
[08:16:32] dicos is now away
[08:16:34] dicos is now away
[08:19:38] dicos is now away
[08:19:40] dicos is now online
[08:21:25] bobry is now away
[08:25:34] dicos is now away
[08:25:36] dicos is now away
[08:26:28] bobry is now away
[08:28:58] dicos is now away
[08:29:00] dicos is now online
[08:31:30] bobry is now away
[08:36:30] bobry is now away
[08:41:32] bobry is now away
[08:42:46] wiz is now online
[08:46:19] wiz is now offline
[08:46:33] bobry is now away
[08:51:36] bobry is now away
[08:56:36] bobry is now away
[09:00:06] bobry is now away
[09:01:36] bobry is now away
[09:06:26] d1ffuz0r is now online
[09:06:37] bobry is now away
[09:11:13] d1ffuz0r is now offline
[09:11:17] d1ffuz0r is now online
[09:11:37] bobry is now away
[09:15:54] bobry is now away
[09:16:39] bobry is now away
[09:19:25] bobry is now away
[09:21:06] d1ffuz0r is now offline
[09:21:09] d1ffuz0r is now online
[09:21:34] wiz is now online
[09:21:40] bobry is now away
[09:21:55] d1ffuz0r is now offline
[09:21:58] d1ffuz0r is now online
[09:23:35] d1ffuz0r is now offline
[09:26:41] bobry is now away
[09:27:44] d1ffuz0r is now online
[09:27:51] bobry is now away
[09:28:10] d1ffuz0r is now offline
[09:28:15] bobry is now away
[09:28:20] d1ffuz0r is now online
[09:31:43] bobry is now away
[09:33:23] bobry is now away
[09:36:43] bobry is now away
[09:41:44] bobry is now away
[09:42:11] bobry is now away
[09:44:49] Tony is now online
[09:46:45] bobry is now away
[09:47:49] RaD is now online
[09:47:49] RaD is now online
[09:49:44] RaD: re all
[09:51:45] bobry is now away
[09:51:56] RaD is now online
[09:53:06] d1ffuz0r is now offline
[09:53:07] d1ffuz0r is now online
[09:56:45] bobry is now away
[09:56:51] ds.tihonov is now дома! :)
[09:56:56] RaD is now online
[10:01:47] bobry is now away
[10:01:57] RaD is now online
[10:06:47] bobry is now away
[10:06:59] RaD is now online
[10:11:47] bobry is now away
[10:12:02] RaD is now online
[10:16:49] bobry is now away
[10:17:03] RaD is now online
[10:18:14] dicos is now away
[10:18:16] dicos is now away
[10:21:05] ink08 is now online
[10:21:50] bobry is now away
[10:22:05] RaD is now online
[10:22:27] bobry is now away
[10:26:51] bobry is now away
[10:27:07] RaD is now online
[10:31:05] ink08 is now away
[10:31:52] bobry is now away
[10:32:07] RaD is now online
[10:36:53] bobry is now away
[10:37:09] RaD is now online
[10:37:29] zarg is now online
[10:38:26] dicos is now away
[10:38:28] dicos is now online
[10:38:40] vw is now online
[10:38:40] vw is now online
[10:40:50] erraen is now online
[10:40:52] erraen is now online
[10:41:54] bobry is now away
[10:42:09] RaD is now online
[10:42:35] ink08 is now online
[10:43:36] vw is now online
[10:44:48] erraen is now online
[10:46:55] bobry is now away
[10:47:11] RaD is now online
[10:48:37] vw is now online
[10:49:48] erraen is now online
[10:51:50] dicos is now away
[10:51:52] dicos is now away
[10:51:54] bobry is now away
[10:52:10] RaD is now online
[10:53:38] vw is now online
[10:54:47] erraen is now online
[10:56:55] bobry is now away
[10:57:10] RaD is now online
[10:57:56] dicos is now away
[10:57:58] dicos is now online
[10:58:38] vw is now online
[10:59:49] erraen is now online
[11:00:01] wiz is now away
[11:01:57] bobry is now away
[11:02:11] RaD is now online
[11:03:38] vw is now online
[11:04:51] erraen is now online
[11:06:57] bobry is now away
[11:07:12] RaD is now online
[11:08:39] vw is now online
[11:09:51] erraen is now online
[11:11:59] bobry is now away
[11:12:12] RaD is now online
[11:12:36] wiz is now online
[11:13:41] vw is now online
[11:14:42] dicos is now offline
[11:14:52] erraen is now online
[11:14:56] gigimon is now online
[11:15:21] d1ffuz0r is now offline
[11:15:24] d1ffuz0r is now online
[11:16:05] d1ffuz0r is now offline
[11:16:07] gigimon is now offline
[11:16:09] d1ffuz0r is now online
[11:17:00] bobry is now away
[11:17:13] RaD is now online
[11:18:06] gigimon is now online
[11:18:42] vw is now online
[11:19:53] erraen is now online
[11:20:17] Tony is now away
[11:21:04] bobry- is now online
[11:21:05] bobry- is now online
[11:22:01] bobry is now away
[11:22:09] vw is now away
[11:22:09] vw is now away
[11:22:13] RaD is now online
[11:23:42] vw is now away
[11:24:54] erraen is now online
[11:25:52] bobry- is now online
[11:27:01] bobry is now away
[11:27:13] RaD is now online
[11:28:42] vw is now away
[11:28:43] kwis is now online
[11:29:46] vw is now online
[11:29:46] vw is now online
[11:29:54] erraen is now online
[11:30:52] bobry- is now online
[11:32:02] bobry is now away
[11:32:14] RaD is now online
[11:33:42] vw is now online
[11:34:53] erraen is now online
[11:35:54] bobry- is now online
[11:37:03] bobry is now away
[11:37:16] RaD is now online
[11:37:41] d1ffuz0r is now offline
[11:37:42] d1ffuz0r is now online
[11:38:43] vw is now online
[11:39:54] erraen is now online
[11:40:54] bobry- is now online
[11:42:03] bobry is now away
[11:42:10] ink08: http://pastebin.com/3i8K8qiV
подскажите как html-теги тоже брать?
[11:42:18] RaD is now online
[11:43:43] vw is now online
[11:44:55] erraen is now online
[11:45:17] Tony is now xa
[11:45:55] bobry- is now online
[11:47:05] bobry is now away
[11:47:16] MAVr is now Да, я здесь.
[11:47:17] RaD is now online
[11:48:43] vw is now online
[11:49:56] erraen is now online
[11:49:57] wistful is now online
[11:50:04] xa4a is now away
[11:50:44] wistful is now offline
[11:50:56] bobry- is now online
[11:51:30] gigimon: ink08: print topic.tag
[11:51:31] vw is now away
[11:51:31] vw is now away
[11:51:41] gigimon: вроде как никак нельзя было, чтоб выводило и тэг
[11:51:44] gigimon: иначе смысл?
[11:52:05] bobry is now away
[11:52:18] RaD is now online
[11:53:44] vw is now away
[11:54:42] RaD: он про внутренние теги, те что внутри div :)
[11:54:57] erraen is now online
[11:55:18] ink08: да, внутри div есть html-теги
[11:55:56] bobry- is now online
[11:56:29] RaD: ну так и сделай цикл по внутренним тегам, ты список смотрел, которые тебе возвратили?
[11:56:56] vw is now online
[11:56:56] vw is now online
[11:57:05] bobry is now away
[11:57:19] RaD is now online
[11:58:23] ink08: RaD: какой список?
[11:58:45] vw is now online
[11:59:57] erraen is now online
[12:00:49] gigimon: etree.tostring(tag)
[12:00:56] gigimon: он тогда печатает текст из всех потомков также)
[12:00:57] bobry- is now online
[12:01:17] bobry- is now offline
[12:01:29] nott is now online
[12:02:06] bobry is now away
[12:02:20] RaD is now online
[12:03:29] огыешсук is now online
[12:03:45] vw is now online
[12:04:58] erraen is now online
[12:07:07] bobry is now away
[12:07:20] RaD is now online
[12:08:46] vw is now online
[12:09:59] erraen is now online
[12:12:07] bobry is now away
[12:12:22] RaD is now online
[12:13:47] vw is now online
[12:15:00] erraen is now online
[12:15:24] ink08: gigimon: спс, получилось etree.tostring(topic, encoding=unicode)
[12:17:08] bobry is now away
[12:17:21] nmk is now online
[12:17:22] RaD is now online
[12:17:31] d1ffuz0r is now offline
[12:17:32] d1ffuz0r is now online
[12:18:47] vw is now online
[12:19:10] bobry- is now online
[12:19:10] bobry- is now online
[12:20:00] erraen is now online
[12:20:47] bobry- is now online
[12:21:55] xa4a is now away
[12:21:59] xa4a is now online
[12:22:08] bobry is now away
[12:22:23] RaD is now online
[12:23:47] vw is now online
[12:25:10] erraen is now online
[12:25:48] bobry- is now online
[12:27:09] bobry is now away
[12:27:23] RaD is now online
[12:28:19] vw is now online
[12:30:10] erraen is now online
[12:31:15] bobry- is now online
[12:31:22] kwis is now offline
[12:31:24] kwis is now online
[12:31:28] kwis is now online
[12:32:10] bobry is now away
[12:32:24] RaD is now online
[12:33:19] vw is now online
[12:35:11] erraen is now online
[12:36:14] bobry- is now online
[12:37:11] bobry is now away
[12:37:18] erraen is now offline
[12:37:24] RaD is now online
[12:37:25] erraen is now online
[12:37:25] erraen is now online
[12:37:31] zarg is now away
[12:38:20] vw is now online
[12:40:06] zarg is now offline
[12:40:49] d1ffuz0r is now offline
[12:40:49] d1ffuz0r is now online
[12:41:14] erraen is now online
[12:41:15] bobry- is now online
[12:42:11] bobry is now away
[12:42:21] vw is now away
[12:42:21] vw is now away
[12:42:25] RaD is now online
[12:43:20] vw is now away
[12:43:31] pc_ is now online
[12:46:15] erraen is now online
[12:46:15] bobry- is now online
[12:47:12] bobry is now away
[12:47:25] RaD is now online
[12:48:20] vw is now away
[12:50:05] deepwalker is now online
[12:51:15] erraen is now online
[12:51:16] bobry- is now online
[12:52:12] bobry is now away
[12:52:25] RaD is now online
[12:53:21] vw is now away
[12:55:34] tilarids is now online
[12:56:15] erraen is now online
[12:56:26] bobry- is now online
[12:57:13] bobry is now away
[12:57:27] RaD is now online
[12:58:22] vw is now away
[13:00:49] vw is now online
[13:00:49] vw is now online
[13:01:16] erraen is now online
[13:01:26] bobry- is now online
[13:02:10] RaD is now away
[13:02:10] RaD is now away
[13:02:12] bobry is now away
[13:02:27] RaD is now away
[13:03:23] vw is now online
[13:06:16] erraen is now online
[13:06:30] bobry- is now online
[13:07:13] bobry is now away
[13:07:28] RaD is now away
[13:08:23] vw is now online
[13:11:16] erraen is now online
[13:11:28] bobry- is now online
[13:12:12] RaD is now away
[13:12:13] bobry is now away
[13:13:24] vw is now online
[13:16:17] erraen is now online
[13:16:30] bobry- is now online
[13:17:12] RaD is now away
[13:17:13] bobry is now away
[13:18:24] vw is now online
[13:21:18] erraen is now online
[13:21:32] bobry- is now online
[13:22:10] RaD is now xa
[13:22:10] RaD is now xa
[13:22:12] RaD is now xa
[13:22:12] bobry is now away
[13:23:24] vw is now online
[13:26:19] erraen is now online
[13:26:36] bobry- is now online
[13:26:51] MAVr is now away
[13:26:52] MAVr is now away
[13:27:13] RaD is now xa
[13:27:13] bobry is now away
[13:27:29] bobry- is now away
[13:27:29] bobry- is now away
[13:27:29] bobry- is now away
[13:28:26] vw is now online
[13:30:06] MAVr is now Да, я здесь.
[13:30:35] xa4a is now offline
[13:31:20] erraen is now online
[13:31:39] bobry- is now away
[13:32:14] RaD is now xa
[13:32:15] bobry is now away
[13:33:22] xa4a is now online
[13:33:26] cutwater is now online
[13:33:27] vw is now online
[13:35:11] cutwater: утро господа
[13:35:20] cutwater: Kyiv.py #4 таки годен
[13:35:57] xa4a is now offline
[13:36:07] Tony is now online
[13:36:20] erraen is now online
[13:36:42] bobry- is now away
[13:37:15] RaD is now xa
[13:37:16] bobry is now away
[13:38:27] vw is now online
[13:38:34] gigimon is now online
[13:38:49] nott is now away
[13:41:21] erraen is now online
[13:41:37] nott is now online
[13:41:44] bobry- is now away
[13:42:17] RaD is now xa
[13:42:18] bobry is now away
[13:42:42] wiz is now away
[13:43:27] vw is now online
[13:44:41] MAVr is now away
[13:44:42] MAVr is now away
[13:44:56] ds.tihonov: добрый день, подскажите, как во freebsd настроить автостарт plone ?
[13:45:03] d1ffuz0r is now offline
[13:45:04] d1ffuz0r is now online
[13:46:22] erraen is now online
[13:46:31] MAVr is now Да, я здесь.
[13:46:44] bobry- is now away
[13:46:50] cutwater: ds.tihonov: я конечно не специалист, но можно почитать что-нибудь вроде http://www.freebsd.org/doc/handbook/configtuning-starting-services.html
[13:47:17] RaD is now xa
[13:47:18] bobry is now away
[13:47:24] ds.tihonov: cutwater: да, возможно придётся так и делать, сапсибо!
[13:48:28] vw is now online
[13:51:10] gigimon is now online
[13:51:23] erraen is now online
[13:51:45] bobry- is now away
[13:52:04] xa4a is now online
[13:52:18] bobry is now away
[13:52:19] RaD is now xa
[13:53:12] levsha: вообще то plone при установке из портов должен был поставить zope, в комплекте с которым должен уже устанавливаться startup script
[13:53:29] vw is now online
[13:56:24] erraen is now online
[13:56:36] ds.tihonov: levsha: ну из поротов ставить не хочется, там сильно старый plone, я думаю , что написать простой старт-ап скрипт и успокоиться :)
[13:56:46] bobry- is now away
[13:56:54] levsha: ну поставь только zope с портов
[13:57:06] xa4a is now away
[13:57:06] ds.tihonov: хорошо
[13:57:18] bobry is now away
[13:57:19] RaD is now xa
[13:57:43] wiz is now xa
[13:58:28] vw is now online
[14:01:24] erraen is now online
[14:01:49] bobry- is now away
[14:02:18] bobry is now away
[14:02:21] RaD is now xa
[14:03:29] vw is now online
[14:04:47] nott is now away
[14:06:25] erraen is now online
[14:06:52] bobry- is now away
[14:07:07] xa4a is now away
[14:07:19] bobry is now away
[14:07:21] RaD is now xa
[14:08:29] vw is now online
[14:11:25] erraen is now online
[14:11:57] bobry- is now away
[14:12:21] bobry is now away
[14:12:22] RaD is now xa
[14:12:55] nott is now online
[14:13:19] cutwater is now away
[14:13:30] vw is now online
[14:14:13] pc_ is now away
[14:14:15] kwis is now away
[14:16:06] xa4a is now away
[14:16:09] xa4a is now online
[14:16:27] erraen is now online
[14:16:58] bobry- is now away
[14:17:21] bobry is now away
[14:17:22] RaD is now xa
[14:18:16] ink08: http://itmages.ru/image/view/284752/61b486bf - это что за прикол. воткнул по усб телефон на зарядку и выскачило
[14:18:31] vw is now online
[14:19:14] xa4a is now away
[14:21:03] nott is now away
[14:21:27] erraen is now online
[14:21:59] bobry- is now away
[14:22:21] bobry is now away
[14:22:23] RaD is now xa
[14:22:36] Vadim Chernysh is now away
[14:22:36] Vadim Chernysh is now away
[14:23:31] vw is now online
[14:24:01] slav0nic is now away
[14:24:13] pc_ is now xa
[14:24:15] kwis is now xa
[14:26:28] erraen is now online
[14:26:41] Vadim Chernysh is now away
[14:27:01] bobry- is now away
[14:27:13] xa4a is now away
[14:27:21] bobry is now away
[14:27:23] xa4a is now away
[14:27:24] RaD is now xa
[14:28:31] vw is now online
[14:28:39] xa4a is now offline
[14:29:33] bobry- is now away
[14:29:33] bobry- is now online
[14:29:33] bobry- is now online
[14:31:14] xa4a is now away
[14:31:28] erraen is now online
[14:31:38] xa4a is now online
[14:31:42] Vadim Chernysh is now away
[14:31:59] bobry- is now online
[14:32:23] bobry is now away
[14:32:25] RaD is now xa
[14:32:41] Vadim Chernysh is now away
[14:32:41] Vadim Chernysh is now away
[14:33:19] cutwater is now xa
[14:33:32] vw is now online
[14:36:28] erraen is now online
[14:36:43] Vadim Chernysh is now away
[14:37:02] bobry- is now online
[14:37:13] pc_ is now online
[14:37:23] bobry is now away
[14:37:25] RaD is now xa
[14:38:33] vw is now online
[14:39:19] gigimon: ink08: как модем может юзать
[14:41:29] erraen is now online
[14:41:44] Vadim Chernysh is now away
[14:42:03] bobry- is now online
[14:42:24] bobry is now away
[14:42:26] RaD is now xa
[14:42:33] tilarids is now away
[14:42:41] xa4a is now away
[14:43:33] vw is now online
[14:43:36] огыешсук is now offline
[14:44:46] xa4a is now online
[14:45:58] RaD is now online
[14:45:58] RaD is now online
[14:46:29] erraen is now online
[14:46:44] Vadim Chernysh is now away
[14:47:05] bobry- is now online
[14:47:23] bobry is now away
[14:47:26] RaD is now online
[14:47:47] Vadim Chernysh is now away
[14:47:47] Vadim Chernysh is now away
[14:48:07] tilarids is now online
[14:48:33] vw is now online
[14:51:03] nott is now online
[14:51:31] erraen is now online
[14:51:45] Vadim Chernysh is now away
[14:52:08] bobry- is now online
[14:52:24] bobry is now away
[14:52:27] RaD is now online
[14:53:34] vw is now online
[14:54:01] xa4a: там вот в стокгольм ищут python/erlang англоговорящих. кому-то интересно?
[14:55:17] bobry- is now away
[14:55:17] bobry- is now away
[14:55:17] bobry- is now away
[14:55:38] bobry- is now away
[14:55:38] bobry- is now online
[14:55:38] bobry- is now online
[14:55:43] wiz is now online
[14:56:07] xa4a is now away
[14:56:31] erraen is now online
[14:56:46] Vadim Chernysh is now away
[14:57:13] bobry- is now online
[14:57:23] bobry is now away
[14:57:27] RaD is now online
[14:58:34] vw is now online
[14:59:02] d1ffuz0r: и почему в школе нас учили немецкому .\_/.
[15:00:13] tilarids is now away
[15:00:52] bobry- is now away
[15:00:52] bobry- is now away
[15:01:32] erraen is now online
[15:01:46] Vadim Chernysh is now away
[15:02:14] bobry- is now away
[15:02:22] bobry- is now away
[15:02:22] bobry- is now online
[15:02:22] bobry- is now online
[15:02:25] bobry is now away
[15:02:28] RaD is now online
[15:02:37] Vadim Chernysh is now away
[15:02:37] Vadim Chernysh is now away
[15:03:01] Vadim Chernysh is now away
[15:03:02] Vadim Chernysh is now away
[15:03:35] vw is now online
[15:03:39] nmk is now xa
[15:04:03] d1ffuz0r is now away
[15:04:05] d1ffuz0r is now online
[15:05:06] ink08 is now away
[15:06:01] cutwater is now online
[15:06:07] xa4a is now away
[15:06:33] erraen is now online
[15:06:47] Vadim Chernysh is now away
[15:06:52] nmk is now online
[15:07:15] bobry- is now online
[15:07:25] bobry is now away
[15:07:29] RaD is now online
[15:07:51] ink08 is now online
[15:08:35] vw is now online
[15:08:59] Vadim Chernysh: привет всем
[15:09:05] cutwater: и тебе привет
[15:09:13] d1ffuz0r: привет
[15:09:29] cutwater: так кто в субботу был на Kyiv.py #4 признавайтесь
[15:10:13] tilarids is now xa
[15:10:39] wiz: d1ffuz0r, и почему в школе ты не учил английский для себя?..
[15:10:57] Vadim Chernysh: Вы не знаете, почему, когда я вызываю property из класса, то мне пишет <property object at 0х....
[15:10:58] Vadim Chernysh: ?
[15:11:03] Vadim Chernysh: почему так может быть?
[15:11:03] d1ffuz0r: не думал что понадобится)
[15:11:07] Vadim Chernysh: base класса нету
[15:11:24] Vadim Chernysh: вместо <property object at должно выводить значение
[15:11:34] erraen is now online
[15:11:48] Vadim Chernysh is now away
[15:11:55] pc_ is now away
[15:12:16] bobry- is now online
[15:12:25] bobry is now away
[15:12:26] cutwater: Vadim Chernysh: покажи код
[15:12:30] RaD is now online
[15:12:41] Vadim Chernysh: сек
[15:12:57] Vadim Chernysh is now away
[15:12:57] Vadim Chernysh is now away
[15:13:36] vw is now online
[15:15:29] Vadim Chernysh: http://paste.in.ua/3074/
[15:16:21] cutwater: пиздец
[15:16:34] Vadim Chernysh: знаю)
[15:16:35] erraen is now online
[15:16:48] Vadim Chernysh is now away
[15:16:48] Vadim Chernysh: что не так?
[15:17:16] bobry- is now online
[15:17:25] cutwater: Return a property attribute for new-style classes (classes that derive from object).
[15:17:26] bobry is now away
[15:17:31] RaD is now online
[15:17:37] cutwater: Vadim Chernysh: ты читать не умеешь, вот что не так
[15:17:44] cutwater: а еще табы в коде вместо пробелов
[15:17:44] Vadim Chernysh: да мне этого не писало
[15:17:58] cutwater: (classes that derive from object).
[15:18:16] cutwater: Vadim Chernysh: ферштейн?
[15:18:29] d1ffuz0r is now away
[15:18:30] Vadim Chernysh: что?
[15:18:31] d1ffuz0r is now online
[15:18:33] ink08 is now away
[15:18:37] vw is now online
[15:18:52] cutwater: Vadim Chernysh: класс MyChar old-style класс
[15:19:14] cutwater: так как у него базовый класс не object или его наследник
[15:19:27] cutwater: для old-style class проперти не работают
[15:19:30] ink08 is now online
[15:19:32] Vadim Chernysh: понял
[15:19:51] cutwater: и еще табы вместо пробелов и смысл кода - какая-то хуита
[15:19:54] cutwater: что ты изобретаешь?
[15:20:50] Vadim Chernysh: ооп апи для одного скриптового движка для одной онлайн игры. сразу скажу, в игры я не играю! Это спортивный интерес
[15:21:15] cutwater: Vadim Chernysh: PEP8
[15:21:35] Vadim Chernysh: ок
[15:21:35] erraen is now online
[15:21:49] Vadim Chernysh is now away
[15:21:55] pc_ is now xa
[15:22:18] bobry- is now online
[15:22:26] bobry is now away
[15:22:31] RaD is now online
[15:22:47] cutwater: The forms <> and != are equivalent; for consistency with C, != is preferred; where != is mentioned below <> is also accepted. The <> spelling is considered obsolescent.
[15:22:54] cutwater: Ну и специально для тебя
[15:23:01] cutwater: <> это говно
[15:23:26] Vadim Chernysh: jr
[15:23:28] Vadim Chernysh: ok
[15:23:37] vw is now online
[15:23:59] Vadim Chernysh: new style class в питон 2.6 появились?
[15:24:18] cutwater: если там есть property то очевидно ж появились
[15:24:31] Vadim Chernysh: у меня 2.5 просто
[15:24:39] cutwater: они в 2.2 появились
[15:24:44] Vadim Chernysh: я понял
[15:25:33] tilarids is now online
[15:26:21] xa4a is now away
[15:26:25] xa4a is now online
[15:26:36] erraen is now online
[15:26:50] Vadim Chernysh is now away
[15:27:19] bobry- is now online
[15:27:27] bobry is now away
[15:27:32] RaD is now online
[15:28:37] vw is now online
[15:29:35] огыешсук is now online
[15:30:35] tilarids is now away
[15:31:37] erraen is now online
[15:31:51] Vadim Chernysh is now away
[15:31:54] bobry- is now away
[15:31:54] bobry- is now away
[15:31:54] bobry- is now away
[15:32:01] Vadim Chernysh: унаследовал я класс MyChar(object)
[15:32:04] Vadim Chernysh: все тоже самое
[15:32:20] bobry- is now away
[15:32:28] bobry is now away
[15:32:32] RaD is now online
[15:33:06] Vadim Chernysh is now away
[15:33:06] Vadim Chernysh is now away
[15:33:24] bobry- is now online
[15:33:24] bobry- is now online
[15:33:38] vw is now online
[15:33:53] Vadim Chernysh: если инстанс создать на прямую - типа c = MyChar()
[15:33:56] Vadim Chernysh: то все работает
[15:34:05] cutwater: у меня все работает, что я делаю не так
[15:34:08] cutwater: показывай код
[15:35:22] cutwater: ну ладно
[15:35:43] pc_ is now online
[15:36:20] Vadim Chernysh: http://paste.in.ua/3075/
[15:36:38] erraen is now online
[15:36:52] Vadim Chernysh is now away
[15:37:17] Vadim Chernysh is now away
[15:37:22] bobry- is now online
[15:37:29] bobry is now away
[15:37:33] RaD is now online
[15:38:37] vw is now online
[15:40:34] tilarids is now xa
[15:40:36] vw is now offline
[15:40:42] cutwater: вообще по всей видимости у тебя проблема как раз в твоем чудном классе Char
[15:40:50] cutwater: который называется горе от ума
[15:41:39] erraen is now online
[15:41:50] Vadim Chernysh: ну назвал я его по другому. проблема не изменилась
[15:41:53] Vadim Chernysh is now away
[15:41:54] cutwater: эм нет
[15:41:56] cutwater: ты не понял
[15:42:17] Vadim Chernysh: мне тут советовали делать через factory, но я не вкурил
[15:42:29] bobry- is now online
[15:42:29] bobry is now away
[15:42:33] RaD is now online
[15:42:36] cutwater: суть в том, что у тебя когда ты делаешь экземпляр класса через Char не вызываются __get__, __set__
[15:42:43] cutwater: Vadim Chernysh: правильно советовали
[15:42:45] cutwater: ибо ты написал херню
[15:42:50] Vadim Chernysh: :)
[15:43:02] cutwater: Vadim Chernysh: ну почитай. сделать ф-цию вместо __new__ переопределения
[15:43:08] xa4a: Vadim Chernysh: зачем ты сделал класс с одним только __new__ ?
[15:43:33] Vadim Chernysh: xa4a: ну он пустой пока. там буду методы еще
[15:43:58] xa4a: и что? методы этого класса не идут же никуда
[15:44:32] xa4a: и сам класс ты не инстанциируешь
[15:44:34] Vadim Chernysh: если помнишь, в пятницу ты мне посоветовал сделать фактори. я в них не разобрался.
[15:44:59] cutwater: xa4a: а вот я щас теперь пытаюсь вкурить механику этого решения и почему оно так себя ведет
[15:44:59] xa4a: да
[15:45:04] cutwater: Vadim Chernysh: это печально
[15:45:13] xa4a: cutwater
Vadim Chernysh: ну почитай. сделать ф-цию вместо __new__ переопределения
[15:45:15] xa4a: это верно
[15:45:17] Vadim Chernysh: ок
[15:45:26] xa4a: посмотри, что я писал в пятницу
[15:45:31] xa4a: там была одна функция и два класса
[15:45:36] xa4a: и один от другого наследовался
[15:45:56] tilarids is now online
[15:46:40] erraen is now online
[15:46:53] Vadim Chernysh is now away
[15:46:55] Vadim Chernysh: я просто не вкурил как эту фабрику привязать к классам
[15:47:13] cutwater: xa4a: может ты мне объяснишь чего тут в New происходит и как оно работает
[15:47:29] cutwater: или я затупил на таком нестандартном решении :-D
[15:47:30] bobry is now away
[15:47:30] bobry- is now online
[15:47:32] RaD is now online
[15:47:39] xa4a: cutwater: я умею пользоваться __new__ только в метаклассах
[15:47:46] cutwater: ну я тоже
[15:47:56] Vadim Chernysh: это решение я нагуглил, не сам придумал
[15:48:16] xa4a: вроде в wtforms там при конструировании объекта вызывается __new__ и делает какую-то правильную магию
[15:48:26] xa4a: Vadim Chernysh: это решение другой проблемы
[15:48:33] xa4a: посмотри логи за пятницу
[15:48:43] Vadim Chernysh: смотрю логи, пытаюсь понять
[15:49:34] xa4a: (ExtendedChar if arg is Self() else BaseChar)(arg)
[15:50:00] xa4a: def Char(arg): (MyChar if arg is Self() else BaseChar)(arg) в твоём случае
[15:50:01] kwis is now online
[15:50:58] tilarids is now away
[15:51:30] xa4a: где class OtherChar(object): pass; class MyChar(OtherChar): pass
[15:51:38] cutwater: class Foo(object):
def __new__(cls, *args, **kwargs):
print '__new__', args, kwargs
return object.__new__(Bar, *args, **kwargs)
[15:51:41] erraen is now online
[15:51:51] xa4a: это если ты всё ещё, как в пятницу, хочешь чтобы у других методов не было лишних
[15:51:54] Vadim Chernysh is now away
[15:51:54] cutwater: ну вот как-то так оно больше похоже на правду если подменять один класс другим в __new__ и даже работает
[15:52:05] cutwater: но это хреновый код, я его написал только для проверки теории
[15:52:30] bobry is now away
[15:52:32] bobry- is now online
[15:52:33] RaD is now online
[15:53:39] Vadim Chernysh: Спасибо всем! Теперь все понял
[15:53:45] Vadim Chernysh: в пятницу не досмотрел
[15:53:55] cutwater: хм если бы
[15:54:59] cutwater: xa4a: вобщем-то ответ на то как работает __new__ и object.__new__ хрен его знает, надо обкуриться страшным мануалом
[15:55:39] xa4a: я бы остановился на предположении, что object.__new__ вызывает cls.__init__(*args, **kwargs)
[15:55:57] bobry- is now away
[15:55:57] bobry- is now away
[15:55:57] bobry- is now away
[15:56:24] xa4a: на каком-то пустом объекте и возвращает результат.
[15:56:42] erraen is now online
[15:56:55] Vadim Chernysh is now away
[15:57:26] cutwater: <class '__main__.Foo'>
<__main__.Foo object at 0x1e3ab50>
пожалуй
[15:57:30] bobry is now away
[15:57:33] bobry- is now away
[15:57:34] RaD is now online
[15:57:41] cutwater: xa4a: ну тогда да все логично
[15:57:58] RaD: камрады, кто с django-piston и basic auth возился?
[15:58:08] cutwater: возился с первым но не вторым
[15:58:09] cutwater: увы
[15:58:21] RaD: а как ты нонанонимус доступ делал?
[15:58:39] cutwater: а никак. задачи такой не стояло. система internal usage only
[15:58:45] RaD: повезло :)
[15:58:54] bobry- is now away
[15:58:54] bobry- is now online
[15:58:54] bobry- is now online
[16:00:57] tilarids is now xa
[16:01:06] RaD is now online
[16:01:42] erraen is now online
[16:01:55] Vadim Chernysh is now away
[16:02:33] bobry is now away
[16:02:34] bobry- is now online
[16:02:35] RaD is now online
[16:03:20] Vadim Chernysh is now away
[16:03:21] Vadim Chernysh is now away
[16:04:19] bobry- is now away
[16:04:19] bobry- is now away
[16:04:19] bobry- is now away
[16:05:09] Vadim Chernysh is now away
[16:05:10] Vadim Chernysh is now away
[16:05:13] bobry- is now away
[16:05:13] bobry- is now online
[16:05:13] bobry- is now online
[16:05:56] Vadim Chernysh is now away
[16:05:57] Vadim Chernysh is now away
[16:06:43] erraen is now online
[16:06:56] Vadim Chernysh is now away
[16:07:33] bobry is now away
[16:07:35] RaD is now online
[16:07:37] bobry- is now online
[16:07:48] MAVr is now offline
[16:08:47] slav0nic is now offline
[16:11:43] erraen is now online
[16:11:55] Vadim Chernysh is now away
[16:12:05] bobry- is now away
[16:12:05] bobry- is now away
[16:12:05] bobry- is now away
[16:12:32] bobry is now away
[16:12:36] RaD is now online
[16:12:38] bobry- is now away
[16:16:07] tilarids is now online
[16:16:44] erraen is now online
[16:16:56] Vadim Chernysh is now away
[16:17:11] bobry- is now away
[16:17:11] bobry- is now online
[16:17:11] bobry- is now online
[16:17:32] bobry is now away
[16:17:36] RaD is now online
[16:17:40] bobry- is now online
[16:18:13] wistful is now online
[16:18:20] wistful is now offline
[16:21:01] Vadim Chernysh is now away
[16:21:01] Vadim Chernysh is now away
[16:21:45] erraen is now online
[16:21:57] Vadim Chernysh is now away
[16:22:13] bobry- is now away
[16:22:13] bobry- is now away
[16:22:13] bobry- is now away
[16:22:19] bobry- is now away
[16:22:19] bobry- is now online
[16:22:19] bobry- is now online
[16:22:34] bobry is now away
[16:22:37] RaD is now online
[16:22:41] bobry- is now online
[16:23:04] Vadim Chernysh is now away
[16:23:05] Vadim Chernysh is now away
[16:23:30] Vadim Chernysh is now away
[16:23:31] Vadim Chernysh is now away
[16:24:05] tilarids is now away
[16:25:46] gigimon is now online
[16:26:05] Vadim Chernysh is now away
[16:26:06] Vadim Chernysh is now away
[16:26:46] erraen is now online
[16:26:57] Vadim Chernysh is now away
[16:26:58] Vadim Chernysh is now away
[16:26:59] Vadim Chernysh is now away
[16:27:35] bobry is now away
[16:27:37] RaD is now online
[16:27:41] bobry- is now online
[16:30:13] Vadim Chernysh is now away
[16:30:14] Vadim Chernysh is now away
[16:30:39] tilarids is now online
[16:30:39] Vadim Chernysh is now away
[16:30:40] Vadim Chernysh is now away
[16:31:15] gigimon is now online
[16:31:46] erraen is now online
[16:31:57] Vadim Chernysh is now away
[16:32:35] bobry is now away
[16:32:37] RaD is now online
[16:32:41] bobry- is now online
[16:32:45] pc_ is now away
[16:33:01] bobry- is now offline
[16:36:47] erraen is now online
[16:36:58] Vadim Chernysh is now away
[16:37:33] tilarids is now away
[16:37:36] bobry is now away
[16:37:38] RaD is now online
[16:39:28] tilarids is now online
[16:41:47] erraen is now online
[16:41:58] Vadim Chernysh is now away
[16:42:35] bobry is now away
[16:42:39] RaD is now online
[16:42:45] pc_ is now xa
[16:43:41] Vadim Chernysh is now away
[16:46:48] erraen is now online
[16:46:48] tilarids is now away
[16:46:59] Vadim Chernysh is now away
[16:47:36] bobry is now away
[16:47:39] RaD is now online
[16:48:31] огыешсук is now away
[16:51:48] erraen is now online
[16:51:55] kwis is now away
[16:51:59] Vadim Chernysh is now away
[16:52:20] огыешсук is now online
[16:52:37] bobry is now away
[16:52:38] RaD is now online
[16:52:49] kwis is now online
[16:54:38] tilarids is now online
[16:55:54] Vadim Chernysh is now away
[16:56:48] erraen is now online
[16:57:20] огыешсук is now away
[16:57:38] bobry is now away
[16:57:39] RaD is now online
[16:58:45] kwis is now away
[17:00:03] nott is now away
[17:00:07] nott is now online
[17:00:28] огыешсук is now online
[17:00:44] Vadim Chernysh is now away
[17:01:49] erraen is now online
[17:02:40] RaD is now online
[17:02:40] bobry is now away
[17:05:45] Vadim Chernysh is now away
[17:06:49] erraen is now online
[17:07:19] RaD is now away
[17:07:19] RaD is now away
[17:07:41] bobry is now away
[17:07:42] RaD is now away
[17:08:45] kwis is now xa
[17:08:55] Vadim Chernysh is now away
[17:09:36] огыешсук is now offline
[17:10:45] Vadim Chernysh is now away
[17:11:50] erraen is now online
[17:12:28] ink08 is now away
[17:12:42] bobry is now away
[17:12:42] RaD is now away
[17:13:25] tilarids is now away
[17:15:24] nott is now away
[17:15:45] Vadim Chernysh is now away
[17:16:06] nott is now online
[17:16:50] erraen is now online
[17:17:42] bobry is now away
[17:17:44] RaD is now away
[17:20:46] Vadim Chernysh is now away
[17:21:30] RaD is now online
[17:21:31] RaD is now online
[17:21:51] erraen is now online
[17:22:43] bobry is now away
[17:22:46] RaD is now online
[17:23:24] tilarids is now xa
[17:24:03] Vadim Chernysh is now away
[17:24:03] Vadim Chernysh is now away
[17:25:46] Vadim Chernysh is now away
[17:26:51] erraen is now online
[17:27:43] bobry is now away
[17:27:46] RaD is now online
[17:28:38] огыешсук is now online
[17:28:42] dicos is now online
[17:30:47] Vadim Chernysh is now away
[17:31:53] erraen is now online
[17:32:28] ink08 is now xa
[17:32:43] bobry is now away
[17:32:46] RaD is now online
[17:34:21] pc_ is now online
[17:35:48] Vadim Chernysh is now away
[17:36:53] erraen is now online
[17:36:56] xa4a is now away
[17:37:44] bobry is now away
[17:37:47] RaD is now online
[17:38:36] tilarids is now online
[17:39:02] xa4a is now online
[17:40:23] RaD is now offline
[17:40:49] Vadim Chernysh is now away
[17:41:17] pc_ is now away
[17:41:54] erraen is now online
[17:42:45] bobry is now away
[17:43:29] pc_ is now online
[17:43:36] tilarids is now away
[17:45:45] erraen is now offline
[17:45:50] Vadim Chernysh is now away
[17:45:52] erraen is now online
[17:45:52] erraen is now online
[17:45:53] erraen is now online
[17:45:54] erraen is now online
[17:46:51] erraen is now online
[17:46:54] scorplex is now chat
[17:47:11] scorplex: привет
[17:47:17] xa4a: привет
[17:47:30] scorplex: помогите с реализацией
[17:47:46] bobry is now away
[17:47:48] scorplex: с массивами точнее
[17:48:29] scorplex: мну нужен быстрый алгоритм проверки
[17:48:36] scorplex: есть ли элемент в массиве
[17:48:45] xa4a: просто используй не массив
[17:48:48] xa4a: в множество
[17:48:54] xa4a: или словарь
[17:49:02] scorplex: у меня массив состоит из массива
[17:49:17] Vadim Chernysh is now away
[17:49:17] Vadim Chernysh is now away
[17:49:22] scorplex: например [1, 1], [2,2] ...
[17:50:04] scorplex: в пхп я бы сделал просто
[17:50:23] scorplex: а тут так не проходит
[17:50:35] xa4a: пхп? быстрый алгоритм?
[17:50:41] xa4a: как алгоритм связан с языком?
[17:50:50] Vadim Chernysh is now away
[17:50:58] scorplex: ну в пхп массивы другие
[17:51:10] gigimon: чем
[17:51:14] xa4a: в массиве, если он отсортирован даже не будет быстрее проверки вхождения, чем в множестве или словаре
[17:51:38] xa4a: *, даже
[17:51:45] scorplex: ну например if isset(arr[100][100])
[17:51:45] xa4a: *даже,
[17:51:50] scorplex: тут же..
[17:51:51] erraen is now online
[17:52:06] xa4a: if arr[100][100] is not None?
[17:52:15] xa4a: только это не проверка вхождения
[17:52:28] xa4a: определись, чего ты хочешь
[17:52:32] xa4a: например код на пхп
[17:52:38] xa4a: (не сюда, разумеется)
[17:52:47] bobry is now away
[17:52:48] scorplex: не, нету на пхп
[17:52:57] scorplex: в общем задача такая
[17:53:04] scorplex: есть массив с координатами
[17:53:12] scorplex: разными
[17:53:13] xa4a: "в общем задача такая" с этого надо начинать
[17:53:35] scorplex: например [10, 15], [100, 200], ...
[17:53:36] tilarids is now xa
[17:53:57] scorplex: мне нужно во первых найти самую маленькую по х
[17:54:06] scorplex: и самую большую
[17:54:11] scorplex: потом перебирать
[17:54:28] scorplex: эти листы и словари не даются
[17:54:39] gigimon: кхм, где тут про вхождение?
[17:54:48] xa4a: перебирать что?
[17:54:57] pc_ is now away
[17:55:10] scorplex: http://otvet.mail.ru/question/3470503/
[17:55:16] xa4a: саммая маленькая пара по х - from operator import itemgetter; min(lst, key=itemgetter(0))
[17:55:16] scorplex: там алгоритм
[17:55:39] scorplex: о
[17:55:50] Vadim Chernysh is now away
[17:55:54] xa4a: тут не перебор нужен
[17:56:16] xa4a: это, кажется, в один проход по матрице решается
[17:56:24] scorplex: хм
[17:56:40] xa4a: это домашнее задание?
[17:56:45] scorplex: кхм
[17:56:51] scorplex: печаль
[17:56:52] xa4a: или ты на олимпиаде сейчас?
[17:56:52] erraen is now online
[17:56:55] scorplex: нет
[17:56:57] xa4a: ок
[17:57:05] scorplex: просто туплю
[17:57:05] xa4a: тогда метод динамического программирования
[17:57:19] pc_ is now online
[17:57:34] xa4a: для каждой ячейки определить максимальный прямоугольник, в котором она находится справа-снизу
[17:57:47] bobry is now away
[17:57:54] xa4a: максимальный прямоугольник = координаты верхнего левого угла
[17:58:08] xa4a: если в ячейке 0 - то None например
[17:58:09] cutwater: интересно при чем здесь php =)
[17:58:29] xa4a: эм… может тебе интересно самому решить?
[17:58:35] xa4a: а то я тут началл...
[17:58:35] scorplex: при том что я там могу задать просто массив в массиве
[17:58:44] xa4a: тут тоже
[17:58:55] scorplex: тут ключи цифровые
[17:58:58] scorplex: там любые
[17:59:09] xa4a: а) тут есть словари с любыми ключами
[17:59:16] xa4a: б) зачем тебе любые, если 0,0 ?
[18:00:01] scorplex: ну я не смог задать массив arr['asdf']['asd']
[18:00:10] scorplex: словарь точнее
[18:00:20] scorplex: причем тут 0, 0?
[18:00:28] cutwater: xa4a: я потерял нить обсуждения
[18:00:36] scorplex: я просто видать не допонимаю
[18:00:46] cutwater: scorplex: давай сначала что ты не смог с примерами кода
[18:00:51] Vadim Chernysh is now away
[18:00:55] xa4a: scorplex: для твоей задачи не нужно ['asdf']['asd']
[18:01:05] scorplex: хорошо
[18:01:08] scorplex: не нужно
[18:01:26] scorplex: но про динамическое программирование я не понял
[18:01:49] scorplex: [17:55:39] <xa4a> для каждой ячейки определить максимальный прямоугольник, в котором она находится справа-снизу
[18:01:50] xa4a: !g решение олимпиадных задач методом динамического программирования
[18:01:53] erraen is now online
[18:02:14] xa4a: второй топик, например
[18:02:16] d1ffuz0r is now offline
[18:02:35] pc_ is now away
[18:02:46] erraen is now offline
[18:02:46] xa4a: scorplex: тебе решение рассказать полностью?
[18:02:47] bobry is now away
[18:02:53] erraen is now online
[18:02:53] erraen is now online
[18:02:53] erraen is now online
[18:02:55] scorplex: ща, почитаю
[18:03:04] xa4a: это правильный ответ :)
[18:03:28] scorplex: а пока почитаю
[18:03:34] scorplex: раз тут такие умные люди
[18:04:31] cutwater: xa4a: это был сарказм?
[18:04:42] scorplex: http://dumpz.org/85786/
[18:04:46] xa4a: cutwater: что именно?
[18:04:56] scorplex: посмотрите если не сложно
[18:05:07] erraen is now online
[18:05:09] scorplex: функция генерирует круг
[18:05:11] cutwater: > раз тут такие умные люди
[18:05:18] cutwater: ну ща
[18:05:24] scorplex: на вход координаты центра и радиус
[18:05:41] xa4a: cutwater: это не моё
[18:05:47] scorplex: на выходе координаты окружности
[18:05:51] Vadim Chernysh is now away
[18:05:53] pc_ is now online
[18:06:24] scorplex: как можно оптимизировать? или переписать?
[18:07:12] xa4a: с использованием полярных координат
[18:07:20] xa4a: и комплексных чисел, встроенных в питон
[18:07:46] bobry is now away
[18:08:47] tilarids is now online
[18:10:03] xa4a: In [6]: import math, cmath
In [7]: R = 1
In [8]: x0, y0 = 0,0
In [9]: for i in range(0, 2*pi):
...: print cmath.rect(R, i) + complex(x0, y0)
[18:10:07] erraen is now online
[18:10:20] xa4a: с соответствующим range()
[18:10:52] Vadim Chernysh is now away
[18:11:07] scorplex: хм
[18:12:21] scorplex: надо перекусить, что бы это осознать..
[18:12:47] bobry is now away
[18:12:55] scorplex: разве так можно ренж задать?
[18:13:12] xa4a: нет
[18:13:26] xa4a: только если это numpy.range
[18:13:35] xa4a: но написать свой аналогичный не составит труда
[18:13:44] scorplex: numpy стоит
[18:13:49] scorplex: а он его поймет?
[18:14:44] xa4a: numpy.arange(0, math.pi, 0.1) понимает
[18:15:08] erraen is now online
[18:15:54] Vadim Chernysh is now away
[18:17:48] bobry is now away
[18:19:35] Vadim Chernysh is now away
[18:19:35] Vadim Chernysh is now away
[18:20:09] erraen is now online
[18:20:54] Vadim Chernysh is now away
[18:22:50] bobry is now away
[18:23:18] dicos is now away
[18:23:21] dicos is now away
[18:23:49] scorplex is now away
[18:25:09] erraen is now online
[18:25:20] dicos is now away
[18:25:22] dicos is now online
[18:25:55] Vadim Chernysh is now away
[18:27:50] bobry is now away
[18:28:57] scorplex is now chat
[18:29:13] огыешсук is now away
[18:29:15] scorplex: говорили мне в школе, учи математику, без нее не куда в программировании
[18:30:09] erraen is now online
[18:30:56] Vadim Chernysh is now away
[18:31:38] огыешсук is now online
[18:32:51] bobry is now away
[18:35:10] erraen is now online
[18:35:56] Vadim Chernysh is now away
[18:37:22] vw is now online
[18:37:22] vw is now online
[18:37:52] bobry is now away
[18:38:16] vw is now online
[18:39:36] scorplex: а как мне это преобразовать во что то более воспринемаемое?
[18:39:37] scorplex: (1447.75187438+1044.92503749j)
[18:39:47] scorplex: что j значит?
[18:40:10] erraen is now online
[18:40:57] Vadim Chernysh is now away
[18:41:41] wiz: !google комплексные числа
[18:42:13] d1ffuz0r is now online
[18:42:20] xa4a: поставь ipython
[18:42:45] xa4a: и сделай x = 0+1j, а потом x.<Tab><Tab>
[18:42:52] bobry is now away
[18:43:18] vw is now online
[18:44:21] scorplex: ты как не то что настоящий программист, а прям сам человек алгоритм
[18:44:40] wiz: «object of type 'complex' has no len()» а жаль... (=
[18:44:40] scorplex: все ответы в виде алгоритма
[18:44:49] Vadim Chernysh is now away
[18:44:50] Vadim Chernysh is now away
[18:45:11] erraen is now online
[18:45:16] vw is now away
[18:45:17] vw is now away
[18:45:57] Vadim Chernysh is now away
[18:47:26] nott is now away
[18:47:54] bobry is now away
[18:48:18] vw is now away
[18:49:11] scorplex: я окончательно запутался
[18:49:24] scorplex: ну пожалейте меня, у меня образование менеджера
[18:49:44] nott is now online
[18:50:12] erraen is now online
[18:50:54] gigimon: а зачем прогаешь?
[18:50:58] Vadim Chernysh is now away
[18:51:41] scorplex: да скучно
[18:51:52] Vadim Chernysh: так зачем жалеть?)
[18:52:10] pc_ is now away
[18:52:53] bobry is now away
[18:53:20] vw is now away
[18:54:44] scorplex: хм
[18:55:13] erraen is now online
[18:55:14] scorplex: я уже 4 день пишу
[18:55:15] gigimon: scorplex: а что делать пытаешься?
[18:55:24] gigimon: есть цель? или просто мат.задачки?
[18:55:33] scorplex: стыдно сказать
[18:55:41] gigimon: да говори уж)
[18:55:43] scorplex: тогда вы мне вообще не поможите
[18:55:49] gigimon: тут всем помогают)
[18:55:59] Vadim Chernysh is now away
[18:57:29] gigimon is now offline
[18:57:54] bobry is now away
[18:58:08] scorplex: ну есть игра перпетум онлайн, там есть поиск артефактов, когда пользуешься, выводится дистанция до артефакта +- погрешность около 10%, вот я и написал разпознавание символов и построение карты координат, в общем софт голосом говорит куда ехать, что то типа гпс навигатора
[18:58:21] vw is now away
[18:58:54] scorplex: ocr модуль вообще стыдно каму то показывать
[19:00:14] erraen is now online
[19:01:00] Vadim Chernysh is now away
[19:01:33] scorplex: не будите помогать, да?
[19:02:06] tilarids is now away
[19:02:10] pc_ is now xa
[19:02:54] tilarids is now online
[19:02:55] bobry is now away
[19:03:14] cutwater: scorplex: будить точно не будем.
[19:03:21] vw is now away
[19:03:41] vw is now online
[19:03:41] vw is now online
[19:04:35] scorplex: вот меня это всегда бесит
[19:04:48] scorplex: что на хабре что вообще любые программисты
[19:04:50] scorplex: дотошны
[19:05:01] scorplex: ну опечатался
[19:05:06] scorplex: да даже просто ошибся
[19:05:15] erraen is now online
[19:06:01] Vadim Chernysh is now away
[19:06:28] scorplex: ладно, я понял
[19:06:51] erraen is now offline
[19:06:52] scorplex: xa4a: пасиба
[19:07:01] Vadim Chernysh: scorplex (17:42)
все ответы в виде алгоритма
я окончательно запутался
[19:07:06] Vadim Chernysh: все началось в этого
[19:07:39] scorplex: [18:37:40] <scorplex> а как мне это преобразовать во что то более воспринемаемое?
[19:07:43] scorplex: [18:37:42] <scorplex> (1447.75187438+1044.92503749j)
[19:07:55] bobry is now away
[19:08:03] xa4a: поставь ipython
и сделай x = 0+1j, а потом x.<Tab><Tab>
[19:08:17] scorplex: да я без понятия как его запустить
[19:08:18] xa4a: wiz: len()?
[19:08:22] vw is now online
[19:08:34] xa4a: scorplex: тогда pyth0n.org/complex
[19:08:43] wiz: ну да. длина вектора (=
[19:08:57] Vadim Chernysh is now away
[19:08:58] Vadim Chernysh is now away
[19:09:59] scorplex: ну это я понял
[19:10:03] scorplex: а обратно то как
[19:10:41] xa4a: wiz: abs(x)
[19:10:55] xa4a: scorplex: куда обратно?
[19:11:02] Vadim Chernysh is now away
[19:11:22] xa4a: по ссылке пройдите
[19:11:25] scorplex: ну он создает строку как я понимаю, из реального числа и виртуального
[19:11:39] xa4a: (по ссылке в ссылке)
[19:11:44] scorplex: да почитал я
[19:11:55] xa4a: Numeric Types — int, float, long, complex <http://docs.python.org/release/2.7/library/stdtypes.html#typesnumeric>.
[19:12:06] xa4a: там - про complex
[19:12:56] bobry is now away
[19:13:19] scorplex: да прочитал я
[19:13:22] vw is now online
[19:13:34] scorplex: как из него преобразовать в инт?
[19:13:42] scorplex: массив
[19:16:02] Vadim Chernysh is now away
[19:16:34] xa4a: ещё раз прочитай
[19:16:39] xa4a: что в словах Complex numbers have a real and imaginary part, which are each implemented using double in C. To extract these parts from a complex number z, use z.real and z.imag. не понятно?
[19:17:05] scorplex: во
[19:17:19] scorplex: этого я не увидел
[19:17:58] bobry is now away
[19:18:23] vw is now online
[19:19:08] deepwalker is now offline
[19:19:11] deepwalker is now online
[19:19:12] deepwalker is now online
[19:20:21] scorplex: рисует
[19:20:29] scorplex: давольно любопытно рисует
[19:21:03] Vadim Chernysh is now away
[19:21:31] scorplex: http://zalil.ru/31724815
[19:21:35] xa4a: обрати внимание, что то, что у тебя рисует, скорее всего, имеет встроенную функцию для рисования окружностей
[19:21:37] scorplex: вот что должен нарисовать
[19:21:46] xa4a: .rar?
[19:21:51] scorplex: бмп
[19:21:57] scorplex: 12метров
[19:21:57] wiz: жжош
[19:22:12] scorplex: так записывает быстрее
[19:22:15] scorplex: без сжатия
[19:22:22] scorplex: но могу в пнг
[19:22:25] scorplex: надо?
[19:22:33] wiz: публиковать bmp в вебе это как-то.... ну....
[19:22:43] xa4a: ты же кроме того, что по образованию не программист, ещё и не работаешь им?
[19:22:44] scorplex: по этому рар
[19:22:59] bobry is now away
[19:23:00] scorplex: почему, работаю
[19:23:14] xa4a: пичаль
[19:23:14] wiz: scorplex, а в рар тоже быстрее записывает? (=
[19:23:24] vw is now online
[19:23:37] scorplex: я по сетевой безопастности специализируюсь
[19:23:57] scorplex: да и питон я знаю на троечку
[19:24:06] Vadim Chernysh is now away
[19:24:06] Vadim Chernysh is now away
[19:24:26] xa4a: и в интернете первый день
[19:24:42] scorplex: с чего это так?
[19:24:44] xa4a: для картинок есть специальные хостинги
[19:24:58] scorplex: вот я же говорю, все дотошные
[19:24:59] xa4a: которые и сжмиать за тебя могут, если лениво
[19:25:10] xa4a: ты так говоришь, как-будто это что-то плохое
[19:25:14] scorplex: если бмп значит нуп?
[19:25:28] xa4a: если .rar значит никто смотреть картинку не будет
[19:25:32] scorplex: 12мб грузить к ним на сервер тоже норм?
[19:25:40] xa4a: они пережмут, если надо будет
[19:25:42] xa4a: или напишут
[19:25:50] xa4a: норм - генерировать картинку сразу в png
[19:25:57] xa4a: и заливать на картинкохостинг
[19:26:03] Vadim Chernysh is now away
[19:26:14] xa4a: которые не требует таймаута
[19:26:19] xa4a: кликов по рекламе итд
[19:26:57] scorplex: 12мб бмп заливать это долго
[19:27:09] xa4a: сожми в png
[19:27:10] scorplex: даже если сервис потом сожмет
[19:27:13] scorplex: уже
[19:27:41] xa4a: пусть вообще железяка сжимает
[19:27:57] scorplex: http://www.imgupload.org/images/910_debug.png
[19:28:25] vw is now online
[19:28:32] bobry is now away
[19:28:42] scorplex: первый раз я сделал рисование окружности примерно как ты мне показал
[19:28:45] scorplex: с пи
[19:29:01] scorplex: но выдавал он мне тоже что и сейчас
[19:29:24] xa4a: я не представляю о чем ты
[19:29:27] scorplex: http://www.imgupload.org/images/173_debug.png
[19:29:29] xa4a: но как я уже писал выше
[19:29:39] xa4a: обрати внимание, что то, что у тебя рисует, скорее всего, имеет встроенную функцию для рисования окружностей
[19:29:54] scorplex: рисую я для визуально представления
[19:30:00] scorplex: рисование мне не нужно
[19:30:31] xa4a: тем более. если тебе не нужно рисование, то взял бы готовую встроенную функцию, вместо изобретения своей
[19:30:46] scorplex: это какую?
[19:30:52] xa4a: а чем ты рисуешь?
[19:30:57] scorplex: pil
[19:31:04] xa4a: !g pil draw circle
[19:31:05] Vadim Chernysh is now away
[19:31:20] scorplex: так он мне не выдаст координаты
[19:31:26] scorplex: окружности
[19:31:40] xa4a: а зачем тебе координаты?
[19:31:44] wiz is now offline
[19:31:47] xa4a: тебе шашечки, или ехать?
[19:32:00] scorplex: я еще раз объясняю
[19:32:10] scorplex: есть игра перпетум онлайн, там есть поиск артефактов, когда пользуешься, выводится дистанция до артефакта +- погрешность около 10%, вот я и написал разпознавание символов и построение карты координат, в общем софт голосом говорит куда ехать, что то типа гпс навигатора
[19:32:27] scorplex: сначала строится 1 круг
[19:32:36] scorplex: потом второй, накладываются
[19:32:50] scorplex: и так далее
[19:33:02] scorplex: пока не останется 1 точка
[19:33:25] vw is now online
[19:33:54] scorplex: на первой картинке обведено цветами
[19:34:10] scorplex: жолтый это то что осталось после 3 кругов
[19:34:46] nott is now away
[19:34:53] xa4a: тебе координаты не нужны
[19:35:00] bobry is now away
[19:35:00] bobry is now offline
[19:35:02] nott is now online
[19:35:07] xa4a: ну...
[19:35:07] scorplex: окей, а что мне нужно?
[19:35:21] xa4a: проще же сделать на каждом шагу маску отдельную
[19:35:25] xa4a: и комбинировать их
[19:35:26] bobry is now away
[19:35:26] bobry is now away
[19:35:40] scorplex: а круг не маска?
[19:35:50] xa4a: для этого не надо знать координаты каждой точки окружности
[19:35:58] scorplex: хм
[19:36:05] Vadim Chernysh is now away
[19:36:09] xa4a: тебе не надо. пусть железяка сама парится
[19:36:13] scorplex: дистанция то есть радиус всегда разный
[19:36:22] bobry is now away
[19:36:47] xa4a: на каждом шагу: построить маску возможного расположения твоего артефакта
[19:36:48] scorplex: как тут маску сделаешь?
[19:36:52] xa4a: белым по чёрному
[19:36:53] xa4a: кольцо
[19:37:04] xa4a: на втором шагу - построить новую маску
[19:37:17] xa4a: проANDить маски. получить профит!
[19:37:36] scorplex: ну а у меня как?
[19:37:51] xa4a: ты зачем-то считаешь координаты окружностей
[19:37:58] xa4a: я не знаю как это, но это как-то неправильно
[19:38:25] scorplex: ну а как без координат?
[19:38:26] vw is now online
[19:38:36] scorplex: я понимаю что не правильно
[19:38:39] scorplex: кажется
[19:38:46] scorplex: но как без них я не знаю
[19:39:24] xa4a: координаты ты можешь считать в самом конце. когда у тебя вышло, что пересечение масок однозначно определяет позицию твоего артефакта
[19:39:33] xa4a: но эти координаты к окружностям отношения не имеют
[19:40:27] xa4a: непосредственного
[19:41:06] Vadim Chernysh is now away
[19:41:23] bobry is now away
[19:42:53] scorplex: там нужны примерные координаты в процессе определения
[19:43:27] vw is now online
[19:43:36] scorplex: лучше скажи как твой алгоритм
[19:43:48] scorplex: что бы он рисовал нормальный круг
[19:44:15] scorplex: он выдает всего 31 точку вроде как
[19:44:45] xa4a: сделай range от 0 до 2π
[19:44:50] xa4a: с маленьким шагом
[19:45:20] xa4a: ноэ
[19:45:38] xa4a: почему там полоски? ты рисуешь все круги всех радиусов +-10%?
[19:46:07] Vadim Chernysh is now away
[19:46:09] scorplex: там +-10% к радиусу
[19:46:24] xa4a: ты исуешь все круги всех радиусов?
[19:46:25] bobry is now away
[19:46:58] огыешсук is now away
[19:48:03] scorplex: да
[19:48:08] scorplex: сделал
[19:48:08] xa4a is now away
[19:48:18] scorplex: но работает медленее
[19:48:28] vw is now online
[19:48:29] scorplex: + по бокам некоторых точек нет
[19:48:57] scorplex: http://www.imgupload.org/images/163_debug.png
[19:49:21] Vadim Chernysh is now away
[19:49:22] Vadim Chernysh is now away
[19:50:19] xa4a is now online
[19:51:01] xa4a: убери всё, кроме наименьшего и наибольшего радиусов
[19:51:08] Vadim Chernysh is now away
[19:51:26] bobry is now away
[19:51:34] scorplex: а алгоритм как потом сравнивать подскажешь?
[19:51:44] scorplex: накладывать
[19:51:50] scorplex: да я все это думал
[19:52:42] xa4a: это для визуализации
[19:52:49] xa4a: а сравнивать - масками
[19:53:02] scorplex: мой алгоритм круга в 2 раза быстрее
[19:53:07] scorplex: точнее не мой
[19:53:09] xa4a: маску рисовать в виде кольца - сначала большой круг белый, а потом внутри поменьше черный
[19:53:29] vw is now online
[19:53:45] xa4a: pieslice()
[19:53:48] xa4a: ф-ия в gbk
[19:53:51] xa4a: PIL
[19:53:55] xa4a: для рисования круга
[19:54:29] xa4a: не, ellipse()
[19:55:21] scorplex: то есть рисовать в памяти картинку с маской?
[19:55:35] xa4a: да
[19:55:43] xa4a: просто белые точки на черном фоне
[19:56:04] scorplex: маштабом 1 к 1?
[19:56:08] Vadim Chernysh is now away
[19:56:26] bobry is now away
[19:56:55] xa4a: это уже как хочешь
[19:56:56] огыешсук is now xa
[19:57:27] scorplex: просто с моим алгоритмом памяти в разы меньше требуется
[19:57:45] scorplex: сначала он запоминает координаты круга
[19:57:53] scorplex: во второй раз уже совсем часть
[19:57:57] scorplex: в третий еще меньше
[19:58:07] scorplex: в 6 уже около 100 координат
[19:58:17] xa4a: с масками - то же самое же
[19:58:23] xa4a: тебе не обязательно хранить маски всех шагов
[19:58:24] scorplex: а по маске там нужно всегда хранить в памяти
[19:58:29] vw is now online
[19:58:30] xa4a: можно на каждом шагу сворачивать
[19:58:31] scorplex: я и не храню
[19:58:50] scorplex: координаты остаются только оставшиеся после сравнения
[19:59:08] scorplex: а с маской там всегда будет одно и тоже
[19:59:17] scorplex: просто место 1 будет 0
[19:59:27] scorplex: но память то будет использоватся
[19:59:33] xa4a: будет
[19:59:52] xa4a: до 4МБ на маску
[20:00:00] xa4a: одновременно тебе надо не больше двух масок
[20:00:00] scorplex: а в моем случаи будет меньше
[20:00:23] xa4a: жадина
[20:00:28] xa4a: :D
[20:00:33] scorplex: при первой маске около 4мб скажем, потом около 3
[20:00:36] scorplex: 2 и 1
[20:00:40] xa4a: зачем?
[20:00:45] огыешсук is now online
[20:00:45] xa4a: просто одна маска текущая
[20:00:47] scorplex: ну я думал когда делал
[20:00:52] scorplex: но решил так
[20:01:02] scorplex: так проще расчитывать
[20:01:09] xa4a: на втором шаге посчитал новую, заменил текущую на пересечение старой текущей и новой
[20:01:10] scorplex: точнее не так
[20:01:12] scorplex: сложнее
[20:01:17] gigimon is now online
[20:01:27] bobry is now away
[20:01:32] cutwater is now offline
[20:01:32] scorplex: ну так оно и есть
[20:01:44] Vadim Chernysh is now away
[20:02:00] scorplex: http://dumpz.org/85801/
[20:02:06] xa4a: так как это всё будет происходить внутри numpy/opencv/pil, то это выйдет в разы быстрее, чем твои питоновские циклы, перебирающие координаты
[20:02:51] scorplex: opencv то там причем?
[20:03:05] xa4a: он хорошо работает с картинками, масками
[20:03:15] xa4a: PIL умеет маски пересекать?
[20:03:26] xa4a: ок, numpy умеет
[20:03:30] vw is now online
[20:03:42] xa4a: а numpy умеет матрицы по два бита на ячейку?
[20:04:00] deepwalker: вряд ли
[20:04:19] scorplex: я пробывал пилом маску искать
[20:04:33] scorplex: выходило дольше на несколько сек чем в массиве
[20:04:41] scorplex: по этому и сделал так
[20:04:56] scorplex: точнее не на сек а меньше
[20:04:59] scorplex: но долше
[20:05:02] scorplex: дольше*
[20:05:09] xa4a: "пилом маску искать"
[20:05:19] xa4a: искать маску? как ты её искал?
[20:05:34] scorplex: ну перебором
[20:05:42] xa4a: в этом проблема
[20:06:05] scorplex: я читал читал opencv но понял что оно не поможет мне
[20:06:18] xa4a: ну пусть PIL будет, не важно
[20:06:23] xa4a: только перебора на питоне не надо
[20:06:23] Vadim Chernysh is now offline
[20:06:28] bobry is now away
[20:06:52] xa4a: нарисуй на черном фоне две окружности и сделай fill между ними, если PIL не умеет рисовать залитые сразу
[20:07:24] scorplex: перебор я использовал в нахождении маски
[20:07:28] scorplex: там требовалось
[20:07:55] scorplex: если я сделаю по картинкам
[20:07:59] scorplex: на пиле
[20:08:05] xa4a: а я говорю, что использовать пересечение масок при помощи numpy/opencv будет намного быстрее, чем твой перебор питоном
[20:08:10] scorplex: значит все что я писал в пустую..
[20:08:10] dicos is now offline
[20:08:31] vw is now online
[20:08:34] xa4a: это отлично же! елси вместо тонн говнокода три строки вызова библиотечных функций
[20:09:27] xa4a: тебе же не платят за строки кода
[20:09:39] xa4a: а так - научился чему-то и работает быстрее. профит!
[20:11:29] bobry is now away
[20:12:30] scorplex: ладно, допустим
[20:12:41] scorplex: ну рисование кругов не самое узкое место
[20:13:17] scorplex: как opencv найти маску на изображении?
[20:13:20] vw is now away
[20:13:21] vw is now away
[20:13:21] vw is now offline
[20:13:33] scorplex: ну например есть массив за 0 и 1
[20:13:39] scorplex: белое и черное
[20:13:50] scorplex: как по такой маске найти?
[20:14:22] vw is now away
[20:14:22] vw is now away
[20:16:30] bobry is now away
[20:18:29] vw is now away
[20:18:56] огыешсук is now away
[20:20:05] vw is now online
[20:20:06] vw is now online
[20:21:30] bobry is now away
[20:21:52] scorplex: я что то не то спросил?
[20:22:02] xa4a: найти единички?
[20:22:08] scorplex: да
[20:22:19] xa4a: ну сначала итерируешься, пока их не станет мало
[20:22:29] xa4a: проверяя, например, с помощью гистограммы
[20:22:34] scorplex: кхм
[20:22:36] xa4a: или просто суммы
[20:22:50] xa4a: а в конце, когда их таки станет мало совсем - можно уже перебором
[20:22:52] xa4a: только один раз
[20:23:06] огыешсук is now online
[20:23:23] scorplex: ну а подсчет суммы
[20:23:35] vw is now online
[20:23:41] scorplex: как ее без перебора сосчитать
[20:23:58] xa4a: встроенной функцикй
[20:24:04] xa4a: которая сразу же провалится в С код
[20:24:12] xa4a: встроенной в opencv, если opencv маска
[20:24:40] xa4a: http://opencv.willowgarage.com/documentation/operations_on_arrays.html#countnonzero
[20:25:46] d1ffuz0r is now offline
[20:25:47] xa4a: нет, перебор не нужен
[20:25:47] d1ffuz0r is now online
[20:25:47] scorplex: вот смотри
[20:25:54] scorplex: имеем скриншот
[20:25:54] xa4a: можно взять max в маске потом
[20:26:04] scorplex: нужно найти ярлычек на рабочем столе
[20:26:31] bobry is now away
[20:27:33] scorplex: и что я этой функции буду скармливать весь скриншот?
[20:27:37] scorplex: не буду
[20:27:42] scorplex: значит все равно перебор
[20:28:02] scorplex: хотя будет быстрее, да
[20:28:11] xa4a: http://opencv.willowgarage.com/documentation/python/object_detection.html#matchtemplate
[20:28:40] vw is now online
[20:29:01] xa4a: при чём это не обязательно тупой перебор
[20:29:14] xa4a: хотя не, перебор
[20:29:34] scorplex: да, эт я перепишу
[20:29:45] xa4a: в любом случае, там в конце написано как пользовать результат
[20:30:01] xa4a: ноэ.. там же была какая-то тулза для поиска картинок на скриншотах
[20:30:20] scorplex: и быстро работает?
[20:31:12] scorplex: ладно, это все хорошо
[20:31:22] scorplex: но возвращаясь к моим слонам
[20:31:32] bobry is now away
[20:31:37] xa4a: http://sikuli.org/
[20:31:57] scorplex: видел
[20:31:58] scorplex: Sorry. Your operating system is not supported.
[20:32:02] scorplex: под мак
[20:32:18] xa4a: You can programmatically control a web page, a Windows/Linux/Mac OS X desktop application, or even an iphone or android application running in a simulator or via VNC.
[20:32:21] scorplex: а не
[20:32:29] scorplex: эт но скрипт
[20:32:34] xa4a: и скриншоты там все под маком
[20:32:41] scorplex: ява..
[20:33:08] xa4a: какая разница, что внутри? ты же скрипты ему пишешь на житоне всё-равно
[20:33:14] xa4a: да, opencv не будет
[20:33:26] xa4a: но тогда может оно тебе и не нужено будет?
[20:33:50] tilarids is now away
[20:33:52] vw is now online
[20:34:20] tilarids is now online
[20:34:31] scorplex: неа
[20:34:38] scorplex: там интерфейс
[20:34:50] scorplex: а у меня 3д игра
[20:35:17] scorplex: ну эт я переделаю под opencv
[20:35:23] scorplex: думаю будет быстро
[20:35:32] scorplex: или еще что то прикручу
[20:35:59] scorplex: щас бы алгоритм сделать, тот о котором я говорил вначале
[20:36:06] nmk is now offline
[20:36:16] scorplex: динамичное программирование не то немного
[20:36:26] scorplex: как я понял
[20:36:33] bobry is now away
[20:36:41] xa4a: для нахождения квадрата? в самый раз, думаю
[20:36:47] xa4a: *прямоугольника единичек
[20:36:49] scorplex: прямоугольника
[20:37:07] xa4a: начинаешь с верхней левой ячейки
[20:37:08] scorplex: ну тогда я не понял его
[20:37:23] scorplex: потом в право?
[20:37:26] xa4a: потом от неё спускаешься вниз/ползёшь вправо
[20:37:49] scorplex: дык я же скидывал ссылку
[20:37:59] scorplex: это то я понял
[20:38:07] scorplex: я не понял как это реализовать
[20:38:22] scorplex: ибо мне кажется моя реализация будет минут 10 обрабатыватся
[20:38:56] vw is now online
[20:39:22] tilarids is now away
[20:39:46] xa4a: Самым простым способом решить поставленную задачу будет: метод перебора. я дальше не читал
[20:40:55] xa4a: http://stackoverflow.com/questions/2478447/find-largest-rectangle-containing-only-zeros-in-an-nn-binary-matrix
[20:41:34] bobry is now away
[20:42:58] tilarids is now online
[20:43:27] pc_ is now online
[20:44:00] vw is now online
[20:44:04] cutwater is now online
[20:46:35] bobry is now away
[20:47:59] tilarids is now away
[20:48:13] tilarids is now online
[20:48:22] gigimon is now online
[20:49:06] vw is now online
[20:51:36] bobry is now away
[20:51:47] gigimon is now online
[20:54:09] vw is now online
[20:57:37] bobry is now away
[20:57:37] bobry is now offline
[20:57:55] bobry is now away
[20:57:55] bobry is now away
[20:58:56] bobry is now away
[20:59:11] vw is now online
[21:01:16] bobry is now away
[21:01:16] bobry is now online
[21:01:17] bobry is now online
[21:03:58] bobry is now online
[21:04:07] scorplex: пасиба
[21:04:16] vw is now online
[21:04:18] scorplex: очень хорошо
[21:04:24] scorplex: только вот..
[21:04:37] tilarids is now offline
[21:05:11] scorplex: как лучше бы преобразовать мой массив что бы скормить этой функции
[21:05:39] scorplex: функцию то я и сам считай сделал
[21:05:50] scorplex: а проблема как раз в этом самом преобразовании
[21:07:10] vw: ребятки, подскажите, вот почему вот это безобразие http://pastebin.com/5iujn8i7 выполняется ~800мс, а если убрать inner join то мгновенно. вопрос конечно не по питону, но вдруг)
[21:07:40] xa4a: scorplex: похоже она принимает просто 2-д список
[21:08:18] scorplex: я что то не пойму как она вообще работает
[21:08:23] scorplex: выдает какую то фигню
[21:08:45] vw is now online
[21:08:52] xa4a: vw: post_article.content_id индекс есть?
[21:08:56] scorplex: [[0,0,0,0,1,1,1],
[0,0,0,0,0,0,0],
[0,0,0,0,0,0,1],
[0,0,0,0,0,0,1]]
[21:09:01] scorplex: подаю ей это
[21:09:04] bobry is now online
[21:09:06] scorplex: выдает 3, 6
[21:09:24] vw: xa4a: есть, на content_post.id
[21:09:42] xa4a: vw: на post_article.content_id индекс есть?
[21:10:23] xa4a: scorplex: выдает макс. размер
[21:10:36] xa4a: vw: не внешний ключ, а индекс
[21:10:43] scorplex: а точно
[21:10:48] vw: да, индекс есть
[21:11:24] xa4a: vw: тогда хз. какая субд?
[21:11:33] vw: mysql, innodb
[21:11:55] pc_ is now away
[21:12:28] огыешсук is now away
[21:12:37] vw: xa4a вот я тоже в тупик вошел, перепробовал кучу вариантов, explain показует что там создается temporary table, но вот почему для меня загадка
[21:12:42] alecs is now online
[21:12:42] alecs is now online
[21:12:45] alecs is now offline
[21:13:17] xa4a: я не шарю. только и мог, что explain подсказать)
[21:13:45] vw: ) ясно, но все равно спасибо, буду рыть дальше
[21:13:48] vw is now online
[21:14:07] bobry is now online
[21:15:52] scorplex: да мускул тупит страшно
[21:15:55] scorplex: сам по себе
[21:15:58] scorplex: старый уже
[21:16:16] scorplex: я свою мини бд написал
[21:16:21] scorplex: типа ридиса
[21:18:04] scorplex: год уже на ней несколько серверов
[21:18:10] scorplex: вроде все гуд
[21:18:13] scorplex: кхм
[21:18:26] scorplex: как же бывает сложно объяснить иногда
[21:18:51] vw is now online
[21:18:53] огыешсук is now online
[21:19:09] scorplex: xa4a: подсказать как из list сделать удобный формат для перебора можешь?
[21:19:09] bobry is now online
[21:19:26] nott is now away
[21:19:45] xa4a: удобнее, чем list для перебора в питоне ничего нет
[21:20:02] xa4a: mysql старый?
[21:20:08] xa4a: uhoh
[21:20:13] scorplex: ну у меня выходит что в листе идут еще листы с координатами
[21:20:56] scorplex: ну мы когда софт сделали под мускул, он не справлялся, что только не пробывали
[21:21:13] scorplex: пришлось делать типа ридиса\мемкеша
[21:21:35] scorplex: слишком он скажем так универсален
[21:21:49] gigimon is now offline
[21:21:55] pc_ is now xa
[21:22:25] scorplex: мускул всмысле
[21:22:33] scorplex: ну так что, подскажешь?
[21:23:54] огыешсук is now away
[21:23:55] vw is now online
[21:24:13] bobry is now online
[21:24:18] nott is now online
[21:24:44] scorplex: в общем смысл, есть разные координаты в листе завернутые в лист
[21:24:55] scorplex: нужно составить матрицу
[21:25:16] scorplex: какие есть координаты нужно пометить 1
[21:25:20] scorplex: остальные 0
[21:25:37] scorplex: только это как то не правильно
[21:25:41] scorplex: помоему
[21:26:02] огыешсук is now online
[21:26:38] d1ffuz0r is now offline
[21:26:38] d1ffuz0r is now online
[21:26:41] scorplex: ладно, сам сделаю, завтра
[21:26:47] scorplex: а то уже замучал всех
[21:27:23] scorplex: всем пасиба и пока
[21:27:39] scorplex is now offline
[21:28:57] vw is now online
[21:29:15] bobry is now online
[21:30:29] ds.tihonov is now offline
[21:31:00] xa4a is now away
[21:34:00] vw is now online
[21:34:16] bobry is now online
[21:39:02] vw is now online
[21:39:19] bobry is now online
[21:41:07] xa4a is now away
[21:44:05] vw is now online
[21:44:22] bobry is now online
[21:47:49] cutwater is now offline
[21:49:07] vw is now online
[21:49:25] bobry is now online
[21:50:43] nott is now away
[21:52:42] nott is now online
[21:54:11] vw is now online
[21:54:27] bobry is now online
[21:56:05] Сволота is now online
[21:59:13] vw is now online
[21:59:30] bobry is now online
[22:02:39] xa4a is now away
[22:02:48] xa4a is now online
[22:04:16] vw is now online
[22:04:32] bobry is now online
[22:05:35] vw: разобрались, все дело в том что использовался неправильный индекс)
[22:05:50] vw: зафорсили и получили моментальный сиквел
[22:06:21] Сволота is now away
[22:07:59] Сволота is now online
[22:09:18] vw is now online
[22:09:34] bobry is now online
[22:14:20] vw is now online
[22:14:36] bobry is now online
[22:16:59] огыешсук is now away
[22:19:01] огыешсук is now online
[22:19:23] vw is now online
[22:19:39] bobry is now online
[22:24:26] vw is now online
[22:24:42] bobry is now online
[22:24:53] Сволота is now away
[22:24:59] Сволота is now online
[22:27:52] xa4a is now offline
[22:29:28] vw is now online
[22:29:44] bobry is now online
[22:34:30] vw is now online
[22:34:46] bobry is now online
[22:39:33] vw is now online
[22:39:48] bobry is now online
[22:40:36] bobry is now away
[22:40:37] bobry is now away
[22:40:56] Сволота is now offline
[22:43:12] Сволота is now online
[22:43:45] bobry is now away
[22:43:45] bobry is now online
[22:43:46] bobry is now online
[22:44:34] vw is now online
[22:44:52] bobry is now online
[22:49:16] bobry is now away
[22:49:16] bobry is now away
[22:49:17] bobry is now away
[22:49:37] vw is now online
[22:49:54] bobry is now away
[22:54:39] vw is now online
[22:54:56] bobry is now away
[22:57:22] bobry is now away
[22:57:23] bobry is now online
[22:57:23] bobry is now online
[22:59:41] vw is now online
[22:59:59] bobry is now online
[23:02:06] nott is now away
[23:04:05] огыешсук is now offline
[23:04:44] vw is now online
[23:05:01] bobry is now online
[23:05:06] bobry is now away
[23:05:07] bobry is now away
[23:09:46] kwis is now online
[23:09:47] vw is now online
[23:10:04] bobry is now away
[23:14:49] vw is now online
[23:15:07] bobry is now away
[23:15:07] bobry is now away
[23:15:07] bobry is now away
[23:15:07] bobry is now online
[23:19:28] kwis is now away
[23:19:51] vw is now online
[23:20:10] bobry is now online
[23:24:30] kwis is now online
[23:24:53] vw is now online
[23:25:12] bobry is now online
[23:27:57] bobry is now away
[23:27:58] bobry is now away
[23:27:58] bobry is now away
[23:29:02] mks is now online
[23:29:30] kwis is now away
[23:29:56] vw is now online
[23:30:14] bobry is now away
[23:30:26] kwis is now online
[23:34:58] vw is now online
[23:35:15] bobry is now away
[23:40:01] vw is now online
[23:40:18] bobry is now away
[23:41:10] Сволота is now offline
[23:45:03] vw is now online
[23:45:19] bobry is now away
[23:49:42] bobry is now away
[23:49:43] bobry is now online
[23:49:43] bobry is now online
[23:50:06] vw is now online
[23:50:22] bobry is now online
[23:55:08] vw is now online
[23:55:22] bobry is now online
[23:56:11] bobry is now away
[23:56:12] bobry is now away
[23:56:12] bobry is now away
[23:56:54] kwis is now away
[23:57:04] nott is now xa