在有些应用中需要用到背景音乐和音效,那在程序中是这么实现的。1.首先加载背景音乐需要用到AVFoundation框架2.音乐资源都是在包里的,所以需要获得包路径,涉及方法-
(id)initWithContentsOfURL:(NSURL *)url error:(NSError **)outErr...
分类:
其他好文 时间:
2014-05-10 08:26:10
阅读次数:
275
转载至 : http://www.blogjava.net/huamengxing/archive/2009/10/21/299153.htmlStruts2架构图有视频讲解百度一下就可以找到了
我是在 私塾在线看到的 (因为这里放链接处error所以就没上连接了) 请求首先通过Filter c.....
分类:
其他好文 时间:
2014-05-10 07:37:57
阅读次数:
470
VS2010 C++ win32 DLL 工程, 添加 rc 文件, 编辑 String
Table。默认情况下英文版本的 rc 文件能够顺序编译通过,为了让工程支持多语言,将字符串修改为其他语言时,编译就会出错error RC2135: file
not found.解决方案参考:[经验之谈]VS...
分类:
其他好文 时间:
2014-05-10 06:12:44
阅读次数:
275
在ASP中用程序控制弹出NTLM验证窗口
简介: 可以弹出NT验证窗口,而不管目录是否允许匿名访问,很好用的一段代码。
作者:亚豪 EMAIL: yahao@bigfoot.com 下载或访问
Response.Status = "401 Unauthorized"
Response.AddHeader "WWW-Authenticate","NTLM"
response...
分类:
Web程序 时间:
2014-05-10 04:35:01
阅读次数:
314
configure: error: APR not found. Please read the documentation.
configure: error: APR-util not found. Please read the documentation....
分类:
其他好文 时间:
2014-05-10 04:20:35
阅读次数:
316
简单说下实现苹果通知推送服务(APNs)客户端的一些要注意的地方:
使用长连接;sanbox服务器是没用的,调试时直接用“gateway.push.apple.com”域名;对于错误的Notification,苹果会回应一个Error response,里面有个identifier,在这个identifier之后的Notification全都失败;
因此发送者要缓存已经发送的Not...
分类:
移动开发 时间:
2014-05-10 03:33:21
阅读次数:
473
Asp.net直接保存文件到客户端
在我们的系统的编写过程中,应该有很多的时候需要客户下载文件.我第一次的做法(应该也是大部分人的做法吧?)是:
1 HttpResponse response = HttpContext.Current.Response;
2 string js = "window.open('{0}');";
3 js = string.Format(js, url...
分类:
Web程序 时间:
2014-05-09 22:47:52
阅读次数:
311
在ASP.NET使用javascript的一点小技巧
我们在进行ASP.NET开发时,经常会用到一些javascript脚本,比如:
private void Button1_Click(object sender, System.EventArgs e)
{
Response.Write( "alert('OK');") ;
}
经常是重复的书写这些脚本,如果我们能做成一个相...
分类:
编程语言 时间:
2014-05-09 21:12:11
阅读次数:
268
当hive在执行大数据量的统计查询语句时,经常会出现下面OOM错误,具体错误提示如下:
Possible error: Out of memory due to hash maps used in map-side aggregation.
Solution: Currently hive.map.aggr.hash.percentmemory is set to 0.5. Try set...
分类:
其他好文 时间:
2014-05-09 21:08:27
阅读次数:
366
在 mkfs.ext4 /dev/sda2 格式化硬盘空间时,可能出现这样的错误。
had this situation at office where I was told to re-partition an already existing partition. The situation was to get the below schema
/dev/sdb1 1 3040 24...
分类:
其他好文 时间:
2014-05-09 20:49:25
阅读次数:
343