Twitter Bootstap 3: building & reading docs

So I wanted to make my website a little bit fancier. The problem is that I'm not a web designer, I'm bad with modern css & javascript world and I'm not very interested in diving in to it. So I decided to look around - maybe there's something that can help me.

Looks like there is: Twitter Bootstrap is web frontend framework which allows relatively easy build clean but good-looking sites. Current version is 2.3.1, but version 3.0 is just round the corner so I thought it's a good idea to start with it now in order to avoid migration later. The problem is it's poorly documented and it was not very clear where to start from but I decided to try anyway.


Blog has been migrated to Blogger

Hi there,

I've moved blog from old Drupal on one of old servers I support to hosted Google Blogger. I've also got a chance to clean up old & irrelevant posts so... there's only 3 of them now. I'll try to use time freed up from maintaining my Drupal instance on writing some posts, but I won't promise anything.


Iptables: router performance

Original: Iptables – производительность роутера (Russian)
Incorrect iptables settings may cause poor router performance. I'll show you how can you improve iptables performance

Disable connection tracking

The first thing you need to do (if you are not using NAT) is to disable connection tracking in nat table, PREROUTING chain:

Notice that if you have rules with match module, you'll have to change them to avoid match module. Also, all rules using conntrack will stop working.


Monit: lightweight monitoring solution

Monit is simple, lightweight, but useful and powerful enough monitoring solution for your servers.
Monit can monitor:
  • OS processes (presence, resources)
  • files, dirs and file system for changes (mtime, size and checksum changes)
  • network hosts (ping, tcp connections)
Monit can notify administrator via configurable e-mail messages. It also can automatically restart failed service.
Monit have embedded web-server which allows to view state on monitoring objects and disable or enable them.

Of course, enterprise-class monitoring systems have much more features, but sometimes they are too complex and unstable.
BTW, there is product named M/Monit. It can control multiple monit instances. Unfortunately, M/Monit is only available under commercial license.


Rsync Windows <-> Linux

How to run rsync from windows? Simple!

1. Install cwRsync

Unfortunately, there is no native rsync for Windows. But there is rsync build for cygwin - cwRsync. You can download it from:

2. Add $CYGWIN_INSTALL_PATH/bin/ to PATH environment:
Control Panel -> System -> Advanced -> Environment

3. Fix problem with non-ascii filenames

Here is the message describing a problem:

>I'm trying to use rsync (version 2.6.9) to back up some files. However, a few 
>of them contain Hebrew characters. While I can back them up, the filenames 
>come through scrambled (I don't have Hebrew characters anymore). I've tried 
>the -8 switch, but that didn't work. Any suggestions?
>The files are created on Windows and saved on a samba share (v3.0.24). I can 
>copy them around in Windows just fine. Konqueror, on the machine the files 
>are physically on shows the file names properly. But when I copy them using 
>rsync, the file names get scrambled (Hebrew characters only; English 
>characters are fine).

I guess you're using cwrsync which uses the cygwin1.dll. The normal release
is not unicode aware and therefore has problems with non-ascii characters.
I also had this problem with German umlauts. There is a unicode-release
of the cygwin1.dll which you can copy over your existing cygwin1.dll.
In my case the problems went away. The characters still look strange when
looked at in Linux (different codepage, encoding...) but at least from the
samba share they're the same.


So, replace cygwin.dll with version that could be downloaded from from http://www.okisoft.co.jp/esc/utf8-cygwin/

Don't forget to add --iconv=. to rsync command-line options (--incov introduced in rsync 3.0).