Kevin Marsh

Vim Tips

CTRL + A Increment number under cursor
CTRL + X Decrement number under cursor
CTRL + Y Duplicate character above cursor
CTRL + X CTRL + L Complete line
' . Jump to last modified line
` . Jump to last modified character

Speeding up Textpattern

To speed up Textpattern’s loading of pages, edit the file

Replace: $out['ip'] = @gethostbyaddr($_SERVER['REMOTE_ADDR']); With: $out['ip'] = ($_SERVER['REMOTE_ADDR']);

On line 18 of textpattern/publish/log.php

Note: Log entries will only display an IP now, instead of a hostname. But if you use another package to generate statistics (i.e., Urchin on Textdrive) you can still view that information there.

(This disables a DNS lookup for every IP that hits your site. Seems to work pretty well here… pages load up much quicker, for me anyways.)

SongMeanings Improvements

I’m not sure how active the guys are with development, but now that SongMeanings is back and (relatively) stable, I got to some solo-brainstorming about some things. Mostly ideas of features, but also some improvements and suggestions.

  • An open, XML-based API
  • Artist/lyric recommendations
  • Collaborative discography
  • Better commenting
    • How useful is a page with 600 comments?
    • Separate ‘meaning’-comments from ‘I like this song’-comments
  • More schemes
    • Collaborative
  • Push journals more
  • Clean URLs
  • Better user ‘homepages’
    • Incorporate journal
    • http://www.songmeanings.net/~username could work