<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Welcome to Garywang's IT BLOG.]]></title><description><![CDATA[Focus on Everything I interested.]]></description><link>https://blog.csdn.net/wren2004</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; wren2004]]></copyright><item><title><![CDATA[C# winform ListView实现表示点击排序]]></title><link>https://blog.csdn.net/wren2004/article/details/103127233</link><guid>https://blog.csdn.net/wren2004/article/details/103127233</guid><author>wren2004</author><pubDate>Mon, 18 Nov 2019 18:18:33 +0800</pubDate><description><![CDATA[自用的小工具要实现这个功能，网上找了些代码，加工一下，以下步骤，亲测可用。菜鸟可一步步跟着来，老鸟绕道啦。

1. 新建一个排序类，代码如下：


   public class ListViewItemComparer : IComparer {

        private int col;

        private SortOrder order;
        public ...]]></description><category></category></item><item><title><![CDATA[MySQL 建视图时使用Union 报错1064]]></title><link>https://blog.csdn.net/wren2004/article/details/102950625</link><guid>https://blog.csdn.net/wren2004/article/details/102950625</guid><author>wren2004</author><pubDate>Thu, 07 Nov 2019 11:07:58 +0800</pubDate><description><![CDATA[SQL语句可以正常执行，但创建视图时报错1064，经多方资料查找，格式调整，原因竟然是不能用（），即创建视时SQL语句外围不能用（），权限于有Union 的情况，其他的还没有发现异常。这也许算是一个bug吧。如下图：



小技巧，记录备查。
...]]></description><category></category></item><item><title><![CDATA[MySQL 设定定时任务]]></title><link>https://blog.csdn.net/wren2004/article/details/102817197</link><guid>https://blog.csdn.net/wren2004/article/details/102817197</guid><author>wren2004</author><pubDate>Wed, 30 Oct 2019 13:19:29 +0800</pubDate><description><![CDATA[1. 打开计划事件开关

  SET GLOBAL event_scheduler = ON

2. 查看计划事件是否打开

 SELECT @@event_scheduler

 

3. 设定计划事件


CREATE EVENT IF NOT EXISTS temp_event   
    ON SCHEDULE EVERY 1 DAY STARTS DATE_ADD(D...]]></description><category></category></item><item><title><![CDATA[如何不显示DevExpress试用提示]]></title><link>https://blog.csdn.net/wren2004/article/details/102693384</link><guid>https://blog.csdn.net/wren2004/article/details/102693384</guid><author>wren2004</author><pubDate>Wed, 23 Oct 2019 00:09:29 +0800</pubDate><description><![CDATA[解决的方案有两个：
1、直接删除properties下的license.licx文件，重新编译，虽然会再生成，但不会再出现那个试用提示框。
2、如果想彻底删除这个文件，请右击license.licx文件》点击属性》把生成操作这属性改成“无”，再删除这个文件，就不会自动生成这个文件了。

网上查的，备用。
...]]></description><category></category></item><item><title><![CDATA[DevExpress DataGrid Auto Filter Row 单元格实现单击全选]]></title><link>https://blog.csdn.net/wren2004/article/details/102693319</link><guid>https://blog.csdn.net/wren2004/article/details/102693319</guid><author>wren2004</author><pubDate>Wed, 23 Oct 2019 00:02:26 +0800</pubDate><description><![CDATA[如下图，为提高工作效率，要求单击时可以全选里面值：



研究了半天，没有找到合适的事件，后来还是在一个朋友的指点下得己实现，代码如下：


        /// &lt;summary&gt;
        /// 单击选中单元格内容
        /// &lt;/summary&gt;
        /// &lt;param name="sender"&gt;&lt;/param&...]]></description><category></category></item><item><title><![CDATA[PC版微信数据库解密详细教程]]></title><link>https://blog.csdn.net/wren2004/article/details/101724183</link><guid>https://blog.csdn.net/wren2004/article/details/101724183</guid><author>wren2004</author><pubDate>Sun, 29 Sep 2019 22:51:03 +0800</pubDate><description><![CDATA[转载自：https://bbs.pediy.com/thread-251303.htm，写得比较详细，未测试，备查！

在电子取证过程中，也会遇到提取PC版微信数据的情况，看雪、52破解和CSDN等网上的PC版微信数据库破解文章实在是太简略了，大多数只有结果没有过程。经过反复试验终于成功解密了数据库，现在把详细过程记录下来，希望大家不要继续在已经解决的问题上过度浪费时间，以便更投入地研究尚未解决的...]]></description><category></category></item><item><title><![CDATA[Winform 存储截图到mySQL，并显示]]></title><link>https://blog.csdn.net/wren2004/article/details/101562582</link><guid>https://blog.csdn.net/wren2004/article/details/101562582</guid><author>wren2004</author><pubDate>Fri, 27 Sep 2019 21:35:54 +0800</pubDate><description><![CDATA[1. 用RichText控件，可以直接实现粘贴。

