2012s

    Snow on Branches.

    2012 New Standards Holiday Show

    Super excited for the The New Standards holiday show tonight!

    Of course Mrs. Braintree is at The New Standards Holiday Show!

    New Standards Holiday Shows: 2023, 2021, 2019, 2018, 2013, and 2012.

    Just consolidated my Linode 1024 and Linode 768 host into a single Linode 2048. Expecting better performance and easier admin.

    I guess Google messed up Reader again. I gave up after they forced Google Plus. Using Fever and host my own RSS.

    Adding Email Mention Notification to WordPress P2

    I’m using the P2 theme on a couple of websites, one of them is for the team minnestar to help coordination and collaboration. P2 supports the ability to use a @user notation to mention other users on the site, but it doesn’t do anything other than highlight the user. This snippet of PHP added to the bottom of the P2 functions.php will send email notifications on those mentions. This isn’t heavily tested but it works well for me.

    /**
     * Custom code added to P2 to enable email notifications
     * when a user is @mentioned in the site.
     *
     * Original at [trepmal.com/2011/06/2...](http://trepmal.com/2011/06/24/using-wordpress-multisite-p2-and-more/)
     * and modified from there.
     */
    add_action('publish_post','send_email_notification_once',9);
    function send_email_notification_once($postID) {
        $post = get_post($postID);
        $author = get_userdata($post->post_author);
        global $p2;
        $mentions = $p2->components['mentions']->find_mentions($post->post_content);
        $permalink = get_permalink($postID);
        $blog_title = get_bloginfo('name');
        foreach ( $mentions as $match ) {
            $email = get_user_by('slug',$match)->user_email;
            $message = "You have been mentioned in this post:\n $permalink 
    
     {$post->post_content} ";
            wp_mail($email, "[$blog_title] You've been mentioned by {$author->display_name}", $message);
        }
    }
    
    add_action('comment_post','send_email_notification_once_comment',9);
    function send_email_notification_once_comment($commentID){
        $comment = get_comment($commentID);
        global $p2;
        $mentions = $p2->components['mentions']->find_mentions($comment->comment_content);
        $permalink = get_permalink($comment->comment_post_ID);
        $blog_title = get_bloginfo('name');
        foreach ( $mentions as $match ) {
            $email = get_user_by('slug',$match)->user_email;
            $message = "You have been mentioned by {$comment->comment_author} in this comment:\n $permalink 
    
     {$comment->comment_content} ";
            wp_mail($email, "[$blog_title] You've been mentioned in a comment by {$comment->comment_author}", $message);
        }
    }
    

    Need tickets.

    Sitting next to James Wallen who has Whooping Cough. This seems like a bad idea.

    Brilliant! Borrow it? 🙂

    @mnadel: Just bought digital calipers so I can measure my filter basket to order the perfect Reg Barber tamper.

    Making Wassail Tea for Thanksgiving Day!

    Played synchronicity in Letterpress. BAM! 😊

    Tiny coffee. Urban Bean Coffee.

    AT&T turned LTE on in South Minneapolis? I have it.

    LTE full strength in warehouse district too. AT&T didn’t have this yesterday.

    I wish there was a Mac version of Letterpress where I could have multiple games open at the same time.

    Dads and Donuts at Berry Patch

    Today I got to take Tyler to Berry Patch for pre-school to attend Dads and Donuts day! Tyler was super excited for Dad to come to school with him. We played with Play-Doh while everyone arrived. We then went in and talked to Fireman Tom from the Edina Fire Department. Tyler was sitting up front and volunteered to come up front and try on a fire fighter suit! He was so excited!

    He got to stand in fireman boots:

    Put on a fireman jacket!

    And a real fireman helmet!

    After our talk with Fireman Tom we went out front and got to see a ladder truck up close! Tyler posed with Ms. Anita for a picture in front of the truck.

    He even got to drive it!

    We finished with a delicious donut with another fire truck on the table!

    Took a moment during election coverage to upgrade to MediaWiki 1.20, released a couple hours ago! All went very, very smooth. Not even a hiccup. New new diff view is a welcome improvement. Much easier to read.

    I won a nice game of Lost Cities against Tom Keekley.

    New Bob Mould album “Silver Age” is very good!

    It would be nice if you could stash words in Letterpress that you want to remember for a future move.

    It would be a lot of fun if you could “react” to the word your opponent played in Letterpress. Like the faces in Lost Cities.

    Mission accomplished! Beer at Wits!

    Mike Doughty playing at Wits!

    Agile Day Twin Cities 2012

    Presenting at Twin Cities Agile Day today!

    Minneapolis Institute of Art is nice venue for Twin Cities Agile Day.

    Attending Jeff Sussna session on continuous delivery.

    Andon on Wikipedia.

    Nice line from David Hussman: (Value) = (Why) / (How)

← Newer Posts Older Posts →