<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[陈家小子]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/chenpeggy</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; chenpeggy]]></copyright><item><title><![CDATA[Citus安装、配置与测试]]></title><link>https://blog.csdn.net/chenpeggy/article/details/114316940</link><guid>https://blog.csdn.net/chenpeggy/article/details/114316940</guid><author>chenpeggy</author><pubDate>Wed, 03 Mar 2021 15:30:44 +0800</pubDate><description><![CDATA[CitusDB是一个基于最新PostgreSQL（以下简称PG）构建的分布式数据库。它是一个PostgreSQL的扩展。它可对PG数据库进行伸缩以适应大数据的处理；可在集群中进行自动分片和碎片复制，运行在云端或者混合系统中。在使用过程中，它就像一个单一节点的PostgreSQL服务，对应用来说是透明的，因此，使用它在集群中可以轻松的添加节点。进行查询工作时，它可将查询分布到集群中的每个节点，可用于快速处理查询以及并行处理。
为了学习使用Citus，搭建如图1所示的分布式数据库测试环境，PC环境如表1所示。
]]></description><category></category></item><item><title><![CDATA[js-xlsx合并复杂表头导出]]></title><link>https://blog.csdn.net/chenpeggy/article/details/100610144</link><guid>https://blog.csdn.net/chenpeggy/article/details/100610144</guid><author>chenpeggy</author><pubDate>Sat, 07 Sep 2019 22:48:31 +0800</pubDate><description><![CDATA[先上效果图：



js-xlsx的功能与介绍直接上npmjs找吧，下面直接上代码：


const XLSX = require('js-xlsx');
//表头
let headers = {
  A1: { v: '项目' },
  B1: { v: '查询总数（人次）' },
  C1: { v: '咨询方式（人次）' },
  P1: { v: '咨询类型（件）' },
  Z1: { ...]]></description><category></category></item><item><title><![CDATA[postgresql根据查询日期所在月份的周数查找去年该月份对应周数的日期]]></title><link>https://blog.csdn.net/chenpeggy/article/details/80981980</link><guid>https://blog.csdn.net/chenpeggy/article/details/80981980</guid><author>chenpeggy</author><pubDate>Tue, 10 Jul 2018 10:33:40 +0800</pubDate><description><![CDATA[--  DROP FUNCTION get_last_month_day_by_week(timestamp without time zone);create or replace function get_last_year_day_by_week(in _date timestamp)returns varchar  as $$declare _this_year_week_date tim...]]></description><category></category></item><item><title><![CDATA[postgresql根据日期所在周数查找上个月该周数的日期]]></title><link>https://blog.csdn.net/chenpeggy/article/details/80981956</link><guid>https://blog.csdn.net/chenpeggy/article/details/80981956</guid><author>chenpeggy</author><pubDate>Tue, 10 Jul 2018 10:32:37 +0800</pubDate><description><![CDATA[--  DROP FUNCTION get_last_month_day_by_week(timestamp without time zone);create or replace function get_last_month_day_by_week(in _date timestamp)returns varchar  as $$declare _this_month_week_date t...]]></description><category></category></item><item><title><![CDATA[element ui 表格合并单元格]]></title><link>https://blog.csdn.net/chenpeggy/article/details/79974465</link><guid>https://blog.csdn.net/chenpeggy/article/details/79974465</guid><author>chenpeggy</author><pubDate>Tue, 17 Apr 2018 14:35:58 +0800</pubDate><description><![CDATA[先上效果图：再上代码：&amp;lt;template&amp;gt;
  &amp;lt;div&amp;gt;
    
    &amp;lt;el-table
      :data=&quot;tableData6&quot;
      :span-method=&quot;objectSpanMethod&quot;
      border
      style=&quot;width: 100%; margin-top: 20px&quot;&amp;gt;
      &amp;lt;]]></description><category></category></item><item><title><![CDATA[卸载postgresql]]></title><link>https://blog.csdn.net/chenpeggy/article/details/53127762</link><guid>https://blog.csdn.net/chenpeggy/article/details/53127762</guid><author>chenpeggy</author><pubDate>Fri, 11 Nov 2016 12:38:47 +0800</pubDate><description><![CDATA[卸载
