September 3rd, 2008
Want to upload your now-obsolete GamerDNA / GuildCafe blog into another blogging program? Don’t panic, you can! The guildcafe_blog_rescue (V2) script can convert the html page with your old blog entries into an RSS file, suitable for import into WordPress.
To use it, go to the old_blog_entries.html web page, and save it to a file (not as “complete web page”, that messes up the formatting in firefox). Then run:
perl guildcafe_blog_rescue.pl < old_blog_entries.html
This will create the file blog_rss.xml, which you can upload into wordpress, etc. If this is all too much for you, and you’re a friend, I might be convinced to translate your entries for you…
Peace and love!
Warning, all entries are put into the default category, and it also imports all draft entries!
Posted in Gaming | No Comments »
September 3rd, 2008
//
// Event handler for a callback that takes no parameters
//
class EventHandlerBase
{
virtual void HandleEvent() = 0;
};
//
// T is the class that will receive callbacks
// U is the method signature or something
//
template <class T, class U >
class EventHandler
{
T _obj;
U _func;
public:
EventHandler( T * obj, U * func )
: _obj( obj ),
_func( func )
{
;
}
void Register( T * obj, U * func )
{
_obj = obj; // param checking?
_func = func;
}
void HandleEvent()
{
_func->obj();
}
};
Posted in Misc | No Comments »
September 2nd, 2008
I’ve noticed that spammers seem to have run out of nice things to say. They’ve already explained that I can be well endowed, or please “her” in bed, but for the last year I’ve been getting these belittling emails. The emphasis here is definitely on “little”.
The first one I remember was from november of last year (2007), with this title:
Don’t you think it’s time you stopped being a loser with a tiny pen!s?
Tiny? What a hurtful thing to say! Did I mention that I cried? (And how did they know?)
And then there’s today’s missive:
Stop being failure in the bedroom
This might refer to my inability to have meaningful sexual relations due to inadequacy, but it could just as easily be referring to my cleaning skills. Either way, it seems very unlikely that this email would convince me to purchase questionable, counterfeit pills from a Canadian pharmacy. Shoot, I can get questionable counterfeit pills from an “unlicensed street vendor” just as easily, and I don’t have to worry about identity theft.
Posted in Misc | No Comments »