Added Counter and SiteSpeed to Website

Well adding a counter turned out to be harder than I thought. Well, maybe not harder, but I got distracted a lot. Here is the story. If I get encouraged by lots of comments, I will post more of a tutorial of how to do it. So encourage me already!

I wanted a counter so I could know if people come to visit. Counters and comments give me feedback about what works and what doesn’t. Slow doesn’t work, and I am worried about speed. So I also wanted a way to measure speed.

I found two tools on the internet: Tizag PHP Counter and Numiun SiteSpeed. Both tools run entirely on my web sever (mine, Sherman’s — the one I am using), so they do not require an account or link to a 3rd party server. For example, the commenting tool (HaloScan) requires an account, and users see ads. The counter and SiteSpeed don’t. There are no adds.

To get the counter and SiteSpeed working, I had to learn something about PHP scripting, and I had to enable PHP on both my and Sherman’s webservers. This was not a big deal, and I finished that in an evening, even including the customizing, formating, etc.

I also needed to add the counter to every page of the website. Hmmm. Well, that shouldn’t be hard, since I have this great new RapidWeaver tool, right? Wrong. I use RapidWeaver to generate much of the site, but I use iView MediaPro to generate the photo galleries. And then there is a bunch of moving files around, and even some hand edits, to get everything working. Well with 14 galleries and counting, manual is not good. So I got distracted. Very distracted.

Knowing a little Perl, I knew it wouldn’t be that hard to automate all the moving files around. Even more importantly, I figured I could automate all the hand tweaks. I was right, but it took digging back into the Camel Book and several late nights to get it all right. But I found out, again, that I really do enjoy computer programming.

Now that I had the file manipulations so nicely automated, I couldn’t just plug through manual menu picks to generate 14 galleries, could I? No, I had to automate that too. So I learned AppleScript. AppleScript is an interesting language. It allows you to automate tasks in standard MacOS applications, like iView MediaPro. The language is easy to read, with syntax like “tell application “iView MediaPro” to make HTML gallery ” and “click button “Make…” of window “HTML Options””, so it is easy to believe that it is easy to write.

Not so. The most comprehensive reference for AppleScript is Apple’s AppleScript Language Guide last updated in 1999. It is pre-OS X, and is very out of date. There are other references on Apple’s website, but I found that mostly an exercise in frustration. The best book for learning AppleScript is from O’Reilly (of course). AppleScript: The Definitive Guide, 2nd Edition was extremely helpful, and though not very rigorous, it did get me where I wanted to go.

(In the process of deciding to read AppleScript: The Definitive Guide, I finally broke done as subscribed to O’Reilly’s Safari BookShelf. This has absolutely nothing to with the Apple Safari Web Browser. It is a service that for $20 a month, I get to read up to ten O’Reilly books online. Considering that most O’Reilly books cost about $40, and they go out of date quickly, this is a pretty good deal. I am actually quite glad I did it.)

So, now I have a website with a counter and a speed meter, and I know a lot more about PHP, Perl, and Applescript than I did before. Leave me comments if you want more info. Enjoy the website.

C. B.'s Parents Come to Visit

In early May 2007, my parents came to California to visit us and other family. My Dad has a sister in the Bay Area and a brother in Sacramento. They started in Vegas, and drove down to see the Hoover Dam. They then drove down the Colorado river valley to Yuma AZ, and across the desert to San Diego.

Pam and my parents went to the San Diego Museum of Art, and then we met back at the house. After a short tour, we went to Andiamo’s Restaurant for a nice dinner.

I like to do projects around the house and so do my parents. So on Saturday and Monday, this is what we did. Decorating projects can sometimes be contentious, so we steered away from those, and focused on organizing the shed and the garage. What a difference! I guess I need to put up some pictures. We now have all the shed stuff in the shed and out of the garage workshop. We also pitched some stuff, so the workshop has a bunch more room.

Saturday night, we visited my friend’s Sherman, Stacey, and their son Skylar. We got a tour of the shed that Sherman, Stacey, Pam, and I built. We walked up to Outback for dinner. On Sunday, we went to church, did some shopping, and made a nice dinner at home (for Mother’s Day). We had my good friend Mercedes join us for dinner.

It was really nice having my parent come to visit. Sometimes the discussions can get intense, but after a deep breath and a short time out, we come back together. It is important to visit once in a while, and I appreciate them taking the time to come all this way.

C. B.'s Godmother Comes to Visit


My Godmother Patty came to visit at the end of March 2007. Pam and I had a bad flu the whole week before she came, but by Sunday we were doing much better. So we had Patty and my “god-sister” Michelle over for dinner. Michelle is Patty’s other godchild, and she lives nearby (Delmar or La Jolla or something). She is a very nice woman who I have seen maybe twice in my life. She likes dogs and I think she is a physical therapist like Pam.

Patty lives in Washington DC, and spends the late spring and early fall in Bethany Beach, DE. My Mom and Patty know each other from the beach, and that is where I spent most of my time with Patty growing up. My parents live year round in Bethany now.