<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>芳草苑 &#187; 小小草</title>
	<atom:link href="http://blog.goods-pro.com/category/%e5%b0%8f%e5%b0%8f%e8%8d%89/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.goods-pro.com</link>
	<description>草的家园，花在哪里？</description>
	<lastBuildDate>Wed, 28 Jul 2010 11:46:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Magento practice: managing product images on server file system</title>
		<link>http://blog.goods-pro.com/1743/magento-practice-managing-product-images-on-server-file-system/</link>
		<comments>http://blog.goods-pro.com/1743/magento-practice-managing-product-images-on-server-file-system/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 11:46:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[小小草]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://blog.goods-pro.com/?p=1743</guid>
		<description><![CDATA[Magento 自带的管理产品图片的机制简单有效，但每次只能对单个产品进行管理，每次要 http upload 很费时。如果换个角度看，如果要成批更新产品图片，就不那么方便；如果要调用某个产品图片，必须先找到产品才能找到图片，因为 Magento 对上传后的文件进行了 dispretion 处理了文件路径，没有直观的办法可以直接浏览图片。
所以我的做法是，产品图片按产品属性归类，把整个文件夹 ftp 到 Magento 某个位置（或从 Magento 中独立出来，用一个静态文件服务器来管理图片，这样可以提供更方便的文件操作）。
然后在 magento/media/catalog/product 下建一个软连接（假设这个软连接名 static_image_linkedin）到产品图片目录的根。不要在 magento/media/catalog 这一级把 product 建为软连接，因为 Magento 会在 product 下建 cache 目录，从静态文件服务器角度看，这个 cache 是垃圾（我追求完美）。
然后，如果要指定产品使用某图片，必须把image, small_image, thumbnail, media_gallery 对应的值保存为人工指定位置的图片路径，该值的形式如 “/static_image_linkedin/nwf/recycled/green_bag.jpg&#8221;。Magento 原值形式如 &#8220;/g/r/green_bag.jpg&#8221;，我还没做出一个 GUI 帮助完成此项修改，依赖数据库直接操作。
我本有一个想法是修改 magento/app/code/core/Mage/Catalog/Model/Product/Media/Config.php 来改变产品图片目录的根，这样就不需要建软连接。但这样做的缺点是在移交 Magento 给别的 developers 时，我还得多一点额外交代。
]]></description>
		<wfw:commentRss>http://blog.goods-pro.com/1743/magento-practice-managing-product-images-on-server-file-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento extension: Buy X selection of products, Get another Y selection for free</title>
		<link>http://blog.goods-pro.com/1733/magento-extension-buy-x-selection-of-products-get-another-y-selection-for-free/</link>
		<comments>http://blog.goods-pro.com/1733/magento-extension-buy-x-selection-of-products-get-another-y-selection-for-free/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 18:48:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[小小草]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://blog.goods-pro.com/?p=1733</guid>
		<description><![CDATA[When to use:
Magento has a native &#8220;buy x get y&#8221; sales rule in promotions. Magento&#8217;s x and y refer to a same product. For example, if a product offer is &#8220;buy 3 get 2&#8243;, you have to buy 5 of this product then only pay for 3 of them.
Quite often the store owners want to [...]]]></description>
		<wfw:commentRss>http://blog.goods-pro.com/1733/magento-extension-buy-x-selection-of-products-get-another-y-selection-for-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Demystify 1and1 cloud server</title>
		<link>http://blog.goods-pro.com/1720/demystify-1and1-cloud-server/</link>
		<comments>http://blog.goods-pro.com/1720/demystify-1and1-cloud-server/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 19:57:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[小小草]]></category>
		<category><![CDATA[1and1]]></category>
		<category><![CDATA[virtualisation]]></category>

		<guid isPermaLink="false">http://blog.goods-pro.com/?p=1720</guid>
		<description><![CDATA[漫天都是“云服务”，但真让我有云的感觉的服务目前只有 Google 一家。最近买了 1&#38;1 cloud server，如果要评满意程度的话，只能是 5 out of 10 （购前期望过高）。
我原以为基于云的服务器可以一劳永逸、无限扩张，哪知 1&#38;1 cloud server cpu core, memory, hard disk 都有上限，cpu core 最多买 4 个，其实就相当于单个 quad core cpu。
1&#38;1 cloud server 性能也一般，或许还不如 vps，唯一优势就是比同等性能的 dedicated server 便宜一些。
]]></description>
		<wfw:commentRss>http://blog.goods-pro.com/1720/demystify-1and1-cloud-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento extension: rcah 0.1.1 is released</title>
		<link>http://blog.goods-pro.com/1717/magento-extension-rcah-0-1-1-is-released/</link>
		<comments>http://blog.goods-pro.com/1717/magento-extension-rcah-0-1-1-is-released/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 17:28:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[小小草]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://blog.goods-pro.com/?p=1717</guid>
		<description><![CDATA[Magento store owners are having a challenge when using rcah 0.1.0, especially for homepage. The nature of homepage is CMS, most content of it static.
Store owners want their visitors (especially first time visitors) to read static content on the homepage, but static content become obstacles filling in the central area of the page when visitors [...]]]></description>
		<wfw:commentRss>http://blog.goods-pro.com/1717/magento-extension-rcah-0-1-1-is-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When does php apc refresh cache data?</title>
		<link>http://blog.goods-pro.com/1712/when-does-php-apc-refresh-cache-data/</link>
		<comments>http://blog.goods-pro.com/1712/when-does-php-apc-refresh-cache-data/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 23:29:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[小小草]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.goods-pro.com/?p=1712</guid>
		<description><![CDATA[I did this experiment with php apc:
In php.ini I set include_path = /first/include/path:/second/include/path, but do not put a file in /first/include/path or /second/include/path, create test.php as simple as this

&#60;?php
require 'tobeincluded.php';

It will run into a fatal error. This error is obvious.
Then I create the file tobeincluded.php in /second/include/path, test.php now runs all right.
Then I create another [...]]]></description>
		<wfw:commentRss>http://blog.goods-pro.com/1712/when-does-php-apc-refresh-cache-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento does not remove storeview data when scope changes</title>
		<link>http://blog.goods-pro.com/1706/magento-does-not-remove-storeview-data-when-scope-changes/</link>
		<comments>http://blog.goods-pro.com/1706/magento-does-not-remove-storeview-data-when-scope-changes/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 22:28:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[小小草]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://blog.goods-pro.com/?p=1706</guid>
		<description><![CDATA[今天我做了个有趣的实验：

首先 Manage Attributes，设置某 product attribute &#8216;my_attr&#8217; scope 为 Store view
然后 Manage Products，为 my_attr 设置 default value &#8216;aaa&#8217;，再设置 store view (假设 storeId = 2) value &#8216;bbb&#8217;
然后 Manage Attributes， 把 my_attr scope 改为 Global
然后 Manage Products，Choose Store View (storeId = 2)，这时仍可见 my_attr 显示值 &#8216;bbb&#8217;。It means although my_attr scope is changed to &#8216;Global&#8217;, but old store view specific [...]]]></description>
		<wfw:commentRss>http://blog.goods-pro.com/1706/magento-does-not-remove-storeview-data-when-scope-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Class Mage_Sales_Model_Entity is deprecated</title>
		<link>http://blog.goods-pro.com/1684/class-mage_sales_model_entity-is-deprecated/</link>
		<comments>http://blog.goods-pro.com/1684/class-mage_sales_model_entity-is-deprecated/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 17:51:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[小小草]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://blog.goods-pro.com/?p=1684</guid>
		<description><![CDATA[今天终于搞清楚了一件困扰我已久的问题：在 Magento Sales Module 下有两个分支 Mage_Sales_Model_Entity 和 class Mage_Sales_Model_Mysql4，看上去文件结构比较相似，Sales 和其他模块一时用 Mage_Sales_Model_Entity，一时又用 Mage_Sales_Model_Mysql4。它们有什么区别？为什么要同时存在？有必要同时存在吗？如要删除一个，该删哪个保留哪个？
以前有个任务，想要给 order 等 entity 添加一些自定义属性，因为搞不清楚哪个在起作用，我把两个类都 extends 了，即 class Mage_Sales_Model_Entity_Setup 和 class Mage_Sales_Model_Mysql4_Setup。而因为其他一些原因，自定义属性并不能完全按照我的意愿工作，所以我也没办法再用替换法去测试哪个类在起作用。
今天重新回顾了这个问题，摸清 Mage_Sales_Model_Entity is deprecated。When extending sales entity, only need to extend classes in Mage_Sales_Model_Mysql4.
但是简单地删除 magento/app/code/core/Mage/Sales/Model/Entity 目录则会导致程序找不到必要的文件而出错。我的建议是了解 Mage_Sales_Model_Entity is deprecated 这个事实就可以了，如果一定想割了这个阑尾目录，得做一些调整：

搜索一下哪些 class extends Entity 下的类 (search for Mage_Sales_Model_Entity under magento folder)，把它们改成 extends Mysql4 下对应的类。据我搜索结果，只有 [...]]]></description>
		<wfw:commentRss>http://blog.goods-pro.com/1684/class-mage_sales_model_entity-is-deprecated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Contacts synchronisation fails on my Android after Google Mail became Gmail</title>
		<link>http://blog.goods-pro.com/1675/google-contacts-synchronisation-fails-on-my-android-after-google-mail-became-gmail/</link>
		<comments>http://blog.goods-pro.com/1675/google-contacts-synchronisation-fails-on-my-android-after-google-mail-became-gmail/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 22:56:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[小小草]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google contacts]]></category>

		<guid isPermaLink="false">http://blog.goods-pro.com/?p=1675</guid>
		<description><![CDATA[Google announced Google Mail is becoming Gmail in the UK in May. Then some day I decided to swap over my Google Account primary email address from @googlemail.com to @gmail.com. Everything continues to work as before. It should be working because I assume googlemail.com or gmail.com is alias to the other.
After quite a long time [...]]]></description>
		<wfw:commentRss>http://blog.goods-pro.com/1675/google-contacts-synchronisation-fails-on-my-android-after-google-mail-became-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade zend server php 5.2 to 5.3</title>
		<link>http://blog.goods-pro.com/1674/upgrade-zend-server-php-5-2-to-5-3/</link>
		<comments>http://blog.goods-pro.com/1674/upgrade-zend-server-php-5-2-to-5-3/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 22:12:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[小小草]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.goods-pro.com/?p=1674</guid>
		<description><![CDATA[The correct command to upgrade zend server php 5.2 to 5.3 is

yum -y remove zend-server-php-5.2 &#38;&#38; yum -y remove `rpm -qa&#124;grep zend&#124;xargs`
Use yum -y remove zend-server-php-5.2 is not enough.
]]></description>
		<wfw:commentRss>http://blog.goods-pro.com/1674/upgrade-zend-server-php-5-2-to-5-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1and1 cloud server datasheet</title>
		<link>http://blog.goods-pro.com/1672/1and1-cloud-server-datasheet/</link>
		<comments>http://blog.goods-pro.com/1672/1and1-cloud-server-datasheet/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 00:07:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[小小草]]></category>
		<category><![CDATA[1and1]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://blog.goods-pro.com/?p=1672</guid>
		<description><![CDATA[从 1&#38;1 新订了一个合同，cloud server，就是为了让 magento 跑快一些。那 1and1 的 cloud server 究竟能有多快呢？
先看看 cat /proc/cpuinfo 的情况
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 16
model		: 2
model name	: Quad-Core AMD Opteron(tm) Processor 2352
stepping	: 3
cpu MHz		: 2109.718
cache size	: 512 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush mmx fxsr [...]]]></description>
		<wfw:commentRss>http://blog.goods-pro.com/1672/1and1-cloud-server-datasheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
