KBD

Keith Devens .com

Saturday, August 30, 2008 Flag waving
The wheels turn slow, but when they do, they grind. – Micah

Archive: February 19, 2006

← February 18, 2006February 20, 2006 →

Daily link icon Sunday, February 19, 2006

  1. John Piper: Don’t Waste Your Cancer. To finish reading.

       (9) Tags: [Cancer, Religion]
  2. Darwinia (via Keith Gaughan via Jeff Atwood). I don't really get what's going on, but it may be a fun game to try.

       (0) Tags: [Games]

The best auto-complete control I've seen

This is the best Javascript auto-complete control I've seen.

Update: This one looks pretty good too.

Update: I was running @supra with the FireBug console open and was noticing errors every time I typed a character. It turns out there's an error in the code, but ironically in the CSS, not the Javascript. One of the default styles has:

this.actb_hStyle = 'text-decoration:underline;font-weight="bold"';

But it should be:

this.actb_hStyle = 'text-decoration:underline;font-weight:bold';

Anyway, @id really does work excellently.

FireBug, and interactive consoles

So yesterday, for the first time in years, I started coding a little Javascript, so I finally had a reason to install and play with FireBug. It's great. By far the most useful feature to me so far is the interactive javascript console. You can say document.getElementById("foo") and it'll give you a debug list of all the properties for that element. And you can execute any Javascript and it'll show you the results.

It really shows the value of interactive consoles. In fact, that was the second interactive console I'd made use of for the day for a language that doesn't usually have one. I finished creating a fairly tricky API for my tagging system, and I wanted to test it all. So I whipped up my own web-based interactive console for PHP where I could type in code and have it be evaluated and see the output. I was able to run down my entire API pretty quickly and both knock out some minor errors, and convince myself that the code was probably correct. With the console I wrote I was able to run through my tests much faster than I'd have been able to any other way.

A console is so important to me that I feel kind of naked when I'm working in a language that doesn't have one. In particular, I really miss it when I'm working with Perl, especially given its baroque syntax and all the CPAN you're inevitably testing out.

  1. Octopus vs Shark - Google Video (via Matt).

       (0) Tags: [Science]

Things I miss about NJ

(Material) things I miss about NJ:

  1. 24 hour diners where you can get almost anything you want
  2. Bagel shops
  3. Coffee shops (Starbucks doesn't count!) (with good live music, real tea, couches, and all kinds of custom drinks)
  4. Good pizza
  5. Good delis
  6. I was going to say good sushi, but I've managed to find some decent places around here
  7. Good hiking!! Ramapo Reservation and Harriman State Park! At Harriman, drinkable running water. Well, I drank it anyway. Oh, and one time I came back after hiking late at Ramapo and had enormous bear prints on the hood of my car!
  8. NYC counts, even though we didn't go into the city all that much. It was nice to have it close by.
← February 18, 2006February 20, 2006 →
August 2008
SunMonTueWedThuFriSat
 12
3456789
10111213141516
17181920212223
24252627282930
31 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

new⇒Johnny Walker Blue Label

Wow, thanks for the scotch review​:D

Lagavulin and Laphroaig are​some of...

Keith: Aug 29, 3:35pm

Girls, please don't get breast implants

Wow, After all this time, the​comments on this page continue to​grow. It wa...

Ajeet: Aug 25, 2:36am

Generated in about 0.051s.

(Used 7 db queries)

mobile phone