react learn road the

value too long for type character(8) Call getNextException to see other errors in the batch.

![](https://img2023.cnblogs.com/blog/2135157/202305/2135157-20230525162618588-1008678640.png) **字段内容超过数据库字段设置的长度导致的插入错误的提示信息** 如何定位是哪个字段长度不够长? mysql的话 ......

The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement 默认情况下,启动MySQL数据库实例期间,会读取所有的权限表条目到内存中,后续被缓存到内存中的权限条 ......

B. Complete The Graph

B. Complete The Graph ZS the Coder has drawn an undirected graph of $n$ vertices numbered from $0$ to $n - 1$ and $m$ edges between them. Each edge of ......
Complete Graph The

How to change the default Python2 to Python3 on Linux All In One

How to change the default Python2 to Python3 on Linux All In One 在 Linux 中如何把默认的 Python2 更改为 Python3 .bashrc / .zshrc alias symbolic link 符号链接 ......
Python Python2 Python3 default change

使用react-flow制作流程图

1.react-flow react-flow是一个用于构建基于节点的应用程序的库。这些可以是简单的静态图或复杂的基于节点的编辑器。同时react-flow支持自定义节点类型和边线类型,并且它附带一些组件,可以查看缩略图的Mini Map和悬浮控制器Controls. 2.react-flow安装 ......
流程图 react-flow 流程 react flow

K8S异常之Unable to connect to the server: x509: certificate has expired or is not yet valid【转】

一、问题:k8s证书过期 [root@nb001 ~]# kubectl get node Unable to connect to the server: x509: certificate has expired or is not yet valid: current time 2022-12 ......
certificate connect expired Unable server

React 性能 debug 小记

## 前言 之前开发重构项目的时候,遇到了一些问题, 如 `hooks` 的性能问题和 `quill` 的重载问题。本文就是记录这些问题的解决过程。 ## 场景 在基于富文本的输入场景中,我们发现在输入回车后会出现明显的卡顿现象。为了更好地展示此类场景,这里使用了一个简单的例子展示。 ```tsx ......
小记 性能 React debug

cryptohack wp (CRYPTO ON THE WEB篇)(持续更新)

#Token Appreciation ![](https://img2023.cnblogs.com/blog/2698491/202305/2698491-20230524014509304-1700173564.png) ``` import jwt jwt_token = "eyJ0eXAi ......
cryptohack CRYPTO THE WEB ON

the way to make jupyter output cell has a dark background in vscode

# the issue to be fixed As shown in the picture, jupyter output cell has a bright background, even it's ask to use dark background. ![image](https://i ......
background jupyter output vscode make

The Difficulty of Passive Learning in Deep Reinforcement Learning

![](https://img2023.cnblogs.com/blog/1428973/202305/1428973-20230524224808789-13684847.png) **发表时间:**2021(NeurIPS 2021) **文章要点:**这篇文章提出一个tandem learni ......

CF1819C The Fox and the Complete Tree Traversal

# [$\color{purple}\text{The Fox and the Complete Tree Traversal}$](https://www.luogu.com.cn/problem/CF1819C) 比较有意思的一题。先考虑一个序列的权值。对长度为 $len$ 的序列排序,价值为 ......
Traversal Complete 1819C 1819 Tree

[React Typescript] useRef with HTML Elements

React set the ref to null in runtime. It is a limitation now for react. import { useRef } from 'react'; export const Component = () => { const ref = u ......
Typescript Elements useRef React HTML

git拉取代码出现“remote: The project you were looking for could not be found.”错误分析

如果输入的远程地址正确,那么极大可能是用户未登录或多个用户登录无法正确获取你想要的用户,如下图所示, 由于之前有同事在我电脑登录git账号,所以在windows凭据中保存了2个git账号,而默认使用的第一个账号的远程库中不存在我想要的目标仓库数据,就出现了“remote: The project y ......
错误 project looking 代码 remote

AtCoder Regular Contest 132 F Takahashi The Strongest

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc132_f "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc132/tasks/arc132_f "AtCoder 传送门") 没见过这种在新运算 ......
Takahashi Strongest AtCoder Regular Contest

How to find the TLS used for the SQL Server connection

本文是How to find the TLS used for the SQL Server connection这篇英语文章的翻译,此文出处请见于文章底部链接:原文出处[1] 对于客户,我做了一些研究,如何找出SQL Server数据库会话连接使用了哪一种TLS协议。唯一的方式就是创建一个扩展事件 ......
connection the Server find used

learn c++ 参数引用

#include <iostream> struct Role { int hp; int mp; int damage; }; bool Act(Role& Acter,Role& beAct) { beAct.hp -= Acter.damage; return beAct.hp < 0; } ......
参数 learn

IDEA配置jdk(或者IDEA代码报错The SDK is not specified for module)

参考:https://blog.csdn.net/mask_boys/article/details/117385087 今天敲代码时,出现一个错误,那就是The SDK is not specified for module,意思是没有为模块添加SDK,所以会出现如下错误 如何解决这个问题呢: 首 ......
IDEA specified 代码 module jdk

MYSQL设置密码时显示Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication d

​ 用这个命令进入mysql sudo mysql 在sql命令行输入以下命令回车,你就可以把密码改成mynewpassword ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mynewpassword ......

MYSQL设置密码时显示Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication d

​ 用这个命令进入mysql sudo mysql 在sql命令行输入以下命令回车,你就可以把密码改成mynewpassword ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mynewpassword ......

The server encountered an internal error that prevented it from fulfilling this request.

``` org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnection ......

基于.NetCore+React单点登录系统

对于有多个应用系统的企业来说,每一个应用系统都有自己的用户体系,这就造成用户在切换不同应用系统时,就要多次输入账号密码,导致体验非常不好,也造成使用上非常不便。 针对这个问题,我们就可以采用单点登录的机制,只需用户登录一次,就可以实现切换到不同的应用系统,不需重新登录验证。 下面给大家推荐一套单点登 ......
NetCore 系统 React

react+mock

之前写过一篇react项目添加mock的文章,在文章中说的mock代码是打包配置的时候写入的,这种方式导致每次修改mock数据后都需要重新启动服务才能获取到新的mock数据。 今天使用另外一种方式来实现开发过程中的数据mock。 在项目中安装 axios和mock.js两个框架 然后在webpack ......
react mock

react项目在不暴露配置文件的情况下配置环境变量

react项目在不暴露配置文件的情况下修改打包配置需要用到 react-app-rewired和customize-cra 包对打包配置文件进行修改。 添加自定义环境变量有两种方法: 方法1:使用dotenv-cli 1、运行 yarn global add dotenv-cli 全局安装 dote ......
变量 情况 环境 文件 项目

Git拉取代码报错:Can't Update No tracked branch configured for branch dev or the branch doesn't exist.To make your branch track a remote branch call

错误: 解决方法: 第一步: git pull origin(远程仓库名称) develop(远程分支名称) --allow-unrelated-histories 第二步: git branch --set-upstream-to origin(远程仓库名称)/develop(远程分支名称) de ......
branch configured tracked 代码 Update

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 ......
Consistency Learning Global Local with

printk - The standard C library routine printf()

如下库我试过,只用定义下out_char函数即可,重定向一下 out_char 1 /* 2 * File: printk.c 3 * Purpose: The standard C library routine printf(), but without 4 * all the baggage. ......
standard library routine printk printf

React笔记-Hooks(九)(非常全面)

# React笔记-Hooks(九) ## Hooks ### 概念 >React Hooks 的意思是 组件尽量写成纯函数 如果需要外部功能和副作用 就用钩子把外部代码"钩"进来 ### 函数组件和类组件区别 >- 函数组件没有状态(state) 类组件有 >- 函数组件没有生命周期 类组件有(挂 ......
笔记 React Hooks

扩展可能性:发挥React Native与小程序集成的优势

React Native与小程序容器技术的结合为移动应用开发提供了更广阔的可能性,促进了开发效率和用户体验的提升。开发者可以根据项目需求和技术栈选择适合的技术组合,为用户带来更优质的应用体验。 ......
可能性 优势 程序 Native React

Nginx_启动时报错:Job for nginx.service failed because the control process exited with error code. See "systemctl stat

一、报错如下Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for d ......
systemctl 时报 because control service

2018 ICPC Asia Qingdao (The 1st Universal Cup, Stage 9)

![image](https://img2023.cnblogs.com/blog/2794497/202305/2794497-20230522180936589-2071634768.png) # E 看完题想到二分答案直接一步步贪心,没多想直接和队友说了下,感觉贪心会有点问题,放了一会后冷静分 ......
Universal Qingdao Stage 2018 ICPC