Posts Tagged "config"

Automatic nginx virtual subdomains with sub-folders or sub-directories

»Posted by on Oct 21, 2010 in Blog | 4 comments

I have a small linode VPS. linode is excellent btw, especially when it comes to upgrading the plan over time. I am not sure if other VPS providers like slicehost do, but when I first checked out linode the plan was 12GB space and 368MB RAM. Now I have a 16GB and 512MB VPS for the same $19.95 price. The yen – dollar exchange rate also helps ;) The common wisdom is that for small VPSes you should run nginx since it is just more efficient than Apache. I also liked trying out new things so that’s what I did. There is a guide out there which was very helpful but I have a lot more experience with apache and its configuration. The guide didn’t help with the below problem. When I researched about automatic virtual subdomains with subfolders I...

read more

How to disable the arrow keys in vi or vim

»Posted by on Jan 13, 2009 in Blog | 4 comments

If you are learning to use vi or vim, one of the recommendations is not to use the arrow keys (cursor keys) but instead use the hjkl keys.  There are two main reasons for this: Speed.  After you learn to use the hjkl keys, they are much faster since your hands can stay on the home row. Universality. In some older systems, vim may not be installed and the original vi doesn’t use the arrow keys. But if you are just starting to learn to use vi, how can you force yourself to use the hjkl keys?  The easiest way is to disable the arrow keys, which is simple if you know how but hard if you are just starting out. To disable the arrow keys, the best way is to use the key remapping functions and save these in your .vimrc file.  If like me, you use Windows, OSX...

read more