2014年1月11日

android 在windows下编译 报参数太长错误解决办法

摘要: ndk文档下android-mk.html中LOCAL_SHORT_COMMANDS参数设置 阅读全文

posted @ 2014-01-11 16:23 Moon Bear 阅读(284) 评论(0) 推荐(0)

2013年12月25日

protobuf-gen-lua 编译dll文件

摘要: vs 创建dll空项目引入protobuf-gen-lua工程里的pb.c文件修改原程序1 #ifndef _WIN322 #include 3 #endif1 static int struct_unpack(lua_State *L)2 {3 uint8_t format = luaL_checkinteger(L, 1);4 size_t len;5 const uint8_t* buffer = (uint8_t*)luaL_checklstring(L, 2, &len);6 size_t pos = luaL_checkinteger(L, 3);7... 阅读全文

posted @ 2013-12-25 01:00 Moon Bear 阅读(799) 评论(0) 推荐(0)

2013年11月1日

git 子模块和分支

摘要: git submodule add xx.git xx 添加子模块git submodule init 初始化子模块git submodule update 更新子模块git branch xx 创建本地分支git push origin xx 创建远程分支git push origin --delete xx 删除远程分支git merge xx 合并分支 阅读全文

posted @ 2013-11-01 19:29 Moon Bear 阅读(2237) 评论(0) 推荐(0)

2013年10月19日

git 版本回滚

摘要: git reset --hard commit-idgit push -f 阅读全文

posted @ 2013-10-19 11:39 Moon Bear 阅读(235) 评论(0) 推荐(0)

2013年9月25日

windows 安装gitolite

摘要: 运行git bashgit config --global user.name "yourname"git config --global user.email "yourname@email.address"ssh-keygen.exe -C "yourname@email.address" -t rsa putty生成的pub文件格式不正确,需求转换ssh-keygen-i-fyour_name_o.pub>your_name.pub 阅读全文

posted @ 2013-09-25 12:21 Moon Bear 阅读(275) 评论(0) 推荐(0)

2013年9月23日

Android 联网设置

摘要: 网络判断ConnectivityManager connectivityManager = (ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE); NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); if(networkInfo == null || !networkInfo.isAvailable()) { //当前有可用网络 } ... 阅读全文

posted @ 2013-09-23 16:12 Moon Bear 阅读(319) 评论(0) 推荐(1)

2013年9月1日

C++ 宏中"#"和"##"的用法

摘要: 用#把宏参数变为一个字符串用##把两个宏参数贴合在一起 阅读全文

posted @ 2013-09-01 18:36 Moon Bear 阅读(167) 评论(0) 推荐(0)

2013年8月2日

mac下配置服务自动启动

摘要: launchctl load plist 启动launchctl unload plist 停止报错信息:Dubious ownership on file (skipping)原因:文件拥有者与执行者不相同 阅读全文

posted @ 2013-08-02 15:30 Moon Bear 阅读(205) 评论(0) 推荐(0)

2013年7月6日

应用MAC地址替代UDID

摘要: 参见:https://github.com/gekitz/UIDevice-with-UniqueIdentifier-for-iOS-5 阅读全文

posted @ 2013-07-06 14:26 Moon Bear 阅读(200) 评论(0) 推荐(0)

IOS应用名本地化

摘要: 首先新建Strings File,名称自定。然后在工程的Info标签下找到Localizations项,添加语言,并勾选上一步新建的本地化文件。接着按照马上着手开发 iOS 应用程序将CFBundleDisplayName = ""; 添加到本地化文件中,后面要加;不然会报“Old-style plist parser: missing semicolon in dictionary.”错误。备注:不要对Info.plist文件执行Localize 操作,这个操作会把Info.plist文件移到多语言包中,使工程找不到这个文件。 阅读全文

posted @ 2013-07-06 14:15 Moon Bear 阅读(257) 评论(0) 推荐(0)

导航