摘要:
修改build.gradle文件(project级的) 一.dependencies { classpath 'com.android.tools.build:gradle:1.0.1'}将classpath 'com.android.tools.build:gradle:1.0.1' 改为 'co
阅读全文
posted @ 2019-06-06 10:19
anobscureretreat
阅读(1312)
推荐(0)
摘要:
#include using namespace std; int main() { cout << "char: " << sizeof(char) << " 字节" << endl; cout << "int: " << sizeof(int) << " 字节" << endl; cout << "float: " << sizeof(float)...
阅读全文
posted @ 2019-06-05 09:38
anobscureretreat
阅读(469)
推荐(0)
摘要:
#include using namespace std; int main() { char c; int isLowercaseVowel, isUppercaseVowel; cout > c; // 小写字母元音 isLowercaseVowel = (c == 'a' || c == 'e' || c == 'i' || c =...
阅读全文
posted @ 2019-06-05 09:07
anobscureretreat
阅读(1021)
推荐(0)
摘要:
#include using namespace std; int main() { char op; float num1, num2; cout > op; cout > num1 >> num2; switch(op) { case '+': cout << num1+num2; ...
阅读全文
posted @ 2019-06-05 09:05
anobscureretreat
阅读(308)
推荐(0)
摘要:
#include #include using namespace std; int main() { // 创建一个向量存储 int vector vec; int i; // 显示 vec 的原始大小 cout ::iterator v = vec.begin(); while( v != vec.end()) { cout ...
阅读全文
posted @ 2019-06-05 08:40
anobscureretreat
阅读(373)
推荐(0)
摘要:
one two 参考: https://blog.csdn.net/teavamc/article/details/77520600
阅读全文
posted @ 2019-06-03 23:20
anobscureretreat
阅读(867)
推荐(0)
摘要:
安装 再次报错 使用sudo权限 安装成功 参考: https://blog.csdn.net/qq_38157974/article/details/78521088
阅读全文
posted @ 2019-06-03 23:08
anobscureretreat
阅读(3334)
推荐(0)
摘要:
报错信息 settings.py: #注释掉下面代码中黄色背景的那段, 参考: https://pypi.org/project/django-cors-headers/
阅读全文
posted @ 2019-06-02 23:55
anobscureretreat
阅读(8779)
推荐(0)
摘要:
主要是图片路径中“文件夹分隔符”使用的错误 将“\”改成“/”就好了 修改后的测试代码如下:x.py 运行: 显示xx.png 参考: https://blog.csdn.net/songyuc/article/details/82177198
阅读全文
posted @ 2019-06-02 15:10
anobscureretreat
阅读(23273)
推荐(0)
摘要:
pip install opencv-python
阅读全文
posted @ 2019-06-02 12:10
anobscureretreat
阅读(302)
推荐(0)
摘要:
我们就识别上面的汉字。 安装软件tesseract和python库 https://www.cnblogs.com/sea-stream/p/10961580.html 然后新建一个文件夹test,把上面那张图片放在文件夹里面,再新建一个test文件 写入如下内容 目录如下: 运行可能会出现错误:
阅读全文
posted @ 2019-06-02 01:28
anobscureretreat
阅读(9828)
推荐(0)
摘要:
安装软件 tesseract下载地址:https://digi.bib.uni-mannheim.de/tesseract/ 安装即可! 安装完成tesseract-ocr后,需要做一下配置 。 在Python安装目录(如:D:\Python35\Lib\site-packages\pytesser
阅读全文
posted @ 2019-06-01 23:59
anobscureretreat
阅读(12726)
推荐(1)
摘要:
pip install pytesseract
阅读全文
posted @ 2019-06-01 23:52
anobscureretreat
阅读(3100)
推荐(0)
摘要:
安装软件tesseract 下载地址:https://digi.bib.uni-mannheim.de/tesseract/ 再次运行可能会出现下面的问题 解决方法: https://www.cnblogs.com/sea-stream/p/10961580.html
阅读全文
posted @ 2019-06-01 23:51
anobscureretreat
阅读(4335)
推荐(0)
摘要:
无线路由器桥接上网方案 应用场景 条件: 首先我们有一个可以上网的Wi-Fi,我们假设为wifi. 现在我们有两个路由器A和B,两个服务器SA和SB,每个服务器上连接一个路由器。 目标: 通过电脑连接到A,我们可以登录到服务器SA中,并且在SA中可以上网。 打开路由器A配置页面,我这里使用的是tpl
阅读全文
posted @ 2019-05-30 01:42
anobscureretreat
阅读(1761)
推荐(0)
摘要:
#添加网关route add default gw 192.168.5.1#强制修改网卡地址ifconfig eth0 192.168.5.40 netmask 255.255.255.0、 服务器需要能上网,除了保证网关能正常连通之外。检查服务器DNS设置是否正确,找到DNS设置的配置文件 /et
阅读全文
posted @ 2019-05-28 17:32
anobscureretreat
阅读(1795)
推荐(0)
摘要:
第一种方法修改如下文件,默认是空的sudo vim /etc/resolvconf/resolv.conf.d/base在里面加入你想添加的DNS服务器,一行一个nameserver 114.114.114.114nameserver 8.8.8.8 修改好后保存,然后执行sudo /sbin/re
阅读全文
posted @ 2019-05-28 17:31
anobscureretreat
阅读(196)
推荐(0)
摘要:
#显示行号,设定之后,会在每一行的前缀显示该行的行号:set nu #取消行号显示:set nonu #将编辑的数据写入硬盘档案中(常用):w #若文件属性为『只读』时,强制写入该档案。不过,到底能不能写入, 还是跟你对该档案的档案权限有关啊!:w! #离开 vi (常用):q #若曾修改过档案,又
阅读全文
posted @ 2019-05-28 17:30
anobscureretreat
阅读(157)
推荐(0)
摘要:
新建用户sudo adduser linuxidc 修改hosts文件sudo gedit /etc/hosts ubuntu修改主机名sudo gedit /etc/hostname 删除用户在root用户下:userdel -r newuser 在普通用户下:sudo userdel -r ne
阅读全文
posted @ 2019-05-28 17:28
anobscureretreat
阅读(159)
推荐(0)
摘要:
使用gzip解压一个oracle rman备份集时报错:File too large.gizp -d cosp_db_full.tar.gzgzip: cosp_db_full.tar:File too large这样的错误是由于用户文件大小收到了限制。查看配置文件 cat /etc/securit
阅读全文
posted @ 2019-05-28 17:25
anobscureretreat
阅读(648)
推荐(0)
摘要:
安装 修改ntp.conf配置文件 修改为如下内容 重启NTP服务,并在客户端验证 观察时间同步状况: remote:本机和上层ntp的ip或主机名,“+”表示优先,“*”表示次优先refid:参考上一层ntp主机地址st:stratum阶层when:多少秒前曾经同步过时间poll:下次更新在多少秒
阅读全文
posted @ 2019-05-28 17:24
anobscureretreat
阅读(1695)
推荐(0)
摘要:
Smali是用于Dalvik(Android虚拟机)的反汇编程序实现 汇编工具(将Smali代码汇编为dex文件)为smali.jar baksmali.jar则是反汇编程序 地址:https://bitbucket.org/JesusFreke/smali/downloads/ 参考:https:
阅读全文
posted @ 2019-05-27 00:26
anobscureretreat
阅读(186)
推荐(0)
摘要:
产生原因:apktool.jar的版本太低,如果使用高版本不会出现异常 解决方案: 1.登陆http://ibotpeaches.github.io/Apktool/ 下载最新版本的apktool.jar, 目前最新版本为2.x 2.将下载到的apktool_xxx.jar文件改名为apktool.
阅读全文
posted @ 2019-05-26 22:33
anobscureretreat
阅读(688)
推荐(0)
posted @ 2019-05-26 22:04
anobscureretreat
阅读(14)
推荐(0)
摘要:
Project Title 项目名称 “外星飞船入侵”, git地址:https://github.com/lilinyu861/Alien-Invasion 效果图: 参考: https://blog.csdn.net/qq_31524409/article/details/81741854
阅读全文
posted @ 2019-05-26 15:40
anobscureretreat
阅读(441)
推荐(0)
摘要:
原因是新版的libpng增强了检查,发出警告。此警告可以忽略。若要消除此警告则要使用v4的色彩配置。GIMP sRGB v4 色彩配置,修改当前图片的色彩配置,设为默认。sRGB profilesOn this page you will find several different types o
阅读全文
posted @ 2019-05-26 15:04
anobscureretreat
阅读(19270)
推荐(1)
摘要:
Python 提供了多个图形开发界面的库,几个常用 Python GUI 库如下: Tkinter: Tkinter 模块(Tk 接口)是 Python 的标准 Tk GUI 工具包的接口 .Tk 和 Tkinter 可以在大多数的 Unix 平台下使用,同样可以应用在 Windows 和 Maci
阅读全文
posted @ 2019-05-26 14:25
anobscureretreat
阅读(225)
推荐(0)
摘要:
效果 参考: https://blog.csdn.net/qq_23948283/article/details/51637406?utm_source=blogxgwz6
阅读全文
posted @ 2019-05-26 14:23
anobscureretreat
阅读(2589)
推荐(0)
摘要:
https://mirrors.edge.kernel.org/pub/linux/kernel/
阅读全文
posted @ 2019-05-25 15:58
anobscureretreat
阅读(163)
推荐(0)
摘要:
sudo apt-get update sudo apt-get install phablet-tools sudo repo init
阅读全文
posted @ 2019-05-25 15:35
anobscureretreat
阅读(186)
推荐(0)
摘要:
推荐u盘使用exfat格式,为什么呢?两个原因: 1、三大主流操作系统(Linux、Mac、Windows)都支持exfat格式。2、exfat支持大于4G的文件。 在ubuntu下,由于版权的原因(据说),默认不支持exfat格式的u盘,不过可以很方便就能添加对exfat的支持: 1、对于ubun
阅读全文
posted @ 2019-05-25 00:09
anobscureretreat
阅读(450)
推荐(0)
摘要:
制作Ubuntu14.04 的u启动盘,重启电脑进入要克隆的系统,打包整个根目录 将这个压缩包复制到u盘中,然后重启电脑进入live CD 模式, 解压完毕后,重新创建你剔除的目录: mkdir procmkdir lost+foundmkdir mntmkdir sys/proc 权限:文件所有者
阅读全文
posted @ 2019-05-25 00:03
anobscureretreat
阅读(787)
推荐(0)
摘要:
linux系统如果想做备份还原,使用ghost的时候经常出现问题,后来发现可以直接使用dd命令完成硬盘的克隆和还原.当拷贝完硬盘后,就可以拿这个硬盘放到其它设备上跑了。也就是完成了“烧写”了。 用U盘制作ubuntu14.04的启动盘,在livecd模式中进行修复,步骤如下:1.开机u盘启动,进入u
阅读全文
posted @ 2019-05-24 23:51
anobscureretreat
阅读(5017)
推荐(0)
摘要:
以上操作与 效果相同。 #gzip 压缩,解压缩 解压xx.com.gz。 显示每个压缩的文件的信息,不解压 压缩一个tar备份文件,如usr.tar,此时压缩文件的扩展名为.tar.gz 将sort.txt用最佳的压缩比压缩,并保留原始文件 补充:zcat 则是用来读取压缩文件数据内容的指令!假如
阅读全文
posted @ 2019-05-24 23:45
anobscureretreat
阅读(725)
推荐(0)
摘要:
1.问题描述: 今天解压tar包遇到这样一个问题 使用命令:tar -zxvf xxxxx.tar.gz gzip: stdin: unexpected end of filetar: Unexpected EOF in archivetar: Unexpected EOF in archiveta
阅读全文
posted @ 2019-05-24 23:42
anobscureretreat
阅读(1145)
推荐(0)
posted @ 2019-05-24 10:24
anobscureretreat
阅读(875)
推荐(0)
摘要:
1.打包系统文件 制作启动盘,然后进入bios, #进入bios的boot标签选择sandisk启动 如果没有找到u盘进入save & exit标签页选择boot override中的sandisk启动 进入后,选择试用,然后打开命令行 #切换到root用户下 #查看机器的磁盘挂载在哪个设备上 #查
阅读全文
posted @ 2019-05-22 18:45
anobscureretreat
阅读(849)
推荐(0)
摘要:
//可以用来查看分区的文件系统 //df命令可以显示目前所有文件系统的可用空间及使用情形
阅读全文
posted @ 2019-05-21 22:59
anobscureretreat
阅读(117)
推荐(0)
摘要:
查看当前目录所有文件夹的空间占用(不显示子目录) 查看当前目录所有文件夹以及文件的空间占用(不显示子目录) 参考:https://www.cnblogs.com/lixuwu/p/5944062.htmlhttps://www.cnblogs.com/xueqiuqiu/p/7635722.html
阅读全文
posted @ 2019-05-21 22:57
anobscureretreat
阅读(642)
推荐(0)
摘要:
错误提示的字面意思是,系统惴惴不安地拒绝执行创建一个空压缩包的任务。检查tar命令的语法!!!参考:https://blog.csdn.net/deniro_li/article/details/54094913
阅读全文
posted @ 2019-05-21 22:56
anobscureretreat
阅读(7011)
推荐(0)