sudo vi /private/etc/hosts add 127…. /the/new/files/to/serve In Lion, you can create your own (user based) apache settings at: [your apache directory]/users/[yourusername].conf
Monthly Archives: May 2012
Sass: the superduper guide
Installing in Mac: gem install sass comments: use /* */ for anything that will appear on the compiled file, and // for things that only show on the sass development files When compiling, you can specify if you want your file compacted: sass yourfile.scss ../css/yourfile.css –style compressed Other styles: nested, compact, expanded One of the […]
Java: set JAVA_HOME env variable in mac os lion
cd That will take you to your home directory vi .bash_profile And include: export JAVA_HOME=/Library/Java/Home Now every time a shell is open, you wil have that set
CSS: Utilities
/* _____ UTILITIES _____ */ .oldSchool{width:750px;} .gs960{width:960px;} .liquid{width:auto;margin:0;} .sidebar{width: 300px} .clear{clear:both;}/* Layouts */ .line:after,.lastUnit:after{clear:both;display:block;visibility:hidden;overflow:hidden;height:0 !important;line-height:0;font-size:xx-large;content:” x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x […]
SSH: Setting up a public / private key
Your sys admin should set you up, but here’s the nutshell showdown: run ‘ssh-keygen’ in your home directory You will be prompted for a couple of options, for enhancement security, but optional. A .ssh directory will be created containing your public and private keys. Send the .pub file generated to your sys admin to complete […]
SVN cheatsheet
svn status // Tells you what has changed svn add file_or_dir_name // Add files to codebase svn delete file_or_dir_name // Remove them svn commit -m “Saving recent changes” // Commit your changes svn update // Update your local files, from the folder where you run this one down svn resolve filename –accept working // You […]
Backbone.js common problems
http://readystate4.com/2011/10/22/common-backbone-errors-and-what-they-mean/
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
Statistics: websites / tools with / for statistics
Email clients breakdown: http://www.campaignmonitor.com/stats/email-clients/ Browser statistics: http://gs.statcounter.com/