Recipes: how to listen to DOM insertions

The technique described here (more details in there): It basically involves putting a CSS animation to the elements that will be attached in the future. When they get inserted, they run the animation, and when the animation finish running, it throws an “animationstarts” event. The last part involves attaching a listener to the parent […]

Nodejs in Heroku: the super duper installation guide

1) Install node.js 2) Install express framework: $ sudo npm install -g express@2.5.8 Note: if you get an error message at this point, complaining about some “Karma” package. Run the following $ npm uninstall -g generator-karma && npm install -g generator-angular 3) Create your application: $ express my_app $ cd my_app && npm install 4) Login […]

HTML5: Form fields

New attributes: autofocus=”autofocus” required=”required” oninput=”updateMessage(this)” /* You can run custom JS on input */ autocomplete=”on”  // Remembers what the users enter in the field before, and makes it available for autofill. If you want to create your own list of autofill values: Choose an animal: <input type=”text” name=”animal” list=”animals” /><br /> <datalist id=”animals”> <option value=”Moneky”> […]

Agile: the basics

  Core values: Individuals and interactions over processes and tools Working software over comprehensive documentation Customer collaboration over contract negociation Respond to change over following a plan. Notice the word “over”, not “instead of” At its core: 1) Plan and release small iterations. 2) At the end of each iteration cycle, there should be a […]