dpkg --list | grep postgresql 
dpkg --purge 
or
sudo apt-get --purge autoremove postgresql*]]></description><category></category></item><item><title><![CDATA[POSTGRES:could not create lock file "/var/run/postgresql/.s.PGSQL.5433.lock": Permission denied]]></title><link>https://blog.csdn.net/chenpeggy/article/details/53127741</link><guid>https://blog.csdn.net/chenpeggy/article/details/53127741</guid><author>chenpeggy</author><pubDate>Fri, 11 Nov 2016 12:32:10 +0800</pubDate><description><![CDATA[chown -R postgres:postgres /var/run/postgresql]]></description><category></category></item><item><title><![CDATA[HBuilder连接夜神android模拟器]]></title><link>https://blog.csdn.net/chenpeggy/article/details/53099924</link><guid>https://blog.csdn.net/chenpeggy/article/details/53099924</guid><author>chenpeggy</author><pubDate>Wed, 09 Nov 2016 15:01:11 +0800</pubDate><description><![CDATA[1.切换到夜神模拟器目录下cd C:\Program Files (x86)\nox\Nox\bin
2.查看夜神模拟器端口nox_adb devices
3.切换至HBuilder目录下cd C:\Program Files (x86)\HBuilder.7.6.0.windows\HBuilder\tools
4.adb connect 127.0.0.1:62001]]></description><category></category></item><item><title><![CDATA[關於js繼承實現]]></title><link>https://blog.csdn.net/chenpeggy/article/details/51243295</link><guid>https://blog.csdn.net/chenpeggy/article/details/51243295</guid><author>chenpeggy</author><pubDate>Mon, 25 Apr 2016 16:33:42 +0800</pubDate><description><![CDATA[1.原型鏈實現。原型鏈這東西有點像作用域鏈。
    function SuperType() {
        this.property = true;
    }
    SuperType.prototype.getSuperType = function () {
        return this.property;
    };




    funct]]></description><category></category></item><item><title><![CDATA[關於js對象創建]]></title><link>https://blog.csdn.net/chenpeggy/article/details/51241181</link><guid>https://blog.csdn.net/chenpeggy/article/details/51241181</guid><author>chenpeggy</author><pubDate>Mon, 25 Apr 2016 11:51:53 +0800</pubDate><description><![CDATA[在js中，創建對象最簡單的方法就是new 一個Object的實例出來（new Object()），例如：
    var person=new Object();
    person.name='chan';
    person.age='11';
    person.sayHi=function(){alert('hi')};
後來，人們開始使用 對象字面量 來創建對象，語法如下]]></description><category></category></item><item><title><![CDATA[LinQ中Union&&Concat&&Intersect区别]]></title><link>https://blog.csdn.net/chenpeggy/article/details/44035447</link><guid>https://blog.csdn.net/chenpeggy/article/details/44035447</guid><author>chenpeggy</author><pubDate>Tue, 03 Mar 2015 11:00:35 +0800</pubDate><description><![CDATA[MSDN中相关方法的定义
Union：https://msdn.microsoft.com/zh-cn/library/bb341731(v=vs.90).aspx
Concat：https://msdn.microsoft.com/zh-cn/library/bb351755(v=vs.90).aspx
intersect：https://msdn.microsoft.com/zh-cn/]]></description><category></category></item><item><title><![CDATA[Android学习笔记--android.content.res.Resources$NotFoundException: String resource ID #0x0]]></title><link>https://blog.csdn.net/chenpeggy/article/details/41085799</link><guid>https://blog.csdn.net/chenpeggy/article/details/41085799</guid><author>chenpeggy</author><pubDate>Thu, 13 Nov 2014 19:47:25 +0800</pubDate><description><![CDATA[错误提示：
 android.content.res.Resources$NotFoundException: String resource ID #0x0

错误原因：


