Categories
Geeky/Programming Ramblings

Windows Live Writer – API Open (not really) – I Want To Download Existing Posts

So, I am sitting here scratching my head again. I use Windows Live Writer (WLW) to post to my blog. I like it, it rocks. There is a plugin architecture, which is cool, and some other API’s for doing things.

WLW saves drafts and posted posts as .wpost files to a directory in your My Documents. The files are in a proprietary binary format. It is cool though as all your posts are saved and you can open existing ones, edit, and republish easily.

I want to go through my posts and add WordPress tags. Not technorati tags, but WordPress tags, so I can have a cool little tag cloud. WP 2.5 support WLW tags by default, WP 2.3 (which I am running) can get tags from WLW through a little REG hack which I have applied and it works for new posts.

What I want to do, is update all my historical posts through WLW instead of WordPress web interface.

Since I have reformatted, changed computers, started blogging before WLW came about, of course I don’t have all my posts on this machine. So I thought, why not download them from my blog and create .wpost files so I have them?

First I looked for a plugin, no dice, doesn’t even seem that anyone has wanted to do this. I searched forums, blogs, Google, whatever. Found little info.

Next I dug into the API, nothing there that would really help me. What I would do is just access my posts through the XML-RPC interface WordPress has and create new .wpost files in my directory, you wouldn’t think it would be that tough..but it is.

It would be nice if the .wpost file was open and had a documented spec, that way I could do it easy as 1,2,3. Even if there was some API with WLW to create new posts and save them (you can create new posts, but only by programmatically opening WLW).

Well, I guess I will keep my eyes open for anything that comes along that will make this possible, until then, it is using the WP web interface. I suppose I could write an app to just directly edit the post tags through the XML-RPC API, and save them, but I want them on my machine as well. Just another good backup I suppose.

Categories
Blogging

WordPress 2.3.3, PHP, Windows Live Writer, Allowed memory size of 8388608 bytes exhausted

After I updated to WordPress 2.3.3, I was seeing some pages in my admin screens getting errors like this:

Allowed memory size of 8388608 bytes exhausted

WTF? So, pages still worked though. I cleaned out everything I wasn’t using (themes, plugins, etc) in my WordPress directories, still getting it.

So researched a little, had to edit my php.ini in the etc directory of my webhost. I changed memory_limit from 8M to 16M. Pages started working again. cool!

Anyways, Windows Live Writer was getting an error on posting after I upgraded "Invalid response document returned from XmlRpc server" and the post would save as a draft in WLW (but still post to my blog)  After posting to the WLW groups on MSN, Joe Cheng at Microsoft wrote me to send me the WLW log file. (Help->About->Show Log File). After looking at the log file myself I noticed the same "Allow memory size…" errors and realized that the php.ini fix probably fixed the posting problem.

After I fixed the php.ini, my posts now go through with no issue.

I know some people have just updated the xml-rpc.php and they are having issues. I recommend just updating your whole WordPress installation. If you are using a custom theme you are ok. Just disable your plugins and re-enable after updating the files. the wp-config.php doesn’t get overwritten, so you are ok.

Categories
Geeky/Programming Product Reviews

New Windows Live Writer (Beta 2)

I just installed the updated Windows Live Writer  – man this is the best tool I have seen in a long time. It really makes it easy to publish blog posts. If I would have had it like 3 years ago, man 🙂

 

Technorati tags: , ,