Today I was starting work on a new PHP project in Symfony on my netbook and realised that I was still using plain old notepad, the default windows task switcher and unknown files still showed that awful “Would you like to use the web to find out how to open this file?” dialog.

I usually fix these on my machines but I had neglected to do this on my netbook, and so I thought I would share a few really good applications for replacing things in Windows.

Notepad2 – Notepad

notepad2

I love a good IDE, Netbeans 6.7 for PHP/Android and Visual Studio 2008 + ReSharper for .NET (although it is getting painfully bad on performance these days), but sometimes you just want a plain old text editor. Notepad is good but still lacking in my book and one of the first things I was pointed to when I started my new job was Notepad 2, a free open-source Notepad replacement built on Scintilla which provides some much needed functionality such as syntax highlighting, code folding, line highlighting, line numbers and much more but it is also very compact and lightweight. Kai Liu who has contributed to the Notepad 2 source also has an extended version which among other things, installs Notepad 2 as the default text editor in Windows.

Making Unknown Files Open In Notepad / Notepad2

Ok, So we have a lightweight notepad replacement, how do we get rid of the annoying dialog that asks you what you want to do with unknown files? I have found that 9 times out of 10 I want to open a file like that in a text editor, otherwise I will choose the extension myself. The following registry change (copy into a text editor and save with .reg as the extension and then double click to run) fixes this by automatically opening unknown file extensions in notepad but will also allow you to use the normal open dialog box by right clicking and accessing it from the context menu.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Unknown\shell]
@="notepad"
[HKEY_CLASSES_ROOT\Unknown\shell\notepad]
@="Open with Notepad"

[HKEY_CLASSES_ROOT\Unknown\shell\notepad\command]
@="C:\\WINDOWS\\NOTEPAD.EXE %1"

image This will create a new action for unknown files on the context menu called “Open with Notepad” and then make it the default action. The normal Open menu is preserved (in XP SP3 and above) so you can still access the Open With dialog if you need to.

If you are using Notepad 2 described above and have it intercepting calls to Notepad, this will launch unknown files in Notepad 2 instead.

TerraCopy – Explorer Cut/Copy & Paste

image Most of us are no stranger to the rather indecisive estimates that the windows file transfer window can generate so why not replace it for something better? TerraCopy is a utility which can completely replace the Windows File Transfer UI and offers batch operations, queuing, pause / resume and error recovery plus it is faster to boot.

TerraCopy is free for personal use and requires a Pro license for commercial use costing 14.95 €.

VistaSwitcher – Task Switcher (Alt+Tab)

image Despite the wonderful new taskbar in Windows 7 which includes live preview thumbnails (brought in with Vista), my main way of getting between windows is alt+tab. Back in the days of Windows XP a very nifty alt+tab replacement called TaskSwitch XP was developed by NTWind Software. It brought some very nice features to the desktop including preview thumbnails, themes, customisable task list and context menu support.

An updated version of the software was released for Windows Vista and 7 called VistaSwitcher. It provides much the same functionality but with integrated Aero support which makes it look rather nice, even with Aero disabled as well as live window and desktop previews, multi-selection support for window organisation and the addition of 64-bit support. This is a truely wonderful app and is well worth a look for those who frequently use alt+tab and want to spruce it up a bit.

Console – Command Line Shell

image The next handy utility I want to share is an open source command line replacement called Console. Console is written in .NET and offers some significant enhancements over the standard shell including tabs, good select/copy/paste functionality, excellent configuration options, alpha transparency, and quite a bit more. If you use SSH or even just the command line a lot and get frustrated by the size limitations of the command prompt or simply want tabs, Console will be a breath of fresh air. A very nifty app indeed.

Launchy – Keystroke Launcher

image This isn’t so much a replacement as an addition since the Windows Vista/7 start menu can do something similar with the new start menu. Launchy presents you with a styled textbox into which you can type the name of a program or file and it will attempt to match against a user-configurable catalogue of start menu items, desktop icons and files on your computer. The default activation shortcut is alt+space however this can be changed through the options menu. It supports plug-ins which allow you to add more applications and websites to the catalogue and out of the box comes with plug-ins for Google, Wikipedia, Calculator and GCalc. If this isn’t enough to convince you and you happen to use linux as well as Windows (or even just Linux), then you will be pleased to hear that Launchy works on Linux too.