2. MySQL数据库相应字段设为mediumtext型，约16MB，够用啦，再意大小可的可以用TEXT，约64KB，少了点，不要用LongText，可以存4G，但是DataTable读取不了，也没必要这么大啦。

3. 存入前，要进行压缩，简单测试了一下，约可以压缩90%，这意味着我们可以存大概160M的图片，够用了。

插入数据库代码如下：
...]]></description><category></category></item><item><title><![CDATA[被调用窗体关闭时，刷新主调用窗体数据]]></title><link>https://blog.csdn.net/wren2004/article/details/101439516</link><guid>https://blog.csdn.net/wren2004/article/details/101439516</guid><author>wren2004</author><pubDate>Thu, 26 Sep 2019 14:12:14 +0800</pubDate><description><![CDATA[主窗体： MianForm

子窗体（被调用窗体）：frmDetail

调用子窗体代码，并传参数（其中主窗体本身也作为一个参数传进去）


frmDetial frmDetial = new frmDetial();
frmDetial.Show(_sID, cmbFactory.Text,_sStat,this);

子窗体Show方法重载：


internal void Show(stri...]]></description><category></category></item><item><title><![CDATA[CMD 查看ＷＩＦＩ密码]]></title><link>https://blog.csdn.net/wren2004/article/details/101194298</link><guid>https://blog.csdn.net/wren2004/article/details/101194298</guid><author>wren2004</author><pubDate>Mon, 23 Sep 2019 09:52:00 +0800</pubDate><description><![CDATA[网上收集，有用，备查。

１.知道ＳＳＩＤ，输入如下命令：


netsh wlan show profiles "WIFI01" key=clear

2.查看所有连接过的ＷＩＦＩ密码：


for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do  @echo %j | findstr -i -v e...]]></description><category></category></item><item><title><![CDATA[如何设定Listview表头的背景色]]></title><link>https://blog.csdn.net/wren2004/article/details/101172500</link><guid>https://blog.csdn.net/wren2004/article/details/101172500</guid><author>wren2004</author><pubDate>Sun, 22 Sep 2019 21:05:09 +0800</pubDate><description><![CDATA[1.设定Listview的OwnerDraw属性为True;

2.在Listview的DrawColumnHeader的事件中添加如下代码：


            e.Graphics.FillRectangle(Brushes.LightBlue, e.Bounds);
            e.DrawText();

3.在Listview的DrawItem事件中添加如下代码...]]></description><category></category></item><item><title><![CDATA[C# 判断圆与矩形的冲突]]></title><link>https://blog.csdn.net/wren2004/article/details/100692105</link><guid>https://blog.csdn.net/wren2004/article/details/100692105</guid><author>wren2004</author><pubDate>Tue, 10 Sep 2019 10:49:09 +0800</pubDate><description><![CDATA[业务需要，我们把圆描述为孔，矩形描述为槽，在一个平面内判断是否冲突，所谓冲突即是孔与槽相交或孔在槽内。想了个简单的近似不严格判断方法，代码如下：


        /// &lt;summary&gt;
        /// 判断孔槽冲突
        /// &lt;/summary&gt;
        /// &lt;param name="kcList_kong"&gt;孔列表&l...]]></description><category></category></item><item><title><![CDATA[C# 判断两个字符串模糊相等]]></title><link>https://blog.csdn.net/wren2004/article/details/100691735</link><guid>https://blog.csdn.net/wren2004/article/details/100691735</guid><author>wren2004</author><pubDate>Tue, 10 Sep 2019 10:43:42 +0800</pubDate><description><![CDATA[业务需要，需要对用户输入的文本做模糊相等判断，比如“红豆薏米”，“薏米红豆”可以认为是相等的，又比如“书香酮”与“舒香桐”与可以认为是相等的。只是大概做个判断，给用户个提示，在不影响人类解读的情况下，可以不用修改了。想了个简单的算法如下：


       /// &lt;summary&gt;
        /// 判断两个字符串是不是模糊相等
        /// &lt;/summary...]]></description><category></category></item><item><title><![CDATA[重置outlook2013/2016; 重新配置Outlook文件]]></title><link>https://blog.csdn.net/wren2004/article/details/97429477</link><guid>https://blog.csdn.net/wren2004/article/details/97429477</guid><author>wren2004</author><pubDate>Fri, 26 Jul 2019 22:38:37 +0800</pubDate><description><![CDATA[1.找到outlook所在的文件夹，我的是C:\Program Files\Microsoft Office\Office14
2.然后运行命令 outlook /importprf .\.prf会运行命令吧 按住WIN+R键 输入那一串命令 回车 就可以了。
3.然后重新配置outlook邮件
...]]></description><category></category></item><item><title><![CDATA[C# OLEDB方式读取EXCEL，空值或值不完整问题解决]]></title><link>https://blog.csdn.net/wren2004/article/details/83178484</link><guid>https://blog.csdn.net/wren2004/article/details/83178484</guid><author>wren2004</author><pubDate>Fri, 19 Oct 2018 11:18:00 +0800</pubDate><description><![CDATA[有时EXCEL有数据，但读取不完整，或都干脆为空，经测试，更改链接字符串，引用更高版本的引擎就好。

通常，我们在网上查到的字箱串如下：


           strConn = &quot;Provider=Microsoft.Jet.Oledb.4.0;Data Source=&quot; + strExcelFilePath +
                             &quot;;Extended...]]></description><category></category></item><item><title><![CDATA[Visual Studio 中代码分析可维护性指数的计算方法]]></title><link>https://blog.csdn.net/wren2004/article/details/83144652</link><guid>https://blog.csdn.net/wren2004/article/details/83144652</guid><author>wren2004</author><pubDate>Thu, 18 Oct 2018 12:23:20 +0800</pubDate><description><![CDATA[https://blog.csdn.net/tl_ang/article/details/4628897?locationNum=3&amp;amp;fps=1

 

