Thursday, December 26, 2013

bower returns EMALFORMED

It turns out that in bower.json file, there is no // comments. It is true as JSON doesn't allow comments.

Suppose you are using JSON to keep configuration files, which you would like to annotate. Go ahead and insert all the comments you like. Then pipe it through JSMin before handing it to your JSON parser.

or check out http://stackoverflow.com/questions/244777/can-i-comment-a-json-file

Saturday, December 21, 2013

Christmas Light Tour

Some great light houses I visited this year:

2056 Cirone Wy, San Jose, CA

1135 McBain Ave, Campbell, CA

1785 Patio Dr, San Jose, CA

1851 Cherry Ave, San Jose, CA

Minnesota Ave @37.301680, -121.901360

Camino Ramon @37.307483, -121.909806

Glen Eyrie Ave

2014 I found new list from google.com

1086 Glen Brook Ave
1257 Britton Ave
1140 Newport Ave
Cherry Ave & Pine Ave
1851 Cherry Ave, San Jose, CA

1182 Laurie Ave
1062 Byerley Ave
1240 Madrona Ave

2160 Newport Ave
1638 Mulberry Ln

1900 Campbell Ave - light
1135 McBain Ave - Holiday Train display

2056 Cirone Wy, San Jose, CA
1785 Patio Dr, San Jose, CA

Friday, December 20, 2013

Takeaways from dailyjs survey

  1. Javascript is everywhere (browser, server, native, mobile)
  2. Javascript has pre-compilable languages (Coffeescript, Typescript, ClojureScript)
  3. Javascript needs code conventions 
  4. Javascript needs unit test (QUnit, Jasmine, Karma, Mocha, NodeUnit, tape)
  5. Javascript needs continuous integration (Jenkins, Tarvis CI, Hudson, TeamCity)
  6. Javascript needs static code analysis (JShint, JSLint)
  7. Javascript needs dependency management (AMD/requirejs, CommonJS, Browserify)
  8. Javascript needs build (Grunt, Browserify, NPM scripts)
  9. Javascript has many frameworks (AngularJS, Backbone, Knockout, Ember, Meteor, KendoUI)
  10. Javascript has versions (ES5, ES6) 

Tuesday, December 3, 2013

Remote working tools from customer.io

How we collaborate when working remote

  • Google Hangout - for daily standup and face to face conversations.
  • Campfire - for persistent chat throughout the day
  • Screenhero - for screensharing / working on code together
  • Balsamiq - Planning UI to build
  • Asana - Managing tasks
  • Google Docs - Communicating in longer written docs / stats in spreadsheet form
  • Email - Everything else
http://iamnotaprogrammer.com/Remote-teams.html

Monday, December 2, 2013

Javascript memory leak

Here are some links talking about Javascript memory leak.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management
http://javascript.info/tutorial/memory-leaks
http://stackoverflow.com/questions/12772822/javascript-memory-usage-management
http://www.javascriptkit.com/javatutors/closuresleak/index3.shtml

http://dmitrysoshnikov.com/ecmascript/es5-chapter-3-1-lexical-environments-common-theory/#static-lexical-scope