Maintain consistent coding styles between different editors and IDEs

Nowadays people are using different IDE and they are using different styles as well as format for source files. When we push to our source control it may cause conflict. There is one way to avoid that is to use EditorConfig. When you put this file to your source code, all the supported IDE or through plugin, will format the source code files with the same style you predefined in the .

Karma AngularJS httpBackend Error Unexpected request

Today I create a test class for ajax calls from Angular controller. I already setup the mock HTTP response but when I run the test still say Unexpected request After a while trying I found out that when you use the “expectGET” mock HTTP response must be the same order as when your controller request. You can open Developer mode in your browser, Network tab, see the order of the XHR request were made then change your mock HTTP response to be the same order.

Vagrant puphpet/centos65-x64 is up without dependencies installed

I was doing vagrant up with the puphpet/centos65-x64 generated from puphpet My box is fully up but none of the dependencies were installed. I try to ssh into the box and did yum install manually. There is error said the repository not found. Then I changed the repo to the working url (tried in browser) and it was working fine. Change the baseurl from to Then reload the box with provisioning

Create AngularJS app structure using Yeoman

For AngularJS beginners who don’t know how the Angular app structure should be or for the Angular Dev who want to faster create new Controller or just start an local web server for testing or don’t know how to add the Angular Unit test. Yeomanwill help. Yeoman helps you to kickstart new projects, prescribing best practices and tools to help you stay productive. Required: NodeJS, Grunt Installation Usage Generate new Controller and View Run Run Test Build

Ruby gem install or update fail because of windows locale

When trying to install or update gem got this message Found out that my Windows PC is using different locale rather than English. Fix by change the codepage to Unicode