1 #region 序列化 2 public static string Serializer<T>(T t) 3 { 4 //StringBuilder sb = new StringBuilder(); 5 using (MemoryStream ms = new MemoryStream())... ...
分类:
其他好文 时间:
2019-09-23 22:47:47
阅读次数:
132
Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in ...
分类:
其他好文 时间:
2019-09-19 14:21:33
阅读次数:
72
上一篇豆子已经配置在PyCharm里面添加了boto3和pyboto3,因此写脚本的时候可以直接在自己的PyCharm里面编写。下面是一个例子遍历所有的region查找EC2,如果状态是开机,那就关掉;或者倒过来也可以写成如果是关机状态,就开机。importboto3deflambda_handler(event,context):#Getlistofregionsec2_client=boto3
分类:
编程语言 时间:
2019-09-19 09:17:37
阅读次数:
149
static int _timeout = 100000; #region CUP Method /// <summary> /// 请求与响应的超时时间 /// </summary> static public int Timeout { get { return _timeout; } set ...
分类:
其他好文 时间:
2019-09-17 10:56:10
阅读次数:
151
Question Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touches the left ...
分类:
其他好文 时间:
2019-09-16 10:10:50
阅读次数:
79
1、表的设计 Pre-creating Regions(预分区) 默认情况下,在创建Hbase表的时候会自动创建一个region分区,当导入数据的时候,所有的Hbase客户端都向这一个region写数据,直到这个region足够大了才进行切分。一种可以加快批量写入速度的方法是通过预先创建一些空的re ...
分类:
其他好文 时间:
2019-09-15 01:29:49
阅读次数:
118
1.进入阿里云的控制台https://ecs.console.aliyun.com/?#/server/region/cn-qingdao,点击管理 2.点击左边的 本实例安全组 3. 点击加入配置规则 4.点击 添加安全规则 端口范围 mongoDB端口号 可以是你先设置的任何端口号 授权对象 0 ...
分类:
其他好文 时间:
2019-09-13 15:27:29
阅读次数:
167
Ctrl+K+D:快速对齐代码 Ctrl+Z:撤销Ctrl+S:保存(一定要经常保存!)Ctrl+J:快速弹出智能提示Shift+End 光标到行尾、Shift+Home 光标到行首Ctrl+K+C:注释所选代码Ctrl+K+U:取消对所选代码的注释F1:转到帮助文档折叠冗余代码: #Region ...
分类:
其他好文 时间:
2019-09-12 16:22:11
阅读次数:
75
以ASP.NET Core WebAPI 作后端 API ,用 Vue 构建前端页面,用 Axios 从前端访问后端 API ,包括文件的上传和下载。 准备文件上传的API #region 文件上传 可以带参数 [HttpPost("upload")] public JsonResult uploa ...
分类:
Web程序 时间:
2019-09-11 14:07:40
阅读次数:
108
rowkey是什么? rowkey相当于mysql、orcale中的主键,用于标识唯一的行,是完全由用户指定的一串不重复的字符串,hbase的数据永远都是根据rowkey的字典顺序排序的。 Rowkey的作用 1)读写数据时通过rowkey找到对应region;2)MenStore中数据按rowke ...
分类:
其他好文 时间:
2019-09-10 11:36:07
阅读次数:
117