Can a Neural Network be Created to Identify the Composer of a Single Song with Python and Tensorflow?

I would like to propose a theoretical question. Recently, I have been attempting to complete an experiment involving a neural network. Here are the parameters for my experiment and the specifications for what I require:

  • The program must be easily run in IDLE using a pip-installed edition of Tensorflow or Keras (running Tensorflow backend).

-In order for the experiment to produce results, I need to be able to change the number of hidden layers in the neural network and the number of nodes per layer.

  • My experiment will involve training the network using 25 songs, 5 per classical composer used and be able to identify the composers of 5 songs. I must not have to install any other tool besides Tensorflow for Python, IDLE, Librosa and/or Keras.

  • I must be able to interpret the guesses provided by the algorithm as direct string responses or numerical responses per composer.

I would appreciate any assistance a developer could offer me on this matter. I am, as of yet, rather inexperienced in such matters and have very little time to find a solution to this problem. Thank you for any assistance you can provide.

Going live via Git and Composer

Can someone explain the roles that Git and Composer have in the process of pushing a localhost build (Drupal 8 in MAMP on Mac) to a live cPanel shared hosting server?

I have SSH / shell access by the way.

Where I’m confused is – should I be committing my entire build to my github repository and then pushing that to a bare/empty public_html

Or do I need to use Composer server-side to do a clean Drupal install which I then push the CURRENT git items too and then upload via ftp the remaining files and folders that comprise the entire site?

Ideally I’m hoping I can git push the Drupal install onto the server as I see version issues with doing 2 separate Drupal installs (1 local and 1 serverside).

And finally – I’ve used CLI Mysql commands to backup my Database. Do I import that into the cPanel or create a fresh DB on the server?

Which then brings up the next question – in what order should all this happen?

For example:

if Git Push is the answer for the ENTIRE build (Drupal install and all files and folders), then do I that Git Push before or after Database creation…

and If Git Push does control the whole transfer – then do I even need Composer interacting with the remote server or does Composer’s roles exist solely on the localhost?

Composer install error “Repository type is not registered”

I want to install Magento for developpement and then production release. So i followed this

When i try to run this :

composer create-project --repository=https://repo.magento.com/ magento/project-community-edition . 

it ask my credential that i fill, it show me this :

Do you want to store credentials for repo.magento.com in /root/.composer/auth.json ? [Yn] Y Installing magento/project-community-edition (2.3.0)   - Installing magento/project-community-edition (2.3.0): Loading from cache Created project in . 

Then i get this error :

[InvalidArgumentException]                                              Repository type is not registered: **my key** 

Could you explain me what’s wrong ?

How to get history of transactions for particular Asset in hyperledger composer?

I have tried below code but i am unable to get transaction history for Specific Asset Can any one help me regarding this issue. /** * Sample transaction * @param {org.acme.Block.orderHistory} purchase * @transaction */

async function orderHistory(transaction) {      const orderNumber = purchase.orderNumber;     const nativeSupport = purchase.nativeSupport;      const assetRegistry = await getAssetRegistry('org.acme.Block.Order')      const nativeKey = getNativeAPI().createCompositeKey('Asset:org.acme.Block.Order', [orderNumber]);     console.log(nativeKey);     const iterator = await getNativeAPI().getHistoryForKey(nativeKey);     let results = [];     let res = {done : false};     while (!res.done) {         res = await iterator.next();          if (res && res.value && res.value.value) {             console.log(res);             let val = res.value.value.toString('utf8');             if (val.length > 0) {                results.push(JSON.parse(val));             }         }         if (res && res.done) {             try {                 iterator.close();             }             catch (err) {             }         }     }      return results; 

Interacting with other business networks: hyperledger composer

I have created 2 business network archives and deployed them successfully. 1) license-transfer-network.bna 2) birth-certificate.bna

The license-transfer-network.bna has an admin card : licenseDept@license-transfer-network

The connection to the network was successfully tested: license-transfer-network Business network version: 0.0.2-deploy.110 Composer runtime version: 0.20.0 participant: org.hyperledger.composer.system.NetworkAdmin#licenseDept identity: org.hyperledger.composer.system.Identity#32e31e2e8d647b1f7d0c9a1c6244c71425e335e8fd9e2497177db10c6822cdfc

and the birth-certificate.bna has an admin card : birthDept@birth-certificate

The connection to the network was successfully tested: birth-certificate Business network version: 0.0.2-deploy.10 Composer runtime version: 0.20.0 participant: org.hyperledger.composer.system.NetworkAdmin#birthDept identity: org.hyperledger.composer.system.Identity#9a8e85e00a78b60da7bc0d6b43a360d1afbda8b45c38af057a39fe785b37c3d5

