会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
那人,那事,那代码
走走停停,终该是留点什么
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
···
46
下一页
2022年11月15日
wkhtmltopdf 支持的纸张格式
摘要: # see http://doc.qt.io/archives/qt-4.8/qprinter.html#PaperSize-enum PAPER_SIZES = [ { 'description': 'A0 5 841 x 1189 mm', 'key': 'A0', 'height': 1189
阅读全文
posted @ 2022-11-15 16:58 那时一个人
阅读(144)
评论(0)
推荐(0)
2022年11月9日
linux python3 源码安装
摘要: https://www.jianshu.com/p/53285c211985 tar -xvf Python-3.6.1.tar.xz make make install
阅读全文
posted @ 2022-11-09 17:16 那时一个人
阅读(23)
评论(0)
推荐(0)
2022年11月8日
odoo 调整日志时间的时区
摘要: 默认是utc时区,需要调整源码 # netsevc.py class DBFormatter(logging.Formatter): def format(self, record): record.pid = os.getpid() record.dbname = getattr(threadin
阅读全文
posted @ 2022-11-08 15:43 那时一个人
阅读(374)
评论(0)
推荐(0)
pip error: Microsoft Visual C++ 14.0 or greater is required
摘要: https://zhuanlan.zhihu.com/p/471661231 去官网下载cpp编译工具: https://my.visualstudio.com/Downloads/Featured?mkt=zh-cn 下载后直接安装默认值 比起有的教程安装visualstudio编辑器好多了. m
阅读全文
posted @ 2022-11-08 11:42 那时一个人
阅读(3984)
评论(0)
推荐(0)
2022年10月13日
python IP段指定端口扫描
摘要: #!/usr/bin/python # -*- coding: utf-8 -*- # 查找哪台电脑开了远程端口 from socket import * # 3389 host = '192.168.11.' opened_ports = [] for ip in range(1, 254): s
阅读全文
posted @ 2022-10-13 14:44 那时一个人
阅读(69)
评论(0)
推荐(0)
2022年10月11日
postgresql 备份和恢复
摘要: 备份 pg_dump -d dbname --format=c -h 172.20.1.1 -p 5432 -U odoo >/tmp/bak.dump.$(date +'%Y%m%d') 恢复 指定参数-C,会自动帮你创建数据库,恢复的数据库名称没法指定,以前叫啥名恢复后就叫啥 pg_restor
阅读全文
posted @ 2022-10-11 10:37 那时一个人
阅读(56)
评论(0)
推荐(0)
2022年10月9日
ffmpeg 下载网络视频,m3u8,转换为指定视频格式
摘要: apt install ffmpeg ffmpeg -i 'https://ss.rongliren123.com/api/video/m3u8?id=16906&admin=1' out.mp4
阅读全文
posted @ 2022-10-09 14:37 那时一个人
阅读(406)
评论(0)
推荐(0)
2022年9月29日
python 查询字符串编码方式
摘要: https://github.com/jackzhenguo/python-small-examples/blob/master/md/170.md In [6]: chardet.detect(b'\xc8\xcb\xc9\xfa\xbf\xe0\xb6\xcc\xa3\xac\xce\xd2\x
阅读全文
posted @ 2022-09-29 16:00 那时一个人
阅读(77)
评论(0)
推荐(0)
2022年9月27日
odoo 上传的文件怎样保存
摘要: 路由 @http.route('/web/binary/upload_attachment', type='http', auth="user") @serialize_exception def upload_attachment(self, callback, model, id, ufile)
阅读全文
posted @ 2022-09-27 16:14 那时一个人
阅读(215)
评论(2)
推荐(0)
2022年9月26日
postgresql 分表
摘要: create table test_part ( id int, name varchar, age numeric ) partition by range (age); create table test_part_yong partition of test_part for values f
阅读全文
posted @ 2022-09-26 09:54 那时一个人
阅读(97)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
46
下一页
公告