Tuesday, September 19, 2006 10:32 AM

It's good to be a pirate...

That's right, International Talk Like a Pirate day has finally arrived.

To celebrate, I took the quiz: Which pirate are you?

My pirate name is:

Iron Roger Rackham

A pirate's life isn't easy; it takes a tough person. That's okay with you, though, since you are a tough person. You have the good fortune of having a good name, since Rackham (pronounced RACKem, not rack-ham) is one of the coolest sounding surnames for a pirate. Arr!

More...

Wednesday, September 06, 2006 12:35 AM

Beta Blogger Bugs

That's why they call it a Beta. I've run into a good number so far. Too bad they don't have bugzilla, or if they do, it's not where the public can use it.

Here's some fun bits so far:

I was cleaning out some of the cruft that CSS templates accumulate over time, figuring that with the conversion to the new system, this was a great time to do it. In so doing, I went through the newly supplied Beta template, added in some divs and some classes, and removed old dead stuff. I also removed an extra div with class ArchiveList from the CSS, thinking I'd put it in a couple days ago when I was trying to get the font in the nested lists for blog archives not to shrink to subatomic proportions.

Some time later I noticed that toggles in the blog archive section weren't having any effect. Oh, they changed the actual toggle, all right, from the "closed" (pointed sideways) position to the "open" (pointed down) one, but the list of posts stayed the same as before, no matter if the toggle was open or closed.

That's right, dear reader, these two are events are connected. As it turns out, you have to have that div, and it has to have that class, or the toggles do nothing.

Now, some divs are auto-generated by Blogger, like the ones that are produced from every <b:section> and <b:widget> tag. You can't actually remove the divs by themselves, but you can remove the tags, and when you do, you know you're removing functionality. But stray markup that the user can remove without removing underlying objects *should not* break a widget. That's poor user interface design. At the very least it should be *documented somewhere*... and now it is, on this blog. Hmmph.

Some other generic bugs: various blog settings don't seem to work. I set "Show 7 pages on main page" and as you can plainly see, there are more than seven showing. Likewise, I can't turn off quick edit icons; I finally commented them out in the CSS because I find them distracting.

And they really have got to get a better template syntax checker, or allow the user the option to see all errors, not just the first one, along with an indication of where the checker bailed out.

I did beat the "Upload a new template and we'll delete all your widgets" syndrome though. They have some sort of automatic renaming system for widgets, so if you call a widget "Blog" (since you have only one of these widgets, why call it anything else?), they'll rename it to "Blog1". Ok, I guess that's not a big deal. But then when you edit your same template file locally using a nice editor (have I said something good about emacs this week?), and upload it with the changes, it still has the name "Blog" that you used. And so Beta offers to delete the Blog1 widget that it created after it rewrote your template file the first time. Not very nice!

The obvious solution, which does work, is to upload your template once, save the rewritten version, format it how you like, and don't ever touch the widget names. You can edit that one locally and upload it without problems.

Until the next update, anyways...

More...

Tuesday, September 05, 2006 10:53 PM

Everybody's doin' the Beta

Blogger released a new beta, and pushed their HTML editing tool out a few days ago. I decided to take a look, since maintaining 8 blogs to manage a variant of the old category hack was getting older by the minute. You may not have noticed any new posts lately... like, for about a year.

So, here we are, three long days later, RSS 2.0 feeds now not going through a third party service, and, wonder of wonders, categories that seem to just work. I kept my category color-coding scheme with a bit of CSS, got the post teasaer hack to work, and along the way I found out that you can use *conditional CSS* in your template. Just put it after the <:b:skin> tag in <style> tags, and you have access to all the new data types and template scripting primitives.

Happy coding!

More...

Saturday, March 11, 2006 1:22 PM

One year later...

I finally got the Atom API for post working. Ok, so I took a break for awhile.

It's not necessarily quite working yet, I still have to get the category and main blog thing sorted out, i.e. tested. But the base is there. Tools: curl and bash. Hey, I almost went for the emacs toolkit but it just wasn't as convenient for my purposes.

Unfortunately, some functionality like (re)publishing the blog can't be done through the Atom API, which means that if Google changes their cgi scripts for that, I'm hosed. But they haven't changed it in a year, so it's looking good!

More...

Monday, February 14, 2005 10:11 PM

Error checking? We don't need no...

Just ran the script. It worked. Five templates updated instantly. *Whew*

I still need to add the error checking. Someday.

But the next thing I need right now is a script that lets me post an article to a subcategory, then retrieves the permalink and lets me make the appropriate post to the main blog. With errorchecking... er, eventually.

More...

9:03 PM

Procrastination

Procrastination... it's making me wait, keeping me waiting...

So I have a script that will log me in and post a given template to a given blog. But I haven't made it "nice" yet. That is, I haven't got error checking in it, I haven't set it up to do all the category blogs, I haven't got it to check the 302 redirects to see if they are what we expect, nothing.

Which means that the nice template changes I am working on in a test area have to wait until I get the tedious script details done.

At least when this is done I won't feel compelled to make one template work for all the blogs; I can have pieces that get included in by the script according to the category. That will be a relief, because while the current template is clever, it's also unmaintainable.

More...

Saturday, February 05, 2005 1:04 PM

No Perfect Blogs

Unless you have your own host. Then you can write your own software and have everything: categories, rss feed, atom feed, comments and trackback, whatever your heart desires.

I've finally settled on Blogger.com, which does not have categories, nor built-in trackbacks. But it does allow multiple blogs and those blogs don't get deleted for inactivity. Bandwidth and space don't seem to be a problem, either.

Time to write a script which lets me handle the multiple-blogs-simulating-categories in some reasonable way. Stay tuned.

More...