Given a string S, find the longest palindromic
substring in S. You may assume that the maximum length of S is 1000, and there
exists one unique longes...
分类:
其他好文 时间:
2014-05-24 04:45:39
阅读次数:
245
in_array(value,array,type)该函数的作用是在数组array中搜索指定的value值,type是可选参数,如果设置该参数为
true ,则检查搜索的数据与数组的值的类型是否相同,即恒等于。array_key_exists(key,array)该函数是判断某个数组array中是否...
分类:
Web程序 时间:
2014-05-24 00:25:11
阅读次数:
284
string $sel[]=`ls -sl`;float $T[]=`xform -q -ws -t
$sel[0]`;float $R[]=`xform -q -ws -ro $sel[0]`;if (`exists ($sel[0]+"_Con")`==0)
{delete ($sel[0]+"...
分类:
其他好文 时间:
2014-05-23 23:23:38
阅读次数:
318
以前有大学有学过,但是没学好,现在准备完全自己动手做一个网站,学习一下ASP.NET做一个登录页面,首先要有创建一个新的网站,添加Login.aspx,然后做出自己想要的DIV和CSS布局,之后创建自己的数据库,代码如下:USE
[master] GOIF EXISTS(SELECT * FROM ...
分类:
Web程序 时间:
2014-05-23 12:41:44
阅读次数:
491
环境:win 2003 + oracle 10g
win 2003服务器物理内存4G
oracle10g SGA 1504M
事故背景:
调整SGA大小,因为OS的内存只有4G,建议SGA的大小不要超过60%,我调整为2G
SQL> alter systemset sga_max_size=2000m ...
分类:
其他好文 时间:
2014-05-22 23:46:00
阅读次数:
430
mysql 自定义存储过程和触发器
--存储过程示范
DROP PROCEDURE IF EXISTS PRO_TEST;
CREATE PROCEDURE PRO_TEST(IN NUM_IN INT,OUT NUM_OUT INT,INOUT NUM_INOUT)
BEGIN
//DO ANYTHING YOU WANT
END;
参数解释:
in : 就是输入参数,输...
分类:
数据库 时间:
2014-05-22 06:42:40
阅读次数:
345
Description
A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z = is a subsequence of X if there exists a ...
分类:
其他好文 时间:
2014-05-21 10:58:39
阅读次数:
237
FreeMarker的插值有如下两种类型:1,通用插值${expr};2,数字格式化插值:#{expr}或#{expr;format}${book.name?if_exists
} //用于判断如果存在,就输出这个值${book.name?default(‘xxx’)}//默认值xxx${book....
分类:
其他好文 时间:
2014-05-19 11:48:14
阅读次数:
346
if
(System.IO.Directory.Exists(System.IO.Path.GetDirectoryName(this.Asset.LocalPath))
&& System.IO.Directory.GetFiles(System.IO.Path.GetDirectoryName(...
分类:
其他好文 时间:
2014-05-19 11:04:02
阅读次数:
217
Given a stringS, find the longest palindromic
substring inS. You may assume that the maximum length ofSis 1000, and there
exists one unique longest pa...
分类:
其他好文 时间:
2014-05-18 19:39:55
阅读次数:
355