Archive for June, 2009
Using Notepad++ for Version Control
Jun 29th
I have what you would call a love/hate relationship with Version Control Systems. On the one hand, it is oh so nice to be able to revert back to a working version of your document when you accidentally make way too many mistakes, and it no longer works. But on the other hand, it is a total pain in the ass.
I am duty bound to tell you that if you are doing much of anything involving code, you need to be using some sort of Version Control, however I am not going to ram Subversion or Tortoise SVN down your throat. I understand why programmers use them, and I have used them myself in the past. Since I try to live the whole “Least Amount Of Administrative Effort” thing, I just really don’t like them. Let me explain.
Ok, setting up full on Version Control makes sense if any of the following are true:
- You spend a large portion of your day writing code (like your job title is “programmer” or something similar)
- You spend more time fixing things you break while writing code, than writing code
- Anyone else is going to suffer consequences if you totally wreck some code
- Someone else is going to maintain and administer the Version Control System
- You work on files that multiple other people also edit
However it does not make sense if any of the following is true:
- You write code for your own use only
- You could care less if it gets broken or accidentally deleted
- You don’t have time to administer or maintain a Version Control System
Even if all of the last bit are true for you, it is still a good idea to use Version Control. Wait, what?
Version Control is a process, and if done correctly it works very well. If done poorly it gives you a false sense of security. Version Control is not necessarily a software package or commercial system.
If working with end users for all these years has taught me anything it is this; if a system is easy to use (especially if you don’t have to actually do anything) it will get used, if it is complicated (or time consuming) it will not get used. This also holds true (even more so in most cases) for the IT professionals I know.
Since don’t write enough code to make Visual Studio a wise investment, I use Notepad++, and unlike Visual Studio, I can take my IDE with me on a USB drive (Notepad++ Portable!). In the same vein, I don’t really write enough code to really justify setting up and maintaining a Version Control System, so I do it with Notepad++. Least Amount Of Administrative Effort.
So here is my solution:
I use the Backup settings built into Notepad++ to take care of my Version Control. To set this up:
- Install notepad++
- Open Notepad++
- Select Settings > Preferences
- On the Backup/Auto-completion tab, change the backup setting from None to Verbose
If you change nothing else there, now when you save your file, Notepad++ will automatically create a copy of the file without the changes since the last time you saved it. The copy will also be saved in a subfolder (named nppBackup) in the same folder where the document is saved. The copy will be named FileName.Extension.Date_Timestamp.bak by default. So a file named “test.vbs”, saved today would have a name similar to “test.vbs.2009-06-29_151927.bak”.
Cumbersome to be sure, but I am guaranteed to use it every time I work with a document.
Please don’t mistake this for something it is not. This is not a Version Control System. You do not check files in or out, and it doesn’t differentiate who made what changes, all it does is save every iteration of your document. It is Version Control in the truest sense of the term.
Check out this Extended Task Manager for Windows.
Jun 29th
The Extended Task Manager provides additional Windows process management features and information about disk activity and network port usage.
The new “Disk I/O” chart allows you to monitor which applications utilize most of your disk at the moment:
Features:
* Displays disk input/output activity with information about related applications
* Displays network port activity with IP addresses of external computers
* Displays information about applications that utilized most of the CPU or memory at any time presented on the charts
* Displays all files locked by a select process.
* Finds all processes locking a specified file.
* Includes “Summary” tab for quickly assessing the overall state of the Windows system
* Allows freezing individual Windows processes
* Offer various visual and functional improvements over the standard Windows Task Manager
http://www.extensoft.com/?p=free_task_manager

[Molly via EeeUserForums]
I have hundres of files to rename help me Admin!
Jun 24th

Yes, we know you have taken a million digital photos over the last year, on your fancy shmancy new camera. And we also know the holiday season is almost upon us. Being the geek that you are, you could not just leave your pictures named digital_image_13456.jpg for your slide shows…
We just couldn’t have that now, could we?
Oh, how well we know you.
Wayne from Florida wants AtA’s help to create a script that will batch rename his purty pictures. Instead we are going to point him to some FREE software our friend Daniel at HackYourDay blogged about.
The software is called Batch File Renamer (clever eh?) from Cerebral Synergy.
Daniel says:
Here’s one software that productivity nuts will love. If you’ve ever needed to catalog files, change extensions, add something to a filename in large batches you know the suffering that is “right click, select, type, enter” done over and over and over again. If you need a tool that can simply edit filenames, rename extensions and so on in a very powerful, customizable way, read on!…
I set out to find some sort of tool because I need to catalog files in batches of 100 about every two days. I get a batch of stuff in txt format and I need to do the following operations.
- I need the files to be in the following format [ID - Number.txt]
- I also need them in this format [ID - Number.html]
Practically this means that I need “032 – 001.txt”, “032 – 002.txt” and so on (all the way to 100), also in .html format and I need to be able to customize all of this because for the next batch I will need “033? at the beginning.
Doing a Google search and trying a lot of free software that popped up I finally found Batch File Renamer. Not a fancy name, not a fancy program, but it gets the job done better than I’ve seen with other apps. First, head over to the Cerebral Synergy download page, scroll down and download Batch File Renamer.
He was able to change file extensions, mass change file names and it comes with all sorts of other free geeky options! Check out Daniel’s article at HackYourDay here and the Free Cerebral Synergy download is here.
Simple Trick to Keep Your Computer from Locking Up
Jun 21st
How many times have you been working on your Windows computer and without warning it locks up. Unfortunately many of us will say that this happens much more than you’d like. One of the key reasons that your computer locks up is due to a non-responsive program, in other words a program or file running just gets stuck.
Fortunately, windows has an option that allows you to get one step closer to avoiding those very annoying lockups. This isn’t a cure-all, but can be helpful. This only requires a simple tweak to your registry. Here’s how…. (note: I always make a backup of my registry before making changes, so I recommend you do this first but not required).
1) Go To Regedit: Start -> Run -> Type: Regedit
2) Find the correct directory: HKey_Current_User -> Control Panel -> Desktop
3) Find the correct file: Look on the right side and scroll down to find WaitToKillAppTimeout. You’ll notice that this likely says 20000 today. That’s the time in miliseconds that it waits before it stops an application that has locked up. That’s 20 seconds! But we’ll change that…..
4) Modify the File: Double click on WaitToKillAppTimeout. You’ll then get a new window that allows you to edit the “Value Data”. I changed mine to 1000 (1 second). Then click “OK” to complete the modification.
5) Close out of the registry. Click the big x on the top upper right.
6) You’re done….
One step closer to a finely tuned machine.
Kerry enjoys writing about a variety of topics. Her favorite website is CallCatalog.com which is a reverse phone directory website that allows you to lookup and report unwanted phone calls. You can also read her blog which discusses phone number privacy issues.


Recent Comments