centos 7, apache event MPM with php-fpm
unbound how to use rbldnsd as rhsbl
centos 7, setting nofile and nproc on systemd
postfix, auto postmap using inotify
Arduino nano, ENC28J60 Ethernet shield and 4 channel relay
i have already made this project previuosly using arduino uno, wiznet w5100 ethernet shield and 4 channel relay shield. But using Arduino nano + ENC29J60 lot cheaper. not mention it has smaller size. Once you get this badboy online on your network, you can control every device in your house using your smartphone or any gadget you have(that rely on your coding skill, ofcourse).
let’s the fun begin 🙂
wait, as usual i don’t do lots of talk so here’s the schematic and arduino code.
Change Password Using courierpassd on dovecot mysql
When you have webmail separated from your pop3/imap4 server things can be complicated if you don’t have direct access to mysql server over the network. using poppassd will not solving the problem if you’re using mysql, pgsql or ldap backend for storing user information. because (AFAIK) it only can access/change user/password on passwd/shadow file.
using courierpassd allows us to access or modify pop3/imap4 user information store in mysql, pgsl or ldap backend. one caveat, courierpassd using courier-authlib API in order to be able accessing those database backend. we have to install or build from source. courierpassd use the same protocol as poppassd does.
i’m using centos and this is how i do it.
first using non priviledged user cccount, create rpm build environment.
$ mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} $ echo '%_topdir %(echo $HOME)/rpmbuild' >> ~/.rpmmacros mkdir $HOME/rpm mkdir $HOME/rpm/SOURCES mkdir $HOME/rpm/SPECS mkdir $HOME/rpm/BUILD mkdir $HOME/rpm/SRPMS mkdir $HOME/rpm/RPMS mkdir $HOME/rpm/RPMS/i386 echo '%_topdir $HOME/rpm' >> $HOME/.rpmmacros
download courier-authlib and courierpassd source
wget http://prdownloads.sourceforge.net/courier/courier-authlib-0.60.2.tar.bz2 wget http://www.arda.homeunix.net/?ddownload=375 -O courierpassd.1.1.2.tar.gz
compile and install courier-authlib
$rpmbuild -ta courier-authlib-0.60.2.tar.bz2 $sudo rpm -ivh /home/youruser/rpm/RPMS/x86_64/courier-authlib-0.66.4-1.el6.x86_64.rpm $sudo rpm -ivh /home/youruser/rpm/RPMS/x86_64/courier-authlib-devel-0.66.4-1.el6.x86_64.rpm $sudo rpm -ivh /home/youruser/rpm/RPMS/x86_64/courier-authlib-mysql-0.66.4-1.el6.x86_64.rpm
extract courierpassd, compile and install
#tar xzf courierpassd.1.1.2.tar.gz #cd courierpassd-1.1.2 #./configure #make #make install
you want be able to access this courierpassd from other server on the network. people using xinet.d usually.
#vi /etc/xinetd.d/courierpassd service courierpassd { disable = no socket_type = stream protocol = tcp port = 106 wait = no user = root server = /usr/sbin/courierpassd instances = 10 only_from = 192.168.0.101 127.0.0.1 }
ESP8266 NodeMCU DHT22 and thingspeak API
postfix and dovecot 2.0.9 rejecting over quota user on smtp stage
How To Make A Propeller Clock
Once upon a time, lifes goes on as usual, boring. Until one day my friend showing me a weird clock on youtube. i said “wow, that was awesome!”, “how it works?”, “i should make one!”. Basically, i have experienced on electronic DIY stuffs. i started to figure out on how to make it, lots of information found. so basicaly, propeller clock based on POV (Persistence of vision)
http://en.wikipedia.org/wiki/Persistence_of_vision
The clock’s graph formed by cheating human eyes, one array of leds burst on constant interval/delay in one motor rotation, continuously (in this case  divided to 360 degree in one rotation, can be more for higher resolution).
After i’ve found, understand, (and yet still confused on how it works :P). i started making prototypes with existing MCU module (atmega8535), wired to array of 8 leds. it works, and not good!! it’s too heavy, no index reference, the text is very unstable. i need to design new board which is lighter and throw out all unnecessary components. there are two web site that i’m using as references, when building this clock.
http://www.microsyl.com/index.php/2010/03/18/propeller-clock/
i used the codes from there with lots of modification, original code is writen using ICCAVR, i converted it to AVR Studio.
http://www.oocities.org/tjacodesign/propclock/propclock.html
i used his isolated power supply, to power up the propeller clock module.
For remote control, it was stolen from here: 😀
http://www.dharmanitech.com/2009/01/ir-remote-controlled-car-pwm-motor.html
picture