Categories
Talend

Get Topic Name on Talend Job From cMQTT Message

When a Talend route is built to subscribe to an MQTT broker, the message payload can be processed by a Talend Job passing over the message body. But you could also need to know the generating topic. The Apache Camel cMQTT component stores the topic component as an additional message header named CamelMQTTSubscribeTopic. Hence inside […]

Categories
Talend

Installing Talend ESB Runtime/Container as a Service

Installing the Talend Runtime as a service is rather easy but there are few options you would consider to customize even more the installation. This has been tested with version 7.2.1. First you can follow the instructions directly from the Talend Help Center to create the wrapper. A wrapper is a Windows executable which “wraps” […]

Categories
Talend

Talend ESB Redeploy a .kar File

When you build a route a new .kar file is generated and it needs to be redeployed on Talend ESB container. Nothing special to do, just copy it on deploy folder. Talend ESB conatiner is based on Karaf and on starts it “activate” all routes found inside the container/deploy folder. When you rework a route […]

Categories
Talend

Talend ESB/Karaf Console Client tadmin Login Problems

You could have experienced the failed login as tadmin to the Talend ESB/Karaf console when using the client.bat to access a remote (or locally installed as Windows service) Karaf console. That applies to Talend Open Studio for ESB 7.2.1. Typically the message you got is: Logging in as tadmin Password: Password: No more authentication methods […]

Categories
WordPress

How To Remove WordPress Admin Notices (When Disturbing)

Sometime you really need to remove the administration notices injected by other themes or plugins from your theme or plugin administration pages. If I can understand that admin notices could be very useful, injecting them indifferently in every admin page could lead to conflicts, specially if injected in other plugin/theme pages. Who injects such notices […]

Categories
WordPress

How to disable the new WordPress block style CSS in 3 lines

If you don’t use the new WordPress blocks, you should avoid to load the block style CSS on your page to optimize the page load speed. Here the three lines you need: add_action(‘wp_print_styles’, function () { wp_dequeue_style(‘wp-block-library’); }, 100); Adding the action with priority 100, it will be executed after the style has been enqueued […]

Categories
WordPress

How to change the WordPress authentication cookie expiration in 3 lines

Never needed to change the standard (2 week) login cookie expiration time of WordPress? Here the 3 line of code you need. add_filter(‘auth_cookie_expiration’, function () { return 365 * 2 * DAY_IN_SECONDS; }); You can add those line in the functions.php file of your theme. DAY_IN_SECONDS is a constant defined by WordPress and represents the […]

Categories
WordPress

How to change the WordPress mail sender in 3 lines

Shortly: I needed to change the “sender” of all emails from a blog so every delivery error would have been sent to a specific mailbox. Without installing plugins, the three lines of code needed are: add_action(‘phpmailer_init’, function (PHPMailer $mailer) { $mailer->Sender = ‘bounce@domain.com’; }, 1000); They can be added in the theme functions.php¬† file for […]

Categories
WordPress

Query error: Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_unicode_520_ci,IMPLICIT)

This error happens when there are tables on your WordPress installation created with different collations. Here we’re going why that happens. WordPress has a built in feature: if you do not explicitly declare the database collation (how a database should compare strings) it makes some thoughts about it and possible decide to use the new […]

Categories
WordPress

Donations From April 2018 to December 2018

Dear friends, even in the second part of 2018 your generosity has been huge. You all donated 260 euro which, today, have been donated to humanitarian initiative through Medecins Sans Frontieres and Save the Children. Hope the best for you and your families. Hope more and more children can enjoy their life with our little […]