Skip to content

Instantly share code, notes, and snippets.

@rcarlsen
rcarlsen / bodytrack.py
Created April 1, 2014 15:14
Fluxtream BodyTrack HR status
#!/usr/bin/python
import time
import httplib
import base64
import math
import json
# this script gets the latest HR data (within the past 5 minutes)
# from fluxtream's body track API.

Keybase proof

I hereby claim:

  • I am rcarlsen on github.
  • I am technophobe (https://keybase.io/technophobe) on keybase.
  • I have a public key whose fingerprint is 1BB0 8438 9CD8 4F01 CC6A DF5C F5CB D98D D643 FFC6

To claim this, I am signing this object:

03-12 20:57:00.326: ERROR/dalvikvm(4701): Could not find method org.apache.commons.codec.digest.DigestUtils.md5Hex, referenced from method ti.modules.titanium.utils.UtilsModule.md5HexDigest
03-12 20:57:00.336: ERROR/KrollObject(4701): (kroll$2) [34,39799] No Module for name Utils expected ti.modules.titanium.utils.UtilsModule
03-12 20:57:00.356: ERROR/KrollCallback(4701): (kroll$2) [3,39817] ERROR: TypeError: Cannot call method "md5HexDigest" of undefined
03-12 20:57:00.356: ERROR/KrollCallback(4701): org.mozilla.javascript.EcmaError: TypeError: Cannot call method "md5HexDigest" of undefined
03-12 20:57:00.356: ERROR/KrollCallback(4701): at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
03-12 20:57:00.356: ERROR/KrollCallback(4701): at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
03-12 20:57:00.356: ERROR/KrollCallback(4701): at org.mozilla.javascript.ScriptRuntime.typeError(Unknown Source)
03-12 20:57:00.356: ERROR/KrollCallback(4701): at org.mozill
03-12 20:38:54.406: ERROR/TiModule(4567): (kroll$5) [16,302386] Error creating proxy ti.modules.titanium.platform.UUIDProxy: ti.modules.titanium.platform.UUIDProxy
03-12 20:38:54.406: ERROR/TiModule(4567): java.lang.ClassNotFoundException: ti.modules.titanium.platform.UUIDProxy
03-12 20:38:54.406: ERROR/TiModule(4567): at java.lang.Class.classForName(Native Method)
03-12 20:38:54.406: ERROR/TiModule(4567): at java.lang.Class.forName(Class.java:237)
03-12 20:38:54.406: ERROR/TiModule(4567): at java.lang.Class.forName(Class.java:183)
03-12 20:38:54.406: ERROR/TiModule(4567): at org.appcelerator.titanium.TiModule.createProxy(TiModule.java:39)
03-12 20:38:54.406: ERROR/TiModule(4567): at java.lang.reflect.Method.invokeNative(Native Method)
03-12 20:38:54.406: ERROR/TiModule(4567): at java.lang.reflect.Method.invoke(Method.java:521)
03-12 20:38:54.406: ERROR/TiModule(4567): at org.appcelerator.titanium.kroll.KrollMethod.call(KrollMethod.java:84)
03-12 20:38:54.406: ERROR/TiModule(4567):
03-13 19:12:15.046: ERROR/TiModule(5718): (kroll$6) [8,8205] Error creating proxy ti.modules.titanium.ui.EmailDialogProxy: ti.modules.titanium.ui.EmailDialogProxy
03-13 19:12:15.046: ERROR/TiModule(5718): java.lang.ClassNotFoundException: ti.modules.titanium.ui.EmailDialogProxy
03-13 19:12:15.046: ERROR/TiModule(5718): at java.lang.Class.classForName(Native Method)
03-13 19:12:15.046: ERROR/TiModule(5718): at java.lang.Class.forName(Class.java:237)
03-13 19:12:15.046: ERROR/TiModule(5718): at java.lang.Class.forName(Class.java:183)
03-13 19:12:15.046: ERROR/TiModule(5718): at org.appcelerator.titanium.TiModule.createProxy(TiModule.java:39)
03-13 19:12:15.046: ERROR/TiModule(5718): at java.lang.reflect.Method.invokeNative(Native Method)
03-13 19:12:15.046: ERROR/TiModule(5718): at java.lang.reflect.Method.invoke(Method.java:521)
03-13 19:12:15.046: ERROR/TiModule(5718): at org.appcelerator.titanium.kroll.KrollMethod.call(KrollMethod.java:84)
03-13 19:12:15.046: ERROR/TiModule(5718):
Trying out this gist based iPad editor...
I would love to get line numbering on the left, and an option for alternate line background colors.
Oh, it's called drift instead...this keyboard is nicer than the one on the mini.
Welcome to Drift!
Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.
Your gists are always saved locally. To push a gist to github, use the "Push" button at the top-right.
After you've pushed a gist, use the share button above to copy a link to it, or view the gist on the web in Safari.
You can navigate between your gists, or sign in as someone else, with the button to the top left showing your github username.
@rcarlsen
rcarlsen / branch-blame.rb
Created March 1, 2013 18:03
ruby script for tallying "orphaned" branches in a git-based repo.
#!/usr/bin/env ruby
# in this project, the branching convention is that feature development
# and fixes are worked on in branches prefixed with feature/ and fix/ respectively.
# These branches are intended to be short-lived, only kept on the remote repo long
# enough for collaboration and eventual Pull Request approval/merging into the
# develop branch. After merging, the remote branch should be removed, ideally by the
# repo management software (Stash, github, etc.). If the management software does
# not support automatic deletion of the branch then it is the responsibility of
# the "owner" of the remote branch to delete it--this is generally the creator
@rcarlsen
rcarlsen / build_fat.sh
Created June 16, 2011 12:52
Script for building an iOS FAT binary from a typical configure/make project. (tesseract-ocr)
#!/bin/sh
# build_fat.sh
#
# Created by Robert Carlsen on 15.07.2009. Updated 24.9.2010
# build an arm / i386 lib of standard linux project
#
# initially configured for tesseract-ocr v2.0.4
# updated for tesseract prerelease v3
outdir=outdir