David Davies' Radio Weblog
Dave's right. I got up out of my rut and am gearing up for a busy weekend!
[Macro error: Can't convert name because TCP/IP error code -3170 - Host not found (DNS error).]
Chris Double's new web service lists the current horse racing meetings being handled by the New Zealand TAB. Maybe I'll make my fortune yet!
David Davies is not down, not yet. More services and interoperability over the weekend! Web services have a big future. The trick will be to find the killer applications.
This has been happening to my copy of Radio since about Tuesday. Consequently just about everyone who used one of my services have now removed them from their weblog. The excitement of Tuesday now seems a long time ago. I don't blame you, I'd do the same. I've even been linked, albeit indirectly, to one user's unrecoverable root corruption. This hurts. There are no bugs in my code, my server hardware is rock solid, my services work just fine. I'm feeling a bit let down by circumstances outside of my control.
I'm concentrating on using web services in Manila now. I've been using XML-RPC for a long time in Manila and so far so good. I'll stick with what I know and can control. Thanks for listening.
Any similarity between the Executive Director of the FA and myself is purely coincidental.
PS All the info and scripts you need to accomplish a full Radio <-> Manila interface are already in radio at system.verbs.apps.manila.
This will really bake your noodle. This is a message in Manila. Hello to Radio Userland users!
You can see me on the web at this web site
Interested? Then join this Manila site and post a new discussion message. Get the number of your new message (it's in the URL) and paste that number into the following web services macro in Radio 8.0.4:
<%["xmlrpc://147.188.66.137:5335/RPC2"].radio.getManilaMessage ("3")%>
The macro is already set up to include this message (number 3). Just copy it and paste it into a new Radio weblog post.
Well now thanks to radio's web services I can filter all my RSS feeds and only look at those items that match a keyword.
<%params = {"cancer"}; xml.rpc ("147.188.64.44", 5335, "radio.rssSearch", @params)%>
The params = {"cancer"} tells the service to only display those feed items that contain the keyword "cancer". Try this service for yourself on your own site. Try other health-related keywords. All my feeds are health and health education related.
If you like this you can have it for your own site.
If you're not ready to install the web service on your own site then try it via mine! Copy and paste the following macro in a new weblog post in your site:
<%params = {"deganwy"}; xml.rpc ("147.188.64.44", 5335, "radio.picturegallery", @params)%>
The params= {"deganwy"} tells the service to display all those pictures in my site with a filename containing "deganwy". To view all pictures just leave the params field empty thus params = {""}. This is a nice example of how services allow you to both collaborate and interoperate with other weblogs. We could even build a meta picture gallery!
You can download the web service and install it on your own site by right clicking and saving the following file into your Radio:Web Services directory.
Replace the 147.188.64.44 in the macro above with the IP address of the machine running your copy of Radio and bingo! Your own pictures web service.
By all means open the script and look at how it works. There's a commented-out script step that shows you how to log the web service hits. You will find the script in the Radio.root database at user.betty.rpcHandlers.radio.picturegallery.
deganwy2.jpg |
deganwy3.jpg |
deganwy4.jpg |
I'm really chuffed with the way this new tool has turned out! I must do something about those picture file names though.
You must have Dave's myPictures.root tool installed for my tool to work.
What does it do? When a picture is dropped into your Radio picture upstream folder it gets added to a picture gallery page in your weblog. This way you can share all your pictures with family and friends. It's also a convenient way for you to manage your pictures. Your picture gallery will be here:
http://127.0.0.1:5335/picturegallery
There will also be a version of this gallery on your cloud weblog called picturegallery.html
Get the tool here:
http://daviddavies.name/publictools/assetmanager/assetmanager.root
Download this file and put it into your Radio tools folder. Mac users please change the file type to 'TABL' and the file creator to 'LAND'.
You will then find two menu options under the Tools -> AssetManager menu.
1. Refresh Picture Gallery...
You must select this option the first time you install this tool. Thereafter you can run it whenever you like to get a clean picture gallery.
Dropping pictures into your upstream folder will add a new picture item to the picture gallery. However, I'm still having major problems getting my callbacks to run when a picture is deleted. I still can't see how the radio.upstream.callbacks.upstreamFileWasDeleted scripts get called as the vital code for this appears to be commented out. If you delete a picture you are strongly advised to reselect the 'Refresh Picture Gallery...' menu item. I'm sure this will be fixed soon.
2. Refresh Code...
I hope Dave doesn't mind but I blatantly stole his excellent codeFreshener scripts to implement this. The action of this menu item should be self explanatory. Select it and you'll get the latest version of the tool. Watch this space for announcements!
Comments & suggestions are always welcome. Additional asset management functionality will be out RSN!
Have fun!