public static byte[] getFileByteArray(File file) { long fileSize = file.length(); if (fileSize > Integer.MAX_VALUE) { System.out.println("file too big ...
分类:
编程语言 时间:
2020-02-29 00:18:21
阅读次数:
222
一、Redis 简介 "Redis is an open source (BSD licensed), in memory data structure store, used as a database, cache and message broker." —— Redis是一个开放源代码(BS ...
分类:
其他好文 时间:
2020-02-28 22:39:53
阅读次数:
83
nodejs不支持使用atob和btoa 进行字符串base64转换,转换方法如下: // 转为base64 var strToBase64 = new Buffer('aaabbbccc').toString('base64'); // base64反解析为字符串 var base64ToStr ...
分类:
Web程序 时间:
2020-02-28 18:30:23
阅读次数:
260
nginx配置https如下 nginx 后面应用是对应的tomcat应用 server { listen 80; server_name xxxx.com; rewrite ^(.*) https://$server_name$1 permanent; } server { listen 443 ...
分类:
Web程序 时间:
2020-02-27 20:47:05
阅读次数:
93
文章引用自 protobuf初识 protobuf是一种高效的数据格式,平台无关、语言无关、可扩展,可用于 RPC 系统和持续数据存储系统。 protobuf protobuf介绍 Protobuf是Protocol Buffer的简称,它是Google公司于2008年开源的一种高效的平台无关、语言 ...
分类:
其他好文 时间:
2020-02-27 19:06:00
阅读次数:
64
发现一个问题,上传项目到git会多出来一个打不开的.DS_Store文件,而且每次修改后或者没有修改打开过项目就会有一个文件(.DS_Store)说是修改过的,自己看着很不爽 .DS_Store 是什么 .DS_Store(英文全称 Desktop Services Store)是一种由苹果公司的M ...
分类:
系统相关 时间:
2020-02-27 16:19:48
阅读次数:
63
Reflux中的Store既是一个listener(既有对action的监听,又有对store的监听)同时又是一个publisher. 一、监听单个action const Reflux = require('reflux'); const action = Reflux.createAction( ...
分类:
其他好文 时间:
2020-02-26 19:05:37
阅读次数:
68
https://blog.csdn.net/u011748727/article/details/68947207 如果不了解Shader中如何使用模板缓冲区,可能看不懂例子。 渲染顺序,我理解为进入显卡流水管线的顺序,会对Z、Stencil和Color Buffer带来影响。当然,能否最终被绘制到 ...
分类:
编程语言 时间:
2020-02-26 19:00:46
阅读次数:
85