K.L. LogoK.L. Logo

Kram's Web site

Google
Web
geekzone.com.au

Site Map



Oft Visited Sites:
Daily reading
slashdot.org UserFriendly Digg ABC News
The Tech Doctor
Network
- Calendar
GeekZone
Macquarie Bank
CitiBank
Westpac
Westpac Broking
Backpack

Reference & Interest:
Ebay Australia
White Pages
Yellow Pages
Street Directory
TV Guide
Whatis Encyclopedia
Melbourne Weather
Weather Wall
Baggygreen
a2k
Internode
Vodaphone
Jase
Jon Oxer
Guy Kawasaki
Melb PHP UG
My Resume
a list about me


Restricted Access
Squirrelmail
GZ Hosting
GeekZone Customer Service Log

Bern's Links
CMC Network
MBF
Playgroup Victoria
Weight Watchers
Family Assistance Office
Direct Epay
Lilydale Squash & Fitness

Home

Oldest Older Newer Newest
Google maps - Journal - Web (Link)
16 May 2009, 9:55am

Google maps rocks. I've blogged about it before on the company blog at: The Tech Doctor Blog . This morning I wanted to know how far it was from home to Arizona, USA, so I went to get directions and typed in Lilydale, VIC 3140, Australia and Tempe, Arizona 85281. There 3 modes of transport, Car, public transport and walk. I left it on car. I clicked on Get Directions and was delivered the following map:



Note the direction I've put the red box around noting a partial toll road... That was rather funny, so I decided to change the mode of transport to "by walking".

The first thing I noticed was a warning: "Walking directions are in beta.
Use caution – This route may be missing sidewalks or pedestrian paths." Okay, that may be a fair warning, or is it just a bizzare sense of humour... Then I noticed how long the list of directions was.. Here are some highlights of the trip:


There is a total of 1331 directions all up. Well done to the google maps team for being so thorough.



Kids! - Journal - Family (Link)
05 February 2009, 5:26pm

Beccy didn't do as I asked at dinner, so I said she couldn't have a biscuit after dinner. Lizzy had don't the right thing so she could have one. I chose an extra-large biscuit and asked Lizzie if she would share it with Bec. She agreed so I split the biscuit into 60/40 pieces. Lizzie asked Bec which piece she wanted, but Bec wouldn't decide, so Lizzie chose the biggest piece, and handed it to Bec!

I'm not sure if Bec learned anything, but I learned to love love Lizzie's servant heart all the more.



Mental Overload - Journal - Work (Link)
05 February 2009, 10:26am

I know I've been burning life at both end lately, and for me, some symptoms of that are email box overflowing, and lots of tabs open in Firefox, consisting of half read articles and things I want to look at at some stage. 30-40 tabs can make me mentally groan, and the thought of all that I might lose if they were closed makes me tense.

Bern was using my computer the other day and she accidentally clicked close in Firefox and it popped up the following message:

Okay that's really too many. Time to stop everything and sort...

now that I've blogged it.



Cakes - Journal - Web (Link)
01 January 2009, 7:07pm

In my research on Wordpress plugins I came across this site: Pink Cake Box Wedding Cakes, by none other than Jesse Heap, designer of the PHPlist /Wordpress plugin that partly solved my earlier problem and led me to design my first Wordpress Widget.

They make some stunning looking cakes, even better than my dodgy but loving attempts. :)



First Wordpress Widget/Plugin - Journal - Web (Link)
01 January 2009, 1:28pm

I wrote this Widget (Plugin) for Wordpress to be able to properly display the subscription form for The Tech Doctor Newsletter. It builds on the PHPlist Plugin by Jesse Heap which connects to PHPlist. It is based on a sample plugin by Kaf Oseo

<?php

/*

      Plugin Name: PHPlist Widget

      Plugin URI: http://www.geekzone.com.au/

      Description: PHPlist  Widget that makes a widget out of <a href="http://www.jesseheap.com/projects/wordpress-phplist-plugin.php">Jesse Heap's PHPlist</a> plugin

      Author: Mark Snell

      Version: 0.65

      Author URI: http://www.geekzone.com.au/

      based on: http://guff.szub.net/2006/04/06/my-widget-example-wordpress-widget/

      */

function widget_PHPlist_init(){

      function widget_PHPlist($args) {

        extract($args);

        $options = get_option('widget_PHPlist');

        $title = empty($options['title']) ? '<b>'.'Join our Mailing List:'.'</b>' : '<b>'.$options['title'].'</b>';

        echo $before_widget;

        echo $before_title . $title . $after_title;

        $content = apply_filters('the_content', '<!--phplist form-->');

        echo $content;

        echo $after_widget;

        }

  

    // This is the function that outputs the form to let users edit

    // the widget's title and so on. It's an optional feature, but

    // we'll use it because we can!

    function widget_PHPlist_control() {


        // Collect our widget's options.

        $options = get_option('widget_PHPlist');


        // This is for handing the control form submission.

        if ( $_POST['PHPlist-submit'] ) {

            // Clean up control form submission options

            $options['title'] = strip_tags(stripslashes($_POST['PHPlist-title']));

            update_option('widget_PHPlist', $options);

        }


        // Format options as valid HTML. Hey, why not.

        $title = htmlspecialchars($options['title'], ENT_QUOTES);


// The HTML below is the control form for editing options.

?>

        <div>

        <label for="PHPlist-title" style="line-height:35px;display:block;">Widget title: <input type="text" id="PHPlist-title" name="PHPlist-title" value="<?php echo $title; ?>" /></label>

        <input type="hidden" name="PHPlist-submit" id="PHPlist-submit" value="1" />

        </div>

    <?php

    // end of widget_PHPlist_control()

    }


    register_sidebar_widget('PHPlist', 'widget_PHPlist');   

        // This registers the (optional!) widget control form.

    register_widget_control('PHPlist', 'widget_PHPlist_control');


     }

    add_action('plugins_loaded', 'widget_PHPlist_init');

?>

You can download the file here.





Oldest Older Newer Newest

Site Map

Faith
FAQ
Journal
Links
People
Reviews
Think

If you wish, you can mail me at mark@geekzone.com.au

GeekZone Home

Last Updated 4th September 2010