Saturday, June 16, 2012

Windows 7 Updates (service not running error)

Today, I brought back up an old machine of mine running windows 7.  It had been a good 6 months since I've last used it, so naturally, windows updates was not working.

I managed to find a nice thread on social.technet:  http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/6a8889a8-65b2-4012-9cf8-2689f47b21e4


stop Windows Update Service


delete C:\windows\softwaredistribution\*.*


start Windows Update Service


check for updates




Hope this helps if you run into the same issue.

Monday, June 11, 2012

NodeJS and OpenShift, a PortalGNU presentation

Today, I am going to get my platform service configured and ready for development.  For PortalGNU, I will be using Red Hat OpenShift.  

First we select a web cartridge.  In my case, I will select Node.JS.



Give the application a name.


The next screen will include necessary information for setting up git and pub keys.   I installed the openshift toolkit (rhc) so I will continue there.

OpenShift includes shared databases and other features, called Cartridges.  In my case, I want a MongoDB cartridge.

$ rhc app cartridge add -a portal -c mongodb-2.0



RESULT:

MongoDB 2.0 database added.  Please make note of these credentials:

       Root User:  root
   Root Password:  *******

   Database Name:  portal

Connection URL: mongodb://127.0.0.1:27017

You can manage your new MongoDB by also embedding rockmongo-1.1


So at this point, I have mongoDB installed.  Let's check out rockmongo, too.


$ rhc app cartridge add -a portal -c rockmongo-1.1


RESULT:

rockmongo-1.1 added.  Please make note of these MongoDB credentials again:

   RockMongo User    : root
   RockMongo Password: *******

URL: https://portal-portalgnu.rhcloud.com/rockmongo/


Sweet, a web interface.  Now I will create a new database for the Portal CMS.



Cool.  From now on, package.json in my git repository will dictate how this application works.  For now, I have a cool default landing page: