sudogem.wordpress.com
Mongoose: CastError: Cast to ObjectId failed for value \”583fe2c488cf652d4c6b45d1\” at path \”_id\” for model User | sudo gem*
https://sudogem.wordpress.com/2017/01/10/mongoose-casterror-cast-to-objectid-failed-for-value-583fe2c488cf652d4c6b45d1-at-path-_id-for-model-user
Technical notes by Arman Ortega (CEBU PH). Mongoose: CastError: Cast to ObjectId failed for value ”583fe2c488cf652d4c6b45d1 ” at path ” id ” for model User. Asymp; 1 Comment. Recently I encountered this mongoose error CastError: Cast to ObjectId failed for value ”583fe2c488cf652d4c6b45d1 ” at path. 8221; id ” for model User. In the script, I simply pass the documentId as a string! UserfindOne({‘ id’: docId}).exec()…. So I run a command npm list –depth=0. To check the mongodb and mongoose version. Load ba...
sudogem.wordpress.com
Git: How to create a pull request | sudo gem*
https://sudogem.wordpress.com/2016/12/07/git-how-to-create-a-pull-request
Technical notes by Arman Ortega (CEBU PH). Git: How to create a pull request. Asymp; Leave a comment. Steps on creating a Pull request into the master branch. 1 git checkout -b {branchName}. 2 git commit -am ‘your message here’. 3 git push origin {branchName}. How to update your local branch. Git fetch origin {branchName} git rebase origin/{branchName} Example: $ git fetch origin task/userlogin $ git rebase origin/task/userlogin. Larr; Previous post. Next post →. Leave a Reply Cancel reply. Mongoose: Cas...
sudogem.wordpress.com
Adding ESLint with gulp.js for React.JS | sudo gem*
https://sudogem.wordpress.com/2016/11/06/adding-eslint-with-gulp-js-for-react-js
Technical notes by Arman Ortega (CEBU PH). Adding ESLint with gulp.js for React.JS. Asymp; Leave a comment. Npm install babel-eslint - save-dev $ npm install gulp - save $ npm install gulp-eslint - save. Gulpfile.js will contains like this:. If you encountered an error Parsing error: The keyword ‘import’ is reserved. Then you need to install babel-eslint package. Npm install –save-dev babel-eslint. Larr; Previous post. Next post →. Leave a Reply Cancel reply. Enter your comment here. You are commenting u...
sudogem.wordpress.com
Related sites and tutorials | sudo gem*
https://sudogem.wordpress.com/2016/11/11/related-sites-and-tutorials
Technical notes by Arman Ortega (CEBU PH). Related sites and tutorials. Asymp; Leave a comment. Larr; Previous post. Next post →. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your WordPress.com account. ( Log Out. You are commenting using your Twitter account. ( Log Out. You are commenting using your Facebook account. ( Log Out. You are commenting using your Google account. ( Log Out.
sudogem.wordpress.com
Ubuntu Commands | sudo gem*
https://sudogem.wordpress.com/2016/09/30/ubuntu-commands
Technical notes by Arman Ortega (CEBU PH). Asymp; Leave a comment. How to preview video or image thumbnails in Ubuntu? Sudo apt-get install ffmpegthumbnailer. It works also in Ubuntu Mate. Larr; Previous post. Next post →. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your WordPress.com account. ( Log Out. You are commenting using your Twitter account. ( Log Out. Nodejs – npm ERR! How to de...
sudogem.wordpress.com
Mongoose: TypeError: hex is not a function | sudo gem*
https://sudogem.wordpress.com/2017/01/10/mongoose-typeerror-hex-is-not-a-function
Technical notes by Arman Ortega (CEBU PH). Mongoose: TypeError: hex is not a function. Asymp; 1 Comment. If ever you’ve encounter an error that says ”. TypeError: hex is not a function. At Function.from (native). At Function.from (native). At new ObjectID (C: MyblogApp node modules mongodb node modules mongodb-core node modules bson lib bson objectid.js:52:32). At C: MyblogApp models mongodb blogs.js:478:26″. And in your Line 478(blogs.js), you use the ObjectId method. Var docId = new ObjectId(id);.
sudogem.wordpress.com
sudogem | sudo gem*
https://sudogem.wordpress.com/author/sudogem
Technical notes by Arman Ortega (CEBU PH). Load balancing configuration (round robin) haproxy.cfg. Asymp; Leave a comment. Nodejs – npm ERR! Error: EACCES: permission denied, mkdir ‘/home/artheman/.npm. Asymp; Leave a comment. I cannot install a semantic-ui using npm. When I encounter an error like this usually the solution is using a sudo command. Please don’t ever use npm with sudo (eg: sudo npm install semantic-ui) because it will make a headache for you. Linux 3.19.0-82-generic npm ERR! First, check ...
sudogem.wordpress.com
Docker cheat sheet | sudo gem*
https://sudogem.wordpress.com/2016/08/14/docker-cheat-sheet
Technical notes by Arman Ortega (CEBU PH). Asymp; Leave a comment. To show Container information like IP adress. To show log of a Container. To delete a Container. To show running process in a Container. To show all images. To show running Container. Docker ps -a # With -a option, it shows running and stopped Containers. To start/stop/restart a Container. Docker start stop restart {containerId/name} e.g. docker start cloudant-developer. How to ssh into the running docker container. Larr; Previous post.
SOCIAL ENGAGEMENT