新程序员
wang_nai_jun
这个作者很懒,什么都没留下…
展开
-
sqlalchemy 关联查询(outerjoin) 示意
Wh: code name emp_idEmp: code name from sqlalchemy.orm import aliasedEmp1 = aliased(Emp) #alias非必须,session.query(Wh, Emp1 ).outerjoin(Emp1, Emp1.id == Wh.emp_id)返回Tuple:(Wh,Emp,)Emp1 = aliased(Emp)session.query(Wh, Emp1....原创 2022-03-07 09:55:15 · 1922 阅读 · 2 评论 -
YARN VUE3 修改源文件名称后报错
yarn This relative module was not found原创 2022-01-12 18:33:55 · 564 阅读 · 0 评论 -
flask, SQLAlchemy, with_entities, KeyedTuple,decimal示例
sums = DataRpt.query.\ with_entities(DataRpt.code,func.\ sum(DataRpt.cnt).label('cnt'))\ .group_by(DataRpt.code).\ order_by(DataRpt.code).all() if(sums==None or len(sums) == 0): return {"success":False,"co...原创 2021-08-26 20:11:08 · 682 阅读 · 0 评论 -
ModuleNotFoundError: No module named ‘flask._compat‘
PYTHON / FLASK / MIGRATE ...升级后,db_migrate出现ModuleNotFoundError: No module named 'flask._compat'错误,然后就是抄来抄去铺天盖地的主意让降级使用,能降级还升级干啥?正解是:修改flask_script/__init__.py把from ._compat import text_type改成from flask_script._compat import text_type【感谢:Python...原创 2021-08-26 19:58:26 · 4246 阅读 · 4 评论 -
ubuntu18 重启后 网口灯不亮 网卡无IP
ifconfig -a 查看所有网卡名sudo dhclient 网卡名ifconfig网卡名发现网卡有了IP(v4),网口灯亮,一切恢复正常。【参考(12条消息) ubuntu18.04的ifconfig输出没有ip地址_本可奈何的博客-CSDN博客_ubuntu没有ip地址】------------------谢绝任何形式的转载--------------------------...原创 2021-08-20 21:24:58 · 3610 阅读 · 1 评论 -
UnsatisfiedLinkError tomcat SSL
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun java.lang.UnsatisfiedLinkError: org.apache.tomcat.jni.SSL.renegotiatePending(J)I at org.apache.tomcat.jni.SSL.renegotiatePending(Native Method) at org.apache.tomcat.util.net....原创 2021-08-10 12:39:26 · 472 阅读 · 0 评论 -
CURL SSL received a weak ephemeral Diffie-Hellman key
curl https://xxxx:8443/-i -k curl:(35) SSL received a weak ephemeral Diffie-Hellman key in Server Key Exchange handshake message修改tomcat/conf/server.xml, 更改配置, Connector增加sslEnabledProtocols和cipherssslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2"ciphers=原创 2021-08-10 12:29:42 · 568 阅读 · 0 评论 -
VUE & three.js 渲染报错 ‘modelViewMatrix‘ #<Matrix4>
现象:动画无法渲染,报错:three.module.js:20070 Uncaught TypeError: 'get' on proxy: property 'modelViewMatrix' is a read-only and non-configurable data property on the proxy target but the proxy did not return its actual value (expected '#<Matrix4>' but got '#<原创 2021-07-01 23:51:56 · 4745 阅读 · 5 评论 -
VUE3全局参数(变量)示例
src/global/global.vue<script>//前后台设定,会影响到界面显示的菜单和按钮const Mode = 'frontend' //'back-end'export default{Mode,}</script>src/main.jsimport _global_ from './global/Global'//app.config.globalProperties.Const = _global_app.provide('...原创 2021-06-11 12:56:43 · 748 阅读 · 0 评论