Archive for October, 2005

Working on my family tree

I’m looking for information on the children of George Glover and Mary Ann Glover (nee Barraclough): James Robert Glover, John William Glover, Maud Mary Glover, Lillian Beatrice Glover, Marion Florence Glover, Elizabeth Hannah Glover, Laura Minnie Glover, Rose Evelyn Glover, and Mable Gertrude Glover.

I have information on John William Glover’s descendants, and Rose Evelyn Glover (my paternal grandfather’s mother) but I’m hoping to find more information on her other siblings.

Apparently they came on the RMS Peruvian from Liverpool to Halifax.

Comments (2)

Switchover

Well, if you can see this post, it means that the webhost switchover was successful. There may be a few bugs to iron out in terms of links to files that I’ve been hosting, but I’m grepping through database files to find them.

For now, my gallery will remain in the same place because of the large amounts of disk space it requires.

Comments

Tracking your family tree with GRAMPS

I recently installed GRAMPS v2 to start tracking my family tree. I have an interest in this because I am the last male heir of a large branch of my family tree, and there is pressure to pass on my last name to a male son. Since I don’t have any kids yet, I’d like to find some other people that share my last name, Harford. I’m going to get all of my data entered into GRAMPS before I go looking for relatives on the Internets because the chances of lining up branches increases as I add more information.

GRAMPS is a very easy to use and feature-rich product for Linux that tracks all of your family tree data. I’ve never used any other genealogy software before, but this one is straightforward and easy to use.

One thing I liked is that it prompts you to enter related information as you go along. For example, when I added Tracy as my spouse, it popped up a window to enter the wedding information, which I did, then continued with the rest of my data entry.

It also lets you flag data as private (I don’t really want to publish my living relatives’ birthdays for example) and I’m going to test out how well that works when exporting data.

A missing feature (or one that I haven’t found yet) is the automatic export of the family tree data to a web page, but since it exports XML it should be very simple. dot (part of the graphviz package) should be able to handle this easily. I’ve found a PHP application called PhpGedView that should be able to handle this as well.

In terms of merging family trees, I think I will use the Ancestry.com Trees service to find other branches. There is a 14 day trial that I’ll sign up for once I get the tree done. A year’s subscription costs $49.95 US which is a bit steep, but hopefully I wouldn’t be locked in to their service if I find other branches that line up.

Comments

MythTV TV out on the Pundit-R

I just realized that I had a broken file that I was pointing to when I was talking about getting my Pundit-R’s ATI IXP9100 TV out working in Linux for my MythTV box.

The correct link is here: xorg.conf

Please note that this is for NTSC.

You also need to make changes to your bios: Go to Advanced->Chipset->Northbridge and choose TV only for your output. When rebooting, you should get the text on the TV, and it should also stay on the TV output when X starts.

Comments

Hacking Seagull for Ajax support (with Rico)

Seagull is a PHP framework that is gaining popularity. One thing that it is lacking is AJAX support, but you can hack something together by going through the source files. Note that this should be fixed in the future because Seagull is being made more flexible, and will be able to support different output formats automatically.

I used the Rico (or OpenRico) AJAX Javascript library to handle all of the hard work, but the backend was lacking XML (or whatever arbitrary format) output. I wanted to stay within the framework for the output, because Seagull is handling things like user login, sessions, and permissions. If you don’t need this, just write a PHP script that outputs XML. :)
Normally when you make a custom class for Seagull, you extend the SGL_Manager class. We don’t want to this, because the data would then be passed to the Flexy template which is expecting HTML, and it’s a big mess.

Instead, we want to create functions that simulate how the SGL_Manager class works, in our own custom class.

