MAN Down! MAN Down!

Well the computer blew up. I restarted it and it wouldn’t boot up again. Couldn’t mount the harddrive via target disk mode… nothing. This led me to believe it was the harddrive.

So while I took the beastie in to get serviced (seems that the G5 iMacs with iSight are virtually impossible to open without the proper tools I figured better safe than sorry) I decided to see if I could rescue my blog. Google caches accounted for most of the posts up till May 09 and luckily I had backed up everything to the new mac mini in March. That meant potentially I was only out of action for the month of April which wasn’t bad all in all.

Here begins the trials…
Firstly the mac mini is an intel chip and I couldn’t find an install for the same version of mysql as was on the iMac. And it turns out it is virtually impossible to restore the database files across version. The preferred way is to do a database dump from the source database and a restore on the new one:
admin$ mysqldump [databasename] > [Newdatabasename.sql]
then
admin$ mysql -u[user] -p [databasename] < [Newdatabasename.sql]
This basically left me screwed until I got a call to tell me it was my logic board and not the drive that had failed. 2nd time for a logic board on that piece of hardware you may recall. One of my few Mac lemons...

So I swung by the shop, picked up the drive and a new sata case, had the poor old G5 recycled. I successfully booted the mini from the old drive and did the dump. So now comes the easy part. I tried a new install on the mini of everything (php, mysql, wordpress) but it wasn't as easy as I remembered.

I downloaded...
mysql from here:
dev.mysql.com/downloads/mysql/5.1.html
php from Marc Liyanage's site: www.entropy.ch/software/macosx/php/
and a new clean install of wordpress: codex.wordpress.org/Installing_WordPress

The problem was all my notes about granting privileges and making databases and whatnot are on this stupid blog (inaccessible at that point you see) and thus the install took longer than expected.

I had trouble starting mysql until I tried this:
sudo /usr/local/mysql/bin/mysqld_safe --user=mysql

So then …
Login to mysql after the install: mysql -uroot (no password)
Then:
mysql> CREATE DATABASE databasename;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname"
-> IDENTIFIED BY "password";
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
mysql> EXIT

After that you should set the root password for mysql
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('password');

After restoring my files and themes I was up and running again. Now I guess its time to clean up the theme a little…

Resizing Images

I was reading an article that said WordPress now (ver 2.5 and higher) actually resizes images upon upload. If so I hadn’t realized this was built in now. Here is a 2 meg jpeg 3072 x 2304 pixels taken last night (Halloween 2009 by famous photographer C). Let us upload it to a few different sizes and see…

P1050240
Published at medium setting (400 x 300)


Well what do you know, it works… Now in the upload folder are 4 files: the original sized P1050240.JPG, P1050240-150×150.JPG, P1050240-400×300.JPG and P1050240-1024×768.JPG

I’ll have to try this on enjoygardening.com which I haven’t kept as up-to-date and make J’s job a bit easier…

Ode on halloween

Ode to the letter R

Rotten
Redundant
Ridiculous

Wretched…
Whoops, that has a w
Wrong, I guess

Errrrrrr,
Erroneous
Enormously so

Epanalepsis…
Wrangle an ending…
…Rotten

on occasion of Leslie, Carmen and I writing poetry

Testing WordPress 2.0 app

Just testing the new iPhone app. Here’s a pic of L having a Strongbow and checking out the free wireless in our new pub.

  • OK. So it’s faster but there is no category option? Hmmmmm
  • Oh. It helps if you compose a post, and not a page. All fixed now.
  • No way to delete the page with the app.
  • enjoygardening.com didn’t work until I added a trailing / to the URL.

4 people

4 people sat in a room
the was no communication

4 visions of now and then
there were no pictures

4 processes chugged and churned
there was no outcome

4 people can’t do anything
leave me alone now

On occasion of a meeting of minds. Not.</emd

But she cancelled

I was all set to get out and about
Instead I sit here, nursing my my pout

A day with no people, no contact no sound,
She was intended to help center and to ground

But no, she could not, no not at all
I felt like the maiden omitted from the ball

It seems she had better, more fun, things to do
Her excuse was her sister, but I know that’s not true

So here I sit, all freaked out and weird,
entertained only by the growth of my beard

I guess I must smell or bore or displease
But I won’t beg, won’t get down on MY knees

Oh no, I am manly and stoic and proud
Not lonely, nor misty, not whiny, not cowed

For I have my poetry, my glorious muse,
And you, well you…

can read this, and suffer the abuse

On occasion of being dumped by Al

A Moment to Spare for Andrea True Connection

Eenie (it’s not that small)
Meanie (only sometimes)
Miney (at least I’m not whiney)
Mo (…mo, mo, how’d ya like it…)

Catch a * by the toe,
But if he’s politically correct, let him show.

But time’s a wasting and
and I
must
go

On occasion of trying to wait patiently for a meeting