Categories
Apache

How to see logstash status ?

Find below how to check the status of the logstash service

service logstash status

What is logstash ?

Logstash is a free and open server-side data processing pipeline that ingests data from a multitude of sources, transforms it, and then sends it to your favorite “stash.”

Categories
Apache

JMeter – How to add random UUID in the POST body data ?

For POST request, I used the following Jmeter function

  • __UUID() – which returns an unique GUID structure
{
    "project": {
        "uuid": "${__UUID()}"
    }
}
Categories
Programming

How fix Jmeter on a Mac ? Could not initialize class org.apache.jmeter.gui.util.FileDialoger

If you are facing the following error

2021-07-14 11:31:46.861 java[1419:13909] JavaNativeFoundation: GetGlobalVM: Failed to locate @rpath/libjvm.dylib for JNI_GetCreatedJavaVMs(). A JVM must be loaded before calling this function.

2021-07-14 11:31:46.979 java[1419:13909] JavaNativeFoundation: GetGlobalVM: Failed to locate @rpath/libjvm.dylib for JNI_GetCreatedJavaVMs(). A JVM must be loaded before calling this function.

Uncaught Exception java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel (in unnamed module @0x157632c9) cannot access class sun.awt.shell.ShellFolder (in module java.desktop) because module java.desktop does not export sun.awt.shell to unnamed module @0x157632c9 in thread Thread[AWT-EventQueue-0,6,main]. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger in thread 
Thread[AWT-EventQueue-0,6,main]. See log file for details.

The problem is that the team Dracula is failing

Solution is right below to change it to System

Jmeter => Look and Feel => System

Categories
Apache Technical

How to install Jmeter on a macBook ?

Here is the command line used to install Jmeter on my macbook

brew install jmeter

and here is how to open Jmeter

jemter

Categories
Laravel

How to fix Laravel – Declaration of OM\Db::query(string $statement) must be compatible with PDO::query ?

#1 – Remove from composer Json the similar line

“doctrine/dbal”: “^2.10”,

#2 – Run

composer upgrade

#3 – Run

composer update

#4 – Voila ! The error should be fixed !

Categories
General

PHPStorm – How to fix declaration Not Found ?

I found 3 solutions to this problem

Solution one


-> go to phpStorm->preferences

then select PHP and add your workingspace path into the include path

Solution 2

Got to file->invalidate Caches and choose the option that fits you need

Solution 3 (optional)

Do not forget to get latest file from you git or FTP repository

Categories
Technical

How to fix wooCommerce gallery images not showing on Chrome browsers ?

My solution was to deactivate all wordpress plugins except WooCommerce and WooComerce Admin. It turns out that WP Super Cache and maybe WP-Optimize – Clean, Compress, Cache were breaking the image gallery

Categories
General

What Is Continuous Integration?

I implemented at 4over continuous integration during the year 2019 with David Reynolds. A Developer Manifesto was also produced to guide developers and QA team while producing and testing the codebase.

Continuous integration
Continuous integration

Continuous deployment advances continuous delivery further at which codes are integrated, deployed to production, automatically tested, and reverted when errors happen. To be specific, every change that passes all production pipelines is deployed directly to production without additional intervention. Therefore, the software release process is faster and more robust through rigorous automated testing without explicit approval from developers.

source : https://dzone.com/articles/top-devops-interview-questions?edition=682391

Want to know more about my work around the LAMP stack world and other specialties? Sign up for our email brief for hand-picked articles, news, and more.

Subscribe

* indicates required

Categories
General

Newsletter

Want to know more about my work around the LAMP stack world and other specialties? Sign up for our email brief for hand-picked articles, news, and more.

Subscribe

* indicates required

Categories
General

How to pull a coworker git branch ?

So it is very simple. To pull a coworker git branch, please executeg the following command.

git checkout --track origin/nameCoworkerBranch

The option “—track” allows you to do the pulling

Do not forget to sign up to my newsletter !

Subscribe

* indicates required