ARTLUNG
this is the website of joe crawford. code. occasional comics. toy robots. san diego.

ArtLung posts tagged with “javascript” ·


  • jQuery Southwest Virginia
    I have no presumptions about how many folks in Southwest Virginia are JavaScript programmers and jQuery fans, but given the nice interface jQuery has given for meetups (they are using ning under the hood), I thought I’d set up a meetup for Roanoke / Blacksburg / New River Valley folks who program in JavaScript. If…

  • Snowed yesterday
    A lot. It caused the event I was going to go to: NC jQuery Camp, to get postponed till later in February. I’m still looking forward to a North Carolina adventure in coding. So we were snowed in Saturday, except for some preliminary snow shoveling I did. Today, Sunday started at 5am and I went…
  • JavaScript Geekery: John Resig
    If I haven’t mentioned it before, I’ll mention it now, I have done some with with jQuery. It’s impressive stuff. I quite enjoyed watching this talk by jQuery creator John Resig: JavaScript Talk at Northeastern. Perhaps you will too.
  • Misc Cavalcade!
    Yesterday I managed to write a post that was not: a single photo with a caption; a list of links; a random snippet of lyrics; a few words begging you off until I could really blog. Today, I have some links, but there are very many, and I hope to provide some context for each….
  • Play Misc-y for Me
    I’ve been reading and listening to lots about animation, and one of the more fun things has been Spline Cast, a podcast about 3-D animation. My favorite podcast right now is Dave Ramsey’s 1 hour version of his show. Don’t bother with the 3-hour version, it’s not really free. My previous favorite podcast is Harry…
  • Destructured Assignment in Ruby, PHP, and JavaScript
    Stupid code tricks in Ruby, PHP, and JavaScript
  • Loading TinyMCE on the fly
    Let’s say you have a textarea that is called into a page dynamically, say with an AJAX loaded chunk of HTML with a textarea in it. If you want that textarea to have TinyMCE applied to it, you need to call a script. This was a fun one to think through and debug, and it…
  • 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; }

  • Site Launch: FireMapper
    This past week and today the finishing touches were put on: Space Instruments’ website– FireMapper.com. The site design was done by Benecke Creative, and I did the underlying html, CSS and JavaScript. It’s got some nifty stuff on it. I particularly am proud of some of the mouseovers in areas like the Oil Spill Mapper…
  • New Silly Lab Item.
    In the lab: camelCase <-> selector-case in JavaScript w/o Regular Expressions. Why? Because sometimes you gotta make stuff for no reason.