步骤1:通过MyEclipse中的window-》show View-》other 调出。DB浏览器,和 SQL Results步骤2. 可以右键单击空白处,选择new,创建一个新的DB connection, 或者edit已经存在的DB connection步骤3:数据库信息填写选择相应的数据库类...
分类:
数据库 时间:
2015-03-20 12:50:24
阅读次数:
235
一 LogCat是什么:
这是在安卓开发中用来显示打印日志用的工具,类似在java中用system.out输出,但是在安卓开发要求尽量使用logCat这样不仅专业,而且方便,更重要的是这个工具能代来好多好处和方便,那么接下来就看看 如何方便。
二 添加LogCat到你的Eclipse中
点击Eclipse导航栏中的Window→Show View→Other,会弹出一个Sh...
分类:
移动开发 时间:
2015-03-20 09:23:19
阅读次数:
150
Input
The input consists of a single line, which contains a string of Latin alphabet letters (no other characters will appear in the string). String length will not exceed 1000 characters.
Outpu...
分类:
编程语言 时间:
2015-03-19 22:09:51
阅读次数:
176
1. 初始化的时候不加载数据设置datatype: 'local' 1 $("#grid").jqGrid({ 2 url:"http://www.8qiu.cn", 3 datatype:"local", 4 //other options 5 }); 2. 当要加载数据的时...
分类:
其他好文 时间:
2015-03-19 18:07:08
阅读次数:
276
题目链接:点击打开链接
题意:
给定数轴上的n个点。
下面n行每行两个数 xi, wi 表示点和点权。
对于任意两个点u, v
若dis(u,v) >= u_w+v_w 则这两个点间可以建一条边。(in other words 若两点间距离大于两点的权值和则可以建边)
找一个最大团,输出这个最大团的点数。
其实对于一个权值点我们可以认为是一个区间
如: 4 5 ,可以认为是区间[-...
分类:
编程语言 时间:
2015-03-18 18:09:40
阅读次数:
158
最近在使用yum方式安装perl-DBD-MySQL时碰到了Temporary failure in name resolution,Trying other mirror。即命名解析失败,尝试使用其它镜像。由于本机为最近安装的新服务器,下面是这个问题的现象描述及处理过程。1、故障现象###当前环境[root@GZDB ~]# cat /etc/issueCentOS release 5.11...
分类:
其他好文 时间:
2015-03-18 09:01:35
阅读次数:
282
"How many inverted pairs" - that usually ends up with MergeSort solution (of course there are other solutions out there)def mergeSort(arr): if len(...
分类:
其他好文 时间:
2015-03-18 06:27:46
阅读次数:
94
Linux系统维护过程中,常通过自动脚本来处理运维方面的工作,而作为运维最常用语言即SHELL来完成脚本。而涉及到替换时我们常使用SED来完成替换工作。这里简单归纳一下SED的功能,以方便后续脚本中的应用SED最基本的格式遵循以下形式:sed[OPTION]...{script-only-if-no-other-s..
分类:
系统相关 时间:
2015-03-16 19:41:36
阅读次数:
213
Problem StatementYou are given a matrix with m rows and n columns of cells, each of which contains either 1or 0. Two cells are said to be connected if they are adjacent to each other horizontally, ver...
分类:
其他好文 时间:
2015-03-16 06:19:29
阅读次数:
136
Xcode6添加pch文件一直在用xcode6开发,但项目都是在xcode5上创建的,所以一直没注意到,xcode6竟然干掉pch文件了。如何在Xcode6中添加pch(Precompile Prefix Header)?1,Command+N,打开新建文件窗口:ios->other->PCH fi...
分类:
其他好文 时间:
2015-03-15 18:18:30
阅读次数:
260