My sync2dev script on Mac

# Sync database
# Fix before receiving files
# Get the files
# Fix after receiving
# Drupal 7 variant of cache-rebuild
# Login to site
# Make sure drush finds the features drush extension
# List features with changes

Ajax nukes reference based form fields

Having nodes using fields for referencing content like og, entity reference, node reference, etc breaks apart when using ie file upload widget which produces

An illegal choice has been detected

Some of the issues below made progress.

Drupal core

https://www.drupal.org/node/1045208

https://www.drupal.org/node/1045208#comment-7927057

Views

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/my-site',
  '%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.

The state of ReST in Headless Drupal 8

Drupal 8 ReST

One of the Drupal 8 initiatives was to make "headless" Drupal core work out of the box. Drupal now has a ReST API.

This allows you to use all the Drupal 8 features to edit your content but present the content not only on a Drupal frontend but also on mobile apps or anything else that can work with JSON data.

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.