摘要: 安装git $ sudo apt install git 添加源 $ sudo gedit /etc/apt/sources.list 打开sources.list文件,在文件的最下面添加以下内容: deb http://archive.ubuntu.com/ubuntu/ trusty main 阅读全文
posted @ 2019-02-01 15:12 chenlh 阅读(428) 评论(0) 推荐(0) 编辑
摘要: MSDTC相关配置参考 http://www.cnblogs.com/lastbeachhead/archive/2009/04/14/1435448.html http://blog.csdn.net/wufeng4552/article/details/4796846 MS-SQLSERVER的 阅读全文
posted @ 2017-04-05 14:07 chenlh 阅读(159) 评论(0) 推荐(0) 编辑
摘要: In Windows 8 & 10, you have to right-click devenv.exe and select "Troubleshoot compatibility". 转自 http://stackoverflow.com/questions/12257110/can-you- 阅读全文
posted @ 2016-11-23 08:55 chenlh 阅读(774) 评论(0) 推荐(0) 编辑
摘要: Dump文件是进程的内存镜像。可以把程序的执行状态通过调试器保存到dump文件中。 Dump文件是用来给驱动程序编写人员调试驱动程序用的,这种文件必须用专用工具软件打开,比如使用WinDbg打开。 当我们的程序发布出去之后,在客户机上是无法跟踪自己代码的bug的,所以Dump(扩展名是 .dm... 阅读全文
posted @ 2015-02-04 14:30 chenlh 阅读(412) 评论(0) 推荐(0) 编辑
摘要: Java生成的WebService要求在调用时在http的header里必须带上Authorization:Basic xxxxxxxxxxxxxxx的认证信息因为是在添加Web Reference后直接调用服务,所以就要重写服务类,重写服务类的GetWebRequest方法,示例代码如下publi... 阅读全文
posted @ 2014-11-14 11:43 chenlh 阅读(1618) 评论(0) 推荐(0) 编辑
摘要: C#版本 /// /// 字符串转为UniCode码字符串 /// /// /// 字符串,不包含\u格式符号 public static string StringToUnicode(st... 阅读全文
posted @ 2014-07-07 09:39 chenlh 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 打开IIS服务管理器,找到服务器,右键-属性,打开IIS服务属性; 单击MIME类型下的“MIME类型”按钮,打开MIME类型设置窗口; 单击“新建”,建立新的MIME类型; 扩展名中填写“.apk”,MIME类型中填写apk的MIME类型“ application/vnd.android.pack... 阅读全文
posted @ 2014-07-07 09:35 chenlh 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 来源:http://blog.itpub.net/23109131/viewspace-630576想实现输入法切换:思路,找出当前系统所有输入法总个数,当前输入法在总输入法中的索引,通过改变索引值,来切换输入法void input(){ //变全角为半角的输入状态 this.... 阅读全文
posted @ 2014-06-23 10:16 chenlh 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 出现这种情况需要对请求的URL进行编码转换,如下:string url="...";Encoding encode = System.Text.Encoding.GetEncoding("gb2312");url = System.Web.HttpUtility.UrlEncode(url, enc... 阅读全文
posted @ 2014-06-23 10:12 chenlh 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 方法一://调用API[System.Runtime.InteropServices.DllImport("user32", CharSet = System.Runtime.InteropServices.CharSet.Auto, ExactSpelling = true)]public sta... 阅读全文
posted @ 2014-06-20 10:13 chenlh 阅读(6123) 评论(0) 推荐(0) 编辑