程序猿打油诗
君子坦荡荡,小人编程序。 商女不知亡国恨,一天到晚编程序。 举头望明月,低头编程序。 洛阳亲友如相问,就说我在编程序。 少壮不努力,老大编程序。 垂死病中惊坐起,今天还没编程序。 生当做人杰,死亦编程序。 人生自古谁无死,来生继续编程序。 众里寻她千百度,蓦然回首,那人却在编程序。 ......
sql
SELECT `e`.*, IF(_table_status.value_id > 0, _table_status.value, _table_status_default.value) AS `status`, IF(_table_visibility.value_id > 0, _table_visibility.value, _table_visibility_default.value) AS `visibility`, IF(_table_price.value_id > 0, _table_price.value, _table_price_default.value) AS `price`, IF(_table_name.value_id > 0, _table_name.value, _table_name_default.value) AS `name`, IF(_table_short_description.value_id > 0, _table_short_description.value, _table_short_description_default.value) AS `short_description`, `stock`.`qty`, `stock`.`is_in_stock`, `url`.`request_p......
phpcs
phpcs --report-file=/var/www/cs.txt --standard=Zend /var/www/sprint-003/app/code/local/Woger/MaxCache/Test/MaxCacheTest.php phpunit --bootstrap ./tests/phpunit/BaseMagentoTest.php --coverage-html ./show/ ./app/code/local/Woger/MaxCache/Test/MaxCacheTest.php ......
PHP CodeSniffer
PHP CodeSniffer PHP CodeSniffer是一个PHP的代码风格检测器,它根据预先设定好的PHP编码风格和规则,去检查应用中的代码风格情况,内置了ZEND,PEAR 的编码风格规则,当然开发者也可以进行自定义。项目的地址在:http://pear.php.net/package/PHP_CodeSniffer /redirected,安装方法如下: sudo pear install PHP_CodeSniffer phpcs --standard=Zend c:\phpcode 其中phpcs –standard后指定了使用Zend的建议代码风格标准进行检查,最后一个参数是要检查的PHP文件所在的目录。运行后......
Remove category path from product URL in magento
As great as Magento is there are a number of failings it can have from an search engine optimisation point of view and one of the biggest bugbears our SEO consultants have had with it is the number of different URLs a product can be accessed on. If product a is in category 1 and two then by default magento will create links to it on the following URLs. www.mystore.com/category-1/product-a.html www.mystore.com/category-2/product-a.html www.mystore.com/product-a.html This can cause duplicate content issues from a search engine point of view. One solutio......
ubuntu 网络
1. 检验是否可以连通,就使用ping命令ping 网关开始的时候总是现实unreachable 2. 设置IP sudo ifconfig eth0 133.133.133.190 netmask 255.255.255.0这样就算设置好了网卡eth0的IP地址和子网掩码 3. 设置网关 sudo route add default gw 133.133.133.40 4. ping 网关就可以ping通了 5. 设置Ubuntu DNS 修改/etc/resolv.conf,在其中加入 nameserver DNS的地址1 nameserver DNS的地址2 把上面的地址改成你自己的试下,我的也是ubuntu,之前也出现过不能上网的情况,我这边因为能ping通路由器,所以......
Magento base url without store code
$url = Mage::getConfig()->substDistroServerVars('{{base_url}}'); //baseurl Zend_Debug::dump($url);......
- Page:16/76 760 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(760)
- 日志(47)
- 感悟(15)
- testIT(4)
- PHP_XML(5)
- PHP(78)
- 明星(1)
- 笑话(31)
- 毕业论文(2)
- 生活(60)
- HTML(11)
- CSS(6)
- 考研(3)
- JS(21)
- 简历(6)
- svn(3)
- 音乐(1)
- 学习(7)
- jQuery(9)
- 英语口语(9)
- 书籍(2)
- magento(258)
- apache(12)
- 创意(4)
- 设计(4)
- 休闲(1)
- IT咨询(11)
- 工作(23)
- ubuntu(21)
- bysoft(1)
- zend(1)
- web(2)
- software(1)
- sql(5)
- 娱乐(5)
- photoshop(3)
- zend framework(2)
- nginx(3)
- 小说(1)
- 名言(1)
- 牛人(1)
- Mysql(6)
- vim(2)
- wordpress(8)
- drupal(1)