Monthly Archives: December 2009

Using GreaseMonkey’s persistent data functions as a aged Cache, revised.

In eating my own dog food I have revised, corrected, improved and fixed the code I posted last week. The biggest changes are related to ensuring that all that cached data does not just accumulate and never gets cleared away.
Values set using the “GM_setValue” function are saved in the Firefox preferences back end and [...]

Posted in Ajax, Code, GreaseMonkey, JavaScript, Web | Leave a comment

Use GreaseMonkey’s persistent data functions as a aged Cache.

GreaseMonkey (Don’t know that GreaseMonkey is the greatest thing since slice bread? See Greasemonkey) has two persistent data function’s, GM_setValue and GM_getValue, which let you set and get values. See Mark Pilgrams excellent Dive Into Greasemonkey : Storing and retrieving persistent data for more details. (even better, go to GreaseSpot and it’s api [...]

Posted in Code, GreaseMonkey, JavaScript | Leave a comment

Using an iPod as a travel device and the what could be (aka the tripPad™)

This fall I was lucky to travel to Berlin and Paris on vacation, but as I geek I of course brought along a computer or 2.
On last years trip to Los Angles I had a NetBook (Aspire One) and using our friends WiFi was able to keep up on email and access the locations I [...]

Posted in Brain Farts, Hardware, travel | 1 Comment

JavaScript Function to get the Intersect of 2 Arrays

In mathematics, the intersection (denoted as ∩) of two sets A and B is the set that contains all elements of A that also belong to B.
I needed the javascript array equivalent, so that given an array A = ["a","b","c", "d"] and B = ["b", "d", "e"], getIntersect(A, B) = ["b", "d"]
123456789101112function getIntersect(arr1, arr2) [...]

Posted in Code, JavaScript, Web | 1 Comment
  • Follow

  • Archives (since 2003)

  • Categories

  • Recent Posts

  • Twitter Updates

  • del.icio.us links

  • Flickr

    Runnymede Healthcare Centre Demolition : The EndRunnymede Healthcare Centre Demolition : The EndRunnymede Healthcare Centre Demolition : The EndRunnymede Healthcare Centre Demolition
  •  

    December 2009
    M T W T F S S
    « Oct   Jan »
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Spam Blocked