This website is composed of information connected through taxonomy. It is simultaneously a proof-of-concept and a means to allow Agaric to share and store information both within the collective and the world as part of our open documentation philosophy.

User login

This website is composed of information connected through taxonomy. It is simultaneously a proof-of-concept and a means to allow Agaric to share and store information both within the collective and the world as part of our open documentation philosophy.

Drupal in a virtual machine cheat sheet

This cheatsheet presumes you're already set up with VirtualBox and Vagrant, configured for Drupal. (Agaric has our own base box to have a head start on setting up for this purpose, but some of the magic is in the Vagrantfile stored with our projects.)

In a terminal, go to the directory holding your Vagrantfile and your project code. Then the fun begins.

vagrant up

to start the virtual machine.

Overriding Django's admin template from a custom app

If you have tried to override an administrative template in Django using the app directories template loader functionality, you may have found yourself growing frustrated— I mean, you may have found yourself going insane.

The problem was acknowledged but

The order of INSTALLED_APPS is significant! Translations and Templates in Django can be overridden; the first app found will have priority.

Adding an application available to Debian Wheezy to Mint (LMDE)

I very much like having an autocomplete application launcher (one button to launch the launcher, and type a letter or three to select the program you want, and enter to launch it), and Synapse is the best i've used.

With no other recommendations forthcoming from Mint Debian Edition's official package list, and with Synapse clearly stable for Debian, the need seemed clear: add Debian's packages to LMDE in a way that wouldn't cause unintended updates to Debian, rather than LMDE-released, versions of packages which they share.

Using Redshift with Mint on Debian

Redshift is a program that gives your computer screen a dimmer brightness, and indeed a more red hue, at night.

It fails silently on most non-Ubuntu Debian systems. Well, it seems like a silent fail or crash if you don't run the command in the terminal. If you do run the command gtk-redshift in the terminal, the output is perfectly comprehensible:

Initialization of gnome-clock failed.
Trying next provider...
Latitude and longitude must be set.

Set date and time on virtual machine independent of host machine

Our setup is a Debian guest with VirtualBox on an Ubuntu host, but the two basic steps look like they are the same on any combination.

Shut down all virtual machines and close VirtualBox first.

To the main VirtualBox configuration file — ~/.VirtualBox/VirtualBox.xml — and to the specific virtual machine's configuration file — something like ~/VirtualBox\ VMs/somename_default_1415392315537_7406/somename_default_1415392315537_7406.vbox — add the following, identical line into the existing <ExtraData> sections:

Change the date of a node, using the database

Change the date of a node, using the database. XYZ represents the node ID (NID)

cd /vagrant
drush sql-cli
update node set changed = 1450958544 where nid = XYZ;
update node set changed = 1451563344 where nid = XYZ;

This example sets the time for 2 nodes, the first to 47 weeks ahead and the second update line sets the timestamp 50 weeks ahead of todays date, 1/28/2015

http://www.epochconverter.com/

Add a replacement pattern token for a Views field rewrite results

Views fields offer the opportunity to "Rewrite results: Rewrite the output of this field". The option further specifies "Enable to override the output of this field with custom text or replacement tokens." It then provides a textarea with the instruction: "The text to display for this field. You may include HTML. You may enter data from this view as per the 'Replacement patterns' below." The replacement patterns, in turn, have the introduction: "The following tokens are available for this field.

Passing a group object deprecated, pass through the arguments array instead

You've upgraded migrate module from 7.x-2.5-rc2 or such to 7.x-2.6. Your migrations may run, or not run, with this complaining error: "Passing a group object to a migration constructor is now deprecated pass through the arguments array passed to the leaf class instead."

Replace this:

Adding new repositories without getting everything from those repositories

in

Wanted to be able to install selected things from Trisquel, such as IceCat, without changing everything over to Trisquel (yet).

To get access to Trisquel packages, add them to your sources list, add their keyring, and update:

https://trisquel.info/en/wiki/packages-repository

vi /etc/apt/sources.list

sudo apt-get install trisquel-keyring