What is this?
From advanced Bash tricks to Python gotchas to MySQL tutorials, this blog covers various topics in programming and systems administration. Find out how to get more done and have fun! Keep up with the latest by subscribing to the RSS feed!About the Author
This is the tech blog of Samuel Huckins. You can check out my homepage and other websites below, or send me a message here.-
Recent Posts
Post categories
Tags
Apache Apple Bash bookmarks CLI command database Desktop disk editor efficiency filesystem firefox fun graph graphing hardware HTML information keyboard Launchy Linux logging migration monitoring MySQL PDF Programming putty Python Ruby screenshot scripting Security ssh subversion svn sysadmin top Trac Ubuntu vim Vista web applications WindowsBlogroll
Handy Links
My Sites
My del.icio.us
- Posts 172
- Words in Posts 62,686
- Comments 311
Tag Archives: scripting
Running MySQL queries in Python
Being able to access MySQL databases in Python opens up quite a wide range of possibilities. It’s essential for a number of tasks such as connecting disparate datasources, performing maintenance, running regular updates, and more. While there are a number … Continue reading
Simple and effective Python logging
I have been using the quite capable logging module for all of my logging in Python programs for some time. After trying a number of different options and formats, I have stabilized my setup into what I will describe below. … Continue reading
Elegant option checking with optparse
A fair amount of the Python code that I write is in the form of scripts designed for command line use. In support of sysadmin activities, data massaging, or other tasks, they often call for options to be passed and … Continue reading
Posted in CLI, Programming
Tagged CLI, Linux, optparse, Programming, Python, scripting
Leave a comment
Run vim without being there…
Say you have a text file. You need to alter it in some regular way before sending it on somewhere else. Instead of editing by hand, there is a neat option you can use to edit the file with familiar … Continue reading
All your base…
Master Ian (whom I would link to, if his blog were not continually DOWN), showed me a very simple yet useful command: 1basename . You give it the path to a file, it gives you the filename and extension. If … Continue reading







