情牵・仙剑

繁星点点,跨越银河能否与你相见?
不怕遥远,只盼此刻飞奔到你身边。
往事如烟,魂萦梦牵,增添我心中思念;
纵然追寻万年,今生的情缘不变!

 

暮然回首,仙剑已经伴随我走过了9年时光。一开始还是误打误撞才玩到仙剑奇侠传三,但是到后来「仙剑奇侠传三」和仙剑奇侠传三外传・问情篇已经成为了我心中的神作。

继续阅读情牵・仙剑

情牵・仙剑

繁星点点,跨越银河能否与你相见?
不怕遥远,只盼此刻飞奔到你身边。
往事如烟,魂萦梦牵,增添我心中思念;
纵然追寻万年,今生的情缘不变!

 

暮然回首,仙剑已经伴随我走过了9年时光。一开始还是误打误撞才玩到仙剑奇侠传三,但是到后来「仙剑奇侠传三」和仙剑奇侠传三外传・问情篇已经成为了我心中的神作。

继续阅读情牵・仙剑

iOS上基于中文分词和训练的垃圾短信判断

最近被垃圾短息骚扰了,在群里看了下,似乎也有不少人被垃圾短信骚扰过。大名狗剩的SMSNinja是根据发送方来判断是不是垃圾消息,也就是根据发件人号码是否带@来判断,这样可以做到阻止大部分通过iMessage服务来发送的垃圾短信。但是缺点是需要把朋友们加到SMSNinja的白名单。而且这种方法虽然简单,但是也太粗暴了一点。

我们需要一个基于统计学的过滤器。
继续阅读iOS上基于中文分词和训练的垃圾短信判断

MIT Algorithms (3)


Sorting
    -How fast can we sort
    -It depends on model:)
    
    the model is of what you can do with the elements
    
    e.g
        Quicksort       θ(nlgn)  
        Heapsort        θ(nlgn)
        merge sort      θ(nlgn)
        insertion sort  θ(n2)
        
    so, can we do better than θ(nlgn)?
继续阅读MIT Algorithms (3)

Swift and Objective-C tweak supporting

With increment of swift, it's not ridiculous that using swift when you do some jailbreak development. If the tweak can get a better UI and I can code easier, there is no reason to refuse swift.

But one thing we should care about is that, Xcode 6 (and later) will link swift's dylib something like @rpath/libswiftDarwin.dylib.

That means if you didn't put those dylib files into a directory named `Frameworks` which right under your executable file's directory, it will just crash when you try to launch them. 继续阅读Swift and Objective-C tweak supporting

磁盘权限错误导致launchd高CPU占用

本来想安静地在某弹幕网站上看看「入門⭐︎道場ルノ」,结果风扇一直以最高速转,一看活动监视器才发现launched的CPU占用达到了80%以上,还有几个进程的CPU使用也在30%到40%之间。

按直觉先kill掉几个进程试试,先拿opendirectoryd开刀。kill之后果然CPU使用率立刻降下来了。可是过了一会儿之后opendirectoryd又出现了,launchd的CPU占用又飙到80%以上。

继续阅读磁盘权限错误导致launchd高CPU占用

Here's to the crazy ones

Here's to the crazy ones: the misfits, the rebels, the troublemakers, the round pegs in the square holes, the ones who see things differently. 

They are not fond of rules. They have no respect of status quo. You can quote them, disagree with them, glorify or vilify them. About the only thing you can't do, is ignore them, because they change things. They push human race forward.

Some may see them as the crazy ones. We see genius,because the people who are crazy enough to think they can change the world ... are the ones who do.

自己实现的dd工具

闲来无聊,想仿照一下dd这个ctl,结果还遇到了malloc的一些问题。

malloc: *** error for object 0x100105438: incorrect checksum for freed object - object was probably modified after being freed.*** set a breakpoint in malloc_error_break to debug

打印出0x100105438的内容,一看,原来是ofdev所在的地址,但是我并没有free掉ofdev啊,而且为什么会checksum错误呢?非常奇怪的现象。

现在的处理办法是 : 在用过ifdev和ofdev之后,把这两个字符串清空,就可以一切正常。

继续阅读自己实现的dd工具