Posts Tagged ‘Windows’

Notepad2

Monday, April 27th, 2009

For the last few years I’ve been following with interest a tiny little program called Notepad2. Essentially it’s just a text editor (very similar to Notepad included with Windows), but it does have a few tricks up its sleeve.

For starters, it has syntax highlighting. And I argue, very very nice syntax highlighting. I much prefer it to other editors I have installed on my computers (Dev-C++, Visual Studio, Emacs) as well as others I’ve used in the past (GEdit, Kate). Arguably though it’s not as complex as any of these editors. In addition, it does line wrap, line numbering, and more. Pretty much every part of the editor is configurable. It also automatically detects between Windows, UNIX and MacOS 9 line endings (very useful when you swap source code between Windows and GNU/Linux).

Notepad2 editing a Patch file

Notepad2 editing a Patch file

There’s a lot of things it doesn’t do though. It’s not a fully-fledged IDE, by any means. It has no idea about projects, function parameter hinting, Makefiles, or anything like that. If you want an IDE, look elsewhere. Which is why I have Visual Studio installed. It does everything, and then some more (in a few gigabytes of disk space).

Above all else though, there is one very handy reason why I have Notepad2 installed. It’s because it can completely replace Notepad. Because Notepad2 is only a single file, like Notepad, with no other dependencies except Windows itself, it just slots in. After removing all the security on the Notepad.exe file in the Windows folder, you can just copy and paste Notepad2 in. And then all the links and file extensions pointing to Notepad just open Notepad2 instead. If this sounds pretty cool, you can learn how to do it here (XP) or here (Vista). I wish there was an installer for Notepad2 that did all this automatically; at the moment Notepad2 is just distributed as a bare executable file. But I certainly won’t be complaining too loudly.

If you’re looking for a simple editor for when a full IDE isn’t necessary, or you’re still using the default Notepad for everything (shock horror), then I’d definitely give Notepad2 a go. Even if you don’t fully replace the original Notepad, it’s still a pretty cool upgrade from Notepad.

