Zxing 是google提供的二维码扫描工程
Demo本身默认的扫图区域最大只有 360*480    需要拉开很远的距离才能将整个二维码扫描到
因此需要我们自己调整取图大小
 
在CameraManager.java这个类中进行调整
默认的大小是 以下这4个参数  
//  private static final int MIN_FRAME_WIDTH = 240;
//  pr...
                            
                            
                                分类:
移动开发   时间:
2014-05-05 13:28:29   
                                阅读次数:
565
                             
                    
                        
                            
                            
                                文件存储的用途:
A File object is suited to reading or writing large amounts of data in start-to-finish order without skipping around. For example, it's good for image files or anything exchanged over a netw...
                            
                            
                                分类:
移动开发   时间:
2014-05-05 13:01:21   
                                阅读次数:
339
                             
                    
                        
                            
                            
                                // BTree.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include"stdlib.h"
#include"malloc.h"
#define BT BTreeNode
#define MS 10
typedef struct BT{
	char data;
	struct BT *left;
	struct BT *right;
}BT;
...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 12:45:34   
                                阅读次数:
365
                             
                    
                        
                            
                            
                                the longest distance of a binary tree
个人信息:就读于燕大本科软件工程专业 目前大三;
本人博客:google搜索“cqs_2012”即可;
个人爱好:酷爱数据结构和算法,希望将来从事算法工作为人民作出自己的贡献;
博客内容:the longest distance of a binary tree;
博客时间:2014-4-...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 00:28:23   
                                阅读次数:
446
                             
                    
                        
                            
                            
                                有时候我们需要使用ajax提交去提交form的值,这样就需要使用serialize()去获取form的值,但这样获取的值如果有中文,会乱码,原因和解决方法如下:
原因:.serialize()自动调用了encodeURIComponent方法将数据编码了 
解决方法:调用decodeURIComponent(XXX,true);将数据解码 
如:
  var data=$('#addf...
                            
                            
                                分类:
Web程序   时间:
2014-05-04 00:12:51   
                                阅读次数:
274
                             
                    
                        
                            
                            
                                之前的表单数据都是文本数据,现记录:利用MultipartResolver进行文件上传。①首先,需引入commons-fileUpload和commons-io 
jar包,pom.xml文件的坐标:3.2.1.RELEASEorg.springframeworkspring-webmvc${spr....
                            
                            
                                分类:
编程语言   时间:
2014-05-03 22:39:20   
                                阅读次数:
441
                             
                    
                        
                            
                            
                                DDL :Data Definition Language (DDL) statements 
are used to define the database structure or schema. Some examples:CREATE - to 
create objects in the da...
                            
                            
                                分类:
数据库   时间:
2014-05-03 22:21:22   
                                阅读次数:
410
                             
                    
                        
                            
                            
                                本篇是boost::serialization 用基类指针转存派生类(错误多多,一波三折)的姊妹篇,这里只不过做一个总结。
先来看一个基类
class base_class
{
public:
	base_class(int m=0) : base_member_(0) {}
	virtual ~base_class() {}
	virtual void print_data() = 0;
...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 21:24:33   
                                阅读次数:
247
                             
                    
                        
                            
                            
                                二维码扫描  Android Zxing图片拉伸解决
Zxing是google提供的二维码扫描工程 
默认是横屏的  转换成竖屏后图片出现拉伸
这里提供解决办法:
Zxing  修改 CameraConfigurationManager.java文件的
void initFromCameraParameters(Camera camera)方法
在 Log.d(TAG, "Screen resolution: " + screenResolution);这句之后增加
Point scree...
                            
                            
                                分类:
移动开发   时间:
2014-05-03 17:23:16   
                                阅读次数:
559
                             
                    
                        
                            
                            
                                看到这个名称我惊呆了...
SQL不是希望快速查询取得结果吗,怎么什么时候会有这个概念。
问了一个哥们,哥们认为是漫查询:同时多查询。
于是Google得出了如下结果:
慢查询其实对应的是MySQL慢查询日志系统,用来记录执行比较慢的SQL。
怎么去判断执行慢呢,MySQL中你show variables like '%quer%';时,你可以看到long_query_time 属性,对应的就是设置的比较时间。
当看到long_query_time 属性时,你同时可以看到log_slow_queries状态...
                            
                            
                                分类:
数据库   时间:
2014-05-03 15:23:59   
                                阅读次数:
500