-
Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.
-
Reset PS3 controller by inserting paperclip into pinhole near L2 button.
-
Connect PS3 controller to Mac with USB cable.
-
Enable Bluetooth.
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.
| /* | |
| * queue.js allow you to run async callbacks in serial. | |
| */ | |
| var Queue = { | |
| callbacks: [], | |
| idle: true, | |
| // Queue.add(function() {}); | |
| // Used to add a new function to the callback queue |
| Template.assetUpload.events( | |
| 'drop #asset-upload-dropzone': (e) -> | |
| e.stop() | |
| $(e.target).removeClass 'dropzone-hover' | |
| new AssetUpload(e) | |
| 'dragenter #asset-upload-dropzone': (e) -> | |
| e.stop() | |
| $(e.target).addClass 'dropzone-hover' |
| #copy your ssh key to root@raspberrypi | |
| ssh root@raspberrypi.local 'aptitude install screen' | |
| ssh root@raspberrypi.local 'screen -d -m -S clone' | |
| ssh root@raspberrypi.local 'echo u > /proc/sysrq-trigger' | |
| ssh root@raspberrypi.local 'screen -x clone' | |
| dd if=/dev/mmcblk0 bs=1M of=/dev/sda count=4K | |
| #for the first 4GB | |
| #detach with "CRTL-a d" |
Hi, all.
Encouraged by my successful experiment with a Node.js view server, I am now working on a branch, nodejs_couchdb, with the following properties:
- Remove couchjs from the project
- Remove dependency on SpiderMonkey, libjs, 1.8.whatever...all that is gone
- Remove dependency on libcurl
- (Thus, simplified autoconf version dependency Hell)
Phase 1: Dependency on a "couchjs" executable which you install via npm install couchjs
| var SomeModelClass = Backbone.Model.extend({ | |
| idAttribute: "_id", | |
| url: function() { | |
| if (_.has(this, 'id')) { | |
| var url = (_.has(this.toJSON(), '_rev')) | |
| ? this.server + '/' + this.db + '/' + this.id + '?rev=' + this.get('_rev') // For UPDATE and DELETE | |
| : this.server + '/' + this.db + '/' + this.id // For READ | |
| } |
| <script id="modal-view-template" type="text/html"> | |
| <div class="modal-dialog"> | |
| <div class="modal-content"> | |
| <div class="modal-header"> | |
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| <h4 class="modal-title" id="myModalLabel">Modal title</h4> | |
| </div> | |
| <div class="modal-body"> | |
| ... | |
| </div> |
This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!
A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.
Here are the steps: