Categories
Mastering Development System & Network

How do I specify a fail2ban filter/jail where the log is sourced from systemd/journald?

I’ve got nginx running and logging to systemd / journald. How do I specify the source of the log to be from a systemd unit? In man jail.conf I see for the backends listed as : systemd uses systemd python library to access the systemd journal. Specifying logpath is not valid for this backend and […]

Categories
CMS Mastering Development Wordpress

Mobile menu disappears during transition [closed]

I have an issue I can’t seem to find the solution for which is that whenever I click an arrow to extend a menu item to see its submenu, the whole menu becomes blank during the extend transition. This wasn’t happening at the beginning and only started after a while so it must be something […]

Categories
CMS Mastering Development Wordpress

Saving data from block editor to the database

I’m developing a wordpress plugin and looking to save data entered in a block to a mySQL table. That’s it. But how can data be sent from the block editor to the server side? I’ve spent two weeks looking for the appropriate technique and no joy. The scenario is simple: registerBlockType("bla/quote-block", { //… attributes: { […]

Categories
Mastering Development Software

Is it a good practice for C++ functors to store outputs as instance attributes?

The question pretty much says all, but let’s look into a simple example: So, let’s say that we have a functor that outputs many objects (e.g. as a tuple). Is it a good idea to store the outputs to the functor instance rather than returning a long tuple? // some definitions class OutputTypeA; class OutputTypeB; […]

Categories
CMS Mastering Development Wordpress

Add get_the_tags() to Single Posts section via functions.php

How to print Posts tags in single posts head section from function.php. <meta property="article:tag" content="Single Posts Tags" />

Categories
CMS Mastering Development Wordpress

Make `previous_post_link()` Function Show The Post After Next i.e. Jump A Post

Is it possible when using the previous_post_link() function to make it get the previous post after next i.e. make it skip a post. So if you’re on post 5 in numerical order it skips to post 3? The reason being I have custom post type single-cpt.php file that pulls in two posts, so when using […]

Categories
Apple User Help

Mac is heating up, how to resolve?

I am using MacBook Air . Few hours ago I removed iTunes, iMovies, Books by disabling SIP. I have noticed that after removal of the apps, when I switch it on it gets heated up after running for sometime. Is it due to removal of the preinstalled apps or some other reasons ? Can anybody […]

Categories
CMS Drupal Mastering Development

how to download media into drupal 9 database from a sql database

here my problem i have old blog made in laravel and my boss want me to migrate all the article to a drupal website so i create a plugin that migrate the article title and text but i have to download all the media so i have to create to more plugin one for the […]

Categories
Game Creation Mastering Development

How to make collisionshape2D work from other scene in Godot?

I have created a scene which contains Area2D, CollisionShape2D, AnimatedSprite. Then I imported that scene to a level. At this moment the player should collide with the object taking it as a obstacle. But it doesn’t collide with the coin. How can I make collision work from other scene?

Categories
User Help Web Pro

lighttpd is not serving the second request when first request still under process

I am getting response from lighttpd for the first request and when I send second request before first request completes the execution, not getting the response for the second one. i.e at any given moment, only one request is served. first_file.php cat first_file.php.php <?php while(true){ echo "The time is " . date("h:i:sa"); sleep(5); } ?> […]