<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>YippeeSoft开心软件 &#187; code</title>
	<atom:link href="http://www.yippeesoft.com/blog/p/tag/code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.yippeesoft.com</link>
	<description></description>
	<lastBuildDate>Thu, 09 Sep 2010 02:54:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>20090413 svn non-lf code</title>
		<link>http://www.yippeesoft.com/blog/p/20090413wvnnon-lfcode.php</link>
		<comments>http://www.yippeesoft.com/blog/p/20090413wvnnon-lfcode.php#comments</comments>
		<pubDate>Tue, 18 Aug 2009 00:00:00 +0000</pubDate>
		<dc:creator>yippee</dc:creator>
				<category><![CDATA[RAN乱]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[non-lf]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=54</guid>
		<description><![CDATA[svn non-lf

有点怀疑是TSVN采取了BSTR提交，UNICODE/UTF-8，而SVN采取ANSI判断\\R\\N

因此导致这个问题。

<span class="readmore"><a href="http://www.yippeesoft.com/blog/p/20090413wvnnon-lfcode.php" title="20090413 svn non-lf code">阅读全文——共1999字</a></span>]]></description>
		<wfw:commentRss>http://www.yippeesoft.com/blog/p/20090413wvnnon-lfcode.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20080819 c# wpf code animate</title>
		<link>http://www.yippeesoft.com/blog/p/20080819cwpfcodeanimate.php</link>
		<comments>http://www.yippeesoft.com/blog/p/20080819cwpfcodeanimate.php#comments</comments>
		<pubDate>Wed, 15 Apr 2009 14:37:07 +0000</pubDate>
		<dc:creator>yippee</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[animate]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[wpf]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=278</guid>
		<description><![CDATA[20080819 c# wpf code animate

http://www.yippeesoft.com



<span class="readmore"><a href="http://www.yippeesoft.com/blog/p/20080819cwpfcodeanimate.php" title="20080819 c# wpf code animate">阅读全文——共4177字</a></span>]]></description>
		<wfw:commentRss>http://www.yippeesoft.com/blog/p/20080819cwpfcodeanimate.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20080326 gzip ICSharpCode 日历控件</title>
		<link>http://www.yippeesoft.com/blog/p/20080326gzipICSharpCodejs.php</link>
		<comments>http://www.yippeesoft.com/blog/p/20080326gzipICSharpCodejs.php#comments</comments>
		<pubDate>Sun, 21 Dec 2008 15:34:43 +0000</pubDate>
		<dc:creator>yippee</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[arp]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[icsharpcode]]></category>
		<category><![CDATA[rpc]]></category>
		<category><![CDATA[zip]]></category>
		<category><![CDATA[控件]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=392</guid>
		<description><![CDATA[20080326 gzip ICSharpCode 日历控件http://www.yippeesoft.com

GZip         加入ICSharpCode.SharpZipLib.dll的引用，在#Develop的安装目录下的\\SharpDevelop\\bin目录下。然后在程序中使用using语句把GZip类库包含进来。

由于GZip没有BZip2的简单解压缩方法，因此只能使用流方法来进行解压缩。具体的方法见程序的说明。

<span class="readmore"><a href="http://www.yippeesoft.com/blog/p/20080326gzipICSharpCodejs.php" title="20080326 gzip ICSharpCode 日历控件">阅读全文——共4397字</a></span>]]></description>
		<wfw:commentRss>http://www.yippeesoft.com/blog/p/20080326gzipICSharpCodejs.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20080324 ICSharpCode GZipStream</title>
		<link>http://www.yippeesoft.com/blog/p/20080324ICSharpCodeGZipStream.php</link>
		<comments>http://www.yippeesoft.com/blog/p/20080324ICSharpCodeGZipStream.php#comments</comments>
		<pubDate>Sat, 20 Dec 2008 20:10:03 +0000</pubDate>
		<dc:creator>yippee</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[arp]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[icsharpcode]]></category>
		<category><![CDATA[rpc]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=393</guid>
		<description><![CDATA[20080324 ICSharpCode GZipStreamhttp://www.yippeesoft.com

http://www.cnblogs.com/DreamlikeAttic/archive/2006/07/07/445643.html在Pocket PC/Smartphone智能设备上编写压缩程序(特别简单，任何人都能简单使用）

2.0里内置了DeflateStream GZipStream压缩算法，没有压缩比的选择，实验了一下一个49,934字节的文件，用gzipstream压缩后35,964，用deflatestream压缩后35,946，用winrar3.62最大压缩26,598，7-zip也可以压缩成gzip，用7-zip选择压缩成gzip并最大压缩后26,485，比winrar都强。显得2.0自带的这个算法真是没用啊。

<span class="readmore"><a href="http://www.yippeesoft.com/blog/p/20080324ICSharpCodeGZipStream.php" title="20080324 ICSharpCode GZipStream">阅读全文——共3371字</a></span>]]></description>
		<wfw:commentRss>http://www.yippeesoft.com/blog/p/20080324ICSharpCodeGZipStream.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20080324 X509Certificate cer ICSharpCode</title>
		<link>http://www.yippeesoft.com/blog/p/20080324X509CertificatecerICSharpCode.php</link>
		<comments>http://www.yippeesoft.com/blog/p/20080324X509CertificatecerICSharpCode.php#comments</comments>
		<pubDate>Fri, 19 Dec 2008 20:06:17 +0000</pubDate>
		<dc:creator>yippee</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[arp]]></category>
		<category><![CDATA[cer]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[icsharpcode]]></category>
		<category><![CDATA[rpc]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=394</guid>
		<description><![CDATA[20080324 X509Certificate cer ICSharpCodehttp://www.yippeesoft.com

http://support.microsoft.com/kb/318217/zh-cnPRB： X509Certificate 支持仅 DER Encoded 证书

http://blog.joycode.com/mvm/archive/2006/03/25/73468.aspxX509Certificate代码示例 (.NET 1.1)

<span class="readmore"><a href="http://www.yippeesoft.com/blog/p/20080324X509CertificatecerICSharpCode.php" title="20080324 X509Certificate cer ICSharpCode">阅读全文——共3363字</a></span>]]></description>
		<wfw:commentRss>http://www.yippeesoft.com/blog/p/20080324X509CertificatecerICSharpCode.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20080312 codesmith raid</title>
		<link>http://www.yippeesoft.com/blog/p/20080312codesmithraid.php</link>
		<comments>http://www.yippeesoft.com/blog/p/20080312codesmithraid.php#comments</comments>
		<pubDate>Wed, 10 Dec 2008 19:07:47 +0000</pubDate>
		<dc:creator>yippee</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[des]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=403</guid>
		<description><![CDATA[20080312 codesmith raid http://www.yippeesoft.com

http://support1.ap.dell.com/cn/zh/forum/pntthd.asp?fid=2&#38;tid=37754Optiplex系列商用台式机FOR WIN2K/WINXP/WIN2003驱动下载地址

http://blog.csdn.net/Anckly/archive/2006/10/16/1336142.aspx基于CodeSmith的MVC开发框架构思  

<span class="readmore"><a href="http://www.yippeesoft.com/blog/p/20080312codesmithraid.php" title="20080312 codesmith raid">阅读全文——共4243字</a></span>]]></description>
		<wfw:commentRss>http://www.yippeesoft.com/blog/p/20080312codesmithraid.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20070118 CodePlex TortoiseSVN &#160;DDBuildTools</title>
		<link>http://www.yippeesoft.com/blog/p/20070118CodePlexTortoiseSVNDDBuildTools.php</link>
		<comments>http://www.yippeesoft.com/blog/p/20070118CodePlexTortoiseSVNDDBuildTools.php#comments</comments>
		<pubDate>Thu, 30 Oct 2008 15:02:50 +0000</pubDate>
		<dc:creator>yippee</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[dep]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[tortoisesvn]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=444</guid>
		<description><![CDATA[20070118 CodePlex TortoiseSVN  DDBuildToolshttp://www.yippeesoft.com

TortoiseSVNRelease Name: 1.4.7

Notes:Bugfix release.Linked against Subversion 1.4.6.

<span class="readmore"><a href="http://www.yippeesoft.com/blog/p/20070118CodePlexTortoiseSVNDDBuildTools.php" title="20070118 CodePlex TortoiseSVN &#160;DDBuildTools">阅读全文——共3741字</a></span>]]></description>
		<wfw:commentRss>http://www.yippeesoft.com/blog/p/20070118CodePlexTortoiseSVNDDBuildTools.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20070928 excel vba unicode</title>
		<link>http://www.yippeesoft.com/blog/p/20070928excelvbaunicode.php</link>
		<comments>http://www.yippeesoft.com/blog/p/20070928excelvbaunicode.php#comments</comments>
		<pubDate>Mon, 23 Jun 2008 19:52:12 +0000</pubDate>
		<dc:creator>yippee</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[vb]]></category>
		<category><![CDATA[vba]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=571</guid>
		<description><![CDATA[20070928 excel vba unicodehttp://www.yippeesoft.com

len(&#34;大家好&#34;) len(&#34;abc&#34;) 所返回的值都是 3，因为「大」和「a」都是一个字符。 但是这对一些中文字串处理，例如纯文字的数据文件，却是一个大灾难，因为你必须以byte 来定位每个字符，可是 unicode 却把一切的处理全搞砸了。例如： len(&#34;good morning&#34;) 返回 12，而 len(&#34;今天天气很好&#34;) 返回 6 对初学者而言，好不容易能使用 vb 来写程序已经是件了不起的事了，却马上在中文处理上挨了一记闷棍，所受到的打击实在不小。但是不要怕，事实上只要再多了解一些指令，就可以把中文处理的问题解决了。 是什么指令呢？最重要的莫过于 strconv 了。strconv 函数的语法为：strconv(待转换字串, 转换格式) 其中转换格式在这里用到的是： vbunicode 将 ansi 字串转换为 unicode vbfromunicode 将 unicode 字串转换为 ansi 将字串转成 ansi 之后，所有的字串处理指令都要加个 b，例如：leftb, rightb, midb, chrb, instrb, lenb, inputb 等。例用这些指令来处理就行了。 当你处理完毕之后，你可以再将它再转回 unicode，这样就可以使用一般的字串处理指令了。这样讲看得懂吗？如果还是不了解，看看下面的实例说明：简易使用范例看看下面的基本范例您应该就会对 vb 的字串处理方式有些概念。 private sub command1_click () dim sunicode as string dim sansi as string \&#8217; unicode 运算 sunicode = &#34;王小明,a123456789,651023,上海市中山路100号,(02)2345678&#34; debug.print len(sunicode) \&#8217; 返回 44 debug.print mid$(sunicode, 5, 10) \&#8217; 返回 a123456789 debug.print instr(sunicode, &#34;上海市&#34;) \&#8217; 返回 23 \&#8217; 将 unicode 字串转成 ansi sansi = strconv(sunicode, vbfromunicode) \&#8217; ansi 运算 debug.print lenb(sansi) \&#8217; 返回 54 debug.print midb$(sansi, 8, 10) \&#8217; 返回 ?????，因为忘了转回 unicode debug.print strconv(midb$(sansi, 8, 10), vbunicode) \&#8217; 返回 a123456789，请注意转回 unicode 的动作一定要做 debug.print instrb(sansi, strconv(&#34;上海市&#34;, vbfromunicode)) \&#8217; 返回 23, 不要忘了要把&#34;上海市&#34;也转成 ansi，否则会找不到 end sub 读入文本文件在 vb 的小技巧中，有一个是快速读文件法： private sub command1_click () dim sfile as string open &#34;c:\\filename.txt&#34; for input as #1 sfile = input$(lof(1), #1) close #1 end sub 但是很不幸地，如果你读取的文件内含中文字，那上面这段程序会出现 input pastend of file 的错误。因为 lof 返回的是文件的 byte 数，而 input 函数读取的是字符数，由于文件内含中文，因此文件中的字符数将会小于 byte 数，于是就发生错误了。要解决这个问题，我们就要用到 strconv 和 inputb 这两个函数了： private sub command1_click () dim sfile as string open &#34;c:\\filename.txt&#34; for input as #1 sfile = strconv(inputb$(lof(1), #1), vbunicode) close #1 end sub 上面修正程序先用 inputb 将文件读进来，不过使用 inputb 所读入的文件是 ansi格式的，所以要再用 strconv 转成 unicode 才行。随机数据文件许多文字数据文件是以固定字节的位置来加以区格，例如下面的数据格式：王小民650110上海市中山路100号 (02)1234567 张大呆660824花莲县大甲镇广东街23号(03)9876543 像这种类型的文件要如何处理呢？这是就必须用到 type 以及 byte array 了。 private type tagrecord username(5) as byte \&#8217; 姓名 6 bytes birthday(5) as byte \&#8217; 生日 6 bytes address(21) as byte \&#8217; 地址 22 bytes tel(11) as byte \&#8217; 电话 12 bytes crlf(1) as byte \&#8217; 换行字符 2 bytes end type private sub command1_click() dim urecord as tagrecord open &#34;c:\\filename.dat&#34; for random as #1 len = lenb(urecord) get #1, 2, urecord \&#8217; 取第二笔数据 with urecord \&#8217; with &#8230; end with 应该会用吧 debug.print .username \&#8217; 返回 ??? debug.print strconv(.username, vbunicode) \&#8217; 返回 &#34;张大呆&#34; end with close #1 end sub 在这个例子中，一定要用到 byte array，因为只有 byte array 才能正确地定位到每个 byte 的位置。以前使用字串来定位的方法已经不适用了，千万要记住！但是使用byte array 所读入的数据是 ansi 格式，若要处理或是做运算的话，记得还要转成unicode 格式才行。 [●] 使用 byte array 除了上面必须使用 byte 精确定位的例子之外，纯文字的处理基本上是用不到 bytearray 的。byte array 通常是用在处理 binary 数据。这方面的问题我们将另文讨论。看吧！只要熟悉使用 strconv，你就可以在 unicode 及 ansi 格式之间自由自在地变来变去

<span class="readmore"><a href="http://www.yippeesoft.com/blog/p/20070928excelvbaunicode.php" title="20070928 excel vba unicode">阅读全文——共4317字</a></span>]]></description>
		<wfw:commentRss>http://www.yippeesoft.com/blog/p/20070928excelvbaunicode.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20070521 wake up on lan code</title>
		<link>http://www.yippeesoft.com/blog/p/20070521wakeuponlancode.php</link>
		<comments>http://www.yippeesoft.com/blog/p/20070521wakeuponlancode.php#comments</comments>
		<pubDate>Thu, 31 Jan 2008 17:08:24 +0000</pubDate>
		<dc:creator>yippee</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[wake]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=712</guid>
		<description><![CDATA[20070521 wake up on lan codehttp://www.yippeesoft.com

&#60;?php

   /***************************************************    * PHP Class for UDP Magic Packet Wake-on-Lan        * ?2002                                ***************************************************    * This class exports 2 functions you would most      * probably want to use:                      *   void MagicPacket() &#8211; class descriptor          *   bool wake(string $ip, string $mac[, int $port]) &#8211; to wake the computer at the specified    *                   ip address. The mac argument is the MAC    *                   address of the NIC you would like to    *                   wake up. The port argument is any UDP port,    *                   preferably 9, the UDP discard port.    *                   Returns true on success, false on failure.    ***************************************************    * Usage: $wol = new MagicPacket();              *     $wol -&#62; wake(\&#8217;192.168.1.201\&#8217;,\&#8217;001122334455\&#8217;, 9);            ****************************************************/

<span class="readmore"><a href="http://www.yippeesoft.com/blog/p/20070521wakeuponlancode.php" title="20070521 wake up on lan code">阅读全文——共8388字</a></span>]]></description>
		<wfw:commentRss>http://www.yippeesoft.com/blog/p/20070521wakeuponlancode.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20070309 googlecode &#160;CoolLittleThings</title>
		<link>http://www.yippeesoft.com/blog/p/20070309googlecodeCoolLittleThings.php</link>
		<comments>http://www.yippeesoft.com/blog/p/20070309googlecodeCoolLittleThings.php#comments</comments>
		<pubDate>Sat, 11 Aug 2007 22:49:41 +0000</pubDate>
		<dc:creator>yippee</dc:creator>
				<category><![CDATA[Info]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=885</guid>
		<description><![CDATA[20070309 googlecode  CoolLittleThings

看到两个有趣的网站，纪录一下Google Code是Google之前推出的网站，为表示对开源项目的支持，Google在该网站上贴出了部分搜索技术源代码以及服务的API源代码。之前有消息说，Google将开放Google Code，和著名的sf.net类似，为开源项目提供提供免费服务。

今天，Google Code Project Hosting 服务已正式开放(但是Google Code首页尚无连接)。和sf.net相比，创建项目不需要繁杂的申请，方便许多(Dash以前就因为英语不过关，申请sf.net项目经常被拒)。目前提供的功能还比较简单，仅仅包括 SVN 和 Issue Tracking 2项服务。不过可以在后台设置Google Group关联，也算是多了邮件列表的功能。 利用google的hosting工具建立开源项目

<span class="readmore"><a href="http://www.yippeesoft.com/blog/p/20070309googlecodeCoolLittleThings.php" title="20070309 googlecode &#160;CoolLittleThings">阅读全文——共4739字</a></span>]]></description>
		<wfw:commentRss>http://www.yippeesoft.com/blog/p/20070309googlecodeCoolLittleThings.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
