I hereby claim:
- I am filmaj on github.
- I am filmaj (https://keybase.io/filmaj) on keybase.
- I have a public key whose fingerprint is 3600 E054 B3A2 3E96 0157 ECAF B32E FE4B 7A6D 0016
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/** | |
* The MIT License | |
* ------------------------------------------------------------- | |
* Copyright (c) 2008, Rob Ellis, Brock Whitten, Brian Leroux, Joe Bowser, Dave Johnson, Nitobi | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
9:30 - 10:30 ... intro thing (setting up, compiling, git, emulators, debugging, testing, security)
Brian
10:30 - 10:45 ... break
10:45 - 12:30 ... tutorial thing
Fil. Run through building tutorial app on desktop (firefox/chrome/firebug/webinspector). Deploy to Android emulator, then device. Run through porting to BlackBerry - what needs to be done, what to watch out for.
Brian. Deploy to iPhone sim / iPad.
12:30 - 1:30 ... lunch
function PoorMansGloveBox(element) { | |
this.element = element; | |
this.parentHeight = this.element.parentNode.clientHeight; | |
this.element.style.position = 'relative'; | |
this.element.style.top = '0px'; | |
this.lastPos = 0; | |
this.currentPos = 0; | |
var self = this; | |
this.element.addEventListener('touchstart', function(e){ | |
self.lastPos = e.touches[0].pageY; |
var chain = function(tests, delay) { | |
if (typeof tests == 'object') { | |
if (tests.length > 0) { | |
if (typeof delay != 'undefined') { | |
setTimeout(function() { | |
tests.shift()(); | |
chain(tests, delay); | |
}, delay); | |
} else { | |
return function() { |
String.prototype.format = function(){ | |
var args = arguments; | |
obj = (args.length == 1 && (typeof args[0] == 'object')) ? args[0] : args; | |
return this.replace(/\{(\w+)\}/g, function(m, i){ | |
return obj[i]; | |
}); | |
} | |
// Example usage: |
Fil-Majs-MacBook-Pro:blazd filmaj$ jitsu apps deploy | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command apps deploy | |
info: Authenticated as filmaj | |
info: Analyzing your application dependencies in app.js | |
warn: Local version appears to be old. | |
warn: Your package.json version will be incremented for you automatically. | |
warn: About to write /Users/filmaj/src/blazd/package.json | |
data: |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name=viewport content=width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no> | |
</head> | |
<body> | |
<h1>Cordova how fast are you?</h1> | |
<script src="cordova-1.9.0rc1.js"></script> |
<html> | |
<head> | |
<script type="text/javascript" src="phonegap.js"></script> | |
<script type="text/javascript" src="mysqliteplugin.js"></script> | |
<script type="text/javascript"> | |
var db; // this is now globally-scoped | |
document.addEventListener('deviceready', function() { | |
db = new sqliteplugin(); // assigns to the db variable above | |
}); | |
</script> |
07-18 14:21:39.333: WARN/System.err(1256): java.net.SocketException: Permission denied | |
07-18 14:21:39.333: WARN/System.err(1256): at org.apache.harmony.luni.platform.OSNetworkSystem.createServerStreamSocketImpl(Native Method) | |
07-18 14:21:39.353: WARN/System.err(1256): at org.apache.harmony.luni.platform.OSNetworkSystem.createServerStreamSocket(OSNetworkSystem.java:170) | |
07-18 14:21:39.353: WARN/System.err(1256): at org.apache.harmony.luni.net.PlainServerSocketImpl.create(PlainServerSocketImpl.java:45) | |
07-18 14:21:39.363: WARN/System.err(1256): at java.net.ServerSocket.<init>(ServerSocket.java:135) | |
07-18 14:21:39.363: WARN/System.err(1256): at java.net.ServerSocket.<init>(ServerSocket.java:89) | |
07-18 14:21:39.363: WARN/System.err(1256): at org.apache.cordova.CallbackServer.run(CallbackServer.java:205) | |
07-18 14:21:39.363: WARN/System.err(1256): at java.lang.Thread.run(Thread.java:1096) |