python
Great Quicksilver/MetaMark Python Script!
Tagged:
Great little script here for using the MetaMark URL shortening service in conjunction with Quicksilver.
Some enhancements...
For FireFox users, replace the Safari-laden AppleScript lines with:
applescript = '''tell application "Firefox" set ff to properties of front window as list get item 3 of ff end tell'''
For those who also cannot partake of system beeps for notification upon shortening completion here's a Growl replacement for the end beeping:
popen('growlnotify -n "surl" -m "URL Shortened\n' + url + ' :: ' + shortURL + '"') ;
(that requires installing the growlnotify support - which you probably did if you're a Growl user - and having "/usr/local/bin in the appropriate path (you can just pre-pend that onto the growlnotify command just to be sure.
- 970 reads
Some python code for extracting OS X Garmin Training Center data
Turns out that Garmin Training Center schema wasn't all that difficult to figure out. I still don't know how they have the timestamps encoded - doing a conversion results in a date that is ~30 years off and, if post-February, ~30 years and 1 day offf. Also, I don't know how the longitude/latitude is encoded either. Any pointers would be most appreciated.
If you've got python and it's sqlite library installed, then this script will be a half-decent example of how to pull data from ".gtc" database for each entry in the stored history. If not, have no fear, I hope to release a small app to let you extract the data on your own and I'm still thinking about that widget.
Pretty source after the jump.
If you've got python and it's sqlite library installed, then this script will be a half-decent example of how to pull data from ".gtc" database for each entry in the stored history. If not, have no fear, I hope to release a small app to let you extract the data on your own and I'm still thinking about that widget.
Pretty source after the jump.



What You Are Saying
5 days 3 hours ago
1 week 2 days ago
1 week 5 days ago
12 weeks 3 days ago
12 weeks 6 days ago
19 weeks 2 days ago
27 weeks 2 days ago
27 weeks 3 days ago
28 weeks 3 days ago
29 weeks 5 days ago