Compile Code And Run It With Mono In Docker

The Basic Knowledge About Docker. To find all containers and images: [parallels@localhost ~]$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [parallels@localhost ~]$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE mono latest 2ba93b1033ba 2 weeks ago 690MB hello-world latest fce289e99eb9 11 months ago 1.84kB To read information Read more…

Using LLDB To Explore Why My Program Crashed

Last night I read some pages in VTKUsersGuide to learn VTK factory mechanism. I got the basic steps of defining my own factory and use it. Implement virtual function which is declared in vtkObjectFactory. virtual const char* GetVTKSourceVersion(); virtual const char* GetDescription(); Create Object Use the protected function RegisterOverride which Read more…

Python Edit Simple Text File

Read a single txt file and indent every paragraph. myReader.py def getText( filePath ): with open( filePath ) as file: content = file.read() paragraphs = content.split( ‘\n’ ) file.close() newContent = “” for para in paragraphs: newContent = newContent + ” ” + para + “\n” return newContent main.py import Read more…

Use Python To Handle Simple PDF Edit Tasks

The article shows a few simple examples which use python to edit PDF. Copy And Encrypt PDF Just copy an existing PDF and generate a new file which is encrypted import PyPDF2 fileName = “/Users/weiyang/Desktop/Test.pdf” newFileName = “/Users/weiyang/Desktop/NewTest.pdf” file = open( fileName, ‘rb’ ) reader = PyPDF2.PdfFileReader( file ) writer Read more…

Build Qt-VTK Project By Qt Creator And CMake

Develop environment: VTK-8.2.0 Qt Creator 4.9.0 Based on Qt 5.12.2 (MSVC 2017, 32 bit) CMake 3.14.3 CMake Generator: Visual Studio 16 2019 Configure compilers for my building kit C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe More details are in the following image. We Read more…

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

X