composer timeout issues
composer config --global process-timeout 6000
someone also suggested:
lando composer dump lando composer clearcache git pull origin develop delete vendor folder lando composer install
composer config --global process-timeout 6000
someone also suggested:
lando composer dump lando composer clearcache git pull origin develop delete vendor folder lando composer install
/Users/jamesbarnett/sites/AMA/freida/vendor/bin/phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info --report=full /Users/jamesbarnett/sites/AMA/freida/docroot/modules/custom/freida_bulk_delete/src/Commands/DeleteUserKeepContent.php
To send the json data in JavaScript
var xmlhttp = new XMLHttpRequest(); // new HttpRequest instance xmlhttp.open("POST", "/user/17352/post-dashboard"); xmlhttp.setRequestHeader("Content-Type", "application/json"); xmlhttp.send(JSON.stringify({advisorcomment:advisorComment}));
To receive the json data in PHP
$json_string = \Drupal::request()->getContent(); $decoded = \Drupal\Component\Serialization\Json::decode($json_string); print_r($decoded); $name = $decoded['name']; return new JsonResponse($name);
use Drupal\Core\Render\Markup;
$link_text = Markup::create('' . $title . '');
platform environment:activate new-feature
platform environment:list
+------+-------+--------+------------+
| ID | Title | Status | Type |
+------+-------+--------+------------+
| main | Main | Active | production |
+------+-------+--------+------------+
platform sql < my_database_backup.sql
or if can't determine current environment:
platform sql -e main < talktoyourdata.sql
platform db:dump --gzip
(I'm giving my webtechkitchen some good content to crawl for when I use the OPENAI_SEARCH module. Now I can promot Chat for some interesting ethical questions :)
Pirkei Avot 1:14:
"אִם אֵין אֲנִי לִי, מִי לִי. וְכִשְׁאֲנִי לְעַצְמִי, מָה אֲנִי. וְאִם לֹא עַכְשָׁוְ, אֵימָתָי."
Which translates to: "If I am not for myself, who will be for me? But if I am only for myself, what am I? And if not now, when?"
var email = document.querySelector('#edit-investor-profiles-0-entity-field-email-0-value').value; if (email.length > 3) { // construct an HTTP request var xhr = new XMLHttpRequest(); var url = "/user/register/check-email" xhr.open("POST", url, true); xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8'); var data = JSON.stringify({"email": email}); // send the collected data as JSON xhr.send(JSON.stringify(data)); xhr.onreadystatechange = function() { if (xhr.readyState == 4 && xhr.status == 200) {
Open up Developer Tools and go to Sources.
Note the shortcut to pause script execution— F8 .
Interact with the UI to get the element to appear.
Hit F8 .
Now you can move your mouse around, inspect the DOM, whatever. The element will stay there.
https://stackoverflow.com/questions/17602611/inspect-a-hover-element
$result = $connection->insert('mytable') ->fields([ 'title' => 'Example', 'uid' => 1, 'created' => \Drupal::time()->getRequestTime(), ]) ->execute();
insert, update, delete, upsert