Storage long text in MySQL

 

Packet Too Large A communication packet is a single SQL statement sent to the MySQL server, a single row that is sent to the client, or a binary log event sent from a master replication server to a slave. The largest possible packet that can be transmitted to or from a MySQL 5.5 …

Continue reading

[note] PHP exec Docker run

For example: use this docker container to convert pdf file to html

  PHP use shell_exec function to exec docker run, there is some notes: Assign a container name with the –name option Automatically clean up the container and remove the file system when the container exits, you can add the –rm flag The input device is not a TTY. …

Continue reading

[note] Web Scraping and Print to PDF

https://medium.com/@e_mad_ehsan/getting-started-with-puppeteer-and-chrome-headless-for-web-scrapping-6bf5979dee3e https://www.chromium.org/developers/creating-and-using-profiles https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF https://www.tecmint.com/install-google-chrome-on-redhat-centos-fedora-linux/ https://bugs.chromium.org/p/chromium/issues/detail?id=603559 https://bugs.chromium.org/p/chromium/issues/detail?id=617931#c1

Continue reading