Stella981 Stella981
4年前
C#序列化反序列化对象为base64字符串
之所以序列化为base64字符串方便传输,可存储在本地也可以是服务器publicclassSerializer{privateSerializer(){}publicstaticstringSerialize<T(Tobj)
Wesley13 Wesley13
4年前
JAVA多线程学习
Java通过Excutors提供四种线程池:newCachedThreadPool        创建一个可缓存线程池,如果线程池长度超过处理需要,可灵活回收空闲线程,若无可回收,则新建线程。newFixedThreadPool        创建一个定长线程,可控制线程最大并发数
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"))根据顺序自动填充
Wesley13 Wesley13
4年前
Oracle 19c sqlplus 新的系统变量
新版本的sqlplus可以导出结果为csv格式了,此前只有html格式选项。如果你想仅仅导出数据结果为csv文件,还有其他的系统变量你需要注意的。SETECHOOFF关闭命令自身显示SETTERMOUNTOFF关闭命令输出显示SETFEEDBACKOFF关闭记录数返回SETV
Wesley13 Wesley13
4年前
ES6字符串操作讲解(详细),字符串编码表,代码单元,码点的详细介绍。
以前用到字符串的方法时候,并不会深刻的去思考其中的原理,所以在es6新增的这些方法里就有点蒙圈了,于是想要搞清楚为什么会新增这些方法,以及如何使用这些方法。 在博客园上看见一篇大神SamWeb的总结,很是详细,讲解透彻,故,引用于此,望莫失莫忘。地址:https://www.cnblogs.com/SamWeb/p/7091469.htmlE
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
Stella981 Stella981
4年前
Rust学习笔记#0:初窥门径
!(https://oscimg.oschina.net/oscnet/up3177e675618729c1949e66ea7695b4cad72.JPEG)为什么选择Rust这个世界上的编程语言不计其数,仅在TIOBE(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F