function walkReport() {
$("body").find("*").andSelf().each(function() {
    var parent = $(this).parent().attr("id");
    console.log(this.nodeName+" "+this.id+" and my parent is "+parent);   
});
}
Monday, May 14, 2012
Walk DOM and report ID's and Parents
Sunday, May 6, 2012
One Wire On Fire 1-Wire Automation Management Tool
This is a project I'm designing and coding. Far from done as of this post, but I hope to have it reasonably functional by July 2012.
- Promotional Sitehttp://one-wire-on-fire.org/
- GITHUB: https://github.com/lancemiller/One-Wire-On-Fire
- A succinct HOWTO on 1-wire gear at hobby-boards.com: 1 Wire HOWTO
Labels:
1-wire,
1wire,
linux automation,
owfs
Python: Error Handling
import traceback
def formatExceptionInfo(maxTBlevel=5):
         cla, exc, trbk = sys.exc_info()
         excName = cla.__name__
         try:
             excArgs = exc.__dict__["args"]
         except KeyError:
             excArgs = ""
         excTb = traceback.format_tb(trbk, maxTBlevel)
         return (excName, excArgs, excTb)
try:
         x = x + 1
except:
         print formatExceptionInfo()
 
Thursday, May 3, 2012
Subscribe to:
Comments (Atom)
 
