Featured post

Learn JavaScript With Me – Global Post



 

To see, play and debug the exercises please go to js.davecoast.com (this is our little sandbox for learning) – this is also the link on the Nav Bar called LearningJavaScript.

We’re going through the book – Modern JavaScript: Develop and Design written by Larry Ullman (LarryUllman.com).

Here’s all the code so far (all exercises up thru Chapter 11) - HTML, JS and CSS

Continue reading

How To MongoDB – Getting Started, Shell Intro

Comming soon.

Javascript code MongoCreate.js below:

Continue reading

How To MongoDB – PHP Connect on XAMPP in Windows 7

Steps:

  1. Download drivers – mongodb.org – Screen prints  1,2, 3 and 4
  2. Extract driver download zip – please note that the _64 ones don’t work with XAMPP. Screen Print 5 
  3. Check phpinfo() to verify our PHP version along with the build info (Thread Safe vs Non-Thread Safe and Visual C++ compile – recent XAMPP is VC9. Screen Print 6
  4. Place chosen driver in php extensions directory, make a copy and rename to php_mongo.dll. My directory is c:\xampp\php\ext (I’m using the default). Screen Print 7
  5. Edit php.ini - add this line to php.ini – extension=php_mongo.dll. Screen Print 8
  6. stop and start apache to use updated php.ini. Screen Print 9
  7. Verify phpinfo() now includes Mongo section. Screen Print 10
  8. Run the mongo test – show the error with out MongoD running. Screen Print 11
  9. Start mongod. Screen Print 12
  10. Run test php script (code below). Screen Print 13
  11. View Document in Mongo Shell. Screen Print 14
  12. MongoDBPHPVerify.php code below
  13. Video Tutorial embedded below
  14. Enjoy your PHP connection to MongoDB.

Screen Print 1 - MongoDB.org - we’re going to click on the Drivers link:

Continue reading

How to MongoDB – Install on Windows 7

Steps to install MongoDB in Windows 7 and get MongoDB running along with executing commands through the mongo shell.

Overview:

  1. Download MongoDB from – MongoDB Download Page (screen print 1)
  2. Create target MongoDB folder I created d:\DevMongoDB
  3. Create target MongoDB Data folder I created d:\DevMongoDB\MongoTestData (Mongo defaults to c:\data\db)
  4. Unzip the download and place the bin directory in your target mongo directory (step 2). I’m using d:\DevMongoDB\bin (this contains the Mongo executable files – screen print 2)
  5. Add the d:\DevMongoDB\bin to the path environment variable (screen print 3)
  6. Create a batch file to make it simple to start Mongod. Mine is called startmongo.bat.
  7. Open a command prompt (start/run/CMD) and enter startmongo (my batch file name from step 6). This start the Mongod server (yippee – now we’re running).
  8. Open another command prompt (start/run/CMD) and enter mongo to start the mongo shell. This allows you to enter mongo commands.
  9. Enter various commands to verify that you are up and running. For example: help, use and show along with the insert(), find() and findOne() methods.
  10. Think about what development language you plan to use. Check out this page for more info. Continue reading

How to MySQL – PDO bindParam() vs bindValue()

This post is in process. It will discuss and demonstrate the difference between using bindParam() which sets a placeholder by reference and bindValue which sets by value.

This PHP script is for creating a PDO connection object

Continue reading

How to Install WordPress 3.5 Using cPanel on Live Site / Shared Host

This tutorial walks through a 25 step WordPress 3.5 install using cPanel. How to Video at end of Post.

We’re going to install the WordPress files in a sub-directory of our Document Root that is named something other than WordPress. This makes it a touch more difficult to exploit WordPress weaknesses for Bots from the dark side that are scanning our sites.

To have our site operate gracefully, we’ll need to take a couple of extra steps (simple and effective, see steps 6, 7, 8, 9 and 24 below).  These steps allow our site to be accessed with http://mydomain.com while our WordPress files live happily ever after in their sub-directory. For this demo our site address is http://waimanusolutions.com while our WordPress files are located at http://waimanusolutions.com/mywpdir/.

Continue reading