会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zjhgx
情绪化码农
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
14
下一页
2023年9月3日
Pycharm把项目名字用refactor后python的Path不对
摘要: 一个Pycharm项目从pythonProject改成了aliyunpanCrawler,原来有venv,但在temintal中打pytohn -V发现版本不对,echo ‘$PATH’发现path指向了老的venv/bin,经过一番摸索,发现需要修改venv/bin/activate,里面有一句
阅读全文
posted @ 2023-09-03 04:28 zjhgx
阅读(24)
评论(0)
推荐(0)
2023年8月29日
腾讯云出现硬盘IO繁忙比率100%的一次现象
摘要: 这天腾讯云的机器又登陆不上,页面无法打开,打开监控,发现内存在7G左右,cpu正常,但硬盘IO繁忙比率100%,硬盘读IOPS达到1840个,正常这个数值都在<1个。查看了日志,发现20:00一个定时脚本scrapy_cron.sh的日志中: request test done.. 后面的日志就没了
阅读全文
posted @ 2023-08-29 23:35 zjhgx
阅读(524)
评论(0)
推荐(0)
2023年8月26日
vue 使用Adsense错误:TagError: adsbygoogle.push() error: All ins elements in the DOM with class=adsbygoogle already have ads in them.
摘要: <div class="adsenseunit"> <!-- in-article-aquare2 --> <ins class="adsbygoogle" style="display: block" data-ad-client="ca-pub-3935005489954231" data-ad
阅读全文
posted @ 2023-08-26 05:32 zjhgx
阅读(573)
评论(0)
推荐(0)
2023年8月11日
服务器上mysqld,java的进程Out of Memory,被kernel kill 掉了
摘要: /var/log/messages 里面日志如下 Aug 10 19:47:16 VM-0-7-centos kernel: 8936 total pagecache pages Aug 10 19:47:16 VM-0-7-centos kernel: 0 pages in swap cache
阅读全文
posted @ 2023-08-11 01:10 zjhgx
阅读(447)
评论(0)
推荐(0)
2023年8月7日
mysql 自带client 中执行show processlist state是executing,但Info中的Sql并不是正在执行的sql
摘要: 某日半夜发现cpu占用率很高,原来后台在执行sql脚本,用show processlist打出来看。 | 7063 | root | 127.0.0.1:57370 | hjdang | Query | 2 | executing | SELECT id,goods_source_sn,goods_
阅读全文
posted @ 2023-08-07 06:18 zjhgx
阅读(270)
评论(0)
推荐(0)
vue ssr express.js 报错:TypeError: Cannot read properties of null (reading 'records')
摘要: 在vue ssr时,java后端返回的对象是内嵌对象的那种: package com.davidhu.shopguide.api.bean.extend; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; impor
阅读全文
posted @ 2023-08-07 05:50 zjhgx
阅读(163)
评论(0)
推荐(0)
2023年7月1日
ssr出现Hydration error的处理方法
摘要: 线上出现了Hydration error,而本地用ssr跑时页面打不开,express端报undefined。去线上的pm2看日志,是isWeixin()这个方法报windows undefined. 原来还是ssr的bug,之前修改时在server端调用了isWeixin()而直接使用了windo
阅读全文
posted @ 2023-07-01 02:26 zjhgx
阅读(496)
评论(0)
推荐(0)
2023年6月16日
quasar里Loading plugin造成scrollBehavior的行为不正确
摘要: 发现线上的项目页面scrollBehavior表现不正常。从Index点击route到detail页面,再后退,回到的位置是detail页面的scroll position,而不是route前index页面的scroll position。后来到以前的分支查看,发现是在ssr改造后出现的问题。一开始
阅读全文
posted @ 2023-06-16 18:32 zjhgx
阅读(28)
评论(0)
推荐(0)
2023年6月2日
sqlalchemy.orm.exc.DetachedInstanceError: Instanceis not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: http://sqlalche.me/e/bhk3)
摘要: 在使用sqlalchemy 的orm时,在一个循环中,如果一开始select时用了session,中间update某条记录后,session被关闭,就会出现对象not bound to a Session的问题. DBSession = sessionmaker(bind=self.engine,e
阅读全文
posted @ 2023-06-02 19:06 zjhgx
阅读(661)
评论(0)
推荐(0)
2023年5月18日
quasar v@2.16 ssr Meta插件 使用 title无法reactive的bug
摘要: 为了使自己的网站SEO更友好,在项目里启用了quasar的Meta插件。但实际使用下来发现文档里的描述不正确。为了动态的更新title和meta信息,文档https://quasar.dev/quasar-plugins/meta 里介绍 Reactive In the section above,
阅读全文
posted @ 2023-05-18 20:48 zjhgx
阅读(84)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
14
下一页
公告