自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 THINKPHP 3.1.x 集成微信支付

支付宝和微信,在目前的生态下只能二选下,微信支付不得不接入

2015-06-10 17:43:40 3591

原创 Web performance optimization

Concept and tools

2014-08-26 19:07:53 711

原创 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关注的人

提示
确定要删除当前文章?
取消 删除