CODE
【VS Code 与 Qt6】运用事件过滤器批量操作子级组件
如果某个派生自 QObject 的类重写 eventFilter 方法,那它就成了事件过滤器(Event Filter)。该方法的声明如下: virtual bool eventFilter(QObject *watched, QEvent *event); watched 参数是监听事件的对象,即 ......
npm install 报错如何解决npm ERR! code 128 npm ERR! An unknown git error occurre
npm ERR! code 128 npm ERR! An unknown git error occurre如何解决 1.发现问题 我在通过git工具clone vue-element-admin之后,需要下载相关的第三方包 所以我就在对应目录下执行npm install开始下载文件 在安装依赖包 ......
Vue跨域配置异常采坑:Request failed with status code 401
本地用Express作为服务端,前端Vue项目配置跨域代理,调用服务端api接口始终报错“Request failed with status code 401”。原来发现是端口3000被占用了,被VSCode的一个插件占用了,修改为其他端口解决。 ......
【NSSCTF逆向】【2023题目】《double_code》
#题目double_code  ##解法 解法不是很难,但是没见过。 下载下来是一个exe和一个文本文档  ## 2、在VS Code中,需要进行设置二 ......
Visual Studio Code 1.79 发布
发布模式 - 将工作区中的特定文件和文件夹标记为只读。 在某些开发场景中,将工作区的某些文件夹或文件显式标记为只读会很有帮助。例如,如果文件夹或文件内容由不同的进程管理(例如 node_modules 由 Node.js 包管理器管理的文件夹),则将它们标记为只读可以避免意外更改。 根据设置规则,如 ......
【HMS Core】华为帐号服务,获取Access Token报错{sub_error:20152,error_description:invalid code,error:1101}
【问题描述】 华为账号服务,接口获取Access Token报错:{sub_error:20152,error_description:invalid code,error:1101} 【问题分析】 根据官网提示,是code格式不正确造成的,需要检查参数配置 【解决方案】 1、此问题解决方案 ......
Leet Code 1684. 统计一致字符串的数目
````java /** * 1684. 统计一致字符串的数目 * * 给你一个由不同字符组成的字符串 allowed 和一个字符串数组 words 。如果一个字符串的每一个字符都在 allowed 中,就称这个字符串是 * 一致字符串 。 * * 请你返回 words 数组中 一致字符串 的数目。 ......
Vue学习笔记之gyp: No Xcode or CLT version detected! gyp ERR! stack Error: `gyp` failed with exit code: 1
0x00 现象 MacOS在执行npm install下载项目的依赖包的时候出现的gyp报错,报错内容如下: No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'. No receipt for 'com.apple.pkg. ......
使用 QR code实现微信扫码支付 实测有效
直接给代码自己理解 html部分: <el-button type="primary" @click="recibo(scope.row)">确认收货</el-button> <div> <el-dialog title="付款码" :visible.sync="moneyShow" width=" ......
关于公司项目学习遇到的问题:VS+VS Code 网页项目
0608 14:30 公司项目启动问题:VS+VScode运行后发现网页无法登录,VS后台报错,F12跳后台显示GET请求失败,redis-cli试了一下发现服务关掉了。 //环境配置:https://www.cnblogs.com/yyn20230517/p/17459837.html //red ......
PHP Xdebug 3 和 Visual Studio Code
Xdebug3 相对于Xdebug2改动挺大的。在php.ini 里下面的设置就够了,不需要多余的。默认调试端口 9003 [XDebug] zend_extension = "php_xdebug.dll" xdebug.mode = debug xdebug.start_with_request ......
VS Code 同时打开多个项目文件以及同时运行多个项目
使用需求:在开发前端项目时,我们经常会打开多个项目进行参考或者需要代码调试,记录一下VS Code中的使用方法。 如何打开多个终端,并执行运行命令呢? 1.打开“终端”(工具栏:“查看”->“终端”)2.点击右上角的“拆分终端”3.在两个终端界面下,分别运行你需要开启的项目 如何打开多个项目? 1、 ......
微软为 VS Code 带来 C# 开发套件
微软于今天在 Marketplace 上架了一款适用于 Visual Studio Code 的官方 C# 开发套件 —— C# Dev Kit,通过更好地管理、测试,以及提供全新的 AI 功能,为 Linux、macOS 和 Windows 平台的开发者带来了更好的 C# 开发体验。 根据微软官方 ......
How do you display code snippets in MS Word preserving format and syntax highlighting?
How do you display code snippets in MS Word preserving format and syntax highlighting? 回答1 Here is the best way, for me, to add code inside word: Go t ......
Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
1)错误信息 Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.apac ......
关于环境配置的步骤:VS+VS Code 网页项目
参考资料:
https://blog.csdn.net/weixin_43883917/article/details/114632709
https://blog.csdn.net/qq_39367410/article/details/126892822
https://blog.csdn.ne... ......
Visual Studio Code mac好用的微软免费代码编辑器
Visual Studio Code是微软官方的编码工具,被称为"代码编辑器",支持众多的编程语言,包括C、C++、 Python等。 但是它仅支持文本编辑功能,所以一般使用它来完成一些简单的编程。但 Visual Studio Code的功能并不只限于文本编辑,它还提供了很多其他功能。 Visua ......
Windows之Visual Studio Code添加右键菜单
## 背景 通常如果直接从官网下载Visual Studio Code安装包,我们只需要在安装界面勾选那两个复选框就行了,它会安装后帮我们自动添加右键支持,但是,如果我们使用全新的Winget手段安装,因为是静默的,所以没有机会做这个勾选,那么我们只能手动给Visual Studio Code添加右 ......
TR069事件类型(EVENT CODE对应的含义)
0 BOOTSTAP指出由于CPE第一次安装或是ACS的URL改变而引起会话建立。这种特殊的情况有:1)出厂后CWMP端第一次与ACS连接;2)出厂设置后,CWMP端第一次与ACS连接;3)由于某种原因ACS的URL改变后CWMP端第一次与ACS连接。注意,0 BOOTSTARP可能和其他事件代码一 ......
pip 安装错误 Command "python setup.py egg_info" failed with error code
python setup.py install File "setup.py", line 7 def read(rel_path: str) -> str: ^SyntaxError: invalid syntax wget https://bootstrap.pypa.io/pip/2.7/ge ......
Utools code-snippet 代码快捷粘贴
# 添加快捷代码 语法:  
1. 遇到报错问题 导入keras报错Process finished with exit code -1073741819 (0xC0000005) 查看chatgpt后,给出的解答如下: 2. tensorflow与keras兼容问题 关于版本兼容问题,以下是chatGPT3.5给的答案,具体更 ......
vue3项目安装依赖报错 npm ERR! code ERESOLVE
vue3项目安装依赖报错 npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: element-plus@1.0.2-beta.71 npm ERR! Found: ......
解决 NVIDIA Windows has stopped this device because it has reported problems. (Code 43)
## 场景 1. 当跑需要使用GPU算力的一些项目时候,需要用到CUDA,确保电脑是具有独立显卡的机子,但是怎么也没法让代码中的torch跑在GPU上; 2. 点击任务管理器查看"性能"下的GPU选项,看到运行中的并非是独立显卡而是集成显卡; 3. 点击设备管理器,发现NVIDIA显卡左下角有感叹号 ......
翻译-Automatic detection of Long Method and God Class code smells through neural source code embeddings
# Automatic detection of Long Method and God Class code smells through neural source code embeddings 通过神经源代码嵌入自动检测 Long Method 和 God Class 代码异味 Aleksa ......
CODE FESTIVAL 2016 qual C
你说的对,但是我觉得应该先把 qual C 写完再去学什么东西。 ## CF codeforces. ```cpp #include #include #include #include #include using namespace std; int n; char s[110]; int ma ......