10 2020 档案
摘要:android里软键盘弹出顶起当前布局是常见的问题。 首先了解下软键盘和activity的几个交互模式(windowSoftInputMode) 【A】stateUnspecified:软键盘的状态并没有指定,系统将选择一个合适的状态或依赖于主题的设置 【B】stateUnchanged:当这个ac
阅读全文
posted @ 2020-10-31 22:01
乱炖er
摘要:解决方案: findViewById(R.id.loading).clearAnimation(); findViewById(R.id.loading).setVisibility(GONE);
阅读全文
posted @ 2020-10-30 12:05
乱炖er
摘要:解决方案: git config --global --unset https.proxy
阅读全文
posted @ 2020-10-26 14:49
乱炖er
摘要:Gunicorn是一个unix上被广泛使用的高性能的Python WSGI UNIX HTTP Server。和大多数的web框架兼容,并具有实现简单,轻量级,高性能等特点。 gunicorn 安装 pip3 install gunicorn gunicorn + flask 简单示例 flask程
阅读全文
posted @ 2020-10-21 11:27
乱炖er
摘要:参考: Android线程管理之ThreadPoolExecutor自定义线程池 https://www.cnblogs.com/whoislcj/p/5610903.html Android 多线程处理之多线程用法 https://www.cnblogs.com/zhujiabin/p/61690
阅读全文
posted @ 2020-10-18 21:31
乱炖er
摘要:先上代码: RotateAnimation animation =new RotateAnimation(0f, 360f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); animation.setDurat
阅读全文
posted @ 2020-10-18 13:26
乱炖er
摘要:Flask项目配置(Configuration) https://zhuanlan.zhihu.com/p/24055329 python官方配置 http://www.pythondoc.com/flask/config.html
阅读全文
posted @ 2020-10-15 16:26
乱炖er
摘要:本地数据库能通过root和密码正常登录 逐一排查问题 1,查看端口是否正确(使用的默认端口 3306) mysql> show global variables like 'port'; 结果端口为0 2,修改端口号 查看/Library/LaunchDaemons下的com.oracle.oss.
阅读全文
posted @ 2020-10-15 14:43
乱炖er
摘要:问题描述pycharm本地数据库,莫名出现一个错误,总会提示授权失败:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 此时切换到本地数据库,使用之前设置的密码无法进入,提示同样的错
阅读全文
posted @ 2020-10-15 14:17
乱炖er
摘要:pycharm本地调试,在postman中输入带下划线的参数没有问题,但是,当把项目部署到ecs中测试,使用带下划线的参数就会报错 typeerror int() argument must be a string a bytes-like object or a number 原因在于,ecs里使
阅读全文
posted @ 2020-10-15 11:31
乱炖er
摘要:pycharm远程连接ecs上的mysql,报错: RuntimeError: cryptography is required for sha256_password or caching_sha2_password 报错原因:mysql版本身份验证出现问题引起的 解决方案:安装 cryptogr
阅读全文
posted @ 2020-10-15 11:16
乱炖er
摘要:使用pycharm调取本地mysql,没有任何问题,当连接ecs上的mysql,将数据库连接中的 localhost 换成 ip 地址后,报错: 1130-host ... is not allowed to connect to this MySql server 这个问题是因为在数据库服务器中的
阅读全文
posted @ 2020-10-15 11:08
乱炖er
摘要:在 Linux 终端下处理文件时,有时我们想直接清空文件的内容但又不必使用任何 Linux 命令行编辑器 去打开这些文件。那怎样才能达到这个目的呢?在这篇文章中,我们将介绍几种借助一些实用的命令来清空文件内容的方法。 注意:在我们进一步深入了解这些方法之前,请记住: 由于在 Linux 中一切皆文件
阅读全文
posted @ 2020-10-14 18:58
乱炖er
摘要:在工作中,经常来备份文件和系统应用,常用到的主要是tar和cp命令,分别介绍如下: 一、tar命令,这个现在经常使用用来打包: tar包指的是档案文件: tar -cvf filename_20140805.tarfilename 打tar包的方法 tar -xvf filename_2014080
阅读全文
posted @ 2020-10-14 18:53
乱炖er

浙公网安备 33010602011771号