This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wattsused = {} | |
whused = {} | |
for history in sensorhistories.sensorhistories: | |
wattsused[history.sensornum] = history.avgwattover5min() | |
whused[history.sensornum] = history.dayswatthr | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wattsused = 0 | |
whused = 0 | |
for history in sensorhistories.sensorhistories: | |
wattsused += history.avgwattover5min() | |
whused += history.dayswatthr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to minicom 2.3 | |
OPTIONS: I18n | |
Compiled on Nov 23 2010, 13:27:13. | |
Port /dev/ttyUSB1 | |
Press CTRL-A Z for help on special keys | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.core.cache import cache | |
from django.utils.hashcompat import md5_constructor as md5 | |
from RHEL_scrape.rhlistupdates import RHListUpdates | |
import updateinfo | |
from consumers.xml_web.import_entry import ImportEntry | |
LOCK_EXPIRE = 60 * 5 # Lock expires in 5 minutes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@beaglebone:~/newstache/stache# ntpdate pool.ntp.org | |
21 Apr 06:41:10 ntpdate[680]: step time server 206.212.242.132 offset 419798972.484756 sec | |
root@beaglebone:~/newstache/stache# history | |
1 mkdir stache | |
2 cd .. | |
3 rmdir stache | |
4 cd .. | |
5 cd | |
6 cd | |
7 rmdir stache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File found, taking pic | |
debug: stacheMessage = {"tweet":"New BeagleStache captured!","filename":"/home/root/stache/tmp/captured003.jpg"} | |
info: stacheMessage = {"tweet":"New BeagleStache captured!","filename":"/home/root/stache/tmp/captured003.jpg"} | |
info: LED on | |
info: contents.length = 278 | |
info: --0.ed429920.3836aa6d | |
Content-Disposition: form-data; name="status" | |
New #BeagleBone BeagleStache image captured! @BeagleBoardOrg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://lazarenko.me/2013/03/04/python-in-trading/ | |
# opkg update | |
# opkg install python-setuptools | |
path is wrong in `which easy_install` | |
# okpg install python-ctypes | |
# git clone http://github.com/walac/pyusb.git | |
# cd pyusb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if len(self.args) != 1: | |
#print >> sys.stderr, "You must specify one file name, or maybe you need --help?" | |
#sys.exit(1) | |
self.stdin_mode = True | |
self.xml_string = i.read() | |
else: | |
self.stdin_mode = False | |
self.file = self.args[0] |
NewerOlder