python
pyenv prerequisite packages to install
pyenv: https://github.com/pyenv/pyenv link the packages to install: https://github.com/pyenv/pyenv/wiki#suggested-build-environment
pyenv: https://github.com/pyenv/pyenv link the packages to install: https://github.com/pyenv/pyenv/wiki#suggested-build-environment
When thinking both Exceptions and interrupts at the same time, things can get confusing so here I write down some simple experiments that I did to clear some confusing concepts.
(more…)There are good websites which store a lot of pdf files that can be used for data. However, it can be quite difficult to automate the downloading process with a simple web scraping tool because the data download url that the user wants resides behind another webpage. I will use IMF website for example.
(more…)Getting the angle between two vectors is well known. But finding the ‘rotation angle’ from one vector to another needs a bit more consideration. The following functions can handle this. This function will use cross product between two vectors to identify if the rotation direction is CW or CCW. This Read more…
creating the most basic launch.json file is explained well in official docs. changing execution path However what I really wanted to know was how to configure it to make it run debugging on a file from a specific directory path. For example, I have a workspace structure like this. And Read more…
after creating a virtualenv, one can setup pip.conf file right inside the created virtualenv directory. Here’s an example An example of pip.conf that I use commonly is shown below. The “index-url” may not be necessary since it is the default value, but in case it is overwritten by the system Read more…
you can apply proxy settings to python requests like this:
instlal PyYAML in python file, load file like the following the data in yaml file will be saved in data variable as a python dict.