objectives you for and
SpringBoot配置了数据库依赖 报错: Failed to configure a DataSource: 'url' attribute is not specified and no embe
错误 2023-04-15 11:56:16.025 INFO 12028 [ restartedMain] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the co ......
Ian and Array Sorting
题目链接 题目描述: To thank Ian, Mary gifted an array $a$ of length $n$ to Ian. To make himself look smart, he wants to make the array in non-decreasing order ......
FIT5201 Complexity and Model Selection
Assignment 1, FIT5201, S1 20231 Model Complexity and Model Selection In this section, you study the effect of model complexity on the training and tes ......
2023-04-14 Fatal error: Call to a member function fetch_assoc() on a non-object in C:\wamp\www\work\user.php on line 860
问题:php报错。 业务场景:使用update语句去更新数据库字段。 原因:update接收值不正确。 原代码: $query = "UPDATE student SET date = now() WHERE id = $id"; $result = $mysqli->query($query2) ......
Moves, copies and clones in Rust
原文链接:Moves, copies and clones in Rust 简介(Introduction) move 和 copy 是 Rust 中的基础概念。这对于来自 Ruby、Python 或 C#等垃圾回收语言的程序员来说可能是完全陌生的。这些术语在 C++中也确实存在,但它们在 Rust ......
Go For Web:Golang http 包详解(源码剖析)
前言: 本文作为解决如何通过 Golang 来编写 Web 应用这个问题的前瞻,对 Golang 中的 Web 基础部分进行一个简单的介绍。目前 Go 拥有成熟的 Http 处理包,所以我们去编写一个做任何事情的动态 Web 程序应该是很轻松的,接下来我们就去学习了解一些关于 Web 的相关基础,了 ......
08 Shading(Shadding, Pipeline and Texture Mapping)
关键点 Real-Time Rendering Pipeline Shader 1. Graphics(Real-time Rendering) Pipeline 管线 1.1 Pipeline MVP, Rasterization, Z-Buffer, Shading, Texture 1.2 S ......
[Educational Codeforces Round 118 (Rated for Div. 2)]题解
A 题意: 给定两个数,每一个数有两个属性,第一个属性是p1,第二个属性是p2.表示这个数有p2个后缀0.这个数本身等于p1后面加p2个0.问给你两个这种数,判断大小。 思路: 赛场上想到的:如果最终的长度不一样,可以直接根据长度判断。 如果相等,就把后缀0加上直接比较大小就可以(比较字典序的大小) ......
Educational Codeforces Round 110 (Rated for Div. 2) C. Unstable String(状态机)
https://codeforces.com/contest/1535/problem/C 题目大意: 给定一个字符串s,由 1 0 ?组成:?每次都可以任意替换成0或者1 问我们这个子字符串中,能够组成010101这样两两互不相等的字符串的数量最大是多少? input 3 0?10 ??? ?10 ......
Educational Codeforces Round 120 (Rated for Div. 2)
题目链接 C 核心思路 这是一个很好的二分的题目,首先我们判断题目可不可二分,很显然是可以的把。因为假设我们x是可以的话,x+1...肯定也是可以的,但是x-1,x-2....这些又是不可以的。 好,接下来思考二分刚开始的左右边界,左边届很好想,关键是右边界。这个其实也不难。因为我们最坏肯定是全部都 ......
07 Shading (Illumination, Shading and Graphics Pipeline)
关键点 Blinn-Phong Reflectance Model Specular Diffuse Ambient 对不同的物体应用不同的材质,不同的材质与光线的相互作用存在不同的方法。 1. Blinn-Phong Reflectance Model 1.1 光源 Specular highli ......
GIS For CAD插件:高效便捷的地理信息处理辅助工具
GIS For CAD插件是一款基于AutoCAD的功能套件,它提供了一系列 GIS 功能。通过该插件,您可以轻松地在AutoCAD中导入和导出SHP、MDB、Kml、Kmz、Gpx、GeoJson、EXCEL、TXT、CSV等多种格式的矢量文件,并支持SQL Server、MySQL、Postgr ......
Ubuntu开机卡“A start job is running for wait for network to be Configured”的解决方法
问题 虚拟机安装ubuntu22.04 TLS系统后,开机总会卡在等待网络连接好长时间。 卡在 A start job is running for hait for Network to be Configured (1min 40s / no) 这里 如图所示 解决办法 进入系统后,打开终端,输 ......
06 Rasterization (Antialiasing and Z-Buffering)
关键点 MSAA/FXAA/TAA Z-Buffering 1. Antialiasing 反走样 1.1 Sampling Artifacts Jaggies Moire Patterns 摩尔纹 Wagon Wheel Effect 1.2 Blurring(Pre-Filtering) 模糊 ......
Linux input and ouput command < symbol & > symbol All In One
Linux input and ouput command < symbol & > symbol All In One
left input / right output
< 向左侧输入
> 向右侧输出
pbcopy
pbpaste
剪切板
......
vue列表渲染之for循环
vue列表渲染之for循环 前端开发中,如果涉及列表渲染,都会提示或要求每个列表项使用唯一的 key,那很多开发者就会直接使用数组的 index 作为 key 的值,而并不知道 key 的原理。那么以下会讲解 key 的作用以及为什么最好不要使用 index 作为 key 的属性值。 1、作用 在虚 ......
error and except
import logging logging.basicConfig(filename="std.log", format='%(asctime)s %(message)s', filemode='w') logger=logging.getLogger() logger.setLevel(logg ......
BOOST_PP_SEQ_FOR_EACH
��<�pre><�b>/home/vi/git/dos/dnet/./dconfig/dconfig.h:<�/b> In static member function <�b>static std::string dnet1::path_type2_helper::str(dnet1::pa ......
Object对象转为Date对象
SimpleDateFormat dateFormat1= new SimpleDateFormat("yyyy-MM-dd");Object object = dgDetails.get("time");Date date = null;try { date = dateFormat1.parse ......
centos下载报错Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist
✨在学习使用 docker 技术过程中,基于 centos 镜像自定义新的镜像,其中基础镜像 centos 需要提前安装好 vim 和 net-tools,然而在刚开始通过 yum -y install vim 安装 vim 时,便出现了错误提示信息: Error: Failed to downlo ......
JavaScript 之 JSON [3] 的所有循环输出方式(for循环、while循环、forEach()函数、map()函数、filter()函数和Object.keys()函数)
JavaScript 之 JSON [3] 的所有循环输出方式(for循环、while循环、forEach()函数、map()函数、filter()函数和Object.keys()函数) 1、for循环、while循环、forEach()函数 1.1 对象 var JSONObject,Jvale; ......
Access denied for user 'root'@'x.x.x.x' (using password: YES)请求的ip跟报错显示的ip不同(乌龙解决)
这里请求的实际上报这一条错误是说明已经请求到了目标服务器的,mysql中以‘root’@‘x.x.x.x’这种格式表示的ip其实是我们当前的ip而非目标ip, 这里报错是因为我密码输错了,所以报了错 ......
Go For Web:一篇文章带你用 Go 搭建一个最简单的 Web 服务、了解 Golang 运行 web 的原理
前言: 本文作为解决如何通过 Golang 来编写 Web 应用这个问题的前瞻,对 Golang 中的 Web 基础部分进行一个简单的介绍。目前 Go 拥有成熟的 Http 处理包,所以我们去编写一个做任何事情的动态 Web 程序应该是很轻松的,接下来我们就去学习了解一些关于 Web 的相关基础,了 ......
springBoot启动 Error running Application. Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun.
1. 打开SpringBoot启动配置 2.选择shorten command line 3.apply保存就行了 ......
Salt formation: an effective means to improve the physical and chemical properties of drug molecules and enhance the druggability of drugs
Salt formation is one of the effective means to improve the physicochemical properties of drug molecules and enhance drug-forming properties. ......
Educational Codeforces Round 146 (Rated for Div. 2)
Preface 补题ing 值得一提的时补这场的时候先是遇上了CF的12小时大维护,后面又遇到了评测机崩了测不了也是有点有意思的说 A. Coins 傻逼题,首先考虑$2|n$时一定有解$x=\frac{n}{2},y=0$,否则若$2\nmid n\and 2|k$则由裴蜀定理知此时一定无解 否则 ......
Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for org.lin.hms.dao.RoomDAO.insertRoom. please check file
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method ' ......
uva 11082 A Plug for UNIX
#include <iostream> #include <vector> #include <map> #include <queue> #include <cstring> using namespace std; const int N=1e4+2,M=5e5; int n1,n2,n3,le ......
JSON Web Tokens (JWT) — the only explanation you will ever need
本文摘抄自 Ariel Weinberger 博客 JSON Web Tokens (JWT) — the only explanation you will ever need | by Ariel Weinberger | Medium JSON Web Tokens (JWT) — the o ......
Visual Stadio 编译提示 The BaseOutputPath/OutputPath property is not set for project ...
完整的错误信息是: The BaseOutputPath/OutputPath property is not set for project 'xx.csproj'. Please check to make sure that you have specified a valid combina ......