User login

Agaric

Set a git commit message in bash but also go to Vim for further editing

A colleague insists that messages abide by the 72 character limit advisory, and i want to change my habit to get the files-changed and, just as important, files-left-out information that git commit will give in the Vim editor.

I'm still a bit addicted to the git commit -m "Message here" workflow of entering messages right in the command line, and it's more than just habit: it is very useful to be able to look at the git add -p record.

Have menu local tasks (view, edit, etc. tabs) show menu item description as tooltip

Most menu items in Drupal 7 show a link tool-tip, or title, but local tasks (the tabs you are most used to seeing as the edit link tab on full node pages sadly do not follow this sensible pattern.

Until Drupal core is fixed so that menu item "description" is applied to title attribute of menu tab links", here is a fix for Drupal 7. Change this to your custom theme's name (replace 'example') and drop into your theme's template.php file:

Shaping Drupal's Future (presentation description)

Drupal does not belong to the Drupal Association. It does not belong to Node One, Phase Two, Chapter Three, Four Kitchens, Palantir, Acquia, or even Agaric. It does not belong to Dries— except the name. It belongs to you, and every other person who steps up to claim it, equally.

What does it mean to take ownership?

Drupal Training Programs

Agaric does trainings (in addition meetups and camps and involvement in events and programs related to the the Definitive Guide to Drupal), but we haven't started a formal public program. Update 2014: OK we've done enough, especially with OwnSourcing, to consider it semiformal. Contact Agaric or contact OwnSourcing for Backbone, Drupal 8, or other exciting trainings.

How Clientside Validation's JavaScript Works

Everything added as a method only exists elsewhere as a type of rule (in PHP). See for example these searches.

PHP Arrays plus symbol (+) syntax

http://www.php.net/manual/en/language.operators.array.php

With the $array1 + $array2 syntax, anything with a text key in $array1 is kept, at the expense of anything with the same key in $array2.

Download and install Drupal in one step

Drubuntu has a 'site add' functionality, but aside from being limited to Drubuntu it does as a multisite (no thanks) with the site's settings.php and files weirdly symlinked to a directory sitting alongside the download itself. (Ah, i just realize that it probably adds all sites to this one multisite.)

Best practice for an upgraded site to define RDF mappings for RDFa output?

A site that has been upgraded from Drupal 6 to Drupal 7 has not even had this code from standard.install in the Standard profile run yet. Can generic mappings like this be easily taken care of in other custom configuration of RDF or should this (plus more?) go in an update hook?

Apache installed by Drubuntu has segfaults until permissions fixed on sites-available file

If you have installed Drubuntu (including/especially using my D7-ready sandbox), it is possible that the permissions will not be set correctly on /etc/apache2/sites-available/drubuntu

tail -f /var/log/apache2/error.log had segfaults in it
checking where

Giving that file read access

Two main issues remaining to be fixed in Drubuntu: NetworkManager conflict and file permissions

Need to fix in Drubuntu

  1. (Some) Drush scripts writing with no read permissions
  2. NetworkManager rewriting /etc/resolv.conf

this line needs to be added at the top via sudo vi /etc/resolv.conf:
nameserver 127.0.0.1

See http://data.agaric.com/fixing-network-manager-overwriting-dns for the lasting fix.

Syndicate content