27

Apr

Shashin 2.1 - Easier Steps for Displaying All Album Photos

Topic: WordPress and Web Programming
Tags: ,

Shashin 2.1 is now available. It does not include any new dazzling features, but it has a new, easier to use option for displaying all your album thumbnails, and then have them link to a page on your site that displays all the photos in each album. The Shashin page has instructions on how to do this.

There were 3 problems with how I implemented this feature in the previous (2.0) version of Shashin, but they only became clear to me after hearing feedback from people using Shashin 2.0 in a wide variety of WordPress themes. One problem was that the steps involved were just too complicated for most people’s needs (but the more complex options are still there, if you need greater control of the configuration than the new “easy” way).

The second problem was my attempt to manipulate the title of the page containing the [salbumphotos] tag. Shashin 2.0 tries to dynamically append the title of the selected photo album to the page title. In a rational world this would be easy, but WordPress makes it extraordinarily difficult to isolate and manipulate the title of a page, as reported here. I thought I had come up with a work around. But, as it turns out, my solution was not reliable across all the different WordPress themes that are out there. So, with Shashin 2.1, I have removed all the code that tries to manipulate the page title. It now simply displays the album title as a caption on the table that contains the photo thumbnails. This is much cleaner and shouldn’t cause conflicts with any themes.

The third problem was the [salbumphotos] tag, which is used to display thumbnails for all the photos in an album. In Shashin 2.0, a page with the [salbumphotos] tag won’t play nicely with sidebars that use the wp_list_pages function (for listing links to all the pages on a site). The [salbumphotos] tag only worked correctly if you used it in conjunction with Shashin album thumbnails. You couldn’t just go to the page directly from a sidebar link. This is fixed in Shashin 2.1.

Shashin 2.1 also has a few minor bug fixes, the most important of which is that you can now once again see the photo thumbnails in the Shashin admin panel.

I should point out that, if all you want to do with your Picasa photos in WordPress is display your album thumbnails on a page, and then link them to a page that displays the photos in each album, then I recommend kPicasa Gallery. It has similar features to Shashin in this area, but without Shashin’s management overhead. But if you want to do more than just that, then I recommend Shashin ;-) .

22

Apr

The Obama Rally on Independence Mall

Topic: Politics
Tags: , ,

The Obama rally on Independence Mall, Philadelphia, April 18, 2008. The crowd was estimated at 35,000.The Obama rally on Independence Mall, Philadelphia, April 18, 2008. The crowd was estimated at 35,000.
The Obama rally on Independence Mall, Philadelphia, April 18, 2008. The crowd was estimated at 35,000.

The past few weeks have been the height of silly season in the Democratic race, culminating with the amazingly uninformative debate last week. I think I knew less after watching it than before it started.

I went to the Obama rally last Friday, and I think it’s safe to say it was the largest crowd I’ve ever been a part of (it was estimated at 35,000). It felt just like a big rock concert, especially since will.i.am was there to provide an opening act. I was lucky to get a ticket that put me within about 100 ft of the stage (the tickets were free, but getting my hands on a “blue” ticket, which put me near the stage, called upon ticket hustling skills I haven’t exercised in probably 15 years). I expected people would be excited to see him, but there was a level of excitement during his first few minutes on stage that I’ve only seen before in clips of early Beatles concerts. There were a couple of big guys next to me who were picking up shorter people for a few seconds each, so they could catch a glimpse of him. A little old lady even shuffled her way up to them for a turn. The speech was good, but since I’m such a politics junkie, it was familiar.

The results for the Pennsylvania primary will start coming through in a few minutes. I’m actually glad it’s over. We’ve probably gotten about two dozen campaign calls from the Clinton and Obama folks over the past few days. The polls show Clinton ahead by about 7-10%. I’m probably unduly influenced by my experience at the rally, but I think Obama will hold her to a tighter margin. My prediction: Hillary by 4%.

21

Apr

Welcome to the New Toppa.com

Topic: WordPress and Web Programming
Tags: ,

I’ve redesigned toppa.com to support my web consulting work. How do you like the logo?

Other than the new look, the big change is that I’ve split my blog in two. Posts that show up on the home page concern web technology and my projects. Everything else is still on the site, but is in my personal blog. There’s also a link for it at the bottom of the sidebar.

