tag参数是为了在回调方法中匹配发起调用的方法的,不会加在传输数据中。
调用write方法,等待接收消息。收到消息后,会回调didReadData的delegate方法,
delegate方法中的tag和发起read的方法中的tag是对应的。
- (void)readDataWithTimeout:(NSTimeInterval)timeout tag:(long)tag;
- (vo...
分类:
其他好文 时间:
2014-10-15 11:13:40
阅读次数:
217
shiro权限框架,前端验证是为jsp设计的,其中的tag只能用于jsp系列的模板引擎。最近项目使用了thymeleaf作为前端模板引擎,使用HTML文件,没法引入shiro的tag lib,此时如果要使用shiro的话,可以引入 thymeleaf-extras-shiro.jar这个拓展包来曲线实现shiro的前端验证。
在pom.xml中加入如下依赖:
com.github....
分类:
其他好文 时间:
2014-10-14 21:32:19
阅读次数:
1405
1、首先将如下数据提交到ES中建立索引
{"number":32768,"singer":"杨坤","size":"5109132","song":"今夜二十岁","tag":"中国好声音","timelen":319}
{"number":32769,"singer":"汪峰","size":"6001697","song":"我爱你中国","tag":"中国好声音","timelen":3...
分类:
其他好文 时间:
2014-10-14 20:48:29
阅读次数:
127
android Log.isLoggable方法的使用android 动态控制logcat日志开关,通过Log.isLoggable(TAG,level)方法动态控制,1.添加日志的时候加入判断, String TAG="Volley"; boolean isDbug=Log.isLoggabl.....
分类:
移动开发 时间:
2014-10-14 17:43:08
阅读次数:
200
第一次拿到UE4源代码,扫了一遍,各种宏定义,各种模板,各种类层次,杂乱无章。
后来慢慢明白其规律:
UE4的编码风格是在匈牙利命名法的基础下做了改进,使其更适用游戏引擎业务(业务特点:数据可视编辑、脚本化)。
UE4保留了匈牙利命名法的大驼峰,使Tag含义更易读。
UE4里有很多类型都以F、U、A、T为前缀,成员变量不加m前缀。为什么呢?
站在设计者的角度,想想UE4的引擎...
分类:
其他好文 时间:
2014-10-14 16:23:38
阅读次数:
218
HttpContext.Current.Request.Url.ToString() 并不可靠。如果当前URL为http://localhost/search.aspx?user=http://csharp.xdowns.com&tag=%BC%BC%CA%F5通过HttpContext.Curre...
分类:
Web程序 时间:
2014-10-14 16:18:13
阅读次数:
242
下载官方镜像core@localhost ~ $ docker pull ubuntu:14.04
#如果官方下载较慢,可到www.dockerpool.com下载标准镜像
core@localhost ~ $ docker pull dl.dockerpool.com:5000/ubuntu:14.04
core@localhost ~ $ docker tag dl.dockerpool.co...
分类:
系统相关 时间:
2014-10-14 13:21:18
阅读次数:
316
可以把“=”改成utf-8例如:try {paramMap.put("sessionid", java.net.URLEncoder.encode(accessToken, "UTF-8"));} catch (UnsupportedEncodingException e) {Log.d(TAG,e...
分类:
其他好文 时间:
2014-10-13 21:41:57
阅读次数:
148
当我们使用ADT的时候往往会遇到adb.exe无法正常启动的问题,如下:
Tag: Theconnection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at。...
分类:
数据库 时间:
2014-10-12 12:21:08
阅读次数:
290