this is the website of joe crawford. code. occasional comics. toy robots. san diego.
  • “Click to activate and use this control”

    Yuck. This is the latest in a series of failures in the last 24 hours. Eolas and Microsoft are cheesing me off this afternoon.

  • JavaScript trim() function

    it’s hokey, but it’s a nice basis for some other things. why didn’t i go looking for this last night when i was slamming my head against stupid code? ugh. function trim(str) { while(”+str.charAt(0)==’ ‘) { str=str.substring(1,str.length); } while(”+str.charAt(str.length-1)==’ ‘) { str=str.substring(0,str.length-1); } return str; }

  • Not a great knight

    Was up all night working, not a great night. Sometimes it’s really hard to believe that each day is a new day.

  • Photo from the Egghunt

    Previously: Hiding Eggs