<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/blog/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <link href="http://www.open-source-depot.com/blog/feeds/atom.xml;msg32253" rel="self" title="Open Source Depot" type="application/atom+xml" />
    <link href="http://www.open-source-depot.com/blog/"                        rel="alternate"    title="Open Source Depot" type="text/html" />
    <link href="http://www.open-source-depot.com/blog/rss.php?version=2.0"     rel="alternate"    title="Open Source Depot" type="application/rss+xml" />
    <title type="html">Open Source Depot</title>
    <subtitle type="html">Software and Programming</subtitle>
    <icon>http://www.open-source-depot.com/blog/templates/competition/img/s9y_banner_small.png</icon>
    <id>http://www.open-source-depot.com/blog/</id>
    <updated>2008-06-24T20:13:49Z</updated>
    <generator uri="http://www.s9y.org/" version="1.2">Serendipity 1.2 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/20-Quake-III-Arena-Simpsons-Map.html" rel="alternate" title="Quake III Arena Simpsons Map" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-06-24T20:13:49Z</published>
        <updated>2008-06-24T20:13:49Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=20</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=20</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/1-General" label="General" term="General" />
    
        <id>http://www.open-source-depot.com/blog/archives/20-guid.html</id>
        <title type="html">Quake III Arena Simpsons Map</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                This is a video of a new custom map for Quake III Arena.   I'm guessing that it'll also work on the Open Source "Open Arena".  It's Springfield!<br />
<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/34LtrnnXQTc&hl=en"></param><embed src="http://www.youtube.com/v/34LtrnnXQTc&hl=en" type="application/x-shockwave-flash" width="425" height="344"></embed></object> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/19-Feeling-Silly.html" rel="alternate" title="Feeling Silly" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-06-12T23:02:28Z</published>
        <updated>2008-06-12T23:02:28Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=19</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=19</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/1-General" label="General" term="General" />
    
        <id>http://www.open-source-depot.com/blog/archives/19-guid.html</id>
        <title type="html">Feeling Silly</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/cudJoJKKWRA&hl=en"></param><embed src="http://www.youtube.com/v/cudJoJKKWRA&hl=en" type="application/x-shockwave-flash" width="425" height="344"></embed></object> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/18-free-partition-manager-editor.html" rel="alternate" title="free partition manager / editor" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-03-12T19:15:42Z</published>
        <updated>2008-03-12T19:20:03Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=18</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=18</wfw:commentRss>
    
    
        <id>http://www.open-source-depot.com/blog/archives/18-guid.html</id>
        <title type="html">free partition manager / editor</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Sometimes I use this blog as a personal scratchpad.  If I'm at work, or otherwise busy and come across an interesting or useful piece of software I put a note to myself about it.  One such piece of software is <strong><a href="http://gparted-livecd.tuxfamily.org/" title="gparted live cd">gparted</a></strong>.  To keep this short and simple it is a free open source livecd which will help you with creating, deleting, resizing partitions.  The partitions can be of types ntfs, ext, ext2, ext3 and many more.  It's a single use livecd in under 50MB which would be handy for anyone who regularly deals with these sorts of things.<br />
<br />
<a href="http://gparted-livecd.tuxfamily.org/" title="gparted">http://gparted-livecd.tuxfamily.org/</a><br />
<br />
BTW:  I think gparted is short for Gnome Partition Editor 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/17-I-love-VirtualBox!.html" rel="alternate" title="I love VirtualBox!" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-03-07T20:49:36Z</published>
        <updated>2008-03-07T20:49:36Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=17</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=17</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/1-General" label="General" term="General" />
    
        <id>http://www.open-source-depot.com/blog/archives/17-guid.html</id>
        <title type="html">I love VirtualBox!</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I've been using VMWare's client for quite some time and have had great success with it.  I've run several different guest OS's (some linux flavours, windows xp) without any real problems.   I read a blog entry the other day that claimed that VirtualBox was just as fast as VMWare.  Since I had previously tried QEmu and found it slow, I just had to try out VirtualBox.<br />
