Skip to content

Instantly share code, notes, and snippets.

View johnhamelink's full-sized avatar
🔨
Building

John Hamelink johnhamelink

🔨
Building
View GitHub Profile
@johnhamelink
johnhamelink / appcelerator "run on device" error
Created November 13, 2010 20:23
when I click "install" under run on device I get this.
Install Error
/opt/android-sdk-linux_x86/tools/apkbuilder
THIS TOOL IS DEPRECATED. See --help for more information.
/home/john/lumberjack/build/android/bin/classes.dex does not exist
[ERROR] /opt/android-sdk-linux_x86/tools/zipalign Unable to open '/home/john/lumberjack/build/android/bin/app.apk' as zip archive
[DEBUG] jarsigner -storepass tirocks -keystore /opt/titanium/mobilesdk/linux/1.4.0/android/dev_keystore -signedjar /home/john/lumberjack/build/android/bin/app.apk /home/john/lumberjack/build/android/bin/app-unsigned.apk tidev
[DEBUG] /opt/android-sdk-linux_x86/tools/zipalign -v 4 /home/john/lumberjack/build/android/bin/app.apk /home/john/lumberjack/build/android/bin/app.apkz
System Error while compiling Android classes.dex
@johnhamelink
johnhamelink / Errors from launching android emulator within appcelerator
Created November 13, 2010 20:24
Errors from launching android emulator within appcelerator
[INFO] Launching Android emulator...one moment
[DEBUG] From: /opt/android-sdk-linux_x86/tools/emulator
[DEBUG] SDCard: /home/john/.titanium/android2.sdcard
[DEBUG] AVD ID: 4
[DEBUG] AVD Skin: WVGA800
[DEBUG] SDK: /opt/android-sdk-linux_x86
[DEBUG] /opt/android-sdk-linux_x86/tools/emulator -avd titanium_4_WVGA800 -port 5560 -sdcard /home/john/.titanium/android2.sdcard -logcat '*:d *' -no-boot-anim -partition-size 128
[INFO] Building lumberjack for Android ... one moment
[DEBUG] Waiting for device to be ready ...
[DEBUG] Device connected... (waited 30 seconds)
@johnhamelink
johnhamelink / bootstrap.js
Created May 7, 2011 17:30 — forked from kof/bootstrap.js
bootstrap file for mongoose models
var fs = require('fs'),
m = require('mongoose');
fs.readdirSync(__dirname).forEach(function(filename) {
var schemaName = filename.replace(/\.js$/, ''),
Schema = require('./' + schemaName);
m.model(schemaName, Schema);
});
var Pastebin = new m.Schema({
_parent: {type: String},
title: {type: String, required: true, index: {unique: true} },
raw: {type: String, required: true},
formatted: String
});
module.exports = Pastebin;
var fs = require('fs'),
m = require('mongoose');
fs.readdirSync(__dirname).forEach(function(filename) {
var schemaName = filename.replace(/\.js$/, ''),
Schema = require('./' + schemaName);
module.exports[schemaName] = m.model(schemaName, Schema);
});
:!jslint '/Users/john/Desktop/fitbug/www/ui/app/views/Login/ForgotView.js' &> /var/folders/59/0fb7vzzs5z5drngw5nwtpn140000gn/T/vkd
42sC/52
[No write since last change]
/bin/bash: /var/folders/59/0fb7vzzs5z5drngw5nwtpn140000gn/T/vkd42sC/52: No such file or directory
➜ db /Users/john/.rvm/bin/rake
/Users/john/.rvm/bin/rake: fork: Resource temporarily unavailable
➜ db
➜ db rvm --version
rvm 1.10.0 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
➜ db
Install of ruby-1.8.7-p352 - #complete
➜ konto rake db:migrate
ERRRO: Gem rake is not installed, run `gem install rake` first.
➜ konto gem install rake
Successfully installed rake-0.9.2.2
1 gem installed
Installing ri documentation for rake-0.9.2.2...
Installing RDoc documentation for rake-0.9.2.2...
➜ konto rake db:migrate
ERRRO: Gem rake is not installed, run `gem install rake` first.
(SELECT * FROM topics WHERE ( id='$id' AND user_id='$userId')) OR (INSERT INTO topics ('id','userId','name') VALUES ('$id','$userId','$name'))