Архив за месец: декември 2009

намиране на дублиращи се редове в mysql

Ето как да окрием повтарящи се редове в една таблица select address, count(address) as cnt from mailing_list group by address having cnt > 1 order by cnt; или за повече колони select `email`,`url_method`,`url`,`converter`, count(*) from test group by 1,2,3,4 having

Публикувано в Без категория

iptables block bad ips

Как да блокираме лошите ip-та 😉 # iptables -N bad_ips # iptables -I INPUT 1 -j bad_ips # cat bad_ips 1.1.1.0 1.1.1.1 1.1.1.2 1.1.1.3 1.1.1.4 2.2.2.0/24 # for i in `cat bad_ips`; do iptables -A bad_ips -s $i -j DROP;

Публикувано в linux

morfeoshow проблем с polaroid изгледа в explorer

Morfeoshow Polaroid IE Problem Morfeoshow joomla component like the one used on this site, is beautiful picture gallery that is easy to setup and use. However Polaroid layout has a little annoying problem, when opened with IE the first visit

Публикувано в Без категория