quot user configure vscode
Get "http://127.0.0.1:10252/healthz": dial tcp 127.0.0.1:10252: connect: connection refused
查看组件状态: kubectl get cs 报错: controller-manager Unhealthy Get "http://127.0.0.1:10252/healthz": dial tcp 127.0.0.1:10252: connect: connection refused sc ......
解决 FastApi 响应体中 datetime 时间格式化问题 ISO 8601: "T"
现象描述 当 FastApi 访问数据库或其他遇到 datetima 时间场景时,若直接返回响应结果,时间会被自动格式为:"2024-01-01T09:30:14",而不是 "2024-01-01 09:30:14" 本文包含2种处理方法,分别对应2种响应模型,解决办法,看这里 解决方法 第1种,直 ......
error: missing binary operator before token "(" 44 | #if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
手痒,在centos7上面,升级了glibc,然后导致正常程序编译都出现了问题。 这是编译的报错: /opt/rh/devtoolset-9/root/usr/include/c++/9/x86_64-redhat-linux/bits/os_defines.h:44:19: error: miss ......
vscode 代码片段 php.json
{ // Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and // description. The prefix is what is u ......
vscode settings
{ "editor.quickSuggestions": { "comments": "on", "strings": "on", "other": "on" }, "go.useCodeSnippetsOnFunctionSuggest": true, "files.autoSave": "off ......
Windows下的VScode用Docker(WSL2)容器做运行环境
这个业务需求看起来挺奇葩,因为想用rapids包换掉sklearn,用GPU跑更快,但我想用Docker版本的。 docker run,不要-rm 对官方的初始化bash命令做了小修改,会创建一个名为cupy的容器,将Windows本机d:\Code\Python\硬链接到Linux的/data。 ......
keno linux error"org.kde.plasma.private.notes" is not installed
出现问题的地方;加载小部件 装入 QML 文件出错,file:///home//.local/share/plasma/plasmoids/com.github.zren.todolist/contents/ui/main.qml:10:2: Type NoteItem unavailable fi ......
【环境配置】vscode配置C C++开发和调试环境
【环境配置】vscode配置C C++开发和调试环境 首先区分一些基本概念,其中部分内容可能有所出入,同时本文截至2023/12/31,更多的详细区别,请查阅官方文档 MinGW,Minimalist GNU for Windows,前身为mingw32,是一个用于创建Microsoft Windo ......
vscode调试
1 { 2 // 使用 IntelliSense 了解相关属性。 3 // 悬停以查看现有属性的描述。 4 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 5 "version": "0.2.0", 6 "configur ......
Python调用 "keybd_event" API模拟按键
在 Python 中,可以使用 ctypes 库来调用 Windows API,实现对 Windows 系统的底层操作。本文将以模拟按键操作(ctrl+v)为例,详细讲解如何在 Python 中调用 Windows API。 1. 导入 ctypes 库 ctypes 是 Python 的一个外部函 ......
如何屏蔽各大AI公司爬虫User Agent
罗列各大AI公司Scraper爬虫Crawler使用的User Agent,教您如何在robots.txt里面屏蔽这些爬虫的访问,禁止它们下载您的网站内容以训练 AI 模型,保护数据,降低带宽,防止宕机 GPTBot GPTBot 是 OpenAI 使用的网络爬虫,用于下载 LLM(大型语言模型)的 ......
1-1-04 VIVADO设置VSCODE为第三方编译器
使用第三方编辑工具可以让开发代码变的更加高效,vscode是非常好用的第三方编辑器,下面我们演示如何vivado中设置 vscode 为第三方编译器 双击打开vivado程序 点击设置 选择代码编译器"Text Editor" 选择编辑器,里面包含Notepad++等各类编译器,但是我们要设置的VS ......
JSON parse error: Unexpected character ('}' (code ***)): was expecting double-quote to start field
JSON parse error: Unexpected character ('}' (code 125)): was expecting double-quote to start field name] 出现这个错误是因为请求 { "equipmentid": "123", "equipmen ......
1-1-01vscode开发软件安装
使用第三方编辑工具可以让开发代码变的更加高效,vscode是非常好用的第三方编辑器,下面我们演示如何安装vscode 登录米联客官方社区https://www.uisrc.com 进入下载页面,下载vscode 双击Visual Studio Code 64位安装程序 为了可以识别verilog/v ......
[已解决] bindkey在"~/.zshrc"配置不工作
bindkey is not work in "~/.zshrc" 打算用bindkey来配置autocomplete,结果不工作。只有当进入shell后再次source ~/.zshrc才有效果 找问题找了老半天,最后发现就是zsh-vi-mode搞出的名堂,它会重新bindkey导致先前绑定的会 ......
Vite + ESBuild error: No loader is configured for ".node" files: node_modules/fsevents/fsevents.node
Vite + ESBuild error: No loader is configured for ".node" files: node_modules/fsevents/fsevents.node Add fsevents to your optimizeDeps exclude in your ......
Vscode 配置ssh实现用vscode直接看远程服务器代码
1、下载vscode插件下载Remote Development插件 2、配置ssh文件 安装完成后,在左边有对应插件,设置config的配置文件 3、ctrl+shift+p:选择Remote-SSH,确认后选择刚才配置的文件 4、此时会打开一个新的窗口,按照提示一步一步执行,一般输入密码,校验成 ......
vscode的ssh连接报错过程试图写入的管道不存在
到网上搜,有的人是服务器ip换了,或者是其他信息换了,导致连接不上,但这些解决方法都不适用于我 我的配置文件是这样的: 我猜测是因为我给Host的命名加上了@符号,在我把@符号变成-符号的时候,就能正常连接了...... ......
python json.dump 将字典写文件json文件后多了一个花括号"}",读取时报错:json.decoder.JSONDecodeError: Extra data: line
我的字典格式: import json d = {'Demo': {'Total_Result': 'Pass', 'info': {'test3': 'Pass'}}, '10.0.0.111': {'Total_Result': 'Pass', 'info': {'test_double_dis ......
解决psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?
pgsql启动后执行psql显示报错: psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory Is the server ru ......
【随手记录】Apache-JMeter部署银河麒麟报错: jmeter module java.desktop does not "opens sun.awt.X11" to unnamed module @5...
操作系统: Linux 0012.novalocal 4.19.90-17.ky10.aarch64 #1 SMP Sun Jun 28 14:27:40 CST 2020 aarch64 aarch64 aarch64 GNU/Linux JDK版本: java 17.0.8 2023-07-18 ......
Error running ‘Application’: Command line is too long. Shorten command line for Application or also for Spring Boot default configuration?
【Error running ‘Application‘: Command line is too long. Shorten command line for Application or also】https://minipro.baidu.com/ma/qrcode/parser?app_ke ......
vscode 代码无法转定义
方法1: 试着装其他版本的python或者pylance,有时候好使有时候不好使 方法2: 在当前目录下的.vscode文件夹下新建settings.json文件,在里面新增: {"python.jediEnabled": false } 关掉vscode项目再重打开,就可以了 ......
【转载】 @configuration注解详解
为了能深入地掌握Spring Boot的自动配置原理,我们来看一下Spring Boot的一些底层注解,要知道它们是如何完成相关功能的。首先,我们来看一下怎么给容器里面添加组件。 我在这儿准备了两个组件,它们分别是: 用户,即User类 package com.spring.learn.bean; ......
vscode安装platformio插件,避坑指南。
1-安装vscode 2-安装python 3-打开vscode,安装platformio插件。 4-安装结束,会自动下载相关python,(或者在c盘路径下,复制需要的文件)C:\Users\WYG.platformio 5-退出vs,重新加载,就可以愉快开发。 ......
Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; nested exception is java.lang.NumberFormatException: For input string: "getSysTenantNames"
我测试的是一个接口 接口里面没有任何参数 怎么会报参数类型转换错误呢 mad !!!!! 第二个接口 就很蒙 测了好久都是这个问题 而且你打debug 它不进这个接口并且 你执行其他写好的接口 它还是会报同样的错 。。。。。。。。。。。。。。 其实就是你代码的位置写错了 应该写在pc端的 你把代码写 ......
【Angular】在vscode中,某些库接口,如SimpleChanges,没有导入,鼠标移上去,ts语言功能没有快速修复选项,如何能够恢复快速修复功能?
It appears that until recently (before TypeScript 4 release) the only way to make auto-imports work was to import each library you need at least once ......
无效设置IPv4设置:ipv4.gateway:网关与"never-default"不兼容
无效设置IPv4设置:ipv4.gateway:网关与"never-default"不兼容 一、问题现象 电脑采用麒麟桌面操作系统V10,在配置完静态IP时,“保存”按钮是灰色的,提示:无效设置IPv4设置:ipv4.gateway:网关与"never-default"不兼容 二、问题原因 禁止添加 ......
k8s 安装kubesphere3.4.1 多次安装报错 Error from server (InternalError): Internal error occurred: failed calling webhook \“users.iam.kubes
failed: [localhost] (item={'ns': 'kubesphere-system', 'kind': 'users.iam.kubesphere.io', 'resource': 'admin', 'release': 'ks-core'}) => {"ansible_loop ......