[ad#post-footer]

ExpanDrive for Windows

Monday, April 20th, 2009

Recently I found a quite awesome piece of software, and I thought I’d share it with you.

ExpanDrive is basically an SFTP file system driver for Windows. What it does in plain English is turn an SFTP share on a remote computer (say, for instance, my virtual server on the other side of the world) and turn it into a drive letter on my laptop. Like so:

My Computer using ExpandDrive

My Computer using ExpandDrive

This is the first piece of software I’ve found that does this, and does it well enough that I can just click on the drive, click on any file inside the drive, and it automatically copies and opens in the appropriate application. Saving inside the application also works. For instance, I had a word document lying around on my server, so I thought I’d test it out. I opened it up just like a normal file, edited it, saved it, and so on, and it just all worked normally.

The only difference from a local drive or a Samba share is the speed at which things happen. There is a noticeable difference (to be expected, it going over several ADSL connections). Opening a text file took about half to one second, saving it about the same.

The people who make this software say that it’s “rediculously simple”. They are very right, it is. Anybody who has used WinSCP would be familiar with that software’s connection screen. ExpanDrive’s is very similar:

ExpanDrive Main Window

ExpanDrive Main Window

One bug I have noticed is that the drive usage is wrong. I know for a fact my vserver doesn’t have 12TB of storage space available (as shown in picture above). I’m actually using about 30% of 12GB, so I’m guessing they just checked total disk space wrong.

The only downside is to this software is cost. It’s $39.95USD for a single license (a license can be used for multiple SFTP shares). While it’s not a huge amount, it’s more than I’d like to pay for something like this (in my mind, this sort of thing is worth about $20USD). I haven’t bought it yet, I’m still using the trial (which lasts for 30 days). But I think I will.

[ad#post-footer]

Customizing Windows

Monday, March 9th, 2009

I just thought today I might share with you some of the customizations I’ve made to my Windows Vista installation to make it a bit more friendly.

Last week I stumbled upon this blog post from LifeHacker, and I’ve since implemented it’s suggestions fully (click for full size):

taskbar

Basically the idea is to double the size of the taskbar and then create groups of icons for the most commonly used programs. Instead of having to click twice to get into Outlook or PuTTY, I now only have to click once. The hardest part is working out which icons are the best to put onto the taskbar. The image above is missing Notepad2 and Firefox, since I originally left them off. They have since been placed on the taskbar as well.

The instant messsaging client I use is Pidgin, and apart from Skype (which it doesn’t handle), it’s the only IM client I ever use. Since about 50% of my time on my computer is wasted in chatrooms and such, Pidgin has a high importance for me. Thus, I’ve made the Buddy List window dock into the side of my screen, so it’s never behind any other window, even when the other window is maximised. It’s best explained with a screenshot.

What happens is that when the Buddy List is the approximate height of the screen, floating, and is then dragged to either side of the screen (I used to have it on the left), it will snap into place and become sort of a taskbar as far as other windows are concerned. To do this with Pidgin, you’ll have to enable this functionality:

  1. Go to the Tools menu, and select Plugins.
  2. Scroll down the window until you see ‘Windows Pidgin Options’. If it’s not enabled (the tickbox on the left), enable it.
  3. Otherwise, click on it once to highlight it and click ‘Configure Plugin’.
  4. In the window that comes up, click the tickbox next to ‘Dockable Buddy List’, and click Close twice.
  5. You can now drag your Buddy List to either side of the screen and have it docked, ready and waiting to start a new conversation.

If you’re the type that notices such things, you’ve probably noticed that I’m not using the Aero interface (the see-through window effect). And for good reason too. As far as I can tell, all it does is hog memory and CPU, and make my machine very sluggish. Here is a good tutorial on how to do it.

Those are the three biggest changes I’ve made to the user interface in Vista, and all have made me much more productive. If only my laptop had a second screen…

More on my file server

Saturday, September 27th, 2008

Upon request, here is some more information on how my file server is coming along. Last week I ordered a a Seagate 1TB HDD (of the latest revision, released a short time ago). It would have been preferable to buy all eight at once, but I lacked the money to buy them all at once, and I need the file server to be up and running.

The choice of brand of hard drives was difficult. Because of differences in platter density (and thus overall size), you can’t mix and match brands. Being the stupidly pedantic person I am, it’s not something I would have done anyway. I first considered Seagate, but the adventures (read: complete data loss) that a few other people at work have had with Seagate 1TB hard drives somewhat put me off. Western Digital was also an option, mostly because they have lower power requirements. This means two things: lower heat (and thus less noise), and a lower overall power requirement. For a server that is going to be on most (if not all) of the time, both these factors are quite important to consider. In the end though, I went with Seagate. I’ve never had any problems with them in my past, and I am hoping that they have fixed their problems with faulty control boards.

Only having one hard drives to begin with means I can’t begin with a RAID 5 array. I currently have my controller set to use my single drive as a JBOD disk. This obviously isn’t optimal, as my RAID controller will have to do an online upgrade of the RAID array. Apparently, this is in the feature set, so I thought I’d take advantage of it. I’ll let you know how it goes. I paid enough for it (Highpoint RocketRaid 2320 for ~$360AUD) that I trust it.

At this stage, it was time to configure my (non-) RAID array, FTP, and Samba. Configuring FTP was fine, the RAID array was tolerable (involved recompiling kernel with a few patches, etc), but Samba was a complete pain in the rear end. In the end, then, I went with Windows Vista Business. I was erring on buying a copy before to use on the server, and problems with Samba and so on just drove me over the edge.

This also allowed me to go back to my original RAID setup. After switching the cables over, I created a RAID 0 (fast stripe) on my JMicron controller for the two 80GB drives. This gives me an extremely fast Vista installation to 160GB of space. After installing the Highpoint management software, I then had my file server up and running, to a degree.

Final configuration involved installing AVG, setting up remote desktop (so I can administer changes from my laptop without having to attach a screen), installing Service Pack 1 for Vista, and disabling a few unnecessary services that slow down network transfer speeds (see this guide). After all that, I now have a decent, centralised place to store all my data. The only complaint is the noise produced by my gigabit switch (of course I had to buy a fan-cooled model).

Pictures coming soon (when I can be bothered finding a working camera).

Boot failure day

Sunday, September 14th, 2008

Well, yesterday sucked. Not only did I have a cold (which I still have), but two of my computers died: ‘Europa’, my main laptop; and ‘halley’, my spare machine and OS testbed.

Everything was going quite well up until dinner. I had a working GCC cross-compiler (if you don’t know what that is, don’t bother caring), I had my operating system kernel compiling with no errors, and I had some music playing. All was well. Just before dinner, I noticed that when I played Time by Pink Floyd, it was actually playing an ABBA song. ‘No worries’, I thought. I’d seen this before, and a chkdsk had fixed it. I decided to run a chkdsk before bed that night. So I went to dinner.

I came back into the room after dinner, and found my laptop at the Vista bootup screen, asking me to choose whether to resume a normal boot, or run the memory diagnostic. ‘No worries’, I thought again. Obviously, one of my applications had managed to crash the Vista kernel. Not a difficult task. So I told it to resume booting normally. It didn’t. I powered it off, and then back on again. It still didn’t. My heart sank.

So I got out my trusty Vista installation DVD. I was hoping to repair the Vista process to the point where it would allow me to get into safe mode, and find out what was going on. No such luck. The DVD wouldn’t boot. I don’t know much about Vista’s internal boot process, but I suspect it was around either the time it went to protected (32 bit) mode, or into a non-VGA graphics mode. This was bad. I tried a Windows XP CD, and that didn’t work properly either. I don’t know what the problem is, but it’s serious. On Monday I am going to try and send it back to the manufacturer.

At this point, I was frustrated beyond anything. Now, I don’t only have a laptop. As an avid computer hardware collector, I had another working machine. It was my old server and before that, my main PC. Last night, it had Ubuntu server on it (my ISP has a Ubuntu mirror). So I quickly booted it up. At this stage, all I wanted was to get on the Internet (and more specifically, MSN). Unfortunately, Ubuntu doesn’t have a kde-base package (or at least, not one that I could remember the name of). So I sat there for 40 minutes waiting for it to download and install all the KDE packages (including games, useless admin tools and half of TeX Live). When it had finished downloading, I ran ‘startx’ (which should, in my opinion, work). It didn’t. None of a number of other commands (xdm, kdm, kde, etc) worked either. Massive Ubuntu failure.

So I tried a Windows XP installation CD over the spare machine. That wouldn’t boot up either. It hung at the point where it loads the Windows components. I tried it with only one hard drive plugged. That didn’t work either. Now came my silliest moment. In anger, I took out the XP CD, and turned off the machine to try and get Ubuntu working again. Unfortunately, I began plugging in the hard drives onto which Ubuntu is installed before the machine had finished turning off. *ZZAP*. And then it didn’t work anymore. I suspect it’s only the power supply that’s dead… but still. Massive human failure.

So now, I have two dead machines. One should be easy to fix (buy new PSU, install fresh Ubuntu desktop, go on MSN). My laptop… well… I think my data has survived, maybe. I’ll let the manufacturer find out. I hate fixing laptops.