Posts

Showing posts from November, 2013

cocos2d-x c++ implement auto object point release

1.why because some class liked "cs::CSJsonDictionary" is not derive from CCObject,so when i new it,need manual release it later. 2. todo implement one plan.that can auto release those class who are not derive from CCObject. 3. code Single ton and Memory pool class template< class _Ty> class pkSingleTon{ public : pkSingleTon(){} public : static _Ty* Instance(){ static _Ty s_val; return &s_val; } }; #include < string > #include <set> #include <map> #include <list> #include <vector> template< class _Ty> class pkObserver : public std::set<_Ty>{ }; template< class _Ty> class pkMemoryPool : private pkSingleTon<pkMemoryPool<_Ty> >{ private : typedef pkObserver<_Ty*> CON; CON mdatas; private : void _add(_Ty* v){ mdatas.insert(v); } void _remove(_Ty* v){ typename CON::iterator b = mdatas.find(v); if (b == mdatas.end()) ...

恭喜,您对软件"语音设置皇"的新

尊敬的用户连德亮,您好!     感谢您使用我们的网络服务,您在我们网站上的软件"语音设置皇"的新增描述审核操作已经被管理员通过。     具体详情请登录 http://www.appchina.com/market/dev/dev_app.action?applicationId=1022542 查看。      此邮箱无人职守,请勿回复此邮箱。                     AppChina 应用汇团队

恭喜,您对软件"pktts"的

尊敬的用户连德亮,您好!     感谢您使用我们的网络服务,您在我们网站上的软件"pktts"的更新包审核操作已经被管理员通过。     具体详情请登录 http://www.appchina.com/market/dev/dev_app.action?applicationId=1022543 查看。      此邮箱无人职守,请勿回复此邮箱。                     AppChina 应用汇团队

恭喜,您对软件"语音新闻王2"的

尊敬的用户连德亮,您好!     感谢您使用我们的网络服务,您在我们网站上的软件"语音新闻王2"的更新包审核操作已经被管理员通过。     具体详情请登录 http://www.appchina.com/market/dev/dev_app.action?applicationId=1022602 查看。      此邮箱无人职守,请勿回复此邮箱。                     AppChina 应用汇团队

恭喜,您对软件"语音新闻王2"的

尊敬的用户连德亮,您好!     感谢您使用我们的网络服务,您在我们网站上的软件"语音新闻王2"的更新描述审核操作已经被管理员通过。     具体详情请登录 http://www.appchina.com/market/dev/dev_app.action?applicationId=875710 查看。      此邮箱无人职守,请勿回复此邮箱。                     AppChina 应用汇团队

十字猫通知: lian456 您好, 请按

Content-Type: text/html; charset = "utf-8" Content-Transfer-Encoding: 8bit lian456,您好: 请点击这里修改您的密码,如果您点击上述链接无效, 请把下面的代码拷贝到浏览器的地址栏中:http://dev.crossmo.com?id=%2B%8CK%DBX%8A%1D%B7&code=%2F%2F%ED%01%94%EC%21%AF&r=provider/reset   感谢您对十字猫的支持,如果您在这个过程中遇到任何问题请随时和我们联系。   我们的联系方式是:   客服邮箱:help@crossmo.com   客服电话:(+86)4000552533   开发者论坛:http://bbs.crossmo.com/  北京欧乐吧技术有限公司 2013-11-22 20:37:24

android develop log – share by email sms and other

