Blogs

Blocks中有界面删除操作的时候

在blocks里面做了一个删除的动作,结果内存coredump了.
http://stackoverflow.com/questions/7838442/using-block-callbacks-to-the-...

解决办法就是用一个弱引用,而不是retain self.
__weak id weakSelf = self;

[operation setCompletionBlockWithSuccess:^(KxSMBOperation *operation) {
//[self performSelectorOnMainThread: @selector(finishTask) withObject: nil waitUntilDone: NO];
if (weakSelf)
[weakSelf finishTask];
} failure:^(KxSMBOperation *operation, NSError *error) {
if (!operation.isCancelled)
{
if (weakSelf)

configure generates .infig.status: error: cannot find input file:

http://joe-turner.net/2010/05/11/configure-generates-infig-status-error-...
Linux上换行符号跟Windows不一样会导致很多类似的问题.

Samba的Java协议

Delphi Mobile中使用SQLite的例子

http://docwiki.embarcadero.com/RADStudio/XE5/en/Mobile_Tutorial:_Using_SQLite_(iOS_and_Android)

莫名其妙的磁盘空间消失

Ubuntu上突然硬盘空间少了20G,用disk usage analyzer 看不到是什么文件占用了空间.

sudo rm ~/.xsession-errors.old

Syndicate content