@api.multidef button_cancel(self): for move in self: if not move.journal_id.update_posted: raise UserError(_('You cannot modify a posted entry of this ...
分类:
其他好文 时间:
2020-01-30 22:52:34
阅读次数:
125
方法一、 1、打开 vi /etc/sysconfig/network-scripts/ifcfg-eth0(每个机子都可能不一样,但格式会是“ifcfg-eth数字”),把ONBOOT=no,改为ONBOOT=yes 注意:这里可以先 cd /etc/sysconfig/network-scrip ...
分类:
Web程序 时间:
2020-01-30 14:19:37
阅读次数:
118
1.某些APP安装在模拟器时提示“ this probably means that the app contains ARM native code and your Genymotion device cannot run ARM instructions. You should either ...
分类:
移动开发 时间:
2020-01-29 23:26:57
阅读次数:
138
>>> plt.show() __main__:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. 原因: 发现发生在 coco.py 文件... ...
分类:
其他好文 时间:
2020-01-28 13:49:29
阅读次数:
266
1. 先看是否存在 2. 看属性,我们要测 ToastVue 和 plugin.js 3. 报异常错误,要用 yarn run dev test 代替 npm run dev test 4. 测试 closeButton。 这里测试后的时候出现 warning,Cannot read propert ...
分类:
其他好文 时间:
2020-01-27 15:48:10
阅读次数:
84
简介 字面上的意思: 可循环利用的屏障。 作用: 让所有线程都等待完成后再继续下一步行动。 举例模拟: 吃饭人没到齐不准动筷。 使用Demo 私有静态内部类 Generation(代) 属性 构造器 await(long timeout, TimeUnit unit) dowait(boolean ...
分类:
其他好文 时间:
2020-01-27 15:22:25
阅读次数:
63
1、安装docker依赖(已安装可以不用安装) yum install -y docker 2、搜索镜像 docker search elasticsearch 如果出现以下报错 Cannot connect to the Docker daemon at unix:///var/run/docke ...
分类:
其他好文 时间:
2020-01-26 19:19:48
阅读次数:
617
问题原因: pip v20.0的bug解决办法:手动升级pipcurl https://bootstrap.pypa.io/get-pip.py -o get-pip.py Then run the following command in the folder where you have dow ...
分类:
其他好文 时间:
2020-01-25 16:43:43
阅读次数:
124
原因: mysql从机上已经进行过绑定了,如果继续绑定需要先进行重置。 解决办法 1、停止已经启动的绑定 2、重置绑定 3、执行复制主机命令 4、发现此时已经不报错 5、启动复制 ...
分类:
数据库 时间:
2020-01-25 15:29:12
阅读次数:
346
首先如果直接使用 root 用户来启动 tomcat 的话,是可以正常启动的。 但是我们在 Linux 中使用普通用户启动 tomcat 报了如下错误 原因是没有在 setclasspath.sh 上设置 JAVA_HOME 和 JRE_HOME。 解决办法: 打开 setclasspath.sh ...
分类:
其他好文 时间:
2020-01-24 00:08:34
阅读次数:
122