微信开发中的两种access_token

程序开发中,对同名不同意的定义常常是很使人头大的,因为这种情况下,很容易混淆。
这不,在微信开发中我就发现它有两个access_token,一个是再文档的开始介绍中,是很核心的概念,另外一处则是在oauth介绍文档中。还好有其他人说的很清楚了:

http://www.tangshuang.net/2397.html

Posted in Uncategorized.

Install and Configure Redis on CentOS 7

sudo yum install redis

https://www.linode.com/docs/databases/redis/install-and-configure-redis-on-centos-7

Posted in Uncategorized.

.net & java 签名验签的互操作

详见代码
链接:http://pan.baidu.com/s/1dE0VISD 密码:o47v

Posted in Uncategorized.

visual studio 2017提示不能加载”*** package”包

我使用的是vs 2017社区版, 某天突发故障,不能打开任何项目, 都报不能加载包。
解决方法如下:

The work-around for this issue would be:

Launch “Developer Command Prompt for VS 2017” as Administrator
Go to VS 2017 installation folder, for example: pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
gacutil -if Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.Shell.Interop.8.0.dll

Posted in Uncategorized.

Nginx日志在splunk中展示的parser

 

 

(?P<remote_addr>[\d\.]+)\s-\s(?P<remote_user>\S+)\s\[.+\]\s+(?<request>.+\sHTTP/\d\.\d)\"\s(?P<status>\d+)\s(?P<bytes_sent>\d+)\s\"(?P<http_referer>[^\"]+)\"\s\"(?P<http_user_agent>[^\"]+)\"\s\"(?P<forwarderfor>\S+)\"

 

 

 

sourcetype="access_combined_wcookie" | rex field=_raw "(?P<remote_addr>[\d\.]+)\s-\s(?P<remote_user>\S+)\s\[.+\]\s+(?<request>.+\sHTTP/\d\.\d)\"\s(?P<status>\d+)\s(?P<bytes_sent>\d+)\s\"(?P<http_referer>[^\"]+)\"\s\"(?P<http_user_agent>[^\"]+)\"\s\"(?P<forwarderfor>\S+)\""

Posted in Uncategorized.