Postcards From My Life

Lint I find in my mind's belly-button.
  • EPK
  • Consulting
  • Resume
  • Nerd Herding
  • Talks
  • CWJ 09

Archive for the ‘JavaScript’ Category

« Older Entries

I called Zend_Json::encode(), so WTH are all my properties?

Thursday, February 21st, 2008

Dear Reader,

Ok, this one is just stupidity on my part but I’m going to post this here so that hopefully others can learn from my mistake.

The problem is simple, JSON encode a PHP object and send it back to the front end. Sounds simple and the last 100 times I wrote this code it was simple. This time, I was too smart for my own good. Here’s the scenario. The object I’m encoding uses PHPs magic functions __get() and __set. __get() and __set() operate on a protected array named (drum roll please) $_data. (Stop me if you’ve heard this one)

class MyClass
{
    protected $_data;

    public function __construct()
    {
        $this->_data = array('wifesBirthDay' => '',
                             'nuclearLaunchCode' => '');

    } 

    public function __get($index)
    {
        if (isset($this->_data[$index])) {
            return $this->_data[$index];
        }
        return null;
    } 

    public function __set($index, $value)
    {
        if (isset($this->_data[$index])) {
            $this->_data[$index] = $value;
        }
    } 

}

So I instantiate an instance of MyClass and set a few very important properties:

$myObject = new MyClass();

$myObject->wifesBirthday = '5/14';
$myObject->nuclearLaunceCode = 'dontPushThisButton';

Now, var_dump($myObject) returns what you think it would, you can see the protected array and the values.

It was at this point that while I was still able to type coherent code, my brain had checked out for the night. The manual for Zend_Json::encode clearly states:

When encoding PHP objects as JSON, all public properties of that object will be encoded in a JSON object.

Obviously my brain simply chose to ignore this detail.

In my mind, the properties existed…right? Cause I could set them; however, since I’m laying it out here for you, it’s easy to see that since $_data is a protected property, it wasn’t getting passed.

Using FireBug (is there a better FireFox extension? I don’t think so) I could see that my PHP was handing back an empty JSON string to be re-constituted on the client side.

The solution, once I realized what was happening, was quite simple. just create an array of the properties you want to pass back.

$payload = array('wifesBirthday'=>$myObject->wifesBirthDay, 'nuclearLaunchCode'=>$myObject->nuclearLaunchCode);
$output = Zend_Json::encode($payload);

That was my first cut and low and behold it works. However, a better solution came to mind.

class MyClass
{
    protected $_data;

    public function __get($index)
    {
        if (isset($this->_data[$index])) {
            return $this->_data[$index];
        }
        return null;
    } // public function __get($index)

    public function __set($index, $value)
    {
        if (isset($this->_data[$index])) {
            $this->_data[$index] = $value;
            return true;
        }
        return false;
    } // public function __set($index, $value)

    public function getProperties($skip=array())
    {
        $returnValue = array();
        foreach($this->_data as $key=>$value) {
            if (!in_array($key,$skip)) {
                $returnValue[$key]=$value;
            }
        }

        return $returnValue;
    }
}

There, now I can simply write:

$payload = $myObject->getProperties();
$output = Zend_Json::encode($payload);

If I didn’t want to disseminate the nuclear launch codes (I know I’m gonna start getting some weird searches now) I can write:

$payload = $myObject->getProperties(array('nuclearlaunchCode'));
$output = Zend_Json::encode($payload);

So I hope that by embarrassing myself publicly I can help at least one person. (For the record, it really only took me about 2 minutes to trace down the issue.)

Until next time,
(l)(k)(bunny)

=C=

Tags: FireBug, JSON, PHP, zend framework
Posted in JavaScript, PHP, Programming, zend framework | 9 Comments »

 

I’ve been published in Dr. Dobbs!

Monday, December 10th, 2007

Dear Reader,

