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-06-28 23:59:00
阅读次数:
383
本文打算将蓝牙适配器和手机蓝牙进行配对。买了个支持蓝牙4.0协议的蓝牙适配器,将其插入到pc(debian 7.4)的usb口。查看手机蓝牙信息:选择手机中"设置"->"关于手机"->"状态信息"可以看到蓝牙地址是18:DC:56:D2:1C:1Apc上安装蓝牙工具:sudo apt-get ins...
分类:
其他好文 时间:
2014-06-28 20:00:09
阅读次数:
7787
单例设计模式:public class Singliton { //no new private Singliton (){ } static Singliton ins = null; public static Singliton get(){ if(ins == null){ ...
分类:
编程语言 时间:
2014-06-18 22:52:01
阅读次数:
238
http://vishaljoshi.blogspot.com.tr/2009/02/web-deployment-with-vs-2010-and-iis.htmlhttp://blogs.msdn.com/b/webdev/archive/2009/03/16/web-packaging-ins...
分类:
Web程序 时间:
2014-06-18 19:53:46
阅读次数:
184
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-06-17 14:35:50
阅读次数:
297
出现这种错误是因为主机名和/etc/hosts 文件不一致,只需要把主机名和其IP 写入/etc/hosts 文件,就ok了。注意名字不能有下划线修改network 文件之外,再使用hostname 命令指定一下主机名,就不用重启OS了。 1. 修改/etc/sysconfig/network 文件[root@localhost~]# cat /etc/sysconfig/networkN...
分类:
数据库 时间:
2014-06-14 17:29:44
阅读次数:
418
1、下载安装包: wget
http://redis.googlecode.com/files/redis-2.6.13.tar.gz2、解压: tar axvf
redis-2.6.13.tar.gz3、进入文件夹:cd redis-2.6.13/4、编译:make5、编译安装: make ins...
分类:
编程语言 时间:
2014-06-06 20:15:44
阅读次数:
455
文章内容继续上一章节的内容,通过HttpApplicationFactory的GetApplicationInstance静态方法获取实例,然后执行该实例的BeginProcessRequest方法进行执行余下的Http
Pipeline 操作,代码如下:// Get application ins...
分类:
Web程序 时间:
2014-06-03 16:59:00
阅读次数:
264
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-06-02 09:22:03
阅读次数:
328
ExpandEnvironmentStrings
风险:
进程会继承其父进程的环境变量,在展开如%APPDATA%等目录时,有可能父进程对此环境变量进行过修改,那么可能你获取的就不是你想要的当前SESSION的%APPDATA%了。
建议:
使用SHGetFolderPath系列函数来做这件事。
GetModuleFileName
风险:
在DLL中调用时,若传入的ins...