I’ve followed the tutorial from here : https://hyperledger.github.io/composer/latest/tutorials/invoke-composer-network to interact between the two .bna files. My main doubt is in : Step Five: Bind the identity on network A to the participant on network B 3rd point:see third point

Whose ID do I add in this line : resource:org.hyperledger.composer.system.NetworkAdmin#admin is it licenseDept or birthDept

composer update –no-dev made website super slow

Im new to Magento 2.3,

first I had an issue installing anything through composer because it was saying that my php 7.3 doesnt meet requirements which is 7.1 or 7.2. My php actually 7.1, so I don’t know how it was reading 7.3, anyways I went and edit composer.json and added:

"platform": {              "php": "7.1.25"     }, 

That helped and I was able to install all applications that require composer. After I went to extension manager and decided to install another application through marketplace and got a Readiness Red mark about dependencies issue, obviously because I edit my composer file. So somewhere I read that I should do

composer update –no-dev

, I know stupid and even though after I did

composer update

and everything was installed again, my website became super slow, can’t open extension manager anymore. Please help me fix it.

WordPress with composer alongside M2

I would like to add a WordPress blog to our magento2 site.

WordPress is not officially available as a composer package.

I can create my own package – that’s not an issue.

How would I go about getting this package deployed to /pub/wordpress?

I know I can just put it directly there without using composer and simply add it to the main git repo for my project, but I’d rather stick to having all dependencies managed via composer.

I could also keep it under vendor and somehow symlink it, but my main goal is to have our distribution as smooth as possible.

Will need to take the location of the wp-config.php file into consideration

composer update drupal/drupal does not work : Nothing to install or update

I’ve installed several Drupal 8 site with composer as it is strongly recommended.

I can update modules like this :

composer require drupal/pathauto:1.1 

But I can’t update core with

composer update drupal/core --with-dependencies (as seen in documentation)

or (think should be like this in my case) :

composer update drupal/drupal --with-dependencies 

I try tu update from 8.4.2 to 8.5.0 in this website.

I’ve read a lot of topics on this, I’ve tried :

  • remove folder /vendor
  • remove composer.lock

But it didn’t work.

How can I update my classic Drupal (nothing fancy in it) with composer ? Should I gave up and update with Drush ?

Her is my composer.json

