artifactory notes on
DeprecationWarning:on_event is deprecated, use lifespan event handlers instead.
问题说明: fastapi 启动之前执行代码,旧版本使用的是@app.on_event("startup"),不过在已经不推荐使用 @app.on_event("startup") async def startup_db(): create_all() 问题处理 通过 lifespan event ......
freeswitch设置多个execute_on_media
概述 freeswitch是一款简单好用的VOIP开源软交换平台。 fs中有非常多的接口和通道变量,使用方式多变。 官方文档有时候也仅仅是介绍了最基本的使用方法和格式。 环境 centos:CentOS release 7.0 (Final)或以上版本 freeswitch:v1.6 GCC:4.8 ......
Convolutional Neural Networks on Graphs with Chebyshev Approximation, Revisited
目录概符号说明MotivationChebNetII代码 He M., Wei Z. and Wen J. Convolutional neural networks on graphs with chebyshev approximation, revisited. NIPS, 2022. 概 作 ......
mujoco安装报错:mujoco_py/cymj.pyx:67:5: Exception check on 'c_warning_callback' will always require the GIL to be acquired.
参考: https://blog.csdn.net/weixin_49373427/article/details/131981583 https://blog.csdn.net/CCCDeric/article/details/131788795 安装mujoco报错: 环境: python3.1 ......
[Notes] Mac安装多版本Java并切换
通过 /usr/libexec/java_home -V 查询mac中存在哪些版本的java. 前往https://www.oracle.com/java/technologies/downloads/archive/下载各版本的java。 例如JDK8的具体下载链接为:https://www.or ......
Grafana学习(9)—— Alerting - Alerting on numeric data
This topic describes how Grafana managed alerts are evaluated by the backend engine as well as how Grafana handles alerting on numeric rather than tim ......
On Manipulating Signals of User-Item Graph A Jacobi Polynomial-based Graph Collaborative Filtering
[TOC] Guo J., Du L, Chen X., Ma X., Fu Q., Han S., Zhang D. and Zhang Y. On manipulating signals of user-item graph: A jacobi polynomial-based graph c ......
Kotlin Notes - 4
A higher-order function is a function that takes functions as parameters, or returns a function. fun <T, R> Collection<T>.fold( initial: R, combine: ( ......
Chinese Wisdom on Sewage Treatment in India
China program Comprehensively control pollutant emissions (1) Pay close attention to the prevention and control of industrial pollution. Ban the "ten ......
学习笔记:A Survey on Large Language Model basedAutonomous Agents
挑选了自己感兴趣的部分整理了一下。 目录A Survey on Large Language Model basedAutonomous Agents1 LLM-AA Construction1.1 Architecture Design2 LLM-AA Application3 LLM-AA Ev ......
[Go] "Method Declaration" on a custom type
package data // new type type distance float64 type distanceKm float64 // add ToKm method to distance type func (miles distance) ToKm() distanceKm { / ......
UNIAPP返回上一页并参数 uni.$on、uni.$off、uni.$once 和 uni.$emit
WPF Prism事件聚合器-订阅/发布事件 https://www.cnblogs.com/douyuanjun/p/17788957.html 结合JS理解更容易理解:https://www.cnblogs.com/douyuanjun/p/17465402.html //传参给上一页 conf ......
left join on后面 加条件 与 where后面加条件的区别
本文主要讲解left join on 和where 的区别,以及用法首先数据库在通过连接两张或多张表来返回记录时,都会生成一张中间的临时表,然后再将这张临时表返回给用户。 在使用left join时,on和where条件的区别如下: 1、 on条件是在生成临时表时使用的条件,它不管on中的条件是否为 ......
【略读论文|时序知识图谱补全】DREAM: Adaptive Reinforcement Learning based on Attention Mechanism for Temporal Knowledge Graph Reasoning
会议:SIGIR,时间:2023,学校:苏州大学计算机科学与技术学院,澳大利亚昆士兰布里斯班大学信息技术与电气工程学院,Griffith大学金海岸信息通信技术学院 摘要: 原因:现在的时序知识图谱推理方法无法生成显式推理路径,缺乏可解释性。 方法迁移:由于强化学习 (RL) 用于传统知识图谱上的多跳 ......
[题解]CF1899D Yarik and Musical Notes
思路 暴力化简公式题。 假定 \(b_{i}^{b_j} = b_{j}^{b_{i}}\) 成立,那么有: \[2^{a_i \times 2^{a_j}} = 2^{a_j \times 2^{a_i}}\\ a_i \times 2^{a_j} = a_j \times 2^{a_i}\\ \ ......
The Application of River Chief System on Water Pollution in Britain
Water pollution is a global concern that affects the health and well-being of both humans and ecosystems. In Britain, despite efforts to address this ......
SQL Server always on更改主从服务器
操作如图: 1. 找到always on high availability 2. 对 availability Groups 下设置好的高可用右键,选择 FailOver... 然后一直下一步操作即可。 ......
Chain-Of-Note:解决噪声数据、不相关文档和域外场景来改进RAG的表现
CoN要点 CoN框架由三种不同的类型组成,研究称之为阅读笔记。 上面的图像,类型(A)显示了检索到的数据或文档回答查询的位置。LLM仅使用NLG从提供的数据中格式化答案。 https://avoid.overfit.cn/post/1a108bbaf6c84b5fbc51554fefa222cd ......
「Note」CF 套题
散题 \(\color{royalblue}{CF840B}\) 神秘题,其实很显著,但没切出来。 考虑无解情况,因为无向边只能带来偶数个度数,所以总度数为奇数且无限制为 \(-1\) 的点时无解(因为有 \(-1\) 就可以调整为偶数)。可以证明在总度数为偶数时一定有解: 首先应该注意到总图连通, ......
Kotlin Notes - 3
Function parameters can have default values, which are used when you skip the corresponding argument. This reduces the number of overloads: fun read( ......
On the Opportunities and Risks of Foundation Models
引用链接:https://zhuanlan.zhihu.com/p/401157815 论文链接:https://arxiv.org/pdf/2108.07258.pdf 正文分四部分,阐述内容如下: 能力:模型的能力,模型可以做到的事 语言、视觉、机器人学、推理、交互、理解等; 应用:可应用领域 ......
CF1899 D Yarik and Musical Notes 题解
Link CF1899 D Yarik and Musical Notes Question 给出一个序列 \(a\) ,我们定义 \(b_i=2^{a_i}\) 求 \(b_i^{b_j}=b_j^{b_i} (i<j)\) 的个数 Solution 考虑化简式子 \[\begin{aligned ......
sqlalchemy -> expire_on_commit
当 expire_on_commit=True 时,commit 之后所有实例都会过期,之后再访问这些过期实例的属性时,SQLAlchemy 会重新去数据库加载实例对应的数据记录。 # SQLAlchemy 源码,非关键内容省略 class Session(_SessionClassMethods) ......
SAP 行业向云端转型,给传统的 On-Premise 系统的 ABAP Basis 带来的机遇和挑战
对于 SAP On-Premise 系统的 ABAP Basis 从业人员来说,SAP 行业的云端转型无疑带来了一定的冲击和挑战。这主要体现在以下几个方面: 首先,Cloud 云端的 SAP 系统的维护和管理与 On-Premise 的 SAP 系统不同。在 Cloud 环境中,很多基础设施和服务都 ......
《A Survey on Deep Learning-based Fine-grained Object Classification and Semantic Segmentation》阅读笔记
论文标题 《A Survey on Deep Learning-based Fine-grained Object Classification and Semantic Segmentation》 基于深度学习的细粒度对象分类和语义分割的综述 为什么是 “Object” 而不是 “image” 作 ......
【题解 CF1628D2】 Game on Sum
Game on Sum (Hard Version) 题面翻译 Alice 和 Bob 正在玩一个游戏,游戏分为 \(n\) 个回合,Alice 和 Bob 要轮流对一个数 \(x\) 进行操作,已知这个数初始值是 \(0\)。 具体每个回合的行动规则如下: Alice 选择一个在区间 \([0,k ......
Human brain is awesome! (Transcripting notes and Practice my English writing
Copying may be valuable for learning math (see the story of Kunihiko Kodaira for more details), but always remember to copy with your heart - with you ......
Kotlin Notes - 2
Properties in Kotlin classes can be declared either as mutable, using the var keyword, or as read-only, using the val keyword. // full syntax for decl ......
[939] Generate a new shapefile based on a list of records and query polygons from a large shapefile
ref: arcpy.management.MakeFeatureLayer(in_features, out_layer, {where_clause}, {workspace}, {field_info}) ref: arcpy.management.SelectLayerByAttribute ......