Posting Images via XMLRPC

I’ve been getting errors when trying to upload images via ecto, an XMLRPC client.

Method “metaWeblog.newMediaObject” produced a server error: “server error. requested method metaWeblog.newMediaObject does not exist.”.

I’m not sure if this is due to a new version of ecto, or something that’s broken within ecto. I’m downloading some other editors to try it out, but over dialup…

Careless Whisper (w/ R. Wainwright)Ben FoldsWolf Trap 6-29-04 ★★★★

Block Comments after X days

Eugenia (who used to write for BeOS sites, back in the day) wanted to know how to stop comments from being posted on posts that are over 10 days. I’ll generalize this to X days, just for completeness. You need to get the date of the post, and the current date. I’ll get the post date, and put it into a variable: {capture name=pdate}{the_time d=“U”}{/capture} {$smarty.now} Now, you need to subtract the two of these: {$smarty.now - $smarty.capture.pdate} Note that it will be somewhat incorrect, as {$smarty.now} is server time, whilst {the_time} is WordPress time. Now, this gives us a value in seconds, so we want to work out how long X days is in seconds. This, again is simple: X days = 60*60*24 seconds ∴`` X days = 86400 seconds {capture name=diff}{$smarty.now-$smarty.capture.pdate}{/capture} Now, the actual code to display the error message is: {if $smarty.capture.diff/86400 > 10}     I'm sorry, Comments are now closed. {/if} But, we want this to appear instead of a comment form, so you’ll need to find the line that looks a bit like: {if 'open' == $post->comment_status} And replace it with: {if $smarty.capture.diff/86400 > 10}     I'm sorry, Comments are now closed. {elseif 'open' == $post->comment_status} Naturally, replace 10 with however many days of comments you wish to allow.

Electrocution (Hydro Mix)Decoder RingSomersault ★★½

Stickies No Longer Editable

I use MacOS X Stickies as desktop reminders, and by an large they are very cool. Just recently, however, they got a whole lot less useful for me. Something has gone wrong, and I can no longer edit the text in any sticky note. I can select it, and I can paste into it, but I can’t type into it. And, before you ask, I’ve trashed the prefs, and deleted my ~/Library/StickiesDatabase file, all to no avail. And google can’t tell me anything about it either.

Back to Dialup

If you’ve been following the saga with Veridas, you may have noticed that whilst the network was up briefly, it went down again. I’ve now connected with another ISP, and have a complimentary dialup account to use until my churn completes. And man, dialup sucks…