<br />
It's fast, fast enough to run video's on it (celeron 3ghz, running Ubuntu, Running VirtualBox with XP in the VirtualBox VM.  My next step, try video editing.  For the first time I can see myself running Linux as the primary OS on all of my boxes, of course I will keep Windows XP around for my video editing and some other minor stuff, since I bought an xbox 360 I don't game on the PC much any more.<br />
<br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/16-Shrek-Text-for-Gimp-2.4.html" rel="alternate" title="Shrek Text for Gimp 2.4" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-11-12T21:48:00Z</published>
        <updated>2007-12-10T13:09:39Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=16</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=16</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/14-Gimp" label="Gimp" term="Gimp" />
    
        <id>http://www.open-source-depot.com/blog/archives/16-guid.html</id>
        <title type="html">Shrek Text for Gimp 2.4</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I finally got Shrek Text working for gimp 2.4.  Click on one of the shrek-text images to download it.  Shrek Text (shrek-text) is a script-fu plugin for Gimp 2.4.  To install it under windows put it in your:<br />
<br />
<blockquote>C:\Program Files\GIMP-2.0\share\gimp\2.0\scripts</blockquote><br />
<br />
Directory (adjust as appropriate of course) and then choose Xtns...Script-Fu...Refresh Scripts (or just exit and restart Gimp).<br />
<br />
<a class='serendipity_image_link' href='http://www.open-source-depot.com/blog/uploads/shrek-text.scm' target="_blank"><!-- s9ymdb:7 --><img width="351" height="138" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://www.open-source-depot.com/blog/uploads/gimp/shrek_green.jpg" alt="" /></a><br />
<br />
<a class='serendipity_image_link' href='http://www.open-source-depot.com/blog/uploads/shrek-text.scm' target="_blank"><!-- s9ymdb:9 --><img width="351" height="138" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://www.open-source-depot.com/blog/uploads/gimp/shrek_red.jpg" alt="" /></a><br />
<br />
<a class='serendipity_image_link' href='http://www.open-source-depot.com/blog/uploads/shrek-text.scm' target="_blank"><!-- s9ymdb:8 --><img width="351" height="138" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://www.open-source-depot.com/blog/uploads/gimp/shrek_blue.jpg" alt="" /></a><br />
<br />
Note that I did not create this script, I just modified it so that it will run under Gimp 2.4. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/15-sudo-is-not-my-friend.html" rel="alternate" title="sudo is not my friend" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-10-31T15:14:46Z</published>
        <updated>2007-10-31T15:20:38Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=15</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=15</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/11-Ubuntu-Linux" label="Ubuntu Linux" term="Ubuntu Linux" />
    
        <id>http://www.open-source-depot.com/blog/archives/15-guid.html</id>
        <title type="html">sudo is not my friend</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                This week I was playing around on my trusty linux box (Ubuntu) and decided to upgrade my linux kernel.  Simple enough, it was actually part of the general Ubuntu updates that I chose to apply to my 7.04 install.<br />
<br />
Much to my disappointment, my vmware player no longer worked after the update.  After playing around a bit, I figured it was because my kernel had been updated.  So, I went about trying to install a new vmware player.  I must have messed something up, because the install went ok, but the player now complained about mismatched modules.<br />
<br />
So, I'm going around my system getting rid of all the old vmware references so that I can do a new install and I find myself in the usr/bin directory and I do:<br />
<br />
/usr/bin rm -rf vmware*<br />
<br />
to which my machine replies (paraphrase)<br />
"Hey, bub you don't have permission to remove these files"<br />
so, I say...oh yeah...<br />
/usr/sudo bin rm -rf vmware *<br />
<br />
Note the difference between the two statemets.<br />
Yep, trusty old rm removed all the vmware files and...all of my other files under usr/bin, essentially rendering 95% of my machine useless.<br />
<br />
I am (as we speak) ftp'ing into my machine to try to recover any files I need to backup before my fresh install of Ubuntu 7.10.  Thank goodness that my ftp daemon is still running.<br />
<br />
So, to make a long story short, sudo and I are on the outs right now... 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/14-Installing-Alternative-PHP-Cache-on-CentOS4.html" rel="alternate" title="Installing Alternative PHP Cache on CentOS4" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-10-26T13:33:00Z</published>
        <updated>2007-10-26T13:33:22Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=14</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=14</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/7-PHP" label="PHP" term="PHP" />
    
        <id>http://www.open-source-depot.com/blog/archives/14-guid.html</id>
        <title type="html">Installing Alternative PHP Cache on CentOS4</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                If you look at a PHP source file you will notice one thing.  It's a source file.  Not particularly surprising, but think about when you deploy a PHP application, what do you deploy?  PHP source files.  Now for many other languages; Java, C, etc when you deploy an application you deploy the compiled file.  So, the question that you want to ask yourself is this, how much time does a PHP application spend compiling source files vs running the code?  I'll answer that for you, a lot.<br />
<br />
There are advantages to being able to deploy source files though.  It makes it easy to do on the fly modifications or bug fixes to a program, much like we used to do in the early BASIC languages.  Just change the file and the next time it's accessed your change is reflected.  So, how do we keep the dynamic nature of PHP, but not recompile our files every time they are accessed?<br />
<br />
A PHP cache.  It's surprising to me that this concept isn't built into the base PHP engine, but perhaps that's because some company's can sell this add on to speed up PHP.  Luckily for us, some companies/open source projects provide this plug in to PHP at no charge.  These plug ins are generally known as PHP accelerators, some of them do some optimization and then caching and some only do caching.  I'm not going to pass judgement on which one is the best, any of them are better than nothing, but I decided to use APC, the Alternative PHP Cache.  I chose this one because it is still in active development and is open source and free.<br />
<br />
Alternative php cache can be found at php.net, just look down the left column for APC.  It comes in source form, so you will need to compile it before installing it, don't worry about that part.  If you're using Red Hat 4 or CentOS4 I'll tell you exactly how to do it.  If you're using something else, you'll need the same tools, but getting the tools might be a bit different.<br />
<br />
1.  The Tools<br />
Do you know how many web sites, forums and blogs I went to with my error messages before I found the answers as to what I was missing when I was trying to install APC - Alternative PHP Cache?  Two days worth, but I finally found the correct combination and it's really quite obvious as is everything once you know the answer.  There are three sets of dev tools that you will need.<br />
<br />
1a. You'll need a package called "Development Tools" this will include all the important dev tools like the GCC compiler, etc.<br />
1b. You'll need a package called php-devel which as you might guess are development tools for PHP<br />
1c. You'll need a package called httpd-devel which of course are dev tools for Apache web server.<br />
<br />
On Red Hat or CentOS getting these should be as easy as the following 3 commands:<br />
<br />
yum groupinstall "Development Tools"<br />
yum install php-devel<br />
yum install httpd-devel <br />
<br />
You'll do these three one at a time and follow any instructions (usually just saying yes).<br />
<br />
Now it's time to follow the instructions contained in the APC package.  Since these may change over time I'm not going to go through them.  They are very complete.  If you follow the instructions and get an apc.so file out of it, then you're all set, just modify your php.ini file and you're good to go.<br />
<br />
There are two problems that I encountered that you may encounter too.  The first is an error when running phpize.  I ignored this error and everything succeeded okay, but not before I spent hours looking for the solution to this error.  Here is the error.<br />
<br />
configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG<br />
  run info '(automake)Extending aclocal'<br />
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal<br />
configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR<br />
configure.in:33: warning: underquoted definition of PHP_EXT_DIR<br />
configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR<br />
configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED<br />
acinclude.m4:19: warning: underquoted definition of PHP_PROG_RE2C<br />
<br />
People would have had me updating my PHP version from 4.3.9 and everything else under the sun to get rid of this error, but in the end it didn't matter.  My APC compiled and installed nicely and I am good to go.<br />
<br />
The other slight problem that I ran into was the location of php-config.  The install instructions wanted me to do the following:<br />
 <br />
  ./configure --enable-apc-mmap --with-apxs --with-php-config=/usr/local/php/bin/php-config<br />
<br />
However my php-config is in /usr/bin/php-config.  Making that change allowed this part to work.<br />
<br />
So, have at it, once it's done you can expect to see huge improvements in your web site response times and reductions on your CPU load.  One more quick note, My server hosts about 20 web sites, but only 3 or 4 are really busy.  To reduce the memory footprint of caching everything for all 20 sites I used the apc.filters property.  Although this property is slightly flawed for non qualified includes, it worked nicely for my Serendipity blogs.  Your mileage with this property will vary according to the software you are using and how it does it's includes.<br />
 <br />
<br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/13-MySQL-Performance-Tip-on-CentOS4-on-GoDaddy.html" rel="alternate" title="MySQL Performance Tip on CentOS4 on GoDaddy" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-10-24T23:57:03Z</published>
        <updated>2007-10-24T23:57:03Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=13</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=13</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/5-MySQL" label="MySQL" term="MySQL" />
    
        <id>http://www.open-source-depot.com/blog/archives/13-guid.html</id>
        <title type="html">MySQL Performance Tip on CentOS4 on GoDaddy</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I run about twenty websites, formerly spread over two shared hosting accounts.  Last month my hosts, both independently shut me down for over utilizing CPU.  Fair enough, I didn't think that I was abusing the accounts, but I don't make the rules.  <br />
<br />
I immediately started looking for alternatives and decided on Go Daddy dedicated hosting.  The price was right and for just over $100 a month I got a nice server with 2 GB of memory, 500GB of monthly bandwidth, a speedy CPU all to my self, to abuse as I see fit.<br />
<br />
Fast forward to UFC 77.  You see I run a web site which does UFC predictions and UFC results.  On fight night, the site can get pretty busy, my previous high was 18,000 visitors in the 3 or so hours that the fights take place.  My shared hosting account never had a problem with this load, at least not as far as I could tell.  However, with UFC 77 on my new dedicated hosting account my server hit a brick wall.  The CPU was at 100% and there were 200 apache processes all vying for the available CPU and memory.  Immediately I started looking for reasons and more importantly solutions.  Three days later I think I have most of my answers.<br />
<br />
It's important to know that Go Daddy was not at fault, I asked for a box with certain specs and that's exactly what they gave me, complete with all the software they said.  MySQL, PHOP 4.3.9 and Apache 2.0.52.  So I started looking (when the server calmed down) at what was happening when a user requested a page.  The first thing that I noticed was that the current apache process would take about 5% CPU, I did not pay attention to how long it ran.  The next thing I noted was that mysql would also take significant CPU, if only for a short period of time.  It's important to know that during UFC 77 MySQL was taking approx 50% CPU for the whole busy period.  Time to search for some optimizations.<br />
<br />
For my site, where there are 20,000 visitors in 3 hours and maybe 10 updates during that time, caching would obviously be helpful.  I noticed searching the web that apache has some caching and even better some min caching, however it is not considered production ready in the 2.0.52 build that I have, so I discarded that idea rather quickly.  I did however notice some things when I looked at MySQL optimizations.<br />
<br />
The most important MySQL optimization that I found is the query_cache_size option.  You see, MySQL has this concept of query caching, here's a simple explanation.  If I do a simple query, say<br />
<br />
SELECT customer_name from customer where customer_id > 10  (I know, a silly query)<br />
<br />
Generally the database goes through all of it's magic and returns back the result set of all customers names who's id's are greater than 10.  For this query it wouldn't take very long, but the more complex the query the longer it would take.  However, with MySQL query caching, the result of that query would be kept in memory, along with the query itself, meaning that the next time the same query was run the database would just check that no tables in the query have been changed and then look up the result in memory and give it back.  This is much faster.  MySQL has query caching turned on by default, but the query_cache_size variable is set to 0, essentially disabling the feature.  To turn it on you must do:<br />
<br />
query_cache_size=64M in my.cnf<br />
<br />
Note:  I also increased my query_cache_limit to 4M and my thread_cache_size to 384.  There are many other MySQL options which you can set to enhance performance, look for a good MySQL book or maybe I'll post some of them on my open source depot blog at www.open-source-depot.com/blog.<br />
<br />
After setting those options in my.cnf you'll need to restart MySQL, being that I'm kind of impatient and I don't like restarting processes I went to the MySQL command line and set the global options.  For some reason the 64M didn't work for me there, so I used the expanded (bytes) version<br />
<br />
i.e  mysql> SET GLOBAL query_cache_size = 60000000;<br />
<br />
to see what's set, do a:<br />
<br />
mysql> SHOW VARIABLES LIKE 'have_query_cache';<br />
<br />
Note: You need to tell MySQL to "go" with a \g on the next line.<br />
<br />
Now I tried hitting my blog a bit and found that the CPU for MySQL never went over 1 or 2 (except for the first hit), very very cool.  I must make a note that I have found some references on the net where query caching on MySQL actually degrades performance for certain circumstances.  I would guess that in a heavy update environment (a shopping cart for instance) that the overhead of the cache might outweight it's usefullness, but for sites like mine where it's 99.9% reading and only .1% writing query caching is awesome.  There are other MySQL optimizations that I want to look at like table caching and maybe even persistent connections, but one step at a time.  I want to see what kind of difference this one change will make.  I'm hoping for good things.  My next step is PHP caching, but I'll save that for another article. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/12-Ubuntu-7.10-is-out!.html" rel="alternate" title="Ubuntu 7.10 is out!" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-10-23T16:21:52Z</published>
        <updated>2007-10-23T16:21:52Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=12</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=12</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/11-Ubuntu-Linux" label="Ubuntu Linux" term="Ubuntu Linux" />
    
        <id>http://www.open-source-depot.com/blog/archives/12-guid.html</id>
        <title type="html">Ubuntu 7.10 is out!</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Visit ubuntu.com to get it.<br />
<br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/11-Remember-when-Red-Hat-Linux-was-free.html" rel="alternate" title="Remember when Red Hat Linux was free?" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-10-16T14:07:28Z</published>
        <updated>2007-10-16T15:07:20Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=11</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=11</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/4-Linux" label="Linux" term="Linux" />
    
        <id>http://www.open-source-depot.com/blog/archives/11-guid.html</id>
        <title type="html">Remember when Red Hat Linux was free?</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Ya, so do I.   I know that they now have "Fedora Core" and I'm sure it's really really good, but I wanted to get my hands on a free copy of Red Hat enterprise 4.  Well, a little searching turned up CentOS.<br />
<br />
Yep, the same CentOS that godaddy uses on their accounds is a free "binary compatible" version of Red Hat enterprise.  I immediately pulled it down, stuffed it into a VMWare virtual machine (running on Ubuntu) and gave it a test drive.  Pretty cool stuff.<br />
<br />
So, if you need Red Hat Enterprise, but don't need the support contract, give CentOS a try.  Just google centos...it'll be the first one that comes up. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/10-Sending-your-Ubuntu-hostname-to-your-dhcp-server.html" rel="alternate" title="Sending your Ubuntu hostname to your dhcp server" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-10-10T18:38:24Z</published>
        <updated>2007-10-10T18:38:24Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=10</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/11-Ubuntu-Linux" label="Ubuntu Linux" term="Ubuntu Linux" />
    
        <id>http://www.open-source-depot.com/blog/archives/10-guid.html</id>
        <title type="html">Sending your Ubuntu hostname to your dhcp server</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I have no idea why the ubuntu install wouldn't do this automatically, but here it is:<br />
<br />
<blockquote>Edit the file /etc/dhcp3/dhclient.conf. The first commented configuration line sets the hostname. Uncomment it (remove the #) then change the hostname. I have found I don't need a fully-qualified name (like is there by default), just the name of the computer itself. The machine I'm on looks like this:<br />
send host-name "myhost";<br />
<br />
Save the file, and get dhclient to restart. (Simplest way is just to reboot, but that's a Windows answer so... <img src="http://www.open-source-depot.com/blog/templates/default/img/emoticons/wink.png" alt=";-)" style="display: inline; vertical-align: bottom;" class="emoticon" /> )</blockquote> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/9-Shared-or-Dedicated-Hosting-for-your-Serendipity-Blog.html" rel="alternate" title="Shared or Dedicated Hosting for your Serendipity Blog" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-10-05T13:34:42Z</published>
        <updated>2007-10-05T13:37:12Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=9</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=9</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/2-Serendipity" label="Serendipity" term="Serendipity" />
    
        <id>http://www.open-source-depot.com/blog/archives/9-guid.html</id>
        <title type="html">Shared or Dedicated Hosting for your Serendipity Blog</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                First things first, this article isn't only about which hosting is best for Serendipity blogs.  It's just a general shared vs dedicated hosting article.  However, most of the web sites that I do use the Serendipity blog engine, so the title is appropriate in that way.<br />
<br />
When you first start thinking about building your first web site you are faced with a lot of choices. You need to choose a domain name, but also somebody to register that domain name. You need to decide on whether you'll use a CMS tool like Joomla or a blog engine like Wordpress, or maybe you'll purchase a nice template and use that. One of the biggest choices you'll need to make is your hosting service. The right hosting service can be the difference between spending time installing and configuring your site and spending time adding content.<br />
<br />
Once you've chosen your hosting service you will be asking yourself one more important question. Do I choose shared hosting or dedicated hosting? There is not an easy one or the other answer to that question. In fact I'm having trouble even phrasing it generically so that you can size up your situation and decide, but I'll lay down a few rules and gotcha's and see where we end up.<br />
<br />
On the surface shared hosting seems like a great deal. For instance from Go Daddy you can get shared hosting plan for just $3.99 a month. The plan will give you 5GB of disk space and 250GB bandwidth. For a little more, $6.99 you get 100GB disk and 1000 GB bandwidth. Now, I just used Go Daddy as an example, but Host Gator and others are similar, some with slightly higher prices and some with slightly lower, but all have the same rules.<br />
<br />
Hidden somewhere in your shared hosting agreement there will be a clause about not hogging system resources. What that means is that even if your site is not busy 99% of the time, if you get a big spike they have the right to shut you down. You see, the factor to be concerned with is not bandwidth or disk storage, it's CPU cycles. It's not average CPU cycles over the month, if you spike even for a short time all hosting services will shut down your shared account.<br />
<br />
How do I know about the shared host shutdown? It happened twice to me. I'm not complaining, that's the price of having a successful web site while paying for bargain basement hosting. In my one case I got shut down because I had 8000 hits in about an hour. My daily average was about 500 hits. It seems that the blog engine I was using was using too much CPU time on my shared host, so they shut me down. Okay, so you're thinking that you can go shared and when you get to around 7000 then you can switch over to dedicated. Maybe that'll work, but in another case I was shut down with just 346 hits. Now for the 346 hit case my host sent me the log file and to my eyes it didn't seem that I was using much CPU at all. It showed my account using 100% CPU for .2 seconds. It also showed (in another case) my process taking 29 seconds, but using 0% CPU. I believe this was a case of mistaken identity. They saw that their server was slow and looked for long running processes, but didn't look at actual cycles taken. The long wait by the way was because of a YouTube vid running on my site.<br />
<br />
So, after a full year on two shared hosting accounts, from two different companies, it was time to try my hand at dedicated hosting. One thing you must know about dedicated hosting is that you are running and responsible for all aspects of the box. That means that you are "root". There is nobody else monitoring for hung processes, nobody else installing software for you, but the best part is nobody kicking you off for using too much CPU for 10 seconds of the month.<br />
<br />
My shared hosting accounts were $6.99 and $10 (total of $17/month). My new dedicated hosting account started at $79/month, but I bumped up the memory and CPU on the box and the final price is $111/month. That's a huge difference when you're just starting out, and over the first year I've saved $1200 going that way, but now I feel to move forward with my web sites I need the freedom that dedicated hosting allows. Freedom to have a busy day, freedom to be successful.<br />
<br />
I don't want to make you shy away from shared hosting when you're just starting out. It's a great way to get your feet wet, establish a proof of concept and build your knowledge while keeping your budget low. Many small businesses or personal pages may never need more than a shared hosting account. For me, one year on shared hosting gave my little business enough time to grow enough for me to justify paying for dedicated hosting.<br />
<br />
As a closing note, my ongoing move from my shared hosting accounts to my dedicated hosting account has taken about two weeks. The first couple of days was experimenting and learning, followed by a few days moving my best performing sites over and the last week has been spent moving the rest of my web sites over, cleaning up security and doing more learning. In the end, I chose Go Daddy as my dedicated host. I figured they deserved it, at least when they shut me down at 8000 hits it was conceivable that I was over stressing my shared account. As for the other company, the one who shut me down with the log file which proved nothing at 350 hits, sometimes you only get one mistake and in the web business when your site is having it's best day ever and your host shuts you down without good reason, it's time to move on.<br />
<br />
I've found <a href="http://www.anrdoezrs.net/click-2275019-10378494" target="_top">GoDaddy.com Hosting Plans</a> <img src="http://www.lduhtrp.net/image-2275019-10378494" width="1" height="1" border="0"/> to be the best that I've tried, but I am only one person.  Shop around and see what fits your needs best.<br />
<br />
If you do decide to purchase one of the <a href="http://www.anrdoezrs.net/click-2275019-10378494" target="_top">GoDaddy.com Hosting Plans</a> <img src="http://www.lduhtrp.net/image-2275019-10378494" width="1" height="1" border="0"/> come back here and click my ad for godaddy <img src="http://www.open-source-depot.com/blog/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" />  It will cost you the same amount of money as if you go there directly, but I'll get a bit of a kickback...and isn't that what it's all about? <br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/8-Migrating-Serendipity-Blog-to-a-new-Server.html" rel="alternate" title="Migrating Serendipity Blog to a new Server" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-10-01T00:21:53Z</published>
        <updated>2007-10-01T00:21:53Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=8</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=8</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/2-Serendipity" label="Serendipity" term="Serendipity" />
    
        <id>http://www.open-source-depot.com/blog/archives/8-guid.html</id>
        <title type="html">Migrating Serendipity Blog to a new Server</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Moving to a new server is never easy or painless no matter how much work a software company (or open source project) has taken to make paths relative and isolate server specific settings.  The fine authors of the Serendipity blog engine have done a very good job with these abstractions, but there are a couple of tricks and tips which will help you out if you need to move to a new server and/or a new domain name.<br />
<br />
The first thing you need to do is make sure your security on your new server is set up correctly.  For my case I had to move about 20 web sites from a shared hosting account (where security was managed for me) to a dedicated hosting account (where I had to implement the security myself).  I am not going to elaborate on what I had to do for my security requirements, but for yours you will need to make sure that the appropriate directories have write access from PHP (or more likely the web server that PHP is running under).  If you have a shared hosting account you can pretty much assume that this is taken care of for you and the files you upload via FTP will be given write access by apache.<br />
<br />
Once your security issues are sorted out you are ready to move your stuff.  What I did is I FTP'd all the files from my installation to my local drive.  From there I would be free to modify what is needed.  I also created an export from MySQL using myPHPAdmin.  When I created my export I chose drop database and drop table options, this way my new database was being created right from scratch.  If you are installing to an existing database on your new server clearly you don't want the drop database option.  I also pulled down this generated .sql file to my local box.<br />
<br />
Now for the fun, a couple of quick steps and you'll be ready to start the move.<br />
<br />
1.  Go into the generated .sql file and do a search for your old path.  For example mine was something like /home/a/b/c/jonny/html/serendipity/ then modify all instances of this string to where your new install is going to be.  For example, my new install dir is something like /home/mma/public_html/<br />
<br />
i.e. search and replace old install path with new install path in MySQL file.<br />
<br />
2.  If you are changing your table prefixes on your new install (you probably aren't), then change all these instances.  My old was serendipity_mma_ and I decided to keep that, so no changes were necessary.<br />
<br />
3.  If you are changing your domain name, then make all of those changes.  My old domain name was mma.gocurious.com and my new one is www.ufcresultslive.com, so I did the search and replace on all of those.  Technically I didn't need to do this step as I am redirecting all traffic from my old domain to my new one anyway, but it's better to have it changed.<br />
<br />
4.  You are now finished with the .sql file, save it and remember where it is.  You will need to upload and apply it later.<br />
<br />
5.  We now need to fix your serenendipity_config_local.php file.  This is the file in serendipity which contains your database information (name and password), database prefix (serendipity_mma_ in my case) and all the other goodies that serendipity needs to connect to the db.  Make sure that these values correspond to your values on your new database.  You can now save your serendipity_config_local.php file.<br />
<br />
6.  You can now upload (probably via FTP or SFTP) your serendipity files to the new server.<br />
<br />
7.  We need to build your new database.  How you do this will be specific to the tools that you have access to.  If you are moving to a dedicated host then you can simply upload the .sql file and apply it via the MySQL command line tools.  If you are moving to a new shared host then the myPHPAdmin import will only handle up to 2 meg.  If your db is larger than 2 meg you will need to get a tool known as BigDump.  Note that I have not used BigDump myself, but have read that it works quite well.  BigDump essentially splits your sql into < 2MB chunks and applies them.<br />
<br />
8.  You're almost done, you've updated your config file, built your new db with all the changed info and uploaded it all to the server.  All you need to do now is change your domain to point to the new server and wait for the change to take effect.  <br />
<br />
That's it.  Congratulations you should have now succesfully moved Serendipity to your new server.  When I did all of this my security wasn't set up properly, so I had to chmod some files temporarily to make them writable.  The most notable was the config which was 700 I believe and since my FTP user and web user aren't the same I didn't have write access.  Serendipity is nice enough to tell you when it can't write to a file.  <br />
<br />
Note:  Always make sure that your new server is up and running and stable before cancelling your old account or deleting your files off your old server.  I made that mistake and was down for about a day with a problem as a result.  If I'd left my files on the old server I could have just switched my domain to point back at it while I figured the new problem. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/7-Can-You-Blend-Your-IT-Infrastructure.html" rel="alternate" title="Can You Blend Your IT Infrastructure?" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-09-21T19:16:27Z</published>
        <updated>2007-09-21T19:16:27Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=7</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=7</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/4-Linux" label="Linux" term="Linux" />
    
        <id>http://www.open-source-depot.com/blog/archives/7-guid.html</id>
        <title type="html">Can You Blend Your IT Infrastructure?</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                This video aims to answer that very question.<br />
<br />
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/8NeR2LyILWQ"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/8NeR2LyILWQ" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.open-source-depot.com/blog/archives/6-DOSBox-for-Portable-Apps.html" rel="alternate" title="DOSBox for Portable Apps" />
        <author>
            <name>Jon Murray</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-08-28T18:50:02Z</published>
        <updated>2007-08-28T18:53:40Z</updated>
        <wfw:comment>http://www.open-source-depot.com/blog/wfwcomment.php?cid=6</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.open-source-depot.com/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=6</wfw:commentRss>
    
            <category scheme="http://www.open-source-depot.com/blog/categories/13-Portable-Apps" label="Portable Apps" term="Portable Apps" />
    
        <id>http://www.open-source-depot.com/blog/archives/6-guid.html</id>
        <title type="html">DOSBox for Portable Apps</title>
        <content type="xhtml" xml:base="http://www.open-source-depot.com/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                In my previous entry I talked about this suite of applications from portableapps.com which can be installed to a memory stick (USB, Flash, whatever).  All of the application info is stored on the stick and the host machine never needs to know about the apps...cool, right.<br />
<br />
Well, I found a new addition to the Portable Apps family.  It's called DOSBox.  It's essentially a DOS emulator which runs right off the stick.  I tried it out and was able to run Doom, Wolfenstein, Duke3d and others all in their glory.  Apps can run in a window or fullscreen.<br />
<br />
Below is a pic of Wolfenstein 3d<br />
<br />
<div class="serendipity_imageComment_center" style="width: 646px"><div class="serendipity_imageComment_img"><!-- s9ymdb:4 --><img width='646' height='425'  src="http://www.open-source-depot.com/blog/uploads/portableapps/DOSBox_wolf3d.jpg" alt="" /></div><div class="serendipity_imageComment_txt">Wolfenstein 3d running in DOS Box Portable</div></div> 
            </div>
        </content>
        
    </entry>

</feed>