上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 目标 重写设置 说明 规范化URL RewriteRule ^/~([^/]+)/?(.*) /u/$1/$2 [R] 将/~user重写为/u/user的形式 ... 阅读全文
posted @ 2009-01-03 23:00 alex hu 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 就用数据数据库表地址数据(中国地区) 来说吧(用Windows 请使用 gbk !!) 可直接运行(去除注解) 存储过程: DELIMITER // drop procedure if exists findLChild// /* iid 递归父节点 , layer 允许递归深度 */ CREATE PROCEDURE findLChild(iid bigint(20),layer bigi... 阅读全文
posted @ 2008-12-31 12:14 alex hu 阅读(2038) 评论(0) 推荐(0) 编辑
摘要: AsyncCallback 异步 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Net; using System.Net.Sockets; using System.Threadi... 阅读全文
posted @ 2008-12-25 13:57 alex hu 阅读(3261) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//=========================================================== // C# 实现端口扫描 //==================... 阅读全文
posted @ 2008-12-24 23:51 alex hu 阅读(546) 评论(0) 推荐(0) 编辑
摘要: 原 private void WriteLabel(string s) { if (label1.InvokeRequired) { WriteLabelDeletegate d = new WriteLabelDeletegate(WriteLabel); label1... 阅读全文
posted @ 2008-12-24 23:41 alex hu 阅读(5175) 评论(1) 推荐(0) 编辑
摘要: 在C# 中,既可以通过值也可以通过引用传递参数。通过引用传递参数允许函数成员更改参数的值,并保持该更改。若要通过引用传递参数, 可使用ref或out关键字。ref和out这两个关键字都能够提供相似的功效,其作用也很像C中的指针变量。它们的区别是: 1、使用ref型参数时,传入的参数必须先被初始化。对out而言,必须在方法中对其完成初始化。 2、使用ref和out时,在方法的参数和执行方法时,都要... 阅读全文
posted @ 2008-12-24 20:34 alex hu 阅读(3411) 评论(0) 推荐(1) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->[DllImport("user32.dll", EntryPoint = "mouse_event")] public static extern void mouse_eve... 阅读全文
posted @ 2008-12-23 16:28 alex hu 阅读(2578) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->[DllImport("kernel32.dll", EntryPoint = "GetComputerName", ExactSpelling = false, SetLastError ... 阅读全文
posted @ 2008-12-23 15:52 alex hu 阅读(467) 评论(1) 推荐(0) 编辑
摘要: 1. API之网络函数 WNetAddConnection 创建同一个网络资源的永久性连接 WNetAddConnection2 创建同一个网络资源的连接 WNetAddConnection3 创建同一个网络资源的连接 WNetCancelConnection 结束一个网络连接 WNetCancelConnection2 结束一个网络连接 WNetCloseEnum 结束一次枚举操作 ... 阅读全文
posted @ 2008-12-23 15:11 alex hu 阅读(270) 评论(0) 推荐(0) 编辑
摘要: [DllImport("动态库名")] public static extern 返回值类型 函数名称 (参数); 这样就可以调用了 所有的API都在下面3个DLL中实现的。 Kernel User GDI 1. KERNEL 它的库名是:KERNEL32.DLL,它是操作系统管理的API集 Process loading. 加载进程 Context switching. Fi... 阅读全文
posted @ 2008-12-23 13:01 alex hu 阅读(444) 评论(0) 推荐(0) 编辑
摘要: •长度可变数组对象 –0-based –最大长度2^32−1 = 4294967295 •构造Array对象 –new Array():空数组 –new Array(3):长度为3的数组 –new Array(1, "Hello"):构造有两个元素的数组 Array.prototype. … •length属性:数组长度,可读写 •toString()/toLocaleString()方法: –... 阅读全文
posted @ 2008-12-13 15:12 alex hu 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1debug = FALSE; 20$this->smtp_port = $smtp_port; 21$this->relay_host = $relay_host; 22$th... 阅读全文
posted @ 2008-12-10 15:36 alex hu 阅读(409) 评论(0) 推荐(0) 编辑
摘要: PDO是一个“数据库访问抽象层”,作用是统一各种数据库的访问接口,与mysql和mysqli的函数库相比,PDO让跨数据库的使用更具有亲和力;与 ADODB和MDB2相比,PDO更高效。目前而言,实现“数据库抽象层”任重而道远,使用PDO这样的“数据库访问抽象层”是一个不错的选择。 PDO->beginTransaction() — 标明回滚起始点 PDO->commit() — 标明回滚结束点... 阅读全文
posted @ 2008-12-06 16:33 alex hu 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 连接 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> $dsn = 'sqlite:tools.db'; try { $dbh = new PDO($dsn); ... 阅读全文
posted @ 2008-12-06 14:55 alex hu 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 最近开始关注sqlite,发现这东西做嵌入式开发非常的好,体积小效率还不错,才几百K的大小, Sqlite Developer http://www.sharpplus.com/downloads/SqliteDev295.zip 今天用php5访问sqlite3的时候出现提示 file is encrypted or is not a database ... 阅读全文
posted @ 2008-12-04 16:41 alex hu 阅读(548) 评论(2) 推荐(0) 编辑
摘要: 序列化:将对象转为byte[]然后转为String。可以将对象转化为可以转输的格式。 public byte[] Serializable_Data(Object obj) { IFormatter formatter = new BinaryFormatter(); MemoryStream ms = new MemoryStream(); ... 阅读全文
posted @ 2008-11-23 17:59 alex hu 阅读(1469) 评论(0) 推荐(0) 编辑
摘要: 昨天看了一天as 3的语法,今天开始尝试做一下射击游戏。 主要用到了 addEventListener(); addChild(); removeEventListener(); removeChild(); Math.floor(); Math.random(); hitTestObject(); Object(); Sound(); 先把今天晚上的做的东西展出来,大家看一下,需要有需要... 阅读全文
posted @ 2008-11-14 22:55 alex hu 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 很多年前就接触过了flash,一直总觉得做flash太烦锁,特别是做一些稍微复杂的动画,把as写到很多特别的地方,修改同事做的东西,看来看去眼都花了。 玩过一些flash游戏,没看as3之前,觉得像射击类的游戏,碰撞之类的判断可能写了很多的代码,刚看了一会as3,原来里面有一些自带的方法。 hitTestPoint,hitTestObject hitTestPoint () 方法 publi... 阅读全文
posted @ 2008-11-13 12:24 alex hu 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 个人资料 name 姓名 alias 别名 pen name 笔名 date of birth 出生日期 birth date 出生日期 born 出生于 birth place 出生地点 age 年龄 native place 籍贯 province 省 city 市 autonomous region 自治区 prefecture 专区 county 县 nati... 阅读全文
posted @ 2008-11-10 16:21 alex hu 阅读(449) 评论(0) 推荐(0) 编辑
摘要: window.setTimeout(function(){functioname(obj)}, 100); 阅读全文
posted @ 2008-10-30 15:57 alex hu 阅读(452) 评论(1) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页