可维护性指数最开始的计算方法是这样的(来源于卡耐基梅隆大学 的研究成果，但是考虑到计算不包含注释，所以修改了霍尔斯特德量 的计算方法):

可维护性指数= 171 - 5.2 * ln(霍尔斯特德量 ) - 0.23 * (圈复杂度) -...]]></description><category></category></item><item><title><![CDATA[服务器正在运行中...，问题解决]]></title><link>https://blog.csdn.net/wren2004/article/details/83094532</link><guid>https://blog.csdn.net/wren2004/article/details/83094532</guid><author>wren2004</author><pubDate>Tue, 16 Oct 2018 17:23:43 +0800</pubDate><description><![CDATA[将默认浏览器设为系统默认的就好。]]></description><category></category></item><item><title><![CDATA[surface pro 4 发热抖屏的解决方法]]></title><link>https://blog.csdn.net/wren2004/article/details/82871679</link><guid>https://blog.csdn.net/wren2004/article/details/82871679</guid><author>wren2004</author><pubDate>Thu, 27 Sep 2018 18:58:04 +0800</pubDate><description><![CDATA[用了三年，同样的问题，以下方法试验中.... (以牺牲性能方法来降低发热，从而避免抖屏，不得已而为之)

https://tieba.baidu.com/p/5598171696?red_tag=1289571004&amp;amp;traceid=

1、WIN键+R进入运行框框，输入regedit，回车，启动注册表；
2、进入以下表项，HKEY_LOCAL_MACHINE\SYSTEM\Current...]]></description><category></category></item><item><title><![CDATA[.net反编译的九款神器]]></title><link>https://blog.csdn.net/wren2004/article/details/82839320</link><guid>https://blog.csdn.net/wren2004/article/details/82839320</guid><author>wren2004</author><pubDate>Tue, 25 Sep 2018 14:49:59 +0800</pubDate><description><![CDATA[自测， dnSpy + Reflector是最好的搭档，可读性Reflector好些，反编再编译效率dnSpy好些。

 

转自：http://www.cnblogs.com/zsuxiong/p/5117465.html

1、Reflector 

       Reflector是最为流行的.Net反编译工具。Reflector是由微软员工Lutz Roeder编写的免费程序。Reflec...]]></description><category></category></item><item><title><![CDATA[Python 多连接共享Sqlite 内存数据库]]></title><link>https://blog.csdn.net/wren2004/article/details/79641203</link><guid>https://blog.csdn.net/wren2004/article/details/79641203</guid><author>wren2004</author><pubDate>Wed, 21 Mar 2018 15:56:28 +0800</pubDate><description><![CDATA[简单的测试代码：import sqlite3p = sqlite3.connect(&quot;file:memDB1?mode=memory&amp;amp;cache=shared&quot;, uri=True)p.execute('CREATE TABLE tbTest (fld1, fld2)')p.execute(&quot;INSERT INTO tbTest VALUES ('fld1', 'fld2')&quot;)p.com...]]></description><category></category></item><item><title><![CDATA[常用数据库建模工具]]></title><link>https://blog.csdn.net/wren2004/article/details/79554817</link><guid>https://blog.csdn.net/wren2004/article/details/79554817</guid><author>wren2004</author><pubDate>Wed, 14 Mar 2018 15:03:10 +0800</pubDate><description><![CDATA[收藏：http://www.oschina.net/project/tag/83/db-modelIntellij下mybatis插件 MyBatisCodeHelper [国产]MyBatisCodeHelper 是 Intellij 上的 mybatis 插件，通过 java 对象生成建表 sql，dao，mapper xml 文件， 方便的生成 curd，另外可以通...上次更新: 2017...]]></description><category></category></item></channel></rss>