Stella981 Stella981
4年前
C#序列化反序列化对象为base64字符串
之所以序列化为base64字符串方便传输,可存储在本地也可以是服务器publicclassSerializer{privateSerializer(){}publicstaticstringSerialize<T(Tobj)
Stella981 Stella981
4年前
Nginx日志运维笔记
在分析服务器运行情况和业务数据时,nginx日志是非常可靠的数据来源,而掌握常用的nginx日志分析命令的应用技巧则有着事半功倍的作用,可以快速进行定位和统计。1)Nginx日志的标准格式(可参考:http://www.cnblogs.com/kevingrace/p/5893499.html(https://www.oschina.net/ac
Wesley13 Wesley13
4年前
ELK最佳实践
1.ELK最佳实践解析!(https://oscimg.oschina.net/oscnet/50d3ea4fa3946e374b0a03fb0e5795f4cb2.png)a.用户通过nginx或haproxy访问ELK日志统计平台,IP地址为keepalived的vip地址;b.nginx将请求转发到kibana;c.kibana到e
Stella981 Stella981
4年前
Debezium 处理 mysql timestamp 的坑
使用Debezium订阅mysqlbinlog Debezium对于Timestamp的处理,会变成字符串,处理的核心代码是:ZonedDateTimeexpectedTimestampZonedDateTime.of(LocalDateTime.parse("20140908T17:51:04.780"),
Stella981 Stella981
4年前
C#winform中数据库的连接
一、连接VS2013自带的本地数据库usingSystem.Data.SqlClient;首先定义一个连接字符串publicstaticstringConnectString"Server(localdb)\\Projects;InitialCatalogTest;IntegratedSecurity
Stella981 Stella981
4年前
JSONBuilder的用法
一。JSONBuilder可以向文件中写入写入json字符串。如下面的例子:1publicclassTest2{3publicstaticvoidmain(Stringargs)throwsIOException4{5Filefn
Stella981 Stella981
4年前
Python format 用法详解
一、填充字符串1\.位置print("hello{0},thisis{1}.".format("world","python"))根据位置下标进行填充print("hello{},thisis{}.".format("world","python"))根据顺序自动填充
Stella981 Stella981
4年前
Javascript、js 时间日期时间戳转换
1、当前系统区域设置格式(toLocaleDateString和toLocaleTimeString)例子:(newDate()).toLocaleDateString()""(newDate()).toLocaleTimeString()结果:2008年1月29日16:13:112.普通字符串(toDat
Wesley13 Wesley13
4年前
6 招教你提高网站速度
!图片1(https://image.evget.com//Content/files/2017/7/28/5174b527782a4fcca1e997eba85dfe89636368468467682067.gif)①图片优化统计数据显示,用户倾向于放弃一个在3秒内未加载完成的网页。由于加载图片占据了网页上可下载的大部分字节空间,所以
Stella981 Stella981
4年前
QString组合、拆分。
1、组合字符常用arg()函数QStringtestQString("_haha_%1_hehe%2").arg("ee").arg("aa");      //test"_haha_ee_heheaa"eg:arg(constQString&a,intfieldWidth0,QCharfillCh