diff --git a/ai/model.md b/ai/model.md index 5f83541..23bea82 100644 --- a/ai/model.md +++ b/ai/model.md @@ -32,4 +32,6 @@ data is upstream in process of developing good models [microsoft的版本](https://github.com/onnx/onnx)和[ORT--ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator](https://github.com/Microsoft/onnxruntime) [可参考大致流程](https://github.com/microsoft/onnxjs) -[onnx example中可以找到一个例子,找到模型,把模型参数传入就可以得到结果了](https://github.com/microsoft/onnxruntime-inference-examples) \ No newline at end of file +[onnx example中可以找到一个例子,找到模型,把模型参数传入就可以得到结果了](https://github.com/microsoft/onnxruntime-inference-examples) + +[开源可用的一些模型A collection of pre-trained, state-of-the-art models in the ONNX format ](https://github.com/onnx/models) \ No newline at end of file diff --git a/articles/2024/experience.md b/articles/2024/experience.md new file mode 100644 index 0000000..bf6367c --- /dev/null +++ b/articles/2024/experience.md @@ -0,0 +1,5 @@ +# 经验 + +## 2024-1-18 +在调试小程序的过程中,通过喂养数据,对数据产生的问题进行分析,分析每个数据,对每一个数据的来源与关系都分析得很彻底。 +一步步得去找数据之间得关系,画图找出逻辑上得效果,通过效果对比来分析。 diff --git a/cg/image/JPEG.md b/cg/image/JPEG.md index e35856a..caf55f4 100644 --- a/cg/image/JPEG.md +++ b/cg/image/JPEG.md @@ -47,5 +47,9 @@ quality依赖图像色域,图像的对比度,用户对图像的敏感度 75% JPEG quality and lower begins to show obvious differences in the image, which can reduce your website user experience. 60% JPEG quality good for web +## 注意事项 + +- jpg格式不支持透明,因为其色彩模式和压缩方法,基于DCT(离散余弦变换),变换到频域才能压缩,有透明部分无法进行傅里叶变换。 + ## 参考 - [This section contains TIFF related topics. It includes a freeware TIFF Tag Viewer application, the LibTiff mailing list archive, and a TIFF-specific links page](https://www.awaresystems.be/imaging.html) \ No newline at end of file diff --git a/cg/opengl.md b/cg/opengl.md index 9566428..4276a2c 100644 --- a/cg/opengl.md +++ b/cg/opengl.md @@ -188,3 +188,4 @@ glBindBuffer(GL_PIXEL_PACK_BUFFER, 0); - [OpenGL教程和资料集合](https://zhuanlan.zhihu.com/p/41818595) - [OpenGL Loading Library](https://www.khronos.org/opengl/wiki/OpenGL_Loading_Library) - [GLRF - OpenGL Realtime Framework](https://github.com/DunkleMango/GLRF) +- [g-truc creation, OpenGL Mathematics (GLM) OpenGL Image (GLI)等有关opengl的文档与知识](https://www.g-truc.net/) diff --git a/cg/svg.md b/cg/svg.md index fdd6834..cf2cf0a 100644 --- a/cg/svg.md +++ b/cg/svg.md @@ -23,6 +23,7 @@ clean-flag标记顺时针1逆时针0 x y 圆弧终点坐标 Z = closepath, To close together the SVG path. Factors – None + ## Attribute ### stroke @@ -31,6 +32,13 @@ Z = closepath, To close together the SVG path. Factors – None 可以使用SVG+CSS3实现文字的动态霓虹灯效果,就是多个描边动画使用不同的animatino-delay即可。 +### path Arc + +[Drawing a circular arc in an SVG ](https://alexwlchan.net/2022/circle-party/)它的一张图来说明参数![path arc](../images/svg/PathArc.svg) +[Interactive Circle Arc](http://xahlee.info/js/svg_circle_arc.html) + + + ## free icons - [Open Iconic is the open source sibling of Iconic](https://github.com/lmj01/open-iconic) diff --git a/cg/tools/CAD.md b/cg/tools/CAD.md index f1ace6c..59082a5 100644 --- a/cg/tools/CAD.md +++ b/cg/tools/CAD.md @@ -1,9 +1,17 @@ # CAD -## 吸附Absorb +## 编辑器子概念 + +### 吸附Absorb 对一个元素拖拽时,生成当前元素与其他元素对齐的参考线, 实现相近元素间的四条边与水平中心线或垂直中心线对齐. 在拖动完成后实现自动吸附对齐 -应该是在编辑情况下,对于拖拽的元素自动对齐的功能 \ No newline at end of file +应该是在编辑情况下,对于拖拽的元素自动对齐的功能 + +### 自动布局 + +### Frame +图框 +### 组 diff --git a/cpl/cplusplus.md b/cpl/cplusplus.md index 6da5533..db4b11a 100644 --- a/cpl/cplusplus.md +++ b/cpl/cplusplus.md @@ -12,6 +12,82 @@ - header include guards,标准文件方法,它不能区分相同的macro名称在一个或多个文件中重名,可能造成问题 - [pragma](https://en.cppreference.com/w/cpp/preprocessor/impl),在文件系统层面上标识文件,但不能保证多个文件的存在 +### 资源释放 +睡着C++的发展,资源的管理也在发生变化,如动态分配的内存。 +- Rule of Three, 经典规则,C11之前的代码,如果实现了一个,就需要实现其他两个 + - 析构函数,释放资源 + - 拷贝构造函数,构造新对象时复制资源 + - 拷贝赋值运算符,在已经存在的对象之间赋值时资源的复制 +- Rule of Five, C++开始引入移动语义和右值引用,如果Three中的任何一个函数实现了,那么现在应该是五个函数都需要实现了 + - 析构函数、拷贝构造函数、拷贝赋值运算符 + - 移动构造函数,创建新对象时,从源对象窃取资源,而不是复制 + - 移动赋值运算符,在对象之间赋值时,从源对象窃取资源 +- Rule of Zero, 推荐使用现代C++特性,如智能指针管理,则类不应该自定义任何拷贝控制函数,而应该让编译器自动生成这些函数 + - std::shared_ptr + - std::unique_ptr + +```c++ +class Three { + char* buffer; +public: + Three(size_t length) { + buffer = new char[length]; + } + ~Three() { + delete[] buffer; + } + Three(const Three& other) { + buffer = new char[strlen(other.buffer)+1]; + strcpy(buffer, other.buffer); + } + Three& operator=(const Three& other) { + if (this != &other) { + delete[] buffer; + buffer = new char[strlen(other.buffer) + 1]; + strcpy(buffer, other.buffer); + } + return *this; + } +}; +class Five { + char* buffer; +public: + Five(size_t length) { + buffer = new char[length]; + } + ~Five() { + delete[] buffer; + } + Five(const Five& other) { + buffer = new char[strlen(other.buffer)+1]; + strcpy(buffer, other.buffer); + } + Five& operator=(const Five& other) { + if (this != &other) { + delete[] buffer; + buffer = new char[strlen(other.buffer) + 1]; + strcpy(buffer, other.buffer); + } + return *this; + } + Five(Five&& other) noexcept : buffer(other.buffer) { + other.buffer = nullptr; + } + Five& operator=(Five&& other) noexcept { + if (this!= &other) { + delete[] buffer; + buffer = other.buffer; + other.buffer = nullptr; + } + return *this; + } +}; +class Zero { + std::unique_ptr buffer; +public: + Zero(size_t length):buffer(new char[length]){} +}; +``` ## TMP(template metaprogramming) diff --git a/database/database.md b/database/database.md index 107fea9..0dc0fdc 100644 --- a/database/database.md +++ b/database/database.md @@ -9,4 +9,10 @@ ACID属性 - 原子性Atomicity - 一致性Consistency - 隔离性Isolation -- 持久性Durability \ No newline at end of file +- 持久性Durability + +## 工具 + +- [Provides easy browsing of tables, variables, functions and configuration settings.](https://www.timestored.com/qstudio/) +- [HeidiSQL is free software, and has the aim to be easy to learn. "Heidi" lets you see and edit data and structures from computers running one of the database systems MariaDB, MySQL, Microsoft SQL, PostgreSQL and SQLite.](https://www.heidisql.com/) +- [Database manager for MySQL, PostgreSQL, SQL Server, MongoDB, SQLite and others. Runs under Windows, Linux, Mac or as web application ](https://github.com/dbgate/dbgate) \ No newline at end of file diff --git a/images/svg/PathArc.svg b/images/svg/PathArc.svg new file mode 100644 index 0000000..0dac23a --- /dev/null +++ b/images/svg/PathArc.svg @@ -0,0 +1 @@ + radius start ∠ sweep ∠ centre An illustration of a circular arc. There's a grey dashed circle, with a vertical line from the centre denoting zero degrees. Going clockwise, there's a blue angle labelled 'start', then a green angle labelled 'sweep'. Along the dashed circle is a thick black arc that follows the sweep angle. \ No newline at end of file diff --git a/index/article.md b/index/article.md index 0bc51b5..b23566b 100644 --- a/index/article.md +++ b/index/article.md @@ -66,6 +66,7 @@ ## 2024 +- [2024经验](../articles/2024/experience.md) - [2024趋势](../articles/2024/trend.md) ## 2023 diff --git a/index/computerScience.md b/index/computerScience.md index ceeb60a..c717705 100644 --- a/index/computerScience.md +++ b/index/computerScience.md @@ -17,8 +17,6 @@ - [redis](../database/redis.md) - [MySql](../database/mysql.md) - [sql](../database/sql.md) -- [Provides easy browsing of tables, variables, functions and configuration settings.](https://www.timestored.com/qstudio/) -- [HeidiSQL is free software, and has the aim to be easy to learn. "Heidi" lets you see and edit data and structures from computers running one of the database systems MariaDB, MySQL, Microsoft SQL, PostgreSQL and SQLite.](https://www.heidisql.com/) ### 数据结构 diff --git a/java/maven.md b/java/maven.md index 2427052..f41ad2f 100644 --- a/java/maven.md +++ b/java/maven.md @@ -1,6 +1,7 @@ # Maven ## 命令 +配置好环境后,使用vscode开发,不使用IDE - mvn test ## itext7