Filename Sanitizer / Normalizer :
<?php
$str = "Text mit Ä Ö Ü ß é á ú î é ú í ó á ý ";
echo iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str);
// Text mit A O U ss e a u i e u i o a y
?>
Filename Sanitizer / Normalizer :
<?php
$str = "Text mit Ä Ö Ü ß é á ú î é ú í ó á ý ";
echo iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str);
// Text mit A O U ss e a u i e u i o a y
?>
Create Taxonomy Term (in Vocabulary):
use Drupal\taxonomy\Entity\Term;
$new_term = Term::create([
'vid' => 'name_of_the_vocabulary',
'name' => 'name of the term',
]);
$new_term->enforceIsNew();
$new_term->save();
Laut Composer gibt es 8 Updates, darunter Drupal Core 9.3.14 :
1. Installieren : optipng / jpegoptim / cwebp
sudo apt-get install jpegoptim
sudo apt-get install optipng
sudo apt-get install imagemagick webp jpegoptim optipng
2. jpegoptim : mehrere Optimierungsmöglichkeiten
jpegoptim bild1.jpg
jpegoptim -m50 bild1.jpg
jpegoptim -d ./bild1.jpg -p neues_bild1.jpg
jpegoptim –size=100k /path/to/bild1.jpg
jpegoptim *.jpg
jpegoptim bild1.jpg bild2.jpg ...
3. optipng : mehrere Optimierungsmöglichkeiten
mail -s "Subject of my test e-mail" info@example.com <<< "Content of my test e-mail"
oder
echo "Content of my test e-mail" | mail -s "Subject of my test e-mail" info@example.com
Eine Liste der aktuellen Kryptowährungen:
Was ist Web3?
Was ist Unterschied zwischen Web3 und Web2?
Was ist Unterschied zwischen Web2 und Web1 (oder Web0)?
Twitter Error 283
[code] => 283
[message] => This request looks like it might be automated. To protect our users from spam and other malicious activity, we can't complete this action right now. Please try again later.
Was ist die Lösung? Ich bekomme diese Fehlermeldung, wenn mein Twitter APP nach bestimmten Suchkriterien Tweets als "Favorit" markiert. Dabei achte ich sehr auf Rate-Limits usw.
Um Apache Solr zu installieren bzw. zu aktualisieren (Update/Upgrade) :
wget https://dlcdn.apache.org/lucene/solr/8.11.1/solr-8.11.1.tgz
tar xzf solr-8.11.1.tgz solr-8.11.1/bin/install_solr_service.sh --strip-components=2
./install_solr_service.sh solr-8.11.1.tgz -f
/etc/init.d/solr restart
service solr restart
Um die Sicherheitslücke für Apache Solr 8.x zu schließen:
export LOG4J_FORMAT_MSG_NO_LOOKUPS=true
Alte Dateien (in /opt/solr/server/lib/ext)
log4j-1.2-api-2.14.1.jar
log4j-api-2.14.1.jar
log4j-core-2.14.1.jar
log4j-slf4j-impl-2.14.1.jar
log4j-web-2.14.1.jar
ersetzen durch neue Dateien: