Category Archives: How Tos

Debian GCC libc package required

If you use Debian with a “standard” or “desktop” install, you will not have GCC installed. Of course you can easily get it by installing the package: apt-get install gcc And of course you need make apt-get install make What … Continue reading

Posted in Debian, gcc, How Tos, libc, linux | Leave a comment

Stop spam-bots in PHPBB 2.x. Cheap, easy BOT stopper

WARNING!  As of this writing, this information pertains to the 2.x branch of phpBB.  I strongly recommend you upgrade to the latest phpBB.  As of April 28, 2009 that version is 3.0.4.  Please see http://phpbb.com NOTICE: I have an updated … Continue reading

Posted in How Tos, php, phpbb, spam | Leave a comment

Perl code to find an IP A in subnet B/C

my $ip = ‘1.2.3.4’; my $block1 = ‘1.2.3.0/27’; if(checkip($ip, $block1)) { print STDOUT “$ip is in $block1\n”; } else { print STDOUT “$ip is not in $block1\n”; } sub checkip() { my $ip = shift; my $block = shift; @ip1 … Continue reading

Posted in How Tos, ip addressing, ipv4, networking, perl, Programming | Leave a comment