题目
Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
For example, given s = "a...
分类:
其他好文 时间:
2014-06-20 13:44:18
阅读次数:
234
在objective-c中,内存的引用计数一直是一个让人比较头疼的问题。尤其是当引用计数涉及到arc、blocks等等的时候。似乎ARC的出现只是让我们解放了双手,由于底层实现依然依赖引用计数,所以开启ARC后,只有对引用计数机制更加了解,才能避免Cycle Retain、Crash等问题的出现。
但是由于使用ARC可以显著提高编码效率,所以建议尽量启用arc,本文内容也将以arc为主,...
分类:
其他好文 时间:
2014-06-20 12:55:02
阅读次数:
259
Reserved space (invalid address) is protected against abnormal access. Reads from invalid address return garbage; writes to invalid address are blocked. Access to reserved space can generate exception...
分类:
其他好文 时间:
2014-06-20 11:58:31
阅读次数:
260
数据库修复工具 - 仅限 *.mdb 格式的Access 数据库
引言:
Access数据库操作有一严重Bug,当数据库文件内容增加时,其文件容量随之增加,但当删除数据库内容时,其数据库容量不会相应减少
e.g 当xfile文件中的某张表xxtable需要删除时,执行sql语句 delete * from xxtable
若 原文件容量为20M,但执行上条语句后文件大小还是20M,Access数据库文件大小并没有根据内容自动变小。shit!
该工具的出现用以解决该问题...
分类:
数据库 时间:
2014-06-20 10:35:30
阅读次数:
248
开发SharePoint,需要导入Excel表数据,结果问题来了:
未在本地计算机上注册"Microsoft.ACE.OLEDB.12.0"提供程序
解决方法一:下载64位的Microsoft Access 2010 数据库引擎。
http://www.microsoft.com/zh-cn/download/details.aspx?id=13255
...
分类:
数据库 时间:
2014-06-20 09:11:05
阅读次数:
472
1、将图片转换为块级对象
即,设置img为“display:block;”。在本例中添加一组CSS代码:“#sub img {display:block;}”。2、设置图片的垂直对齐方式
即设置图片的vertical-align属性为“top,text-top,bottom,text-botto.....
分类:
其他好文 时间:
2014-06-13 14:06:55
阅读次数:
276
"The password could not be validated" when
attempting to provision an AD RMS server. Symptoms When you attempt to provision
an Active Directory Rights...
分类:
其他好文 时间:
2014-06-13 13:37:09
阅读次数:
271
count(*)是否能用到索引,用索引是高效还是低效select count(*) from
aa ;首先看是否会走索引,经过试验发现,他没有走索引它的执行计划 select statement sort aggregate table access
full别说是否高效了,他连索引都没有走,索引不...
分类:
其他好文 时间:
2014-06-11 12:00:01
阅读次数:
282
首先看下面这段代码:
void (^myFirstBlock)(int theOne,int theTwo) = ^(int theOne,int theTwo){
NSLog(@"====%d",theOne+theTwo);
};
myFirstBlock(100,300);
void:指的时返回数据类型,myFirstBlock:指的是block的名称,后...
分类:
其他好文 时间:
2014-06-07 13:52:12
阅读次数:
255
atitit.404错误的排查流程总结
#----------jsp head errorPage=""
del zeu ok le.
#------resin 服务器配置问题。俩个应用配置到了同样的的文件夹..
paip.404err two app cfg one same dir
/ cant access
/app1 only can acces...
分类:
其他好文 时间:
2014-06-07 12:16:37
阅读次数:
267