代码改变世界

阅读排行榜

AS2.0的MD5加密函数

2012-12-08 23:13 by 游乐场123, 341 阅读, 收藏,
摘要: function md5(string) { var x = Array(); var k, AA, BB, CC, DD, a, b, c, d; var S11 = 7, S12 = 12, S13 = 17, S14 = 22; var S21 = 5, S22 = 9, S23 = 14, S24 = 20; var S31 = 4, S32 = 11, S33 = 16, S34 = 23; var S41 = 6, S42 = 10, S43 = 15, S44 = 21; string = Utf8Encode(string); x = ConvertToWord... 阅读全文

C#遍历DataSet

2012-02-27 03:53 by 游乐场123, 341 阅读, 收藏,
摘要: C#中的Dataset就像一个数据库,有多个表(Table),一般只有一个表,然后每个表中有行(DataRow)和列(DataColumn),DataRow[DataColumn]可以得到某行某列数据。foreach (DataTable dt in YourDataset.Tables){ foreach (DataRow dr in dt.Rows) foreach (DataColumn dc in dt.Columns) Console.WriteLine("{0}, {1}, {2} ", dt.TableName, dc.ColumnNam... 阅读全文

PHP读取文件的常见方法

2013-09-15 03:46 by 游乐场123, 339 阅读, 收藏,
摘要: 整理了一下PHP中读取文件的几个方法,方便以后查阅。1.fread string fread ( int $handle , int $length ) fread() 从 handle 指向的文件中读取最多 length 个字节。该函数在读取完最多 length 个字节数,或到达 EOF 的时候,或(对于网络流)当一个包可用时,或(在打开用户空间流之后)已读取了 8192 个字节时就会停止读取文件,视乎先碰到哪种情况。 fread() 返回所读取的字符串,如果出错返回 FALSE。 如果所要读取的文件不是本地普通文件,而是远程文件或者流文件,就不能用这种方法,因为,filesize不... 阅读全文

as3Crypto and php, what a fun ride!

2012-04-24 11:54 by 游乐场123, 338 阅读, 收藏,
摘要: Actually not so fun, but I did manage (I should say we because I wasn’t alone in this). Cryptography is not my thing, eh, not everything can be your thing so I accept it. There is just too much to learn: hash functions, public keys, symmetric ciphers, etc. Want we wanted to do was to encrypt data on 阅读全文

gearmand安装过程

2014-10-15 07:50 by 游乐场123, 337 阅读, 收藏,
摘要: 51 cd boost_1_53_0 52 tail -f build_log 53 dir 54 cd gearmand-1.1.8 55 ./configure 56 could not find gperf 57 could not find gperf ... 阅读全文
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 57 下一页