Ben Chuanlong Du's Blog

It is never too late to learn.

Take Screenshots in Python

Comments

  1. PIL.ImageGrab works on macOS and Windows only.
  1. PIL.ImageGrab is relatively slow. python-mss and PyQt5 are better alternatives if performance of screenshot is critical. Notice that saving an (e.g., PNG) image can take significant time (might take up to 0.5 seconds) too, this is often due to image compression is slow. Lower the compression level can significant reduce the time needed to save an image. Please refer to Saving a PNG file is slow

Tips on Cloud9

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

  1. Java/Scala support is not ready at this time.

Docker Images for Cloud9

  1. cloud9-docker is a good docker image for cloud9 IDE. You are able to attach a local directory as …

Tips on Eclipse Che

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

You can launch an Eclipse Che server using the command below.

docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /workdir/che:/data eclipse/che start

The …

Share Memory Among Processes in Python

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

https://www.youtube.com/watch?v=uWbSc84he2Q

https://docs.python.org/3.8/library/multiprocessing.html#multiprocessing.Value