Wow, I wrote this article back in May/June and it finally got published! “PHP: The Power Behind Web 2.0“. This was the very first version of the FNN that I wrote. I used the concept in “Flex and PHP: Party in the Front, Business in the Back“.

Thanks to Andi because I’m sure without his name on the article, they wouldn’t have given me a second glance.

That makes two magazine articles this year and I’ll miss my other goal for the year, a book published, by a month or so.

It’s been a productive year.

Until next time,
(l)(k)(bunny)
=C=

Tags: ajax, article, Cal Evans, dr. dobbs, magazine, PHP
Posted in JavaScript, Me, PHP, Programming, writing | 4 Comments »

 

New Project – Queuebuddy

Sunday, July 1st, 2007

Dear Reader,

I’ve been working on a project for a while now and it’s finally ready for testing. Queuebuddy.com started life as a way to help me keep track of movies I want to see but don’t feel like paying to see in the theater. (If you are really curious, email me, I’ll give you what Wife 1.23 refers to as “The Hollywood Speech”) Anyhow, you can register, login and grab the bookmarklet. Then when you are surfing imdb.com you can click on the bookmarklet when you are on a page of a movie you want to see on DVD> When it comes out on DVD.

There’s no fee, there’s no commitment and other than an email when the DVD comes out, we won’t even bug you. So if your interested, drop by and try it out.

