Unable to run Java GUI programs with Ubuntu

Ubuntu has the option to install a headless Java — this means without graphics libraries. This wasn’t always the case, but I encountered this while trying to run a Java text editor on 10.10 the other day. Run the following command to install a JDK that has these libraries: sudo apt-get install openjdk-6-jdk EDIT: Actually, … Read more

How to debug angular [$injector:modulerr] errors

Just to illustrate. This is what you get when you load minified version of Angular (angular.min.js): Error: $injector:modulerr Module Error Failed to instantiate module eduApp due to: Error: [$injector:modulerr] http://errors.angularjs.org/1.4.7/$injector/modulerr?p0=e…) at Error (native) at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js:6:416 at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js:38:184 at m (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js:7:322) at h (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js:37:275) at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js:37:444 at m (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js:7:322) at h (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js:37:275) at fb (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js:41:35) at … Read more

It says that TypeError: document.getElementById(…) is null [duplicate]

Make sure the script is placed in the bottom of the BODY element of the document you’re trying to manipulate, not in the HEAD element or placed before any of the elements you want to “get”. It does not matter if you import the script or if it’s inline, the important thing is the placing. … Read more