Archive for March, 2013

CAPTCHA solution for codeigniter

Posted: March 25, 2013 in php

tried lots of solutions. The best one so far, which was verrrrrry easy to install is this:

just follow the readme


Linux daemon in python

Posted: March 22, 2013 in mobile

python send email from gmail

Posted: March 22, 2013 in python

found this easy post on how to do it. worked g8 on 1st try.

the only problem was that i didn’t understand where to put the SUBJECT.

so found these links:

the message actually contains everything (from+to+subject+message)

but if you need HTML mail just use this post, it’s much better. also worked fine.


python for eclipse

Posted: March 21, 2013 in mobile

wanted python on my eclipse.

follow this and everything will be ok.

The update archive for the “Install new Software” is

Tried to open a new python project and got this error on the window dialog:

project interpreter not specified

after this just go to Window–>Preferences and under PyDev/Python Interpreter click button “Auto-config”


installed xampp on my virtual xubuntu 12.10 box. installation was fine but when trying to access phpMyAdmin got this error

New XAMPP security concept:

Access to the requested object is only available from the local network.

This setting can be configured in the file “httpd-xampp.conf”.

If you think this is a server error, please contact the webmaster.

so I followed this post and did this:

sudo pico /opt/lampp/etc/extra/httpd-xampp.conf

added the “Require all granted” line like in the post.

and restarted xampp:

sudo /opt/lampp/lampp restart


I setup the phpMyAdmin and the MySql and when I tried to connect from python or from mysql-client I got this message:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

this post has the right fix for xampp. Just run this script and it will work out:

sudo rm -rf /var/run/mysqld
sudo mkdir /var/run/mysqld
sudo ln -s /opt/lampp/var/mysql/mysql.sock /var/run/mysqld/mysql.sock