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…

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…

Git Apply/Am Patch File

Create Patch Files Create simple Email-format files which contain commit content with git. For example, $ git format-patch -M origin/master -5 0001-remove-debug-dir.patch 0002-adjust-height.patch 0003-use-splitter-as-stackWidget-page.patch 0004-Make-gif-resize.patch 0005-add-resize-event.patch The patch file has UNIX mailbox format context which is convenient for e-mail submission or for use with git am, we can use command Read more…

Shell – Use cmake.exe and devenv.exe to build CPP project

Initial developing environment: “C:Program Files (x86)Microsoft Visual Studio 12.0VCvcvarsall.bat” x86 Use cmake to generate a project file. E:projectprivatedoubleView2>cmake ./ — Building for: Visual Studio 16 2019 — Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.17134. — The C compiler identification is MSVC 19.21.27702.2 — The CXX compiler identification is Read more…

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

X