Recent comments

  • Doritos Unidentified Flavour   5 days 8 hours ago

    There's another Doritos Unidentified Flavour contest now. Check out the info on Doritos Unidentified Flavour here: http://www.wilddoritos.com/doritos-unidentified-flavour.html

    Maybe the new Unidentified Doritos Flavour is Wild Doritos!

  • Doritos Unidentified Flavour   1 week 4 days ago

    what poem?

  • Doritos Unidentified Flavour   1 week 4 days ago

    Ever read the poem?.

  • A review of my Netfone VoIP service   5 weeks 4 days ago

    Yeah, I'm still happy with them... I also just wrote an updated blog post on what I'm using for phone service. Phone calls anywhere

  • Creating Custom Triggers in Drupal   6 weeks 2 days ago

    Drupal should have named this module something else. I want to write a module which sets up a MySQL trigger inside the database, not a PHP script which triggers an action. I see that there is a db_create_table function but no db_create_trigger. Anyone know if this is possible?

  • Shrubxery - A python implementation of blosxom   8 weeks 4 days ago

    Very good post, thanks a lot.

  • Creating Custom Triggers in Drupal   9 weeks 5 days ago

    I think what you need to do is use the insert and update cases. Then check the value of 'status' on the node and compare it to the version of the node that's already saved in the database and see if it's changed from 0 to 1.

    However, I think there's a trigger by default that's on node publish/unpublish, you should probably take a look at what that's doing.

  • Creating Custom Triggers in Drupal   9 weeks 5 days ago

    Thanks for the response. I would like to create a custom trigger for when a specific node type of "event" is published.

    It can appear on the "content" tab. The example you use above is only for when a node is saved. I looked at hook_nodeapi and I didn't see that there was a case for publish, so I'm not sure if what I have got is going to work.

    Here's what I have so far

    <?php

    /**
    * Implementation of hook_hook_info().
    */
    function eventpublish_hook_info() {
    $info['eventpublish'] = array(
    'publish' => array(
    'eventpublish' => array(
    'runs when' => t('After Publishing an event node'),
    ),
    ),
    );
    return $info;
    }

    /**
    * Implementation of hook_nodeapi().
    */
    function eventpublish_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
    switch ($op) {
    case 'publish':
    if ($node->type == 'event') {
    module_invoke_all('eventpublish', 'publish', $node);
    }
    break;
    }
    }

    /**
    * Implementation of hook_script().
    */
    function eventpublish_script($op, $node) {
    $aids = _trigger_get_hook_aids('nodeapi', $op);
    $context = array(
    'hook' => 'nodeapi',
    'op' => $op,
    'node' => $node,
    );
    actions_do(array_keys($aids), $node, $context);
    }

    What I am trying to do is generate an email action to the %author when a moderator publishes and event node.

  • A review of my Netfone VoIP service   11 weeks 3 days ago

    Hi!

    Are you still happy with your service?

    I'm looking for a provider to have a 514 number and foward it to another local 514 number...

    Is call fowards are billed?

    Do you think this provider is what I need?

    Thanks for your response

  • Creating Custom Triggers in Drupal   11 weeks 6 days ago

    thanks, i've renamed it to script.module.txt and you should be able to grab the file now.

  • Creating Custom Triggers in Drupal   11 weeks 6 days ago

    Can't download module file.

    Forbidden

    You don't have permission to access /sites/scotthadfield.ca/files/script.module on this server.
    Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 PHP/5.2.4-2ubuntu5.6 with Suhosin-Patch Server at scotthadfield.ca Port 80

  • Fish Massage   17 weeks 5 days ago

    You Didn't!!!!

  • Fish Massage   17 weeks 5 days ago

    You Didn't!!!!!!!!

  • Fish Massage   18 weeks 6 days ago

    Your posts just keep getting weirder. Did you get your suit?

  • Fish Massage   18 weeks 6 days ago

    Oh my goodness. I actually have goosebumps. Cannot believe Sam actually tried this. And was giggling!!! But I do have to agree with you guys - just too weird to not try!

  • Losing Sam's Mom, and a monsoon, at the biggest market in the world   19 weeks 7 hours ago

    a market isn't the same as a mall. markets are much more fun... even when i don't buy anything :).

    Yeah, I'm not brave enough to try things like that yet :)

  • Losing Sam's Mom, and a monsoon, at the biggest market in the world   19 weeks 10 hours ago

    Crazy!! I hope you all knew the address of where you're staying. I'm amazed at your fascination for going to markets, Scott. I always thought you had a mall (shopping) allergy. Also, any hint of what that is in the picture? Is it alive? Oh I just looked at the caption. How did it taste?

  • Fifty Five Square Foot Room   20 weeks 2 days ago

    yeah, I've read that book. probably part of my inspiration to go to buenos aires last year. All the technology exists to make it work in your line of work, but the mindset isn't there yet ;). There's also a lot to be said for being one-on-one and in person when it comes to learning.

  • Fifty Five Square Foot Room   20 weeks 2 days ago

    Hey Scott,

    Looks like you guys are living the high life over there! Haha...looks like a lot of fun though. Have you ever read "4 hour work week" by any chance? Seems kind of like what you guys are doing...running a company and yet living your lives at the same time. Unfortunately I can't do that in my line of work. haha.

  • New Phone Number   20 weeks 5 days ago

    Been trying to keep on top of my social media stuff as much as I can lately ;-). Plus I finally feel like I have stuff to write about again. I think I know of the hot spring baths place you're referring to.. we tried to find it one night, but ended up just getting lost :).

  • New Phone Number   20 weeks 5 days ago

    I'm up too late when I should be sleeping and wandered in here and sat down to read the last few entries. Really enjoyable writing, you're hitting your stride with this blogging thing :P

    One of these days I need to uproot and take this show on the road too. Squeeze Sam for me, and see if you can find a noodle shop while you're in tokyo. Oh, and there is some hotel downtown that has hot spring baths in the basement. The memories are a little hazy from the last time I was there :P

  • Random observations in Tokyo   21 weeks 2 days ago

    here's the facebook group: MacLeod - Canadian Clan MacLeod Society
    I joined by meeting Ian MacLeod in Richmond and paid him my $35. He is a retired Lawyer. Emma Halford(MacLeod)Forbes, is the editor and I stayed with her parents in Scotland. I want to go back there next year, so am looking for a rich man or a job like you have. Actually I like the rich man option., Know any? 45 - 65, nice, good looking, and good you know where. Ha ha.

  • Random observations in Tokyo   21 weeks 2 days ago

    Haha, we don't understand anyone ever here :). We're never really sure what we're going to get or what's going to happen when we go somewhere. As Sam put it... it's kind of like we're in a cartoon and we have question marks floating above our head everywhere we go :).

    Btw, what is the Clan MacLeod magazine?

  • Random observations in Tokyo   21 weeks 2 days ago

    I agree with you about strange things seeming normal after a while. I just wrote an article for the Clan MacLeod magazine, and had to look up the things I found strange when I first got there.
    Are there many times you can't understand anyone?

  • Chopsticks that cost more than a years supply of sushi?   22 weeks 11 hours ago

    I easily spent $226 on sushi in Vancouver and i was there for only a month :P hahaha but i was eating it in copious amounts and at a variety of places. I probably could have been more thrifty, but it was a delicious month!