- 博客(13)
- 收藏
- 关注
原创 Elasticsearch & IK Analyzer & Vagrant Ubuntu 12.04 LTS
1. Vagrant Ubuntu 12.04$ vagrant init hashicorp/precise32$ vi Vagrantfile# -*- mode: ruby -*-# vi: set ft=ruby :Vagrant.configure(2) do |config| config.vm.hostname = "es2" config.vm.box
2015-11-06 13:41:20 826
原创 Remote git pull to update multiple servers
/home/web/server_hostsserver1server2server3
2014-08-20 11:02:51 745
原创 How to serialize/unserialize type struct in GO
How to serialize/unserialize type struct in GOpackage mainimport ( "bytes" "encoding/gob" "fmt" "log")type Data struct { id int name string}func (d *Data) GobEncode() ([]byte, er
2014-07-30 17:32:51 1048
转载 GOLANG Http Counter
package mainimport ( "fmt" "log" "net/http")type Counter struct { n int}func (ctr *Counter) ServeHTTP(c http.ResponseWriter, req *http.Request) { fmt.Fprintf(c, "%08x\n", ctr) ctr.n
2014-07-30 16:18:25 544
原创 UTF-8 charset of Zend_Db
require_once $this->_getRootPath() . 'includes/config_ucenter_migration.php'; $pdoParams = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES UTF8;'); $params = array('host' => UC_DBHOST
2014-05-27 10:20:56 413
原创 Varnish cache for Magento
Varnish cache for Magento 实际方案1. Magento 1.8.1+2. Extensi AOE_STATIC
2014-05-23 16:25:37 874
原创 Easy mysql master-slave replication on ubuntu12.04LTS
1. Prepare the mysql master and slave(s) mysql server2. Dump/import data or just copy the
2014-05-23 16:18:00 592
原创 Translation in Magento shell script
Magento shell script执行过程中不会Initialize locale,如果需要在script中使用traslation,可以尝试..<?phprequire_once 'abstract.php';/** * Magento Compiler Shell Script * * @category Mage * @package Ma
2014-03-28 11:40:50 797
原创 Magento 1.8.x模板升级导致旧版模板无法登录
前台无法登录Magento 1.8.x模板升级导致旧版模板前台无法登录新模板增加登录表单安全验证,需修改旧版模板中登录表单app/design/frontend/PackageName/ThemeName/template/persistent/checkout/onepage/login.phtmlapp/design/frontend/PackageName/ThemeName/t
2014-02-13 18:36:27 889
原创 Gitignore for Magento CE
初始化Magento git repo时,由于Magento本身体积庞大, 最好参考Github的Magento.gitignoreGithub Magento GitignoreFor magento v1.8.x.modgit/app/code/community/Find/app/code/community/Phoenix/app/code/community/Cm/
2014-02-12 11:21:57 1112
原创 Wnmp下安装Magento超时
Wnmp下安装Magento超时问题由于Wnmp中Nginx参数fastcgi_connect_timeout默认为60s请将以下配置下加入nginx.conf或者vhost conf中 fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_connect_timeout 300;并修改php
2014-02-12 11:06:23 1105
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人