欧拉定理 拓展欧拉定理

算数基本定理

算术基本定理,又称唯一分解定理

定理内容是:

任何一个大于1的自然数\(N\),如果\(N\)不为质数,都可以唯一分解成有限个质数的乘积\(N = P_1^{a_1} P_2^{a_2} \dots P_n^{a_n}\)。这里\(P_1 < P_2 < \dots < P_n\)均为质数,指数\(a_i\)均为正整数。

阅读全文 »

Yolov5 输出 onnx 模型配置

修改./models/yolo.py

找到forward函数定义,替换全部函数为

def forward(self, x):
z = [] # inference output
for i in range(self.nl):
x[i] = self.m[i](x[i]) # conv

return x

修改./export.py

shape = tuple((y[0] if isinstance(y, tuple) else y).shape)  # model output shape

改为

shape = tuple((y[0] if isinstance(y, tuple) else y))  # model output shape

输出onnx模型指令

python export.py --weights yolov5s.pt --img 640 --batch 1 --include onnx

Linux Sudo 加速 本地解析

hostname 添加本地解析,MyLinux为主机名

echo ‘127.0.0.1 MyLinux.localdomain MyLinux’ >> /etc/hosts

Android adb shell 挂载拓展卡为可读写

adb shell指令

mount -o remount,rw /system

扩展卡所在位置

cd /mnt/media_rw/extSdCard

安卓系统权限写入权限

mount -o remount,rw /system
cd /system/etc/permissions
vi platform.xml

在文件中找到 <permission name="android.permission.WRITE_EXTERNAL_STORAGE" > 中间添加

<group gid="media_rw" />

英语演讲 动作

delivery

vocal variety

  1. Volume
  2. Pitch
    1. Imitating
    2. Read poems
    1. se End + No oral words Proper pause can be extremely useful.
    • Signal the end of a thought unit
    • Give an idea time to sink in
    • Lend dramatic impact to a statement
  3. Rates
  4. Pronunciation to Classmate/record

Body

Five major aspects of the body 1. personal appearance 2. eye contact 3. facial expression 4. gesture 5. posture

Personal Appearance

Neatly + Properly

Eye contact

all parts + for whole audience One person , one thought

facial expressions

Smiling + Practice different method(shock confusion)

Gesture

hands + arms 1. Palms up (introducing, welcome,provide a choice) 2. Palms down (stress one point) 3. Act out your words (number, support words, express emotions) 4. Avoid waving+back+pockets

Posture

Upright + stable Before + After

Visual Aids

Objects and models
Photographs and drawings
Graphs
Charts
Videos
The speaker
PowerPoint

Main points + Simple + fonts + Colors 1 - 2 images (large) + keywords With Blank Slide if do not needed

IDA 逆向 PATCH 实践

主要操作

subview: string 可以搜索程序内文字 HEX下 空格可视化和汇编转换 TAB是HEX窗口和伪代码窗口切换(需要在函数内)

Patcher : 进行代码修改

修改源文件操作

EDIT: patch program->Apply all 即可应用所有修改

效果

C:\Users\Lenovo\3D Objects\vjudge\12>.\F+
1
100 1050 1563
585372136

C:\Users\Lenovo\3D Objects\vjudge\12>.\F+
1
100 1050 1563
0

中国剩余定理

知识回顾-线性同余方程相关定理

  • 定理1:线性同余方程: \[ax \equiv k \pmod{b} \ (\text{即:} ax + by = k)\] 对于未知量\(x\)有解,当且仅当\(\gcd(a, b) \mid k\)
    阅读全文 »
0%