I simply have to recommend this, the book Harry Potter and the Method of Rationality. Words cannot describe the joy and sorrow it brings me.
Author Archives: lucia
Learning by Doing: The Real Path Down AngularJS
This is the third and last part in the Guide to Self-teaching AngularJS Trilogy. If you haven’t gone through the first one, do it now, here. If you’ve already covered the first two, nice job on the hard work!
Read on.
Performance Issue with Leaflet GeoJSON
It’s fine performing while data is not large. However with data as huge as all countries’ boundaries, GeoJSON freaks out and blocks the whole page.
When gettextCatalog.loadRemote(url); is Done
How do I know it’s done?
function broadcastUpdated() { $rootScope.$broadcast('gettextLanguageChanged'); }
There’s this in the source code so listen to the event.
Emacs with Scheme on Mac OS X
Step 1: Install MIT Scheme.
Step 2: Grab GNU Emacs and Get Scheme REPL to run in Emacs. Pay attention to your specific Scheme app path with the latter setup.
Step 3: Configure autocomplete. As of 2015, link to the latest version should be http://cx4a.org/pub/auto-complete/auto-complete-1.3.1.tar.bz2
.
AngularJS Animation Doesn’t Work?
Angular components rule number one: use the same version of them.
Especially with things like angular-animate, specify the exact same version in bower before installing, or bower might take liberties in deciding the weirdest combination of versions.
Reference: $state.go() with Parameter
To go to this state with a bookName
parameter:
state('book.name', { url: '/books/:bookName', ... })
Reference: Retrieve the Filtered Array in Angular
ng-repeat=”product in data.activeProducts = (productList | filter: {brand_id: searchedId})”
Pay attention to the data.activeProduct part. Since ng-repeat creates another scope, if you want to use the filtered list outside of ng-repeat, append it to an outside object.