unexpected npm token 39

谷粒商城报错:java.lang.IllegalStateException: Failed to load property source from location 'classpath:/applicatio

遇到这种问题如果检查了配置文件没有出错 可以尝试打开target文件,去找配置文件,查看是否为空或者中文乱码,一般情况下删除中文注释就可以,因为这个文件的编码格式是GBK,项目的编码格式是UTF-8,注释乱码,导致编译失败。 还有另一种做法就是更改编码。 ......

npm install 报错

前端npm install 报错 ```bash error: npm notice npm notice New minor version of npm available! 7.20.3 -> 7.23.0 npm notice Changelog: https://github.com/np ......
install npm

Couldn't launch Python exit code 9009

Couldn't launch Python exit code 9009 start stable-diffusion-webui,发现,python 环境没有,我本地其实是已经安装完毕的,后来发现是因为 windows 的应用商店的快捷键,当你 CMD 命令行输入 python 的时候,会自动跳 ......
Couldn launch Python 9009 exit

P9342 Bitaro's Travel 题解

模拟赛做到的题,赛后看了 Y2hlbnlpa2Fp 的题解,感觉没讲清楚,这里做下补充,提供自己的理解。 ### 基本思路: 对每个 $A_i$ 的答案进行预处理,对于每个询问,只需要找到第一个到达的景点即可。 那么如何预处理每个点的答案呢?有一条很重要的性质:**最多转向 $\log{X}$ 次* ......
题解 Bitaro Travel P9342 9342

Ubuntu 22.04安装Node.JS和NPM

sudo apt purge nodejs sudo apt autoremove sudo apt update sudo apt install -y curl curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - s ......
Ubuntu 22.04 Node NPM 22

HJ39 判断两个IP是否属于同一子网

# 题目描述 IP地址是由4个0-255之间的整数构成的,用"."符号相连。 二进制的IP地址格式有32位,例如:10000011,01101011,00000011,00011000;每八位用十进制表示就是131.107.3.24 子网掩码是用来判断任意两台计算机的IP地址是否属于同一子网络的根据 ......
两个 HJ 39

pg库报UnicodeDecodeError 'ascii' codec can't decode byte 0xe4 in position 0 ordinal not in range 128

UnicodeDecodeError 'ascii' codec can't decode byte 0xe4 in position 0 ordinal not in range 128 其实就是加个:client_encoding配置 #1、直接使用 psycopg2 def __init__( ......

K8S 1.27.1版本初始化配置文件时报your configuration file uses an old API spec: "kubeadm.k8s.io/v1beta2". Please use kubeadm v1.22 instead and run 'kubeadm config migrate

现象: your configuration file uses an old API spec: "kubeadm.k8s.io/v1beta2". Please use kubeadm v1.22 instead and run 'kubeadm config migrate --old-con ......
kubeadm quot configuration 时报 instead

Django Ajax获取CSRF token

1. 在script标签里设置方法// using jQueryfunction getCookie(name) { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = docum ......
Django token Ajax CSRF

npm uninstall -g @vue/cli 命令卸载脚手架失败

解决方法如下: 1、执行:npm config ls -l 命令;在展示信息的userconfig键值中找到.npmrc 文件的路径;将.npmrc文件删除。查询结果如下: 2、执行:where vue 命令;删除查询出的两个文件。文件如下图: 3、执行 :vue -V 命令。发现vue命令已经不可 ......
脚手架 uninstall 命令 npm cli

sqlite3 db "delete from apps where title='Typora';"&&killall Dock

command+shift+G 进入访达前往->输入/private/var/folders 搜索:com.apple.dock.launchpad 仔细看了下执行的命令 就发现了sqlite3 db这个东西,可以深入了解下 ......
quot amp sqlite3 killall sqlite

【已解决】module 'torchaudio.transforms' has no attribute 'ToTensor'

1.报错,这两种情况 module 'torchaudio.transforms' has no attribute 'ToTensor' module 'torchvision' has no attribute 'transforms' 2.修改方式: 将导库的方式从 【import torch ......
39 torchaudio transforms attribute ToTensor

整合MyBatisPlus报错Error creating bean with name 'xxMapper' defined Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

Java17+SpringBoot3+MyBatisPlus3.4.1 整合MyBatisPlus报错Error creating bean with name ‘xxMapper‘ defined Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplat... ......

bug笔记_Connected to the target VM, address: '', transport: 'socket'

Connected to the target VM, address: '127.0.0.1:64556', transport: 'socket'错误: 找不到或无法加载主类 com.apexsoft.pif.sys.WdmpSysClientTestApplication 1、maven版本不 ......
39 Connected transport address 笔记

全局设置axios拦截器,请求增加username和token

在main.js的 new vue之前加入: axios.interceptors.request.use( config => { // 在发送请求前,获取新的 token var username = window.localStorage.getItem('username'); var au ......
全局 username axios token

SyntaxError: Error parsing JavaScript expression: Unexpected token, expected "," (3:16)

## 项目环境 ```bash C:\Users\19139>node -v v18.16.0 C:\Users\19139>pnpm -v 8.2.0 ``` vue3+vite4打包报错 ```text "vue": "3.3.4", "vite": "4.0.4", "rollup": "^3 ......

