
I finally got Denise to start working on Herrick Design. We’re enjoying playing with WordPress and sub-theming TwentyEleven.

I finally got Denise to start working on Herrick Design. We’re enjoying playing with WordPress and sub-theming TwentyEleven.
Stop custom editing core WordPress files… It’s all here: http://codex.wordpress.org/Writing_a_Plugin. It only seems like a small mountain the first time through. ;-)
Wow, I am surprised that after all this time Slashdot changed its look [slashdot.org]:
So I went digging for mobile webapp frameworks, and I found a nice list to investigate at a later time. While I have used iUI in the past, and it worked well for my purposes… I have read a few reasons why you may consider others (CiUI). Also, I seem to think that there would be some obvious advantages (and disadvantages) to using a cross-platform mobile webapp framework like PhoneGap and others.
Here the list I came up with:
Update (2010-08-13). I just found this article: Announcing the jQuery Mobile Project
Once they get up and running, I imagine it will be a serious contender with the others.
Update (2010-08-18). Here’s an article from Mashable about some of the frameworks and libraries talked about above (and others): HOW TO: Make Your Mobile Websites Act More Like Native Apps
I just whipped up some PHP and threw it in the root of a brand new WordPress 2.9.2 install:
Voila. The post appeared when navigating to the .php file.
See: http://prex.wordpress.org/Function_Reference/wp_insert_post.
For more creativity, get into the database: http://prex.wordpress.org/Function_Reference/wpdb_Class
I thought this would be fun to show everyone.
The amount of visitors coming to karlherrick.com is fairly consistent, so I was surprised to see such a spike when I was in a car accident recently. There must be some correlation to draw here.
I am thinking of breaking my leg next week to drive the traffic back up. ;-)
Just kidding.
After wanting to test WordPress 3.0 on a 1and1 hosting account, I ran into the following issue… the particular setup I was dealing with had only one database available, and it wasn’t MySQL 5, but instead MySQL 4… furthermore, it was a version lower than 4.1.2, which more recent versions of WordPress require as a minimum.
So after doing a bit of research on what others had done, I went about fixing the problem. Interestingly enough, 1and1 could have made some money in this situation if they would allow customers to simply purchase another database to add to their packages, but no, they want an entire upgrade to be purchased.
The first step was to backup the website and database. I ssh’ed into the web host:
username@localhostname:~$ ssh $username@example.com
Then I backed up the database. The command below will dump all of the databases on the host (in this case, only one MySQL 4.x database) into a dated bzip file, in the home directory.
username@remotehostname:~$ mysqldump -C -A -u $databaseUsername -h $databaseHostName -p$databasePassword | bzip2 -cq9 > ~/`date +%F-%I-%M-%p`-db-backup.sql.bz2
Now to backup the site itself (not only in case disaster struck, but this would get a local copy of the sql dump I just made as well). On a local OS X workstation (or Ubuntu, if that suits your tastes) I ran something similar to the following:
username@localhostname:~$ mkdir ~/website_backups username@localhostname:~$ rsync -avz --exclude="logs" $username@example.com: ~/website_backups/
From there, I was able to log into the 1and1 control panel and delete the existing database. This allowed me to setup a new one, and in particular, choose MySQL 4 or 5 as the type.
Back to the 1and1 hosting account:
username@localhostname:~$ ssh $username@example.com
I uncompressed the sql dump:
username@remotehostname:~$ bunzip2 2010-01-14-01-59-PM-db-backup.sql.bz2
and was greeted with the raw sql in the file, “2010-01-14-01-59-PM-db-backup.sql”. From here it was only a hop skip and a jump away to restoration. It was necessary to edit the sql file in order to have it restore properly to the newly created database that was just created:
username@remotehostname:~$ nano -w 2010-01-14-01-59-PM-db-backup.sql
And I changed the $oldDatabaseName to $newDatabaseName.
-- -- Current Database: `$oldDatabaseName` --
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `$oldDatabaseName`;
USE `$oldDatabaseName`;
ctrl+o, enter, and ctrl+x, to save the file and exit nano. The sql dump was now ready to restore to the new database.
username@remotehostname:~$ mysql -u $databaseUsername -h $databaseHostName -p$databasePassword $databaseName < 2010-01-14-01-59-PM-db-backup.sql
The only other things to do were to update any existing applications that needed the new database name, username, hostname, and password.
As a note, if you are updating a WordPress install to point to a new database, this info can be changed in the file, wp-config.php.
I have gathered some of the better work that I have done over the years, took some screenshots, and posted them to a running instance of MooFlow.
See it at the following url: http://karlherrick.com/demo/pub/mooflow/
I wonder how Magic Framework stacks up against iUI: iPhone User Interface Framework. I have used the latter with great results… maybe next time I will give Magic a try. ;-)
I’ve been hacking around with and watching the development of MooFlow over the last few days. It looks and works pretty nice in most browsers and has quite a few options to play with. In this MooFlow demo posted, most options are enabled and the images are imported from page.html.
Other examples at the MooFlow site showcase some of the other features, like images that have external links attached to special buttons, drop down descriptions that float over the image, and the ability to get your images via JSON.
The development version still has a few noticeable bugs:
In Firefox 2.0.0.12: When resizing the stage (bottom right button), the quicklook button shows. When pressed, the image appears under the stage. The user may not realize this until the stage is restored to it’s normal size.
In IE7: When clicking the quicklook button, the image is not zoomed to full size.
Even though there are a few bugs to be worked out, MooFlow already looks great. Not to mention all of the ways it could be used. It even accepts keyboard and mouse scroll input. What’s not to like?