finding cycles graph all
java报错:unable to find valid certification path to requested target
## 问题发现 unable to find valid certification path to requested target 当我使用java代码访问某个URL的时候,报了这个错误,经过查询发现需要安装证书到java环境,所以记录一下。 ## 下载证书 我使用的是chrome浏览器,点击地 ......
Python List Comprehensions All In One
Python List Comprehensions All In One
列表推导式
python dynamic create list
python create list with for loop one line
enumerate, range, lambda, for...loop
......
Could not find server 'server name' in sys.servers. SQL Server 2014
Could not find server 'server name' in sys.servers. SQL Server 2014 At first check out that your linked server is in the list by this query select nam ......
Promise.all() 和 Promise.race()
在 Promise 中,有两个静态方法可以用于管理多个 Promise 对象:Promise.all() 和 Promise.race()。 Promise.all() 方法接收一个 Promise 对象数组作为参数,并返回一个新的 Promise 对象。返回的 Promise 对象在所有输入的 P ......
Unity之 GameObject.Find()路径正确却找不到物体
有一个需求,需要用代码找到一个GameObject并将其取消激活。我是这么写的: GameObject.Find("mainCanvas").SetActive(false); 但你运行后就会发现它报错; 而报错的内容是找不到物体。反复核实路径正确,且物体确实是激活状态后我对这个代码的报错感到很不解 ......
Python 3 List Type errors All In One
Python 3 List Type errors All In One
NameError: name 'List' is not defined
......
python Pycharm出现“can't find '__main__' module”解决方案
是配置没配对,因为在配置时没有选择.py文件,而只选择了工程名。因此选择Edit Configurations。 选择Edit Configurations后,查看Script path只选择了工程名inner funs,而这里应该要选择工程名里面的.py文件(main函数,如果没有,选择你要执行的 ......
find
find 在指定目录下查找文件 ## 补充说明 **find命令** 用来在指定目录下查找文件。任何位于参数之前的字符串都将被视为欲查找的目录名。如果使用该命令时,不设置任何参数,则find命令将在当前目录下查找子目录与文件。并且将查找到的子目录和文件全部进行显示。 ### 语法 ```shell ......
Linux fdisk command All In One
Linux fdisk command All In One
disk partition / 磁盘分区
......
graph db+LLM
直接用LLM是不精确的,需要结合graph DB+LLM,参见: https://medium.com/neo4j/harnessing-large-language-models-with-neo4j-306ccbdd2867 https://neo4j.com/developer-blog/fi ......
Linux group & user All In One
# Linux group & user All In One - groupadd - groupmod - groupdel - useradd - usermod - userdel ## 用户组 > groupadd ```sh eric@rpi4b:~ $ groupadd -h 用法:g ......
聊斋志异小说 All In One
聊斋志异小说 All In One
《聊斋志异》是我国著名文学家蒲松龄所著的文学巨著。
全书分为12卷,收录短篇文言小说491篇。
蒲松龄在继承魏晋志怪和唐宋传奇传统的基础上,以隽永之笔、博爱之情,取得了中国文言小说创作的伟大成就,本书也就成为一部家喻户晓、妇孺皆知的不朽作品。
罗刹海市
......
torch.all()
torch.all() 其中的所有项都为True,返回True,反之,返回False >>> import torch >>> a = torch.tensor([[1, 2], [3, 4]]) >>> b = torch.tensor([[1, 2], [3, 4]]) >>> a OUT: t ......
Python Files All In One
Python Files All In One
open, read, write, append, binary, close
......
Python exceptions All In One
Python exceptions All In One
ImportError: an import fails;
IndexError: a list is indexed with an out-of-range number;
NameError: an unknown variable i... ......
重做 CF 295B Greg and Graph 以及理解 Floyd
# Floyd 原理简析 Floyd 的原理其实是 DP,定义 $\mathrm{dp}[S][i][j]$ 表示在仅经过点集 $S$ 里的点的条件下,从 $i$ 到 $j$ 的最短路距离 初始状态 $S$ 为空,$\mathrm{dp}[\varnothing ][i][j]$ 就等于 $i,j$ ......
boost graph
复制源:https://www.cnblogs.com/sssblog/p/11189402.html(纯英文) Boost Graph provides tools to work with graphs. Graphas are two-dimensional point clouds with ......
3 Ways to Delete All File in a Directory Except One or Few Files with extensions
``` # https://www.tecmint.com/delete-all-files-in-directory-except-one-few-file-extensions/ # https://www.gnu.org/software/bash/manual/html_node/The-S ......
linux搜索查找指令:find | locate | which | grep
## 摘要 目的:展示搜索、查找指令 1. find指令 2. locate指令 3. which指令 4. grep过滤指令 ## 一、find指令 find指令将从指定目录向下递归地遍历其各个子目录,将满足条件的文件或者目录显示在终端。 | 指令 | 功能 | 说明 | 选项 | | | | | ......
如何使用地图制作一个自定义的旅游线路示意图 All In One
# 如何使用地图制作一个自定义的旅游线路示意图 All In One > Vlog 视频 Vlog 视频博客 Video blog、Video log ## demos > 环球骑行路线图解 https://www.cnblogs.com/xgqfrms/p/17577179.html --> ## ......
LNK2001无法解析的外部符号 SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RW_RES_R
使用VS2019+WDK10 在学习windows WDF驱动时候,使用下面链接文章提供的代码编译后,得到错误: LNK2001无法解析的外部符号 SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RW_RES_R 解决方法:链接属性设置中增加 $(DDK_LIB_PATH)\wd ......
Python @classmethod decorator and static method All In One
# Python @classmethod decorator and static method All In One > 修饰器/装饰器;静态方法;实例方法 ```py # cls class Rectangle: def __init__(self, width, height): self. ......
jenkins报错:Error: Cannot find module '/root/.jenkins/workspace/test/node_modules/ejs/postinstall.js'
+ npm install > core-js@3.31.1 postinstall /root/.jenkins/workspace/test-allsaintsmusic-html/node_modules/core-js > node -e "try{require('./postinstal ......
828. Count Unique Characters of All Substrings of a Given String (Hard)
Description 828. Count Unique Characters of All Substrings of a Given String (Hard) Let's define a function countUniqueChars(s) that returns the numbe ......
Python data hiding All In One
Python data hiding All In One
private data / private method
⚠️ 约定:class 里面使用单个下划线,表示私有的属性或私有的方法,实际上在 class 外面是可以访问的 ......
URL.canParse API All In One
# URL.canParse API All In One ```js // Proper usage if (URL.canParse('https://davidwalsh.name/pornhub-interview')) { const parsed = new URL('https://d ......