internal error, unexpected bytes at end of flate stream

[query] What does the error mean "websocket: internal error, unexpected bytes at end of flate stream" · Issue #643 · gorilla/websocket https://github. ......
unexpected internal stream error bytes

QOJ 6504 Flower's Land

巧妙! ## 简要题意 一个序列包含 $0, 1, 2$,有两种操作: 1. 给定区间 $[l, r]$,令其中所有 $a_i\gets (a_i + 1)\bmod 3$。 2. 给定区间 $[l, r]$,问如果每次删去该区间内的两个相邻相等元素,最终能不能将其删空。 $1 \le n,q \l ......
Flower 6504 Land QOJ 39

还分不清 Cookie、Session、Token、JWT?

摘要: 原创出处 juejin.im/post/5e055d9ef265da33997a42cc 「秋天不落叶」欢迎转载,保留摘要,谢谢! 什么是认证(Authentication) 什么是授权(Authorization) 什么是凭证(Credentials) 什么是 Cookie 什么是 Ses ......
Session Cookie Token JWT

- 推导分页的原理 - 使用分页类(器) - cookie和session的介绍、token - Django操作cookie - django操作session - CBV添加装饰器

推导分页原理 分页:当我们要展示的数据特别多的时候,一页展示不完,这个时候我们需要把要展示的数据分成多页展示 分页中需要的几个参数:1. 总数据有多少条2. 每页展示多少条数据(自己规定的20)3. 一共展示多少页4. 总页数 = 总数据量 / 每页展示多少条数据5. 当前第几页(前端传过去的) 总 ......
session cookie 原理 Django django

第39天

package 对象数组; public class Student { private int id; private String name; private int age; package 对象数组; import java.util.Scanner; public class Studen ......

ubuntu22.04问题:Method https has died unexpectedly!

# 问题 当我们执行 update的时候,有时候会遇到下面这种情况 ```bash apt-get update 命中:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy InRelease 命中:2 http://mirrors.tuna.tsin ......
unexpectedly ubuntu Method 问题 22.04

Vue3+ElementPlus,Module parse failed: Unexpected token (3:27)

一、环境 vue3,ElementPlus,@vue/cli 5.0.8,npm 9.6.7。 我在复制element plus官网的一些代码到vue3框架里测试时出现的问题。 二、不报错方法 图片位置删除lang=“ts”就不报错了 ......
ElementPlus Unexpected Module failed parse

Vue3+ElementPlus,Cannot read properties of null (reading 'isCE')

一、环境 vue3,ElementPlus,@vue/cli 5.0.8,npm 9.6.7。 二、报错内容 在vue3框架,views文件夹下的AboutView.vue文件里,执行<el-button>Default</el-button>语句就会报错如下: Uncaught runtime e ......
ElementPlus properties reading Cannot Vue3

解决python读取文件报错UnicodeDecodeError: 'gbk' codec can't decode byte 0xbc in position 124: illegal multibyte sequence问题

示例代码: ```python with open(base_path + "\\config\\user.json",encoding='utf-8') as f: data = json.load(f) print(data) ``` 效果: ![](https://img2023.cnblog ......

windows 11 启动Docker Desktop报“Docker Desktop - Unexpected WSL error”错

## windows 11 启动Docker Desktop报“Docker Desktop - Unexpected WSL error”错 ### 报错内容如下: ``` An unexpected error was encountered while executing a WSL comm ......
Desktop Docker Unexpected windows error

TypeError: fs.existsSync is not a function | import { ipcRenderer } from 'electron'

在electron的渲染进程中导包会发生TypeError: fs.existsSync is not a function node_modules/electron/index.js:6 ``` var pathFile = path.join(__dirname, 'path.txt') if ......

I'm not good at English. 我不太擅长英语。 I'm not very fluent in English yet. 我的英语还不太流利。

“我英语不好”:并不是 My English is poor. 可以说: I'm not good at English. 我不太擅长英语。 I'm not very fluent in English yet. 我的英语还不太流利。 p.s. 外国人的眼中,用poor来形容自己的水平,是一种自卑不 ......
English not fluent 39 good

json web token(jwt)详解

1. json web token是什么? JSON Web Token (JWT)是一个开放标准(RFC 7519),它定义了一种紧凑的、自包含的方式,用于作为JSON对象在各方之间安全地传输信息。该信息可以被验证和信任,因为它是数字签名的。 2. 什么时候你应该用JSON Web Tokens ......
token json web jwt

字符 '0' 和 '\0' 及整数 0 的区别

字符 '0' 和 '\0' 及整数 0 的区别 字符型变量用于存储一个单一字符,在 C 语言中用 char 表示,其中每个字符变量都会占用 1 个字节(8 位二进制数)。 整型 int 在内存中占用空间为四个字节(32位二进制数)。 字符 '0':char c = '0'; 它的 ASCII 码实际 ......
整数 39 字符