Skip to content

Instantly share code, notes, and snippets.

View williamsjj's full-sized avatar

Jason J. W. Williams williamsjj

View GitHub Profile
2010-10-01 18:57:13-0600 [Proxy,0,127.0.0.1] Unhandled Error
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/Twisted-10.1.0-py2.6-macosx-10.6-universal.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/Library/Python/2.6/site-packages/Twisted-10.1.0-py2.6-macosx-10.6-universal.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/Library/Python/2.6/site-packages/Twisted-10.1.0-py2.6-macosx-10.6-universal.egg/twisted/python/context.py", line 59, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/Library/Python/2.6/site-packages/Twisted-10.1.0-py2.6-macosx-10.6-universal.egg/twisted/python/context.py", line 37, in callWithContext
return func(*args,**kw)
def main():
def inner1():
global domain_name
domain_name = "hi"
inner2()
def inner2():
print domain_name
Phantome:NewApplication $ sudo tusk catalog
Password:
js: "/usr/local/narwhal/packages/tusk/lib/tusk.js", line 63: uncaught JavaScript runtime exception: TypeError: Cannot read property "0" from undefined
at /usr/local/narwhal/packages/tusk/lib/tusk.js:63
at /usr/local/narwhal/packages/tusk/lib/tusk.js:71
at /usr/local/narwhal/packages/tusk/lib/tusk.js:81
at /usr/local/narwhal/packages/tusk/lib/tusk/commands/catalog.js:14
at /usr/local/narwhal/packages/narwhal-lib/lib/narwhal/args.js:194
at /usr/local/narwhal/packages/narwhal-lib/lib/narwhal/args.js:605
at /usr/local/narwhal/packages/tusk/lib/tusk.js:174
forgotPasswordButtonView: SC.ButtonView.design({
layout: {top: 177, width: 60, height: 30},
icon: "sc-icon-help-24",
titleMinWidth: 0,
})
#!/usr/bin/python
import multiprocessing as mp
import riak, os, time, uuid
DB = "perf_test"
WORKERS = 20
WORK_ATTEMPTS = 20
#!/usr/bin/python
import multiprocessing as mp
import couchdb, os, time, uuid
URL = "http://localhost:5984"
DB = "perf_test"
WORKERS = 20
WORK_ATTEMPTS = 20
#!/usr/bin/python
import multiprocessing as mp
import redis, os, time, uuid
WORKERS = 20
WORK_ATTEMPTS = 20
total_doc_list = []
def bindToDB(self, dbName):
"""
Bind all operations asking for a DB name to the given DB.
"""
for methname in ["createDB", "deleteDB", "infoDB", "listDoc",
"openDoc", "saveDoc", "deleteDoc", "openView",
"tempView"]:
method = getattr(self, methname)
newMethod = partial(method, dbName)
setattr(self, methname, newMethod)
@williamsjj
williamsjj / Chrome - Security Disabled.sh.command
Created December 30, 2010 20:40
Runs Chrome on OSX with cross-domain security disabled.
#!/bin/bash
/Applications/Browsers/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security
Failure: twisted.trial.util.DirtyReactorAggregateError: Reactor was unclean.
DelayedCalls: (set twisted.internet.base.DelayedCall.debug = True to debug)
<DelayedCall 0x2214a80 [43198.997438s] called=0 cancelled=0 Proxy.__timedOut()>