Howto

Vim modelines

Type
Status
Concerning

I edit a few different types of files with a few different indentation styles. Now, my favorite text editor is vim, and that supports using a config file to set your indentation style, but since I use a few of them, one config file won't work for me. Now, I'm sure you could also set a different style per filetype -- for example, python indents two spaces, C uses tabs displayed as four spaces. But that doesn't work, because different projects sometimes choose different styles, even though they use the same type of file.

Unattended DVD Ripping

Updated: Sun, Feb 14, 2010 - 2:42am
Type
Status
Concerning

I recently purchased a large number of movies from a very cool video store which was closing. It was a terrible disaster. Sure, I got a bunch of DVDs from it. But I did not gain access to any new movies -- I could have rented all these any time I wanted. Instead, the amazing collection in the possession of the video store is now split up in the hands of a bunch of individuals like me. It is not a collection anymore, and is far, far less useful to the community.

It's All Text!

Type
Status
Concerning

One of my favorite Firefox extensions these days is It's All Text!. This extension lets you use alternative text editors to edit the text in text boxes.

Now, big wimps like to edit their text in WYSIWYG editors. Not me. I like to use vim.

Okay, so "It's All Text!" allows us to give a command line to start a text editor. What command do we give to start vim?

Fun with acpid

Updated: Fri, Feb 12, 2010 - 2:29am

It doesn't seem glamorous, but it is indeed possible to have fun with acpid. acpid is a daemon that sits and listens for acpi events from the kernel. When it gets an event, it fires the rules you have configured.

Okay, so what's the use?

Drupal intra-linking problems solved

Updated: Thu, Feb 11, 2010 - 3:37pm
Type
Status
Concerning

Sometimes, when using Drupal, I find that I want to link to some of my older posts. However, I often have a couple of development checkouts of my site. Consider the case where I have the live site, which can be reached at http://iheartryan.com/, and I have a development checkout, http://localhost/iheartryan/. Now, say I'm trying to link to my Rhythmbox Playlist Folders post. How should I make this link? I have a couple choices:

  1. http://iheartryan.com/post/rhythmbox-playlist-folders
  2. /post/rhythmbox-playlist-folders

utf8 lessons

Type
Status

The other day, I was working on a Drupal site. I based the theme for the site on the Zen theme (ver 1.1).

I was experiencing a very strange problem: I could not save any of the changes I made on the theme configuration page. I tried to change the logo. I tried to make it display the slogan. Nothing worked.

Firefox SSL Indication

Type
Status
Concerning

Firefox 3 is, in several ways an improvement over Firefox 2. But there are just a few things that drive me crazy. One of them is the way it handles the display of sites using SSL.

Firefox DNS Caching

Type
Status
Concerning

The Domain Name System is a distributed database that maps names to computers' IP addresses. It's one of the cornerstones of the Internet.

Because it is so important, there are many standard ways of working with it. Some people, for example, may want to cache their DNS results if they have a slow connection to the Internet, or to their DNS server in particular. Linux, for example, provides caching hooks right in the GNU C library. Windows also provides DNS caching.

Allowing git:// urls in the Drupal Link module

Updated: Sun, Jul 27, 2008 - 6:33pm
Type
Status

I wanted to give you all anonymous access to my public git repositories, and I wanted to add a special field in my Drupal "Blog Post" content type to allow it.  (Results can be seen in my post about dbgp).  It was all pretty standard.  I added a field to my content type.  The field was of type "Link", as provided by the Drupal Link module.

Syndicate content