Bash script: bad interpreter

The first line, #!/bin/bash, tells Linux where to find the interpreter. The script should also be executable with chmod +x script.sh, which it appears you did. It is highly likely that you created this file with a windows editor, which will place a <cr><lf> at the end of each line. This is the standard under … Read more

npm update broke npm

You probably have npm installed twice, one is in /usr/local/bin and the other in /usr/bin. First, you can try to remove the npm module that has been installed by upgrading npm. Try to run this: rm -r /usr/local/lib/node_modules/npm /usr/bin/npm uninstall npm Once you have a running version of npm, install a more recent version of … Read more

Pycharm and sys.argv arguments

In PyCharm the parameters are added in the Script Parameters as you did but, they are enclosed in double quotes “” and without specifying the Interpreter flags like -s. Those flags are specified in the Interpreter options box. Script Parameters box contents: Interpeter flags: Or, visually: Then, with a simple test file to evaluate: We … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)