How often do we think about our http sessions implementation? I mean, do you know, how your currently used sessions-related code will behave when sessions number in your database will grow up to millions (or, even, hundreds of millions) of records? This is one of the things we do not think about. But if you’ll think about it, you’ll notice, that 99% of your session-related operations are read-only and 99% of your sessions writes are not needed. Almost all your sessions table records have the same information: session_id and serialized empty session in the data field.

Looking at this sessions-related situation we have created really simple (and, at the same time, really useful for large Rails projects) plugin, which replaces ActiveRecord-based session store and makes sessions much more effective. Below you can find some information about implementation details and decisions we’ve made in this plugin, but if you just want to try it, then check out our project site.

(more…)

В качестве помощи своей жене в ее работе над очередным сайтом, работающим на wordpress, я перевел на русский язык Contact Form Wordpress plugin.

WP-ContactForm - это простой плагин, предназначенный для того, чтобы Ваши пользователи могли всегда оставаться с Вами на связи. Для любого пользователя WordPress будет проще простого добавить эту функциональность к его сайту. Просто загрузите на сервер несколько файлов, измените несколько параметров в админ-панели и все!

Русский .po и скомпилированный .mo файлы могут быть скачаны отсюда. Процесс установки предельно прост: загрузите файл .mo в каталог /wp-content/plugins/wp-contactform/ на Вашем сервере.

Сегодня установил на сайте плагин Polyglot и теперь смогу писать посты на разных языках. Исходя из того, что знаю я только 3 языка (русский, украинский и, немного, английский), то и все будущие посты будут переведены на эти языки (как минимум, на русский и английский).