Python actual combat [Alien Invasion] game and adapted it into [Messi vs Ronaldo] (fans live) – build environment, source code, read the highest score and generate executable .exe file

Article directory Preface Install Pygame Game implementation Read, write and store the highest score in [Alien Invasion] game Game source code alien_invasion.py game_functions.py ship.py alien.py bullet.py button.py scoreboard.py game_stats.py settings.py .bmp type files for spaceships and aliens Organize game programs into .exe files Step 1: Install the Pyinstaller library in pycharm Step 2: Generate .exe […]

win32 – PE Executable and section inject

#include <iostream> #include <Windows.h> #include <ShlObj.h> #include <Shlwapi.h> #pragma comment(lib, “Shell32.lib”) #pragma comment(lib, “Shlwapi.lib”) DWORD align(DWORD size, DWORD align, DWORD addr) { if (!(size % align)) return addr + size; return addr + (size / align + 1) * align; } int main(int argc, char* argv[]) { /*if (argc < 3) { std::cout << “Argomenti […]

Interactive Python code running time measurement tool (with source code and .exe executable file)

Code runtime measurement tool Interactive Python code execution time measurement tool (source code and .exe executable file attached) Tool overview Tool interface Instructions The Importance of Code Execution Time Measurements Summarize Source code and .exe executable file download address Executable file [***Click here to download***](https://pan.baidu.com/s/1mI13dIEr6bWSvEVhB1R8Dg?pwd=vsuw) The source code is as follows: Interactive Python code execution […]

[Java executable commands] (22) JVM statistical information monitoring tool jstat: Obtain and display statistical information about heap, garbage collection, class loading, compiler, etc. through the local media connected to the Java virtual machine~

Java executable command jstat 1 Concept 2 Advantages and Disadvantages 3 Use 3.1 Grammar format 3.2 Usage tips 3.3 Optional parameters: -class 3.4 Optional parameter: -compiler 3.5 Optional parameters: -gc 3.6 Optional parameters: -gcutil 4 Application scenarios Summarize 1 Concept jstat is a performance monitoring tool provided by the Java virtual machine for real-time monitoring […]

Various methods of java compressing files through ant and compress and adding executable permissions

Background After a certain software release, the customer found that the iOS software package could not be converted in dark and lacked executable permissions. After analysis by colleagues, they found that the executable permissions of the files were lost during the compression process. So they searched for some methods on the Internet to retain the […]

[Java executable commands] (19) Heap dump file analysis tool jhat: load the Java heap dump file into memory, and provide an interactive interface in the browser for information browsing and analysis ~

jhat of Java executable command 1 concept 2 Advantages and disadvantages 3 use 3.1 Syntax format 3.2 Use steps and skills 3.3 Example of use 4 Application scenarios Summarize 1 concept jhat is a tool that comes with Java Development Kit (JDK), which is used to analyze Java heap dump files (namely Heap Dump). Its […]

[Java executable commands] (21) Thread snapshot generation tool jstack: Help developers analyze and troubleshoot thread-related problems (deadlock, infinite loop, thread blocking…)

jstack of Java executable commands 1 concept 2 Advantages and disadvantages 3 use 3.1 Syntax format 3.2 Use steps and skills 3.3 Use cases 4 Application scenarios Summarize 1 concept The jstack command is a diagnostic tool provided in the Java Development Kit (JDK) to generate thread snapshots of the Java Virtual Machine (JVM). Its […]

[Java executable commands] (20) Heap dump snapshot file and heap information viewing tool jmap: generate multi-format heap dump files, print class loader information and view shared object mapping information ~

jmap of Java executable commands 1 concept 2 Advantages and disadvantages 3 use 3.1 Syntax format 3.2 Generating a heap dump file 3.3 Execute the jmap command to check the memory usage 3.4 Execute the jmap command to print object statistics 4 Application scenarios Summarize 1 concept jmap is a tool that comes with Java […]

The All process definition are set to be non-executable error of the Activiti workflow has been resolved

Table of Contents method one: Method Two: Method 3 (==recommended method==): Error message description: All process definition are set to be non-executable (property isExecutable’ on process). This is not allowed. org.activiti.engine.ActivitiException: Errors while parsing: [Validation set: ‘activiti-executable-process’ | Problem: ‘activiti-process-definition-not-executable’] : All process definition are set to be non-executable (property ‘isExecutable’ on process ). This […]

[Java executable commands] (16) Diagnostic command request sending tool jcmd: Provides a simple and powerful way to manage and monitor Java processes~

jcmd of Java executable command 1 concept 2 Advantages and disadvantages 3 use 3.1 Syntax format 3.2 jcmd -l: List running Java processes 3.3 jcmd help: list diagnostic commands for a specific process 3.4 jcmd : execute diagnostic command 4 Application scenarios Summarize 1 concept jcmd is a command-line tool in Java for interacting with […]