上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 55 下一页
摘要: ES6之前,定义一个函数(构造器)对象,使用this定义属性 使用new & 构造器创建一个新对象 function B(x){ console.log('B class') console.log(this); this.x=x; this.show=function(){console.log( 阅读全文
posted @ 2020-12-20 23:04 ascertain 阅读(118) 评论(0) 推荐(0) 编辑
摘要: loop const add=function (x,y){ return x+y; } const sub=function _sub(x,y){ return x-y; } console.log(add(5,7)) console.log(sub(5,8.3)) const sum=funct 阅读全文
posted @ 2020-12-20 19:05 ascertain 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 解构 var parts = ['shoulder', 'knees'] var lyrics = ['a', ...parts, 'b', 'c'] // 使用... 解构 console.log(lyrics) function f(x, y, z) { console.log(x + y + 阅读全文
posted @ 2020-12-20 13:03 ascertain 阅读(125) 评论(0) 推荐(0) 编辑
摘要: let b='designate' console.log(b.charAt(2)) console.log(b[2]) console.log(b.toUpperCase()) console.log(b.concat('.com')) console.log(b.slice(3)) consol 阅读全文
posted @ 2020-12-20 11:04 ascertain 阅读(126) 评论(0) 推荐(0) 编辑
摘要: /// fas /** * fasf */ console.log(b=3+'uio',typeof(b)) console.log(b=null+'uio',typeof(b)) console.log(b=true+'uio',typeof(b)) console.log(b=false+'ui 阅读全文
posted @ 2020-12-19 22:12 ascertain 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 结合占位符 drop PROCEDURE if EXISTS test12; -- 使用drop 来删除存储过程或者表 create PROCEDURE test12() -- 创建存储过程 命名为test12 BEGIN set @tableNames = CONCAT('background') 阅读全文
posted @ 2020-12-18 21:26 ascertain 阅读(132) 评论(0) 推荐(0) 编辑
摘要: import sqlalchemy from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column,Integer,String,Float,Enum,Date from sqlalchemy 阅读全文
posted @ 2020-12-18 01:39 ascertain 阅读(93) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash host=192.168.100.13 user=root password=password declare -a database database=(CJML_QxbEPC CJML_VIN Grab) function bacula() { #echo $1 mysq 阅读全文
posted @ 2020-12-17 16:00 ascertain 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 1、简介 Iperf3 是一个网络性能测试工具。Iperf可以测试最大TCP和UDP带宽性能,具有多种参数和UDP特性,可以根据需要调整,可以报告带宽、延迟抖动和数据包丢失.对于每个测试,它都会报告带宽,丢包和其他参数,可在Windows、Mac OS X、Linux、FreeBSD等各种平台使用, 阅读全文
posted @ 2020-12-16 13:28 ascertain 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 这是一个经常会遇到的bug,在小型局域网络中间经常会遭遇,症状是:局域网内无法通过计算机名访问共享文件夹,打印机设定等,通过内网IP可以。 检查相关服务是否开启 我的电脑——右键管理——服务——“Computer Browser”看看这个服务有没有启动。 网上邻居——属性——本地连接——属性——“网 阅读全文
posted @ 2020-12-14 20:59 ascertain 阅读(1790) 评论(0) 推荐(0) 编辑
摘要: MySQL8,新增data dictionary,数据初始化的时候在Linux下默认使用lower_case_table_names=0的参数,数据库启动的时候,读取/etc/my.cnf中的值,如果/etc/my.cnf中的值与数据库初始化时的值不一样,则会报如下错误 [ERROR] [MY-01 阅读全文
posted @ 2020-12-14 20:17 ascertain 阅读(8410) 评论(0) 推荐(0) 编辑
摘要: 权限 描述 ALL PRIVILEGES 影响除WITH GRANT OPTION之外的所有权限 ALTER 影响ALTER TABLE命令的使用 ALTER ROUTINE 影响创建存储例程的能力 CREATE 影响CREATE TABLE命令的使用 CREATE ROUTINE 影响更改和弃用存 阅读全文
posted @ 2020-12-14 18:00 ascertain 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 注册快照仓库 ES是通过快照的方式来实现数据备份,并且是以增量的方式,所以一般第一次做的话会花费较长的时间。为了做快照,那么就需要注册一个快照仓库,告诉ES我们的快照应该如何保存以及将快照保存到哪里. ES的快照仓库支持如下几种形式: 共享的文件系统,如NAS Amazon S3 HDFS (Had 阅读全文
posted @ 2020-12-14 14:43 ascertain 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 原因 由于某些你懂的因素,导致GitHub的raw.githubusercontent.com域名解析被污染了。 查询真实IP 在https://www.ipaddress.com/查询raw.githubusercontent.com的真实IP 修改hosts文件 或者直接把DNS服务器指向 8. 阅读全文
posted @ 2020-12-14 14:41 ascertain 阅读(353) 评论(0) 推荐(0) 编辑
摘要: from wsgiref.simple_server import make_server from webob import Response, Request, exc, dec import re, traceback, logging class Dict2Obj(object): def 阅读全文
posted @ 2020-12-13 23:28 ascertain 阅读(104) 评论(0) 推荐(0) 编辑
摘要: import pymysql from pymysql.cursors import DictCursor # class Field: # def __init__(self,name,column=None,chief=False,unique=False,index=False,nullabl 阅读全文
posted @ 2020-12-13 23:25 ascertain 阅读(112) 评论(0) 推荐(0) 编辑
摘要: import pymysql from pymysql.cursors import DictCursor from queue import Queue import threading class Pool: def __init__(self,size,*args,**kwargs): sel 阅读全文
posted @ 2020-12-13 23:23 ascertain 阅读(390) 评论(0) 推荐(0) 编辑
摘要: /proc/sys/net/core/somaxconn系统中每一个端口的最大监听队列长度,default 128defines a ceiling value for the backlog argument of listen net.core.somaxconn = 2048 /proc/sy 阅读全文
posted @ 2020-12-11 16:15 ascertain 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 安装软件 yum install ppp xl2tp libreswan /etc/ipsec.conf config setup nat_traversal=yes virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/1 阅读全文
posted @ 2020-12-11 14:59 ascertain 阅读(1220) 评论(0) 推荐(0) 编辑
摘要: 彻底搞懂shell的高级I/O重定向 - 骏马金龙 - 博客园 (cnblogs.com) 软件设计认为,程序应该有一个数据来源、数据出口和报告错误的地方。在Linux系统中,它们分别使用描述符0、1、2来表示,这3个描述符默认的目标文件(设备)分别是/dev/stdin、/dev/stdout、/ 阅读全文
posted @ 2020-12-10 16:26 ascertain 阅读(440) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 55 下一页