monocarp and set the

讲座笔记2:Fairness with Censorship: Bridging the Gap between Fairness Research and Real-world Deployment

Fairness with Censorship: Bridging the Gap between Fairness Research and Real-world Deployment 主讲人:Wenbin Zhang Censorship: 会有信息的缺失 原因: Study ends - n ......

python: more Layer Architecture and its Implementation in Python and mysql 8.0

mysql 8.0: drop table DuStudentList; #学生表 create table DuStudentList ( StudentId INT NOT NULL AUTO_INCREMENT comment'主键id', #自动增加, StudentName nvarcha ......

Solution Set - “如果惊蛰随梦远走”

[TOC] $$ \text{ᘏ ᘏ}\\ \quad\,\,\text{( ˃̵ ֊ ˂̵ )}\\ \text{つ🥕ど}\quad \newcommand{\str}[1]{\underline{\texttt{#1}}} \newcommand{\addeq}[0]{\overset{+}{ ......
Solution Set

【每日一题】Problem 489C. Given Length and Sum of Digits...

[原题](https://codeforces.com/problemset/problem/489/C) #### 解决思路 结果值越大,要求满足后续数位能成立的情况下,当前数位的值尽可能大;取最小结果同理 ##### 误区 1. 注意边界 - 一般情况下,数字开头不能为 0,除非数字长度为 ** ......
Problem Digits Length Given 489

How To Install and Enable SSH Server on Debian 10

https://devconnected.com/how-to-install-and-enable-ssh-server-on-debian-10/ How To Install and Enable SSH Server on Debian 10 written by Schkn This tu ......
Install Enable Debian Server How

Tips: How to Get the Currently Selected HTML Content in Major Browsers

```js function getSelectionHtml() { const sel = window.getSelection(); if (sel.rangeCount) { var container = document.createElement("div"); for (var i ......
Currently Browsers Selected Content Major

condition_variable ,wait for unique lock and time_duration,notify_all()

#include <algorithm> #include <atomic> #include <chrono> #include <condition_variable> #include <cstdint> #include <execution> #include <fstream> #inc ......

C# Visual Studio 一键整理实体类里的get set格式

多人开发中,很难保证大家的审美都一样 有的人喜欢下面这样, public string Name { get; set; } 有的人喜欢这样, public string Name { get; set; } 那么怎样一键让所有这些变成下面那样呢 public string Name { get; ......
实体 格式 Visual Studio get

npm install报gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.没有python环境

1 gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 2 gyp ERR! stack at PythonFinder.failNoPython (/Us ......
python quot executable variable install

c++ std::execution::par in for_each and write files

#include <algorithm> #include <chrono> #include <cstdint> #include <execution> #include <fstream> #include <future> #include <iomanip> #include <iostr ......
execution for_each files write each

场景报错解决方案Error -27492: "HttpSendRequest" failed, Windows error code=12029 (cannot connect) and retry limit (0) exceeded for URL=""

解决方法1: 今天在调试Loadrunner HTTP/HTML脚本的时候出现报错Error -27492,通过将HTTPS请求修改为HTTP请求,问题得到解决。 Action.c(206): Error -27492: "HttpSendRequest" failed, Windows error ......

java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '}' at line 1

# 问题 报错代码 ``` org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: You have an err ......

js的Set数据类型

在js中,Set和Map相比,也有一组key的集合,但不存储value。由于key不能重复,所以,在Set中没有重复的key。因此,set使用的场景在于,可以提供一组没有重复元素的集合。 Set构造 要构造一个Set对象,需提供一个Array作为输入,或者直接构造一个空Set,如: var set ......
类型 数据 Set

【每日一题】Problem 476B. Dreamoon and WiFi

[原题](https://codeforces.com/problemset/problem/476/B) #### 解决思路 ##### 数学 不管 **recv** 字符串如何,最终的结果一定满足以下条件: 1. '+' 数量与 **send** 字符串相同 2. '-' 数量与 **send* ......
Dreamoon Problem WiFi 476 and

C++面试八股文:知道std::unordered_set/std::unordered_map吗?

某日二师兄参加XXX科技公司的C++工程师开发岗位第27面: > 面试官:知道`std::unordered_set/std::unordered_map`吗? > > 二师兄:知道。两者都是C++11引入的新容器,和`std::set`和`std::map`功能类似,`key`唯一,`unorde ......

python: more Layer Architecture and its Implementation in Python

sql server: --学生表 DROP TABLE DuStudentList GO create table DuStudentList ( StudentId INT IDENTITY(1,1) PRIMARY KEY, StudentName nvarchar(50), StudentN ......

牛客练习赛112 B qsgg and Subarray

这里介绍两种解法,贪心和二分 核心:只要某一个区间和为0,则所有包含该区间的和都为0 贪心 根据题意是求出所有⊕和为0的子区间的个数,我们按a[i]来分类,每次求出以a[i]为末尾,区间和为0的区间个数,对于a[i]来说,要想u~i的区间和为0,则需要包含所有a[i]中位为1都有0与之对应,如果u~ ......
练习赛 Subarray qsgg 112 and

set+multiset

......
multiset set

AGC012E Camel and Oases

## 题意 有一个数轴上有 $n$ 个点。一开始有一个参数 $v$,你可以进行任意次移动,直到 $v = 0$: - 移动到一个距离当前点不超过 $v$ 的点,$v$ 不变。 - 移动到任何一个点,使得 $v \gets \lfloor\dfrac{v}{2}\rfloor$。 现在对于每个起点,问 ......
Camel Oases 012E AGC 012

MySqlException(0x80004005) Reading from the stream has failed 远程主机强迫关闭了一个现有的连接

不同客户端电脑连接服务器数据库,通过navicat管理工具可以正常连上,但是通过程序连接提示MySqlException(0x80004005) Reading from the stream has failed 远程主机强迫关闭了一个现有的连接(注意:部分电脑通过程序也是可以正常连接服务器数据库 ......

Switches and Lamps 题解

[题目传送门](https://www.luogu.com.cn/problem/CF985B) 一道枚举题。 首先我们需要知道什么开关才能被去掉,题目要求去掉这个开关后所有的灯依然能够开启。也就是说,**这个开关能打开的所有灯都可以由其它开关代替**。 思路清晰了,就比较好做。我们可以用一个数组存 ......
题解 Switches Lamps and

Hack The Box-Starting Point-Crocodile

## 答案: 1. 任务1:What Nmap scanning switch employs the use of default scripts during a scan? `-sC` ![image](https://img2023.cnblogs.com/blog/1367845/2023 ......

gdb.exe: warning: Couldn't determine a path for the index cache directory.

GDB 调试中出现的警告 D:\\gitee\\luatos-soc-2022\\out\\example_copy> arm-none-eabi-gdb example.elf C:\\SysGCC\\bin\\arm-none-eabi-gdb.exe: warning: **Couldn't ......
determine directory warning Couldn cache

【GiraKoo】VS提示Some bytes have been replaced with the Unicode substitution character

# 【问题解决】VS提示Some bytes have been replaced with the Unicode substitution character VS提示Some bytes have been replaced with the Unicode substitution char ......

Hack The Box-Starting Point-Sequel

## 答案 1. 任务1:During our scan, which port do we find serving MySQL? `3306` ![image](https://img2023.cnblogs.com/blog/1367845/202306/1367845-20230628121 ......

LLMs and SQL

https://blog.langchain.dev/llms-and-sql/ LLM生成SQL很容易 解决的问题是如果让LLM生成的SQL,是valid并且结果正确的 模拟人是如何写SQL的,本身人也是要上下文的, 那么问题就是需要什么上下文,并且如何组织 比较直觉的是,给出schema和几条真 ......
LLMs and SQL

【cs 50 2022】lab2 && problem set2

lab2 #include <ctype.h> #include <cs50.h> #include <stdio.h> #include <string.h> // Points assigned to each letter of the alphabet int POINTS[] = {1, ......
amp problem 2022 lab2 set2

CodeTON Round 5 (Div. 1 + Div. 2, Rated, Prizes!) D. Tenzing and His Animal Friends

题面是真的抽象,翻译为人话之后大概就是,对于每个选择的集合当中,1必须选,n一定不能选,每个限制条件的意思是如果u和v不在一个集合里则最能玩y时间,则u或v独自玩最多玩y时间 如果在同一集合则可以玩无限时间 因此如果n和1不连通的话则一定为inf,否则的话就一定有限制,因为n一定不能选,则和n相连的 ......
Div CodeTON Friends Tenzing Animal

Mysql用户建立触发器报错You do not have the SUPER privilege and binary logging is enabled

分析原因:是log_bin_trust_function_creators值为off导致,因为Table中有Trigger,如果不创建Trigger,不会出现这样的错误信息,但Trigger必须创建临时解决办法:用root用户登录: mysql -u root -pmysql>set global ......
触发器 privilege enabled logging 用户