1.normal share private void sendShare(String subject, String body, String type) { final Intent shareIntent = new Intent(Intent.ACTION_SEND); try { if (type == null || type.length() == 0) { type = "text" ; } shareIntent.setType(type + "/*" ); if (subject != null && subject.length() > 0) { shareIntent.putExtra(Intent.EXTRA_SUBJECT, subject); } if (body != null && body.length() > 0) { shareIntent.putExtra(Intent.EXTRA_TEXT, body); } shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); } catch (Exception e) { } finally { PkrssActivity.s_pkrss.startActivity(Intent.createChooser(shareIntent, PkrssActivity.s_pkrss.getTitle())); } } 2.email share private void sendEmail(String address, String body, String subject, boolean isHTML, Strin...

android develop log–enum activity and start activity

1.check has installed app public static Boolean hasApp(String packageName, String className) { Boolean f = false ; try { if (( null != className) && (className.length() > 0)) { if ( null != PkrssActivity.s_pkrss.getPackageManager().getPackageInfo(packageName, 0)) f = true ; return f; } try { PackageInfo pi = PkrssActivity.s_pkrss.getPackageManager().getPackageInfo(packageName, 0); Intent resolveIntent = new Intent(Intent.ACTION_MAIN, null ); resolveIntent.addCategory(Intent.CATEGORY_LAUNCHER); resolveIntent.setPackage(pi.packageName); List<ResolveInfo> apps = PkrssActivity.s_pkrss.getPackageManager().queryIntentActivities(resolveIntent, 0); ResolveInfo ri = apps.iterator().next(); if (ri != null ) { if (ri.activityInfo.name ...

用于主题检测的临时日志(f18ccd1f-f4a3-4438-b2f2-3568de5022da - 3bfe001a-32de-4114-a6b4-4005b770f6d7)

这是一个未删除的临时日志。请手动删除它。(ae3b4256-dfea-4d7b-939a-3c5e6e3dc579 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)

add login for owncloud with your system - developer

1.why    our project need implement cloud store,then we found owncloud and found there are many same requirement with our needs.    but owncloud is one private cloud store program,there is not easy way to used in our project.our project have ourself user back-end. 2.Finding solutions    by search engine,there is only asked for how to used openid plugin in owncloud,no other people can answer it perfect. 3.draft solution 1 – openid plugin this set of solution is the subjective ideals,no confirm it can worked. 3.1 our project access the owncloud's open id url a,this url have username and password param,and it can register and verify login in background. 3.2 our log       login in owncloud with administrate account,and create one new user by manual,with browser trace,we found it access "owncloud/index.php/settings/ajax/createuser.php", look this source file,found "OC_User::createUser" keywords,the search "createUser" keyword in...

php openid test log

1.test examples/discover.php 1.1 error when i test http://localhost/t/php-openid/examples/discover.php and used bellow for "Enter an OpenID URL to begin discovery": http://localhost/t/php-openid/examples/server/server.php ,get this error: Got no response code when fetching https: //localhost:80/t/php-openid/examples/server/server.php/idpXrds CURL error (35): error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol fixed: then i changed above URL to: https://localhost/t/php-openid/examples/server/server.php 1.2 error then get bellow error message: Got no response code when fetching https: //localhost/t/php-openid/examples/server/server.php CURL error (60): SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed fixed: add one line in php-openid\Auth\Yadis\ParanoidHTTPFetcher.php line:130 curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false );

windows8 javascript metro application cannot debug (draft)

1.error 1>框架: Microsoft.WinJS.1.0/neutral,当前未安装应用程序包版本 1.0.9200.20789。 1>正在安装缺少的框架... 1>错误 : DEP0800 : 所需框架“C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.WinJS.1.0\1.0\Microsoft.WinJS.1.0.appx”安装失败。 1>错误 0xC0020017: 在安装 Microsoft.WinJS.1.0_1.0.9200.20789_neutral__8wekyb3d8bbwe 时,windows.licensing 无法启动 WSService。请重试,如果问题仍然存在,请联系程序包发布者。 1>将应用程序部署到目标设备失败。 ========== 部署: 成功 0 个,失败 1 个,跳过 0 个 ========== 2.fixed: no method now 3.other try method log 3.1 run wsreset.exe not fixed it. 3.2 clean up all files in C:\Windows\SoftwareDistribution\Download not fixed it 3.3 Run the Modern UI App troubleshooter and check if it helps. http://download.microsoft.com/download/F/2/4/F24D0C03-4181-4E5B-A23B-5C3A6B5974E3/apps.diagcab not fixed it 3.4 remove package by powershell For futur people that will have this issue I found a clean solution with no need to logout or to change the GUID: Run powershell as administrator : Get-AppxPackage and copy the package ...

2013年中国移动全球合作伙伴大会,诚邀您出席!

Content-Type: text/html; charset = "GB2312" Content-Transfer-Encoding: base64 PHRhYmxlIHN0eWxlPSJmb250LWZhbWlseTp2ZXJkYW5hLCBnZW5ldmEsIHNhbnMtc2VyaWY7IiBh bGlnbj0iY2VudGVyIiBiZ2NvbG9yPSIjZjZmNmY2IiBib3JkZXI9IjAiIGNlbGxwYWRkaW5nPSIw IiBjZWxsc3BhY2luZz0iMCIgd2lkdGg9IjcwMCI+DQo8dGJvZHk+DQo8dHI+DQo8dGQ+PGltZyBz cmM9Imh0dHA6Ly9kZXYuMTAwODYuY24vY21kbi9zdXBlc2l0ZS9hdHRhY2htZW50cy9sYXJnZWlu Zm9ybV9hdHRhY2htZW50cy8xMzEwMjkvMjAxMzEwMjlfNTM4ZTE4NDQwNmZhMzEyMmQwYjg2OTM5 ODRfMzc1NTM2Mi5qcGciIGhlaWdodD0iMjAwIiB3aWR0aD0iNzAwIiAvPg0KIDwvdGQ+PC90cj4N Cjx0cj4NCjx0ZD48aW1nIGFsdD0i0fvH67qvLUludml0YXRpb24iIHNyYz0iaHR0cDovL2Rldi4x MDA4Ni5jbi9kZXZfbXVsdV9zY195dW55aW5nL25ld3NsZXR0ZXIvMjAxMTExL2NnZGMvY2dkY3lx aF8wNi5wbmciIGhlaWdodD0iMTE2IiB3aWR0aD0iNzAwIiAvPg0KIDwvdGQ+PC90cj4NCjx0cj4N Cjx0ZD4NCjx0YWJsZSBhbGlnbj0iY2VudGVyIiBib3JkZXI9IjAiIGNlbGxwYWRkaW5nPSIxIiBj ZWxsc3BhY2luZz0iMSIgd2lkdGg9Ijk1JSI+DQo8dGJvZHk+DQo8dHI+DQo8dGQgc3R5bGU9ImZv bnQtZmFtaWx5OnZlcmRhbmEsIGdlbmV2YSwgc2Fucy1zZXJpZjtjb2xvcjojNjY2O...