Chris Schuld's Blog

personal musings on the composition of software

Archive for November, 2009

Posted by Chris Schuld 1 COMMENT

Disk space can be easily controlled via OpenVZ but I have yet to find anyone to actually explain what the heck to “really” do when you need to add more! Everything I have found about OpenVZ just explains the parameters and never shows you how to do it easily. When I need to adjust disk [...]

Categories: OpenVZ
Posted by Chris Schuld 4 COMMENTS

There are a few items required for installing vzdump for OpenVZ on CentOS. First, you’ll need an MTA – I suggest making sure you have postfix installed; if you have postfix installed the initial RPM requirement for “MTA” will be handled for you. Next, you’ll need cstream. This installation is slightly more tricky because (as [...]

Categories: OpenVZ
Posted by Chris Schuld 5 COMMENTS

Here are the commands to install Webmin via Yum: echo -e "[Webmin]\nname=Webmin Distribution Neutral\nbaseurl=http://download.webmin.com/download/yum\nenabled=1" > /etc/yum.repos.d/webmin.repo rpm –import http://www.webmin.com/jcameron-key.asc yum install webmin

Categories: CentOS5
Posted by Chris Schuld 2 COMMENTS

A while back I wrote an article on Removing Images from a WordPress Post. Sebastian asked an interesting question; he wanted to remove everything but the images. This is actually pretty straightforward; here is how you do it:   . . . <?php $beforeEachImage = "<div>"; $afterEachImage = "</div>"; preg_match_all("/(<img [^>]*>)/",get_the_content(),$matches,PREG_PATTERN_ORDER); for( $i=0; isset($matches[1]) && [...]

Categories: WordPress
Posted by Chris Schuld 3 COMMENTS

Version 1.6 of Browser.php has been released with a lot of updates: http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/

Categories: PHP
Posted by Chris Schuld ADD COMMENTS

For those of you who detect Opera 10′s user agent, the Opera team has provide some “fun” for all of us. In my Browser project I started getting feedback that it was broken. At the 10,000′ level, it was defintely broken because the Browser project was returning version 9.8 for Opera version 10. This is [...]

Categories: PHP

About Chris

Chris Schuld

Thank you for visiting my website. I use this site for a myriad of things: maintaining software I have open sourced, connecting with my readers and friends and documenting all of this little things "I wished I would have written down." You can read more about me or contact me.


thanks for visiting... happy coding

Recent Comments