> sudo apt-get install build-essential
> mkdir tmp
> sudo mount /dev/cdrom tmp
> mkdir vmware
> cd vmware
> cp -R ../tmp/ .
> cd tmp
> sudo tar xzvf VMWareTools.tar.gz
| git checkout v0.8.8 | |
| export CC=/Applications/Developer/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang | |
| export CXX=/Applications/Developer/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ | |
| sudo xcode-select -switch /Applications/Developer/Xcode.app | |
| ./configure | |
| make | |
| sudo make install | |
| node -v |
| from usermodels import * | |
| from django.utils import simplejson | |
| class JSONByIDHandler(webapp.RequestHandler): | |
| def get(self, resource=''): | |
| if resource == '': | |
| self.error(404) | |
| try: | |
| p = Picture.get_by_id(int(resource)) |
| itemAppView creates itemViews for each itemModel in itemModelList | |
| itemView has events for elements inside of view | |
| // Usage: this._epoch_DateToStr(new Date()/1000) | |
| _padTo2Digits: function (num) { | |
| return (((num < 10) ? '0' : '') + num); | |
| }, | |
| _epoch_DateToStr: function (epoch_time) { | |
| var yy, mm, dd, hr, mn, sc, ms, timecode, jstime; | |
| jstime = new Date(epoch_time*1000); |
| $ git status -s|awk '{ print $2 }'|xargs git add | |
| To reset | |
| $ git status -s|awk '{ print $2 }'|xargs git reset HEAD |
| Camera = Backbone.Model.extend({ | |
| // helper method to map functions to attributes | |
| get: function (attr) { | |
| if (typeof this[attr] == 'function') { | |
| return this[attr](); | |
| } | |
| return Backbone.Model.prototype.get.call(this, attr); | |
| }, |
| $.ajax('/g/aaa/create_account', { | |
| type: 'POST', | |
| contentType: 'application/json', | |
| data: obj, | |
| dataType: 'json', | |
| success: win, | |
| failure: fail, | |
| statusCode: { | |
| 400: function() { | |
| fail('<p>Something went wrong with your request. Please try again</p>') |
| EditUserProfileView = Backbone.View.extend({ | |
| events: { | |
| "click #userSettingsModal_save": "save_changes", | |
| "change .settings": "changed_settings" | |
| }, | |
| tmp_settings: {}, | |
| template: _.template($('#editUserProfile-template').html()), |
| var Task = function(fn) { | |
| this.fn = fn | |
| } | |
| var QueueManager = function() { | |
| var queue = []; | |
| this.add = function(task) { | |
| queue.push(task); | |
| } |