Two notes:

    • Since it relies on a bookmarklet, it’s only really usable in FireFox. Apologies to all my Microsoft friends.
    • I’m currently only tracking Region 1 release dates. Since the MPAA and it’s friends deem it necessary to screw over the rest of the world with this stupid region encoding scheme, I will too. (I did have high hopes that Austrailia was going to pass a law a few years ago that made region encoding illegal but I guess too many people decided they couldn’t live unless Hollywood craps in their living rooms because the law failed to pass.)

    Oh yeah, as with every web 2.0 property, this is a BETA. There will be bugs and I’m a programmer, not a designer, so it’s pretty ugly right now.

    One final note, it’’s written using the newly released Zend Framework 1.0. I’m working on a tutorial for DevZone that shows some of the things I learned.

    Until next time,
    (l)(k)(bunny)

    =C=

    Posted in Entertainment, JavaScript, PHP, Programming, SQL, Technology, Web 2.0 | Comments Off

     

    My first Mashup – Revisited

    Sunday, June 24th, 2007

    Dear reader,

    A while back, I built a cute little toy that let you track UPS packages on a Google map. My original title for this was “Where the hell is my stuff?” but since I wanted it to be more family friendly, I titled it “My First Mashup“.

    Since then, I’ve presented this talk 3 times and each time it gets more fun. However, I feel that this talk is nearing the end of it’s life. So I’ve packaged everything up and put it on the web for all to see. myfirstmashup.com has all the code you need to build your own copy of this. My slides from the most recent version are there as well as working examples should you just want to track a package. (Which, from the database cache I keep of cities, I see some of you are doing.)

    If you saw the presentation but wanted the most recent version of the code, it’s there. If you didn’t get a chance to see the presentation, consider this a DIY kit, everything you need is there, just put all the pieces together.

    Until next time,
    (l)(k)(bunny)

    =C=

    Posted in JavaScript, PHP, Programming, Web 2.0 | Comments Off

     

    Internet Explorer XHTTP munges custom headers.

    Tuesday, January 2nd, 2007

    Dear Reader,

    Elvis H. Presley! why does Microsoft have to make up their own rules for everything? Why, just for once, can’t they play nice and do things the way everybody else does? Nope, they’ve got to do things just enough different so that I have to make work-arounds.

    Ok, here’s the scenario I hit upon tonight and banged head against for about 5 minutes till I saw what was happening.

    Using DoJo as my Ajax transport I have the following code in a project.

        sendHeaders = new Object();
        sendHeaders['X-Return-Type'] = 'JSON';
        dojo.io.bind({
            url: "http://example.com/my/api/call/,
            load: displayData,
            headers: sendHeaders
    

    Notice that I set a header “X-Return-Type”. See how nice I was to capitalize the words? That’s because I like them that way. (No major technical reason, I’ll admit, I just like it that way.)

    Ok, now, in PHP:

            $headers   = apache_request_headers();
    
            if (!isset($headers['X-Return-Type']) or
                $headers['X-Return-Type']!='JSON') {
                    $this->_redirect('/my/other/page');
           }
    

    Ok, pretty straight forward, I set a header and I check for it. The problem is that in IE it’s failing. but why? If you check the headers being sent you’ll find that IE is nice enough to lowercase the header before sending it. This invalidates my isset() test.

    So, the answer I came up with (I’m sure there are others) is:

            $headers   = array_change_key_case(apache_request_headers(),CASE_LOWER);
    
            if (!isset($headers['x-return-type']) or
                $headers['x-return-type']!='JSON') {
                    $this->_redirect('/my/other/page');
           }
    

    Convert all the keys to lowercase before testing. Ok so it works but c’mon guys, this is just petty. It looks to me like the MS XHTTP object is lowercasing this header before sending it out.

    Thank you IE development team for taking the time to break the standards just enough to make me have to waste time tracking something down.

    Arrrrgh! I’m going to bed!

    Until next time,
    (l)(k)(bunny)
    =C=

    p.s. No, I’ve not tested this in IE 7, I’m trying to avoid loading that steaming pile on my computer. If someone does test, I’d appreciate a comment.

    DISCLAIMER: The opinions I express here are mine and mine alone. Go get your own.

    Posted in JavaScript, PHP, Programming | 1 Comment »

     

    My Thoughts on The Ajax Experience

    Tuesday, October 24th, 2006

    Dear Reader,

    As previously described, I’m now at The Ajax Experience. I have to say that I’m very impressed with the professionalism. From the handling of the speakers to the clockwork precision by which each event occurs, it is truly a well run conference.

    It’s also a great conference content wise, not because I spoke at it. :) The talks I’ve attended have, for the most part, been very good. There were a couple I sneaked out of because they were not as interesting as I had originally thought. That’s going to happen and shouldn’t be considered a disparaging comment about the conference itself. Overall, the sessions I’ve been to that I’ve stayed in, I’ve really liked. The one I’m in right now, JSON, putting the X in Ajax is has been my favorite so far. (even though he didn’t go near the 90 minute time frame and we were threatened with a severe beating if we didn’t) It’s been a great talk and I’ve learned a lot.

    I did meet a couple of cool people. I finally got to meet Dion Almaer of www.ajaxian.com and Tatiana from O’Reilly. (I do hope I spelled your name right.)

    The one and ONLY comment I have about The Ajax Experience that is not glowing is that there are no power strips to plug your laptop into. Even though the great company I work for saw fit to get me an extended battery for my T60, it’s still not enough to make it all day. Power strips would have been nice. To end in a compliment though, the WiFi has been great. I think a lot of people tried their best to kill it today downloading FireFox 2.0, but other than that minor glitch it’s been great.

    If you get a chance to attend a “The Ajax Experience” conference in the future, make sure you take it. I recommend it for programmers and designers; anyone concerned with UI, either how it looks or how it works. I really appreciate Jay letting me come this time and I hope I get the opportunity to speak in the future.

    Until next time,
    (l)(k)(bunny)
    =C=

    Posted in Humor, JavaScript, Me, PHP, Programming, Web 2.0 | 4 Comments »

     

    The AJAX Expreience

    Wednesday, October 18th, 2006

    Dear Reader,


    The Ajax Experience It’s DONE! My presentation for
    The AJAX Experience is complete, slides have been emailed and all my code works!

    For those just joining us, I’m speaking next week at The AJAX Experience in Boston. I’ll be presenting “My First Mashup”. It’s the little UPS/Googlemaps thingy I talked about earlier. It’s going to be a fun session if nothing else.

    When I spoke at FileMaker’s conference, I really sweated it. I was part of the closing keynote. It was easier than I anticipated mainly because there were so many people there. (like 1,500+) When I spoke at php|works in Toronto, I felt unprepared. I had studied the material but it wasn’t a passion of mine so I just didn’t feel like I did a good job.

    This time I feel prepared and jazzed. I wanted to write this project last year but just didn’t have time. When my client (SnappDragon, where you should be shopping for all your grills and grill accessories) asked me for a page to track UPS packages, I knew I had to write it.

    The session will cover the version I wrote for them (old-school), an intermediate version that uses SJAX (Synchronous) and then finally an AJAX version. The idea is to show developers how they can take an existing old-school idea and turn it into a Web 2.0 idea. (because this stuff is really very easy once you learn the rules.)

    if you are going to The AJAX Experience, even if you are not attending my session, make sure you stop by and say hi.

    Until next time,
    (l)(k)(bunny)

    =C=

    Posted in JavaScript, PHP, Programming, Web 2.0 | Comments Off

     

    Mashup update

    Sunday, August 6th, 2006

    Dear Reader,

    Since it was requested, here is a screenshot of the page in action. UPS Package Track

    This is a package that came to me recently. Just so you know, packages can be tracked for up to 365 days after delivery. (I guess that’s in case you forgot you got it.)

    Anyhow, I’m working on the AJAX version of this. I also implemented caching of the cities and geocodes since most cities don’t move. (Yes, I know, except for Springfield and if that’s the first thing that came to YOUR mind then you really need to stop watching the Simpsons so much) That’s why, if you put in the package ID in the screen shot, it’ll go pretty quick because it only has to ask UPS for the info and the Google geocoding comes from the database. One interesting side effect, as more people use this, I’m planning on building a map that shows things like:

    • Most common city of origin
    • Most common destination city
    • Most used hub city

    Things like that. Why? Because I can. (Why is not really important here, this is a hobby!)

    Until next time,
    (l)(k)(bunny)
    =C=


    =C=

    black porn sites
    black porn star
    black porn star cherokee
    black porn star directory
    black porn star india
    black porn stars
    black porn thumbnails
    black porn trailers
    black porn video
    black porn video clips
    black porn videos
    black porn vids
    black porn websites
    black porn xxx
    black reality porn
    black sex
    black sex cartoons
    black sex chat
    black sex clip
    black sex com
    black sex finder
    black sex fucking
    black sex galleries
    black sex gallery
    black sex links
    black sex mom
    black sex movie
    black sex movies
    black sex mpegs
    black sex online
    black sex parties
    black sex party
    black sex photos
    black sex pic
    black sex pics
    black sex picture
    black sex pictures
    black sex planet
    black sex porn
    black sex site
    black sex sites
    black sex slave
    black sex slaves
    black sex stories
    black sex tgp
    black sex thumbnails
    black sex thumbs
    black sex toys
    black sex trailers
    black sex video
    black sex video clips
    black sex videos
    black sex vids
    black sex websites
    black sex woman
    black sex xxx
    black sexy naked
    black shemale porn
    black shemale sex
    black stocking sex
    black teen naked
    black teens naked
    black thug porn
    black thug sex
    black tranny porn
    black virgins
    black voyeur
    black white sex
    black woman having sex
    black woman porn
    black women anal sex
    black women and sex
    black women having sex
    black women naked
    black women pissing
    black women porn
    black women porn stars
    black women sex
    black women sex videos
    black women white men porn
    black women with big tits
    bleach anime porn
    blonde anal porn
    blonde anal sex
    blonde asian porn
    blonde blowjob
    blonde blowjob movies
    blonde hardcore
    blonde hardcore porn
    blonde hardcore sex
    blonde lesbian porn
    blonde lesbian sex
    blonde lesbians naked
    blonde mature
    blonde milf
    blonde naked
    blonde porn pics
    blonde sex
    blonde virgins
    blonde with big tits
    blondes with big tits
    blowjob archive
    blowjob asian
    blowjob avi
    blowjob black
    blowjob clips
    blowjob cumshot
    blowjob cumshots
    blowjob download
    blowjob downloads
    blowjob dvd
    blowjob facials
    blowjob fantasies
    blowjob gag
    blowjob girls
    blowjob images
    blowjob instructions
    blowjob lips
    blowjob machine
    blowjob milf
    blowjob mom
    blowjob moms
    blowjob movies
    blowjob of the day
    blowjob parties
    blowjob party
    blowjob photo
    blowjob photos
    blowjob pics
    blowjob pictures
    blowjob porn
    blowjob pov
    blowjob quickies
    blowjob samples
    blowjob sandwich
    blowjob sluts
    blowjob story
    blowjob swallow
    blowjob techniques
    blowjob teens
    blowjob thumbnail
    blowjob thumbnails
    blowjob tips
    blowjob trailer
    blowjob vid
    blowjob video clip
    blowjob videos
    blowjob wmv
    body fat
    bondage anal sex
    bondage anime porn
    bondage anime sex
    bondage bdsm
    bondage blowjob
    bondage cartoon porn
    boy blowjob
    boy gays
    boy naked
    boy pissing
    boy porn pics
    boys pissing
    brazilian anal porn
    brazilian blowjob
    breast bdsm
    breast mature
    breasts naked
    briana banks hardcore
    briana banks porn
    british amateur porn
    british amateur sex
    britney blowjob
    britney sex video
    britney spears naked
    britney spears pics
    britney spears porn
    britney spears porn video
    britney spears sex tape
    britney spears sex video
    broadband porn
    brunette anal
    brunette blowjob
    brutal anal
    brutal anal sex
    brutal bdsm
    busty asian
    busty asian porn
    busty asian sex
    busty bbw
    busty blowjob
    busty mature
    busty milf
    busty milfs
    butt naked teens
    california bbw
    california virgins
    cam amateur
    candid voyeur
    car blowjob
    cartoon alien sex
    cartoon anal sex
    cartoon and porn
    cartoon animal porn
    cartoon animation porn
    cartoon animation sex
    cartoon anime porn
    cartoon anime sex
    cartoon character porn
    cartoon characters having sex
    cartoon comic porn
    cartoon comic sex
    cartoon girls having sex
    cartoon girls sex
    cartoon having sex
    cartoon lesbian porn
    cartoon lesbian sex
    cartoon movie porn
    cartoon network porn
    cartoon network sex
    cartoon porn
    cartoon porn clips
    cartoon porn com
    cartoon porn comics
    cartoon porn comix
    cartoon porn dragonball z
    cartoon porn flash
    cartoon porn for free
    cartoon porn galleries
    cartoon porn gallery
    cartoon porn game
    cartoon porn games
    cartoon porn images
    cartoon porn links
    cartoon porn manga
    cartoon porn movie clips
    cartoon porn movies
    cartoon porn net
    cartoon porn pic
    cartoon porn pics
    cartoon porn picture
    cartoon porn pictures
    cartoon porn sailor moon
    cartoon porn samples
    cartoon porn search
    cartoon porn sex
    cartoon porn site
    cartoon porn sites
    cartoon porn trailers
    cartoon porn video
    cartoon porn video clips
    cartoon porn videos

    Posted in JavaScript, PHP, Programming, SQL | Comments Off

     

    New Toy! My first mashup

    Wednesday, August 2nd, 2006

    Dear Reader,

    I finally found time to write a mashup. Actually this started out as a project for a customer and this page is just an unbranded version of the one I gave to them.

    http://www.calevans.com/trackups.php is the URL. It’s really very simple. You put in a valid UPS package id and it tracks it via UPS’s API and then displays a Google map of where your package is/was.

    It was fun to write. I’m still working out some kinks in version 1. Version 2, which is about 50% done is an all AJAX version. Once I get it done I’ll probably write up a quickie article on how I did it. (Like anyone with Google and half a brain can’t figure it out.)

    Until next time,
    (l)(k)(bunny)
    =C=

    Posted in JavaScript, PHP, Programming, SQL | 2 Comments »

     

    Odds and Ends

    Tuesday, April 4th, 2006

    Dear Reader,

    Yes, I’m still alive and no I’ve not taken to just shoveling up the crap the “devzone“:http://devzone.zend.com/public/view turns down. I’ll return to blogging soon and even to “blogblinging”:http://blog.calevans.com/blog-bling/. But here’s what’s up right now.

    The company I was working for is in a bit of a financial pickle. I’ve picked up a short-term contract doing some super-secret cool stuff but it’s not permanent. So if you know of anyone looking for someone to take their development team to the next level, send them my way. “Obligatory link to my resume”:http://www.calevans.com/view.php/page/resume I have a lead on something permanent if this contract goes well but I don’t have a feel for that yet so I don’t want to jinx it.

    I’ve been working a lot in “AJAX”:http://en.wikipedia.org/wiki/AJAX for the past couple of days using the “YAHOO library”:http://developer.yahoo.com/yui/index.html. I must say that it is an impressive if large piece of code. I’ve been using the “dragdrop”:http://developer.yahoo.com/yui/dragdrop/index.html portion of the code and am really liking what I see. It’s not as ‘user friendly’ as “script.aculo.us”:http://script.aculo.us/ but it’s much more powerful. I started this project in “script.aculo.us”:http://script.aculo.us/ but had to abandon it because I couldn’t get the fine-grain control I needed. Basically, IMHO, “script.aculo.us”:http://script.aculo.us/ is great if you are looking to Web 2.0-erize your site but if you are building a serious application, you are going to need “YAHOO library”:http://developer.yahoo.com/yui/index.html. When I finish I’ll blog togehter a little tutorial about what I learned because a lot of what I’m learning I’m having to learn by reading other people’s code and keep trying different things till something works. (Old-school, cave-man coding)

    Someone reported today a problem with “WP-Notable”:http://www.calevans.com/view.php/page/notable and “WordPress 1.5.1″:http://wordpress.org/. I don’t have a 1.5.x blog running anymore so I can’t test it. I know what the problem is but 1.5.1 doesn’t support the function I need to call. So for the moment, if you are running 1.5.x I highly recommend you use one of the other packages that do this. (No, I won’t point you to one, google around, you’ll find them.)

    I’m working on my “tagcloud”:http://www.calevans.com/view.php/page/tagcloud project. I’ve decided that it needs a second dimension. Right now size indicates popularity of the topic. (Well, it really depends on how you set your CSS) I also want to be able to imply a second dimension. In the test case I’m working on, I want to confer relative age of the topic. (Very popular but old isn’t interesting, kinda like George Clooney) I’ll be doing this by fading the color as the second dimension.

    Anyhow, that is what’s up with Cal. Hope you’ve enjoyed it. Hey, in case you missed the memo, my weekly “Zend Framework Mailinglist”:http://www.zend.com/lists/fw-general/200604/maillist.html Roundups now have their own tag. Check them out “here”:http://devzone.zend.com/public/view/tag/Roundup.

    Until next time,
    (l)(k)(bunny)

    =C=

    Posted in BlogBling, JavaScript, PHP, Programming, Web 2.0, WordPress Plugins | Comments Off

     

    BlogBling General Update

    Sunday, March 12th, 2006

    Dear Reader,

    This is for all of you who use my blogbling plugins. I’m in the process of updating them all. I’ve updated WP-NOTABLE and WP-ESBN and WP-FATTER but the rest will be updated soon. The reason for the update is that it was pointed out to me that the plugins that ran in the_loop were causing a lot of hits on the database. I’m updating them all to be more database friendly.

    Also, I’ve recently updated to Wordpress 2.0.2 All plugins seem to be working fine. The only thing I had to do was check my ESBN options, for some reason, they did not survive the deactivate/Activate. I’ll look into that.

    To the best of my knowledge all of the ones recently updates are now working correctly. Feel free to correct me on this.

    Until next time,
    (l)(k)(bunny)
    =C=

    Posted in BlogBling, Blogging, JavaScript, PHP, Programming, WordPress Plugins | 5 Comments »

     

    WP-Alexify Updated

    Sunday, February 12th, 2006

    Dear Reader,

    Yep, it’s that time again. Time to start updating the BlogBling plugins. Hey, if I don’t make some change every week, how do you expect me to sustain my hit rate? :)

    WP-Alexify has been updated. This is a major change. I removed the JavaScript I was using to display the tooltip and went with the wz_tooltip.jz library. This should fix the Safari comparibility issue.

    Also, I’m consolidating all of the BlogBling plugins into a single directory. This should make it easier for me to share code among them, reducing the amount of code I have to distribute. So make sure you read the update instructions if you are already running Alexify.

    Finally, this one contains my BlogBling updater code. It phones home every 7 days and sees if there is a new version available. It does not collect any information about you, your server or anything else. It just tells me which plugin to check and then gives you the current version number. If you don’t like this you can set the Check Interval to 0 and it will never check again.

    Until next time,
    (l)(k)(bunny)

    =C=

    Posted in BlogBling, Blogging, JavaScript, PHP, Programming, WordPress Plugins | Comments Off

     

    Fade Anything Technique Extended Edition 2.0

    Tuesday, January 17th, 2006

    Dear Reader,

    Ok, it’s finally done. Sorry it took so long but life intervenes. Here is my take on the wonderful code to fade things. You may have seen this technique in my previous blog entries. Or in some of the lesser known places like basecamp (who inspired the original author) or the original author’s page. No matter where you saw it, here is the WordPress plugin to let you use and abuse this effect in your blog.

    A sample of the effects that can be used to annoy can be found here. The official project page can be found here. You can download the tar file here.

    To install:

    1. Download the tarball to your wp-content directory.
    2. Untar. This will place wp-fatter.php in your plugins directory and fatter2.js in your wp-content directory.
    3. Move fatter2.js into your javascript directory. (Or wherever you keep your javascript files.)
    4. Activate the plugin
    5. From the Admin section of WordPress go to Options->FATtER. Check the options listed making sure they have the values you want. Pay careful attention to the location of the script. If this isn’t right, the effect won’t work. Once everything is correct, Click Update to commit the values to the database.
    6. Start using the effect. There are several examples in the .js file of how to call it, the easiest is to wrap a piece of text in a span tag with a unique ID (anything as long as it’s unique for the PAGE) and a class of “fade”.

    I hope you enjoy using this as much as I did creating it. For those curious, I originaly wrote this because when I would encode secret messages of undying love into blogs for wife v1.22 – the lovely and talented Kathy – she sometimes didn’t see them. So I had to make them a little less secret and a little more obvious.Until next time,

    (l)(k)(bunny)

    =C=

    Posted in JavaScript, WordPress Plugins | 1 Comment »

     

    AJAX Frameworks and toolsets. My initial thoughts.

    Tuesday, January 3rd, 2006

    Dear Reader,

    Over the holidays I spent a lot of time researching AJAX. Being a PHP developer I looked at everything I saw through the glasses of “How well does this integrate with what I’m doing now?”

    I’ve boiled all the frameworks, tool sets and class libraries I looked at down into 2 categories; 1) Back-end centric and 2) Front-end centric.

    (more…)

    Posted in JavaScript, PHP, Programming | Comments Off

     

    Blog Magic Eye – Redux

    Wednesday, December 21st, 2005

    Dear Reader,

    Ok, when I put up the original Blog Magic Eye, some of you who read it felt it might have been a bit too subtle. Personally, I love subtle, that’s probably why I like British sitcoms. Unlike their American counterparts, they don’t feel the need to explain the joke to you. Some of you didn’t even get why I referenced Kathy in the original. Well, I’ve made some code changes and by now it should be pretty clear. If not, well, sorry.

    Until next time, last night in the valley.
    (l)(k)(bunny)

    =C=

    Posted in JavaScript, Me | 1 Comment »

     
    « Older Entries
    • Team Based PHP Training

    • Sponsors and Ads

    • Conferences I’m Attending

    • About Me

      cal_evansThis is my blog. Sometimes it's my deep thoughts, sometimes it's a journal of things I've learned. Every now and then it's my box of shattered dreams. Most of the time though, it's just the place I like to write. Sit with me as I show you some postcards from my life. While you are here, do me a favor and leave a comment.

      If you are looking for my contact information, bio, picture, ASL, check out my EPK.

      My name is Cal Evans and this is my blog.



      Follow me on FriendFeed!

      View Cal Evans's profile on LinkedIn

    • My First Book

    • Support PHPWomen


      US Shop | European Shop

    • What I'm Doing...

      • http://bit.ly/bi31Yp "Get A Job Using Facebook, LinkedIn, and Twitter" Good Stuff. 1 hr ago
      • I totally forgot to announce, I'll be speaking for the UPUG via gotomeeting this Thursday evening. Giving my "5 Things" talk. #fun 2 hrs ago
      • @chartjes well, my butt is large enough to require one. :) in reply to chartjes 5 hrs ago
      • More updates...

    • Tags

      API article Cal Evans codeworks conference cw09 developers devzone elizabeth naramore Entrepreneurship Exim flex fun IBuildings iPod Kathy Evans linkedin Mac Management Marketing microsoft MySQL Nashville phar PHP phparchitect php developers podcampnashville podcast podcasting poem Programming Quickies respect RSS Silly-Con Valley sixty second tech software development terry chay twitter upgrade video wordpress zend zend framework

    • RSS PHP Podcasts

      • Writing Composite Zend_Form Elements
      • Preparing Custom Elements for Zend Validators
      • webcast: Introduction to Doctrine 2
      • 8 Reasons Every PHP Developer Should Love JavaScript
      • oddWeek Episode #4
      • Creating Custom Zend_Form Decorators
      • Habits of Highly Scalable Web Applications
      • PHPSPCast #6 – Ao vivo da Campus Party (Q&A)
      • php|architect podcast: oddWeek #003
      • Podcast #2010-02: Stalker Edition

    • XBox Gamer Card

    • Me

      • Best web design company
      • Cal Evans Dot Com
      • Cyrano’s Apprentice
      • Evans Internet Construction Company
      • My Life as a Child
      • PHP Podcasts
      • Sixty Second Tech

    • RSS My Blog at php|arch

      • An error has occurred; the feed is probably down. Try again later.

    • Flickr Recent Photos

      Blue Parabola Southern Office-Rear Annex is closed for snowSnow Heart@dzuelke getting ready to give his talk@fabpot talking about Dependancy Injection@derickr giving the opening keynotePeople meeting other peoplePHP Benelux Goody Bag ContentsCheck InDSCN2280The main room

    • Categories

      • Apache
      • BlogBling
      • Blogging
      • codeworks
      • Entertainment
      • Entrepreneurship
      • Flex
      • Humor
      • JavaScript
      • Long Form
      • Management
      • Marketing
      • Me
      • PHP
      • podcasting
      • Programming
      • SQL
      • Technology
      • Web 2.0
      • wordpress
      • WordPress Plugins
      • writing
      • zend framework

    • Meta

      • Log in
      • Entries RSS
      • Comments RSS
      • WordPress.org


    Postcards From My Life is proudly powered by WordPress
    Entries (RSS) and Comments (RSS).