会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zslm___
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
14
15
16
17
18
19
20
21
22
···
35
下一页
2017年2月22日
大数字字符串转换为短字符串(7位转4位)
摘要: /// /// 将数值字符串加密为短字符串 /// public static class NumberToShortString { /// /// 共62个字符 /// private static readonly string Keys = "0123456789abcdefghijk...
阅读全文
posted @ 2017-02-22 18:48 zslm___
阅读(2597)
评论(0)
推荐(0)
2017年2月21日
A reader
摘要: A reader lives a thousand lives before he die... The man who never reads lives only one.
阅读全文
posted @ 2017-02-21 16:02 zslm___
阅读(142)
评论(0)
推荐(0)
Newtonsoft.Json 自定义序列化格式转化器
摘要: public static class JsonHelper { static JsonHelper() { Newtonsoft.Json.JsonSerializerSettings setting = new Newtonsoft.Json.JsonSerializerSettings(); Jso...
阅读全文
posted @ 2017-02-21 09:48 zslm___
阅读(8424)
评论(1)
推荐(1)
2017年2月15日
Java线程同步之静态方法
摘要: 静态方法是同步方法:自动加锁,锁的对象是类对象
阅读全文
posted @ 2017-02-15 17:38 zslm___
阅读(380)
评论(0)
推荐(0)
2017年2月14日
Java的JsonHelper
摘要: com.google.code.gson gson 2.8.0 import com.google.gson.Gson; import com.google.gson.GsonBuilder; class JsonHelper { public sta...
阅读全文
posted @ 2017-02-14 18:21 zslm___
阅读(1321)
评论(0)
推荐(0)
2017年2月9日
Life is a journey
摘要: Life is a journey. What we should care about is not where it's headed but what we see and how we feel. Convention over Configuration(约定优于配置)
阅读全文
posted @ 2017-02-09 17:17 zslm___
阅读(249)
评论(0)
推荐(0)
2017年2月5日
c#生产/消费RabbitMQ
摘要: public sealed class JsonSerializer { public static byte[] Serialize(object message) { return Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(message)); } ...
阅读全文
posted @ 2017-02-05 19:28 zslm___
阅读(1719)
评论(0)
推荐(0)
线程设置超时
摘要: var cts = new CancellationTokenSource(); Thread t = new Thread(new ThreadStart(() => { Console.WriteLine(string.Format("{1}线程Id:{0}开始运行", Thread.C...
阅读全文
posted @ 2017-02-05 18:16 zslm___
阅读(399)
评论(0)
推荐(0)
2017年1月5日
Nuget Command Console
摘要: 命令行 注意选择 程序包源
阅读全文
posted @ 2017-01-05 18:44 zslm___
阅读(332)
评论(0)
推荐(0)
2016年12月29日
仿window系统自带的日期差计算器类
摘要: 调用如下 有意思的是假如:当前日期是 2016.12.29日,起始日期是2016.7.30 得到的结果与 起始日期是 2016.7.31号一样,都是 "4 月, 4 周, 1 天" 这是因为11月没有31号 为了避免出现 1.31号加1个月变成2.28,而2.28加1个月变成 3.28这种狗血事情,
阅读全文
posted @ 2016-12-29 14:19 zslm___
阅读(372)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
19
20
21
22
···
35
下一页
公告