Is a new line = \n OR \r\n?

\n is used for Unix systems (including Linux, and OSX). \r\n is mainly used on Windows. \r is used on really old Macs. PHP_EOL constant is used instead of these characters for portability between platforms.

PLS-00103: Encountered the symbol “CREATE”

At line 5 there is a / missing. There is a good answer on the differences between ; and / here. Basically, when running a CREATE block via script, you need to use / to let SQLPlus know when the block ends, since a PL/SQL block can contain many instances of ;.

Unable to resolve dependency tree error when installing npm packages

This is not related to an HTTP proxy. You have dependency conflict (incorrect and potentially broken dependency) as it says, so try to run the command with –force, or –legacy-peer-deps. If it doesn’t take effect, the temporary solution is using prior versions of the Node.js (downgrading the Node.js version) as it causes this kind of errors to happen sometimes. Update based on the OP’s update: As … Read more

Using Pip to install packages to Anaconda Environment

For others who run into this situation, I found this to be the most straightforward solution: Run conda create -n venv_name and conda activate venv_name, where venv_name is the name of your virtual environment. Run conda install pip. This will install pip to your venv directory. Find your anaconda directory, and find the actual venv folder. It should be somewhere like /anaconda/envs/venv_name/. … Read more

What is the difference between String.subString() and String.subSequence()

Using str.subSequence(begin, end) returns a CharSequence which is a read-only form of the string represented as a sequence of chars. For example: It’s read only in the sense that you can’t change the chars within the CharSequence without instantiating a new instance of a CharSequence. If you have to use str.subSequence(begin, end), you can cast the result to a String: and use all the normal String operators like subSequence … Read more

Using Javascript in CSS

IE and Firefox both contain ways to execute JavaScript from CSS. As Paolo mentions, one way in IE is the expression technique, but there’s also the more obscure HTC behavior, in which a seperate XML that contains your script is loaded via CSS. A similar technique for Firefox exists, using XBL. These techniques don’t exectue JavaScript from CSS directly, but … Read more