learniing doing by

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 用户

has been blocked by CORS policy: The request client is not a secure context and the resource is ...

该报错原因为:Chrome浏览器禁止外部请求访问本地,被CORS策略阻止解决方案:1、打开chrome的设置: chrome://flags/#block-insecure-private-network-requests2、将 Block insecure private network requ ......
resource blocked context request client

To Do 添加任务界面

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Todo List</title> <style> body { background-color: #f6f6f6; font-family: 'Segoe UI ......
界面 任务 To Do

【五期邹昱夫】CCF-A(NeurIPS'22)Trap and Replace: Defending Backdoor Attacks by Trapping Them into an Easy-to-Replace Subnetwork

> "Wang, Haotao, et al. "Trap and Replace: Defending Backdoor Attacks by Trapping Them into an Easy-to-Replace Subnetwork." Advances in Neural Informa ......

(C#) IIS 响应标头过滤敏感信息(如:Server/X-Powered-By等) 运维知识

背景: 再一次净网行动中,客户要求安全改造发现了接口请求的header标头中出现如图中的敏感信息。 说明: 其意义在于告知浏网站是用什么语言或者框架编写的。解决办法就是修改该响应头为一个错误的值,将攻击者导向一个错误的方向。 准备: 这里只说windows 的iis环境,不考虑其他服务器的环境。首先 ......
X-Powered-By Powered 知识 Server 信息

Centos7 解决ab压力测试报错apr_socket_recv: Connection reset by peer (104)问题

# ab -n 10000 -c 10000 http://192.168.1.66/ This is ApacheBench, Version 2.3 <$Revision: 1430300 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, htt ......

系统断电后,MySQL重启失败:[ERROR] Binlog has bad magic number; It‘s not a binary log file that can be used by this version of MySQL

系统断电后,MySQL重启失败: [ERROR] Binlog has bad magic number; It‘s not a binary log file that can be used by this version of MySQL [ERROR] Can't init tc log [ ......
MySQL version Binlog binary number

mockito5.4.0单元测试(11) --do when家族的方法们:doReturn()|doThrow()| doAnswer()| donnothing ()|doCallRealMethod()

mockito官方文档地址: https://www.javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#do_family_methods_stubs // mock一个对象 HashMap mockMap ......

does not appear to have any patterns in it. If you see the 'urlpatterns' variable with valid patterns in the file then the issue is probably caused by a circular import.

django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 'first_app.urls' from 'D:\\project\\first_project\\first_app\\urls.py'>' do ......
patterns the urlpatterns circular probably

mysql8 执行聚合函数报错:Error 1140: In aggregated query without GROUP BY,sql_mode=only_full_group_by

解决办法: ``` set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; SET GLOBAL log_bin ......

Oracle中group by

# Oracle中group by 在select语句中可以使用group by子句将行划分成较小的组,一旦使用分组后select操作的对象变为各个分组后的数据,使用聚组函数返回的是每一个组的汇总信息。 使用having子句限制返回的结果集。group by子句可以将查询结果分组,并返回行的汇总信息 ......
Oracle group by

SAP Commerce Accelerator Storefront 到 Spartacus 的 page by page migration 策略

SAP Commerce Accelerator Storefront 是基于SAP Commerce Cloud的一个开箱即用的电子商务前端解决方案,提供了一套功能强大、易于定制的电子商务功能和界面。而Spartacus是SAP的下一代前端框架,它基于现代化的技术栈,如Angular和TypeSc ......

Neat Stuff to Do in List Controls Using Custom Draw

Using the custom-draw features in version 4.70 of the common controls to customise the look and feel of list controls Is your email address OK? You ar ......
Controls Custom Stuff Using Neat

每日一题力扣 1262 https://leetcode.cn/problems/greatest-sum-divisible-by-three/

、 题解 这道题目核心就算是要知道如果x%3=2的话,应该要去拿%3=1的数字,这样子才能满足%3=0 贪心 sum不够%3的时候,就减去余数为1的或者余数为2的 需要注意 两个余数为1会变成余数为2的,所以可能减去2个余数为1 核心代码如下 public int maxSumDivThreeOth ......

Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,6] Message: 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。

报错如下: Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,6]Message: 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。 原因:xml第一行为空行,所以报错 需要将 <?xml ......

MySQL 的 order by 使用注意事项

## order by 注意事项 1. order by 后面不一定是 select 出来的字段,只要是表中的字段就可以了 2. order by 和 group by 一起使用时,order by 后面的字段必须包含在聚合函数或者group by 子句中。 3. order by要放在总查询的最后 ......
注意事项 事项 MySQL order by

[LeetCode] 1262. Greatest Sum Divisible by Three

Given an integer array nums, return the maximum possible sum of elements of the array such that it is divisible by three. Example 1: Input: nums = [3, ......
Divisible LeetCode Greatest Three 1262

一文理解什么是DTO、VO、BO、PO、DO,并推荐一款IDEA转换插件

1、什么是DTO、VO、BO、PO、DO、POJO POJO的定义是无规则简单的对象,在日常的代码分层中pojo会被分为VO、BO、 PO、 DTO。通过各层POJO的使用,有助于提高代码的可读性和可维护性。 概念看似简单,但是想区分好或者理解好也不容易,本文简单梳理一下。 DTO(Data Tra ......
插件 IDEA DTO

do...while循环、for循环、while循环反汇编

# **do...while循环、for循环、while循环反汇编** ### **do...while循环** C代码如下所示: * VC6++ * Debug32位版本 ```c #include "stdafx.h" void Function() { int i = 0; int sum = ......
while for do

达梦数据库: SQL查询报错《不是 GROUP BY 表达式解决方法》

#报错信息: ``` ****: 第4 行附近出现错误: 不是 GROUP BY 表达式 ``` #修改办法: ######达梦可以配置兼容参数,COMPATIBLE_MODE=4,静态参数,需要重启数据库后生效! ``` sp_set_para_value(2,'COMPATIBLE_MODE', ......
表达式 数据库 方法 数据 GROUP

MySQL 中 order by .. limit .. 出现的不同页中数据重复出现的问题

## MySQL 版本 MySQL 5.7.28 和 8.0.20 这两个版本都出现了这个问题。 ## 相关的表和数据 建表语句: ```sql CREATE TABLE `test` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `sc ......
数据 问题 MySQL order limit

20230406 9.2. 希尔排序( by Donald Shell )

## 希尔排序( by Donald Shell ) ![希尔排序](https://images.cnblogs.com/cnblogs_com/huangwenjie/2284066/o_230407014056_image.png) - 定义增量序列 $D_M > D_{M-1} > … > ......
20230406 Donald Shell by

[6] Fast and Practical Secret Key Extraction by Exploiting Channel Response 论文精读 INFOCOM 13'

摘要 摘要写的很清楚,几句话说明了当前密钥发展现状,即使用RSS为基础的密钥生成解决方案的生成速率有待提升,因此本文主打一个高速率;此外本文提出了CGC算法来解决现实生活中的信道互易性差的问题;此外,其能够抵御被认为对RSS技术有害的恶意攻击! 但是他的Abstract我有一点不满哈,全文都是CSI ......

How Do ASP.NET Core Services Validate JWT Signature Signed by AAD?

Table of contents Background Configuration Handle Authentication Validate Token Summary Background If we need to use JWT Bearer tokens issued by AAD ( ......
Signature Services Validate Signed Core

GitHub Actions by Example

GitHub Actions by Example GitHub Actions is a convenient CI/CD service provided by GitHub. GitHub Actions by Example is an introduction to the service ......
Actions Example GitHub by

npm publish 发包报错npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/test_vue - You do not have permission to publish "【package name】". Are you logged in as the correct user?

如果出现在发布的时候报这个错,说明你在package.json中登记的name已近被采用了。重名了,所以你得换一个。我们在发布一个包之前,最好拿着这个登记的name去搜一下,如果已近有了,那就要换一个。 ......
publish quot permission npm 403

Elasticsearch Connection reset by peer错误解决方案

>背景 之前应用和ES同在阿里云,连es没有任何问题 最近因需将应用从阿里云迁移到其他云,ES暂时保留在阿里云 迁移之后发现应用连阿里云ES偶发connection reset by peer问题 >分析 遇到这种问题首先想到的是通过抓包分析 在客户端抓包 ![image](https://img2 ......

什么是Sparse by default for crates.io

当 Rust crate 发布到 crates.io 上时,可以启用“Sparse by default”特性,这意味着默认情况下,crate 不会包含所有依赖项在上传到 crates.io 的最终包中。相反,它只会包含必要的直接依赖项来使 crate 正常运行。 这个特性对于减少 crate 的大 ......
default Sparse crates for by

记录一个MySQL中order by 和 limit 连用导致分页查询不生效的坑

### 具体现象和这位同学的一致,具体的解决办法也是参考这位同学的做法 ### 参考文章地址:https://www.cnblogs.com/yuluoxingkong/p/10681583.html ......
MySQL order limit by

send it failed() The virtual circuit was reset by the remote side executing a hard or abortive close. (连接被对方重置)

串口调试助手报错提示 The virtual circuit was reset by the remote side executing a hard or abortive close. for upd socket ,the remote host was unable to deliver ......
executing abortive 对方 circuit virtual