Launchy saves me so much time as I don’t have to trawl through my start menu looking for applications or sift through folders looking for an EXE, it takes care of all the searching for me in a sleek, minimalistic way.

Hopefully you will find some or all of the utilities I have talked about useful, they certainly make my life easier. I am interested to hear about other replacements that people use so if you have one to share please post a comment.

Links

 

Scottish Developers

This should have been posted and promoted earlier but things have been pretty hectic lately.

I am organising a wee get-together in Dundee this week for any developers who wish to attend, the details are as follows:

Where/When

Dundee: Wednesday, 9th September @ 19:30

The Event

The nights are drawing in, the days are getting colder so what better time to announce a gathering of like-minded souls in a warm friendly pub for a few drinks and some conversation. If you are in or around the Tayside area come along to Laings Bar in Dundee next week and join us for a something we hope to make a monthly event (in Dundee). No agenda, no speaker, no registration, just some drinks and chinwag.

This should have been advertised sooner but September sprung out of nowhere but we do look forward to seeing you there.

The Venue

Laings Bar, 8 Roseangle, Dundee, DD1 4LR

From: http://scottishdevelopers.com/2009/09/06/tayside-devdrinks/

So if you are interested, just come along to Laings Bar this coming Wednesday and have fun. If you get lost send me a message on Twitter :)

 

Couple of quick updates for you on the events front.

epicenter 2009: 26th – 28th August, Dublin

Just over a week to go until this Irish development conference. Already on the speakers list are those such as Craig Murphy, Alex Mackey, Barry Carr and Barry Dorrans and in addition I will be speaking on Selenium for the first time.

From the website (http://epicenter.ie):

“epicenter is three days of software excellence – it’s a conference, it’s an expo, it’s a place to hang out! It’s for software architects, CTO’s and developers of all knowledge and experience levels.

epicenter is organised by IrishDev.com – News, Events and Jobs for Irish Software Developers.

website development, design, effects, scripting and backend software is provided by Agile Technologies – expert in innovative Web Interfaces and bespoke SaaS development.”

Scottish Developers

Scottish DevelopersPlanning is already well under way for the next season of events and already we have some exciting talks coming up.

September

If you are in the Tayside area you may be interested in coming along for a couple of drinks on Wednesday 9th September. We will be meeting in Laings Bar at 7.30pm and all are welcome.

October

November

If you would like to do a talk for us, even if you have never spoken before, please feel free to drop us a line, we would love to hear from you.

 

I have been doing some Test-After Development unit testing on an ASP.NET MVC app and hit code that uses the cache through HttpContext.Current.Cache (I bet @serialseb would just love that! :P ) which as you may know is a royal pain in the arse for getting at or mocking without a web server.

As most sane people do I binged (that just does not sound right!) for an answer to my problem and came across a few interesting things but the closest I came initially was a post from Phil Haacked on his HttpSimulator cache where someone mentioned that using HttpRuntime got around the issue. I tired, it failed and I went back to Bing and came up with a post on Scott Hanselman’s blog where he details a conversation about simply including System.Web along with System.Web.Caching in non-web applications. I was skeptical but people have noted success with this method so I tried it and what did I find, it sodding well worked!

Granted the articles I found are old but this is the first time I have tried to unit test the Cache before so this was quite useful.

In other news I have ordered a copy of Working Effectively with Legacy Code by Michael Feathers from Amazon after @chriscanal recommended it, looking forward to having a read.

 

Just been looking through some of the graduation stuff from the other week and came across the class photo of those who also graduated as members of the BCS. This actually turned out quite well given that we were staring up at the sun while trying to look at the camera. Well done once more to the Applied Computing class of 2009, all the best in whatever you find yourself doing.

AC Graduation 2009

The full article can be found at: http://www.computing.dundee.ac.uk/newsandevents/newsdetail.asp?861

© 2011 Andy Gibson
Header image courtesy of Don Solo
Suffusion theme by Sayontan Sinha