User login

How to

Information on how to do something... anything.

Execute command-line statements from within the vi editor

It is very simple and occasionally useful to access the power of the shell from within your vim text editor. In normal mode (esc from insert mode), simply type, colon included

:r

Commands must be preceded by a bang symbol (exclamation mark). Some examples:

:r !date
Wed Apr 21 23:04:22 PDT 2010

Personally, i'll find this useful simply for putting in paths from the file system that i may not be certain of but that bash's tab autocomplete will be able to verify for me.

Updating old Agaric projects to new Rake system

Superseded, see setting up new Ubuntu computer Agaric style.

This is Agaric internal documentation, related to Deploying the Agaric Way. Make sure that you have a checkout of the siteproj 'base' project. If not, git clone it into your file system.

These instructions should be good for all legacy projects:

Redirect multiple domain names to single canonical domain for your site

This Apache rule describes how to have all selected domains and subdomains for a site come up in the site visitor's browser address bar as your one chosen canonical domain.

Here is an all-in-one-line approach:

Drush database commands

Update: See http://data.agaric.com/use-drush-sync-database-from-one-site-another

[Note: currently written mostly from memory after using the commands, not copy-pasting proven commands as i usually do]

How to become a channel operator

in

How to become (or make someone else) a channel operator, for a channel you have registered: use the form "/msg chanserv op #chatroom nickname", for instance:

/msg chanserv op #agaric ben-agaric

This will op people in channels where you have this permission, which would seem to include unofficial channels.

For registered channels you have to be the one who registered (or maybe other things), and you need to be a registered user yourself.

Creating a Subtheme in Drupal 7

Bear with us, and Drupal 7. There are some non-intuitive steps in the subtheming, but the power, simplicity of modifying, and relative ease of upgrading is worth it.

Drupal Community Participation Resources

Initial Drupal community experiences and getting past the "I suck" threshold

Includes an excellent drawing representing her first five minutes in the Drupal community, which is almost everyone's first experience on IRC:

Diaries of a Core Maintainer #6: A tale of two developers

A groups.drupal.org wiki page that needs a lot of love:
How to make it possible to contribute to the Drupal project with small tasks in a few minutes?

Remove page headline for a given content type

To remove the page title (the one that prints in the page itself, not in the browser bar) for a specific node type, use this simple code in your template_preprocess_page() function.

Make sure you wrap the code that outputs the header in page.tpl.php in a conditional if statement, so that if there is no title it does not output the <h1></h1> tags.

This code goes in template.php of a theme named "example":

Select multiple users to delete sorted by registration date and with one profile field (Drupal 4.7)

Side note: Deleting directly with MySQL:
DELETE p, u FROM dru_profile_values p LEFT JOIN dru_users u ON p.uid = u.uid WHERE u.created > 1317450417

On to the long obsolete main show:

If you are unfortunate enough to be doing anything on Drupal 4.7, here is a bit of empathy.

If you have a 4.7 site, it probably has a lot of spam registrations. Drupal 4.7 doesn't have a multiple user delete. And Userplus module doesn't provide a very useful list in its multiple user delete.

Syndicate content