摘要: ###1. 在github(https://github.com/protocolbuffers/protobuf/releases)上下载protoc.exe(protoc-XXXXX) ###2. 在新建工程下创建protobuf文件夹 ###3. 在protobuf文件夹下放入下载的proto 阅读全文
posted @ 2020-08-14 16:49 teyond 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: '#安装两个库:pip install pywubi,xpinyin from pywubi import wubi from xpinyin import Pinyin zh_ch_arr=[] #输出所有汉字 pn = Pinyin() #拼音 for ch in range(0x4e00, 0 阅读全文
posted @ 2020-07-01 13:24 teyond 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 最近再网上下了一本pdf电子书(扫描版),质量不错。只是边缘太宽了,看起来不方便,就想着找一个切边工具。搜了一圈二,没有找到好用的,就自己动手。 win10 下载python3 官方网址:https://www.python.org/ 安装包 pip install PyPDF2 这里用到了PdfF 阅读全文
posted @ 2020-04-22 11:20 teyond 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: 直接贴代码: 1 #define MYSIZE 32*1024*1024 2 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 12 using nam... 阅读全文
posted @ 2015-08-07 11:33 teyond 阅读(460) 评论(0) 推荐(0) 编辑
摘要: //使用System.Reflection,查找System.ServiceModel的异常类型 public void ConsoleException() { try { Assembly asm = Assembly.GetExecutingAssembly(); foreach (Assem... 阅读全文
posted @ 2014-04-22 13:48 teyond 阅读(186) 评论(0) 推荐(0) 编辑
摘要: VS2005 : KYTYH-TQKW6-VWPBQ-DKC8F-HWC4JVS2008 : PYHYP-WXB3B-B2CCM-V9DX9-VDY8TVS2010 : YCFHQ-9DWCY-DKV88-T2TMH-G7BHPVS2012 : YQ7PR-QTHDM-HCBCV-9GKGG-TB2TM 阅读全文
posted @ 2014-01-20 10:08 teyond 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 最近一直纠结于大文件的处理。单个文件动辄两三个G,数据遍历检索需要长时间等待,在此等待过程中很是郁闷。思来想去,就是把文件切片处理。虽然整个文件处理完毕可能耗时更长,至少,处理一部分数据,就可以实时看到结果。 1。根据源文件大小,估计处理完成以后目标索引文件长度,建立目标文件长度的空文件; 2。把源文件切割为若干数据片N来处理,顺序处理;处理完一个数据片立马加载; 3。查看空数据文件给出等待数据处理提示; 附加方案: 建立数据监视服务,发现新文件后台立即进行处理,建立文件索引。 阅读全文
posted @ 2014-01-17 17:02 teyond 阅读(351) 评论(0) 推荐(0) 编辑
摘要: #region 声卡信息 /// /// 获取声卡信息 /// private void GetSoundDeviceProperties() { try { ObjectGetOptions options = new ObjectGetOptions(null, TimeSpan.MaxValue, true); ManagementClass class2 = new ManagementClass("root\\CIMV2", "Win32_SoundDevice", options); class2.Options.UseAmendedQual 阅读全文
posted @ 2013-11-22 13:35 teyond 阅读(280) 评论(0) 推荐(0) 编辑
摘要: //program.cs static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { bool ret = false; System.Threading.Mutex running = new System.Threading.Mutex(true, Application.ProductName, out ret); if (ret) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefa.. 阅读全文
posted @ 2013-09-17 09:03 teyond 阅读(372) 评论(0) 推荐(0) 编辑
摘要: //以下代码添加到任一窗口下即可 private int 旋转角度 = 0; private int 边长 = 10; protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); DrawSensor(e.Graphics, new Point(200, 200), 旋转角度, 边长); } /// /// 应力传感器代码,其他类型自己修改字符串值 /// /// /// 三角形顶点坐标 /// 旋转角度(顺时针正,逆时针负) /// 边长 private void DrawSensor(Graphics g,... 阅读全文
posted @ 2013-09-10 09:23 teyond 阅读(708) 评论(0) 推荐(0) 编辑