What location aliasses are available for drush rsync

What are the values for drush rsync in %notation?

drush @site.prd php-eval "return _core_path_aliases()"
array(
  '%root' => '/home/login2/ctcn-public.mijnlieff.nl',
  '%site' => 'sites/default',
  '%modules' => 'sites/all/modules',
  '%themes' => 'sites/all/themes',
  '%files' => 'sites/default/files',
  '%private' => 'sites/default/files/private',
  '%temp' => '/tmp',
)

Updating mysql for Drupal 8

As Drupal 8 now required a mysql version higher then my current manually installed version 5.1.46 released on April 23, 2010 I have to try yo get rid of that version and install the latest through homebrew.

Simple CORS using .htaccess file.

Cross-Origin Resource Sharing (CORS) allows web browser to validate and web server to provide a way to consume and provide cross-site content and access controls.

To make Drupal 8 respond to remote calls you should wait for the core issue https://www.drupal.org/node/1869548 which is postponed until Drupal 8.1.x or wait for the D8 version of https://www.drupal.org/project/cors

Fix git apply empty result using patch

http://marymaking.blogspot.nl/2009/11/falling-back-into-space-portraits.html

When applying a patch using git it sometimes fails. Then fallback on to the patch command.

Delete and edit comments on closed node

Node closed comment delete

Having a forum you needs quick deletions of improper comments.

In Drupal 7 and Drupal 8 you have to visit admin/content/comments to do so. But then you loose the thread.

You could review and use this patch or add this to your custom module. The first needs review and testing. The later needs a Drupal coder.

Which route belongs to which path fragment?

Visualization some complex part of Drupal is helping understand Drupal better. This is about the menu tree using Graph Viz for a static SVG diagram and D3JS for a dynamic version.

Using dreditor to triage issues

dreditor triage
For the mentoring sprint on friday @ https://amsterdam2014.drupal.org we'd like to use the dreditor tool plus one of its new pull request feature. To install this just visit https://dreditor.org/development/build and pick your browser icon from #93 Add support for stock responses (macro/templates). When it states 'Rebase needed' just ping ClemensTolboom @ irc as dreditor is still evolving.

Extending a Widget for numeric fields.

range versus number field
Looking for a HTML range field in Drupal 8 core I did not found one. First I tried to alter Number Widget but that was wrong. Just extend a suitable widget. The code is very short. But the display is not as good as one needs. Where is the min and max value? And the current value? The specs @ w3c html5 forms input range has some user agent rendering which does not give min, max or current value hints.

number field.

It's alive in space

Part of the dependency graph
Experimenting with the index file of https://github.com/clemens-tolboom/uml-generator-php lead to a nice animation.

Interested in ReST and HAL?

http://www.droidforums.net/galleries/photos/hal-9000.4475/
  1. Checkout the issue queue for HAL and ReST.
  2. Use the quickstart tool: https://github.com/build2be/drupal-rest-test.

Need HAL?

  1. Install HAL Browser on your site to see what we got till now.
  2. cd drupal-root