Simple File Rename script in Python

import os indir = ‘c:\\datafilepath\\’ for filename in os.listdir(indir): if filename.startswith(“xyz_”): newname = filename.replace(“xyz_”,”abc_”) try: os.rename(indir + filename, indir + newname) print “[NEW]”, filename, “–>”, newname except: print “[OLD]”, filename, “–>”, newname

Robot Challenge 009

Not much progress to report. My compass module seems to have died, probably due to the fact I was feeding it 5V instead of the required 3.3V… Never mind, new module ordered. I’ve added a new level to the robot and now looks neater. Here are a couple of photos: With a camera (placeholder – […]

Raspberry Pi Samba Share

My RPi is the brain of my ARK-AV-01 robot. As I currently am in the programming phase, I found myself programming it from the command line. I wanted something easier, with no login/password, so I activated samba with the following samba.conf file: [global] workgroup = mygroup interfaces = wlan bind interfaces only = yes server […]