博客园 - learneruuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=1007152014-09-29T08:33:20Zlearnerhttps://www.cnblogs.com/sliencer/feed.cnblogs.comhttps://www.cnblogs.com/sliencer/p/4000513.htmlUnicode中跟汉字相关的一些内容的总结陈词 - learnerUniHan 这几天琢磨着怎么方便的给汉字注音,因为要知道具体哪些Unicode是给汉字用的,就读了读Unicode的官方文档.目前unicode已经发展到了7.0.不看不知道,发现Unicode的定义中颇有些有趣的内容,写下了给大家分享下,也算是个笔记. Unicode中跟汉字相关统称为UniH...2014-09-29T08:33:00Z2014-09-29T08:33:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】UniHan 这几天琢磨着怎么方便的给汉字注音,因为要知道具体哪些Unicode是给汉字用的,就读了读Unicode的官方文档.目前unicode已经发展到了7.0.不看不知道,发现Unicode的定义中颇有些有趣的内容,写下了给大家分享下,也算是个笔记. Unicode中跟汉字相关统称为UniH... <a href="https://www.cnblogs.com/sliencer/p/4000513.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/p/3155768.htmlc#: 解析json, 转成xml, 简单方便 - learner没看到.net framework中有这样的功能, 懒得到处找了, 索性花点时间自己写一个 1 /* 2 * Created by SharpDevelop. 3 * Date: 2013/6/24 4 * User: sliencer 5 * Time: 21:54 6 * 7 * To change this template use Tools | Options | Coding | Edit Standard Headers. 8 */ 9 using System; 10 using System.Collections.Generic; 11 u...2013-06-25T14:47:00Z2013-06-25T14:47:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】没看到.net framework中有这样的功能, 懒得到处找了, 索性花点时间自己写一个 1 /* 2 * Created by SharpDevelop. 3 * Date: 2013/6/24 4 * User: sliencer 5 * Time: 21:54 6 * 7 * To change this template use Tools | Options | Coding | Edit Standard Headers. 8 */ 9 using System; 10 using System.Collections.Generic; 11 u... <a href="https://www.cnblogs.com/sliencer/p/3155768.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/p/3150521.html玩一个:可以显示任何xml树结构的xaml定义 - learner学习中, 玩一玩。 效果如下。Xaml随后。 ...2013-06-22T16:11:00Z2013-06-22T16:11:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】学习中, 玩一玩。 效果如下。Xaml随后。 ... <a href="https://www.cnblogs.com/sliencer/p/3150521.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2012/10/23/2736418.htmlC#: the sample usage of c# template - learner1. class definition with constraints1classTest<T,V>whereV:MyType{2publicStringname;3publicTvalue;4publicvirtualvoidprint(){5Console.WriteLine("{0}={1}",name,value);6}//print()7}//class2. inherited class definition with constraint( my use constraint)12classTest2<T1,T2>:Test<T2012-10-23T15:41:00Z2012-10-23T15:41:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】1. class definition with constraints1classTest<T,V>whereV:MyType{2publicStringname;3publicTvalue;4publicvirtualvoidprint(){5Console.WriteLine("{0}={1}",name,value);6}//print()7}//class2. inherited class definition with constraint( my use constraint)12classTest2<T1,T2>:Test<T <a href="https://www.cnblogs.com/sliencer/archive/2012/10/23/2736418.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2012/09/28/2706804.htmlMemo: How to use UMDH to detect memory leak - learner1. Download windows debug tools from MS 2. Based on the app type (x86 or x64), add path : C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x86(or x64) 3. For all the dlls and exes I wanna detect: run a. Gflags –i <dll name or exe name> +ust 4. Find you *.pdb, make sure it exist in _NT_SYMBOL_2012-09-28T02:41:00Z2012-09-28T02:41:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】1. Download windows debug tools from MS 2. Based on the app type (x86 or x64), add path : C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x86(or x64) 3. For all the dlls and exes I wanna detect: run a. Gflags –i <dll name or exe name> +ust 4. Find you *.pdb, make sure it exist in _NT_SYMBOL_ <a href="https://www.cnblogs.com/sliencer/archive/2012/09/28/2706804.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2012/09/20/2695211.htmlcompile openssl on windows - learner1. download SSL http://www.cnblogs.com/sliencer/admin/ftp://ftp.openssl.org/snapshot/openssl-1.0.2-stable-SNAP-20120920.tar.gz2. unpack to a folder3. download nasm from http://www.nasm.us/pub/nasm/releasebuilds/2.10.05/win32/ based on instructions of INSTALL.W32 under SSL4. put nasm to PATH : set pa2012-09-20T06:43:00Z2012-09-20T06:43:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】1. download SSL http://www.cnblogs.com/sliencer/admin/ftp://ftp.openssl.org/snapshot/openssl-1.0.2-stable-SNAP-20120920.tar.gz2. unpack to a folder3. download nasm from http://www.nasm.us/pub/nasm/releasebuilds/2.10.05/win32/ based on instructions of INSTALL.W32 under SSL4. put nasm to PATH : set pa <a href="https://www.cnblogs.com/sliencer/archive/2012/09/20/2695211.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2012/03/25/2416717.htmlc# : use xsd 校验 xml - learner1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Linq;4usingSystem.Text;5usingSystem.Xml;6usingSystem.Diagnostics;7usingSystem.Xml.Schema;8usingSystem.Xml.Linq;910namespaceXsdValidator11{12classProgram13{14staticvoidMain(string[]args)15{1617//Debug.Assert(false);18InputArgumentParser.Inst.2012-03-25T07:43:00Z2012-03-25T07:43:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Linq;4usingSystem.Text;5usingSystem.Xml;6usingSystem.Diagnostics;7usingSystem.Xml.Schema;8usingSystem.Xml.Linq;910namespaceXsdValidator11{12classProgram13{14staticvoidMain(string[]args)15{1617//Debug.Assert(false);18InputArgumentParser.Inst. <a href="https://www.cnblogs.com/sliencer/archive/2012/03/25/2416717.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2012/03/25/2416713.htmlJava : use xsd 校验 xml - learner1importjavax.xml.parsers.DocumentBuilder;2importjavax.xml.parsers.DocumentBuilderFactory;34importorg.w3c.dom.Document;5importorg.xml.sax.ErrorHandler;6importorg.xml.sax.InputSource;7importorg.xml.sax.SAXException;8importorg.xml.sax.SAXParseException;910importjava.io.*;11importjavax.xml.transform.Sou2012-03-25T07:41:00Z2012-03-25T07:41:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】1importjavax.xml.parsers.DocumentBuilder;2importjavax.xml.parsers.DocumentBuilderFactory;34importorg.w3c.dom.Document;5importorg.xml.sax.ErrorHandler;6importorg.xml.sax.InputSource;7importorg.xml.sax.SAXException;8importorg.xml.sax.SAXParseException;910importjava.io.*;11importjavax.xml.transform.Sou <a href="https://www.cnblogs.com/sliencer/archive/2012/03/25/2416713.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2012/03/22/2410891.htmlJAVA : 简单event机制的实现(伪码) - learner<S>public interface EventBase<S> { void onEvent(S source, Object[]... arguments);}<S,T extends EventBase<S>>public class EventSender<S, T> { private List<T> receivers = new ArrayList<T>(); public void addReceiver(T receiver) { if (null == receiver) throw new2012-03-21T16:52:00Z2012-03-21T16:52:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】<S>public interface EventBase<S> { void onEvent(S source, Object[]... arguments);}<S,T extends EventBase<S>>public class EventSender<S, T> { private List<T> receivers = new ArrayList<T>(); public void addReceiver(T receiver) { if (null == receiver) throw new <a href="https://www.cnblogs.com/sliencer/archive/2012/03/22/2410891.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2011/04/24/2026533.html编码base64文件 - learner将binary文件编码成base64文件如果有问什么是base64的, 请参考http://en.wikipedia.org/wiki/Base64, 我就不罗嗦了。license采用codeproject的CPOL(http://www.codeproject.com/info/cpol10.aspx),基本上没什么限制。源码在这儿(VC++):http://files.cnblogs.com/sliencer/EncodeBase64.7z2011-04-24T14:42:00Z2011-04-24T14:42:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】将binary文件编码成base64文件如果有问什么是base64的, 请参考http://en.wikipedia.org/wiki/Base64, 我就不罗嗦了。license采用codeproject的CPOL(http://www.codeproject.com/info/cpol10.aspx),基本上没什么限制。源码在这儿(VC++):http://files.cnblogs.com/sliencer/EncodeBase64.7z <a href="https://www.cnblogs.com/sliencer/archive/2011/04/24/2026533.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2011/04/23/2025683.html解码base64文件 - learner将base64文件解码成binary文件如果有问什么是base64的, 请参考http://en.wikipedia.org/wiki/Base64, 我就不罗嗦了。license采用codeproject的CPOL(http://www.codeproject.com/info/cpol10.aspx),基本上没什么限制。源码在这儿(VC++):http://files.cnblogs.com/sliencer/DecodeBase64.7z2011-04-23T07:23:00Z2011-04-23T07:23:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】将base64文件解码成binary文件如果有问什么是base64的, 请参考http://en.wikipedia.org/wiki/Base64, 我就不罗嗦了。license采用codeproject的CPOL(http://www.codeproject.com/info/cpol10.aspx),基本上没什么限制。源码在这儿(VC++):http://files.cnblogs.com/sliencer/DecodeBase64.7z <a href="https://www.cnblogs.com/sliencer/archive/2011/04/23/2025683.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2009/01/11/1373787.html汉典速查: 一个简易的国学阅读工具 - learner我是一个喜欢阅读古典文学的人, 只是水平实在太差, 一篇稍拗口一些的文章就有大半看不懂, 很多字也读不出, 因为懒得查字典, 所以往往是半途而废. 那天看到汉典网上有很丰富的文字资料, 便抽空做了一个小软件. 使用的时候将文章Paste到文本框中, 当遇到需要解释的字时, 选中即可, 工具会自动到汉典网去搜索, 并且显示在下面. 如果想要解释词语,点击下面按钮即可. 这个工具需要事先装好.ne...2009-01-11T13:36:00Z2009-01-11T13:36:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】我是一个喜欢阅读古典文学的人, 只是水平实在太差, 一篇稍拗口一些的文章就有大半看不懂, 很多字也读不出, 因为懒得查字典, 所以往往是半途而废. 那天看到汉典网上有很丰富的文字资料, 便抽空做了一个小软件. 使用的时候将文章Paste到文本框中, 当遇到需要解释的字时, 选中即可, 工具会自动到汉典网去搜索, 并且显示在下面. 如果想要解释词语,点击下面按钮即可. 这个工具需要事先装好.ne... <a href="https://www.cnblogs.com/sliencer/archive/2009/01/11/1373787.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2007/03/26/688643.html从钱龙数据中读取股票权息信息导入到数据库 - learner前面写了如果读股票代码和日线数据,下面是如何读股票的权息信息。钱龙中权息数据存储在QLDATA\history\shase\weight和QLDATA\history\sznse\weight目录下,每个文件对应一只股票。与前文一样,只贴核心代码:privatestaticvoidReadStockWeights(stringstrPath,stringp_strMarket){string[]p...2007-03-26T08:17:00Z2007-03-26T08:17:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】前面写了如果读股票代码和日线数据,下面是如何读股票的权息信息。钱龙中权息数据存储在QLDATA\history\shase\weight和QLDATA\history\sznse\weight目录下,每个文件对应一只股票。与前文一样,只贴核心代码:privatestaticvoidReadStockWeights(stringstrPath,stringp_strMarket){string[]p... <a href="https://www.cnblogs.com/sliencer/archive/2007/03/26/688643.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2007/03/26/688627.html从钱龙数据中读取股票交易数据(日线)导入到数据库 - learner前面写了如果读股票代码,下面是如何读日线数据的代码。钱龙中日线数据存储在QLDATA\history\shase\day和QLDATA\history\sznse\day目录下,每个文件对应一只股票。与前文一样,只贴核心代码:publicvoidParseAndSave(stringp_strFileName,stringp_strStockCode,Marketp_market){Console...2007-03-26T08:11:00Z2007-03-26T08:11:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】前面写了如果读股票代码,下面是如何读日线数据的代码。钱龙中日线数据存储在QLDATA\history\shase\day和QLDATA\history\sznse\day目录下,每个文件对应一只股票。与前文一样,只贴核心代码:publicvoidParseAndSave(stringp_strFileName,stringp_strStockCode,Marketp_market){Console... <a href="https://www.cnblogs.com/sliencer/archive/2007/03/26/688627.html" target="_blank">阅读全文</a>https://www.cnblogs.com/sliencer/archive/2007/03/26/688605.html从钱龙数据中读取股票代码信息导入到数据库 - learner写股票相关的程序最苦恼的事莫过于没有数据了, 于是参考了网上其他朋友的一些文章,写了一个程序,可以把钱龙里的一些数据导入到数据库,以便进一步使用.在我的例子里使用的是MS SqlServer 2005, 如果要使用其他数据库,可能某些地方要做一定的修改.钱龙软件的股票代码按照市场不同保存在两个文件: stockinfo.sha和stockinfo.szn, 分别代表上海和深圳.下面是我的程序的核心...2007-03-26T08:03:00Z2007-03-26T08:03:00Zlearnerhttps://www.cnblogs.com/sliencer/【摘要】写股票相关的程序最苦恼的事莫过于没有数据了, 于是参考了网上其他朋友的一些文章,写了一个程序,可以把钱龙里的一些数据导入到数据库,以便进一步使用.在我的例子里使用的是MS SqlServer 2005, 如果要使用其他数据库,可能某些地方要做一定的修改.钱龙软件的股票代码按照市场不同保存在两个文件: stockinfo.sha和stockinfo.szn, 分别代表上海和深圳.下面是我的程序的核心... <a href="https://www.cnblogs.com/sliencer/archive/2007/03/26/688605.html" target="_blank">阅读全文</a>