Categories
JavaScript

Ajaxy comments

I’ve incorporated editing into the site–both traditional, link-based, and Ajax. I still need to tweak, and I imagine as people use the comments, things will break.

Both types of edits are available for each item, using the philosophy that a person may want to use a traditional edit page over an Ajax editing approach. The hypertext link for editing takes you to the full edit page, where you can also delete the comment. The Ajax approach is accessible through a ‘button’ added to the post using script.

I had planned on pulling my simple custom library for the background functionality, and either using JQuery, or Dean Edwards Base.dom on which to build. However, I’m concerned about the Safari problem with Dean’s library, and I’m not sure that JQuery fits all my needs. What I may end up doing is pulling in Edwards’ library, and creating my own custom intermediate library.

All I’ve done for now is create a singleton where before I had several global functions. The original approach doesn’t impact on performance or cross-browser compatibility, but lots of global variables can cause problems with merged libraries. I’ve also made some attempts at eliminating IE memory links related to removeChild used with elements with assigned event handlers, but this still needs work.

I have one polling operation that checks to see if there are new comments after the page is loaded, and then pulls these in if found. The new comment(s) are added to the end of the list of comments in the page, with a yellow ‘fade’ to signal the addition. I’ve also added an Ajax preview, but not a non-scripted preview. Lots of real issues doing the latter with WordPress. Mayhap someone else has a plugin for it.

Finally, I didn’t incorporate OpenID. I thought about doing this, and had incorporated OpenID for comments via an existing plug-in at one point. However, OpenID is identity, not necessarily trust or ownership. My main interest is identifying the person who just made a comment and perhaps wants to edit typos–that’s it. For now, I’m using a combination of cookies and IP address. It’s not perfect, but it should be relatively safe, and relatively open.

If I had used OpenID, those people who did not want to get one of these, or who write anonymously wouldn’t have been able to edit their comments. Contrary to popular criticism, anonymous comments do have value, at least in this space.

One big problem I ran into, and perhaps I don’t understand XHTML, is that when I created the URL to edit a comment, which uses a traditional GET with two parameters, ala ?action=editcomment&comment=3333, I received a mal-formed XML error with Firefox. The page validated, and also pulled up in every other browser. Did I miss something related to XHTML with this one?

I have a lot more to do with the site, and the underlying libraries, but I’m starting the book this next week, and will have to finish the bits off as I can. I still have my graphics and photo library, and some meta/RDF stuff I want to incorporate. Once the work I’ve published here gets a chance to be decently tested, I’ll look at packaging for other use. It’s not going to be a simple plug-in, but should be able to be packaged.

update

I had forgotten to encode the ampersand in the URL for the link. The validator did not pick it up, because I also forgot that the link wouldn’t show unless the application accessed it with my logged in cookie.

Yes, it was a particularly stupid error on my part. That’s what’s nice about XHTML: it doesn’t hesitate to let you know when you’ve been stupid. Same as anonymous commenters. <smiley />

Categories
Technology Weblogging

Movable Type: The Princess Time Forgot

Recovered from the Wayback Machine.

Once upon a time Burningbird ran under Movable Type. In fact, the weblog ran under Movable Type for at least a couple of years. But then, I also ran a Radio weblog, one through Blogger, my own form of WordPress (Wordform), and WordPress off and on–currently on.

At one time, Movable Type was the princess to Blogger’s Queen, a potential successor to the kingdom of Blog, Blog Away. Ben and Mena Trott were feted and fawned over. They were even invited to contribute to the book on weblogging that O’Reilly published, and to which I contributed.

Then that new darling, that rapscallion, WordPress came along with that era’s latest incarnation of wunderkid. Combined with Movable Type’s new, and loathed, licensing system and performance issues, MT still stayed a princess, but of what kingdom, no one really knew.

Today, nudged by Arthur in comments, and announced by Read/Write, Movable Type version 4.0 is on the way out to thee and me, and with its Typepad inspired performance enhancements, and hip, Web 2.0 interface, comes the politically astute move: Movable Type 4.0 will be open sourced.

Of course, there is open source and then there’s open source. To me, open source means I can create a fork of the product. According to Six Apart’s MT open source page, MT will be a true open source, licensed as GPL.

