Rapsberry Pi [5]: Using the Pi as the tethered desktop

Due to the fact that my main internet feed is filtered, I sometimes need to access websites that are blocked by the filter. This is easier than trying to get a site unblocked. For example a Family First website, porninquiry.nz, is currently blocked by the web filtering, as are several misclassified Christian sites I read… Continue reading Rapsberry Pi [5]: Using the Pi as the tethered desktop

Python Scripting [2A]; Syncing a video and music directory tree

Having completed our first scripting task involved XML extraction and copying files, the next task to be scripted in Python will be the process of extracting audio from our collection of music video tracks and syncing it into a directory tree. The actual steps needed are: Compare two directory tree, one for video and one… Continue reading Python Scripting [2A]; Syncing a video and music directory tree

Python Scripting [1C]: Scripting to copy map aerial layers 3

So I spent a bit more time completing the script, which now looks like this: import globimport osimport shutilimport xml.etree.ElementTree as ETtree = ET.parse(‘/home/patrick/Sources/CopyFiles/Source/layers.qlr’)root = tree.getroot()for layer in root.iter(‘layer-tree-layer’):        sourcename = layer.get(‘name’)        print(“Layer: ” + sourcename)        sourcepath = “/home/patrick/Sources/CopyFiles/Source/” + sourcename + “.*”        #print(fpath)        for file in glob.glob(sourcepath):            #print(file)            destname = os.path.basename(file)            #print(destname)            destpath =… Continue reading Python Scripting [1C]: Scripting to copy map aerial layers 3