Snippets tagged “bash”
150 snippets use this tag.
- 'Java' is not recognized as an internal or external commandJava
If you are getting the error 'Java' is not recognized as an internal or external command, it means that the Java executable is not in your system's PATH. This means that when you try to run the java command, the system does not know where to find it.
- "inconsistent use of tabs and spaces in indentation"Python
"Inkonsistente Verwendung von Tabs und Leerzeichen in Einrückung" is an error message that you may encounter when working with Python code.
- "No X11 DISPLAY variable" - what does it mean?Java
"No X11 DISPLAY variable" is an error message that you might see when trying to run a Java program that uses the X Window System to display a graphical user interface (GUI).
- artisan migration error "Class 'Doctrine\\DBAL\\Driver\\PDOMySql\\Driver' not found"PHP
This error message is indicating that the PHP extension for PDO MySQL is not installed or not enabled on your system.
- Best and Safe Way to Merge a Git Branch into MasterGit
Cannot find a best and safe way for merging local branch into master? Check this tutorial which opens up the right method you need for solving this problem.
- Compiling php with curl, where is curl installed?PHP
The location of the curl installation depends on the operating system and the method used to install it.
- Composer: Command Not FoundPHP
It looks like you are trying to use the composer command, but it is not recognized by your terminal.
- Composer: file_put_contents(./composer.json): failed to open stream: Permission deniedPHP
This error message is indicating that the script is trying to write to the file "composer.json" in the current directory (indicated by "./"), but it doesn't have the necessary permissions to do so.
- configure: error: Please reinstall the libzip distributionPHP
This error message is indicating that there is a problem with the libzip library that is preventing a program from being configured.
- Could not open input file: artisanPHP
It looks like you are trying to run the artisan command but are getting an error saying that the input file could not be found.
- CURL and HTTPS, "Cannot resolve host"PHP
It sounds like you are trying to use curl to make a request to an HTTPS url and are encountering an error that says "Cannot resolve host." This error can occur for a few reasons:
- curl posting with header application/x-www-form-urlencodedPHP
To make a POST request using curl and include a header of Content-Type: application/x-www-form-urlencoded, you can use the following command:
- Docker MYSQL '[2002] Connection refused'PHP
The '[2002] Connection refused' error in Docker when trying to connect to a MySQL container typically indicates that the MySQL server is not running or is not accessible on the network.
- Downloading a large file using curlPHP
To download a large file using curl, use the following command:
- Downloading Java JDK on Linux via wget is shown license page insteadJava
If you are trying to download the Java Development Kit (JDK) on Linux using wget and you are being shown the license page instead of the JDK download, it is likely because the download page has changed since the wget command was written.
- eclipse won't start - no java virtual machine was foundJava
There are a few possible reasons why Eclipse might not be able to find a Java Virtual Machine (JVM).
- Error java.lang.OutOfMemoryError: GC overhead limit exceededJava
The java.lang.OutOfMemoryError: GC overhead limit exceeded error occurs when the garbage collector is unable to free up enough memory to meet the memory allocation request of the application.
- Error:java: javacTask: source release 8 requires target release 1.8Java
This error message usually indicates that you are trying to compile your Java code with a version of the javac compiler that is not compatible with the version of the Java language that your code is written in.
- Failed to load the JNI shared Library (JDK)Java
This error can occur when you are trying to run a Java program and the Java Virtual Machine (JVM) cannot find the required shared libraries. There are a few different causes of this error and a few different things you can try to fix it:
- Fatal error: Call to undefined function mysqli_connect()PHP
The "Fatal error: Call to undefined function mysqli_connect()" error in PHP typically occurs when the MySQLi extension is not enabled or properly configured in your PHP environment.
- Fatal error: Call to undefined function: ldap_connect()PHP
This error message is indicating that the PHP function ldap_connect() is not defined or not available.
- Find which version of package is installed with pipPython
You can use the following command to check the version of a package installed with pip:
- How can I convert my Java program to an .exe file?Java
There are several ways to convert a Java program to an executable file (.exe):
- How can I edit a .jar file?Java
A .jar file is a Java Archive file that contains compiled Java code and resources (such as images, sounds, etc.) that can be used by Java applications.
- How can I make a Python script standalone executable to run without ANY dependency?Python
One way to make a Python script standalone executable is by using the package pyinstaller.
- How do I "decompile" Java class files? [closed]Java
There are several tools that you can use to "decompile" Java class files and view the source code. Some popular ones include:
- How do I check the versions of Python modules?Python
You can use the built-in "pkg_resources" module to check the version of a Python module.
- How do I find out my MySQL URL, host, port and username?Java
To find out your MySQL connection details, you will need to look in your MySQL configuration files. The specific location of these files will depend on how you installed MySQL, but common locations include /etc/my.cnf,
- How do I find where JDK is installed on my windows machine?Java
To find where the JDK is installed on your Windows machine, you can follow these steps:<br>
- How do I get file creation and modification date/times?Python
There are a few ways to get the file creation and modification date/times, depending on the programming language and operating system you are using.
- How do I install a Python package with a .whl file?Python
To install a Python package with a .whl file, you can use the pip command.
- How do I install Composer on a shared hosting?PHP
To install Composer on a shared hosting, you can use the following steps:
- How do I resolve the "java.net.BindException: Address already in use: JVM_Bind" error?Java
The java.net.BindException: Address already in use: JVM_Bind error occurs when you try to bind a socket to a local address and port, but the address and port are already in use by another process. This can happen when you try to start a server on a port
- How to Add an Empty Directory to a Git RepositoryGit
The empty directories will not be added to version control by Git as it supports only files. In this snippet, find some fast solutions to this problem.
- How to Automatically Resolve Git Merge Conflicts in Favor of Any SideGit
Read this tutorial and solve the problem of resolving git merge conflicts in favor of pulled changes. Get overall understanding of Git merge strategies.
- How to check the presence of php and apache on ubuntu server through sshPHP
To check if PHP is installed on your Ubuntu system, you can use the following command:
- How to Checkout a Remote Branch in GitGit
In the framework of group work, coworkers need to access each other’s repositories. Learn how to do it with the help of git checkout here.
- How to Checkout the Previous Branch in GitGit
This tutorial provides an easy way of checking out the previous branch. Find a shortcut to the command line to save your time and an experimental solution.
- How to clear the console?Java
To clear the console in most command-line interfaces (CLI), you can use the clear or cls command.
- How to Clone a RepositoryGit
It is very important to obtain a development copy of an existing central repository. Learn how to clone the remote repository into the current directory.
- How to Clone a Single Branch in GitGit
Sometimes it is necessary for developers to clone just a single git branch. This short tutorial will help you to clone a single and specific branch in Git.
- How to Clone Including Git SubmodulesGit
Get answers to the problem of cloning the parent repository so as the submodule folder does not stay empty. Get several methods regarding the Git versions.
- How to Clone Remote Git BranchesGit
Cloning is an essential process in Git. In this tutorial, you will find a solution to the problem of cloning remote branches and copy the codes right away.
- How to Combine Multiple Git Commits into OneGit
Don’t overload your git log with meaningless commits. Combine multiple commits into one with the help of our tutorial. See the explanation with codes.
- How to Compare Local and Remote Git BranchesGit
In this tutorial, you will get useful information about the simplest way of comparing the difference between the local and remote branches step by step.
- How to Configure Git to Ignore File Mode ChangesGit
Sometimes, working on local development there is a need to change permissions on various files. The tutorial will show how to ignore the File Mode changes.
- How to Copy a Version of a Single File from One Git Branch to AnotherGit
orial and find several solutions to the problem of copying a version of a single file from one branch to another. Also, read important tips.
- How to Create a Remote Branch in GitGit
It is often necessary to create remote branches in Git. This snippet will provide you with essential information on how to create a remote git branch.
- How to decompile a whole Jar file?Java
To decompile a JAR file, you can use a Java decompiler such as JD-GUI.
- How to decompile DEX into Java source code?Java
To decompile DEX (Dalvik Executable) files into Java source code, you can use a DEX decompiler such as JD-GUI or DEX2JAR.
- How to Delete Already Merged Git BranchesGit
Know how to delete already merged git branches to keep your repository clean and easy to browse and how to exclude branches you do not want to delete.
- How to Delete Git Repository Created with InitGit
In this tutorial, you will find out two methods of deleting the git repository created with the git init command for Linux and Windows operating systems.
- How to Delete Remote Git TagsGit
Reading the following tutorial you will get familiar with tagging in general, the usage of the git tag command, and two ways of removing the remote tag.
- How to Discard Unstaged Changes in GitGit
The tutorial provides you with information you need to discard the unstaged changes in the working copy. Find several ways of discarding and get the codes.
- How to execute a java .class from the command lineJava
To execute a Java class from the command line, you will need to use the java command and specify the name of the class that you want to run.
- How to Fetch All Git BranchesGit
In this tutorial, you will get an answer to your problem of fetching the local and remote branches with the simplest way using Git most used commands.
- How to Find a Deleted File in the Project Commit History in GitGit
This tutorial will help you find the answer to the question of finding a deleted file in the project commit history. Get the code and get the work done.
- How to Find All Files Containing Specific Text on LinuxLinux
Learn How to Find All Files Containing Specific Text on Linux with W3docs tutorial. Also, try the examples yourself and see the results.
- How to find Java Heap Size and Memory Used (Linux)?Java
To find the Java heap size and the amount of memory used on a Linux system, you can use the jstat command and specify the process ID (PID) of the Java process.
- How to Force Git Pull to Override Local FilesGit
This tutorial will show you how to force git pull in case of untracked files which will be overwritten. Find important tips to avoid unwanted mistakes.
- How to Generate SSH key for GitGit
SSH is a network protocol that helps to login from one computer to another securely. In this tutorial, you will read how to generate the SSH key for Git.
- How to get page content using cURL?PHP
To get the content of a webpage using cURL, you can use the following command:
- How to import a .cer certificate into a java keystore?Java
To import a .cer certificate into a Java keystore, you can use the keytool utility that comes with the Java Development Kit (JDK). The keytool utility is a command-line tool that allows you to manage certificates and keystores.
- How to Import Multiple Projects into a Single Git RepositoryGit
In this tutorial, you will get an answer to your problem of managing multiple projects into a single repository step by step with the most used commands.
- How to install all required PHP extensions for Laravel?PHP
To install all of the required PHP extensions for Laravel, you will need to install the following PHP extensions on your server:
- How to install bcmath module?PHP
The bcmath extension is typically installed by default in most PHP installations.
- How to Install Git on Ubuntu 18.04Git
Working with Git starts with installing. This tutorial shows how to install Git on Linux. Get the codes of installing Git from repository and source code.
- How to install Java 8 on MacJava
To install Java 8 on macOS, follow these steps:
- How to install JDK 11 under Ubuntu?Java
To install JDK 11 under Ubuntu, follow these steps:
- How to install Laravel's Artisan?PHP
To install Laravel's Artisan, you will need to install the Laravel framework on your machine first.
- How to install PIL with pip on Mac OS?Python
To install PIL (Python Imaging Library) using pip on Mac OS, you can use the following command in your terminal:
- How to install pip with Python 3?Python
To install pip with Python 3, you can use the following command:
- How to leave/exit/deactivate a Python virtualenvPython
To leave a Python virtual environment, you can use the deactivate command.
- How to List All the Files in a Git CommitGit
The following tutorial shows two ways of formatting files in a commit. You can find a preferred and less preferred ways with the explanation in detail.
- How to List Git Branches that Contain a Given CommitGit
Here, you can find a short tutorial on how to list branches that contain a given commit in Git. Find the answer to one of the most common questions in Git.
- How to Make Git Forget About a Tracked File Which is Now in .gitignoreGit
Read this git tutorial and learn how you can force Git to forget about a file that was tracked but is now in .gitignore list.
- How to Make the Current Commit the Only Commit in a Git RepositoryGit
In this tutorial, you will get the codes of how to make the current commit as an initial one in one repository. The case of submodules is also discussed.
- How to Make the Current Git Branch a Master BranchGit
In this snippet, we will go through an example of making the current git branch to a master. Follow the steps below to do it in an easy and fast way.
- How to Merge a Specific Commit in GitGit
Sometimes it is necessary to merge a specific commit in Git. The below-given snippet is aimed at showing you how to do it in a rather fast and easy way.
- How to Merge Local Uncommitted Changes into Another Git BranchGit
Read this tutorial and find solution to the question of merging local uncommitted changes from one Git branch into another. Also, read important tips.
- How to Move Git Branch Pointer to Different CommitGit
Read the tutorial to learn several techniques of moving branch pointer to different git commit without checkout and the essential tips one should encounter.
- How to open/run .jar file (double-click not working)?Java
To open a .jar file on a Windows system, you can do one of the following:
- How to Preview a Merge in GitGit
This tutorial provides two solutions to the question of previewing the actual merge output in Git. Read about peculiarities of git merge and a lot more.
- How to Programmatically Determine if there are Uncommitted Changes in GitGit
If you’re searching for a right answer to the question of programmatically determining whether there are uncommitted changes or not, check this tutorial.
- How to Properly Rename a Directory in a Git RepositoryGit
This tutorial will provide you the simplest and appropriate explanation concerning the question of properly changing a directory name in a git repository.
- How to Pull the Latest Git SubmoduleGit
Learn more about git submodules in this short tutorial. Here you will also find out how to pull the latest git submodule in a relatively fast and easy way.
- How to Reference the Initial Git CommitGit
This Git tutorial will provide you the best and appropriate explanation concerning the question of referencing the initial commit in a git repository.
- How to Remove a Git SubmoduleGit
With the help of this tutorial, you will learn how to remove an unwanted Git submodule easily.
- How to Remove Files from Git CommitGit
This tutorial will help you get the answer to the question of removing files from git commit based on different scenarios. Also, read about used commands.
- How to Retrieve Hash for Commits in GitGit
Git allows recovering wrong changes in a project. This tutorial shows how to find information about the latest commit and get the latest commit’s hash.
- How to Revert "git rm -r"Git
This tutorial provides the information of answering to the question of reverting git rm -r, and differences between reverting git rm -r . and git rm.
- How to run a JAR fileJava
To run a JAR file, you need to have Java installed on your computer. If you don't have it installed, you can download it from the Oracle website.
- How to Send a PHP Email via SMTP with the PEARPHP
In this short tutorial, we are going to show you how to use the PEAR option to send emails via SMTP accurately. Just follow the steps below.
- How to set JAVA_HOME environment variable on Mac OS X 10.9?Java
To set the JAVA_HOME environment variable on Mac OS X 10.9, follow these steps:
- How to set or change the default Java (JDK) version on macOS?Java
To set the default Java (JDK) version on macOS, you can use the java_home command line tool. Here's how:
- How to Show the Changes which Have Been Staged in GitGit
Read this tutorial and know which commands are used to make it possible to show the changes which have been changed. Other methods are also discussed.
- How to Stash Git ChangesGit
Don’t know how to stash the dirty state of the working directory and save it on a stack of incomplete changes? See how to stash with the given steps.
- How to Stash Only One File out of Multiple Files that Have Changed in GitGit
In this tutorial you will get the answer to the question of how to stash only one file among multiple files. Read and choose the method best suited to you.
- How to Stop Tracking and Start Ignoring in GitGit
This snippet explains how to stop tracking and ignore changes to a file in git.
- How to Undo Git AddGit
Sometimes, it is necessary to undo something while working in Git. Find your fast solution for undoing git add in this snippet.
- How to Undo Git MergeGit
In this snippet, you will find out how to undo git merge in a relatively fast way.
- How to Undo Git ResetGit
In this tutorial, you will learn about the short and more detailed methods of undoing git reset. Also, get familiar with the concept of the three trees.
- How to Undo Git Stash Pop Resulting in Merge ConflictGit
This tutorial will give the answer to the question of undoing git stash which results merge conflict in detail. Read about stashing and merge conflicts.
- How to Undo Pushed Git CommitsGit
Read the tutorial and learn the solution to one of the most frequent questions concerning the method of reverting already pushed commit with simple command.
- How to uninstall Python 2.7 on a Mac OS X 10.6.4?Python
To uninstall Python 2.7 on a Mac OS X 10.6.4, you can use the following commands in the terminal:
- How to upgrade all Python packages with pip?Python
You can use the pip freeze command to generate a requirements file that includes all of the current packages and their versions, and then use pip install -r to upgrade all packages to the latest available versions.
- How to upload a file and JSON data in Postman?Java
To upload a file and JSON data in Postman, you can follow these steps:
- How to use the php that brew installed?PHP
To use the PHP that Homebrew installed, you will first need to make sure that it is in your system's PATH.
- Http 415 Unsupported Media type error with JSONJava
A HTTP 415 Unsupported Media Type error means that the server is unable to process the request because the request entity has a media type that the server does not support. In the context of a JSON request, this means that the server is unable to process
- Importing files from different folderPython
To import a module from a different folder in Python, you can use the sys.path.append() function to add the path to the folder containing the module to your Python path.
- Installing Java 7 on UbuntuJava
To install Java 7 on Ubuntu, you can follow these steps:
- Installing specific laravel version with composer create-projectPHP
To install a specific version of Laravel using the Composer create-project command, you can specify the version number after the package name.
- Installing the PHP 7 MongoDB Client/Driver?PHP
To install the PHP 7 MongoDB driver, you can use the PECL (PHP Extension Community Library) command-line tool.
- javac error: Class names are only accepted if annotation processing is explicitly requestedJava
This error message indicates that you are trying to use a class name in a source code file that is not being processed by the Java compiler.
- keytool error Keystore was tampered with, or password was incorrectJava
The "Keystore was tampered with, or password was incorrect" error typically occurs when you try to use the keytool utility to access a keystore with an incorrect password or when the keystore has been modified in some way.
- Laravel: Error [PDOException]: Could not Find Driver in PostgreSQLPHP
It looks like you are trying to connect to a PostgreSQL database from your Laravel application, but the PDO (PHP Data Objects) extension is not installed or enabled in your PHP environment.
- Maven package/install without test (skip tests)Java
To package/install a Maven project without running the tests, you can use the maven-install-plugin and specify the skipTests property as true.
- MySQL Database won't start in XAMPP Manager-osxPHP
There could be a number of reasons why your MySQL database isn't starting in XAMPP on macOS.
- Nginx serves .php files as downloads, instead of executing themPHP
There are several reasons why Nginx may serve PHP files as downloads instead of executing them.
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?Java
This error message means that the Java compiler (javac) is not available in the current environment. This can happen if you are running a Java program from a Java Runtime Environment (JRE) rather than a Java Development Kit (JDK).
- Package php5 have no installation candidate (Ubuntu 16.04)PHP
I'm sorry to hear that you're having trouble installing PHP on your Ubuntu 16.04 system.
- pg_config executable not foundPython
Check the location of pg_config: Open a terminal and run the command "which pg_config".
- PHP Fatal error when trying to access phpmyadmin mb_detect_encodingPHP
A PHP Fatal error is a type of error that occurs when the PHP interpreter encounters a serious problem and is unable to continue executing the script.
- PHP is not recognized as an internal or external command in command promptPHP
It sounds like you are trying to run the PHP command from the command prompt, but it is not recognized as a valid command.
- phpMyAdmin mbstring errorPHP
It looks like you are encountering an error with the mbstring extension in PHP when using phpMyAdmin.
- pip install mysql-python fails with EnvironmentError: mysql_config not foundPython
This error occurs when the mysql-config command is not in the system's PATH.
- Received fatal alert: handshake_failure through SSLHandshakeExceptionJava
Received fatal alert: handshake_failure is an error message that can occur during an SSL/TLS handshake.
- Removing Conda environmentPython
To remove a conda environment, you can use the following command:
- RuntimeException: Unable to create the cache directory (/var/www/sonata/app/cache/dev)PHP
This error message indicates that the system is unable to create a cache directory at the specified location.
- Selenium using Python - Geckodriver executable needs to be in PATHPython
If you are using Selenium with the Firefox web browser and you see the error message "Geckodriver executable needs to be in PATH," it means that the Selenium Python library cannot find the geckodriver executable on your system.
- Several ports (8005, 8080, 8009) required by Tomcat Server at localhost are already in useJava
If you get an error saying that several ports required by the Tomcat Server are already in use, it means that another program is using one or more of the ports that Tomcat is trying to bind to. Tomcat typically uses the following ports:
- The Mix manifest does not exist when it does existPHP
This error message typically indicates that the Laravel Mix build process is unable to find the mix-manifest.json file that it generates when you run the npm run dev or npm run production command.
- The openssl extension is required for SSL/TLS protectionPHP
The openssl extension in PHP is required to provide SSL/TLS support.
- Tomcat Server Error - Port 8080 already in useJava
If you see the error "Port 8080 already in use" when starting the Tomcat server, it means that another process is already using port 8080 on your machine.
- Unable to find valid certification path to requested target - error even after cert importedJava
If you are getting the "unable to find valid certification path to requested target" error even after importing the certificate, there are a few possible causes and solutions:<br>
- Unfortunately MyApp has stopped. How can I solve this?Java
If you are seeing the error "Unfortunately, MyApp has stopped," it means that your Android app has crashed. This can be caused by a number of factors, including:
- Use cURL with SNI (Server Name Indication)PHP
Server Name Indication (SNI) is an extension to the Transport Layer Security (TLS) protocol that allows a client to specify the hostname it is trying to connect to at the start of the handshaking process.
- Use different PHP version CLI executable for one commandPHP
You can use the alias command in your terminal to create a new command that runs a different version of PHP.
- Use different Python version with virtualenvPython
To use a different Python version with virtualenv, follow these steps:
- Verify ImageMagick installationPHP
To verify that ImageMagick is installed, you can use the command-line tool "convert".
- Viewing contents of a .jar fileJava
To view the contents of a .jar file, you can use the jar command-line utility that is included with the Java Development Kit (JDK).
- What are Java command line options to set to allow JVM to be remotely debugged?Java
To allow the Java Virtual Machine (JVM) to be remotely debugged, you can use the following command line options:
- What are the -Xms and -Xmx parameters when starting JVM?Java
The -Xms and -Xmx options are used to set the initial and maximum heap sizes, respectively, for the Java Virtual Machine (JVM).
- What is __pycache__?Python
__pycache__ is a directory that is created by the Python interpreter when it imports a module.
- What is path of JDK on Mac ?Java
On macOS, the path of the JDK (Java Development Kit) is typically /Library/Java/JavaVirtualMachines/jdk<version>.jdk/Contents/Home, where <version> is the version of the JDK.
- What's the net::ERR_HTTP2_PROTOCOL_ERROR about?PHP
net::ERR_HTTP2_PROTOCOL_ERROR is an error that occurs in the Google Chrome browser when there is an issue with the HTTP/2 protocol.
- Where can php.ini be FoundPHP
This tutorial is dedicated to an issue that any developer may come across. It’s where to find the php.ini file. Choose among the three methods provided.
- Where Does PHP Store Error LogPHP
In this short tutorial, we are going to represent to you how to find where the PHP error log is located.
- Where is Java Installed on Mac OS X?Java
On Mac OS X, the default location for the JDK (Java Development Kit) is /Library/Java/JavaVirtualMachines/jdk&lt;version&gt;.jdk/Contents/Home/, where &lt;version&gt; is the version number of the JDK you have installed.
- Where is JAVA_HOME on macOS Mojave (10.14) to Lion (10.7)?Java
On macOS, the JAVA_HOME environment variable is typically set in the /etc/launchd.conf file.