Archive for October, 2008

Category-specifc RSS feeds from WordPress

Friday, October 24th, 2008

I subscribe to some topic-specific blog aggregation feeds, and I get mildly annoyed when posts appear on those things that actually don’t have anything to do with the aggregation’s topic.  I found this off-topic spamming surprising because blogs always have these categories and tags on every message, so what’s the point of all that if you can’t subscribe to a specific category?

It’s not exactly obvious, but it turns out that at least with WordPress blogs (like this one) you can subscribe to a particular category.

First you have to figure out the category number for the topic you’re interested in.  You can usually do that by clicking on the link for the category you’re interested in an looking at the url.  It’ll have part that says something like “cat=4″.   Then you append that onto the regular feed url.  Now you append that onto the base RSS url for the blog.  Like for this blog the base is:

http://www.billbaxter.com/techblog/wp-rss2.php

Use a “?” to tack on the category string and voila!

http://www.billbaxter.com/techblog/wp-rss2.php?cat=4

you have a category-specific feed url (in the case above, for my “code” topic, which current includes D, C++ and Python sub-categories.

Update: It seems WordPress folks changed the URL format they use at some point.  For the version I’m currently using (2.9.2), the format is now:

http://www.billbaxter.com/techblog/?feed=rss2&cat=4

The .php script referencing the type of feed is no longer explicit, and instead both feed type and category are just parameters.

So here are some category-links for my blog here (updated for my WP 2.9.2):

Inverse Kinematics

Friday, October 24th, 2008

Just got a nice email from a guy named Nate Warner who said he used my inverse kinematics presentation to figure out how to make a nifty ragdoll physics demo in some sort of Flash 3D thingy.

I wrote that presentation for the Comp 290 physically based modelling grad course at UNC-Chapel Hill in the first or second year of my Masters/Ph.D.  It looks a little quaint to me now, but I’m pretty proud by how well it explains some things.  Maybe that’s only me, but anyway, some things like the intuition behind multi-dimensional non-linear optimization that I put in there have really stuck with me.

What really gets me tickled is that this class presentation has been the top hit for “fast inverse kinematics” ever since I wrote it lo these 8 years ago.

[edit]  I say it looks quaint because the problem is really a straight-up non-linear optimization problem, and the right way to tackle it is with a non-linear optimizer of some sort.  The CCD, Jacobian Transpose, and PseudoInverse methods are all just hacks in one way or other trying to avoid using a more apropriate optimization strategy.  IK problems all tend to be relatively low-dimensional, too, so for most apps the speed of a good robust optimizer would not be a problem.   Actually Nate’s blog there has some links to other more recent methods like Selectively Damped Least Squares for Inverse Kinematics.  Having done a lot of least squares stuff lately, some sort of non-linear least squares solution is what I’d try these days too.

D library merger looking imminent

Friday, October 10th, 2008

Check out this change log from Phobos.  Looks like Sean Kelly is very nearly done with the work to move the two D-standard libraries to share one common core runtime.

Hooray!

Background for those who need it: in the world of the D programming language right now, there are two incompatible “standard” libraries.  The original Phobos library that ships with the DMD compiler, and the Tango project, a community-developed library that sprang up largely over dissatisfaction with the semi-closed and somewhat disorganized process of Phobos development.

This has really been a thorn in D’s side for a good while now — more than a year.  In a recent poll on the D newsgroup, this Phobos/Tango split was the #1 thing that people listed as needed fixing with D.  And finally it looks like it’s happening.  Happy day for D.