Ben Chuanlong Du's Blog

It is never too late to learn.

Fix Authentication Error of GitHub Repositories on DockerHub

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Solution

  1. Got to Account Seetings

  2. Navigate to the Linked Accounts seciton

  3. Unlink GitHub and relink it.

References

https://github.com/docker/hub-feedback/issues/416

"." Is Not Recognized as An Internal or External Command

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

I encountered the following error message when running a Windows command !./osqueryi.exe .tables in the IPython shell.

In[15] >>> !./osqueryi.exe .tables
'.' is not recognized as an internal or external …

ImportError: Attempted Relative Import With No Known Parent Package

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Symptom

ImportError: Attempted Relative Import With No Known Parent Package

Solution

The best solution is to run the Python script as a Python module. However, you have to add the directory …

Tips on Pillow

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

PIL.Image.Image.crop

Notice that the bounding box is inclusive/EXCLUSIVE like the range function. PIL.Image.Image.crop does not accept a bounding box of zero size!

PIL.Image …