wiki:members/GRIP-UQAM

Version 74 (modified by Grip Uqam, 8 years ago) ( diff )

--

TranslatedPages

Who we are?

http://gripuqam.org We are french speaking so this page will be translated unsing the advise in faq/translate/pages

Wiki page we read or collaborate to write @ mayfirst

Tickets we follow

Taged with GRIP-UQAM

Results (1 - 10 of 21)

1 2 3
Ticket Modified Resolution Owner Summary
1 2 3

Taged with python, tendenci, django, pyramid, php, drupal7, drupal, golang, fastcgi, chelsea, ossie

Results (1 - 10 of 1097)

1 2 3 4 5 6 7 8 9 10 11
Ticket Modified Resolution Owner Summary
1 2 3 4 5 6 7 8 9 10 11

Reported by us

No results

Drupal requirements

  • Drupal 8.0.5 needs Postgresql >= 9.1.2 instead of 8.4.20 #11587, #11522

Taged with GRIP-UQAM with description

Results (1 of 21)

1 2 3 4 5 6 7 8 9 10 11
Ticket Modified Resolution Owner Summary
1 2 3 4 5 6 7 8 9 10 11

Development Tool

Pages we may need one day

Some PostgreSQL commands

  • $ psql postgres --command="\l" # do see DB on server and parameters
  • postgres:~$ createuser -D -R -S <UNIX user>
  • postgres:~$ createdb -O <postgres user> <database name>
  • $ pg_dump -Fc --verbose --file=<file name (.data)> <database name>
  • $ pg_restore --verbose --no-owner --no-privileges --dbname=<database name> <file name (.data)> # restore the data base as a different user eg. to clone a Drupal website

Javascript: from npm to bower

  • $ nice -n 127 ionice --class=idle npm install bower --save
  • $ nice -n 127 ionice --class=idle npm update #update!
  • or (like there is something to check here)
  • $ nice -n 127 ionice --class=idle npm update bower #update!
  • .bowerrc
  • $ nice -n 127 ionice --class=idle nodejs node_modules/bower/bin/bower init # to start a new empty bower.json
  • Install some libraries...
  • $ nice -n 127 ionice --class=idle nodejs node_modules/bower/bin/bower update --production #update!

Example .bowerrc for Drupal 7

{
  "directory" : "../../web/sites/all/libraries"
}

Install Javascript libraries with Bower package manager

#$ nodejs node_modules/bower/bin/bower install --save "jquery#1.4.4" # Drupal 7 version
# or (good idea (checked))
nodejs node_modules/bower/bin/bower install --save jquery#~1.4.4 # Drupal 7 version
nodejs node_modules/bower/bin/bower install --save jquery-colorbox # depends on jquery
nodejs node_modules/bower/bin/bower install --save ckeditor#full/stable
  • $ ls bower_components/
  • or
  • $ ls ../../web/sites/all/libraries

Example bower.json for Drupal 7

{
  "name": "drupal7",
  "private": true,
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "../../web/sites/all/libraries",
    "test",
    "tests"
  ],
  "dependencies": {
    "jquery": "~1.4.4",
    "jquery-colorbox": "^1.6.3",
    "ckeditor": "#full/stable"
  }
}

Example composer.json for Drupal 7

{
    "require": {
        "drush/drush": "^8.0",
        "ezyang/htmlpurifier": "^4.7",
        "kraksoft/colorbox": "^1.5",
        "pelago/emogrifier": "^1.0",
        "tinymce/tinymce": "^3.5", # remove this line, this version is not available through composer!
        "ckeditor/ckeditor": "^full/4.5.1"
    }
}

Some Composer commands

  • $ ./composer.phar self-update
  • $ ./composer.phar update

Cron

  • Consider output to an (even empty) file a good practice allowing to check last time the command has been executed. This is because some subtle errors may prevent execution of cron commands, eg. see #11534
    ... &> cron/results/<file>
    
  • Consider nice and ionice to give priority to interactive tasks
    nice -n 127 ionice --class=idle ...
    

