What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-15 14:24:02
how to handle merge conflicts
# Step 1: # Navigate into the local Git repository that has the merge conflict. cd REPOSITORY-NAME # Step 2: # Generate a list of the files affected by the merge conflict. # In this example, the file styleguide.md has a merge conflict. git status ... Add solution -
Other 2021-09-12 21:15:02
pg_dump command not found
For 14.04 you can just install postgresql-client (as it depends on postgresql-client-common): sudo apt-get install postgresql-client To quickly know which package contains a command/binary missing on your system, just use package.ubuntu.com (Search the c... Add solution -
PHP 2021-09-09 13:09:02
php validate image
$image_name = $_FILES["inputname"]["name"]; $allowed_extensions = array("png", "jpg", "jpeg"); $image_extension = explode(".", $image_name); /* *Explode returns array of words *Explode Exampl... Add solution -
Other 2021-09-08 20:32:03
Python module import path setting
# import statement will search the following path in turn: # 1. current directory of the script file which runs `import` # 2. directories in the environ variable `PYTHONPATH` # 3. An installation-dependent list of directories configured at the time Python... Add solution