Skip to content

Instantly share code, notes, and snippets.

View mjcarroll's full-sized avatar

Michael Carroll mjcarroll

View GitHub Profile
@mjcarroll
mjcarroll / gist:1182614
Created August 31, 2011 01:37
ROS Wiki Error Log
--> -->
ConvertError
ExpatError: mismatched tag: line 376, column 1344 (see dump in /var/www/www.ros.org/roswiki/data/expaterror.log)
If you want to report a bug, please save this page and attach it to your bug report.
Show debugging information Report bug Visit MoinMoin wiki
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
==> Downloading http://mirrors.kernel.org/sources.redhat.com/libffi/libffi-3.0.9.tar.gz
curl: (6) Could not resolve host: mirrors.kernel.org; nodename nor servname provided, or not known
Error: Failure while executing: /usr/bin/curl -f#LA Homebrew\ 0.8\ (Ruby\ 1.8.7-249;\ Mac\ OS\ X\ 10.7.1) http://mirrors.kernel.org/sources.redhat.com/libffi/libffi-3.0.9.tar.gz -o /Users/mjcarroll/Library/Caches/Homebrew/libffi-3.0.9.tar.gz
>>> sys.path
['',
'/Library/Python/2.7/site-packages/pip-1.0.2-py2.7.egg',
'/private/var/folders/ph/5d44synn7hzgmxcqw92gdkrr0000gn/T/src/matplotlib/lib',
'/opt/ros/ros/core/roslib/src',
'/usr/local/lib/python2.7',
'/usr/local/lib/python',
'/usr/local/lib/wxPython-2.9.2.1/lib/python2.7/site-packages',
'/usr/local/lib/wxPython-2.9.2.1/lib/python2.7/site-packages/wx-2.9.2-osx_cocoa',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
@mjcarroll
mjcarroll / gist:1202508
Created September 8, 2011 03:03
Fix for graphviz/lion/homebrew
diff --git a/Library/Formula/graphviz.rb b/Library/Formula/graphviz.rb
index 5a8557b..adf2033 100644
--- a/Library/Formula/graphviz.rb
+++ b/Library/Formula/graphviz.rb
@@ -12,6 +12,12 @@ class Graphviz < Formula
depends_on 'cairo' if MacOS.leopard?
end
+ if MacOS.lion?
+ depends_on 'gd'
@mjcarroll
mjcarroll / gist:1335882
Created November 3, 2011 06:08
walkNode output
/ipad/* touchoscnode.touchoscnode.tabPageSwitchCallback
/quit oscnode.quit_handler
/accxyz touchoscnode.touchoscnode.accel_cb
/teleop/control/*/* touchoscnode.teleoptabpage.control_callback
/teleop/turbo/*/* touchoscnode.teleoptabpage.turbo_callback
/teleop/xy/*/* touchoscnode.teleoptabpage.xypad_callback
/teleop/w/*/* touchoscnode.teleoptabpage.w_callback
/ipod/teleop/control/*/* touchoscnode.teleoptabpage.control_callback
/ipod/teleop/turbo/*/* touchoscnode.teleoptabpage.turbo_callback
/ipod/teleop/xy/*/* touchoscnode.teleoptabpage.xypad_callback
@mjcarroll
mjcarroll / encryption.py
Created November 7, 2011 19:17
Additive encryption toy script
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
SHARED_KEY = "Michael".lower()
PLAIN_TEXT = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus accumsan neque id diam scelerisque et suscipit magna accumsan. Aenean suscipit lorem a sem semper non tincidunt nibh rhoncus. Morbi mattis sollicitudin dapibus. Aliquam erat volutpat. Proin leo ligula, tempor tincidunt faucibus eu, tempor in magna. Fusce ut odio leo, in volutpat lectus. Morbi in aliquet mi. Nam vitae neque vitae felis ultricies volutpat id ut dui. Morbi bibendum aliquam hendrerit. Proin vel libero sed nisl euismod cursus. Aliquam sagittis aliquam eleifend.".lower()
def encrypt(text, key):
key_numeric = [ord(x) for x in key]
@mjcarroll
mjcarroll / gist:1872140
Created February 20, 2012 23:03
XV11 Gist
CPU F2802x/c001
Serial WTD21211AA-0019777
LastCal [5371726C]
Runtime V2.6.15295
#Spin...3 ESCs or BREAK to abort.�:)
Piccolo Laser Distance Scanner
Copyright (c) 2009-2011 Neato Robotics, Inc.
All Rights Reserved
Loader V2.5.14010
function asdf {
find -L $catkin_source_dir $catkin_binary_dir $pkgdir ${1} ! -regex ".*/[.].*" ! -regex ".*$pkgdir\/build\/.*" -print0 | tr '\000' '\n' | sed -e "s/.*\/\(.*\)/\1/g"
}
...elsewhere...
@mjcarroll
mjcarroll / test_rosbash.bash
Created March 20, 2012 14:46
rosbash testing
#! /usr/bin/env bash
# This script is supposed to be a unit test for rosbash, also used for manual checks against other operating systems.
# TODO extend this script
. ../rosbash
echo Testing BASH
# rosbash - functions to support ROS users
# Useful things to know:
# 'local' variables get unset after function, all others stay forever
# COMPREPLY is the var used by bash complete builtin
function _rossed {
if [[ `uname` == Darwin || `uname` == FreeBSD ]]; then
sed -E "$@"
else
sed -r "$@"