Saturday, March 26, 2011

FireQuery rocks the jQuery

If you never thought Firebug or jQuery could get better... check out FireQuery!

This allows you to rock jQuery on any page within Firebug even if that page has not loaded jQuery on its own.

  1. Install Firebug
  2. Install FireQuery
  3. Load up a page
  4. Open up Firebug and Console tab - press jQuerify - BAM!
  5. Enter awesome jQuery commands like $("div:contains('John')") to find all of the <div>s that contain the word John.
I love it!

Error trying to run AHR (NodeJS) EC2 on new default EC2 Instance

I am attempting to play around with Node.js on EC2 and haven't been able to get it working yet.
I have installed the AHR package using NPM but cannot even run the most basic example:

[ec2-user src]$ node
> var request = require('ahr');
ReferenceError: provide is not defined
    at /home/ec2-user/src/node_modules/ahr/lib/ahr.js:810:49
    at Object.<anonymous> (/home/ec2-user/src/node_modules/ahr/lib/ahr.js:812:1)
    at Module._compile (module.js:404:26)
    at Object..js (module.js:410:10)
    at Module.load (module.js:336:31)
    at Function._load (module.js:297:12)
    at require (module.js:348:19)
    at [object Context]:1:15
    at Interface.<anonymous> (repl.js:171:22)
    at Interface.emit (events.js:64:17)

There was no mention of this anywhere on their site - but I have determined that I was missing some dependencies:
  • require-kiss
  • futures
  • buffer-js
After all of that - it still isn't working, not sure if it is the version of nodeJS I am running or what...