So the functions we need are:

  • Constructor
  • validate($req, &$input)
  • _action((&$input, &$output)
  • process(&$input, &$output)
  • display($input, $output)

The constructor sets up the variables in the class. The _aActionsMapping variable must be set up here to dispatch the action to the correct page. If this doesn’t make sense, read up on creating custom Seagull modules.

Validate is required to process the page. It also sets up any variables that were POSTed as form values, or in the URL.

Your _action function is where things get done. Make sure you set the content type: header(’Content-type: text/xml’);. The data is output here with an ‘echo’ statement. Remember to format your XML properly. Firefox is great for debugging at this point because it will barf on bad XML.

The process function is copied from the SGL_Manager class but modified so that it doesn’t go through flexy:


function process(&$input, &$output)
{
SGL::logMessage(null, PEAR_LOG_DEBUG);

$conf = & $GLOBALS['_SGL']['CONF'];
$className = get_class($this);

// don’t perform checks if authentication is disabled in debug
if ($conf['debug']['authenticationEnabled']) {

// setup classwide perm
$classPerm = @constant(’SGL_PERMS_’ . strtoupper($className));

// if user has no class perms check for each action
if (! SGL_HTTP_Session::hasPerms($classPerm)) {

// …and if linked methods to be called are allowed
foreach ($this->_aActionsMapping[$input->action] as $methodName) {

// allow redirects without perms
if ($methodName == ‘redirectToDefault’) {
continue;
}
$methodName = ‘_’ . $methodName;

// build relevant perms constant
$perm = @constant(’SGL_PERMS_’ . strtoupper($className . $methodName));

// redirect if user doesn’t have method specific or classwide perms
if (! SGL_HTTP_Session::hasPerms($perm)) {
SGL::raiseMsg(’you do not have perms’);
SGL::logMessage(’You do not have the required perms for ‘ .
$className . ‘::’ .$methodName, PEAR_LOG_NOTICE);

// make sure no infinite redirections
$lastRedirected = SGL_HTTP_Session::get(’redirected’);
$now = time();
SGL_HTTP_Session::set(’redirected’, $now);
if ($now - $lastRedirected < 2) {
PEAR::raiseError('infinite loop detected, clear cookies and check perms',
SGL_ERROR_RECURSION, PEAR_ERROR_DIE);
}
// get default params for logout page
$aParams = $this->getDefaultPageParams();
SGL_HTTP::redirect($aParams);
}
}
}
}

// all tests passed, execute relevant method
foreach ($this->_aActionsMapping[$input->action] as $methodName) {
$methodName = ‘_’.$methodName;
$this->$methodName($input, $output);
}
}

display is an empty function since we already did the displaying though the action function.

At this point, you will be able to point your browser to your custom module’s URL and get an XML page. After that, make sure your Rico code is pointing to this URL and you should see it show up in your page!

Comments (2)

CKNW covers podcasting

Josh Bancroft is going to be in town to talk to CKNW about podcasting etc.

I didn’t see any posts from Roland Tanglao, or any of the other Bryght guys, nor anything from Darren Barefoot. I wonder why they weren’t invited?

I hope I can listen online on my Linux box tomorrow to see what these guys have to say!

Comments (2)

Flock, the new social browser

Seeing the 700+ people that added Flock as a del.icio.us bookmark, I decided to download it and try it out.

As a preview release, it’s working very well, and hopefully this blog post should make it to my blog automatically!

Comments

Grey market Japanese cars in your inbox

Terra2imports has an RSS feed, so you can watch the new cars come in through your RSS reader.

The Japanese have an interesting method of keeping their economy going, it is called ’shaken’, where cars have an inspection fee that is paid every 2 years, apparently it works out to about $2000 CDN. This is on top of paying for parking spots, insurance, gas, and high maintenance fees. This encourages people to buy new cars quite often. It also applies to motorcycles, scooters, and farm equipment like tractors.

Now, Canadian regulations state that a car doesn’t need crash testing and approval if it is over 15 years old, so there have always been importers bringing in grey market vehicles, with really good deals if you’re willing to take the risk of driving a vehicle that was never sold in Canada. Mechanics probably won’t know how to deal with them, and there is always the right-hand-drive problem. :)
But the big news recently is that the really desirable Japanese sports cars are now legal for import: Skyline, Supra, MR-2, etc. So importers have been popping up all over, and it looks like there is going to be an excellent aftermarket for the Skyline in Vancouver. I’m starting to save my pennies for a GTR. :D

Comments

Adventures of Shentae

My friend’s 6 month old daughter has a blog: Adventures of Shentae.

Comments

Co-ed baby shower

I went to a coed baby shower this weekend. Kind of a weird situation, all of us guys asked the same question, ‘are there going to be other guys there?’. But it was fun and it was great catching up with some people that I haven’t seen since high school.

One of the best gifts that someone brought was an outfit like this: Mutha Sucka

Comments

« Previous entries