Ever been reading a site and they show an email address as: “name AT example DOT com” to try and fool email address harvesters?
Well I have 22 million reasons why this is a stupid method. Anyone want to buy an email list?
I had recently purchased a small computer to act as my development server but I also wanted it to act as second desktop machines. I have plenty of experience using Debian as a server, but I decided to try the new distribution from Ubuntu.
The install was pretty easy including getting PHP 5.1.2, Apache 2, and MySQL 5 installed using the familiar apt-get command. (I wish they had included php 5.1.4, but this wasn’t a deal breaker)
I was dismayed to find that they didn’t have a package for PDO extension (PHP Database Objects). So I installed the PDO via the pecl command:
bhiv@devserver:~# pecl install pdo
It downloaded, phpized, configured, compiled and installed just fine. The only thing I had to do was add the line:
to the files:
(and restart apache)
But what good was the PDO without a driver for a database, in my case MySQL. So I tried:
bhiv@devserver:~# pecl install pdo_mysql
It downloaded, phpized, then failed on the configure command with the error:
You’ve configured extension pdo_mysql, which depends on extension pdo,
but you’ve either not enabled pdo, or have disabled it.
After trying a number of ways to force it to install, trying to foce the dotdeb distribution to install I found the simplest solution was to manually download the package with the following commands:
bhiv@devserver:~# wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
bhiv@devserver:~# tar zxvf PDO_MYSQL-1.0.2.tgz
bhiv@devserver:~# cd PDO_MYSQL-1.0.2
bhiv@devserver:~# vi configure
comment out lines 4163-4173
bhiv@devserver:~# sudo make install
add the lines:
to the very bottom of the file.
bhiv@devserver:~# sudo vi /etc/php/apache2/php.ini
bhiv@devserver:~# sudo vi /etc/php/cli/php.ini
bhiv@devserver:~# sudo apache2ctl restart
Hopefully there will be a php-pdo package soon. But until then, this was the simplest way to get PDO installed on your new Ubuntu system.
If you have noticed the “theBuzz” (bhiv = beehive.. bees.. they buzz, get it?) side bar and thought? Well, that seems a total waste of space, it is because I have been planning to roll my own WordPress plugin / Del.icio.us system. Mainly to emulate waxy.org because I think the idea of short and easy links is a great way around creating a full blown posts.
In the meantime, I will be consolidating all my links into a single entry, like so:
Anyway, I think you may get the idea of what theBuzz will be like, nothing special just a simple quick links. The next issue will be shorter without all this explanation.
Approximately 30 hours after I posted Digg made a change to CAPTCHA by altering the foreground colors and background colors, alternating normal and bold face, and mixing upper an lowercase letters. With the a slight modification to my program (not making all letters lowercase) it reduced my program’s accuracy to 11 % (out of 200 samples). But there was another problem, approximately 15% were not human solvable.
While using digg.com, I was surprised to see such an obviously weak CAPTCHA challenge. I was able to create a script that defeats it with a 88% accuracy within a couple hours using nothing but free software. (If you are looking for code, forget it. This is almost too much information) Continue reading