By default MongoDB uses /data/db as it’s location for databases. You need to create this dir and then chown it to the user running mongod. For example:
sudo chown username /data/db
More info here.
Articles, notes and random thoughts on Software Development and Technology
By default MongoDB uses /data/db as it’s location for databases. You need to create this dir and then chown it to the user running mongod. For example:
sudo chown username /data/db
More info here.
Random notes from following through the AngularJS tutorial here.
My first time (several months back) working through part of the tutorial I struggled getting node.js up and running on Windows. Useful thread and comments on this post here.
Installing on Mac OS X, no problems.
(not intended to be a comprehensive set of steps, just mainly for myself to backtrack and see what I’ve done so far in the tutorial)
Install git (already have)
Clone the tutorial source project:
git clone --depth=14 https://github.com/angular/angular-phonecat.git
Download and install node.js from here.
npm install – install the development tools.Note: the tutorial is not specific where you run this, but you must run this inside the clones angular-phonecat dir.
Useful scripts setup with the tutorial project:
npm start
: start a local development web-servernpm test
: start the Karma unit test runnernpm run update-webdriver
: install the drivers needed by Protractor (run this once, and first before running Protractor)npm run protractor
: run the Protractor end to end (E2E) testsInteresting note: no issue with the default config on Mac OS X and running the dev server on port 8000. This was an issue on my Windows machine and needed to change the default port to something other than 8000.
All the other scripts ran first time for me, but protractor would not start, giving an error about ELIFECYCLE. Seems similar to this issue. I ran these to steps:
npm update
npm run update-webdriver
but then the error changed to something more verbose, about couldn’t find an .exe file:
util.puts: Use console.log instead
Using ChromeDriver directly...
[launcher] Error: Could not find chromedriver at /Users/kev/angularjs/angular-phonecat/node_modules/protractor/selenium/chromedriver.exe
A quick Google found this issue, and the steps described by jpaljasma fixed the issue:
npm install
and npm run update-webdriver
Now the e2e tests supplied with the project run as expected.
In a move surely aiming to ensure no-one has a reason to cling on to their ‘old’ version of Windows (XP users, thinking of you, but unfortunately you’re out of luck for this upgrade), Microsoft will give free upgrades to Windows 10 this summer, for all 7 and 8.x users.
Early 80s in the UK was prime time for the 8bit home computer games industry. I posted a few links of some interesting computer history documentaries on YouTube a while back, including the TV Drama ‘MicroMen’ which covered the rivalry between Clive Sinclair and Chris Curry at the time.
Here’s a couple more: