java G711 编码
This Java code implements G.711 A-law compression and decompression. The `CMG711` class contains `aLawCompressTable` and `aLawDecompressTable`, arrays used for efficient encoding and decoding of audio data using the A-law algorithm. The `cClip` constant defines a clipping value for signal processing. This code provides a practical implementation of the G.711 A-law standard within a Java environment.
C++获取运行exe路径和名称
This article presents two methods in C++ to obtain the path and name of the currently running executable. The first uses command-line arguments (argv[0]) and string manipulation to extract the information. The second employs a custom `PathUtil` class, leveraging `GetModuleFileNameA` to retrieve the full path and then parsing it to separate the filename. Both methods provide solutions for acquiring both the executable's path and its name.
Linux系统常用命令
This article provides a concise guide to common Linux commands. It covers essential functionalities including file manipulation (ls, cp, mv, rm, mkdir, rmdir), directory navigation (pwd), file content viewing (cat), text output (echo), process management (ps, top, kill), system information (df, free), searching (grep, find), permission changes (chmod, chown), archiving (tar), and downloading (wget, curl). Each command is briefly described with an example output. The guide is useful for both beginners and experienced users needing a quick reference.