Vim: Scrolling a file with no line-breaks

Submitted by Druss on Sat, 2010-08-14 23:56

When a file has no line-breaks and is just one single line, navigating line by line is obviously not an option. Some editors wrap the text and treat each pseudo-line as a separate element and allow us to scroll through them. Others don't. Vim, by default doesn't.

Or to be more precise, Vim (and GVim) do not allow us to scroll through such files using the arrow keys. Instead, the following short-cuts do the business:

Scroll up: g, k / g, up
Scroll down: g, j / g, down
Beginning of the line: g, ^ [i.e. g, SHIFT + 6 on a keyboard with a US layout]

Windows 7: ping outputs a general failure message

Submitted by Druss on Sat, 2010-06-05 10:32

Here I was, earlier today, simply trying to swap the default gateway of the Ethernet card of my Windows 7 box, and ran into the following peculiarity. First off, as soon as I swapped the gateway, my Ethernet connection went down. To investigate this, I popped into the command-line and tried pinging the new gateway only to run into the error message below:
General failure.

Configuring Samba share on Lucid

Submitted by Druss on Wed, 2010-05-05 00:00

I performed a fresh install of Kubuntu's new distro - Lucid whatever - today. As per usual, there is no front-end to configure Samba and I had to do it the old-fashioned way. The following are steps that should walk you through a basic configuration on creating a share that can be accessed from Windows:

  1. Install Samba using sudo aptitude install samba smbfs
  2. Navigate to /etc/samba/

Jojo's bizarre Bizarre adventure

Submitted by Druss on Sat, 2010-04-24 00:06

For the last couple of days, I've been reading a manga named JoJo's Bizarre Adventure. It's alright, I guess - decent premise with slipshod execution. But something that I initially perceived as humourous became disconcertingly distracting enough for me to post about it. This certain something is to do with the majority of the character names in the manga being named after western music artists.

Gmail's account suspension quirk

Submitted by Druss on Fri, 2010-04-16 22:32

Earlier today, I set up a gmail account for an elderly acquaintance of mine. Due to his really forgetful nature, once I created his account, I logged into it and mailed myself the username and password. As soon as I clicked "send" however, I found that I had been logged out of gmail. Trying to log back in proved futile as I was met with a "This account has been suspended" message!

OOO Calc: Autofilter hiding rows after removal

Submitted by Druss on Mon, 2010-03-01 11:14

Off late, I have had to use OpenOffice.org's Calc quite regularly. While it generally works quite well, it has a lot of wonky little bugs that can be quite frustrating. One of these has to do with the autofilter.

When using the autofilter, you will, on occasion find that once you are done using it and try to remove it, a number of rows, usually empty, will be missing post-removal. The following are steps/tools that might help you recover these rows:

    SotD: Aerosmith - Boogie Man

    Submitted by Druss on Fri, 2010-02-05 01:57

    The Song of the Day (as if I'm holding to my promise of updating this every day :S) is a rather simple but entrancing instrumental by Aerosmith. It's the last track on their Get a Grip release, titled "Boogie Man". I believe that it's based on a Fleetwood Mac song which I've never heard. But it's got lovely atmosphere and I dig the backing bassline muchly.

    Pages

    Subscribe to languor.us RSS