Archive for May, 2005

Copy betwen sessions with vim 2

I often have several shells open with vim instances, but never normally need to copy and paste between them. I use folding, so highlighting the text and using X11's clipboard copies the text, which means I paste:

function MonthView() {
+--188 lines: ------------------------------------------------------
} // END MonthView

It doesn't maintain the fold, because it's just raw text.

Also, I never normally copy more than a single screen of text, so the folding can be turned off, then I highlight the data and it's in the X11 buffer. Middle-click and I paste it, and turn foldingback on.

Today I needed to copy 188 lines (as you see above) between two seperate shells on my laptop. I added this to my ~/.vimrc file:

set clipboard=unnamed

It means when I "yy" or "dd" a line (or "7yy" seven lines...) it dumps it to a globally available clipboard. I think you need to use a version of vim compiled with X support though. Neatomaximus!

Update: 11/06/2005 04:37PM
The original tip indicates you need an X11 binary, and on Ubuntu I found installing "vim-gnome" provided this.

Swiftel hosting; WestNet support 0

Madisons Recruitment is a small business on the same floor as us at work. There's Karen the owner, and Rhee-Ann who's our age. Karen, Rhee-Ann and us boys get on really well, and when they were having some problems with their website hosting I said I'd fire off an email on their behalf to get it sorted. Chris: If you're reading this, why am I doing your job? ;)

They have two domains: madisonsrecruitment.com and madisonsrecruitment.com.au. The .com has content, the .com.au doesn't. They should be pointing to the same public_html directory on Swiftel's webserver, but they're not. I wasn't sure if it was a misconfigured Apache or something else but it now appears they've made multiple users (one per domain) rather than attaching multiple domains to a single user account, which is how we do it at TFG. Clowns.

In contrast I emailed the WestNet team to see if they supplied XML feeds for accuount usage. I was wanting to record and graph with Cacti my downloads and could do that easier if I had access to the raw data, rather than scraping the site. I got a reply from WN after 45 minutes, and the guy actually thought about what he was writing and answered my questions rather that fobbing me off. We use and recommend WestNet to all our customers looking for connectivity, and this is why.

Coolest use of Google Maps 7

This post kicked off my discoveries.

Norfolk Naval Station, complete with several aircraft carriers.

I've just wasted half an hour looking at The Pentagon and the Washington Memorial, Miramar - Fightertown, USA (the former location of "Top Gun", before it moved to Fallon Air Station) and Area 51. It's the white blob in the centre of the screen (Groom Lake).

I also visited a few fun places, including Legoland and Disneyland.

I found it was easier sometimes to go to the city or town (by postcode) and then look around for what I was after. I sometimes used "normal" Google to get an address, and then feed that into the maps.

Make sure you use the satellite view too!

Telstra charges you to pay your bill 5

If you use a credit card to pay your bill, Telstra charges you between 0.63 and 1.68% of the bill cost in "payment processing charges."

I hate Telstra.

Big game ahead of us 0

Liverpool managed to pull back AC Milan to win the UEFA Champions League Cup in a penalty shoot-out. What makes this especially good was they were down 3-nil at half time! The game went to 3-3 before finishing with the penalties.

I saw the last 20 minutes of the first half on the big screen down at the All Night Pizza Cafe on Albany Highway. I grabbed two slices of pizza but when the score turned from being 1-0 to 3-0 I thought it was over. I sent Gordo a message "All over, red rover" (one of my Dad's sayings) and was surprised to get a call at about 5:30AM when the shoot-out started. I watched the tail end on SBS.

We'll have increased expectations tonight at indoor soccer!

« Previous PageNext Page »