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.

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

Day-to-day usage of Gnucash for a Worker Cooperative

To view an account with all its subaccounts, go to the main Accounts tab, right click on the account you want to view, and select "Open SubAccounts".

For example, to see the checking account including each member's budget, go to Assets:Current Assets:DCU Checking and Edit > Open SubAccounts (or right/option click as mentioned).

Getting started using GnuCash for a Worker Cooperative

A lot of this will apply for any small business (and won't apply to huge worker cooperatives, although technically our three-member collective is a multinational).

How to programmatically rename a content type (change node type machine name)

Set old_type if you want to programmatically update a node type / machine name.

(This is not about changing the type of a node, but changing what type is called on the machine-info level.)

$type->old_type is what node_type_save() checks for when updating a node type, if it's not set it will create a new node type even if orig_type is set to an existing bundle. So really all you need to do right before saving a modified content type is set the old_type to the orig_type, such as:

Getting started with Behat testing for Drupal

Behat is a tool to support behavior-driven development in PHP. Behavior-driven development, in turn, is a set of practices and tools to bring leadership, technical, and other participants in a software project to the same understanding of needed outcomes. The key to this is to describe what people should be able to do with the application in language that all participants understand. The role of tools like Behat is to enable these human-readable sentences to be run as machine-readable tests.

Social Media Profile Links as a field type for Drupal 7 content

What we're looking for is a way to automatically display links on a Drupal site to people's profiles on known social media sites in the way they expect, e.g. @mlncn for Twitter, +ben.agaric for Google Plus, and whatever the heck for Facebook. Icons a plus.

Evaluated https://www.drupal.org/project/social_profile_field and was not impressed at all; both the inputter's user interface and the display are sorely lacking.

Configure Memcache on a Drupal site

This has to be done for each site. This is after installing Memcache on your server.

Memcache module

Then, in settings.php, add:
{"cc_re__cc_re__cc_by_3_0": ["0<br />\nU.S.A<br />\n+1-774-286-1770<br />\n<a href=\"http://agaric.com/contact\">Email</a></p>\n  </div>\n\n  \n</div></div> <!-- /block-inner, /block -->\n\t\t\t\t   </div> <!-- /#footer_middle -->\n\t\t\t\t\n\t  \n\t\t\t</div>\n\t\t\t<div class=\"left right\">\n\t\t\t\t\t\t\t\t   <div id=\"footer_right\" class=\"region region-footer_right\">\n\t\t\t\t    <div id=\"block-block-3\" class=\"block block-block region-odd odd region-count-1 count-7\"><div class=\"block-inner\">\n\n      <h2 class=\"title\">Copyright</h2>\n  \n  <div class=\"content\">\n    <p><a rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\"><img alt=\"Creative Commons License\" src=\"http://i.creativecommons.org/l/by/3.0/88x31.png\" /></a> Except where otherwise noted, content on this site is licensed under a <a  rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\">Creative Commons Attribution 3.0 Unported License</a>.</p>\n  </div>\n\n  \n</div></div> <!-- /block-inner, /block -->\n\t\t\t\t   </div> <!-- /#footer_right -->\n\t\t\t\t\t\t\t</div>\n\t\t    </div> <!-- /#footercolumns -->\n\n\t\t<div class=\"clear-block\"></div>\n\n\t\n\t\t</div> <!-- /.cont", "\t\t\t\t\t\t   <div id=\"footer_right\" class=\"region region-footer_right\">\n\t\t\t\t    <div id=\"block-block-3\" class=\"block block-block region-odd odd region-count-1 count-7\"><div class=\"block-inner\">\n\n      <h2 class=\"title\">Copyright</h2>\n  \n  <div class=\"content\">\n    <p><a rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\"><img alt=\"Creative Commons License\" src=\"http://i.creativecommons.org/l/by/3.0/88x31.png\" /></a> Except where otherwise noted, content on this site is licensed under a <a  rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\">Creative Commons Attribution 3.0 Unported License</a>.</p>\n  </div>\n\n  \n</div></div> <!-- /block-inner, /block -->\n\t\t\t\t   </div> <!-- /#footer_right -->\n\t\t\t\t\t\t\t</div>\n\t\t    </div> <!-- /#footercolumns -->\n\n\t\t<div class=\"clear-block\"></div>\n\n\t\n\t\t</div> <!-- /.content clearfix -->\n\n      </div></div> <!-- /#footer-inner, /#footer -->\n\n  \n  <script type=\"text/javascript\" src=\"/sites/default/files/js/js_395232cefecec8aaab5511b6cb60f003.js\"></script>\n<script type=\"text/javascript\">\n<!--//--><![CDATA["], "copyright__copyright__copyright": ["'s profiles on known social media sites in the way they expect, e.g. @mlncn for Twitter, +ben.agaric for Google Plus, and whatever the heck for Facebook. Icons a plus.\n\nEvaluated https://www.drupal.org/project/social_profile_field and was not impressed at all; both the inputter's user interface and the display are sorely lacking.\n\nConfigure Memcache on a Drupal site\n\nThis has to be done for each site. This is after installing Memcache on your server.\n\nMemcache module\n\nThen, in settings.php, add:"]}