今天,数据库的操作越来越成为整个应用的性能瓶颈了,这点对于Web应用尤其明显。关于数据库的性能,这并不只是DBA才需要担心的事,而这更是我们程序员需要去关注的事情。当我们去设计数据库表结构,对操作数据库时(尤其是查表时的SQL语句),我们都需要注意数据操作的性能。这里,我们不会讲过多的SQL语句的优...
                            
                            
                                分类:
数据库   时间:
2015-06-01 16:15:48   
                                阅读次数:
165
                             
                    
                        
                            
                            
                                1、请运行下面code,指出其功能;(需附运行结果截图,并用简短文字描述其功能)说明:给出姓名,年龄,然后随机配对结合生成新的的姓名,和年龄,最后输出3个新产生的姓名,年龄。2、请将该code进行代码重构,使之模块化,并易于阅读和维护; 1 import java.util.ArrayList; ....
                            
                            
                                分类:
其他好文   时间:
2015-06-01 16:14:59   
                                阅读次数:
135
                             
                    
                        
                            
                            
                                算法代码如下,其中bd_encrypt将 GCJ-02 坐标转换成 BD-09 坐标,bd_decrypt反之。关于 GCJ-02 和 BD-09 ,请参考http://developer.baidu.com/map/question.htm#qa0043。#includeconstdoublex_...
                            
                            
                                分类:
其他好文   时间:
2015-06-01 16:12:59   
                                阅读次数:
157
                             
                    
                        
                            
                            
                                错误提示:Resource handler for the 'web' protocol is not defined.解决方案:修改web.config如下: ...如果是IIS7+ Win Server 2008,还得修改如下...
                            
                            
                                分类:
编程语言   时间:
2015-06-01 16:14:45   
                                阅读次数:
136
                             
                    
                        
                            
                            
                                主类HTTPSendPHP.as 1 package 2 { 3 import com.JPEGEncoder.JPGEncoder; 4 import com.fylib.httpRequest.HttpRequestBuilder; 5 import com.fylib...
                            
                            
                                分类:
Web程序   时间:
2015-06-01 16:13:55   
                                阅读次数:
141
                             
                    
                        
                            
                            
                                如图所示,最简单的选项卡思路:选项卡就是点击按钮切换到相应内容,其实就是点击按钮把内容通过display(block none)来实现切换的。1、首先获取元素。2、for循环历遍按钮元素添加onclick 或者 onmousemove事件。3、因为点击当前按钮时会以高亮状态显示,所以要再通过for循...
                            
                            
                                分类:
Web程序   时间:
2015-06-01 16:14:45   
                                阅读次数:
284
                             
                    
                        
                            
                            
                                1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 int psum[256]; 9 std::mutex g_mtx; 10 int g_sum = 0; 11 12 v...
                            
                            
                                分类:
其他好文   时间:
2015-06-01 16:14:41   
                                阅读次数:
122
                             
                    
                        
                            
                            
                                一、 Git 常用命令速查git branch 查看本地所有分支git status 查看当前状态git commit 提交git branch -a 查看所有的分支git branch -r 查看远程所有分支git commit -am "init" 提交并且加注释git remote add o...
                            
                            
                                分类:
其他好文   时间:
2015-06-01 16:14:02   
                                阅读次数:
206
                             
                    
                        
                            
                            
                                1018. Binary Apple TreeTime limit: 1.0 secondMemory limit: 64 MBLet's imagine how apple tree looks in binary computer world. You're right, it looks ju...
                            
                            
                                分类:
移动开发   时间:
2015-06-01 16:13:30   
                                阅读次数:
133
                             
                    
                        
                            
                            
                                导入android项目时,报The method of type must override asuperclass method一堆错误,解决方法:将编译的jdk与使用的jdk版本一致即可。
                            
                            
                                分类:
其他好文   时间:
2015-06-01 16:13:20   
                                阅读次数:
118
                             
                    
                        
                            
                            
                                使用UiDevice获取设备信息:获取设备名称let name = UIDevice.currentDevice().name获取设备系统名称let systemName = UIDevice.currentDevice().systemName获取系统版本let systemVersion = U...
                            
                            
                                分类:
移动开发   时间:
2015-06-01 16:11:19   
                                阅读次数:
496
                             
                    
                        
                            
                            
                                原文地址:http://blog.sina.com.cn/s/blog_700a620c01010csr.html人的一生两个最大的财富是:你的才华和你的时间。才华越来越多,但是时间越来越少,我们的一生可以说是用时间来换取才华。如果一天天过去了,我们的时间少了,而才华没有增加,那就是虚度了时光。所以...
                            
                            
                                分类:
其他好文   时间:
2015-06-01 16:13:16   
                                阅读次数:
116
                             
                    
                        
                            
                            
                                自动调整scrollview的insets为0, 然后scrollview就不会向下偏移64pxself.automaticallyAdjustsScrollViewInsets = NO;导航栏透明: self.navigationController.navigationBar.alpha =....
                            
                            
                                分类:
移动开发   时间:
2015-06-01 16:11:37   
                                阅读次数:
128
                             
                    
                        
                            
                            
                                如何反编译pycuncompyle2 是一个可以将pyc文件转换为py源码的工具下载地址:https://github.com/wibiti/uncompyle2安装: setup.py install参数: Usage: uncompyle2 [OPTIONS]... [ FILE | DIR]....
                            
                            
                                分类:
编程语言   时间:
2015-06-01 16:10:15   
                                阅读次数:
695
                             
                    
                        
                            
                            
                                1. 系统最大打开文件描述符数:/proc/sys/fs/file-max a.查看 $ cat /proc/sys/fs/file-max 1864052. 设置 a. 临时性 $ echo 1000000 > /proc/sys/fs/file-max b.永久性:在/e...
                            
                            
                                分类:
系统相关   时间:
2015-06-01 16:11:55   
                                阅读次数:
232