Archive for the “Non-Programming” Category

If you’re anything like me, you probably have at least one (if not two or three) ‘temp’ directories scattered throughout your hard drive.  These directories were surely created with the best of intentions (‘OK, this temp directory is really going to be for temporary files.  I promise!’), but unless you’re incredibly religious about it, by now each one is filled with its own collection of random downloads, files, pictures, and other assorted junk.  To make things worse, you don’t feel safe deleting any of it, because well, you can’t remember why you put it there in the first place.

Fed up with never really knowing what files were temporary and therefore safe to delete in my collection of ‘temp’ directories, I finally came up with a simple solution that works for me.  I thought I’d share it here in the hopes that someone else might find it useful.

Steps:

  1. Create a directory named ‘SafeToDelete’ somewhere on your hard drive.  (I like to use C:\SafeToDelete)
  2. Create a batch file to delete the directory (and it’s contents) and recreate it.  (I named mine SafeToDelete.bat and put it in C:\)
  3. Schedule the batch file to either run daily or at boot-up

That’s it.  The batch file I use for step 2 consists of two lines:

rmdir SafeToDelete /s /q
mkdir SafeToDelete

And, I just use the built-in windows scheduler for step 3.  This way, when I’m saving files, I have to make a conscious decision, “Is this really a temporary file?”. If so, throw it in SafeToDelete knowing that it will get deleted soon.  If not, put it in its rightful place.

Hope that helps.  This method has certainly made my hard drive much cleaner.

Comments No Comments »

I don’t think I’ve ever written about it, but for the last year or so I’ve been trying to learn to play the guitar. This endeavor actually started when my sister asked for and received an acoustic guitar for Christmas several years ago. Her interest in learning to play didn’t last long, and I eventually bought the guitar from her for about $100 (if I remember correctly).

Fast forward a few years, and I’ve now been taking guitar lessons locally for about four months using that same acoustic guitar. I’m still not very good (basic scales still elude me), but after receiving a gift card to Guitar Center for Christmas (early, I know), I decided it was finally time to go electric.

So, without further ado, here is my new Ibanez RG120 along with the Line 6 Spider III amp that I picked up along with it:

I know this post isn’t programming related (don’t worry — the focus of this blog is still programming), but I stopped writing posts when I took up guitar lessons and feel it’s only fitting that I post about the fruition of those lessons.

Comments No Comments »