This is a smart move in many ways. First, it reminds us that MT still exists. Today, the big stories in technology related to weblogging tools tend to be about what dumb ass move the tool company or organization has done recently; not necessarily, ooh, look, shiny new release. This includes Six Apart with the recent fiasco of deleting too many Live Journal weblogs in its effort to be ‘child safe’. Open sourcing the MT code raises the noise level around the tool just enough to be heard among the recent Google/Microsoft/Yahoo et al stories–something that’s becoming increasingly difficult.

Secondly, Six Apart can do what it will with regards to licensing MT, including dropping support altogether for the product in order to focus on its more profitable hosted services. If it can get the ‘community’ to take over support, it means Six Apart is no longer trapped into supporting MT forever. I imagine right now that’s tempting.

Lastly, Six Apart can benefit from the creativity and skills of any number of open source developers, none of whom have to be paid. Wow, that must seem like finding a grape lollipop on the ground, still in its wrapper.

On the downside, my first reaction reading this was, “I’d give anything for a really exciting tech story, right now.” Movable Type is part of another era. An era where releasing a new version of MT would cause the news to shoot to the top of Daypop. Remember Daypop? I bet most people reading this do not. They’ll remember Mena and cries of “Asshole!”, but not necessarily the tool that built the castle that is Six Apart.

It was surprising to hear that MT is being open sourced. Surprising, also, to read that Anil Dash is vice president of Six Apart now (when did that happen?) More surprising to see a positive review by Duncan Riley.

It was good, though, to be reminded of this princess that time forgot. To see her crown polished, and her sequined gown fluffed out and shiny. Too bad that she returns to the dance so late; many of us have already left the ball.

Categories
Technology Weblogging

Movable Type: The Princess Time Forgot

Recovered from the Wayback Machine.

Once upon a time Burningbird ran under Movable Type. In fact, the weblog ran under Movable Type for at least a couple of years. But then, I also ran a Radio weblog, one through Blogger, my own form of WordPress (Wordform), and WordPress off and on–currently on.

At one time, Movable Type was the princess to Blogger’s Queen, a potential successor to the kingdom of Blog, Blog Away. Ben and Mena Trott were feted and fawned over. They were even invited to contribute to the book on weblogging that O’Reilly published, and to which I contributed.

Then that new darling, that rapscallion, WordPress came along with that era’s latest incarnation of wunderkid. Combined with Movable Type’s new, and loathed, licensing system and performance issues, MT still stayed a princess, but of what kingdom, no one really knew.

Today, nudged by Arthur in comments, and announced by Read/Write, Movable Type version 4.0 is on the way out to thee and me, and with its Typepad inspired performance enhancements, and hip, Web 2.0 interface, comes the politically astute move: Movable Type 4.0 will be open sourced.

Of course, there is open source and then there’s open source. To me, open source means I can create a fork of the product. According to Six Apart’s MT open source page, MT will be a true open source, licensed as GPL.

This is a smart move in many ways. First, it reminds us that MT still exists. Today, the big stories in technology related to weblogging tools tend to be about what dumb ass move the tool company or organization has done recently; not necessarily, ooh, look, shiny new release. This includes Six Apart with the recent fiasco of deleting too many Live Journal weblogs in its effort to be ‘child safe’. Open sourcing the MT code raises the noise level around the tool just enough to be heard among the recent Google/Microsoft/Yahoo et al stories–something that’s becoming increasingly difficult.

Secondly, Six Apart can do what it will with regards to licensing MT, including dropping support altogether for the product in order to focus on its more profitable hosted services. If it can get the ‘community’ to take over support, it means Six Apart is no longer trapped into supporting MT forever. I imagine right now that’s tempting.

Lastly, Six Apart can benefit from the creativity and skills of any number of open source developers, none of whom have to be paid. Wow, that must seem like finding a grape lollipop on the ground, still in its wrapper.

On the downside, my first reaction reading this was, “I’d give anything for a really exciting tech story, right now.” Movable Type is part of another era. An era where releasing a new version of MT would cause the news to shoot to the top of Daypop. Remember Daypop? I bet most people reading this do not. They’ll remember Mena and cries of “Asshole!”, but not necessarily the tool that built the castle that is Six Apart.

It was surprising to hear that MT is being open sourced. Surprising, also, to read that Anil Dash is vice president of Six Apart now (when did that happen?) More surprising to see a positive review by Duncan Riley.

