Skip to main content

Notes

vimrc

"""" my vimrc

" GENERAL OPTIONS
set nocompatible " use vim defaults
filetype on " detect the type of file
set enc=utf-8
set history=1000 " How many lines of history to remember

Building digikam on slackware

Digikam doesn't come by default with slackware and has a number of dependencies. However, with the great scripts from slackbuilds.org, getting digikam up and running is pretty easy. Here are the programs that need to be built, in order, to get digikam up and running.

Genesis subtheme for Drupal

Download/install genesis folder to sites/all/themes

Move genesis_subtheme folder up one level so it's also at sites/all/themes

Change name of subtheme folder to name of your choice.

vim tips

* key searches for the word under the cursor, use ”#” to do the same thing backwards.

% key on brackets {} () [] will find the matching one.

. key will repeat last change

Drupal Family History - Aliases, Redirects and Taxonomy

Full listing and details of the aliases, redirects and vocabularies used in the Drupal family history site

Drupal Family History Project - People

Intro

Tagging items to people and browsing items related to people were first implemented using taxonomy and later changed to nodereference.
Current implementation with node reference

ubuntu 9.10 on netbook with broadcom sta

I installed Ubuntu 9.10 UNR and had trouble getting the Broadcom wireless driver to work.  The broadcom driver package is supplied with Ubuntu, and I could see it under "Hardware Drivers" but

archive block - how to sort with most recent months at the top

By default the drupal blog archive block listing shows the oldest month at the top.

drupal core upgrade - how to

When I started using drupal, I wasn't sure the best way to upgrade drupal core.  I tried untarring files directly over the present directory, or untarring locally and then using an sftp client

Virtualbox shared folder setup

This is how I set up a shared folder using VirtualBox with a Windows host and a Linux guest system.

 

adding files in bulk to svn

One issue I've add, especially with updates to drupal modules, is the presence of many new files that need to be added to version control.  It's a pain to go manually directory by directory an

vim as password manager

I used the openssl vim plugin to edit files protected by ssh.  

Plugin is here: http://www.vim.org/scripts/script.php?script_id=2012

Displaying or removing author information on drupal content types

Controlling whether or not author and date information shows on a particular content item is set in the theme configuration.

Change file permissions recursively on directories, or files, only

find . -type d -exec chmod xxx {} \; this finds all directories (excluding files) starting at present working directory and recursively changes permissions to xxx.

Drupal cron run fails, cron_semaphore

I recently had a case where cron failed to run on a drupal site; however, there were several sites on the same server, and cron was only failing on one.

IMCE

Summary: IMCE is an image/file browser, allowing plain text areas or rich text editors to manage and insert images.

Term Node Count

Project page: http://drupal.org/project/term_node_count Overview (from project page): This module allows you to display node count values for your terms in views.

Mysql notes

My cheatsheet for (usually fairly simple) mysql commands, to create databases, drop them, back up, do search and replace, etc.

Mount cdrom/iso image as a loopback device

How to mount and access an iso file, like a CD of a linux distribution, without first burning a cd and then accessing the cd

How to use UTF 8 locale in Linux

Setting up UTF8 as the default locale in Slackware and Debian

Apache, MySQL and PHP

Apache, MySQL and PHP are all standard on a Slackware install. Here are the edits I've needed to get things working properly.

Mysql search and replace

How to search and replace in mysql.

Scanner - Epson 1260

I have a USB Epson 1260 scanner. Here's how I got it to work. Sane (Scanner Access Now Easy) is the main back-end for scanner support.