{     "name": "drupal/drupal",     "description": "Drupal is an open source content management platform powering millions of websites and applications.",     "type": "project",     "license": "GPL-2.0+",     "require": {         "composer/installers": "^1.0.24",         "wikimedia/composer-merge-plugin": "^1.4",         "drupal/contact_block": "^1.4",         "drupal/twig_tweak": "^1.9",         "drupal/contact_ajax": "^1.4@beta",         "drupal/pathauto": "1.1",         "drupal/easy_breadcrumb": "^1.6",         "drupal/redirect": "1.1",         "drupal/views_slideshow": "^4.6",         "drupal/bootstrap": "3.11",         "drush/drush": "dev-master"     },     "replace": {         "drupal/core": "^8.4"     },     "minimum-stability": "dev",     "prefer-stable": true,     "config": {         "preferred-install": "dist",         "autoloader-suffix": "Drupal8"     },     "extra": {         "_readme": [             "By default Drupal loads the autoloader from ./vendor/autoload.php.",             "To change the autoloader you can edit ./autoload.php.",             "This file specifies the packages.drupal.org repository.",             "You can read more about this composer repository at:",             "https://www.drupal.org/node/2718229"         ],         "merge-plugin": {             "include": [                 "core/composer.json"             ],             "recurse": false,             "replace": false,             "merge-extra": false         },         "installer-paths": {             "core": ["type:drupal-core"],             "modules/contrib/{$  name}": ["type:drupal-module"],             "profiles/contrib/{$  name}": ["type:drupal-profile"],             "themes/contrib/{$  name}": ["type:drupal-theme"],             "drush/contrib/{$  name}": ["type:drupal-drush"],             "modules/custom/{$  name}": ["type:drupal-custom-module"],             "themes/custom/{$  name}": ["type:drupal-custom-theme"]         }     },     "autoload": {         "psr-4": {             "Drupal\Core\Composer\": "core/lib/Drupal/Core/Composer"         }     },     "scripts": {         "pre-autoload-dump": "Drupal\Core\Composer\Composer::preAutoloadDump",         "post-autoload-dump": [           "Drupal\Core\Composer\Composer::ensureHtaccess"         ],         "post-package-install": "Drupal\Core\Composer\Composer::vendorTestCodeCleanup",         "post-package-update": "Drupal\Core\Composer\Composer::vendorTestCodeCleanup"     },     "repositories": [         {             "type": "composer",             "url": "https://packages.drupal.org/8"         }     ] } 

Error updating modules with composer

I’m trying to update a module with composer. This is the command (but it the same if I try to update another module):

composer update --with-dependencies drupal/geofield_map 

This is the output of composer prohibits:

drupal/drupal  dev-master  requires  drupal/geofield_map (^2.10)  

I obtain these error when I try to update:

Problem 1     - don't install drupal/core 8.6.5|remove drupal/drupal dev-master     - remove drupal/drupal dev-master|remove drupal/core 8.6.5     - don't install drupal/core 8.6.5|remove drupal/drupal dev-master     - Installation request for drupal/drupal dev-master -> satisfiable by drupal/drupal[dev-master].     - Installation request for drupal/core (locked at 8.6.5, required as ^8.6) -> satisfiable by drupal/core[8.6.5]. 

I’m not a “composer expert” and I’m not able to solve it.

Here is my composer.json

{     "name": "drupal/drupal",     "description": "Drupal is an open source content management platform powering millions of websites and applications.",     "type": "project",     "license": "GPL-2.0-or-later",     "require": {         "composer/installers": "^1.0.24",         "wikimedia/composer-merge-plugin": "^1.4",         "drupal/search_api_solr": "^2.0",         "drupal/address": "~1.0",         "mpdf/mpdf": "^7.0",         "drupal/geofield_map": "^2.10",         "drupal/console": "~1.0",         "swiftmailer/swiftmailer": "5.4.5",         "lullabot/amp": "^1.0.0",         "drupal/csv_serialization": "^1.4",         "drupal/core": "^8.6",         "webflo/drupal-core-strict": "^8.6"     },     "minimum-stability": "dev",     "prefer-stable": true,     "config": {         "preferred-install": "dist",         "autoloader-suffix": "Drupal8"     },     "extra": {         "_readme": [             "By default Drupal loads the autoloader from ./vendor/autoload.php.",             "To change the autoloader you can edit ./autoload.php.",             "This file specifies the packages.drupal.org repository.",             "You can read more about this composer repository at:",             "https://www.drupal.org/node/2718229"         ],         "merge-plugin": {             "include": [                 "core/composer.json"             ],             "recurse": true,             "replace": false,             "merge-extra": false         },         "installer-paths": {             "core": ["type:drupal-core"],             "modules/contrib/{$  name}": ["type:drupal-module"],             "profiles/contrib/{$  name}": ["type:drupal-profile"],             "themes/contrib/{$  name}": ["type:drupal-theme"],             "drush/contrib/{$  name}": ["type:drupal-drush"],             "modules/custom/{$  name}": ["type:drupal-custom-module"],             "themes/custom/{$  name}": ["type:drupal-custom-theme"]         }     },     "autoload": {         "psr-4": {             "Drupal\Core\Composer\": "core/lib/Drupal/Core/Composer"         }     },     "scripts": {         "pre-autoload-dump": "Drupal\Core\Composer\Composer::preAutoloadDump",         "post-autoload-dump": "Drupal\Core\Composer\Composer::ensureHtaccess",         "post-package-install": "Drupal\Core\Composer\Composer::vendorTestCodeCleanup",         "post-package-update": "Drupal\Core\Composer\Composer::vendorTestCodeCleanup",         "drupal-phpunit-upgrade-check": "Drupal\Core\Composer\Composer::upgradePHPUnit",         "drupal-phpunit-upgrade": "@composer update phpunit/phpunit --with-dependencies --no-progress",         "phpcs": "phpcs --standard=core/phpcs.xml.dist --runtime-set installed_paths $  ($  COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --",         "phpcbf": "phpcbf --standard=core/phpcs.xml.dist --runtime-set installed_paths $  ($  COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --"     },     "repositories": [         {             "type": "composer",             "url": "https://packages.drupal.org/8"         }     ] } 

[EDIT] If I try to replace “drupal/core”: “^8.6” with “drupal/core”: “8.6.5” I obtain:

 Problem 1     - drupal/core 8.2.x-dev requires symfony/psr-http-message-bridge v0.2 -> satisfiable by symfony/psr-http-message-bridge[v0.2] but these conflict with your requirements or minimum-stability.     - don't install drupal/core-render 8.2.0|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.0-beta1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.0-beta2|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.0-beta3|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.0-rc1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.0-rc2|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.2|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.3|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.4|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.5|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.6|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.7|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.8|remove drupal/drupal dev-master     - don't install drupal/core-render 8.2.x-dev|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.0|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.0-alpha1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.0-beta1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.0-rc1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.0-rc2|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.2|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.3|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.4|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.5|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.6|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.7|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.8|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.9|remove drupal/drupal dev-master     - don't install drupal/core-render 8.3.x-dev|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.0|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.0-alpha1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.0-beta1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.0-rc1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.0-rc2|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.2|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.3|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.4|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.5|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.6|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.7|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.8|remove drupal/drupal dev-master     - don't install drupal/core-render 8.4.x-dev|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.0|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.0-alpha1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.0-beta1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.0-rc1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.2|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.3|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.4|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.5|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.6|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.7|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.8|remove drupal/drupal dev-master     - don't install drupal/core-render 8.5.x-dev|remove drupal/drupal dev-master     - don't install drupal/core-render 8.6.0|remove drupal/drupal dev-master     - don't install drupal/core-render 8.6.0-alpha1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.6.0-beta1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.6.0-beta2|remove drupal/drupal dev-master     - don't install drupal/core-render 8.6.0-rc1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.6.1|remove drupal/drupal dev-master     - don't install drupal/core-render 8.6.2|remove drupal/drupal dev-master     - don't install drupal/core-render 8.6.3|remove drupal/drupal dev-master     - don't install drupal/core-render 8.6.4|remove drupal/drupal dev-master     - don't install drupal/core-render 8.6.5|remove drupal/drupal dev-master     - don't install drupal/core-render 8.6.x-dev|remove drupal/drupal dev-master     - don't install drupal/core-render 8.7.x-dev|remove drupal/drupal dev-master     - don't install drupal/core 8.3.x-dev|remove drupal/drupal dev-master     - don't install drupal/core 8.4.x-dev|remove drupal/drupal dev-master     - don't install drupal/core 8.5.x-dev|remove drupal/drupal dev-master     - don't install drupal/core 8.6.5|remove drupal/drupal dev-master     - don't install drupal/core 8.6.x-dev|remove drupal/drupal dev-master     - don't install drupal/core 8.7.x-dev|remove drupal/drupal dev-master     - remove drupal/drupal dev-master|remove drupal/core 8.6.5     - don't install drupal/core 8.6.5|remove drupal/drupal dev-master     - Installation request for drupal/drupal dev-master -> satisfiable by drupal/drupal[dev-master].     - Installation request for drupal/core-render ^8.2 -> satisfiable by drupal/core[8.2.x-dev, 8.3.x-dev, 8.4.x-dev, 8.5.x-dev, 8.6.5, 8.6.x-dev, 8.7.x-dev], drupal/core-render[8.2.0, 8.2.0-beta1, 8.2.0-beta2, 8.2.0-beta3, 8.2.0-rc1, 8.2.0-rc2, 8.2.1, 8.2.2, 8.2.3, 8.2.4, 8.2.5, 8.2.6, 8.2.7, 8.2.8, 8.2.x-dev, 8.3.0, 8.3.0-alpha1, 8.3.0-beta1, 8.3.0-rc1, 8.3.0-rc2, 8.3.1, 8.3.2, 8.3.3, 8.3.4, 8.3.5, 8.3.6, 8.3.7, 8.3.8, 8.3.9, 8.3.x-dev, 8.4.0, 8.4.0-alpha1, 8.4.0-beta1, 8.4.0-rc1, 8.4.0-rc2, 8.4.1, 8.4.2, 8.4.3, 8.4.4, 8.4.5, 8.4.6, 8.4.7, 8.4.8, 8.4.x-dev, 8.5.0, 8.5.0-alpha1, 8.5.0-beta1, 8.5.0-rc1, 8.5.1, 8.5.2, 8.5.3, 8.5.4, 8.5.5, 8.5.6, 8.5.7, 8.5.8, 8.5.x-dev, 8.6.0, 8.6.0-alpha1, 8.6.0-beta1, 8.6.0-beta2, 8.6.0-rc1, 8.6.1, 8.6.2, 8.6.3, 8.6.4, 8.6.5, 8.6.x-dev, 8.7.x-dev]. 

installing drupal 8 with composer

When installing drupal8 using a composer if I run the following command I end up with the development version of drupal8:

composer create-project drupal-composer/drupal-project:8.x-dev mydir --no-dev --no-progress --stability dev --no-interaction 

I tried to change the --stability from dev to stable. However I guess the version number is off.

I am new to Drupal 8 and composer. How would install the production version?

Thanks in advance,

Mark.