Display available DBI drivers
This simple bit of perl can be used to display which DBI drivers you have available on your system:
#!/usr/bin/perl -w
require DBI;
my @dbi_drivers = DBI->available_drivers;
print join(”, “, @dbi_drivers), “\n”;
This simple bit of perl can be used to display which DBI drivers you have available on your system:
#!/usr/bin/perl -w
require DBI;
my @dbi_drivers = DBI->available_drivers;
print join(”, “, @dbi_drivers), “\n”;
If you’re into filesharing, but don’t like the viruses, spam and everything awful about P2P clients (like Limewire, Kazaa), you might want to look into using newsgroups. I can consistently max out my bandwidth downloading from a news server (vs the sometimes slow speeds of P2P). With the new do-it-all newsgrabber programs out there like […]
This will install a LAMP server in about 5 minutes onto an Ubuntu server:
apt-get install apache2 php5 libapache2-mod-php5 apache2-doc php-pear
apt-get install msyql-server mysql-client php5-mysql
/etc/init.d/apache2 restart
Done!
Your apache conf files are in /etc/apache2/
PHP ini is in /etc/php5/apache2/
Your web root is /var/www/
Enjoy!
When installing apache 1.3.37 from source on an Ubuntu server, it mentioned that I had a broken echo command:
root@web02:~/apache_1.3.37# ./configure –prefix=/usr/local/apache
Configuring for Apache, Version 1.3.37
+ Warning: Your ‘echo’ command is slightly broken.
+ It interprets escape sequences per default. We already
+ tried ‘echo -E’ but had no real success. If errors occur
+ […]
It seems that Dreamhost has gone even more insane and is now offering 20GB of disk space and 1TB (yes a full terabyte) of monthly bandwidth. They also cut the price on their “Code Monster” plan in half.
To get the deal just goto their site and signup for the Level 1: Crazy Domain Insane plan […]
Need to do some substitution on multiple files? Try this command:
find ./ -type f -exec sed -i ’s/findme/replacewithme/’ {} \;
If you are looking for some excellent linux webhosting, I suggest checking out Dreamhost. They have the best I’ve ever seen!
PHP (4 and 5), perl, RubyOnRails, CGI, MySQL on Debian servers. Doesn’t get much better than that.
Use coupon code LINUXDAVE and you get 50 dollars off ANYTHING.
Check out their plans.
CVS, or the Concurrent Versioning System, allows groups of people (mostly developers) the ability to maintain and document changes in code for shared projects.
If you don’t have time to read the large, but well written CVS Admin Manual, and aren’t jumping on the Subversion bandwagon quite yet, try these simple steps to get going […]