老顽童

#

[置顶] 百度空间(hi.baidu.com/cr0_3)

摘要: 老空间,百度空间(http://hi.baidu.com/cr0_3) 阅读全文

posted @ 2011-10-21 15:30 老顽童 阅读(188) 评论(0) 推荐(0) 编辑

2012年8月4日 #

java 正确的MD5字符串处理

摘要: 1 import java.security.MessageDigest; 2 public static String MD5(byte[] btInput) 3 { 4 char hexDigits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 5 'A', 'B', 'C', 'D', 'E&# 阅读全文

posted @ 2012-08-04 15:32 老顽童 阅读(826) 评论(0) 推荐(0) 编辑

2012年5月24日 #

Mac OS X Lion 配置 PHP-Xdebug 调试

摘要: Lion 自带了 Apache + PHP 5.3.6, 甚至自带了 Xdebug 模块。只是 Xdebug 模块没有编译进 PHP 内核,需要以 Zend 扩展的方式启用。配置方法:1. 启用 Apache 的 PHP 支持:– /etc/apache2/httpd.conf 中,取消 libphp5.so 这行的注释即可;2. 启用 PHP 的 Xdebug 支持:– 复制 /etc/php.ini.default 为 /etc/php.ini– 设置 date.timezone = Asia/Shanghai– 将 xdebug.so 这行的注释取消– 在尾部 [Xdebug] 节添加: 阅读全文

posted @ 2012-05-24 16:51 老顽童 阅读(1768) 评论(0) 推荐(0) 编辑

2012年4月18日 #

UITableView滑动删除

摘要: - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{ NSLog(@"点击了删除"); if (editingStyle == UITableViewCellEditingStyleDelete) { [self.infoItems removeObjectAtIndex:(indexPath.row*2)]; [s... 阅读全文

posted @ 2012-04-18 10:23 老顽童 阅读(1622) 评论(0) 推荐(0) 编辑

2012年2月9日 #

backtrack arm启动脚本解析

摘要: 启动脚本http://forum.xda-developers.com/showthread.php?t=1094237perm=$(id|cut -b 5)if [ "$perm" != "0" ];then echo "This Script Needs Root! Type : su";exit;fimount -o remount,rw /dev/block/mmcblk0p5 /systemexport kit=/sdcard/BT5export bin=/system/binexport mnt=/data/local/m 阅读全文

posted @ 2012-02-09 15:56 老顽童 阅读(644) 评论(0) 推荐(0) 编辑

2011年12月31日 #

EventModify

摘要: windows mobile 系统coredll.dll并没有真正暴露SetEvent等函数,而是以EventModify替代了三个API。其原型应该是EventModify(HANDLE ,DWROD)第二个参数的定义如下:#define EVENT_PULSE 1#define EVENT_RESET 2#define EVENT_SET 3知道这个有助于分析windows mobile系统的汇编程序;写代码的时候完全可以按照win32的语法来写SetEvent等,但编译后就变成了EventModify,应该是编译过程中宏替换掉了。 阅读全文

posted @ 2011-12-31 12:48 老顽童 阅读(443) 评论(0) 推荐(0) 编辑

2011年12月18日 #

windows mac数据类型区别

摘要: windows:sizeof(char) 1 unsigned int sizeof(char*) 4 unsigned int sizeof(int) 4 unsigned int sizeof(short) 2 unsigned int sizeof(long) 4 unsigned int sizeof(float) 4 unsigned int sizeof(long long) 4 unsigned int sizeof(long double) 8 unsigned int sizeof(double) 8 unsigned int sizeof(double long) CXX0 阅读全文

posted @ 2011-12-18 18:58 老顽童 阅读(222) 评论(0) 推荐(0) 编辑

2011年12月7日 #

wxBitmapButton加载png时候去掉系统风格的背景

摘要: e:\wxWidgets-2.8.12\src\msw\bmpbuttn.cppbool wxBitmapButton::MSWOnDraw(WXDRAWITEMSTRUCT *item){#ifndef __WXWINCE__ long style = GetWindowLong((HWND) GetHWND(), GWL_STYLE); if (style & BS_BITMAP) { // Let default procedure draw the bitmap, which is defined // in the Windows res... 阅读全文

posted @ 2011-12-07 17:05 老顽童 阅读(2852) 评论(0) 推荐(0) 编辑

2011年11月8日 #

wprintf 中文

摘要: #include <locale.h>void main(){ wchar_t ttttt[] = {L"冰河时代"}; setlocale(LC_ALL, "chs"); wprintf(L"title:%s\r\n",ttttt);} 阅读全文

posted @ 2011-11-08 14:00 老顽童 阅读(222) 评论(0) 推荐(0) 编辑

2011年10月30日 #

c++ python wince

摘要: 参考:1.http://www.vckbase.com/document/viewdoc/?id=1540 2.http://gordenfl.blog.163.com/blog/static/136330620061241206963/?hasChannelAdminPriv=true下载:1.Python-2.5-20071004-dev2.zip http://sourceforge.net/projects/pythonce/ 2.PythonCE.WM.CAB http://sourceforge.net/projects/pythonce/files/pythonce-smartp 阅读全文

posted @ 2011-10-30 10:58 老顽童 阅读(644) 评论(0) 推荐(0) 编辑

导航