New Year, New Things

Filed under General on January 10, 2010

So unlike many years i try to forget 09 wasn’t a bad year at all, and even though i have left over resolutions from last year,  2010 is a bag of a lot of goodies for me.

That said, my sole resolution this year is to put all my to-dos into to-done. Which means you will hear a whole lot from yours truly, hopefully most positive.
Here is to a good 2009 and a great 2010 full of bigger and better things.

Happy new year everyone

JQuery and keyboard events

Filed under DOM, JQuery, Javascript on August 18, 2009

One of the many things that can and will induce a headache instantly is working with keyboard events on the multiple browsers.  Thankfully jQuery makes things seem a whole lot easier than they actually are. here is brief example

$(document).keydown(function(event){
  switch (event.keyCode) {
   //ctrl key
      case 17:
     alert("key: ctrl");
  //overide default event action
     return false;
  }
});

Note: The keycodes may be different across browsers and overiding the event action may did not work in ie8.
For a keycode reference and test tool check out http://is.gd/2mf9A

RewriteMap TXT

Filed under mod_rewrite on March 11, 2009

So we all know that  mod_rewrite will destroy your brain cells faster than any other voluntarily ingested toxin, and yet we all seem to inhale it all the time.  In my new found love of design patterns, regular expressions a.k.a regex  (the primary fuel behind all matters rewrite) has become an essential tool in my arsenal of solutions to every day problems. (more…)

Dear Frustration

Filed under Letters, rants on January 23, 2009

Dear Ms.Frustration.
I am sure you will be pleased to know that I have accepted the fact that you are a critical part of my daily (all 7 days) experience and you are here to stay. That said I hope you will consider this few recommendations on how we can both tolerate one another. (more…)

Older Posts »