12 2018 档案
摘要:A Better Way? [[Class]] Every JavaScript object has an internal property known as [[Class]] (The ES5 spec uses the double square bracket notation to r
阅读全文
摘要:http://vim.wikia.com/wiki/Using_command-line_history in: VimTip, Usage, Todo Using command-line history in: VimTip, Usage, Todo VimTip, Usage, Todo Us
阅读全文
摘要:在ES6和ES5中promise的执行也有不同点(上述提到,ES6中promise属microtask;在ES5中,暂未接触到有api直接操作microtask的,所以.then的异步是用setTimeout代替,属macrotask,导致输出有差异);关于promise也可参考上文 分步理解 Pr
阅读全文
摘要:原文: https://hackernoon.com/es8-was-released-and-here-are-its-main-new-features-ee9c394adf66 This article originally appeared on dormoshe.io This artic
阅读全文
摘要:原文: http://www.tothenew.com/blog/high-performance-find-query-using-lean-in-mongoose-2/ EmailTwitterFacebookLinkedInGoogle+ 原文: http://www.tothenew.com
阅读全文
摘要:I want to write a PHP script that I can use from the command line. I want it to prompt and accept input for a few items, and then spit out some result
阅读全文
摘要:原文: https://www.cnblogs.com/along21/p/10189072.html#auto_id_13 2.1 下载MongoDB MongoDB 提供了 linux 各发行版本 64 位的安装包,你可以在官网下载安装包。 下载地址:https://www.mongodb.co
阅读全文
摘要:1.telnet smtp.163.com 25 2. 3.测试成功
阅读全文
摘要:https://mayaposch.wordpress.com/2011/10/03/design-your-own-protocol-in-five-minutes Among the most scary and official sounding terms in computing we f
阅读全文
摘要:https://stackoverflow.com/questions/1972242/how-to-auto-reload-files-in-node-js 14down vote 14down vote If somebody still comes to this question and w
阅读全文
摘要:怎么求矩阵对应的基呢? 对矩阵做初等行变换,化为上三角形 或 对角型, 主对角元素不为0的列即为该矩阵的一组基。 A = 这个矩阵对应的一个基 为 , , 其实,将第二行的 -1 倍加到第一行上,化为 所以基也可以是,,这个就对应的平面直角坐标系的正交的一组基。 (啰嗦一下,A矩阵其实对应的平面内的
阅读全文
摘要:矩阵相似是同一个变换在不同基下的描述。 参考: https://spaces.ac.cn/archives/1777 这篇文章给出了关于矩阵相似的比较直观的理解, “矩阵是线性空间中的线性变换的一个描述。在一个线性空间中,只要我们选定一组基,那么对于任何一个线性变换,都能够用一个确定的矩阵来加以描述
阅读全文
摘要:可以用composer的autoload来,导入自己写的类库。 composer dump-autoload -o > 改成 composer update 也可以。 怎么使用co'mposer呢? 1.composer.json 2. index.php 3. 执行 php index.php L
阅读全文
摘要:getcwd() :显示是 在哪个文件里调用此文件 的目录 __DIR__ :当前内容写在哪个文件就显示这个文件目录 __FILE__ : 当前内容写在哪个文件就显示这个文件目录+文件名
阅读全文
摘要:原文:https://www.certificationkits.com/cisco-certification/ccna-articles/cisco-ccna-intro-to-routing-basics/cisco-ccna-default-gateway-a-default-routes/
阅读全文
摘要:需求: 把某个域名的80端口服务 》 重定向转到 这个域名的 443端口的服务。 server { listen 80; server_name xxx.abcd.com.cn; if ($host = "xxx.abcd.com.cn") { rewrite ^ https://$server_n
阅读全文
摘要:在头文件中看到#typedef unsigned long int pthread_t这句话怎么理解,pthread_t是一个什么类型呢? 相当于pthread_t实际是个unsigned long int,只不过用pthread_t表示线程ID aada
阅读全文
摘要:https://www.cprogramming.com/code_blocks/ 这个地址可以下载c, c++的编译器,在windows下可以用的 IDE. bind到端口0上,系统就会自动分配,但是可能不是随机的,而是根据系统的算法。也可以用rand算个随机数出来,然后bind,如果bind不成
阅读全文
摘要:原文链接:http://blog.51cto.com/chinalx1/2089327 http://nikic.github.io/2012/12/22/Cooperative-multitasking-using-coroutines-in-PHP.html Blog by nikic. Fin
阅读全文
摘要:原文: http://blog.51cto.com/chinalx1/2143904 开源世界有许多优秀的开源项目,我选取其中十个最优秀的、最轻量级的C语言的项目,希望可以为C语言开发人员提供参考。十个最值得阅读学习的C开源项目代码 WebbenchWebbench是一个在linux下使用的非常简单
阅读全文
摘要:php中实现事件模式 https://yq.aliyun.com/ziliao/162660 D:\wnmp\www\vidagrid_iot\app\webroot\event.php:27: string string string string string string string str
阅读全文
摘要:用这个@NgModule()这个decorator ,放在一个class的上面,这个class一个一个module了 @NgModule() 里面的参数是一个对象,用来配置的,声明这个module里面的一些co'mponents, directives, pipes.... https://stac
阅读全文
摘要:angular @input alias别名的使用。 https://angular.io/guide/template-syntax#aliasing-io https://stackoverflow.com/questions/44033676/angular-bind-to-an-input-
阅读全文
摘要:文档: https://angular.io/guide/template-syntax#event-binding The Angular compiler may reject these bindings with errors like this one: You know that Her
阅读全文
摘要:angular的文档: https://angular.io/guide/template-syntax#property-binding https://blog.csdn.net/sunq1982/article/details/79004377 原文: https://www.cnblogs.
阅读全文
摘要:Structural Directives https://angular.io/guide/structural-directives#template-input-variable There are two other kinds of Angular directives, describe
阅读全文
摘要:原文:https://www.cnblogs.com/findumars/p/5706010.html 最近用VirtualBox创建虚拟机,复制了一个虚拟硬盘之后,直接添加到列表,发现无法使用....提示为UUID已经被使用.查找了一下解决方法:一般的介绍说操作方法为:在命令行中,打开Virtua
阅读全文
摘要:二、更新新的配置到supervisord 1 三、重新启动配置中的所有程序
阅读全文
摘要:背景,配置好了ssh 使用rsa pulbic key的方式登陆远程服务器。//ssh-keygen -t rsa -b 2048 -f andy-rsync-key -P '' https://help.ubuntu.com/community/SSH/OpenSSH/Keys 然后就有了本篇的主
阅读全文