Skip to content

Instantly share code, notes, and snippets.

Avatar

Nate Oostendorp oostendo

View GitHub Profile
View gist:7b9c995650e89cec24ac
sudo apt-get install mongodb-org=2.6.7 mongodb-org-server=2.6.7 mongodb-org-shell=2.6.7 mongodb-org-mongos=2.6.7 mongodb-org-tools=2.6.7
@oostendo
oostendo / gist:2415635
Created Apr 18, 2012
looking at grains of a screw
View gist:2415635
#!/usr/bin/python
from SimpleCV import Image, Color
#images = ("fastener0.png", "fastener1.png", "fastener2.png", "fastener3.png", "fastener4.png");
images = ["fastener4.png"]
count = 0
for i in images:
@oostendo
oostendo / gist:2594968
Created May 4, 2012
errors starting seer
View gist:2594968
uck:SimpleSeer oostendo$ simpleseer default.cfg
INFO:SimpleSeer.broker:Init pubsub broker with ,
Process Process-1:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/process.py", line 231, in _bootstrap
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/process.py", line 88, in run
self._target(*self._args, **self._kwargs)
File "/Users/oostendo/dev/SimpleSeer/scripts/simpleseer", line 41, in pubsub_broker
Session().sub_uri)
View gist:2596307
Last login: Fri May 4 12:59:03 on ttys001
chuck:~ oostendo$ ipython console —existing seer.json
Traceback (most recent call last):
File "/usr/local/bin/ipython", line 8, in <module>
load_entry_point('ipython==0.12', 'console_scripts', 'ipython')()
File "/Library/Python/2.6/site-packages/IPython/frontend/terminal/ipapp.py", line 402, in launch_new_instance
app.initialize()
File "<string>", line 2, in initialize
File "/Library/Python/2.6/site-packages/IPython/config/application.py", line 84, in catch_config_error
return method(app, *args, **kwargs)
@oostendo
oostendo / gist:2639000
Created May 8, 2012
KURT MAKES ME FEEL PAIN
View gist:2639000
ERROR:SimpleSeer.Web:Exception on /olap/Motion/since/1336421952 [GET]
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/flask/app.py", line 1504, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Python/2.6/site-packages/flask/app.py", line 1264, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Python/2.6/site-packages/flask/app.py", line 1262, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Python/2.6/site-packages/flask/app.py", line 1248, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
@oostendo
oostendo / gist:2647459
Created May 9, 2012
old scipy superpack install script
View gist:2647459
#!/bin/sh
PYTHON=/usr/bin/python
SERVER=http://dl.dropbox.com/u/233041/PyMC
echo 'Would you like to install gFortran (required if not already installed)? (y/n)'
read install
if [ "$install" == "y" ] || [ "$install" == "Y" ]; then
echo 'Downloading gFortran ...'
curl -o gfortran-42-5664.pkg http://r.research.att.com/gfortran-42-5664.pkg
echo 'Installing gFortran ...'
View gist:2655496
chuck:SimpleSeer oostendo$ simpleseer shell
Traceback (most recent call last):
File "/usr/local/bin/simpleseer", line 7, in <module>
execfile(__file__)
File "/Users/oostendo/dev/SimpleSeer/scripts/simpleseer", line 91, in <module>
main()
File "/Users/oostendo/dev/SimpleSeer/scripts/simpleseer", line 39, in main
args.func(session)
AttributeError: 'Namespace' object has no attribute 'func'
View gist:2660928
/Library/Python/2.6/site-packages/Pyro4/core.py:155: UserWarning: HMAC_KEY not set, protocol data may not be secure
warnings.warn("HMAC_KEY not set, protocol data may not be secure")
ERROR:
Traceback (most recent call last):
File "/usr/local/bin/simpleseer", line 7, in <module>
execfile(__file__)
File "/Users/oostendo/dev/SimpleSeer/scripts/simpleseer", line 110, in <module>
main()
File "/Users/oostendo/dev/SimpleSeer/scripts/simpleseer", line 41, in main
args.func(session)
View gist:2710975
127.0.0.1 - - [2012-05-16 10:58:11] "GET /favicon.ico HTTP/1.1" 404 347 0.025331
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/gevent/greenlet.py", line 390, in run
result = self._run(*self.args, **self.kwargs)
File "build/bdist.macosx-10.6-universal/egg/socketio/virtsocket.py", line 280, in _receiver_loop
pkt_ns.process_packet(pkt)
File "build/bdist.macosx-10.6-universal/egg/socketio/namespace.py", line 107, in process_packet
return self.process_event(packet)
File "build/bdist.macosx-10.6-universal/egg/socketio/namespace.py", line 140, in process_event
return self.call_method(method_name, *args)
View gist:2771137
oostendo@ingenuitas-laptop4:~/dev/SimpleSeer$ simpleseer shell
/home/oostendo/dev/SimpleSeer/SimpleSeer/base.py:29: Warning: Pyfirmata is not installed on this system. It is not required but recommended
'It is not required but recommended', Warning)
2012-05-22 15:35:02,160 - SimpleSeer.ipython_extension - INFO - Loading SimpleSeer ipython extension
15:35:02 SimpleSeer.ipython_extension: INFO Loading SimpleSeer ipython extension
/usr/local/lib/python2.7/dist-packages/Pyro4/core.py:155: UserWarning: HMAC_KEY not set, protocol data may not be secure
warnings.warn("HMAC_KEY not set, protocol data may not be secure")
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/oostendo/dev/SimpleSeer/scripts/simpleseer in <module>()