Archive for October, 2008

OpenID & Category RSS feeds in WordPress

Friday, October 10th, 2008

For your comfort and my own, I finally made took the (easy) step of OpenID enabling my own WordPress install, basically by just installing the OpenID plugin, along with it’s only dependency XRDS-Simple.

SInce installing in this case boils down to extracting two zip archives to <wp_root>/wp-content/plugins and activating the plugins in the Settings pane, this took about 1 minute. Setting up the OpenID plugin prefs took another minute and enabling libcurl support for php5 (apt-get install php5-curl ; /etc/init.d/apache force-reload) another 30 seconds.

Not bad. As a language, I tend to prefer Java over PHP, but this is about as simple as it gets I which deserves some kudos.

Also, providing category specific feeds is equally simple: just add the cat parameter to your current feed url with the id of the requested category. To see the id of your favorite category, just examine any category URL and copy/paste the cat parameter from there. For example:

my default rss2 feed :
http://www.bosit.be/blog/?feed=rss2
feed only showing posts categorized under ‘Java’:
http://www.bosit.be/blog/?feed=rss2&cat=6

Easy as eatin’ pie!

The pain of setting the classpath through the Jar Manifest

Wednesday, October 8th, 2008

I’ll keep this short: jar manifests suck. I just found out a jar wasn’t loaded as it was supposed to because my manifest classpath entry was 70 chars long (including the first space!). All other lines were 71 chars long, except this one because the entry was finished, so I was missing one space.

Netbeans handles this nicely when I build my app consisting of a number of projects with jar dependencies. Everything ends up ready to run in the dist dir of the main project root. Neat and simple. In Eclipse I seem to overlook the ability to export a Jar with it’s dependencies’ classpath preconfigured & packaged alongside the project code. I mean, am I *supposed* to do this myself?

I guess I really need to upgrade to using ant or maven and automate these kinds of things … and I will! Euhm … soon!

Since this is a clientside project, I’ll finally make the step and get the right kind of certificate to sign my code and WebStart enable the entire thing. And unless I solve these issues, I’ll return to netbeans for that purpose, although MyEclipse finally enabled me to stick with Eclipse :(

Until I switch to something automated of course :-)

Tired now. Need sleep.

Nite nite.

PS: I was about to reread but I’m too tired, so sorry, it’s probably badly written and ill-structured (or something)