to do
Androidstudio中 unable to execute Clang-tidy clazy-standalone is not found or cannot be exexute
这个问题可能是因为Android Studio不支持clazy,但是在设置菜单中仍然提供了这个选项,并且在这种情况下,它似乎被启用了¹。当通过clangd启用clang-tidy时,没有什么需要做的。当通过clangd禁用clang-tidy时,如果启用了clazy,就会出现这个错误¹。 要解决这个 ......
2023-10-06 Warning: [antd: Switch] `value` is not a valid prop, do you mean `checked`? ==》 switch组件报错,在form.item添加valuePropName="checked"即可
该报错意思是你用的这个switch组件对应的属性应该是checked而不是value,后者应该是antd默认设置的属性,可以通过valuePropName来手动指定对应的属性值。 如: <FormItem name="status" label="状态" valuePropName="checked ......
to String、equal、clone() 方法
字符串表示形式如图: 1、toString 存在是为了让子类去重写,以返回对象的内容(a、鼠标右键点生成可以找到toString b、直接输入toS,按回车,接续按回车,就重写好了) 2、equals 默认判断两个对象的地址是否相等,重写是为了比较对象的内容是否一样 3、(了解)clone() 方法 ......
【倍增】P3422 [POI2005]LOT-A Journey to Mars 题解
P3422 一道有点意思的题。 看到是一个环,先破环为链,即 \(a_{n+i}=a_i, b_{n+i}=b_i\),此时就只需要跳到 \(x+n\) 而无需判环了。 如果顺时针走: 令 \(sum_i = \sum\limits_{j=1}^{i}{a_j-b_j}\),当能从 \(x\) 跳到 ......
nvidia-smi指令报错:Failed to initialize NVML: Driver/library version mismatch NVML library version: 535.113解决
nvidia-smi指令报错:Failed to initialize NVML: Driver/library version mismatch NVML library version: 535.113 我是刚开始没有nvidia-smi命令,输入后,提示我安装。 apt install nvi ......
报错AttributeError: Attempted to set WANDB to False, but CfgNode is immutable
问题 今天在跑代码的时候,使用到了wandb记录训练数据。 我在23服务器上跑的好好的,但将环境迁移到80服务器上重新开始跑时,却遇到了如下报错 看这个报错信息是由于wandb没有apis这个属性,于是我定位到具体的报错代码 😯原来程序在import wandb时就抛出异常了。 解决方法 我尝试验 ......
CF1249(Div. 3) 题解(A to D)
\(\texttt{E F}\) 忘(不)记(会)写了。 A Yet Another Dividing into Teams 题解 题目大意 有一个长度为 \(n\) 的序列 \(a_1,a_2,\cdots,a_n\),将他们分为若干组,使得每一组没有两个数的差为 \(1\),使分的组数尽可能少。 ......
C error:deprecated conversion from string constant to 'char*' [-Wwrite-strings]
问题描述 解决C++中[Warning] deprecated conversion from string constant to 'char*' [-Wwrite-strings] char *string= "aaabbbcc"; //warning的原因是字符串常量存放在const内存区.. ......
vue-router.esm.js:2065 Uncaught (in promise) Error: Redirected when going from "/login?redirect=%2Fhome" to "/home" via a navigation guard.
原因: vue-router路由版本更新产生的问题,导致路由跳转失败抛出该错误; 真正的原因是由于返回了一个Promise对象, 正常的跳转由then方法执行 当正常的路由跳转, 被"路由导航守卫"拦截并重新指定路由时, 由于 this.$router.push() 返回的是Promise对象, 此 ......
Go - Decoding Data with a Customized Binary Format to Structs
Problem: You want to decode the customized binary format back to structs. Solution: Use the encoding/binary package to take data from the binary forma ......
Go - Encoding Data to a Customized Binary Format
Problem: You want to encode struct data to a customized binary format. Solution: Design your customized format and use the encoding/binary package to ......
Go - Decoding gob Format Data to Structs
Problem: You want to decode gob format data back to structs. Solution: Use the encoding/gob package to decode the gob format data back to structs. fun ......
Go - Encoding Data to gob Format Data
Problem: You want to encode structs into binary gob format. Solution: Use the encoding/gob package to encode the structs into bytes that can be stored ......
CSS & JS Effect – Do something on enter/leave window tab
需求 我在做一个体验 当用户 submit enquiry 后会 window.open 开启 WhatsApp。而当用户关闭 WhatsApp 回来网站后,会 show 一个 feedback message。 实现思路 关键就在如何感知到,用户从 WhatsApp 切换回到了网站。 参考: De ......
关于 Failed to bind properties under 'sky.alioss.access-key-id' to java.lang.String: 问题的解决(仅我遇到的这种情况)
问题描述 废话不多说 , 上截图 解决方案 问题出现的原因 : 因为自己没有按照格式去运行程序 , 在yml中把他们得位置向前一个单位就解决问题了 ......
Git解决 fatal: refusing to merge unrelated histories
一、fatal: refusing to merge unrelated histories 新建了一个本地仓库之后,把本地仓库和远程仓库进行关联提交、拉取的时候, 出现了如下错误: 二、解决方案 在你的操作命令后面加 --allow-unrelated-histories 例如: $ git pu ......
CF1234(Div. 3) 题解(A to E)
A Equalize Prices Again 题解 题目大意 \(n\) 个商品,每个商品价格为 \(a_i\),求一个最小的价格 \(x\),使得不亏本(即 \(\sum\limits_{i=1}^n{(a_i-x)}\ge0\))。 解题思路 输出平均数向上取整(即 \(\left\lceil ......
CF1203(Div. 3) 题解(C to F1)
由于太懒了,所以不想(会)写 \(\texttt{A B}\) 和 \(\texttt{F2}\)。 C Common Divisors 题解 题目大意 给定一个长度为 \(n\) 的数列 \(\{a_i\}\),求 \(\sigma(\gcd\limits_{i\in[1,n]}\{a_i\})\ ......
CF1873(Div. 4) 题解 (A to E)
A Short Sort 题解 题目大意 给定一个长度为 \(3\) 、由 \(a,b,c\) 组成的字符串,问可以不变或交换两个字符是的变为 \(\texttt{abc}\)。 解题思路 由于大小固定,所以预处理可行的字符串(仅包含 \(\texttt{abc acb bac cba}\))即可。 ......
Use Pyinstaller To Creat EXE
Use Pyinstaller To Creat EXE Creat New Folder Put file in to New Foder file:py、ico Open powershell Input Command Pyinstaller -F -w -i="replace.ico" so ......
Unable to load site GPT
001、问题 GPT官网无法打开, 如下: 002、 解决方法 参考: https://laowangblog.com/chatgpt-unable-to-load-site.html . ......
什么是企业级软件的 Preview Release To Customer 的概念
某公司 软件的 Preview Release to Customer(下文简称PRC)是 某公司 公司在正式发布新版本的软件之前,提供给特定客户和合作伙伴的一种早期版本。这个版本允许一组有限的用户提前体验、测试和评估 某公司 软件的新功能、改进和修复。这个过程旨在让客户和合作伙伴在正式发布之前获得 ......
How to Create a Dynamic Report in Odoo 16
https://www.cybrosys.com/blog/how-to-create-a-dynamic-report-in-odoo-16 https://www.cybrosys.com/blog/how-to-customize-existing-dynamic-reports-in-odo ......
About how to use Char.GetNumericValue
he method Char.GetNumericValue retrieves the numeric value of a specific char. However, it's important to note a few things about this method: It's de ......
put wget downloads to pipe
wget -O - -o /dev/null http://google.com 来源:https://serverfault.com/questions/25779/how-do-i-pipe-a-downloaded-file-to-standard-output-in-bash 实际应用: 下 ......
解决Android studio 更新到2022.3版本后,一直卡在waiting for target device to come online
解决Android studio更新到2022.3.1 patch 1之后卡在waiting for target device to come online的问题 1.现象 在发布一个app的时候,每次走到waiting for all target devices to come online之 ......
Go - Logging to the System Log Service
Problem: You want to log in to the system log instead of your logfiles. Solution: Use the log/syslog package to write to syslog. Syslog is a standard ......
Go - Logging to File
Problem: You want to log events to a logfile instead of standard error. Solution: Use the SetOutput function to set the log to write to a file. You us ......
How to get Postman API request code All In One
How to get Postman API request code All In One
Postman can convert an API request into a code snippet, and you can choose the programming language or ... ......
Ubuntu系统自动更新导致| nvidia-smi命令报错Failed to initialize NVML: Driver/library version mismatch
先查看日志 cat /var/log/dpkg.log | grep nvidia 发现早上ubuntu更新了nvidia驱动,两个nvidia驱动共存导致版本冲突了 step one sudo apt-get --purge remove nvidia* 报错: step two 根据报错的提示, ......