jQuery : Select All Checkbox


Yahoo! Mail and GMail both has a checkbox on top of their email list which will “checked” all chekboxes when clicked. Previously I use plain old javascript like those in this link, I just try to use jQuery to do this, its only 5 lines

$('#selectAll').click(function(event){
    $('input[type="checkbox"]').each(function(){
        this.checked = event.target.checked;
    });
});

Android Studio Error on First Run (Windows)


After installing Android Studio on my new laptop and then running it for the first time, it throw a dialog box detailing error messages, a quick search on Google point me to this link Issue 172032: Android Studio Start failed with internal error and the “temporary solution” is simple, just edit idea.properties file located in

C:\Program Files\Android\Android Studio\bin\

then add this text

disable.android.first.run=true

and save, then try to relaunch Android Studio, it works like a charm 🙂

Note: editing idea.properties file required Administrator privileges so you maybe need to launch your editor as Administrator

Debug Rewrite Rule In Apache


Sometimes we need to test rewrite rule and log to see what happen, just put this on .htaccess file

RewriteLog /tmp/rewritelog
RewriteLogLevel 9

RewriteLog directive set the path to the log file. you can also set this directive to send log to a program. For a bit more complete information about this see here

valid values for RewriteLogLevel is 0-9

0 = no logging at all
9 = logging all possible information

see here for more complete explanation

don’t forget to turn on the RewriteEngine by putting this line

RewriteEngine on

70 Javascript Libraries You Can Choose for Your Productivity


Here are 70 Javascript Libraries I’ve found from some articles and a bit googling

  • angularjs.org
  • backbonejs.org
  • emberjs.com
  • expressjs.com
  • meteor.com
  • derbyjs.com
  • socketstream.org
  • developer.yahoo.com/cocktails/mojito/‎
  • nombo.io
  • coke-js.org
  • sleekjs.com
  • actionherojs.com
  • frisbyjs.com
  • mcavage.github.io/node-restify
  • percolatorjs.com
  • strongloop.com/mobile-application-development/loopback/
  • spumko.github.io (hapi)
  • flatironjs.org
  • locomotivejs.org
  • compoundjs.com
  • geddyjs.org
  • sailsjs.org
  • threejs.org
  • raphaeljs.com
  • processingjs.org
  • d3js.org
  • kineticjs.com
  • createjs.com
  • handlebarsjs.com
  • mustache.github.io
  • jasmine.github.io
  • qunitjs.com
  • unitjs.com
  • knockoutjs.com
  • microscopejs.com
  • krakenjs.com
  • underscorejs.org
  • totaljs.com
  • spinejs.com
  • tupaijs.com
  • trintejs.com
  • getlavaca.com
  • mozart.io
  • agilityjs.com
  • puremvc.org
  • docpad.org
  • towerjs.org
  • agilityjs.com
  • hcanjs.com
  • sammyjs.org
  • snackjs.com
  • serenadejs.org
  • feathersjs.com
  • rappidjs.com
  • amplifyjs.com
  • blacksmith.jit.su
  • moot.it/riotjs/‎
  • github.com/robtweed/ewdGateway2
  • github.com/jnordberg/wintersmith
  • github.com/felixge/node-romulus
  • github.com/caolan/petrify
  • github.com/tshemsedinov/impress
  • github.com/airbnb/rendr
  • github.com/mklabs/backnode
  • hay.github.io/stapes/
  • britesnow.com/brite‎/
  • senchalabs.org/connect/
  • peter.michaux.ca/maria/‎
  • mochi.github.io/mochikit/
  • somajs.github.io/somajs/