Friday, April 29, 2011
If you have been spoilt by SnagIT (made by Techsmith) which is probably one of the best screenshot tool out there and are now looking for a free alternative, you may find Greenshot to be a pretty good replacement. Greenshot lets you edit, add additional text, pointers on top of the snagged images.
After helping a customer numerous times by diagnosing a failed cron job, I was looked up how to call the job from Windows. This turned out to be interesting given it was a command which could only be run from sudo. Here are the details:
- First you need a program called plink which is part of the putty distribution. You can download putty from http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.60-installer.exe
- Create a text file with your commands somewhere on the PC. For example:
- /usr/bin/sudo su -
- Either set up your path environment variable on Windows or simply go the putty install folder (e.g C:\Program Files\Putty).
- plink -t zz000412@PRODDOCS-VORA -m
It was fun trying to integrate SVN, Bugzilla and Mediawiki using SCMBug and BugzillaReports. The integrated system is really an efficiency booster and considering how easy it was to set up the value/effort ratio was well worth it. I am listing the steps needed to set this system up on Windows here which makes things very interesting sometimes. Linux install is similar and simpler.
- The first step was installing Apache, PHP and Active Perl on Windows. This is straightforward and well documented.
- Install MySQL
- Install Bugzilla. This is straightforward as well. Bugzilla uses Perl.
- Install Mediawiki.
- Turn off caching in Mediawiki. With caching on, you get stale data on bugs which can lead you to make wrong decisions.
- Install the Mediawiki - BugzillaReports Addon. This gives the ability to write short scripts in mediawiki which query bugzilla and present data on a web page as a reports. This itself takes you from zero to fifty.
- Set up backup scripts for MySQL.
- Install SVN
- Collabnet worked out pretty well.
- Set up Backup scripts for SVN
- Create custom fields in Bugzilla for recording code change list
- Install SCMBug
- Customize code in SCMBug. This will help:
- Format the regular expression for parsing out the bug ID from the comments.
- Change code to post changes to custom field instead of comments. SCMBug by default posts changes to Bugzilla comments which can be very annoying to users.