上一页 1 2 3 4 5 6 7 8 9 10 ··· 46 下一页
摘要: # 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)
摘要: 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)
摘要: 默认是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)
摘要: 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)
摘要: #!/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)
摘要: 备份 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)
摘要: 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)
摘要: 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)
摘要: 路由 @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)
摘要: 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 下一页