错误解决方法：]]></description><category></category></item><item><title><![CDATA[MSSQL2008数据库压缩]]></title><link>https://blog.csdn.net/chenpeggy/article/details/38678677</link><guid>https://blog.csdn.net/chenpeggy/article/details/38678677</guid><author>chenpeggy</author><pubDate>Tue, 19 Aug 2014 10:54:03 +0800</pubDate><description><![CDATA[USE [master]
GO
ALTER DATABASE DNName SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE DNName SET RECOVERY SIMPLE   --简单模式
GO
USE DNName 
GO
DBCC SHRINKFILE (N'DNName_Log' , 11, TRUNCATEONLY)
GO
USE]]></description><category></category></item><item><title><![CDATA[MSSQL中GetDate()各種格式]]></title><link>https://blog.csdn.net/chenpeggy/article/details/38437113</link><guid>https://blog.csdn.net/chenpeggy/article/details/38437113</guid><author>chenpeggy</author><pubDate>Fri, 08 Aug 2014 11:38:52 +0800</pubDate><description><![CDATA[Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM
Select CONVERT(varchar(100), GETDATE(), 1): 05/16/06
Select CONVERT(varchar(100), GETDATE(), 2): 06.05.16
Select CONVERT(varchar(100),]]></description><category></category></item><item><title><![CDATA[c#通过反射设置和获取值]]></title><link>https://blog.csdn.net/chenpeggy/article/details/38302251</link><guid>https://blog.csdn.net/chenpeggy/article/details/38302251</guid><author>chenpeggy</author><pubDate>Wed, 30 Jul 2014 16:04:19 +0800</pubDate><description><![CDATA[private object GetValue(T obj, string propertyName)
        {
            PropertyInfo propertyInfo;
            propertyInfo = typeof(T).GetProperty("DataTime", BindingFlags.GetProperty | BindingFlag]]></description><category></category></item><item><title><![CDATA[ASPNETPager条件查询分页的实现]]></title><link>https://blog.csdn.net/chenpeggy/article/details/37814917</link><guid>https://blog.csdn.net/chenpeggy/article/details/37814917</guid><author>chenpeggy</author><pubDate>Tue, 15 Jul 2014 14:32:29 +0800</pubDate><description><![CDATA[利用ASPNETPager支持URL分页的功能实现条件查询，翻页条件yiran]]></description><category></category></item><item><title><![CDATA[Visual Studio2010调用WebService步骤]]></title><link>https://blog.csdn.net/chenpeggy/article/details/24880765</link><guid>https://blog.csdn.net/chenpeggy/article/details/24880765</guid><author>chenpeggy</author><pubDate>Fri, 02 May 2014 17:06:52 +0800</pubDate><description><![CDATA[一、准备一个WebService 1.右键你的web应用=》添加=》新建项=》选择“Web服务”=》输入名称=》确定 2.工具栏=》调试=》开始执行 3.在浏览器可以得到一个url 二、新建一个控制台程序以调用WebService服务 1.新建控制台程序×1 2.右键“引用”=》“添加服务引用” 3.  4.  5.   6.在main（）中可以这么写： namespace.class 实例名=n]]></description><category></category></item><item><title><![CDATA[设计模式学习之迪米特法则]]></title><link>https://blog.csdn.net/chenpeggy/article/details/22802431</link><guid>https://blog.csdn.net/chenpeggy/article/details/22802431</guid><author>chenpeggy</author><pubDate>Wed, 02 Apr 2014 15:43:17 +0800</pubDate><description><![CDATA[迪米特法则（LoD）：也叫最少知识原则。如果两个类彼此不必彼此直接通信，那么这两个类就不应当发生直接的相互作用。如果其中一个类需要调用另一个类的某一个方法的话，可以通过第三者转发这个调用。
迪米特法则首先强调的前提是在类的结构设计上，每一个类都应当尽量降低成员的访问权限，也就是说，一个类包装好自己的private状态，不需要让别的类知道的字段或者行为就不要公开。它强调了类之间的松耦合。在设计程序]]></description><category></category></item><item><title><![CDATA[设计模式学习之代理模式]]></title><link>https://blog.csdn.net/chenpeggy/article/details/21995775</link><guid>https://blog.csdn.net/chenpeggy/article/details/21995775</guid><author>chenpeggy</author><pubDate>Mon, 24 Mar 2014 23:31:49 +0800</pubDate><description><![CDATA[代理模式：为其他对象提供一种代理以控制对这个对象的访问。
类图：


Subject类：定义了RealSubject和Proxy的共用接口，这样就在任何RealSubject的地方都可以使用Proxy。
RealSubject类：定义了Proxy所代表的真实实体。
Proxy类：保存一个引用是的代理可以访问实体，并提供一个与Subject的接口相同的接口，这样代理就可以用来替代实体。]]></description><category></category></item><item><title><![CDATA[VisualSVN设置空修改日志不可提交]]></title><link>https://blog.csdn.net/chenpeggy/article/details/21986299</link><guid>https://blog.csdn.net/chenpeggy/article/details/21986299</guid><author>chenpeggy</author><pubDate>Mon, 24 Mar 2014 20:47:31 +0800</pubDate><description><![CDATA[为了直接避免项目人员在使用svn时不写修改日志，费事一直提醒，干脆在提交的时候直接设置空修改日志不可提交！以下是做法：
1.打开visualSVN Server
2.打开Repositories
3.右键需要控制的项目=》所有任务=》manage hooks...
4.选择Hooks tab,点击Pre-commit hook=》edit
5.将以下的内容复制到form中
@echo ]]></description><category></category></item></channel></rss>