It was good, though, to be reminded of this princess that time forgot. To see her crown polished, and her sequined gown fluffed out and shiny. Too bad that she returns to the dance so late; many of us have already left the ball.

Categories
Technology

If you can’t say anything nice…don’t weblog

Recovered from the Wayback Machine.

Comment to my post:

However, if you don’t use Zooomr, you shouldn’t criticize. If you didn’t donate, you shouldn’t criticize.

Bullshit.

Zoli’s Weblog:

I’ve never thought I would agree with Shelley Powers one day – she often attacks people and tends to be mean. Her comments on Scoble’s blog were somewhat vicious… but I have to admit she raises valid points. Zooomr is a great service (when it runs) but is far from being a professionally managed company, as recognized CEO Thomas Hawk himself.

Go me.

Categories
Web

Web 2.0 way of running a web application

Recovered from the Wayback Machine.

Question: How do you turn a Web 1.0 application into a Web 2.0 one?

Answer: Pull the plug.

I’ve been involved in comments over at Robert Scoble’s on the Zooomr crash and burn, and make no mistake: the application is down and out, and there is no plan in place to get it back up other than asking for donations. Donations for what? Well, we heard about server problems, but then we heard about RAID controller problems; discussion about the database server failing was followed by discussion that 10TB is not a big enough server. This was then followed by the problem isn’t CPU: It’s I/O because of the static pictures being served. Kristopher Tate doesn’t seem to be a consistent idea of what the problem is. Other than, We think the controller on our main database server is bad.

What?

This is what I dislike about Web 2.0. Kristopher Tate and Thomas Hawk are darlings of the A List set, so therefore these aren’t two men running an application, neither of whom really has a clue in how to keep an application of this magnitude up and going. No, these are two brilliant, far thinking futurists who only need money and help from someone to keep this going, as the troops rally around with “Way to go, guys!”

This application has been down over a week, after it went down once before with a promised rollout, after missing its initial rollout at its own startup party, following on what sounds like other downtime problems. Do you think system users should be concerned? Perhaps even, dare I say it, critical? Not on your life. Being critical is not the Web 2.0 way.

There isn’t a note on the front page about the server being down for the count. No, they’ve pasted some UStream videos where people can watch Hawk and Tate stare at a computer terminal, drink wine with ice, and talk to people who are asking them questions via some form of chat. However, when the server failed this last time, Thomas Hawk did write about the the little train that could.

(I would pay money, real money, for one of you developers at, oh, Citibank, Boeing, John Hancock insurance, or so on to go into your bosses office next time you have problems with your applications, and tell him or her about the little train that could.)

I have had more than my share of problems with hardware in the past, and normally I would be much more sympathetic. In fact, since the application is database-driven and PHP, I believe, I might even have offered help–I’m better at troubleshooting problems than building apps from scratch. Not for an application and a company, though, that keeps billing itself as the place for photo sharing, with such grandiose pronouncements that one is forced to imagine that Flickr is the po’dunk site, while Zooomr is the tasty noodle waiting to be snapped up.

So now people are being asked to give, Kristopher has bills to pay, and Zooomr needs a new server. Personally, before I started throwing money at the site, I’d ask to see a business AND technical plan upfront, including a detailed estimate and listing of hardware Tate and Hawk need, now and for the next six months to a year. But, as Thomas Hawk has pointed out, I’m not really a part of that whole Flickr/Zooomr scene, so I don’t really understand.

True, I don’t. I don’t understand solving server problems by doubling or more the burden on the server; throwing new features on when the server can’t reliably support existing ones; and not putting an honest, blunt, note in the front of the site telling people exactly what’s happened, and how the site, and their photos and data, will be recovered. However, before other startups think to follow this as an example, all I have to say is: don’t try this at home, kiddies. Not unless you’re good buds with the Big Names.

I’m sure the company will get the support they need. After all, they have all sorts of friends among the movers and shakers. That’s the only thing that really matters in a Web 2.0 universe.

Speaking of movers and shakers, I have an idea for the company: Get Mike Arrington and Techcrunch to fund the equipment they need. After all, Techcrunch has been pushing the company as a Flickr buster since the very beginning. As much as Scoble and Arrington have been touting this site, you’d think they’d both be fighting each other for the honor of investing.