User login

Agaric

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.

Exporting Redirects to Webserver Rules the Awesome way

[Note: For non-automatic export of Redirects to Apache rules, see Redirect Export module.]

courtesy Stefan, of course

Resources:
http://php.net/manual/en/book.dba.php

Manual update of git-deployed Agaric production site

For a project named (and with the repository and server user name) 'example'.

ssh [email protected]
cd example
git pull

For the git pull to work your public key must be in /home/vlad/.ssh/authorized_keys on the test server (simone.mayfirst.org). You can get this value from /home/yourusername/.ssh/authorized_keys. (@Stefan can we in some way give people with access to simone access to use it as the vlad user automatically?)

Git remote branches are different on my local compared to server

The local checkout on my computer and the one on the dev server are looking at the same Git repository, but the results of git branch -a (show all remote branches) is very different.

Reason: git pull origin master does not get all the branch and tag information the way git fetch does!

Solution:

git fetch origin

Now git branch -a and git checkout branchicareabout both work.

Syndicate content