On Gulp

– Starting up: $ npm install –global gulp $ npm install –save gulp – Create a gulpfile.js on your root directory, sample content: var gulp = require(‘gulp’); gulp.task(‘welcome’, function () {   console.log(‘gulp is working!’); }); – run your gulp functions / commands: $ gulp welcome note: some linux installations refer to nodejs as “node” internally. […]

Weinre: troubleshoot mobile and remote apps

1) Install it if you haven’t yet: $npm install weinre -g 2) run it: $ weinre -boundHost [your ip address here or localhost] 3) Put the following reference in the page you are trying to troubleshoot: <script src=”http//[the ip address you entered]:8080/target/target-script.js#anonymous”></script> 4) Point your browser to the ip address you entered, that will give […]

Web Developer Tools: MAMP

The error log is at: /Applications/MAMP/logs/php_error.log To avoid SQL using the wrong time, add –default-time-zone=’+00:00′ to the following file: /Applications/MAMP/bin/startMysql.sh To log all the queries that hit the database: Login all the queries that hit your mysql database: if you are running MAMP, edit /Applications/MAMP/bin/startMysql.sh and put this in the command line –log=/Applications/MAMP/logs/mysql_query_log

Useful websites / apps and tools for troubleshooting and other stuff I keep forgetting about

weinre: amazing ipad debugging tool, firebug style. Adobe has gotten into this business as well: http://labs.adobe.com/technologies/shadow/ Also, I haven’t tried this one, but it may be a good alternative: http://jsconsole.com/ http://www.whatismybrowser.com/ Quick and dirty what browser / operative system you are using. Useful for customers to tell you exactly what browser they are using. Tower: git […]