Monthly Archives: August 2012

Stopforumspam

I Really hate spam and last week I encountered a sea of spam on one of my sites. Mys11 showed me a site which was a good tip. Thanks for that. I created a nice simple class to quickly check if an ip, email or username is registered as a spammer.

You can find it on my github repo -> https://github.com/utopias/code.grasvezel.git

Upgrade Perl on FreeBSD with portupgrade

Upgrading perl is very simple. It just takes a long time to compile everything again. See the script below how to do it. If you have an other version of perl from which you upgrade don’t forget to change the version number then!

# lang/perl5.12 is out. If you want to switch to it from, for example
#  lang/perl5.10, that is:
# Portupgrade users:
 
# 0) Fix pkgdb.db (for safety):
pkgdb -Ff
 
# 1) Reinstall new version of Perl (5.12):
env DISABLE_CONFLICTS=1 portupgrade -o lang/perl5.12 -f perl-5.10.\*
 
# 2) Reinstall everything that depends on Perl:
portupgrade -fr perl