http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 2015-06-08 resume 1. git 是分布式版本管理系统, 每台电脑上都有自己的版本库,svn ,cvs 是集中式版本管理,必须有服务器支持 2.git 常用命令: git add readme.txt ->>添加一个文件到版本库 git commit -m "append GPL" 提交 添加文件到Git仓库,分两步: 第一步,使用命令git add <file>,注意,可反复多次使用,添加多个文件; 第二步,使用命令git commit,完成。
Latest posts
create git in siteground host
1. excuter ssh-keygen -t dsa create ssh public key in siteground by ssh 2 copier .ssh/is_dsa.pub public key à bitbucket 3. ssh -T git@bitbucket.org tester login bitbucket 4.excuter git commande https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git https://www.siteground.com/tutorials/siteground-git/github-siteground.htm
language detecte by browser ( exception api url )
storeid=''; if(!$_SERVER=='/api/v2_soap/?wsdl') { $lang = substr($_SERVER, 0, 2); switch ($lang) { case "fr": $storeid = 2; break; case "en": //echo "PAGE EN"; $storeid = 1; break; default: $storeid = 1; break; } } $mageRunCode = isset($_SERVER) ? $_SERVER : $storeid;...
WordPress工作原理之程序文件执行顺序
WordPress工作原理之程序文件执行顺序(传说中的架构源码分析) 2014年10月13日 ⁄ WordPress教程 ⁄ 共 5236字 ⁄ 评论数 1 ⁄ 阅读 1,494 次 文章目录 第一步:加载index.php文件 第二步:加载wp-blog-header.php文件 第三步:加载wp-load.php文件(初始化) 第四步: 执行wp()函数(内容处理) 第五步:加载template-loader.php文件(主题应用) 在了解WordPress挂载机制时,一直有一个疑惑,到底是WordPress的内核源文件先执行还是主题文件里functions.php文件先执行。为了解决这个问题,想了解WordPress的工作原理,它是如何生成网页的,各程序文件的执行顺序是什么,于是有了这篇文章。 WordPress所有的前端页面生成都要经过根目录下的index.php文件(不是主题根目录),这是通过Web服务器的rewrite规则实现的。然后通过index.php文件一步步引导WordPress环境启动,再分析请求URL返回相应数据所组成的前台页面。以下将一步步分析源码文件,以此来了解WordPress整体框架及工作原理。 第一步:加载index.php文件 该文件有效源码如下: define('WP_USE_THEMES', true); # 定义是否加载主题文件,true为加载; require('./wp-blog-header.php'); # 加载wp-blog-header.php文件,该文件用于启动WordPress环境及模板; 第二步:加载wp-blog-header.php文件 该文件有效源码如下: 1 2 3 4 5 6...
delete order test
SET FOREIGN_KEY_CHECKS=0; TRUNCATE `sales_flat_creditmemo`; TRUNCATE `sales_flat_creditmemo_comment`; TRUNCATE `sales_flat_creditmemo_grid`; TRUNCATE `sales_flat_creditmemo_item`; TRUNCATE `sales_flat_invoice`; TRUNCATE `sales_flat_invoice_comment`; TRUNCATE `sales_flat_invoice_grid`; TRUNCATE `sales_flat_invoice_item`; TRUNCATE `sales_flat_order`; TRUNCATE `sales_flat_order_address`; TRUNCATE `sales_flat_order_grid`; TRUNCATE `sales_flat_order_item`; TRUNCATE `sales_flat_order_payment`; TRUNCATE `sales_flat_order_status_history`; TRUNCATE `sales_flat_quote`; TRUNCATE `sales_flat_quote_address`; TRUNCATE `sales_flat_quote_address_item`; TRUNCATE `sales_flat_quote_item`; TRUNCATE `sales_flat_quote_item_option`;...
Get rewritten product url in a different store
It was pointed out to me in one of the preceding articles that getting a product’s URL in a different store can get pretty complicated if the URL you want to get is rewritten. I decided to come up with...
4 Simple but Effective Ways to Improve Magento’s Performance
4 Simple but Effective Ways to Improve Magento’s Performance When Magento is not set up correctly, it will run slowly since it is a ‘heavy’ eCommerce CMS system. Even the most experienced web developers might miss the not so obvious...
add ssh in mac
user@localhost: ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/Users/user/.ssh/id_dsa): id_dsa Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in id_dsa. Your public key has...
magento check stock qty est out stock
$_product=Mage::getModel('catalog/product')->getCollection()->addAttributeToFilter('type_id', array('eq' => 'simple')); foreach($_product as $p) { $stock=Mage::getModel('cataloginventory/stock_item')->loadByProduct($p); if($stock->getIsInStock()==="0"&&$stock->getQty()>=1) { echo $p->getSku(); echo '<br/>'; echo $p->getId(); echo '<br/>'; } }
Zend Framework Database Query
Zend Framework Database Query Database Manipulation Create a controller Call / Create(Write) Database configuration setting Request data object creation Assign message (Success / Failure / Already exists) Create a view page to see the message or to redirect to the...