最近被pomelo的一个bug搞的心力憔悴,之前本地开发和阿里云环境上都是好好的,但是在另一套环境下时不时就挂。为了这个问题加起来折腾了好几天,今天终于算处理掉了(虽然还没从根子上解决)。写篇文章记录一下思路和解决方案。

Read More →

Recently I need compile libcurl for different platforms, since cocos-2dx 3.0 ships with libcurl 7.26.0 and there are several fixes in newer versions according to changelog. There are several blogs describing how to build libcurl with android source, such as porting-of-libcurl-to-android-os-using, How_to_compile_libcurl and Android ndk下编译libcurl. However, they are all out dated, especially android source has changed a lot!

After struggling a whole weekend, I finally compiled libcurl 7.37.0 with android 4.4 source. The steps described in packages/Android/Android.mk skip many details. I’ll explain every steps and hope you can make it. If you use the similar version, you could just copy & paste mine.

Read More →

刚开学注册真是闲的蛋疼……好久没更新的blog可以水好几篇了~

最近升级了人人v7,发现人人网改造器挂了,想下个相册都没办法。后来找到一个专门下载人人相册的工具,试了下也不灵,应该是HTML结构变化所致,就稍微改了改代码,使得在新版人人上也能用了。

Read More →

为了编译libcurl,必须下载android系统源代码,结果发现被某墙弄的基本不能下。我手头只有一个性能很弱的vps,最后没办法走上了双重代理不归路~最后使用了ssh端口转发,然后socks5代理转http代理(其实也可以拿来干别的事情,如上上网什么的)

Read More →

This extension plugin is able to load images from system photo library. Native calls for Android, iOS(iPhone+iPad) & Win32. More details can be found here ImagePicker.

NOTE: please check the example files first before using! I’ve tested code with v3.5 and v3.10, and it should always work if the cocos2d::Texture2d related API doesn’t break…

ps. I made a Pull Request to cocos before and it seems they don’t need it. So I just put it here seperately.

Android iOS
Android iOS
Read More →

最近尝试了一下在Visual Studio 2012中编译Unreal 4,记录一下其中踩的坑~

ps: 其实这个纯粹是我蛋疼才这么干的,还是升级VS比较方便…

Read More →

I was blocked by word ladder II in last two days.

I solve this problem with BFS building search graph + DFS build paths. However I tried my best optimizing but got Time Limit Exceeded (I’ve tried three ways of building path”. After profiling, it seems in the building path part, copying ArrayList consumes too much time.

Read More →

I encountered a very strange problem these days: can’t link glew in C++ code. I’ve tried this code but failed, my post in SO:

Read More →

注:这其实是我大四时一门课配套大作业,当时配环境折腾很久~后来发人人网共享,结果昨天学长给我留言有人不带名字抄袭。虽然很冷这个都有人搞,但总归还不如给自己骗流量呢哈哈哈哈……

三篇大合集哦也!

Read More →

Wind.js是什么?

@老赵 写的一个js库 本质是用eval函数实现的~我们写看起来是同步的顺序流程代码,但是实质异步执行

Read More →