MongoDB won't cooperate with php scripts.

So I read The Little MongoDB Book. Did all the examples just using the commandline interface. All is well, right?

No. I can't get mongo to respond to a simple php script. Here's the error I get:

Fatal error: Class 'MongoClient' not found in /var/www/testMongo.php on line 10

...Here's the script name/URL:

After each change I made, I did this:
sudo service mongod restart (this shouldn't make a difference, so I only tried it once)
sudo service apache2 restart

GeoLocation spoofing in Chrome browser

This is a direct copy from:

While in Google Chrome, press Ctrl+Shift+I on Windows, or Cmd+Opt+I on Mac, to open the Chrome Developer Tools. Now press the Esc (escape) key to open the Console window. Switch to the Emulation tab and choose the Sensors option in the left sidebar.

TrendNet TV-IP551W/A Wireless N Internet Camera with ZoneMinder

Documenting all the little pieces to get a TrendNet TV-IP551W/A Wireless N Internet Camera working with ZoneMinder on Linux Ubuntu (Mint MATE desktop).

I got ZoneMinder all set up, together with something called FFMPEG (a bunch of Codecs).

Found this on ZoneMinder wiki -- with no other description:

Open a Virtual Terminal by pressing Ctrl-Alt-F1.

I naively followed some instructions to "Open a Virtual Terminal by pressing Ctrl-Alt-F1" and found myself in a slightly unusual situation.

That brought me out of my comfortable desktop GUI environment and made the whole screen a terminal session. And if I just tried to exit it (it demanded that I log in first) it would just bring me back to the login screen. What to do?

Here's some instructions I found online:

MongoDB stuff (login, list tables, dbs, etc...)

Wow, I haven't used MongoDB in like almost a year and so forgot everything entirely.

How to log in?
Easy enough to find, but got error:
Error: couldn't connect to server localhost:27017 at src/mongo/shell/mongo.js:147
exception: connect failed

BTW, LOGGING IN is like this:

mongo -u -p --host --port 28015
(this still doesn't work for me, so probably disregard most of the rest of this post)
or just


telnet ! I wish I knew how to quit you!

I had a hard time quitting telnet while logged in via the terminal (on Ubuntu). Here's some notes I found that worked:

1. Open the telnet prompt by holding down the ‘Ctrl’ key and push the ‘]’ key. (prompt: Microsoft Telnet>)
2. Type quit.
3. Push the ‘Enter’ key.
You can change this default telnet prompt key by starting telnet like this:
telnet –e p (this will change the telnet prompt key to lowercase ‘p’)

X10 / Bottlerocket (br) commands that work

I have to tell the br program/command which port to use.

I don't remember how I had this set up originally, because originally I just used the command:

br a1 off

Part of what I'm sure I did was identify the right port thusly:

$dmesg | grep tty

This was very helpful:

Ahhhhhhhhhhhhhhh, in there, I just figured out how to tell 'br' how to know its port without spelling it out each time. Here's the sudo near the end of the article:

Android / Eclipse ADK / SDK TROUBLES!! wOw!

"I learned something today."

After having "finished" a basic, presentable app for Android, I wanted to try to submit it to Google's Play Store. And here's where the trouble began.

Drupal upkeep

(see "comments" for chronological progress)

I have been meaning to update Drupal for a long time. I always get stopped when I realize it seems to be a complete re-install, and I'd have to back up what I have so far. Ugh.

Mongo -- struggle to use old db!! OMG!

OMG! I'm tormented today by the fact that I have no (findable!) documentation about how to get into the mongodb sitting on my server that Alex set up for our WSN (Wireless Sensor Networks) class.

So, I'm recording some steps that worked:

$ mongod --repair

------------------next tried all sorts of usernames and passwords (that I found good documentation for in my files!!!) and they all failed, but then this worked:

$ mongo

------------------damn! That got me to the mongo prompt. So I promptly did:

> help