19 Mar 2002 You gotta love it. spamradio does text to speech on all the spam they receive and then broadcasts it with a chillout/trance background.
One of the mildly irritating things about XML-RPC is that it doesn't support named parameters directly. This makes it slightly more awkward to have standard function calls with optional parameters. But there's a simple fix for this which is to encase all the parameters into a struct in which case all the data is held in name-value pairs. I think this is actually a strength of XML-RPC because it provides two ways of encoding parameters at a very small cost in extra complexity for one of them.
In the last few days, we've seen another outburst of creativity among the various people thinking about a universal weblog API. The push to build a replacement and extension to the original Blogger API had already thrown up 3 or 4 attempts. Now Userland has thrown another into the ring and done so with an implementation as well as a spec. This has also caught the attention of Ev and so might easily find it's way into Blogger and Blogger Pro. At which point the sheer weight of deployment will make it a de facto standard that everyone else has to support as well. Interestingly, most of the new attempts including the one from Radio holds most (but not all) of the parameters in a struct. This is a good thing but if you're going to use a struct for some of them, why not use it for all? Which is all well and good except that the original API had a number of highly Blogger Specific features and was brittle as it used plain parameters. And it's pretty easy to see that every attempt so far has the same problem that some aspect is unique to the specific system that the author is really trying to support. It doesn't feel like any of the authors have completely taken on board the idea that this API should be universal across as many different blog system architectures as possible. Then there's the social problem of how standards like this are developed. Very occasionally a standard is developed and succeeds as a group effort. But in almost all other cases, a single (more or less benevolent) dictator in the form of an individual or organization drives the standard forward and makes it happen. So we have Ev and Blogger creating the first. And Dave and Userland creating the second. The rest of us can scream and shout and moan that they got it wrong and we may think that they have a duty to listen and take our comments on board. But in reality, there is no duty. The standard will succeed or fail on a combination of it's merits and the extent of the deployment. We may not like this, but it's the way it is. So why am I saying all this? Well I wrote a Blogger API for Drupal and Drupal specific extensions and I use the Drupal version every day to communicate between a Delphi desktop blog editor and this blog in PHP. But frankly, I put no effort into promoting it beyond the Drupal community and in retrospect I got the API wrong. It works for me and gets my job done, but like everyone else I made it specific to the system I wanted to use. I suspect the window has now closed for a while and the chances of producing an elegant and global standard are pretty slim. No matter how flawed the Blogger and Userland versions are, they've got the critical mass of deployment. But that doesn't stop me thinking about it and trying to come up with a solution in my head. I'm just not sure I've got the energy or time to justify and argue the case on the weblog-devel mailing list. Enough ranting, here's some pointers. Put everything in a struct and use named parameters. If a server gets a param it doesn't know, ignore it. Have a bare minimum of primary function calls. I reckon you only need 4 setBlog() If you supply a postid, update, if you don't insert. getBlog() Return a complete post delBlog() delete a post identified with a postid listBlogs() return a list of postids. Use type string everywhere. You can't hope to get any commonality on the exact format of things like postid. A post only has three elements. These are almost common across all systems. But if a system doesn't support one just ignore it. And if one is not supplied then auto-generate it. Postid Every system has a unique id for identifying a post Title If there's no title and you need one just come up with a heuristic to use the first n words of the body Body self evident. Every system uses a userid/password to identify the user so we better put those in. Quite a lot of systems allow multiple blogs. by no means all, but enough to make it worthwhile including something for this. So we better have BlogId as well. So that leaves us with:- setBlog(struct(userid, password, blogid, postid, title, body)) returns postid; //postid=0 for failure getBlog(struct(userid, password, blogid, postid)) returns struct(postid, title, body); delBlog(struct(userid, password, blogid, postid)) returns boolean; listBlogs(struct(userid, password, blogid, count, [start])) returns array(postids); //return the last count postids, unless start is specified in which case return count postids starting at postid=start. So there you have it. Simple, elegant, minimal. Everything else is an extension for a specific system. Guess I better go and write some code now. [ 19-Mar-02 8:42am ] So RCS is free. Except of course, that it runs on Frontier or Radio which aren't. Is this the Razor-Razorblade business model?
[ 19-Mar-02 7:40am ] It's all bollox, isn't it.
Or maybe I'm just depressed this week. [ 19-Mar-02 7:35am ] 18 Mar 2002 Looking through the referer logs for Ecademy, I'm seeing quite a few coming from Radio. What's awkward for me running the website is that these show up as 127.0.0.1:5335. It's a shame that it doesn't report something a bit more helpful so that I could turn it back into some info about who it actually is. But maybe that's not possible in http.
[ 18-Mar-02 8:06am ] 16 Mar 2002 Where Music Will Be Coming From : Kevin Kelly (ex editor of Wired) is a smart guy and he's come up with one of the few intelligent analyses of the current and future state of music. Good stuff.
[ 16-Mar-02 7:42pm ] Alice, Bob and Eve too Crypto porno movie goes up for auction [thanks, The Register] Proof that geeks are sexually repressed if any was needed! Imagine a porn movie with dialog full of references to cryptography, written and produced by a bunch of cypherpunks. Both the hard and soft core versions are up for auction with full distribution rights. Current high bid is something daft like $2.50
[ 16-Mar-02 8:53am ] 15 Mar 2002 Why do lots of blogs have little smileys in gif form?
[ 15-Mar-02 8:24pm ] The total software, services and hardware opportunity derived from Web services will catapult from $1.6 billion in 2004 to $34 billion by 2007, according to research firm IDC. You know, there's something quite comforting to be working in an area that is right on the hype curve again. Go back 3 years, substitute "Netmarkets" for "Web Services" and we were awash in the same headdlines. It got so silly that I used to have a section in a newsletter I was doing that had a title "The X Market will be Y big in Z years". Let's hope we don't go down the same route and blow it all this time around.
[ 15-Mar-02 8:19pm ] Google News Google has a news search site (in beta). Link [thanks, bOing bOing] This is a sitter for RSS. Can we get Google to start producing RSS natively?
[ 15-Mar-02 8:25am ] 13 Mar 2002 Here's a little tip I picked up from the end of an article in The Register. When you can't be bothered to find the URL for a link, just add these words to the end of the article. (Google can be reached here). Or in other words, STFW, idiot.
[ 13-Mar-02 7:28pm ] Cool robot of the week from Nasa is just so cool! [thanks, bOing bOing]
[ 13-Mar-02 6:56pm ] Radio has an update to yesterday's update. New feature: Automatically Generated Links. This is the feature Julian Bond has been patiently waiting for.
[ 13-Mar-02 8:24am ] 12 Mar 2002 Blogging your way to knowledge :: Dotcom Scoop : I am a promiscuous Internet tart that doesn't like being told what to read.
[ 12-Mar-02 6:06pm ] The readers reply to Orlowski's piece on bloggin in the Register. Blog almighty! Your take on the techno-utopians' triumphalism [thanks, The Register] One of the best comments asks where Orlowski's blog is, seeing as he says "we" a lot. Well have you got a blog, punk? Well have you? Maybe we should ask the same question of Dvorak?
[ 12-Mar-02 8:04am ] 11 Mar 2002 New (Radio) Feature: Titles and Links in Radio-generated RSS.
I read a number of Radio generated blogs in RSS. I'd like to be able to blog about posts I see without having to visit the site and wonder around trying to find the permalink, so I can point back to it. Curiously, Scripting News is one of the few that does include a permalink in the Description tag. It seems to me that most of them don't although I'm not sure if this is Radio's default behaviour. At the end of last week, I went live with a new site for Ecademy at http://www.theecademy.com. The focus is on E-Commerce and Web Services, primarily in the UK. The site uses a number of our favourite technologies.
Needless to say, if anyone wants a similar niche portal for some other industry or market, I'd be happy to help set it up. For money! ;-) Following my rant last week, here's a Java-based Passport client. It lets a Java based web site put in Passport sign in support for their users.
[ 11-Mar-02 2:53pm ] 10 Mar 2002 BWahhaahhahahaha! MS refuse to ship a PERL interpreter with XP and IE6. Quick, sue them for... ONE BILLION dollars! It's not fair they refused to ship a Python interpreter. Sue the bastards. There's no PHP interpreter shipped with XP. Call the lawyers. Back in the real world, they stopped shipping a JVM and licensing Java from SUN. So SUN sues them for 1 billion Dollars! So the poor consumer has to download a 10Mb install instead. Except that they haven't upgraded to the latest JDK this week, so it's another 10Mb download that leaves the old JDK still installed. And there's some Borland code on the machine which brought it's own JVM and JIT so that's another one. What's wrong with this picture? Can't SUN compete by just shipping better code, dammit? Macromedia seem to be able to manage this with Flash and Director, why not SUN?
But seriously now folks. There's a number of things that you just can't do in HTML with plain old Javascript especially when the document model[1] isn't common across all browsers and platforms. Like build a decent wysiwyg html editor to replace the brain dead TEXTAREA. Or use a tree control. Or have linked combo boxes. Or update some text without refreshing the whole page. Or embedding an IRC/Chat control. And the only safe, platform neutral technology we've got to do this sort of thing is Java. We do actually need a common solution to this, that's painless and generally pre-installed. But it seems that as long as SUN, MS and plenty of others insist on picking fights, we're not going to get it. Now how long is it since the whole Java vs ActiveX battle started? 7 years? Isn't it time these idiots worked out a solution or agreement? [1]Can someone please explain to me why Opera, Netscape and Mozilla don't support the MS IE document model? As someone else said, is this a "penis size bragging" thing? If it is, then boy, have I got some spam for you. [ 10-Mar-02 9:16am ] 09 Mar 2002 TotL.net Human Virus Scanner : How infected with memes are you? Or are you just surfing the pulse of the zeitgeist and have a brain like a sponge?
[ 09-Mar-02 6:34pm ] |
The Blog


