unicodedecodeerror 39 position ordinal

51.pyinstaller打包后,打开exe程序提示SyntaxError: Non-UTF-8 code starting with '\x90' in file的问题

最后开发了一款小工具,然后确定一切测试没有问题,想通过pyinstaller将其打包成exe,像类似的打包以前也经常打包的,复杂一点的也都是打包成功的,但这里感觉程序很简单,打包居然出现了以下错误。 我的python版本是3.8.9,然后pyinstaller版本是5.9.0,不知道会不会是版本不兼 ......

【每日一题】Problem 505B. Mr. Kitayuta's Colorful Graph

[原题](https://codeforces.com/contest/505/problem/B) #### 解决思路 考虑到数据量不大($2 \le n \le 100, 2 \le m \le 100, 1 \le a_i \lt b_i \le n, 1 \lt c_i \le m)$),因 ......
Kitayuta Colorful Problem Graph 505

python + requests:请求头('Content-Type': 'multipart/form-data'),并且files和其他参数均正确定义,但是文件上传一直失败,需要使用MultipartEncoder

### 解释 1. 在使用'Content-Type': 'multipart/form-data'上传文件时,你需要将文件作为请求体的一部分进行传输。而由于文件可能非常大,因此需要将文件分成多个部分进行传输。这就需要使用多部分编码(Multipart Encoding)来将文件分割成多个部分,并将 ......

【论文阅读】CONDITIONAL POSITIONAL ENCODINGS FOR VISIONTRANSFORMERS

来自美团技术团队2023年ICLR会议上发表的论文 论文地址:https://link.zhihu.com/?target=https%3A//arxiv.org/pdf/2102.10882.pdf 一、Motivation 由于Transformer中的Self-Attention操作是Perm ......

System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'Person'.

@@abp Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid object name 请求接口报错:System.Data.SqlClient.SqlException (0x80131904): Invalid object n ......

引用 github.com/segmentio/kafka-go v0.4.39 出现的 copy 队列溢出的问题

在高并发 (40k~60k) rps 的情况下,github.com/segmentio/kafka-go v0.4.39 该库频繁出现 panic: runtime error: slice bounds out of range [:4636] with capacity 4096 gorout ......
队列 segmentio kafka-go github 问题

Module not found: Error: Can't resolve ' vue-resource'

问题: 在学习vue的过程中出现了这个问题,说明VueResource模块没有安装。 解决方法: 打开终端,进入当前项目所在目录,输入指令 npm install vue-resource --save 然后等待安装,安装好了以后在main.js中引用(下图红色框中代码) ......
vue-resource 39 resource resolve Module

python 报错AttributeError: '_TestResult' object has no attribute 'outputBuffer'问题,已解决

报错信息: 原因: 使用setupclass必须加@classmethod装饰器 解决方案: 在setupclass和teardownclass方法前面加@classmethod ......

Vue3 vite:is a JavaScript file. Did you mean to enable the 'allowJs' option?

描述 今天在vue3+vite下进行打包时,突然vscode报了一个error。 大概的意识是询问是否启用“allowJS”选项,因为该文件在程序内是指定用于编译的根文件。 提示信息已经很明确了,下面从网上摘抄了下什么是 allowJS 选项。 allowJs是1.8中新提供的选项。TypeScri ......
JavaScript allowJs enable option Vue3

Cross-thread operation not valid: Control 'txtMessage' accessed from a thread other than the thread it was created on.

Winform TextBox Cross-thread operation not valid: Control 'txtMessage' accessed from a thread other than the thread it was created on. (330条消息) 解决Cros ......

node启动报错:'NODE_OPTIONS' 不是内部或外部命令,也不是可运行的程序

**问题:** ![](https://img2023.cnblogs.com/blog/1520012/202306/1520012-20230630084309020-2107349950.png) **解决:** `npm install -g win-node-env` ![](https: ......
NODE_OPTIONS 命令 OPTIONS 程序 node

goland Cannot resolve import 'google/api/annotations.proto'

# 前言 `kratos` 项目出现 `import` 标红,但是 `$GOPATH/src/google/api/annotations.proto` 已经存在了。 ![](https://img2023.cnblogs.com/blog/1303876/202303/1303876-202303 ......
annotations resolve goland Cannot import

Python报错 | PermissionError: [Errno 13] Permission denied: 'xxx'

#### 报错信息 使用python对模型进行输出文件的过程中,报如下错误: ```python PermissionError: [Errno 13] Permission denied: 'xxx' ``` #### 错误原因 报错翻译过来是: ```python 权限错误:[errno 13] ......

Python报错 | AttributeError: module 'tensorflow._api.v2.data' has no attribute 'AUTOTUNE'

#### 报错信息 ```python AttributeError: module 'tensorflow._api.v2.data' has no attribute 'AUTOTUNE' ``` #### 解决办法 ```python pip install -i https://pypi.d ......

npm install报gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.没有python环境

1 gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 2 gyp ERR! stack at PythonFinder.failNoPython (/Us ......
python quot executable variable install

pyhton 转义字符 打印 I'm OK

print('I\'m ok') 第二种 print(r"I'm ok") ......
转义 字符 pyhton 39 OK

java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '}' at line 1

# 问题 报错代码 ``` org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: You have an err ......

appium报错AttributeError: 'WebDriver' object has no attribute 'find_element_by_id'解决方法

解决方法: from appium.webdriver.common.appiumby import AppiumBy # 导入AppiumBy search = driver.find_element(AppiumBy.ID,"com.android.settings:id/search") # ......

[LeetCode] 1493. Longest Subarray of 1's After Deleting One Element

Given a binary array nums, you should delete one element from it. Return the size of the longest non-empty subarray containing only 1's in the resulti ......
LeetCode Deleting Subarray Element Longest

时间序列转图像:相对位置矩阵(Relative Position Matrix)-matlab版复现

时间序列分类(TSC)在时间序列数据挖掘任务中备受关注,已经应用到各个领域。随着卷积神经网络(Convolutional Neural Network, CNN)的迅速发展,基于卷积神经网络的TSC方法直到最近才开始出现。因此,提出了一个新的深度学习框架,使用相对位置矩阵(Relative Posi ......
时间序列 矩阵 序列 Relative Position

修改xampp中的mysql的密码报错,ERROR 1348 (HY000): Column 'Password' is not updatable --九五小庞

xampp中的mysql(MariaDB)默认密码为空,进入mysql的bin目录,输入mysql -u root -p,回车,无密码登录: 查看所有数据库,选择mysql数据库: show databases;use mysql; 使用update语句修改密码报错:ERROR 1348 (HY00 ......
updatable Password 密码 Column xampp

gdb.exe: warning: Couldn't determine a path for the index cache directory.

GDB 调试中出现的警告 D:\\gitee\\luatos-soc-2022\\out\\example_copy> arm-none-eabi-gdb example.elf C:\\SysGCC\\bin\\arm-none-eabi-gdb.exe: warning: **Couldn't ......
determine directory warning Couldn cache

sort自定义排序字符串('1-1','2-1','3-2'此类)

对数组排序 `['2-3','2-1','1-4','3-2','1-1','2-2','3-1']` 直接使用原生`sort` ![image](https://img2023.cnblogs.com/blog/969891/202306/969891-20230628113235937-4827 ......
39 字符串 字符 sort

Unable to load '@webpack-cli/serve' command 报错问题

[webpack-cli] Unable to load '@webpack-cli/serve' command[webpack-cli] TypeError: options.forEach is not a function at WebpackCLI.makeCommand (E:\vue- ......
webpack-cli command webpack Unable 问题

软件工程:霍夫施塔特定律(Hofstadter's Law)和海勒姆定律(Hyrum's Law)

软件开发定律:霍夫施塔特定律,为什么项目交付总是会延期? 在软件项目中,你是否遇到过这种情况: 一个软件工程师,要开发一个系统功,这个系统需求有点复杂,需要新增多个模块,同时也需要和多个系统交互。工程师会按照自己的经验,做一个粗略的工期评估,同时在加上一点缓冲时间,从而得出一个开发工期的总时长。但最 ......
定律 软件工程 Hofstadter Law 工程

【五期邹昱夫】CCF-B(IEEE Access'19)Badnets: Evaluating backdooring attacks on deep neural networks

> "Gu, Tianyu, et al. "Badnets: Evaluating backdooring attacks on deep neural networks." IEEE Access 7 (2019): 47230-47244." 本文提出了外包机器学习时选择值得信赖的提供商的重要 ......

【五期邹昱夫】CCF-B(RAID'18)Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks

> "Liu, Kang, Brendan Dolan-Gavitt, and Siddharth Garg. "Fine-pruning: Defending against backdooring attacks on deep neural networks." Research in Att ......

【五期邹昱夫】CCF-A(NeurIPS'22)Trap and Replace: Defending Backdoor Attacks by Trapping Them into an Easy-to-Replace Subnetwork

> "Wang, Haotao, et al. "Trap and Replace: Defending Backdoor Attacks by Trapping Them into an Easy-to-Replace Subnetwork." Advances in Neural Informa ......

【五期邹昱夫】CCF-A(NeurIPS'21)Adversarial Neuron Pruning Purifies Backdoored Deep Models

> "Wu, Dongxian, and Yisen Wang. "Adversarial neuron pruning purifies backdoored deep models." Advances in Neural Information Processing Systems 34 (2 ......

java springboot3 Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

老版本的mybatis-plus未适配springboot3 解决办法:在pom.xml修改 mybatis-plus-boot-starter 版本 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot ......