User login

Reference

Pubmed notes

A simple way of fetching documents from pubmed, as actually used, for testing purposes anyway:

<?php
  $efetch_url = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=' . $pmid . '&retmode=xml';

// @debug
//  $efetch_load = simplexml_load_file($efetch_url);
// drupal_set_message('<pre>'.var_export($efetch_load,TRUE).'</pre>');
?>

Reference:

Using Drush (experimental release) to add modules from outside a site

sudo ~/drush.experimental.6/drush.php -r /var/www/drupal-6-agaric-core/drupal pm install link

On sharing the command with an esteemed Agaric colleague, I realized that the instructions had to be tweaked slightly... for another person, even if run

Open Archives style metadata exposure for Biblio module

There is a module to provide an Open Archives Initiative Protocol for Metadata Harvesting (OAI-PMH) interface to the Bibliography module.

http://drupal.org/project/oai2
http://www.openarchives.org/pmh

Drupal use schema for uninstall

Even some quality modules by very good developers are still using db_query("DROP TABLE {example_table}"); rather than the schema just defined and properly used by the update.

But sure enough, the hook_uninstall API documentation example shows the use of schema:

<?php
function example_uninstall() {
  drupal_uninstall_schema('example');
  variable_del('example_var');
}
?>

Resolution

Moving mail handling to a new server

Some quick notes from the process, captained by Stefan.

Change the MX Record:

Old Information
Domain Preference Exchanger

New Information
Domain Preference Exchanger
mtgrading.com 10 mail.agaricdesign.net

Or actually, keep the old one, but set it at a higher number (and so lower preference).

mtgrading.com 90 mx.mtgrading.com

Resolution

Database user creation and permissions

CREATE USER '6-agaric-core'@'localhost' IDENTIFIED BY '*************';

GRANT USAGE ON * . * TO '6-agaric-core'@'localhost' IDENTIFIED BY '*************' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;

CREATE DATABASE IF NOT EXISTS `6-agaric-core` ;

GRANT ALL PRIVILEGES ON `6-agaric-core` . * TO '6-agaric-core'@'localhost';

Resolution

Git profile project in an SVN Drupal site

Note: This approach should be considered deprecated in favor of a pure Git system.

For installing the SCF profile for use as part of an existing site managed in SVN:

Git it:
http://sciencecollaboration.org/node/5

cd profiles/
git clone git@github.com:scf/scf.git
svn propset svn:ignore .git .
svn add scf
"Science Collaboration Framework (scf) profile added."

Embed, block, or page View with Panels?

Andy Laken explains: block view uses the configuration in the block portion of the view, and embed uses the page configuration options even if page is not checked off.

Resolution

Syndicate content