changing the digital world one bit at a time...

Blants (noun) the rants of a blogger

  1. Mongo NoSQL escaping dot for email address find

    June 1, 2012 by The Man

    Well this took me a while but to search for an email address like

    db.depicus.users.find({“EmailAddress”: /^bob\.sm/i}, {EmailAddress:1}).skip(0).limit(0)

  2. Run NoSQL (MongoDB) on OS X 10.8 with PHP support

    by The Man

    Wow it’s quite easy

    1. Download Mongo from here

    2. Grab the PHP drivers from here

    3. Unzip 2. and move to /usr/lib/php/extensions/no-debug-non-zts-20090626/

    4. Edit php.ini and add then restart Apache

    5. Start Mongo by extracting the files in 1. then fire up terminal and make a data directory with sudo mkdir -p /data/db for the data then run sudo mongod to run the server.

    6. Head over to here for a basic Hello World

    7. Download MongoHub for a nice, sexy GUI at – and it’s even on github – perfect.

    Easy peasy….