翻墙网关Ultimate版

原理 利用iproute2可根据fwmark选路的功能,结合iptables mangle表set-mark功能,实现基于GeoIP的IP包自动...

November 25, 2013

How to use Yii Framework CGridView for Active Records with Relations

When use CGridView to display Active Records with relationship, we should notice some points For CGridView’s Columns properties, you should use ‘relation[property]’ as your columns name (e.g. user[nick]). Or this column name will be fillet by CDataColumn::renderFilterCellContent() defined in Yii/zii/widgets/grid/CDataColumn.phps . (refer code strpos($this->name,'.')==false conditions normally in line 94). use $data->relation->property as CGridView’s Column’s value property. such as value=>'$data->user->nick' Create your search condition into Model’s search method by visit $_GET variable....

November 20, 2013

构建新SSH服务器的步骤

前置条件:以CentOS为模板 需要的相关软件:libnss_pam、pam_mysql、mysql、obfuscated-openssh 由于...

November 20, 2013

Rails默认的坑爹Session机制

和绝大多数框架一样,Rails对Session做了封装。封装之后的Session,我们通过session方法来访问。 比如,在存储的时候,我们...

November 11, 2013

Yii的AR使用多数据库

Yii的Active Record模型中,数据库联接是通过getDbConnection()来获取的。 默认情况下,该函数返回的是配置文件中的c...

October 24, 2013

开关面板及灯的需求

开关面板清单 类型 数量 说明 五孔插座 54 三孔16A空调插座 4 单联双控开关 3 三联双控开关 1 单开开关 4 双开开关 2 三开开关 1 单个网络面板 3 网络+有线电视...

September 15, 2013