lipo -info libJMALibrary.aArchitectures in the fat file: libJMALibrary.a are: i386 armv7lipo命名只能识别armv7和之前的架构,对于armv7s不能识别xcrun -sdk iphoneos lipo -in...
                            
                            
                                分类:
移动开发   时间:
2014-07-22 22:54:35   
                                阅读次数:
260
                             
                         
                    
                        
                            
                            
                                方法一1、57*57像素的png图片方形的就可以。2、拖放到xcode的resources文件夹里。3、选中resources文件夹,addtoproject然后找到图片。方法二找到项目的_info.plist在属性栏里,找到iconfile如果没找到这个属性可以手动添加属性,设置相应的文件路径。
                            
                            
                                分类:
其他好文   时间:
2014-07-16 16:38:32   
                                阅读次数:
215
                             
                         
                    
                        
                            
                            
                                //重置 $('.btn-info-reset').click(function restSearchForm() { $('#txt-export-position').val(''); $('#positions-name-tags').html(''); });
                            
                            
                                分类:
其他好文   时间:
2014-07-16 16:06:12   
                                阅读次数:
177
                             
                         
                    
                        
                            
                            
                                1.今天用sharesdk分享时遇一错误,老是报"尚未设置微信url scheme"的错误,错误号-22006,参考了网上的一个帖子,得到解决方案如下:这个是因为微信找不到 schemme 因为文档是要集成到plist文件里面的但是解决的时候可以写到 工程-》info-》urltype添加一个url...
                            
                            
                                分类:
其他好文   时间:
2014-07-16 15:48:18   
                                阅读次数:
180
                             
                         
                    
                        
                            
                            
                                1.finddb.bind_info.find({ "bd_type" : 1 })2.countdb.bind_info.find({ "bd_type" : 1 }).count();3.返回固定字段db.users.find({},{"name":1,"age":1})如:如果你想创建一个“m...
                            
                            
                                分类:
数据库   时间:
2014-07-16 15:19:49   
                                阅读次数:
308
                             
                         
                    
                        
                            
                            
                                1.简单的将日志打印到屏幕import logginglogging.debug('This is debug message')logging.info('This is info message')logging.warning('This is warning message') 屏幕上打印:...
                            
                            
                                分类:
编程语言   时间:
2014-07-16 14:54:52   
                                阅读次数:
215
                             
                         
                    
                        
                            
                            
                                文件的保存
public static boolean saveUserInfo(Context context, String username, String password)
	{
		try
		{
			// 定义一个文件路径对象
			File file = new File(context.getFilesDir(), "info.txt");
			// 定义一个文件的写入流...
                            
                            
                                分类:
移动开发   时间:
2014-07-16 14:06:44   
                                阅读次数:
222
                             
                         
                    
                        
                            
                            
                                [root@luozhonghua sbin]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for luozhonghua
httpd: Could not reliably determine the server's fully qualified domain name, using...
                            
                            
                                分类:
其他好文   时间:
2014-07-16 11:15:46   
                                阅读次数:
168
                             
                         
                    
                        
                            
                            
                                项目中想使用第三方的字体,在stackoverflow上查询解决办法,也折腾一会,添加成功,示例如下:
1.将xx.ttf字体库加入工程里面
2.在工程的xx-Info.plist文件中新添加一行Fonts provided by application,加上字体库的名称
3.引用字体库的名称,设置字体: [UIFont
fontWithName:@"fontname"...
                            
                            
                                分类:
移动开发   时间:
2014-07-16 10:22:19   
                                阅读次数:
335
                             
                         
                    
                        
                            
                            
                                前一段时间,开发环境反馈,Redis服务器访问非常慢,每个请求要数秒时间,重启之后2~3天又会这样。
我查看了一下Linux的性能,没有什么问题。通过
# redis-cli --latency
发现访问Redis确实很慢,执行info要几秒时间。里面有个参数已连接的客户端几万个,通过
Redis>client list
查看到很多client的age都很大,一直没有释放。于是怀疑是不是...
                            
                            
                                分类:
其他好文   时间:
2014-07-16 10:06:52   
                                阅读次数:
271