Sunday, December 29, 2013

how to block and punish users who download bittorrent in LAN

block it

iptables -I FORWARD -s -i eth2 -j DROP

Saturday, December 28, 2013

raspbmc (raspberry pi + xbmc) and remote controller

I had problem with raspbmc.  My remote controller of Samsung TV Series 5 didn't work.  The TV is connected with raspbmc with HDMI cable.  I found out later that it is because of my outdated version of HDMI cable (HDMI cable has versions!!!).  Replaced it with the new one with newer version, then I can use remote controller with raspbmc!

Thursday, December 26, 2013

apache mod qos

Want to control limit of request per each url and etc with apache?  Try mod_qos.

You can install it from debian's repository too.

Wednesday, December 25, 2013

How to reset password of user in TWiki

Simply go to /twiki/data/.htpasswd and replace the password field with the result from "htpasswd -d" ( Force CRYPT encryption of the password).  htpasswd is an Apache's tool.

Monday, December 16, 2013

kindle fails to look up dictionary

The problem is that I can't look up words from English dictionary with this specific book.  I manage to find out that this book's meta data has error.  It is set to be Spanish while, in fact, it has to be English.

Here is an easy fix.
  1. Download the book from as .azw format to your computer.
  2. Open Calibre (  Add this book to Calibre.
  3. Use Calibre to "edit metadata" of this book.  Change it from Spanish into English.
  4. Export this book (save to disk).
  5. Send the new azw file to you Kindle as a personal document (probably via Kindle's email).