shwango! blog
life, love and some other stuff…

Archive for September, 2003

Displaying code…

This is a cool little bookmarklet for escaping html/xml code to post. For now I just needed a quick and dirty hack, which it provides. I might get better results using Macros as recommened on the MT forums. Any other suggestions?

mt.setPostCategories

I was having some problems the other day using mt.setPostCategories to set the category on my first test post using the XML-RPC API that MovableType provides. I found some info over at d2r, the code for mt.setPostCategories is just wrong - not even valid xml - and that ID in <name>categoryID</name> should be Id (arg!). So, I decided to learn more about XML-RPC and dug out some books and poked and proded until setting my category occurred without fault.

I still think that adding the primary category as part of the metaWeblog.newPost struct would be cool. It’s kinda crazy to post, set categories, republish. I’ve got a post in over at the MT forums asking this.

So now my little VB app works - just sends the XML-RPC raw - now to get into more of the XML document creation. (Why am I doing this? Just cuz I think XML is cool and have being playing around with the MSXML control a lot.)

Here’s the proper XML-RPC code for mt.setPostCategories: (I replaced tabs with spaces to make it look a little nicer on the web.)

<?xml version="1.0"?>
<methodCall>
<!-- The name of the method to call. -->
<methodName>mt.setPostCategories</methodName>
<params>
<param>
<value>
<!-- Entry ID. -->
<string>[MT ID of Entry]</string>
</value>
</param>
<param>
<value>
<!-- The username to post this entry under. -->
<string>[username]</string>
</value>
</param>
<param>
<value>
<!-- The password for the username supplied above. -->
<string>[password]</string>
</value>
</param>
<param>
<value>
<array>
<data>
<struct>
<member>
<name>categoryId</name>
<value>
<string>[MT ID of category]</string>
</value>
</member>
<member>
<name>isPrimary</name>
<value>
<boolean>true</boolean>
</value>
</member>
</struct>
</data>
</array>
</value>
</param>
</params>
</methodCall>

Test Post from Zempt

Just testing posting from Zempt - a MT posting tool I found after I got my MT VB code working!

I’ll post more on my API findings in the morning… Too tired now.

Test API Post 2

I hope this one works too.

Test API Post

I hope this works.

congratulations are in order!

i forgot to post that jen passed her exam! wahoo! you rock, babe! inching closer and closer to that doctorate!

ebay api…

for a project i’m working on, i’ve been doing some research on the ebay api. several months ago they only had one license for like $1000 per year. now you can sign up for four types of licenses, including an individual (and free) one! needless to say, i signed up - hey, another xml interface, sweet!

i’ve hacked together a simple vb app and java app to access the api site. the vb app is cool since it can just display the resulting xml in an ie browser control.

i actually was made aware of the new licenses browsing the ebay hacks book. it’s got a chapter on the api. (linux server hacks is good too.)
cover

rss feeds…

not sure if anyone noticed, but i’ve updated my syndication feeds - and put up the cool little images everyone’s using! i’ve got the old rss 1.0 and now rss 2.0, as well as comments which i’m still playing around with. i hacked up the comments template myself (well based on the rss 2.0 template i found) since i’ve been trying to get more into mt coding - and i’m sure i’ll continue tweaking it.

also, i came across the notion of “styling the rss feeds“. i guess it’s a cool idea, so that if you click the rss feed link you get “pretty” look, but i still like my raw xml.

i’m still slowly working in little css/design changes, but the “new look” is still in the works.

cincinnati ain’t so bad…

tuesday jen and i hit the town! after my haircut (i pay a lot at a downtown joint, but it’s worth it) and meeting my mom for lunch, jen and i headed for sawyer point down by the river. jen had only been down there like once or twice. we walked all over the place.

they’ve got a new “international” park which is cool and a new play area for the kids - yeah, i was swinging and jumping around and climbing too! we wandered over the “ugly purple” pedestrian bridge to newport on the levee and into the big barnes and noble. got some ice cream at the cold stone creamery - i got peanut butter ice cream with graham cracker pie crust mixed in - yum!

it was a wonderful day! and we had beautiful weather - a great flow into fall! i wish i had some pics to post, but we didn’t think about bringing the camera along.

also, last weekend’s “oktoberfest” was very nice too. (some would say it’s not quite as german as it should be, but we enjoyed - and stuffed - ourselves.)

spammers are tricky…

ok, we all know spammers suck. they are evil people. but they are also tricky, smart people… i haven’t put a real spam filter in place yet, but i’ve been using poptray to poll and preview my email on a few accounts. it’s a nifty little freeware program that allows me to delete spams before outlook gets them. i came across an interesting email yesterday - no real text content, just base64 encoding. i thought, virus. but today i pulled up the message in outlook express, and the spam magically appeared! so any program filtering based on text content would pass the message along. interesting tactic, i thought. i’m not up on the latest spam filters, so maybe they take this into accoung, but those spammers are tricky!

yes, i realize i shouldn’t use outlook (or outlook express) anyway, but it’s nice for some things… and i haven’t gone 100% linux on the desktop yet…

oh ok, squirrel mail shows the message as well… maybe it’s a common method for email…

Next Page »