What’s the difference between python shebangs with /usr/bin/env rather than hard-path?

#!/usr/bin/python is hardcoded to always run /usr/bin/python, while #!/usr/bin/env python will run whichever python would be default in your current environment (it will take in account for example $PATH, you can check which python interpreter will be used with which python). The second way ( #!/usr/bin/env python ) is preferred , as it’s not dependent … Read more

What is run time environment?

Distinguish this from Development Environments and Build Environments. You will tend to find a hierarchy here. Run time environment – Everything you need to execute a program, but no tools to change it. Build environment- Given some code written by someone, everything you need to compile it or otherwise prepare an executable that you put … Read more

Set windows environment variables with a batch file

@ECHO OFF :: %HOMEDRIVE% = C: :: %HOMEPATH% = \Users\Ruben :: %system32% ?? :: No spaces in paths :: Program Files > ProgramFiles :: cls = clear screen :: CMD reads the system environment variables when it starts. To re-read those variables you need to restart CMD :: Use console 2 http://sourceforge.net/projects/console/ :: Assign all … Read more

Error: Registry key ‘Software\JavaSoft\Java Runtime Environment’\CurrentVersion’? [duplicate]

On my Windows 7 machine, it was solved by doing the following: In the START menu type “regedit” to open the Registry (be careful doing this) Go to “HKEY_LOCAL_MACHINE” on the left-hand side registry explorer/tree menu Click “SOFTWARE” within the “HKEY_LOCAL_MACHINE” registries Click “JavaSoft” within the “SOFTWARE” registries Click “Java Runtime Environment” within the “JavaSoft” … Read more

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