Archive for February, 2009

Slow Piggy

Friday, February 13th, 2009

Well there I said it. Can open-source projects sue?

I’ve decided to try a CMS called LightNEasy for the Chess Club (springschess.org) and it is now on-line.

It had been my intention to let Wordpress have the job, but I have become enamored of the idea that “dynamic sites” should be as static as possible. Wordpress, with it’s complete recreation of all web content on every page read, is incredibly slow. This is perhaps not a problem for commercial web servers, but it is for their clients (YOU, dear reader). For me it means even locally testing on my equipment is a tedious prospect. So while I appreciate that there is a very professional finish to the Wordpress system, and that there is a plugin to solve every problem, even this one, I need to move on. This is a difference of computing philosophy. (I recall a Sun guy saying “memory is cheap” back when memory was not cheap. I used to run Windows 3.1 with 1 mb of memory and a 10 meg hard drive. Those were the days.)

LightNEasy is a simple, no-database style, CMS system. It is about 500 kb of php and templates with a javascript based html editor (2.5 mb) attached for content creation duty. It seems to work ok with my mobile browsers, even for creation, so I’m overlooking it’s weaknesses for the moment.

Speaking of weaknesses, Wordpress 2.0 managed to get corrupted on my palmtop because it recorded my local net address as the root of my web blog. I can therefore not get to parts of the blog unless I’m online — i. e., I can’t use a PDA browser to automatically access the content. The forum explains that I have to scrub the database manually — weeee!

I was going to do that, when my system, running wp, suffered a catastrophic failure, and caused a system auto-rebuild, wiping my configuration and tools out. Now I will have to blog about how to rebuild a Zaurus. (Had to do it twice.)

LightNEasy regenerates the static content when you you change it — yaah! That makes the content movable, so generation in one place, hosting elsewhere is possible, even without PHP. It has a sqlite version, and a NO-DATABASE flat file version. It is flat for me. (I tried the sqlite; now I have a “locked” database, whatever that means. I know it means I can’t use it.)

Maybe I can even hack it. I fact I did have to hack something already to get it to work. More later.

But Wordpress still has this blog ’till I get something better.

Update: Spam comment is killing both Light’n'Easy and my Wordpress. Comments being turned off for the time being for Wordpress.

Blog moving to Fox web site - the technicals

Sunday, February 1st, 2009

I’ve been testing Wordpress (2.0.11) on my PDA as a form of self abuse. This involved setting up an Apache 1.3 with PHP 4.2 support, a MySQL 3.23.49-log database, and installing the legacy 2 branch of Wordpress on the PDA. While running “for reals,” the PDA barely has enough memory to operate in console mode when the admin functions of Wordpress are exercised in Apache.

So I’ve put up the latest wp (2.7) on the vkfox.com domain and added a plugin (WPhone) to have a PDA/cellphone accessable admin screen. This is the first test since I’m using the lynx browser from the command line of the PDA to write this post.

Blogging from the console with Wordpress

Sunday, February 1st, 2009

content moved from PDA

It turns out that running the combination of Apache + Mysqld + Qtopia + browser + Wordpress is too much for my stock Zaurus 5500 with 16M swap file on the ramdisk. I am writing this into Lynx using the bare console with Qtopia turned off.

1. Note to self — How do I turn Qte back on? I know there is a shell script somewhere but I have failed to memorize the name.

2. Note to self — must get Apache to automatically serve index.php files. Now being dumped into directories.

3. Note to self — research PHP memory usage in wordpress.
And the performance is miserable too. And what about spell checking? I may have to get that from my browser.

And look now, it got posted (published) and I can go back for an edit! It is really a surprise that this works since the version of lynx I’m using is not even javascript capable.

Answer to 2: To get back to Qtopia use the script /sbin/qt while root. Update: you can just exit the shell and you will drop back into the countdown to Qtopia.

Answer to 1: I fixed the problem with Apache not automatically serving up an index.php file by adding index.php after index.html in the appropriate place in the httpd.conf file, then stopping and restarting Apache (which I do with apachectl.sh stop and apachecrl.sh start).