fedor game and new
"Regexp AND LIKE"优化方法
与大多数数据库一样,MariaDB允许在WHERE子句中使用正则表达式进行查询。虽然这功能很强大,但在数据库中使用regexp的一个问题是它无法利用索引。原因很简单:查询优化器无法理解正则表达式,也无法对它们的返回值做出假设。 这篇文章提出了一个微不足道但反直觉的优化,有时可以解决这个限制。 对于下 ......
new操作符都做了哪些事情
一、概念 new 能创建一个实例对象; 这个对象是给定的构造函数 function Person(name, age){ this.name = name; this.age = age; console.log(this) // Person { name: 'Tom', age: 20 } } ......
What are the differences between in vivo and in vitro testing of drugs for toxicology Studies?
Toxicology is the science of studying the harmful effects of chemical, physical, biological, and other exogenous factors on biological systems. It can... ......
python: Reading and Writing JSON to a File
#import json jsondata = { 'sqlserver': [ { "server": "DESKTOP-NQK85G5\GEOVIN2008", "useid": "sa", "password": "geovindu", "database": "Student" } ], ' ......
Binomial Theorem and Generating Functions
# Binomial Theorem Let $n$ be a nonnegative integer. Then $$ \sum_{k=0}^n 2^k\left(\begin{array}{l} n \\ k \end{array}\right)=3^n $$ Proof: We recogni ......
CF1515G Phoenix and Odometers
有点神仙的。 ## 题意 给定一张 $n$ 个点 $m$ 条边的有向图,有边权,进行 $q$ 次询问($n,m,q\le 2\times 10^5$,边权为不超过 $10^9$ 的正整数)。 每次询问给定三个参数 $v,s,t(0\le s using namespace std; using LL ......
CF794F. Leha and security system
比较水的 *2800,但是考察对标记的理解。 有一个比较原始的思路:因为需要让所有数码为 $x$ 的改成 $y$,我们不难想到这样一个做法:对十进制下第 $1,2,3\ldots$ 位各开一棵线段树,每个节点存区间内每种数码的出现次数 $cnt_i$ ,最后用位值原理合并得到答案。 对于区间修改操作 ......
CF261E Maxim and Calculator 题解
## 题面翻译 二元组$ (a,b)$,可以变成$ (a,b+1)$或$ (ab,b)$ 你有初始二元组$ (1,0)$,给你区间$ [l,r]$,和一个整数$ p$,在区间内选一个数$ x$,使$ (1,0)$在不超过$ p$步变化后,第一维的值变成$ x$,求$ x$的个数$ (2 #defin ......
db2pd - A db2 monitoring and troubleshooting tool.
db2pd - A db2 monitoring and troubleshooting tool. In this blog we will see and learn about one of the important db2 tool which a DBA use it on daily ......
Proj. CAR Paper Reading: Augmenting Decompiler Output with Learned Variable Names and Types
## Abstract 背景: 1. decompilers难以恢复注释、variable names, custom variable types 本文: 工具:DIRTY((DecompIled variable ReTYper) 方法: postprocesses decompiled fil ......
dup2 and dup修改和恢复进程的标准输入
`dup2(oldfd, newfd)`. 旧的文件描述符,和新的文件描述符指向同一个文件。 `int ans = dup(oldfd);` 返回值文件描述符和旧的文件描述符指向同一个文件。 通过dup/dup2,可以将多个文件描述符指向同一个文件实体,它们都可以等效得访问同一个文件。 dup2的操 ......
[20230616]One Deadlock of 'row cache lock' and 'library cache lock'.txt
[20230616]One Deadlock of 'row cache lock' and 'library cache lock'.txt--//链接http://ksun-oracle.blogspot.com/2023/06/one-deadlock-of-row-cache-lock-an ......
[Typescript 5.2] New Keyword: using
TypeScript 5.2 will introduce a new keyword - 'using' - that you can use to dispose of anything with a Symbol.dispose function when it leaves scope. T ......
WABCO DIAGNOSTIC KIT (WDI) WABCO Trailer and Truck Diagnostic Interface
Wabco Diagnostic Kit is a universal diagnostic tool designed for maintenance of trailers, trucks and buses. Wabco Diagnostic tool supports most popula ......
Understanding JavaScript Garbage Collection: Dive into Reference Counting and Mark-and-Sweep Algorithms
JavaScript, the programming language of the web, is often praised for its ability to handle memory management automatically. The JavaScript engine's g ......
new 和 delete 运算符
下面是使用 new 运算符来为任意的数据类型动态分配内存的通用语法: new data-type; 在这里,data-type 可以是包括数组在内的任意内置的数据类型,也可以是包括类或结构在内的用户自定义的任何数据类型。让我们先来看下内置的数据类型。例如,我们可以定义一个指向 double 类型的指 ......
php解决 mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysq
The mysql extension is deprecated and will be removed in the future: use mysq 翻译: mysql_connect这个模块将在未来弃用,请你使用mysqli或者PDO来替代。 解决方法: 打开php.ini 配置文件把 di ......
Counting principle and Program Testing
# Reference https://www.shuxuele.com/data/basic-counting-principle.html # 基本计数原理 若有m个方法去做一件事,及n个方法去做另一件事, 则有m×n个方法去做这两件事。 # 应用场景 这个原理只适合在所有选择都是独立时才适用。 ......
day 33 反射机制,元类,__new__,__call__,元类下的属性查找
1,内置方法在 满足某种条件下自动触发 2、python是动态,强类型的,解释型语言 动态:在程序中定义变量时不需要定义变量的类型,在执行时才知道变量的类型;静态:必须定义好变量的类型。 只要是动态语言,就必须有反射机制 解释:一句一句的翻译后执行 强类型: 3:反射 实现反射机制的步骤1、先通过多 ......
An Introduction to Linux Automation, Tools and Techniques
An Introduction to Linux Automation, Tools and Techniques https://linuxconfig.org/an-introduction-to-linux-automation-tools-and-techniques In the fast ......
Games101-Cp3-Shading
Shading的过程就是对物体应用材质的过程。Shading$\not=$Shadow。着色模型不包括阴影。 ###Z-Buffering 深度缓存用于做深度测试时对深度进行比较。在$[0, 1]$之间取值。应该是可视范围与深度的相除? 在开启深度测试的时候,与深度缓存进行比较。如果小于对应像素的深 ......
CF1770F Koxia and Sequence
一步都没想到,一定是状态不好吧,一定吧一定吧? 加训数数! ## 题意 给定 $n, x, y$,定义好的序列 $\{a_i\}_{i = 1}^n$ 满足 $\sum\limits_{i = 1}^na_i = x, \operatorname{OR}\limits_{i = 1}^na_i = ......
MATH is the LOGIC OF CERTAINTY and STATISTICS is the LOGIC OF UNCERTAINTIES
Statistics 110 of Harvard University: Math is the logic of certainty, Statistics is the logic of uncertainty. Strategic practice: Clarity; Honesty ......
game
# 1 布局文件 activity_main ```html ``` # 2 控制文件 MainActivity ```java package com.example.game; import static java.lang.Math.abs; import androidx.appcompat ......
【转载】Game 1
# 奇葩贪吃蛇 ```cpp #include #include #include #include #include #include #include #define random(a,b) (rand() % (b-a+1))+ a; #define sr srand((unsigned)ti ......
【转载】Game 2
# 改版五子棋 version 3.0 **更新日志:** 1. v1.0 修改了bug【源码来源:[链接](https://www.luogu.com.cn/discuss/344026) | yzmyyds】 2. v2.0 添加了command mode 3. v3.0 添加了脚本模式(~~代 ......
python: encode and decode
import binascii geovin=b"geovindu" adu=base64.b64encode(geovin) #加密码 print(adu) edu=base64.b64decode(adu) #解密 print(edu) s=["医疗",400,1] column=('Insur ......
【题解】CF754D Fedor and coupons(优先队列)
# 【题解】CF754D Fedor and coupons ## 题目链接 [CF754D Fedor and coupons](https://www.luogu.com.cn/problem/CF754D) [CF1029C Maximal Intersection](https://www. ......
Fourier Analysis and Nonlinear Partial Differential Equations 阅读笔记 (第一章)
# 实分析基础 ## Holder与卷积不等式 首先从经典的Holder不等式入手. **命题: 经典情况下的Holder不等式** >设$(X,\mu)$是测度空间, $(p,q,r)\in[1,\infty]^3$满足 >$$\frac{1}{p}+\frac{1}{q}=\frac{1}{r} ......