fedor game and new
【cpluscplus教程翻译】友元和继承(Friendship and inheritance)
# 友元函数(Friend functions) 原则上,private和protected成员不能在声明的类外被使用,然而这条规则不适用于友元 友元是用friend关键字声明的函数或者说类 如果一个非成员函数声明成一个类的友元,那么它可以访问private和protected。这可以通过在类里添加 ......
Game on Paper 题解
[题目传送门](https://www.luogu.com.cn/problem/CF203B) 一道模拟题。 如果每涂一个格子就判断整个矩阵,那时间复杂度显然会炸。 我们每涂一个格子,影响的应该只是以这个格子为中心的 $3 \times 3$ 矩阵,判断以这些点为中心的话会不会涂出 $3 \tim ......
Games101——三角形随机均匀采样
assignment7中,使用了如上公式在三角形中采样,看着一头雾水,经过搜集资料,最终发现这是一个严谨的三角形随机均匀采样算法 选自 https://math.stackexchange.com/questions/18686/uniform-random-point-in-triangle-in ......
UE Build System:Target and Module
Module 是构成 Unreal 的基本元素,每一个 Module 封装和实现了一组功能,并且可以供其他的 Module 使用,整个 Unreal Engine 就是靠各个 Module 组合驱动的,连我们创建的游戏项目本身,都是一个单独的 Module。 那么 UE 又是怎么创建和构建这这些 M ......
How to Delete a Git Branch Both Locally and Remotely
# TL;DR version ``` https://www.freecodecamp.org/news/how-to-delete-a-git-branch-both-locally-and-remotely/ // delete branch locally git branch -d loc ......
Myarray and Mystring
### Mystring.cpp ``` #include using namespace std; class Mystring { public: Mystring() : s_(NULL), len_(0), siz_(0) {} //无参构造 Mystring(const char* s); ......
new的用法复习
1 #include <iostream> 2 using namespace std; 3 int* func() 4 { 5 int* p = new int(10); 6 return p; 7 } 8 void test01() 9 { 10 int* p = func(); 11 cout ......
FINC3017 Investments and Portfolio
FINC3017 Investments and Portfolio ManagementAssignment 2: Analyzing AnomaliesDue: 11:59PM, 15 May 2023Word limit: 1500, excluding tables, figures, an ......
Learning with Local and Global Consistency
[TOC] > [Zhou D., Bousquet O., Lal T. N., Weston J. and Scholk\ddot{o}pf B. Learning with local and global consistency. NIPS, 2003.](https://proceedin ......
Combining Label Propagation and Simple Models Out-performs Graph Neural Networks
[TOC] > [Huang Q., He H., Singh A., Lim S. and Benson A. R. Combining label propagation and simple models out-performs graph neural networks. ICLR, 20 ......
[React Typescript] Overriding and Removing Component Props
Using Omit import { ComponentProps } from 'react'; import { Equal, Expect } from '../helpers/type-utils'; export const Input = ( props: Omit<Component ......
AtCoder Grand Contest 062 B Split and Insert
[洛谷传送门](https://www.luogu.com.cn/problem/AT_agc062_b "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/agc062/tasks/agc062_b "AtCoder 传送门") 妙妙题。 像这种最 ......
VUE npm run serve 提示error Mixed spaces and tabs no-mixed-spaces-and-tabs 解决办法
解析: 看这个错误提示意思就是“不允许代码中出现空格和tab键混合的情况”大多数代码约定要求使用空格或 tab 进行缩进,禁止使用空格和tab混合缩进。因此,一行代码同时混有 tab 缩进和空格缩进,通常是错误的。 解决办法:原因找到了,解决办法就是找到spaces和tabs混合的地方,然后统一即可 ......
golang new和make
new和make 1. new 和 make 都用于分配内存; 2. new 对指针类型分配内存,返回值是分配类型的指针,new也可以对 slice 、map、channel 分配内存;但多用于自定义的结构体 3. make 仅用于 slice、map和 channel 类型的初始化分配内存空间,返 ......
Sep 2022-Prioritized Training on Points that are Learnable, Worth Learning, and Not Yet Learnt
提出了Reducible Holdout Loss Selection (RHOLOSS),一种简单但有原则的技术,近似地选择那些最能减少模型泛化损失的点进行训练 ......
CF1774F Magician and Pigs【性质】
有一个空序列,需要维护如下三个操作: - ```1 x```:在序列中添加 $x$。 - ```2 x```:把序列中每个元素的值减去 $x$。 - ```3```:重复从第一条到本条操作的前一条的所有操作,包括操作 $3$。 当一个数的值 $\leq 0$ 时,它将被移出序列。求最后有多少个数还在 ......
CF1824D LuoTianyi and the Function【线段树】
给定长为 $n$ 的数组 $a$,如下定义 $g(i,j)$:当 $i \leq j$ 时,$g(i,j)$ 是满足 $\{ a_p : i \leq p \leq j \} \subseteq \{a_q : x \leq q \leq j\}$ 的最大整数 $x$。否则 $g(i,j) = 0$ ......
计算机图形学入门——GAMES101第一课笔记
一、光栅化 将三维空间的几何形体显示在屏幕上,就是光栅化(Rasterization)。 虎书中有这么一段话: The process of finding all the pixels in an image that are occupied by a geometric primitive i ......
2. Equalibrium and Temperature
### 什么是Equalibrium (state) Equalibirum state 可以说是系统演化的一个目标,当一个系统经过长时间的演化后处于一个与初始条件无关,且其一些宏观性质不随时间变化的状态时,我们就说系统进入了equalibrium state. ### 如何描述Equalibriu ......
现代计算机图形学——P6. Rasterization 2(Antialiasing and Z-Buffering)(光栅化(反走样和深度缓冲(Z缓冲)))
—————————————————————————————————————————————————————————— —————————————————————————————————————————————————————————— ———————————————————————————————— ......
Check the tbs' usage in PDB and CDB
check out the tbs's usage in PDB and CDB , run in CDB set line 200 pages 999 column name for a10 column tablespace_name for a15 column "MAXSIZE (GB)" ......
已解决If this call came from a _pb2.py file, your generated code is out of date and must be regenerated
已解决TypeError: Descriptors cannot not be created directly.If this call came from a _pb2.py file, your generated code is out of date and must be regener ......
「解题报告」AGC012E Camel and Oases
好久之前模拟赛就考过的题,今天才写) 首先发现我们跳跃的次数只有 $\log V$ 次,我们设跳了 $i$ 次后的时刻为第 $i$ 时刻,且最后一个时刻为 $t$。发现每一时刻,我们能够到达的绿洲形成了若干个连续段。不难发现,当时刻 $0$ 的时候连续段数量大于 $t + 1$ 时一定全部都无法到达 ......
RabbitMQ: Error: unable to perform an operation on node 'rabbit@prod-ad-api-02'. Please see diagnostics information and suggestions below.
Error: unable to perform an operation on node 'rabbit@prod-ad-api-02'. Please see diagnostics information and suggestions below. rabbit@prod-ad-api-02 ......
”Get started with C# and ASP.NET Core in Visual Studio“笔记
1.“网页发送了Microsoft Edge无法处理的杂乱凭据“,且链接不是专用! 保持焦点在页面内,鼠标在页面空白处点击(不选中任何按钮),直接输入“thisisunsafe”,输完后按回车键,就可以正常访问网页。 注意,输入的时候页面时不会有任何反应的,也不会显示输入的字符,是正常现象。输入完毕 ......
Short-Term Plasticity Neurons Learning to Learn and Forget
郑重声明:原文参见标题,如有侵权,请联系作者,将会撤销发布! Proceedings of the 39th International Conference on Machine Learning ......
How to use the Raspberry Pi and Python to control a DHT11 wet and temperate module All In One
How to use the Raspberry Pi and Python to control a DHT11 wet and temperate module All In One
如何使用树莓派和 Python 来控制温湿度模块
......
最新Cobalt strike 4.8(专业版)([*] Generating X509 certificate and keystore (for SSL)报错解决)
ColbaltStrike搭建和使用 下载: https://anonfiles.com/eay1D0rfzc/CobaltStrike4_8_lusuo_rar 解压(如有)密码:lusuo kali 中: ┌──(root㉿kali)-[~] └─# unrar x CobaltStrike4_ ......
问题记录之mysql:Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
今天服务器连接mysql发现一直超时(查出的原因是磁盘满了)清了磁盘以后,mysqld.service 还是无法启动 执行命令及报错如下:(注意,因为磁盘满的问题,我的mysql并不是正常途径关闭的) 控制进程以错误代码退出导致无法以正常的方式启动它了, 错误说明:Job for mysqld.se ......