在有些应用中需要用到背景音乐和音效,那在程序中是这么实现的。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
error: RPC failed; result=22, HTTP code = 411fatal:
The remote end hung up unexpectedly解决方法:git config http.postBuffer 524288000
分类:
其他好文 时间:
2014-05-10 01:06:09
阅读次数:
367
CentO中把vsftpd安裝配置好了,以為大功告成,但用FTP 登入出現下錯誤:500
OOPS: cannot change directoryCentOS系統安裝了SELinux,因為預設下是沒有開啟FTP的服務。//查看SELinux設置#
getsebool -a|grep ftpftp_...
分类:
其他好文 时间:
2014-05-09 22:59:08
阅读次数:
351
Long 无法转化成Integer类型.
这个异常 经常出现在hinbernate分页查询的时候.
原因:
这里在Hibernate2.0之前版本list.get(0)返回的是Integer类型.
但是在Hibernate3.0以后版本list.get(0)返回的是Long类型.
解决方法
public Intege...
分类:
编程语言 时间:
2014-05-09 22:00:46
阅读次数:
327
当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
phpize可以往php种追加新的模块
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script....
分类:
Web程序 时间:
2014-05-09 21:06:27
阅读次数:
375
在 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
在上一个例子中,元素的类名使用拼接的方法,这样,类名中就不得不带有true或false,并且不易维护,所以,angular使用ng-class属性来控制元素的类名:我们来看一个小例子,点击error按钮,顶部提示错误框,点击warning按钮,顶部提示警告框.错误框的类名是.err,警告框的类名是....
分类:
Web程序 时间:
2014-05-09 19:30:28
阅读次数:
523
安装了win7后,用了oem7f7,没效果,然后每次启动都先出现这样一排英文FATALERROR:oneormoretablepointersareinvalid.ModificationcouldbeunsafePressanytocontinuebooting按了任意键后才能进入系统,后来在oem7f7里面点击卸载,就能正常启动了。
分类:
其他好文 时间:
2014-05-09 14:32:51
阅读次数:
471