For my RSS fanbase (yes, I’m trying to be funny…), you can get all my posts from this feed, or just the personal blog posts from this one.

Under the hood it’s still one blog. Figuring out how to get WordPress to display everything as if it were two blogs was an interesting challenge (one that has frustrated a number of people, judging by the threads in the WordPress support forums). It’s not just a question of limiting the topic categories that show up on the home page. It’s also a question of how to group the other categories together, and how to get the sidebar to show the appropriate navigation controls for the current context (i.e. listing the correct subset of categories on the home page, as well as on each different category archive page). I’ll write up a how-to post soon.

Update: I’ve redesigned again since writing this post, so I’ve removed the links that are no longer valid.

11

Apr

Stuart Adamson’s 50th Birthday Today

Topic: TV, Movies, and Music
Tags:

“How can someone find me if no one knows I’m lost?” - You Dreamer, Big Country

If Stuart Adamson - the former frontman of my favorite band Big Country - were still alive, today would be his 50th birthday. But he died alone in a hotel room 7 years ago, in an apparent suicide while on an alcoholic binge, in the wake of his 2nd divorce. It’s an unfortunate aspect of human nature that the most creative and talented among us are more often than not tortured souls. As Wikipedia puts it, “In many ways, Adamson was the sound of Big Country, supplying much of its distinctive guitar work, as well as being lead singer and main songwriter (both music and lyrics). In terms of being an instrumentalist, a vocalist, and a prolific songwriter, he is matched by very few contemporaries…”

I wrote a post about his guitar skills and songwriting a couple years ago, so I won’t repeat myself here. Instead I’ll link you to two remarkably different live versions of The Storm, one of my favorite Big Country songs. I love the epic sweep of the lyrics. They capture a compelling sense of grim determination in dark times. The scene of communal loss conjured up by the song is timeless - it’s a story that could have taken place a thousand years ago or yesterday. And the guitar work is pretty cool too (I remember my college roommate being flummoxed by all the chord changes as he tried to figure out how to play it).

The first is an acoustic version, and the second is an electric guitar version (note the second one doesn’t really get going until about two minutes in).

10

Apr

U Penn Higher Education Web Symposium

Topic: WordPress and Web Programming
Tags:

The University of Pennsylvania is hosting a Higher Education Web Symposium July 15-16
The University of Pennsylvania is hosting a Higher Education Web Symposium July 15-16

My former officemates at the U Penn School of Medicine Information Services Department have put together a Web Symposium, scheduled for July 15-16. They have an impressive list of speakers lined up.

I recognized many of the names of the list, as it includes some of the most well known people in the world of web user interface design. But I was surprised to see the names of a couple people I personally knew. I worked with Dana Chisnell for a short time in 2000, when she was brought in to consult at a small start-up where I was working (Finexa - a company that did not last long). And I met Alex Urevick-Ackelsberg at a coffee shop when Glenn Greenwald came through Philadelphia to promote his first book a couple years ago. I contributed a post to his Blue Force site, but it wasn’t long after that when I started to come up short on time for regular political blogging.

The price for attending the symposium is a bargain. Several of the speakers typically make the rounds at conferences that cost 2 or 3 times as much. So if this is a topic of interest for you, definitely check it out!

2

Apr

…And …And …Shashin 2.0.4

Topic: WordPress and Web Programming
Tags: ,

This is a very minor release in terms of code changes. It’s not critical if you have a previous version of Shashin installed, but it is critical if you’ve upgraded to Wordpress 2.5 and you’re installing Shashin for the first time. It has to do with WordPress 2.5’s new handling of variable scope when activating plugins (if you were curious).

The only other change I made was to add mp4 as a video type that Shashin will recognize (it’s not documented as a supported video type for Picasa, but it does in fact accept them).

Download Shashin 2.0.4.

Update: I’ve received a few reports from first-time Shashin users who are having trouble activating Shashin properly, despite this fix. This seems to be happening to only a small number of people, and I haven’t been able to track down the cause yet. If you are having trouble with Shashin under WordPress 2.5, please leave a comment on this post and let me know exactly what’s going wrong.