Monthly Archives: September 2007

WordPress Mobile Admin UI for iPhone

Dan and I just wrapped up a project we’ve been working on recently. It’s a WordPress plugin that adjusts the admin interface for WordPress to make it more useable on mobile devices like phones.

You can check it out at its home on the WordPress Extend site: Mobile Admin.

It’s specifically targeted for the iPhone, in somewhat of a response to the recent release of a similarly iPhone-targeted admin UI for Moveable Type, but the eventual goal is to support a common, slimmed down view of the interface for any mobile device, and then just add custom styles and behaviors (via script) only for devices that are known to support them.

The approach we took was to use a plugin to either hide, alter, or remove elements that interfered with the standard display, and then add a few things back in to tie it all together on the smaller size screens. Here are some of the more technical details:

  • CSS was the preferred method for changing things; the plugin will remove the normal CSS associated with the admin pages and replace it with one specific to the iPhone (and alternate stylesheets later, as more browsers are supported).
  • In some cases where CSS rules could not be used to extract things from the page, or items needed to be reordered, etc., we used PHP’s regular expression search and replace support to alter the output of the page just before it gets rendered to the browser.
  • Some items which were still necessary (a lot of the details on the post page, specifically) were left in but we added script to make the sections that contained the non-primary features collapsible, so as not to clutter the interface.
  • In one case (the manage posts page) the interface was table based, and while it was an appropriate choice for normal size screens, we needed to extract it from that grid-based format to make it “flow” better on the narrow screen. Again, regular expressions to the rescue.

We broke up the work by concentrating on what our areas of strength; I did most of the PHP and javascript coding, while Dan did most of the CSS styling. I don’t have much of an eye for design, even though I’m very familiar with CSS on a technical level. We’ve taken a similar approach on previous efforts, but this will be the first publicly released one.

You can read more details here on Dan’s post.

Add four hours to your day

Today’s xkcd comic is funny but also proposes an interesting idea.

If your schedule is flexible enough, you could structure your sleeping in varying patterns to allow you the perception of extra time in each day without losing sleep.

New GMail mobile UI

I just noticed that GMail updated their mobile UI with some helpful new features.

Although they’ve had a separate mobile application (for phones that actually allow that sort of thing at least) available for a while now, I’ve always preferred the web UI, which I find more useful as long as your phone has a decent browser. Now it’s just that much better.

WordPress 2.3

The latest version of WordPress is out; if you run WordPress - go get it.

It’s got some pretty good updates, including new features like tagging and an automatic update mechanism built in.

Moderation

Sorry if any of your comments have been moderated lately either on here or on Martha’s blog(s)…

I’ve been waiting to get a chance to work on some of the spam prevention plugins now that I’m running the “bleeding edge” (SVN) version of WordPress MU, so I’ve got the “auto-moderate comments unless their e-mail address is recognized in an already approved comment” turned on, which means I have to periodically scan through those and approve them, which I haven’t had a lot of time to do lately.

Mustache

PDT is ready

After a long development process, the PDT project has reached the 1.0 release milestone. I think I may give it a shot.

I’ve been using PHPEclipse for PHP development until this point (well, that and vi), but it has some drawbacks too, so I’m hoping PDT will be a bit better.

I’m downloading it right now; I’ll give an update later once I’ve had a chance to test it out.

Good night of coding

Got some coffee earlier and settled in for what turned out to be a very productive chunk of uninterrupted coding.

I need to do a separate post on this at some point, but I’ve converted my javascript library preferences towards jQuery instead of Prototype.

Down to only 3 open tickets on this project now; it’s time for bed.

Mugshot Review

Even though Nate invited me a long time ago, I only just got around to signing up and using Mugshot, the social networking system put together / sponsored by Red Hat.

I eventually did it because I knew Nate was on there, as well as a couple people who aren’t too into the whole blogging thing (Randy, Nick, etc.)

The good:

It offers a lot of the same features as other such systems, such as automatically pulling in content from a whole lot of external sources via feeds or APIs as well as letting you share random links directly, and provides a system where you and your friends can comment on any of those items.

What’s even better than all the features and the refreshing lack of the meme-type applications common on Facebook, etc. is the open nature of the platform. The whole thing, from the optional desktop client all the way to the server itself, is completely open source.

You could even set up and run your own private Mugshot server / network if you wanted to, but more importantly if there is a strong need / demand for a particular feature (see next section) it will eventually be filled by someone just writing that themselves.

The bad:

I don’t have much negative to say, but to give a completely fair review I do have to be honest and point out some of the glitches or downsides I’ve seen so far.

One general issue is just the growing pains that seem to accompany the expansion of the service as more people sign up, etc. Shortly after I started using it, the web UI seemed painfully slow in doing anything, but it definitely seems to have been much faster lately.

Just the other day I ran into an issue on a post that Nate and I were putting in a lot of comments back and forth on, and it seemed to break / crash after we reached that point. I’m assuming it’s related to the volume of the comments, but that’s the only time I’ve seen something like that happen in the system.

My number one peeve with the system is the same one I have expressed numerous times on this blog in relation to FaceBook - I want external RSS feed access to all updates that I might care about within the system. If you install the desktop client it will notify you, but I’d rather use RSS because (#1) I want everything in one place and (#2) I prefer not to install any always-running apps on my system if I can avoid it.

The conclusion:

All in all, I give Mugshot a strong thumbs up. As I said above, there were only a couple issues that I ran into, and I’m sure those will be ironed out over time. Even the lack of RSS feeds can be compensated for by just writing them yourself, whether by modifying the client code to consolidate and publish feeds or writing your own app that interacts with the server directly.

For me, that openness is incredibly important, and Mugshot is a role model that all other social networking systems can look up to in that regard.

As a side note, the general user population seems (at least at this point, in the early stages) strongly skewed towards freedom-loving Linux types, just judging by the popular groups, which is fine by me.

UDPATE - six months later…

Triathlon - I made it!

triathlonThe Oasis USA triathlon that I mentioned earlier was yesterday morning. I’ve been a bit preoccupied to blog about it, sorry.

It was an early start (7am), although they split up the group into two “heats” for the beginning swimming part due to limited space. The three of us (Dan, Sara, and I) went in the second group, which was apparently the younger half of the crowd, but we still did pretty well because it seemed like a lot of the others weren’t super strong swimmers.

The biking wasn’t too bad, and the running part sucked about as much as I expected it to. All in all, I’d say that it wasn’t quite as brutal as I was thinking it would be.

Looking back there were several points I regretted pacing myself a little too conservatively. Specifically in the swimming part, I took it a bit easy in anticipation of the biking and running being so hard, but then it turned out that I probably could have gone pretty much all out in the swimming part (at least upper body), since the rest was all legs.

On the biking part I took a wrong turn on the first lap around the Rose Bowl, so I had to turn around and backtrack out to the outer circle, but other than that it went pretty smoothly. The running went well too, except for my calves starting to cramp at the very beginning and having to stop to stretch them out a bit.

After crossing the finish line, I still felt pretty good, which was my first indication that I should have pushed harder throughout the whole thing, but oh well; it was my first time and it was a good learning experience. Next time I will be more ready and in better shape, but it was a good start, and helped me realize (again) the value of having a goal to shoot for as you exercise and try to get in shape.

PS - There’s still time to sponsor me if you’d like, since I need to mail in the sponsorship form and money still.