Do they belong to you? Claim these comments.
Unregistered
aliases
- Alexander Solovyov
- Alexander Solovyov
Alexander Solovyov
Is this you? Claim Profile »
1 year ago
in Using Jinja With Django on David Cramer's Blog
> Best of all, you can use else if and any operator inside your if clauses just like you can in Python. No more clustered lists of {% if %}{% if %}{% ifnotequal %}.
You can use custom template tag like pyif in Django:
http://www.djangosnippets.org/snippets/130/
> One of my favorite features in Jinja are the filters and template tags.
I see no docs about template tags in Jinja on their site.
> filters are also much more flexible than they are in Django
Please, can you give example?
> Jinja filters and template tags are also all loaded into memory initially.
Django's too.
> Another feature with you’ll find in Jinja are tests.
Hm. But filters are the same, isn't it?
You can use custom template tag like pyif in Django:
http://www.djangosnippets.org/snippets/130/
> One of my favorite features in Jinja are the filters and template tags.
I see no docs about template tags in Jinja on their site.
> filters are also much more flexible than they are in Django
Please, can you give example?
> Jinja filters and template tags are also all loaded into memory initially.
Django's too.
> Another feature with you’ll find in Jinja are tests.
Hm. But filters are the same, isn't it?
2 years ago
in Ошибка в Perl’овом Thread::Semaphore: Утечка памяти (решение прилагается) on Homo-Adminus Blog
> А насчет питона - не могу себя сломать. отступы эти…. :-)
Стоит только один раз попробовать, и ты втянешься. :)
Стоит только один раз попробовать, и ты втянешься. :)
2 years ago
in Ошибка в Perl’овом Thread::Semaphore: Утечка памяти (решение прилагается) on Homo-Adminus Blog
> ну не нравится мне синтаксис Python’а
Если это конкретно про его отступы - то меня они очень сильно раздражали, пока просто не пришлось поправить скрипт на питоне. Ну и с тех пор я забросил перл. ;)
Если это конкретно про его отступы - то меня они очень сильно раздражали, пока просто не пришлось поправить скрипт на питоне. Ну и с тех пор я забросил перл. ;)
2 years ago
in Looking For Optimal Solution: Benchmark Results Summary and Findings on Homo-Adminus Blog
В русском варианте ошибки: послещенный, тетсирования, каждам.
> Но если вам необходима масштабируемость, вы можете использовать nginx с mongrel-серверами в качестве backend-процессов.
Тут хотелось бы заметить - мне кажется, что fastcgi через tcp будет всё равно быстрее, чем mongrel.
nginx жжот. :D
> Но если вам необходима масштабируемость, вы можете использовать nginx с mongrel-серверами в качестве backend-процессов.
Тут хотелось бы заметить - мне кажется, что fastcgi через tcp будет всё равно быстрее, чем mongrel.
nginx жжот. :D
2 years ago
in High-Performance Ruby On Rails Setups Test: mongrel vs lighttpd vs nginx on Homo-Adminus Blog
Хмм... Да, кстати, насчёт keep-alive, заметка на будущее тестирование: статические файлы надо бы сервить отдельно самим фронтендом, без бэк-ендов. Так и быстрее будет, и keep-alive влиять не будет. ;)
2 years ago
in High-Performance Ruby On Rails Setups Test: mongrel vs lighttpd vs nginx on Homo-Adminus Blog
> I’m not sure exactly what the dummy location for static files does?
There you must define root for cached pages, like:
root /path/to/cache
> Also does this setup automatically serve images, js and css files
No, you must define location like this:
location ~* ^.+\.(jpg|jpeg|gif|css|js)$ {
root /path/to/static;
}
There you must define root for cached pages, like:
root /path/to/cache
> Also does this setup automatically serve images, js and css files
No, you must define location like this:
location ~* ^.+\.(jpg|jpeg|gif|css|js)$ {
root /path/to/static;
}
2 years ago
in High-Performance Ruby On Rails Setups Test: mongrel vs lighttpd vs nginx on Homo-Adminus Blog
> низкой производительностью FastCGI.
Хмм... Надо бы с django поэкспериментировать, может у неё что-то подобное тоже есть? :\
Хмм... Надо бы с django поэкспериментировать, может у неё что-то подобное тоже есть? :\
2 years ago
in High-Performance Ruby On Rails Setups Test: mongrel vs lighttpd vs nginx on Homo-Adminus Blog
Насчёт апача - +1. Не верю, что он может достичь скоростей lighttpd/nginx.
Но мой вопрос остался без ответа - почему не FastCGI, почему монгрел? ;)
Но мой вопрос остался без ответа - почему не FastCGI, почему монгрел? ;)
2 years ago
in High-Performance Ruby On Rails Setups Test: mongrel vs lighttpd vs nginx on Homo-Adminus Blog
Сорри за такое количество комментов, еще хотелось узнать - а как это дело всё запускается? Писанный руками скрипт в init.d, или какой-то более удобный метод?
А то руками скрипты ломает писать. ;)
А то руками скрипты ломает писать. ;)
2 years ago
in High-Performance Ruby On Rails Setups Test: mongrel vs lighttpd vs nginx on Homo-Adminus Blog
> Вот что значит - тестить днем, а писать и переводить ночью.
Бывает. ;)
А почему не было тестов через FastCGI? Так что, медленнее, чем через HTTP?
Бывает. ;)
А почему не было тестов через FastCGI? Так что, медленнее, чем через HTTP?
2 years ago
in High-Performance Ruby On Rails Setups Test: mongrel vs lighttpd vs nginx on Homo-Adminus Blog
Ошибка в статье. ;)
> Как и ожидалось, результаты оказались лучше, чем с одним процессом mongrel:
Это про pen. А насколько я вижу, результаты оказались хуже. ;)
> Как и ожидалось, результаты оказались лучше, чем с одним процессом mongrel:
Это про pen. А насколько я вижу, результаты оказались хуже. ;)
2 years ago
in Turning On NCQ Queing On ICH7 Chipsets With Linux on Homo-Adminus Blog
В основном везде линухи, как я понимаю? Фри практически нету?