代码改变世界 错误: Type inference failed : Not enough information to infer parameter T in fun<T:View> findViewById(id: Int): T! Please specify it explicitly. 解决: 改为 holder.btnInstall = convertView.findViewById<Button>(R.id.btn_install) 转自:http://blog.…
1.we sue the Search Engines Shodan we can gather much information on the line web , such we want to find a American IIS service we can use the commands : IIS 8.0 hostname:microsoft.com country:US the key words : country :US city:Baijing h…
Have you ever wanted to set up your own VPN server? By following the steps below, you can set up your own L2TP VPN server on CentOS 6. Note that an L2TP VPN, which we’re setting up here, is more secure than a PPTP VPN server. OpenVPN is another alter…
Web API 2中的属性路由 前言 阅读本文之前,您也可以到Asp.Net Web API 2 系列导航进行查看 http://www.cnblogs.com/aehyok/p/3446289.html 路由就是Web API如何把URI匹配到一个Action的描述.Web API支持一种新的路由类型,被叫做属性路由.顾名思义,属性路由是用属性来创建路由.在你的Web API中属性路由可以让你更好的控制URI.你能容易的创建描述资源阶层的URIs. 较早的基于公约的路由风格是全面被支持的.事实…
Route Constraints Route constraints let you restrict how the parameters in the route template are matched. The general syntax is "{parameter:constraint}". For example: [Route("users/{id:int}"] public User GetUserById(int id) { ... } [R…