码迷,mamicode.com
首页 >  
搜索关键字:open source    ( 40776个结果)
软件设计原则
一、开闭原则(Open Closed Principle,OCP):当应用的需求改变时,在不修改软件实体的源代码或者二进制代码的前提下,可以扩展模块的功能,使其满足新的需求。 二、里氏替换原则(Liskov Substitution Principle LSP):子类可以扩展父类的功能,但不能改变父 ...
分类:其他好文   时间:2020-06-25 19:20:57    阅读次数:353
virtualenvwrapper.sh报错: There was a problem running the initialization hooks.解决
由于在ubuntu环境下,将python做与python3.6做了软链接(ln -s python python3.6),并且pip也被我做了软链接,所以导致用pip安装virtualenvwrapper之后,在source启动virtualenvwrapper.sh时以及workon 虚拟环境时总 ...
分类:移动开发   时间:2020-06-25 19:10:16    阅读次数:77
centos7 配置rm命令失效。
之前写过一篇alias别名的方法,但这个方法配置rm命令在重启后就无效了。而且重启后得输入source alias_test.sh。才可以 centos7 alias别名永久生效 下面是配置rm命令失效 1.编辑.bashrc文件,让开机使rm命令,不优先加载此配置。在alias rm前面加个#号即 ...
分类:其他好文   时间:2020-06-25 17:34:06    阅读次数:104
FinSpy的后门下载代码
c:\windows\apsou.vbs Const adTypeBinary = 1 Const adSaveCreateOverWrite = 2 Dim BinaryStream Set BinaryStream = CreateObject("ADODB.Stream") BinaryStr ...
分类:其他好文   时间:2020-06-25 17:30:10    阅读次数:64
Web For Pentester1 -Directory traversal
Example 1 源码: <?php $UploadDir = '/var/www/files/'; if (!(isset($_GET['file']))) die(); $file = $_GET['file']; $path = $UploadDir . $file; if (!is_fil ...
分类:Web程序   时间:2020-06-25 17:18:00    阅读次数:61
Spring8——Bean的生命周期、自动装配
Bean的生命周期 创建、初始化(赋初值)、使用、销毁。 方法一:@Bean+返回值方式 init destory <bean id="student" class="org.ghl.entity.Student" scope="singleton" init-method="myInit" des ...
分类:编程语言   时间:2020-06-25 15:48:59    阅读次数:60
opencv-python使用
1. cv2.waitKey(t) #等待t ms后继续执行,t=0则无限等待,返回值为键盘输入的键值的ASCII值 ...input = cv2.waitKey(0) #input is ASCII value of key...cv2.waitKey(0) #will not stop wait ...
分类:编程语言   时间:2020-06-25 13:44:27    阅读次数:62
js不打开直接下载txt文件
/** * 获取页面文件名 * @param url 文件url */ function downloadUrlFile(url) { url = url.replace(/\\/g, '/'); const xhr = new XMLHttpRequest(); xhr.open('GET', u ...
分类:Web程序   时间:2020-06-25 11:52:04    阅读次数:442
kube-flannel.yml
1 2 apiVersion: policy/v1beta1 3 kind: PodSecurityPolicy 4 metadata: 5 name: psp.flannel.unprivileged 6 annotations: 7 seccomp.security.alpha.kubernet ...
分类:其他好文   时间:2020-06-25 10:14:56    阅读次数:43
cmake
第一种:在项目目录写一个CMakeLists.txt cmake_minimum_required (VERSION 3.8) project ("rtsp") 该命令会查找指定目录下的所有源文件,然后将结果存进指定变量名。 #aux_source_directory(<dir> <variable ...
分类:其他好文   时间:2020-06-25 10:10:46    阅读次数:50
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!