Skip to content

Instantly share code, notes, and snippets.

@aconbere
aconbere / gist:910748
Created April 8, 2011 21:08
the callee of EscapeThread
public EscapeView(Context context, AttributeSet attrs) {
super(context, attrs);
this.context = context;
SurfaceHolder holder = getHolder();
holder.addCallback(this);
this.thread = new EscapeThread(holder, context);
}
@Override
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
@aconbere
aconbere / gist:910742
Created April 8, 2011 21:05
setRunning symbol not found
class EscapeThread extends Thread {
public SurfaceHolder surfaceHolder;
public Context context;
private boolean running;
public EscapeThread(SurfaceHolder holder, Context cont) {
this.surfaceHolder = holder;
this.context = cont;
this.running = false;
}
mixin = function (target, mixin, recurse) {
// Create an instance if we get a constructor
var m;
if (typeof mixin == 'function') {
m = new mixin();
}
else {
m = mixin;
}
var baseObj = {};
2 0 1 0 0 0 0 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 3 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 3 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 3 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 3 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 3 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 2 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 2 0 0 0 0 0 3 0 1 0 0 0 0 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 0 2 0 0 0 0 0 4 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 2 0 2
int main(int argc, char *argv[]) {
int w;
int h;
int n;
int i;
int* array;
/* width and height are the first two integers on the stream */
scanf("%d", &w);
scanf("%d", &h);
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int main(int argc, char *argv[]) {
int w;
int h;
int n;
int i;
opae:(master) node aconbere$ openssl s_server -accept 12351 -cert /home/aconbere/Projects/javascript/node/test/fixtures/agent.crt -key /home/aconbere/Projects/javascript/node/test/fixtures/agent.key
Using default temp DH parameters
Using default temp ECDH parameters
ACCEPT
++++++++++++++++++
opae:(master) node aconbere$ openssl s_server -accept 12351 -cert /home/aconbere/Projects/javascript/node/test/fixtures/agent.crt -key /home/aconbere/Projects/javascript/node/test/fixtures/agent.key > blah.txt
^C
opae:(master) node aconbere$ cat blah.txt
opae:(master) node aconbere$ NODE_DEBUG=7 ./build/debug/node_g ./test/simple/test-securepair-client.js
load "/home/aconbere/Projects/javascript/node/test/simple/test-securepair-client.js" for module "."
loadModule REQUEST ../common parent: .
RELATIVE: requested:../common set ID to: ../common from .
looking for "../common" in ["/home/aconbere/Projects/javascript/node/test/simple"]
load "/home/aconbere/Projects/javascript/node/test/common.js" for module "../common"
loadModule REQUEST path parent: ../common
load native module path
loadModule REQUEST assert parent: ../common
load native module assert
opae:(master) node aconbere$ NODE_DEBUG=7 ./build/debug/node_g ./test/simple/test-securepair-client.js
load "/home/aconbere/Projects/javascript/node/test/simple/test-securepair-client.js" for module "."
loadModule REQUEST ../common parent: .
RELATIVE: requested:../common set ID to: ../common from .
looking for "../common" in ["/home/aconbere/Projects/javascript/node/test/simple"]
load "/home/aconbere/Projects/javascript/node/test/common.js" for module "../common"
loadModule REQUEST path parent: ../common
load native module path
loadModule REQUEST assert parent: ../common
load native module assert
opae:(master) node aconbereopenssl s_server -accept 12351 -cert /home/aconbere/Projects/javascript/node/test/fixtures/agent.crt -key /home/aconbere/Projects/javascript/node/test/fixtures/agent.key
Using default temp DH parameters
Using default temp ECDH parameters
ACCEPT