Category Archives: Web

Cool Tools: VIM

One thing that I cannot live without is a text editor, namely VIM.  VIM was first released as free and extended version of the VI program found on all Unix machines.  I first cut my teeth on VI when I started my sysadmin career, and switched to VIM a couple of years later.  VIM by default works mostly like VI, but i’ts highly configurable, and has a lot of power, especially when you start working with your .vimrc.  Since starting with the editor, I’ve carried my .vimrc from machine to machine, and company to company.  I’m continually updating it, and while there’s not a ton of stuff here, I thought I’d share it in case someone gets some value:

" Ed Salisbury's .vimrc
" Last Modified: 11/17/11

" Make VIM act like VIM, not VI
set nocompatible

" Set up TABs
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set smarttab
set autoindent
set smartindent

" Set up syntax highlighting
syntax on
filetype plugin on
filetype indent on
set formatoptions=qroc
set cindent

" Misc settings
set number       " Print line numbers
set background=dark
set pastetoggle=<F2>

I’d consider these settings a starting point for doing code/web development. Of course, there are tons of more complicated .vimrc files out there, but this should be good for starters. If you’re interested as to what each of these settings do, you can type :helpin VIM and it will display the help file.

Fun with WordPress / Disqus

So, I just learned tonight that the comments that I had been posting in response to comments people had made were not making it to the web, although they showed up in the dashboard.  Not sure what’s going on there, but needless to say, I was disappointed to find out that the stuff I had commented on never got seen.  I know I’m not the most diligent of responders, but this is ridiculous.  I’m going to make it a point to go through and respond to everyone (again).   This time with feeling!   Thanks for your understanding.

Setting up Differential Backups for Websites

Backup Backup Backup by Topato
Backups. No one likes doing them, but they’re too important not to do. Typically when I’m doing stuff for my websites, I will occasionally do a tar of a directory and save it off, or even set up a script that will do this nightly. Then I have issues with disks filling up, and not wanting to delete my backups for fear of losing something (like the 20 copies aren’t enough!)
Read more »

How to Set Up Virtual Web Hosting with Apache

Apache
Up until a couple of years ago, I used shared web hosting for serving up my various sites. I went through several of them because for whatever reason, they turned out to not be what I wanted. I finally came to the realization that I needed to get my own dedicated host. I found a good provider (The Planet), and started migrating over my websites (along with my friend Chris’ sites). Something I knew I would have to learn is how to set up Apache to be able to do virtual hosting. In this guide, I’ll show you how I did it, and the script I created to make things easier.
Read more »

My Perler Bead Pattern Tool

MegamanLast year, I wrote a tool called PerlerPal, to help make perler beading easier.  It’s been over a year now, and I’m cleaning out my closet, so to speak.  I have moved PerlerPal to it’s new home.   It might move to it’s own domain/site at a later date, but just trying to get things organized here.  Please use this post to comment good/bad about the tool.  I have moved the comments from the old blog (which is going away soon) to here, so the dates will be a little off.

New Site, New Philosophy

So, I’ve been considering registering a new domain for more of the techinical blogging that I do, so, since edsalisbury.com is taken, I got .net and .org, and this blog was formed.  I also coincidently just had my hard drive crash on my main desktop.   I had lots of data on it, and was able to recover most of it.  Details on how I did that forthcoming.  I’ve also been thinking about installing Linux on my main machine.  This would be a huge change, as I have run Windows for many years now.  I’ll of course be blogging about that.  It’s definitely good blog-fodder.  In any case, things will probably be changing a little bit around here, as things are still new and shiny.  Welcome to the new site!