摘要: 环境:win2008r2+IIS 解决方案: 添加一个映射 可执行文件地址(根据系统决定64位可32位): C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll 名称随便起。就此OK 阅读全文
posted @ 2017-04-24 16:52 chenjingchun 阅读(1643) 评论(0) 推荐(0) 编辑
摘要: 分组求和mysql> SELECT coalesce(name, '总数'), SUM(singin) as singin_count FROM employee_tbl GROUP BY name WITH ROLLUP; + + + | coalesce(name, '总数') | singin 阅读全文
posted @ 2017-04-13 11:52 chenjingchun 阅读(1570) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://www.runoob.com/mysql/mysql-regexp.html 实例 了解以上的正则需求后,我们就可以更加自己的需求来编写带有正则表达式的SQL语句。以下我们将列出几个小实例(表名:person_tbl )来加深我们的理解: 查找name字段中以'st'为开头的所有 阅读全文
posted @ 2017-04-13 11:39 chenjingchun 阅读(879) 评论(0) 推荐(0) 编辑
摘要: 用户向客户端(third party application)提供用户名和密码。 客户端将用户名和密码发给认证服务器(Authorization server),向后者请求令牌(token)。 认证服务器确认无误后,向客户端提供访问令牌。 客户端持令牌(token)访问资源。 阅读全文
posted @ 2017-04-08 15:28 chenjingchun 阅读(699) 评论(0) 推荐(0) 编辑
摘要: 授权码模式(authorization code) 适用于网站服务端去oauth服务端申请授权 简化模式(implicit) 没有服务端,js+html页面去oauth服务端申请授权 密码模式(resource owner password credentials) 你自己实现了一套webApi,想 阅读全文
posted @ 2017-04-08 15:24 chenjingchun 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 参考http://www.cnblogs.com/jesse2013/p/async-and-await.html 事例: static void Main(string[] args) { for (int i = 0; i GetNameAsync() { // 这里还是主线程 Conso... 阅读全文
posted @ 2017-03-02 16:39 chenjingchun 阅读(10954) 评论(0) 推荐(2) 编辑
摘要: MSMQ全称是Microsoft Message Queue——微软消息队列。 MSMQ是一种通信的机制,因为是一种中间件技术,所以它能够支持多种类型的语言开发,同时也是跨平台的通信机制,也就是说MQ支持将信息转化为XML或者JSon等类型的数据存储到消息队列中,然后可以使用不同的语言来处理消息队列 阅读全文
posted @ 2017-02-16 14:56 chenjingchun 阅读(708) 评论(0) 推荐(0) 编辑
摘要: 1.安装chocolatey 以管理员权限运行命令提示符(cmd.exe) @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%... 阅读全文
posted @ 2017-02-09 16:51 chenjingchun 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 'abc...'.replace(new RegExp('oldStr', 'gm'), 'newStr') 阅读全文
posted @ 2017-01-19 16:32 chenjingchun 阅读(376) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { ... 阅读全文
posted @ 2017-01-09 09:59 chenjingchun 阅读(291) 评论(0) 推荐(0) 编辑