在有些应用中需要用到背景音乐和音效,那在程序中是这么实现的。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
                             
                    
                        
                            
                            
                                简单说下实现苹果通知推送服务(APNs)客户端的一些要注意的地方:
使用长连接;sanbox服务器是没用的,调试时直接用“gateway.push.apple.com”域名;对于错误的Notification,苹果会回应一个Error response,里面有个identifier,在这个identifier之后的Notification全都失败;
因此发送者要缓存已经发送的Not...
                            
                            
                                分类:
移动开发   时间:
2014-05-10 03:33:21   
                                阅读次数:
473
                             
                    
                        
                            
                            
                                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
                             
                    
                        
                            
                            
                                当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
                             
                    
                        
                            
                            
                                在上一个例子中,元素的类名使用拼接的方法,这样,类名中就不得不带有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
                             
                    
                        
                            
                            
                                usergroupwwwwww;worker_processes8;//进程数,建议设置为等于CPU总核心数error_loglogs/error.log;#error_loglogs/error.lognotice;#error_loglogs/error.loginfo;pidlogs/nginx.pid;events{worker_connections1024;}http{includemime.types;default_typeapplication/octet-st..
                            
                            
                                分类:
其他好文   时间:
2014-05-09 14:30:49   
                                阅读次数:
308