This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: boot2docker-vm | |
Groups: / | |
Guest OS: Linux 2.6 / 3.x (64 bit) | |
UUID: bc98eef8-e6ed-44c9-bc6f-5cbd59430c73 | |
Config file: /Users/clemens/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox | |
Snapshot folder: /Users/clemens/VirtualBox VMs/boot2docker-vm/Snapshots | |
Log folder: /Users/clemens/VirtualBox VMs/boot2docker-vm/Logs | |
Hardware UUID: bc98eef8-e6ed-44c9-bc6f-5cbd59430c73 | |
Memory size: 1024MB | |
Page Fusion: off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printf '\e[1;34m%b\e[m' "\nUpdating the system...\n" | |
apt-get -y -qq update | |
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade | |
NEW_USER=${1:-admin} | |
SSH_PORT=${2} | |
if [ ! -d /home/${NEW_USER} ]; then | |
printf '\e[1;34m%b\e[m' "\nCreating user '$NEW_USER'...\n" | |
adduser --gecos "" $NEW_USER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info: Creating snapshot 0.8.0-7 | |
info Uploading: [=============================] 100% | |
info: Updating app print-io.de | |
info: Activating snapshot 0.8.0-7 for print-io.de | |
info: Starting app print-io.de | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: | |
error: There was an error while attempting to start the app | |
error: Error spawning drone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the function: | |
Helpers.prototype.round = function (num, decimals) { | |
decimals = decimals || this.precision | |
return Math.round( num * Math.pow(10, decimals) ) / Math.pow(10, decimals) | |
} | |
// snippet of the --trace-deopt output | |
**** DEOPT: Helpers.round at bailout #9, address 0x0, frame size 8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"hasThumbnail": true, | |
"result": { | |
"solidTone": { | |
"blk": { | |
"name": "Black", | |
"actDens-dE": [ | |
[ | |
1.698, | |
3.684 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get('/users', function(req, res){ | |
if (req.xhr) { | |
// respond with the each user in the collection | |
// passed to the "user" view | |
res.partial('user', users); | |
} else { | |
// respond with layout, and users page | |
// which internally does partial('user', users) | |
// along with other UI | |
res.render('users', { users: users }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this is a very simplified version of what's going on in my app | |
// First I parse some CSV file (into valid JSON) | |
parseFile(myfile, function(err, fileJSON) { | |
if(err) { | |
throw err; | |
} else { | |
// db is the connection to my couch server | |
db.save(fileJSON, function(err, response) { |
NewerOlder