I've been using git lately, and finally made the plunge to github with great feelings of success. I'll do my best to keep the site updated now that I have a small amount of free time, but I'm doing my best to churn out new code.
If you currently don't use a version control system for your software, get on the boat. I'm not going to tell you to use a particular system, but use SOMETHING!
It will save you a lot of headaches and time if you learn at least one system and stick to it. Take the time to read the official documentation and see why they implemented it the way they did, so you can take advantage of that particular VCS.
I dabbled with subversion, but I loved the idea of DVCS, especially having the entire history immediately available, both online and offline, not to mention the smart built in features: automatically compressing data so it travels over networks faster, repo-by-repo settings for easy integration into DIFFERENT environments, and lots of documentation. See my "Helpful Resources" for more information on what I'm currently reading.
and now for cool Geishi stuff:
#!/usr/bin/python """ This program converts all images in the current directory into 2 new folders: /images /images/thumbnails This is for easy uploading into a new photo gallery """ import os def copyAndShrink(name): os.system("cp " + filename + " " + imageDir); os.system("convert -thumbnail 200 " + name + " " + thumbDir + "thumb_" + name) # If the image directory doesn't exist Make two new directories, fill them in if (os.path.exists("./images") != True): os.mkdir("images") os.mkdir("images/thumbnails") # Round of setting the basics thumbDir = "./images/thumbnails/" imageDir = "./images/" fileList = [] catagory = raw_input("What is the catagory? ") # Check to make sure it's a .jpg or .png and if so, copy and shrink with copyAndShrink() for filename in os.listdir('.'): if (filename[-4:].lower() == ".jpg" or filename[-4:].lower() == ".png"): copyAndShrink(filename) fileList.append(filename) # Sort the list of images alphabetically fileList.sort() # Print the list to a file for further work output = open(catagory+".txt", "w") for files in fileList: output.write(files + "\n") output.close()
