<?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>Thisme 移动大脑</title>
	<atom:link href="http://www.thisme.biz/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thisme.biz</link>
	<description>Magento 模板开发 &#124; Magento 功能开发 &#124; Linux 服务器运维 ----联系QQ: 1345589408</description>
	<lastBuildDate>Fri, 30 Mar 2012 02:47:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Magento 后台删除产品时同时删除产品图</title>
		<link>http://www.thisme.biz/magento-delet-product-and-img</link>
		<comments>http://www.thisme.biz/magento-delet-product-and-img#comments</comments>
		<pubDate>Fri, 30 Mar 2012 02:44:29 +0000</pubDate>
		<dc:creator>泡沫</dc:creator>
				<category><![CDATA[Magento 专栏]]></category>

		<guid isPermaLink="false">http://www.thisme.biz/?p=542</guid>
		<description><![CDATA[Magento默认删除产品的时候，产品不会同时被删除，如果经常要删除产品，服务器上会保存很多没用的产品图片，
我们可以通过重写Magento 的 Product 模块属性，来达到同时删除产品和图片的功能
新建个文件 app/code/local/Mage/Catalog/Model/Product.php，(覆盖老的功能)
复制 app/code/core/Mage/Catalog/Model/Product.php 文件里的代码
将原有的delete函数:

?View Code TEXT1
2
3
4
5
6
public function delete()
{
    parent::delete();
    Mage::dispatchEvent($this-&#62;_eventPrefix.'_delete_after_done', array($this-&#62;_eventObject=&#62;$this));
    return $this;
}

替换成：

?View Code TEXT1
2
3
4
5
6
7
8
9
10
11
public function delete() {
    foreach ($this-&#62;getMediaGallery('images') as $image) {
        $image_path = $this-&#62;getMediaConfig()-&#62;getMediaPath($image['file']);
        [...]]]></description>
		<wfw:commentRss>http://www.thisme.biz/magento-delet-product-and-img/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento 1.4 模板升级到 Magento 1.5</title>
		<link>http://www.thisme.biz/magento-1-4-%e6%a8%a1%e6%9d%bf%e5%8d%87%e7%ba%a7%e5%88%b0-magento-1-5</link>
		<comments>http://www.thisme.biz/magento-1-4-%e6%a8%a1%e6%9d%bf%e5%8d%87%e7%ba%a7%e5%88%b0-magento-1-5#comments</comments>
		<pubDate>Fri, 23 Mar 2012 06:37:30 +0000</pubDate>
		<dc:creator>泡沫</dc:creator>
				<category><![CDATA[Magento 专栏]]></category>
		<category><![CDATA[Magento 1.4 模板升级到 Magento 1.5]]></category>

		<guid isPermaLink="false">http://www.thisme.biz/?p=540</guid>
		<description><![CDATA[magento1.4的模板放在1.5， wishlist 功能是不能用的，登陆后点击添加到收藏夹会跳出错误页。看来magento对此功能的模板文件作了修改。如果你也有同样的问题，请用magento1.5的模板文件替换1.4的模板文件。
需要替换的文件路径为:
1.使用magento1.5的app\design\frontend\base\default\layout\wishlist.xml 替换你magento1.4模板文件夹layout文件下的wishlist.xml
2.使用magento1.5的app\design\frontend\base\default\template\wishlist 替换你的magento1.4模板的template中的wishlist整个文件夹
建议模板隔两个版本就不要用了。 如， 1.3 升级到1.4 再升级到1.5
]]></description>
		<wfw:commentRss>http://www.thisme.biz/magento-1-4-%e6%a8%a1%e6%9d%bf%e5%8d%87%e7%ba%a7%e5%88%b0-magento-1-5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux iptables 开启21 20端口, ftp 连接不上</title>
		<link>http://www.thisme.biz/iptables-20-21-ftp</link>
		<comments>http://www.thisme.biz/iptables-20-21-ftp#comments</comments>
		<pubDate>Wed, 15 Feb 2012 03:25:04 +0000</pubDate>
		<dc:creator>泡沫</dc:creator>
				<category><![CDATA[linux 技术]]></category>
		<category><![CDATA[系统运维]]></category>

		<guid isPermaLink="false">http://www.thisme.biz/?p=536</guid>
		<description><![CDATA[iptables会自上而下的对比规则﹐找到符合的就不再往下找了。根据这样的特性﹐我们可以将 NAT 外部界面进入的某些联机﹐在那行 syn 过滤规则之前 ACCEPT 进来。
iptables -A INPUT -m state &#8211;state NEW,ESTABLISHED,RELATED -j ACCEPT这条命令可以解决问题， 只开了20 21 是没用的，要是连被动的ftp服务器，边上21后，服务器端是随机端口和你的连接的，,ESTABLISHED,RELATED -j ACCEPT 可以解决此问题 
]]></description>
		<wfw:commentRss>http://www.thisme.biz/iptables-20-21-ftp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Use IE chrome don&#8217;t shopping</title>
		<link>http://www.thisme.biz/magento-use-ie-chrome-dont-shopping</link>
		<comments>http://www.thisme.biz/magento-use-ie-chrome-dont-shopping#comments</comments>
		<pubDate>Tue, 10 Jan 2012 05:39:13 +0000</pubDate>
		<dc:creator>泡沫</dc:creator>
				<category><![CDATA[Magento 专栏]]></category>

		<guid isPermaLink="false">http://www.thisme.biz/?p=534</guid>
		<description><![CDATA[This is a typical symptom of session management failure for several browsers. There are two things to solve this issue:
1. Tune up &#8220;Session Validation Settings&#8221;
login to your Magento Admin Panel => System => Configuration => Web => Session Validation Settings and turn everything off. These can cause total failure in the instance of any transparent [...]]]></description>
		<wfw:commentRss>http://www.thisme.biz/magento-use-ie-chrome-dont-shopping/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Magento的CMS Page 中调用图片和url</title>
		<link>http://www.thisme.biz/magento-cms-page-url-img</link>
		<comments>http://www.thisme.biz/magento-cms-page-url-img#comments</comments>
		<pubDate>Wed, 04 Jan 2012 09:18:48 +0000</pubDate>
		<dc:creator>泡沫</dc:creator>
				<category><![CDATA[Magento 专栏]]></category>

		<guid isPermaLink="false">http://www.thisme.biz/?p=531</guid>
		<description><![CDATA[在代码中调用图片和url是很简单的事， 但到CMS Page 中用phtml文件中的调用方法就不行了
我们需要使用几个参数来调用url和路径， 使用绝对地址可能到网站换域名的时候造成麻烦
1，CMS调用网站的Url  调用的是youdomain/about-us

?View Code TEXT1
&#60;a href=&#34;{{store direct_url=&#34;about-us&#34;}}&#34;&#62;About Us&#60;/a&#62;

2, 调用图片

?View Code TEXT1
&#60;img src=&#34;{{skin url='images/thisme.jpg'}}&#34; /&#62;

调用的是使用模板下images目录下的图片
]]></description>
		<wfw:commentRss>http://www.thisme.biz/magento-cms-page-url-img/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cisco asa 5500 系列 NAT 配置</title>
		<link>http://www.thisme.biz/cisco-asa-5500-nat-configure</link>
		<comments>http://www.thisme.biz/cisco-asa-5500-nat-configure#comments</comments>
		<pubDate>Fri, 30 Dec 2011 02:40:33 +0000</pubDate>
		<dc:creator>泡沫</dc:creator>
				<category><![CDATA[安全专区]]></category>

		<guid isPermaLink="false">http://www.thisme.biz/?p=529</guid>
		<description><![CDATA[cisco asa 5500 版本升级到8.3 以后， nat 命令就有所不同了， 主要看官方的文档可以看出来的， 下面就直接用官方的tem来写了， 非常的简单

?View Code TEXT1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
The following example configures static NAT for the real host 10.1.1.1 on the inside to 10.2.2.2 on the outside with DNS rewrite enabled.
&#160;
hostname(config)# object network my-host-obj1
&#160;
hostname(config-network-object)# host 10.1.1.1
&#160;
hostname(config-network-object)# nat (inside,outside) static 10.2.2.2 dns
&#160;
&#160;
The following example configures static NAT for the real host 10.1.1.1 on [...]]]></description>
		<wfw:commentRss>http://www.thisme.biz/cisco-asa-5500-nat-configure/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5 安装配置 Socks5 服务</title>
		<link>http://www.thisme.biz/centos-5-configure-install-socks5</link>
		<comments>http://www.thisme.biz/centos-5-configure-install-socks5#comments</comments>
		<pubDate>Thu, 29 Dec 2011 02:09:21 +0000</pubDate>
		<dc:creator>泡沫</dc:creator>
				<category><![CDATA[人生随想]]></category>

		<guid isPermaLink="false">http://www.thisme.biz/?p=525</guid>
		<description><![CDATA[1. 配置 Socks5 编译环境

?View Code TEXT1
2
yum -y install gcc automake autoconf libtool make
yum -y install gcc gcc-c++ bison patch unzip mlocate flex wget automake autoconf gd cpp gettext readline-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel libidn libidn-devel openldap openldap-devel [...]]]></description>
		<wfw:commentRss>http://www.thisme.biz/centos-5-configure-install-socks5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql V5.5 编译安装</title>
		<link>http://www.thisme.biz/mysql-v5-config-install</link>
		<comments>http://www.thisme.biz/mysql-v5-config-install#comments</comments>
		<pubDate>Mon, 19 Dec 2011 02:10:04 +0000</pubDate>
		<dc:creator>泡沫</dc:creator>
				<category><![CDATA[mysql 技术]]></category>
		<category><![CDATA[系统运维]]></category>
		<category><![CDATA[Mysql V5 编译安装]]></category>

		<guid isPermaLink="false">http://www.thisme.biz/?p=523</guid>
		<description><![CDATA[一，安装编译工具
yum install -y gcc gcc-c++ ncurses-devel
二， 下载软件
wget http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz
wget http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.15.tar.gz
三， mysql 安装需要cmake编译， 安装cmake

?View Code TEXT1
2
3
4
5
tar zxvf cmake-2.8.4.tar.gz
cd cmake-2.8.4
./bootstrap
make
make install

四， 安装mysql

?View Code TEXT1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/usr/sbin/groupadd mysql
/usr/sbin/useradd -g mysql mysql
cd /tmp
tar xvf mysql-5.5.15.tar.gz
cd mysql-5.5.15/
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
-DMYSQL_UNIX_ADDR=/usr/local/mysql/tmp/mysql.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_EXTRA_CHARSETS:STRING=utf8,gbk,gb2312 \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_MEMORY_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DMYSQL_DATADIR=/var/mysql/data \
&#160;
make
make install

五， 一些相关配置
chmod +w /usr/local/mysql
chown -R mysql:mysql /usr/local/mysql
ln -s /usr/local/mysql/lib/libmysqlclient.so.16 /usr/lib64/libmysqlclient.so.16
mkdir -p /var/mysql/
mkdir -p /var/mysql/data/
mkdir [...]]]></description>
		<wfw:commentRss>http://www.thisme.biz/mysql-v5-config-install/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Centos 查看CPU信息、机器型号等硬件信息</title>
		<link>http://www.thisme.biz/linux-centos-cpu-info</link>
		<comments>http://www.thisme.biz/linux-centos-cpu-info#comments</comments>
		<pubDate>Mon, 12 Dec 2011 08:37:42 +0000</pubDate>
		<dc:creator>泡沫</dc:creator>
				<category><![CDATA[linux 技术]]></category>
		<category><![CDATA[系统运维]]></category>
		<category><![CDATA[Linux Centos 查看CPU信息、机器型号等硬件信息]]></category>

		<guid isPermaLink="false">http://www.thisme.biz/?p=521</guid>
		<description><![CDATA[做性能测试需要记录性能测试机器的硬件信息，现将需要的命令总结如下：
查看CPU信息（型号）
# cat /proc/cpuinfo &#124; grep name &#124; cut -f2 -d: &#124; uniq -c
      8  Intel(R) Xeon(R) CPU            E5410   @ 2.33GHz
(看到有8个逻辑CPU, 也知道了CPU型号)
# cat /proc/cpuinfo &#124; grep physical &#124; uniq -c
      4 physical [...]]]></description>
		<wfw:commentRss>http://www.thisme.biz/linux-centos-cpu-info/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php编译时 出现configure: error: libjpeg.(a&#124;so) not found 错误的解决办法</title>
		<link>http://www.thisme.biz/php-configure-error-libjpeg-aso-not-found</link>
		<comments>http://www.thisme.biz/php-configure-error-libjpeg-aso-not-found#comments</comments>
		<pubDate>Tue, 06 Dec 2011 01:44:46 +0000</pubDate>
		<dc:creator>泡沫</dc:creator>
				<category><![CDATA[linux 技术]]></category>
		<category><![CDATA[系统运维]]></category>
		<category><![CDATA[php编译时 出现configure: error: libjpeg.(a|so) not found 错误的解决办法]]></category>

		<guid isPermaLink="false">http://www.thisme.biz/?p=519</guid>
		<description><![CDATA[在centos 6系统下编译安装PHP时，有以下错误， centos 5 好像没有

?View Code TEXT1
configure: error: libjpeg.(a&#124;so) not found


?View Code TEXT1
locate libjpeg.so

locate之后发现已经安装了libjpeg了，但是在/usr/lib目录下没有libjpeg.so这个文件，在/usr/lib64下是有的，虽然使用–with-jpeg-dir=/usr/lib64 依然无效，最后用

?View Code TEXT1
ln -s /usr/lib64/libjpeg.so /usr/lib/libjpeg.so

问题解决， libpng 报的错误解决方法一样
]]></description>
		<wfw:commentRss>http://www.thisme.biz/php-configure-error-libjpeg-aso-not-found/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

