06 2020 档案
摘要:介绍了C++ for 循环的5种用法。通过这里的案例,也可以熟悉对string 容器的使用。可以通过[] 来访问string 对象。 for each std::for_each for in for : for #include <iostream> #include <map> #include
阅读全文
摘要:问题描述: vs2017下无法使用 for each 1.严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C4496 使用了非标准扩展“for each”: 替换为 ranged-for 语句 2.严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C2760 语法错误: 意外的令牌“标
阅读全文
摘要:Iterators and Generators Iterables An object is deemed iterable if it has an implementation for the Symbol.iterator property. Some built-in types like
阅读全文
摘要:toLocalString() 是我个人比较喜欢的 let time = new Date(); console.log("toDateString:", time.toDateString()); console.log("toString:", time.toString()); console
阅读全文
摘要:tar glibc-2.31.tar.gz cd glibc-2.31 mkdir build cd build ../configure --prefix=/usr/local/glibc-2.31 --with-headers=/usr/include make -j4 make install
阅读全文
摘要:wget https://ftp.gnu.org/gnu/make/make-4.2.tar.gz tar -zxf make-4.2.tar.gz cd make-4.2 ./configure --prefix=$HOME/local make make install 可以在 ~/.bash_
阅读全文
摘要:转载:https://www.tutorialspoint.com/c_standard_library/c_function_calloc.htm 描述 C库函数void * calloc(size_t nitems,size_t size)分配请求的内存并返回指向它的指针。malloc和call
阅读全文
摘要:redis http://try.redis.io/ Please type HELP for one of these commands: DECR, DECRBY, DEL, EXISTS, EXPIRE, GET, GETSET, HDEL, HEXISTS, HGET, HGETALL, H
阅读全文
摘要:centos7 安装xinetd,telnet 安装方式:yum [root@master ~]# yum list |grep telnettelnet-server.x86_64 1:0.17-59.el7 @base telnet.x86_64 1:0.17-59.el7 base [root
阅读全文
摘要:永久显示行号 在xshell终端,输入下面的 命令 echo "set number" >> ~/.vimrc 这将在 ~/.vimrc 文件末尾添加一行 set number。
阅读全文
摘要:sudo /etc/init.d/redis start 其他重启方式: 如果是用apt-get或者yum install安装的redis,可以直接通过下面的命令停止/启动/重启redis /etc/init.d/redis-server stop /etc/init.d/redis-server
阅读全文
摘要:添加:"**/*.meta":true { "git.ignoreLimitWarning": true, "files.exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/CVS": true, "**/.DS_Sto
阅读全文
摘要:if (!actData || Object.keys(actData).length == 0) { console.log(" IS empty"); }
阅读全文
摘要:对服务器节点的 [cpu, rem, cpuG] 等数据进行读取和管理操作。这类记录下用到的若干TS方法。主要参考这里的 聚合查询语法。 /** * InfoManager1.ts * * 对服务器节点的 [cpu, rem, cpuG] 等数据进行读取和管理操作 * * Author:henry
阅读全文
摘要:1.安装python2.72.安装pip 3.网上下载gyp(python的一个模块),并安装(用python命令执行gyp文件下面的setup.py脚本)https://dist.libuv.org/dist/https://github.com/svn2github/gyphttps://gyp
阅读全文
摘要:特别注意,all, clean,这些命令下面,需要接 ‘Table’ 字符。(如果有python基础,会比较好理解。Table在某些语言中是很重要的一类字符) INC_DIR=-I/usr/local/include/hiredis/ LIB_DIR=-L/usr/local/lib LIB=-lh
阅读全文
摘要:1.搞清楚 .d.ts如何生成 /** A WebSocket connection that is valid from open to close event */ export interface WebSocket {} /** A structure holding settings an
阅读全文
摘要:Build LLVM and Clang:cd llvm-projectmkdir build (in-tree build is not supported)cd buildcmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm
阅读全文
摘要:1.升级环境,安装gcc g++,安装若干相关依赖包yum -y updateyum install gcc gcc-c++ sudo yum -y install bzip2 wget gcc gcc-c++ gmp-devel mpfr-devel libmpc-devel makeyum in
阅读全文
摘要:文章内容,转自官网。 更多信息,请去官网了解: https://docs.mongodb.com/manual/reference/method/ https://docs.mongodb.com/manual/reference/operator/query-comparison/ MongoDB
阅读全文
摘要:sudo yum -y install net-tools
阅读全文
摘要:打开工程的setting.json文件,在files.exclude这个参数(如果没有就添加上去)下增加 "**/*.meta":true 这个忽略项目: { "git.ignoreLimitWarning": true, "files.exclude": { "**/.git": true, "*
阅读全文
摘要:安装好之后发现上不了网,经过一番搜索和尝试之后发现,修复的方法很简单: 进入网卡的配置文件目录: cd /etc/sysconfig/network-scripts/ 打开网卡的配置文件进行编辑。centos7下的网卡名称不再是eth0了,比如我的是ens33,那么我的网卡配置文件就是。我们需要将网
阅读全文
摘要:windows安装openSSH-client使用PowerShell安装OpenSSH要使用PowerShell安装OpenSSH,请首先以管理员身份启动PowerShell。要确保OpenSSH功能可用于安装:Get-WindowsCapability -Online | ? Name -lik
阅读全文
摘要:运行:strings /lib64/libc.so.6 |grep GLIBC_发现没有GLIBC_2.18下载:wget http://mirrors.ustc.edu.cn/gnu/libc/glibc-2.18.tar.gz解压:tar -zxvf glibc-2.18.tar.gz进入解压文
阅读全文