You are here

Windows

Vim E303: Unable to open swap file for "[No Name]", recovery impossible

Submitted by Druss on Fri, 2011-09-30 14:04

On a new installation of GVim (in Windows 7), I ran into the following curious error whenever I tried to open a new document for editing:
Vim E303: Unable to open swap file for "[No Name]", recovery impossible

According to friendly chap on IRC, this is caused by a temporary directory bug and that it can be fixed by adding the following directive to the _vimrc file:
set directory=.,$TEMP

Setting up Unicode support for PuTTY

Submitted by Druss on Tue, 2011-09-27 23:34

I work extensively on a Windows desktop. However, I do SSH into Linux servers often and I do so using PuTTY, a free and open source client. Everything works peachy. However, I recently had occasion to work extensively with some Unicode source data and I found that there were times when I thought that there were encoding issues with the data as they were not being displayed correctly on my screen.

Vim/Gvim and missing line numbers in the interface

Submitted by Druss on Sat, 2011-09-24 00:32

I'm not sure whether it was something I did, something that the Vim developers did, or an anomaly with the Windows 7 binary, but I could no longer see the line number and cursor position tracker in the bottom right of my interface. Looking at the menus, I could find nothing. I could turn on a line number prefix for each bleeding line, but this is not what I was after.

Implementing a shutdown timer in Windows 7

Submitted by Druss on Wed, 2011-08-17 21:15

Every now and then, I find the need to shutdown my PC automatically at a specified time for some reason or the other. In my most recent case, I needed to shut my Windows 7 PC down at 8am in the morning anticipating a scheduled power shutdown in my block. While there are many GUI-based applications out there that could do this for me, I chanced upon a simpler solution detailed below:

Google Chrome infected with the Facemoods toolbar and search engine

Submitted by Druss on Thu, 2011-08-11 00:38

I tried searching for something in Chrome a few minutes ago and found that my search was being handled by something sinisterly named Facemoods. Aghast, a few more checks confirmed that I had a toolbar installed on my system of the same name, the Chrome search engine was set to Facemoods by default and that I had an extension installed as well. A little more digging revealed that all this was jDownloader's fault as it installs the toolbar during its own installation process. Not good.

Removing all this junk involves the following steps:

Configuring Vim/Gvim to use spaces instead of TABs for indentation

Submitted by Druss on Wed, 2011-08-10 03:00

Some people like to indent their code using TABs. I used to like doing this. I still think that it's a good idea. But circumstances have dictated for the past several years that I need to indent using spaces instead. My favourite command-line editor in Linux and text editor in Windows is VIM / Gvim (where Gvim is basically Vim with a GUI). To configure this editor to override its default and use spaces instead of TABs for indentation, perform the following steps:

Windows 7: Program search box missing in Start Menu?

Submitted by Druss on Sun, 2011-07-31 11:59

I had to reinstall W7 yesterday and after some initial setup shenanigans, I found that the best feature of Windows 7 - the Start Menu program search field - was missing. These things are usually sorted via the Customize option which can be reached by right-clicking the Start Menu. However, I could find no option for the search field. After much hemming and hawing around, I decided to retrace my steps during the initial setup that I did and wonder upon wonder, organised strategies do work!

SSH password-less login using PuTTY on Windows

Submitted by Druss on Thu, 2011-06-30 00:27

So, if you, like me, have to resort to PuTTY sometimes to SSH into a Linux box, I'm sure that you have also subjected yourself to much gnashing of teeth at the lack of a Windows solution to password-less logins into your server. For the uninitiated, password-less SSH allows you to log into a server without manually authenticating yourself.

Choosing the right PHP version for Windows

Submitted by Druss on Sun, 2011-04-24 12:00

PHP provides a number of different versions for install in Windows. There are versions which are tagged with VC6 and other with VC9. There are also thread-safe and non-thread-safe versions of the installer available for download. After some digging and trial & error fiddlery, my conclusion is that VC9 and non-thread-safe are for the Microsoft IIS webserver while the VC6 and thread-safe installers are for Apache and other non-IIS webservers.

Hope this helps :)

Closing all message windows in mIRC

Submitted by Druss on Sun, 2011-04-10 01:31

I was up to no good on mIRC earlier today and found my screen full of message and fserv tabs/windows. While it certainly is fun clicking away at each window and closing it manually, that would only be if I had some sick fascination with RSI. A little digging unearthed a few commands that helped alleviate the process:

Pages

Subscribe to RSS - Windows