Kerwen Blog

Stay Hungry Stay Foolish

C# debug application startup

Add 1 System.Diagnostics.Debugger.Launch(); to Application_Start. You’ll get a popup asking you if you want to debug the website, and if you click OK, you’ll be taken to Visual Studio in debug m...

C# XML序列化

Open xml to copy xml content Create a new class in VS Edit -> Paste Special -> Paste XML as Classes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [System.Xml.Serializat...

C#加密解密

Reference How to: Store Asymmetric Keys in a Key Container RSA Encryption, getting bad length RSACryptoServiceProvider encrypt and decrypt using own public and private key Key Storage and Retri...

C# SQLite 性能优化

https://blog.csdn.net/qingzhuyuxian/article/details/79768032 https://zhuanlan.zhihu.com/p/84768332 Write-Ahead Logging SQLite WAL 模式简单介绍 SQLite的原子提交及WAL日志模式

如何限制Task的最大并发数量

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 int maxConcurrency=10; var messages = new List<string>(); using(SemaphoreSlim concurrencySemaphore = new SemaphoreSlim(max...

VisualStudio 升级过程中提示root node is not in the package collection.

升级Visual Studio 2017 到 15.9.16版本时,冒出以下提示: 1 Setup operation failed: The root node "Microsoft.VisualStudio.Product.Professional,version=15.0.26403.7" is not in the package collection. 解决方案: Pleas...

基金进阶课

投资风险 单一资产的风险和收益关系成正相关,一般是风险低,回报就低;回报高的,风险也高。 马考维茨投资组合有效边界模型: 通过将投资品进行组合,在相同的风险下,可能带来更高的收益,也有可能导致收益下滑。 风险分类: 非系统风险 企业经营风险 企业财务风险 行业风险 系统性风险 市场风险 利率风险 当利率上升时,意味着把钱存在银行都能获得还不错的收益, 大家当然愿意把钱存...

VisualStudio 打开工程提示保存 devenv.sln

今天升级Visual Studio 2017 到 15.9.16版本, 打开一个已有的工程,冒出以下提示: 解决方案: 需要配置 “C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\vslauncher.exe” 以 Administrator权限运行. 右键 VSLauncher.exe 选择属性 —》选择 Comp...

Custom Action condition

Modify & Repair 1 Installed AND Not REMOVE Only Install 1 NOT Installed AND NOT PATCH initial installation only: 1 NOT Installed Uninstall 1 REMOVE Install and repair 1 NOT REM...

Jenkins Pipeline

Pipeline介绍 Pipeline,简而言之,就是一套运行于Jenkins上的工作流框架,将原本独立运行于单个或者多个节点的任务连接起来,实现单个任务难以完成的复杂流程编排与可视化。 Pipeline是Jenkins2.X的最核心的特性,帮助Jenkins实现从CI到CD与DevOps的转变。 Pipeline的几个概念: Stage: 阶段,一个Pipeline可以划分成若干个St...