Tuesday, February 14, 2006

Innocent honesty

My wife and I were walking at a furniture store the other day and the sales guy was leading the way.  theBoy, never having been quiet for 30 seconds in his life, was talking the sales guys ear off.

theBoy: This is my baby sister...her name is [theGirl].

sales guy: Oh really, her name is [theGirl]

theBoy: Yeah, mommy pushed her out.

nice

Wednesday, February 08, 2006

Muscles

My wife said that her, her mother, theBoy and theGirl were going somewhere with pumpkin seat, diaper bags, purses, etc. in tow.  All theBoy had to carry was his LeapPad.

boy: Mom, this is heavy.  Can you carry it?
grandma: If you carry it you'll get big muscles.
<30 seconds later>
boy: Mom, I don't want muscles.

Cool aerial shots in Mexico

This picture almost looks fake - but it's not. This guy flys his chopper around taking shots of Mexico City. There's a lot of cool one's in there - go take a look.

Tuesday, February 07, 2006

Google Talk search added to GMail

I'm not a fan of IM but this is cool. The ability to search your chat history already existed with Google Desktop but you were restricted to the machine you were chatting on. Now you can search via a centralized location.

The service has to be activated from your GMail settings for all your chats to be recorded. This could pose an issue with the person your chatting with not wanting their conversations to be recorded so they have the option to go "Off the Record".

Not bad for IM fans but for the rest of us we now have a useless link cluttering up the GMail interface.

Sunday, January 29, 2006

Flickr Badge Viewer

In my quest to make free blog hosting work more like a having your own full website I've finally added something I've been wanting to do for a long time - Flickr Badge Viewer.

Flickr provided a JavaScript file that you can place in your site and it will display however many images you set.  You can see the four photos to your right (or here if your viewing through an aggregator).

I threw together some JavaScript to take the HTML that Flickr feeds to the client and strip out the image url, Flickr url, and image title.  I then re-write the anchor tag for each image to call a JavaScript function (displayImage) to remove the main content of the site and display the image.


<script language ="javascript">

var mainHTML;

function displayImage(img, url, title)

{

    //Replace the main2 div element with the image.

    var main = document.getElementById("main2");

    main.innerHTML = "<div style='font-size:17pt;font-weight:bold;margin-top:5px;margin-bottom:5px'>" + title + "</div><a href='" + url + "'>View this image on Flickr</a> | <a href='javascript:displayImageClose();'>Close</a><br/><br/><img src='" + img + "' />";

}

function displayImageClose()

{

    //Put the original html back into the div element

    var main = document.getElementById("main2");

    main.innerHTML = mainHTML;

}

function editFlickrBadge()

{

    //In the event the javascript from Flickr

    // messes up then don't do anything.

    try

    {

        //main2 is where we're going to put the image

        var main = document.getElementById("main2");

        mainHTML = main.innerHTML;

       

        //photos is the div element wrapping the

  // Flickr Badge javascript

        var rootNode = document.getElementById("photos");

        for (i=0; i<rootNode.childNodes.length; i++)

        {

            if (rootNode.childNodes[i].nodeName == "A")

            {

                aNode = rootNode.childNodes[i];

                imgNode = aNode.childNodes[0];

                title = imgNode.title;

                img = imgNode.src;

                img = img.replace("_s.jpg",".jpg" );

                url = aNode.href;

                aNode.href = "javascript:displayImage('" +

 img + "','" + url + "','" + title + "')";

             }

        }

    }catch(ex){}

 }

 //Calling this function should probably be called after the page loads

 // ...but I'm lazy

 editFlickrBadge();

 </script>

Friday, January 27, 2006

Cindy's place

Lake HouseMust be difficult to step out of your bedroom and fight all that rush hour traffic by walking down the hallway to the office. Then having to deal with the unsightly views of the lake out the office window must be torture. I don't know how The Graphic Goddess does it.