Хак для IE7

Posted by & filed under css.

*:first-child+html После этой части пожно ставить свои теги. Пример: *:first-child+html p.test1 { background: #95FF95; } Проверено, работает. Оригинальная статья — http://dimox.name/ie7_css_hack/

Ошибка с python-eggs

Posted by & filed under Apache.

Получил следующую ошибку: «ExtractionError: Can’t extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 13] Permission denied: ‘//.python-eggs’ The Python egg cache directory is currently set to: //.python-eggs Perhaps your account does not have write access to this directory? You can change the cache… Read more »

Apache и конфиги в CentOS

Posted by & filed under Apache.

Проверка как apache разобрал конфигурационный файл для CentOS: httpd -S проверка правильности синтакиса файла apachectl configtest

Копирование входящей и исходящей почты на несколько ящиков в Postfix

Posted by & filed under Linux.

Этот вариант хорош, если копировать нужно только на один ящик, если нужно копировать на несколько, то поступаем так: В конфигурации postfix (main.cf) были внесены соответствующие изменения: alias_database = hash:/etc/postfix/aliases recipient_bcc_maps = hash:/etc/postfix/recipient_bcc sender_bcc_maps = hash:/etc/postfix/sender_bcc Листинг внесенных изменений: /etc/postfix/aliases senderalias: test1@myhost.com, test2@myhost.com recipientalias: test1@myhost.com, test2@myhost.com (после внесения изменений нужно ввести команду postalias /etc/postfix/aliases) /etc/postfix/sender_bcc info@myhost.com… Read more »

Работа с SSHFS под Ubuntu

Posted by & filed under Linux.

Чтобы смонтировать каталог /path/to/directory на удаленном сервере remotehost от имени пользователя user в локальный каталог /local/path, нужно использовать команду: sshfs user@remotehost:/path/to/directory /local/path Для отключения используется команда fusermount -u /local/path Чуть более оптимизированный запуск: sshfs user@remotehost:/path/to/directory /local/path -C -o no_readahead, cache=yes,cache_timeout=60,attr_timeout=60,cipher=blowfish