su//获取root权限setprop service.adb.tcp.port 
5555//设置监听的端口,端口可以自定义,如5554,5555是默认的stop adbd//关闭adbdstart adbd//重新启动adbd
                            
                            
                                分类:
移动开发   时间:
2014-05-16 06:01:28   
                                阅读次数:
305
                             
                         
                    
                        
                            
                            
                                本blog提供了一个简单的通过JDBC驱动建立JDBC连接例程,并分别通过Statement和PreparedStatement实现对数据库的查询。在下一篇blog中将重点比较Statement与PreparedStatement的差异。
1、为项目添加JDBC驱动
1)JDBC驱动下载
         官方下载地址:mysql-connector-java-5.0.8.zip...
                            
                            
                                分类:
数据库   时间:
2014-05-15 07:00:40   
                                阅读次数:
479
                             
                         
                    
                        
                            
                            
                                Robot Motion
Problem Description
A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 05:48:40   
                                阅读次数:
346
                             
                         
                    
                        
                            
                            
                                在上一篇【Java编程】建立一个简单的JDBC连接-Drivers, Connection, Statement and PreparedStatement我们介绍了如何使用JDBC驱动建立一个简单的连接,并实现使用Statement和PreparedStatement进行数据库查询,本篇blog将接着上篇blog通过SQL注入攻击比较Statement和PreparedStatement。当然这两者还有很多其他方面的不同,在之后的blog中会继续更新。...
                            
                            
                                分类:
数据库   时间:
2014-05-14 20:44:25   
                                阅读次数:
497
                             
                         
                    
                        
                            
                            
                                出现no write has been done on this connection解决方案...
                            
                            
                                分类:
数据库   时间:
2014-05-14 19:42:51   
                                阅读次数:
403
                             
                         
                    
                        
                            
                            
                                用到的接口和类
1) java.sql.Connection 接口
  1)) createStatement()  获得Statement
  2)) prepareStatement(String sql) 获得preparedStatement
  3)) prepareCall(String sql) 调用存储过程
 2)java.sql.DriverManager 类
   1))getConnection(String url, String user, String passwor...
                            
                            
                                分类:
数据库   时间:
2014-05-14 15:14:08   
                                阅读次数:
519
                             
                         
                    
                        
                            
                            
                                mysql5.6.14配置my.cnf多实例,mysql_install_db初始化不读取my.cnf配置文件
 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a differentsize 768 pages (rounded down to MB) than specified in the .cnf file: initial65536 pages, max 0 (relevant if non-zero) pages!
2014-0...
                            
                            
                                分类:
数据库   时间:
2014-05-14 14:20:48   
                                阅读次数:
412
                             
                         
                    
                        
                            
                            
                                android中,基本使用网络资源方式如下(同步) try { URL url = new 
URL(myFeed); // Create a new HTTP URL connection URLConnection connection = 
url.openConnection(); HttpUR...
                            
                            
                                分类:
移动开发   时间:
2014-05-14 13:51:01   
                                阅读次数:
393
                             
                         
                    
                        
                            
                            
                                mysql_connect(): Connection using old (pre-4.1.1) 
authentication protocol 
refused解决方法有如下三种:1、服务器端升级启用secure_auth选项;2、客户端连接时off掉secure_auth,即连接时加上--sec...
                            
                            
                                分类:
数据库   时间:
2014-05-14 12:42:12   
                                阅读次数:
528
                             
                         
                    
                        
                            
                            
                                .left .left_down 
li.a.left-down-pic{display:block;width:50px;height:50px;background:url(images/app_icons_50_6.jpg) 
-400px 0px no-repeat;//关键是这句话}
                            
                            
                                分类:
Web程序   时间:
2014-05-14 11:36:25   
                                阅读次数:
419