Some Drush commands

  • drush -v help
  • drush -v status
    • drush -v core-status
  • drush -v status-report
  • drush -v elysia-cron
  • drush -v core-cron
  • drush -v pm-refresh
    • drush -v rf
  • drush -v pm-download
    • drush -v dl
  • drush -v pm-updatecode
    • drush -v upc
  • drush -v pm-update
    • drush -v up
  • drush -v pm-list
    • drush -v pml
    • drush --status=enabled pm-list
  • drush pm-info <admin_menu|...>
  • drush pm-enable
  • drush pm-disable
  • drush -v updatedb
    • drush -v updb
  • drush libraries-list
  • drush -v l10n-update-status
  • drush -v cache-clear
  • drush -v bam-sources
  • use --uri="http://example.org" then sending mail for simplenews https://www.drupal.org/node/1776536
  • nice...

Installing Drupal 7 or 8 with Composer (on a development server outside MayFirst)

$ composer create-project "drupal-composer/drupal-project" <directory>

Using symlinks to avoid duplication of code and save server memory

Installing Drupal 7 or 8 with Drush (on a development server outside MayFirst)

$ drush help site-install
$ drush dl drupal-7
$ cd drupal-7.43/
$ drush site-install minimal --db-url=sqlite://sites/default/files/.ht.sqlite
$ drush rs

git for Drupal

$ git ls-remote --tags <repository> | sort --key=2 --version-sort | less
$ git clone --branch <branch or tag> <repository> <directory>

CKEditor for Drupal 7

Lets'use wysiwyg module

  • Supported Editors Matrix https://www.drupal.org/node/596966
  • $ drush dl --select wysiwyg
  • $ drush dl wysiwyg-2.x-dev
  • $ drush en wysiwyg
  • $ drush status-report
  • .../sites/all/libraries$ ln -s .../bower_components/ckeditor/ .

Does not work! Brobably because of symbolic links... better use .bowerrc to set target directory as suggested above.

http://cdn.ckeditor.com/4.5.4/full-all

Useful Debian Packages (Chelsea)

Note Altern-C

To keep in mind

4875 id=4875 No results No results No results No results

drupal.org followup

PHP Libraries

Hybridauth

http://hybridauth.sourceforge.net/userguide.html

$ composer require hybridauth/hybridauth

Google::

  • easy

LinkedIn::

  • easy

OpenID::

  • easy (no secret information needed)

Yahoo OpenID::

Microsoft Live::

  • Not clear if the domain root URL can be used as redirect URI
  • Using the domain root URL as redirect URI results in an error at the time of clicking the icon on the registered web site
  • It is not possible to register inside Microsoft developper website a redirect URI similar to the one used for Google, because some caracteres are not accepted.
  • one could try to make a simpler redirection URI which would redirect to the one simililar to the one used for Google.
  • microsoft oauth2 application id
  • Getting Your Client ID for Web Authentication
  • https://account.live.com
  • Mes applications

Facebook

Drupal Modules

Tooltip example 2b

"Tooltip 2g" Tooltip example 2g

"Tooltip 2h" Tooltip example 2h

Tooltip example 2e

Tooltip example 2f

Tooltip example 2c does not work

multiline` Tooltip example 2d

Tooltip example 4a

#!span title="Tooltip 2a" Tooltip example 2a

multiline tooltip" Tooltip example 3a

multiline tooltip

Tooltip example 3b }}}

D7 ordered Drupal 8 Drupal 7 D8 ordered
Core
Actions
Activity Tracker
Aggregator
Automated Cron
Ban
Block
Book
Administration
Administration menu Admin Toolbar
Admin Toolbar Extra Tools

Hybridauth

http://cgit.drupalcode.org/hybridauth/tree/README.txt?id=refs/heads;id2=7.x-2.x

Inside Drupal

Entities

Note: See TracWiki for help on using the wiki.