<?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>妈妈爱你</title>
	<atom:link href="http://www.mamaloveu.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mamaloveu.com</link>
	<description>2012.01.02</description>
	<lastBuildDate>Fri, 18 May 2012 14:33:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>python 自动登录babytree,然后打卡领工资 ;)</title>
		<link>http://www.mamaloveu.com/python-%e8%87%aa%e5%8a%a8%e7%99%bb%e5%bd%95babytree%e7%84%b6%e5%90%8e%e6%89%93%e5%8d%a1%e9%a2%86%e5%b7%a5%e8%b5%84/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=python-%25e8%2587%25aa%25e5%258a%25a8%25e7%2599%25bb%25e5%25bd%2595babytree%25e7%2584%25b6%25e5%2590%258e%25e6%2589%2593%25e5%258d%25a1%25e9%25a2%2586%25e5%25b7%25a5%25e8%25b5%2584</link>
		<comments>http://www.mamaloveu.com/python-%e8%87%aa%e5%8a%a8%e7%99%bb%e5%bd%95babytree%e7%84%b6%e5%90%8e%e6%89%93%e5%8d%a1%e9%a2%86%e5%b7%a5%e8%b5%84/#comments</comments>
		<pubDate>Sun, 13 May 2012 08:32:45 +0000</pubDate>
		<dc:creator>妈妈爱你</dc:creator>
				<category><![CDATA[饭碗]]></category>

		<guid isPermaLink="false">http://www.mamaloveu.com/?p=241</guid>
		<description><![CDATA[抄袭了爸爸登陆feition的代码, 妈妈完成了这个 babytree有个打卡领工资的功能,可以领水果,但是得每天登陆,太麻烦了&#8230; 上个星期问爸爸怎么办,爸爸说可以用python写. 但是妈妈不会&#8230; 这个星期,爸爸写好了fetion的登陆代码,所以妈妈就拿来用拉;) 拿来测试了下,可以哦 呵呵, 然后可以把这个py文件存档 然后再window 计划任务中加入这个启动程序 然后设定每天开机的时候执行就可以了 不过前提是 你得安装了 python]]></description>
			<content:encoded><![CDATA[<p>抄袭了爸爸登陆feition的代码, 妈妈完成了这个<br />
babytree有个打卡领工资的功能,可以领水果,但是得每天登陆,太麻烦了&#8230; 上个星期问爸爸怎么办,爸爸说可以用python写. 但是妈妈不会&#8230;<br />
这个星期,爸爸写好了fetion的登陆代码,所以妈妈就拿来用拉;)<br />
拿来测试了下,可以哦<br />
呵呵,</p>
<pre class="brush: php; title: ; notranslate">
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib,urllib2, httplib, cookielib

class Babytree():

    def __init__(self):
        self.url_login = 'http://www.babytree.com/common/reg.ajax.php'
        self.url_daka = 'http://www.babytree.com/fruitmall/signin.php'
        self.data = self.getdict(strs = '''
email:xxxx@xxx.com
password:xxxxxx
p:1
action:login
        '''
        )

    def getdict(self,strs):
        dict={}
        for i in strs.strip().split('\n'):
            #print i
            arr  = i.split(':',2)
            dict[str(arr[0])] = str(arr[1])
        return dict

    def initCookie(self):
        cj = cookielib.LWPCookieJar()
        processCj = urllib2.HTTPCookieProcessor(cj)
        return processCj 

    def login(self):
        processCj = self.initCookie()
        print processCj
        opener = urllib2.build_opener(processCj)
        urllib2.install_opener(opener)
        print 'Logining..'
        args = self.data;
        print args
        req = urllib2.Request(self.url_login, urllib.urlencode(args))
        jump = opener.open(req)
        page = jump.read()
        if 'fail' in page :
            print 'login failed'
        else :
            print 'login ok'

    def daka(self):
        self.login()
        dakastr = urllib2.urlopen(urllib2.Request(self.url_daka))
        status = dakastr.read().strip()
        print status

baby = Babytree()
baby.daka()
</pre>
<p>然后可以把这个py文件存档<br />
然后再window <a href="http://tech.163.com/05/1117/14/22P26LTL000915A0.html">计划任务</a>中加入这个启动程序<br />
然后设定每天开机的时候执行就可以了<br />
不过前提是 你得安装了<a href="http://bbs.chinaunix.net/thread-1240849-1-1.html"> python </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mamaloveu.com/python-%e8%87%aa%e5%8a%a8%e7%99%bb%e5%bd%95babytree%e7%84%b6%e5%90%8e%e6%89%93%e5%8d%a1%e9%a2%86%e5%b7%a5%e8%b5%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>4个月的宝宝</title>
		<link>http://www.mamaloveu.com/4%e4%b8%aa%e6%9c%88%e7%9a%84%e5%ae%9d%e5%ae%9d/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=4%25e4%25b8%25aa%25e6%259c%2588%25e7%259a%2584%25e5%25ae%259d%25e5%25ae%259d</link>
		<comments>http://www.mamaloveu.com/4%e4%b8%aa%e6%9c%88%e7%9a%84%e5%ae%9d%e5%ae%9d/#comments</comments>
		<pubDate>Sun, 06 May 2012 09:43:26 +0000</pubDate>
		<dc:creator>妈妈爱你</dc:creator>
				<category><![CDATA[宝贝]]></category>

		<guid isPermaLink="false">http://www.mamaloveu.com/?p=238</guid>
		<description><![CDATA[51假期回家看了宝宝,头发长长了好多,竖在头顶上,后脑勺那块的庄稼还是没有长出来&#8230; 宝宝开始想翻身了,当爸爸拉他的小手时候,他很想借助爸爸的力量将自己翻过来,but in vain .当爸爸帮忙翻过身时,他很激动,想自己移动双臂往前爬,呵呵. 爸爸拿小玩具逗他,他很开心的大笑,真是可爱的宝贝! 婆婆说整个夜晚都不拉尿,等到白天再拉,就这么几天,已经把妈妈的裤子尿湿了, 昨天小弟弟出世了,我家团宝当哥哥了! 加油哦.团宝 妈妈听到一个音乐送给你: growing up by Lullatone 希望你快快健康的成长!]]></description>
			<content:encoded><![CDATA[<p>51假期回家看了宝宝,头发长长了好多,竖在头顶上,后脑勺那块的庄稼还是没有长出来&#8230;<br />
宝宝开始想翻身了,当爸爸拉他的小手时候,他很想借助爸爸的力量将自己翻过来,but in vain .当爸爸帮忙翻过身时,他很激动,想自己移动双臂往前爬,呵呵.<br />
爸爸拿小玩具逗他,他很开心的大笑,真是可爱的宝贝!<br />
婆婆说整个夜晚都不拉尿,等到白天再拉,就这么几天,已经把妈妈的裤子尿湿了, 昨天小弟弟出世了,我家团宝当哥哥了! 加油哦.团宝<br />
妈妈听到一个音乐送给你:<br />
<iframe width="400" height="100" style="position: relative; display: block; width: 400px; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/track=534242589/size=venti/bgcol=FFFFFF/linkcol=4285BB/" allowtransparency="true" frameborder="0"><a href="http://lullatone.bandcamp.com/track/growing-up">growing up by Lullatone</a></iframe></p>
<p>希望你快快健康的成长!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mamaloveu.com/4%e4%b8%aa%e6%9c%88%e7%9a%84%e5%ae%9d%e5%ae%9d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>test</title>
		<link>http://www.mamaloveu.com/test/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=test</link>
		<comments>http://www.mamaloveu.com/test/#comments</comments>
		<pubDate>Sun, 06 May 2012 09:33:34 +0000</pubDate>
		<dc:creator>妈妈爱你</dc:creator>
				<category><![CDATA[音乐]]></category>

		<guid isPermaLink="false">http://www.mamaloveu.com/?p=236</guid>
		<description><![CDATA[Soundtracks for Everyday Adventures by Lullatone]]></description>
			<content:encoded><![CDATA[<p><iframe width="400" height="100" style="position: relative; display: block; width: 400px; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album=2161956980/size=venti/bgcol=FFFFFF/linkcol=4285BB/" allowtransparency="true" frameborder="0"><a href="http://lullatone.bandcamp.com/album/soundtracks-for-everyday-adventures">Soundtracks for Everyday Adventures by Lullatone</a></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mamaloveu.com/test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在bandcamp上 喜欢上这首歌 Medication</title>
		<link>http://www.mamaloveu.com/%e5%9c%a8bandcamp%e4%b8%8a-%e5%96%9c%e6%ac%a2%e4%b8%8a%e8%bf%99%e9%a6%96%e6%ad%8c-medication/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%259c%25a8bandcamp%25e4%25b8%258a-%25e5%2596%259c%25e6%25ac%25a2%25e4%25b8%258a%25e8%25bf%2599%25e9%25a6%2596%25e6%25ad%258c-medication</link>
		<comments>http://www.mamaloveu.com/%e5%9c%a8bandcamp%e4%b8%8a-%e5%96%9c%e6%ac%a2%e4%b8%8a%e8%bf%99%e9%a6%96%e6%ad%8c-medication/#comments</comments>
		<pubDate>Sun, 06 May 2012 08:52:04 +0000</pubDate>
		<dc:creator>妈妈爱你</dc:creator>
				<category><![CDATA[音乐]]></category>

		<guid isPermaLink="false">http://www.mamaloveu.com/?p=229</guid>
		<description><![CDATA[http://newbuild.bandcamp.com/track/medication-introduction-version 工作的时候可以一直放着听&#8230;.]]></description>
			<content:encoded><![CDATA[<p>http://newbuild.bandcamp.com/track/medication-introduction-version</p>
<p>工作的时候可以一直放着听&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mamaloveu.com/%e5%9c%a8bandcamp%e4%b8%8a-%e5%96%9c%e6%ac%a2%e4%b8%8a%e8%bf%99%e9%a6%96%e6%ad%8c-medication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows apache+php5.3+mysql+phpmyadmin</title>
		<link>http://www.mamaloveu.com/windows-apachephp5-3mysqlphpmyadmin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=windows-apachephp5-3mysqlphpmyadmin</link>
		<comments>http://www.mamaloveu.com/windows-apachephp5-3mysqlphpmyadmin/#comments</comments>
		<pubDate>Sun, 06 May 2012 08:39:46 +0000</pubDate>
		<dc:creator>妈妈爱你</dc:creator>
				<category><![CDATA[饭碗]]></category>

		<guid isPermaLink="false">http://www.mamaloveu.com/?p=227</guid>
		<description><![CDATA[I was using appserv before, it is a small, great and useful software , I used it for a couple of years . But once I want to upgrade my]]></description>
			<content:encoded><![CDATA[<p>I was using appserv before, it is a small, great and useful software , I used it for a couple of years . But once I want to upgrade my php5.2 to php5.3, I found it is very hard, I need to download new version appserv again, So I want to install the enviroment in windows myself. there is a lot of documents that i can refer to, i found this article very help :</p>
<p>http://www.neilcrookes.com/2008/10/30/installing-apache-php-mysql-and-phpmyadmin-on-windows-xp-the-right-way/</p>
<p>here is my steps:<br />
1, downlaod all the essential softwares:</p>
<p>http://httpd.apache.org/download.cgi</p>
<p>http://windows.php.net/download/</p>
<p>http://www.mysql.com/downloads/mysql/#downloads</p>
<p>http://www.phpmyadmin.net/home_page/downloads.php</p>
<p>2, first install apache,when finished, open httpd.conf<br />
   DirectoryIndex index.html index.php<br />
   uncomment<br />
  <code> LoadModulevhost_alias_module modules/mod_vhost_alias.so<br />
   LoadModulerewrite_somodule modules/mod_rewrite.so</code></p>
<p>   and add<br />
  <code> LoadModule php5_module C:\webservice\php-5.3.10\php5apache2_2.dll<br />
   PHPIniDir "C:\webservice\php-5.3.10"<br />
   AddType application/x-httpd-php .php</code></p>
<p>   second: install php<br />
   and edit php.ini<br />
   open some dlls and make sure the session.save_path should be writeable.<br />
 3, install mysql<br />
 5, put phpmyadmin to C:\webservice</p>
<p>在此过程中我遇到的一些问题<br />
1, 安装好后,apache 图标那里显示No services installed, 于是google baidu</p>
<p>http://www.qiujicai.com/?post=4</p>
<p>http://ml365.iteye.com/blog/839454</p>
<p>    其实主要就是<br />
  <code>  httpd.exe -k install -n apache2  添加apache 服务<br />
    net start apache2</code><br />
2, 报错提示: httpd.exe: Could not reliably determine the server&#8217;s fully qualified domain name, using 172.162.xx.xx for ServerName<br />
   这个是我在httpd.conf中没有打开 ServerName localhost:80<br />
3, 安装phpmyadmin的时候的设置<br />
   <code><IfModule mod_alias.c><br />
     Alias /pha "C:/webservice/phpmyadmin"<br />
    </IfModule><br />
<Directory "C:/webservice/phpmyadmin"><br />
    	Options Indexes FollowSymLinks<br />
    	AllowOverride None<br />
    	order deny,allow<br />
    	allow from localhost<br />
</Directory></code></p>
<p>vhost.conf:<br />
<code><br />
NameVirtualHost  *:80</p>
<p>#<br />
# VirtualHost example:<br />
# Almost any Apache directive may go into a VirtualHost container.<br />
# The first VirtualHost section is used for all requests that do not<br />
# match a ServerName or ServerAlias in any <VirtualHost> block.<br />
#</p>
<p><VirtualHost *:80><br />
    ServerAdmin webmaster@dummy-host2.localhost<br />
    DocumentRoot "C:/webservice/Apache2.2/htdocs/"<br />
    ServerName localhost<br />
    ErrorLog "logs/localhost-error.log"<br />
    CustomLog "logs/localhost-access.log" common<br />
</VirtualHost><br />
</code><br />
php.ini<br />
<code>session.auto_start = 1</code></p>
<p>有些php5.3不用了内置了的库,php_zip.dll php_mhash.dll</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mamaloveu.com/windows-apachephp5-3mysqlphpmyadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento 清除order，products,category,customer的脚本</title>
		<link>http://www.mamaloveu.com/magento-%e6%b8%85%e9%99%a4order%ef%bc%8cproductscategorycustomer%e7%9a%84%e8%84%9a%e6%9c%ac/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=magento-%25e6%25b8%2585%25e9%2599%25a4order%25ef%25bc%258cproductscategorycustomer%25e7%259a%2584%25e8%2584%259a%25e6%259c%25ac</link>
		<comments>http://www.mamaloveu.com/magento-%e6%b8%85%e9%99%a4order%ef%bc%8cproductscategorycustomer%e7%9a%84%e8%84%9a%e6%9c%ac/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 13:13:53 +0000</pubDate>
		<dc:creator>妈妈爱你</dc:creator>
				<category><![CDATA[饭碗]]></category>

		<guid isPermaLink="false">http://www.mamaloveu.com/?p=222</guid>
		<description><![CDATA[1，清除orders用了网上找来的： 文章：http://inchoo.net/ecommerce/magento/delete-test-orders-in-magento/ 下载地址：http://inchoo.net/wp-content/uploads/2011/12/deletetestorders.zip 用过了 是可以的 2，清除products Mage::app(&#8216;admin&#8217;); $mp = Mage::getModel(&#8216;catalog/product&#8217;) ->getCollection(); foreach($mp as $p) { echo $p->getId().&#8217; mgb_sample_card is deleted. &#8216;; $p->delete(); } 注意：一定是Mage::app(&#8216;admin&#8217;); 不然会出现Cannot complete this operation from non-admin]]></description>
			<content:encoded><![CDATA[<p>1，清除orders用了网上找来的：<br />
文章：http://inchoo.net/ecommerce/magento/delete-test-orders-in-magento/<br />
下载地址：http://inchoo.net/wp-content/uploads/2011/12/deletetestorders.zip<br />
用过了 是可以的</p>
<p>2，清除products<br />
Mage::app(&#8216;admin&#8217;);<br />
$mp = Mage::getModel(&#8216;catalog/product&#8217;)<br />
->getCollection();<br />
foreach($mp as $p) {<br />
	echo $p->getId().&#8217; mgb_sample_card is deleted.  &#8216;;<br />
	$p->delete();</p>
<p>}</p>
<p>注意：一定是Mage::app(&#8216;admin&#8217;); 不然会出现Cannot complete this operation from non-admin area</p>
<p>3，清除category<br />
Mage::app(&#8216;admin&#8217;);<br />
$category = Mage::getModel(&#8216;catalog/category&#8217;)->getCollection()->addFieldToFilter(&#8216;parent_id&#8217;,2);</p>
<p>foreach($category as $p) {<br />
	echo $p->getId().&#8217; category is deleted.  &#8216;;<br />
	$p->delete();</p>
<p>}</p>
<p>4，清除customer 也是网上找来的：<br />
TRUNCATE `customer_address_entity`;<br />
TRUNCATE `customer_address_entity_datetime`;<br />
TRUNCATE `customer_address_entity_decimal`;<br />
TRUNCATE `customer_address_entity_int`;<br />
TRUNCATE `customer_address_entity_text`;<br />
TRUNCATE `customer_address_entity_varchar`;<br />
TRUNCATE `customer_entity`;<br />
TRUNCATE `customer_entity_datetime`;<br />
TRUNCATE `customer_entity_decimal`;<br />
TRUNCATE `customer_entity_int`;<br />
TRUNCATE `customer_entity_text`;<br />
TRUNCATE `customer_entity_varchar`;<br />
TRUNCATE `log_customer`;<br />
TRUNCATE `log_visitor`;<br />
TRUNCATE `log_visitor_info`;</p>
<p>ALTER TABLE `customer_address_entity` AUTO_INCREMENT=1;<br />
ALTER TABLE `customer_address_entity_datetime` AUTO_INCREMENT=1;<br />
ALTER TABLE `customer_address_entity_decimal` AUTO_INCREMENT=1;<br />
ALTER TABLE `customer_address_entity_int` AUTO_INCREMENT=1;<br />
ALTER TABLE `customer_address_entity_text` AUTO_INCREMENT=1;<br />
ALTER TABLE `customer_address_entity_varchar` AUTO_INCREMENT=1;<br />
ALTER TABLE `customer_entity` AUTO_INCREMENT=1;<br />
ALTER TABLE `customer_entity_datetime` AUTO_INCREMENT=1;<br />
ALTER TABLE `customer_entity_decimal` AUTO_INCREMENT=1;<br />
ALTER TABLE `customer_entity_int` AUTO_INCREMENT=1;<br />
ALTER TABLE `customer_entity_text` AUTO_INCREMENT=1;<br />
ALTER TABLE `customer_entity_varchar` AUTO_INCREMENT=1;<br />
ALTER TABLE `log_customer` AUTO_INCREMENT=1;<br />
ALTER TABLE `log_visitor` AUTO_INCREMENT=1;<br />
ALTER TABLE `log_visitor_info` AUTO_INCREMENT=1;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mamaloveu.com/magento-%e6%b8%85%e9%99%a4order%ef%bc%8cproductscategorycustomer%e7%9a%84%e8%84%9a%e6%9c%ac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>magento 500 internal error 错误 原来gd库没装</title>
		<link>http://www.mamaloveu.com/magento-500-internal%e7%9a%84%e9%94%99%e8%af%af-%e5%8e%9f%e6%9d%a5gd%e5%ba%93%e6%b2%a1%e8%a3%85/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=magento-500-internal%25e7%259a%2584%25e9%2594%2599%25e8%25af%25af-%25e5%258e%259f%25e6%259d%25a5gd%25e5%25ba%2593%25e6%25b2%25a1%25e8%25a3%2585</link>
		<comments>http://www.mamaloveu.com/magento-500-internal%e7%9a%84%e9%94%99%e8%af%af-%e5%8e%9f%e6%9d%a5gd%e5%ba%93%e6%b2%a1%e8%a3%85/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 08:56:21 +0000</pubDate>
		<dc:creator>妈妈爱你</dc:creator>
				<category><![CDATA[饭碗]]></category>

		<guid isPermaLink="false">http://www.mamaloveu.com/?p=214</guid>
		<description><![CDATA[在迁移服务器的时候，遇到500 internal的错误，好的，我认为是.htaccess 的问题， 1，去看下rewrite 模块开启了没有，好的，开启了。 2，那么去看下http.conf里面 对于当前的文件夹的访问权限是怎么定义的？好的，去看了，没有allowoverride，所以添加： < Directory "/var/www/blabla" > Options FollowSymLinks AllowOverride All Order allow,deny Allow from all < /Directory > 3，重启后，好了，结果又有问题出现了，在打开产品列表以及产品detail页面的时候，页面只有显示一半，刷新n多次也不行。于是担心是否程序问题，用chrome的F12打开了debug，发现又是出现500 错误。这是为什么？？检查发现图片的src那里程序就中断了。于是开始找源代码： 先是list.phtml, 找到： &#038;ltimg src="" width="155"]]></description>
			<content:encoded><![CDATA[<p>在迁移服务器的时候，遇到500 internal的错误，好的，我认为是.htaccess 的问题，<br />
1，去看下rewrite 模块开启了没有，好的，开启了。<br />
2，那么去看下http.conf里面 对于当前的文件夹的访问权限是怎么定义的？好的，去看了，没有allowoverride，所以添加：<br />
<code><br />
< Directory "/var/www/blabla" ><br />
    Options FollowSymLinks<br />
    AllowOverride All<br />
    Order allow,deny<br />
    Allow from all<br />
< /Directory ></code><br />
3，重启后，好了，结果又有问题出现了，在打开产品列表以及产品detail页面的时候，页面只有显示一半，刷新n多次也不行。于是担心是否程序问题，用chrome的F12打开了debug，发现又是出现500 错误。这是为什么？？检查发现图片的src那里程序就中断了。于是开始找源代码：<br />
先是list.phtml, 找到：<br />
<code>&#038;ltimg src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(155,116); ?>" width="155" height="116" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" </code><br />
想到是否是图片生成不了，media下的权限设错了？查看后发现权限都对，于是继续看源代码：<br />
最好发现是<br />
<code><br />
public function getImageProcessor()<br />
    {<br />
        if( !$this->_processor ) {<br />
//            var_dump($this->_checkMemory());<br />
//            if (!$this->_checkMemory()) {<br />
//                $this->_baseFile = null;<br />
//            }<br />
            $this->_processor = new Varien_Image($this->getBaseFile());<br />
        }<br />
        $this->_processor->keepAspectRatio($this->_keepAspectRatio);<br />
        $this->_processor->keepFrame($this->_keepFrame);<br />
        $this->_processor->keepTransparency($this->_keepTransparency);<br />
        $this->_processor->constrainOnly($this->_constrainOnly);<br />
        $this->_processor->backgroundColor($this->_backgroundColor);<br />
        $this->_processor->quality($this->_quality);<br />
        return $this->_processor;<br />
    }<br />
</code><br />
中<br />
<code> $this->_processor = new Varien_Image($this->getBaseFile());</code><br />
这里就出现错误了，进入这个类，感觉应该有可能是gd库没有装的原因！于是去验证，果然如此。<br />
然后yum install php-gd 重启/etc/init.d/httpd restart 问题解决</p>
<p>总结：<br />
1， chrome是个好browser，F12很有用<br />
2， magento需要的php模块一个不能少：<br />
php 的module 经常会安装在：/usr/lib64/php/modules<br />
在windows上经常是需要：</p>
<p>extension=php_curl.dll<br />
extension=php_mcrypt.dll<br />
extension=php_gd2.dll<br />
extension=php_pdo.dll<br />
extension=php_mysql.dll<br />
extension=php_pdo_mysql.dll<br />
3， magento需要的apache模块也一个不能少：<br />
基本上只需要开启mod_rewrite</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mamaloveu.com/magento-500-internal%e7%9a%84%e9%94%99%e8%af%af-%e5%8e%9f%e6%9d%a5gd%e5%ba%93%e6%b2%a1%e8%a3%85/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>钢琴学习课程</title>
		<link>http://www.mamaloveu.com/%e9%92%a2%e7%90%b4%e5%ad%a6%e4%b9%a0%e8%af%be%e7%a8%8b/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e9%2592%25a2%25e7%2590%25b4%25e5%25ad%25a6%25e4%25b9%25a0%25e8%25af%25be%25e7%25a8%258b</link>
		<comments>http://www.mamaloveu.com/%e9%92%a2%e7%90%b4%e5%ad%a6%e4%b9%a0%e8%af%be%e7%a8%8b/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 14:42:51 +0000</pubDate>
		<dc:creator>妈妈爱你</dc:creator>
				<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://www.mamaloveu.com/?p=208</guid>
		<description><![CDATA[上海谭世然钢琴ok琴吧中山公园店 详细地址 长宁路1277弄5号502中山公寓紫薇楼，招商银行斜对面 交通信息 地铁2号线中山公园站，8号口出，过红绿灯向西走，直行100米即到。地铁3、4号线，中山公园站，3号口出，向西走直行100米即到。 上课时间 周一到周日10:00-21:00 上海柏斯琴行普陀总店 详细地址 普陀区中山北路1961号3楼，镇坪路口 交通信息 地铁3、4、7号线，镇坪路站，3号出口右拐，至丁字路口再左拐，到十字路口即看见柏斯琴行了。 上课时间 周二至周日11:00-20:00 上海统一约课电话：021-68365968，15000660447]]></description>
			<content:encoded><![CDATA[<p>上海谭世然钢琴ok琴吧中山公园店<br />
详细地址	长宁路1277弄5号502中山公寓紫薇楼，招商银行斜对面<br />
交通信息	地铁2号线中山公园站，8号口出，过红绿灯向西走，直行100米即到。地铁3、4号线，中山公园站，3号口出，向西走直行100米即到。<br />
上课时间	周一到周日10:00-21:00<br />
上海柏斯琴行普陀总店<br />
详细地址	普陀区中山北路1961号3楼，镇坪路口<br />
交通信息	地铁3、4、7号线，镇坪路站，3号出口右拐，至丁字路口再左拐，到十字路口即看见柏斯琴行了。<br />
上课时间	周二至周日11:00-20:00<br />
上海统一约课电话：021-68365968，15000660447</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mamaloveu.com/%e9%92%a2%e7%90%b4%e5%ad%a6%e4%b9%a0%e8%af%be%e7%a8%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>start working under ubuntu at home, and still win7 at company.</title>
		<link>http://www.mamaloveu.com/start-working-under-ubuntu-at-home-and-still-win7-at-company/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=start-working-under-ubuntu-at-home-and-still-win7-at-company</link>
		<comments>http://www.mamaloveu.com/start-working-under-ubuntu-at-home-and-still-win7-at-company/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 15:19:53 +0000</pubDate>
		<dc:creator>妈妈爱你</dc:creator>
				<category><![CDATA[饭碗]]></category>

		<guid isPermaLink="false">http://www.mamaloveu.com/?p=204</guid>
		<description><![CDATA[i found that my win7 at home is extremly slow, so i switch to ubuntu, and now i post this from ubuntu 1, install the apache at ubuntu run this]]></description>
			<content:encoded><![CDATA[<p>i found that my win7 at home is extremly slow, so i switch to ubuntu, and now i post this from ubuntu<br />
1, install the apache at ubuntu<br />
  <code><br />
   run this commands in your shell (Terminal):<br />
# sudo apt-get install apache2<br />
# sudo apt-get install mysql-client mysql-server php5 php5-mysql<br />
# sudo /etc/init.d/apache2 restart<br />
  </code><br />
 if you can not find the terminal , you can go to the dash, and search &#8216;terminal&#8217;, and you will find this.<br />
2, install subversion client at unbuntu, and checkout the work codes from it<br />
sudo apt-get install subversion<br />
3, install the gvim or other ide for developing php<br />
4, install qq or other communicatin tools</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mamaloveu.com/start-working-under-ubuntu-at-home-and-still-win7-at-company/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何察看自己电脑是64位还是36位</title>
		<link>http://www.mamaloveu.com/%e5%a6%82%e4%bd%95%e5%af%9f%e7%9c%8b%e8%87%aa%e5%b7%b1%e7%94%b5%e8%84%91%e6%98%af64%e4%bd%8d%e8%bf%98%e6%98%af36%e4%bd%8d/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%25a6%2582%25e4%25bd%2595%25e5%25af%259f%25e7%259c%258b%25e8%2587%25aa%25e5%25b7%25b1%25e7%2594%25b5%25e8%2584%2591%25e6%2598%25af64%25e4%25bd%258d%25e8%25bf%2598%25e6%2598%25af36%25e4%25bd%258d</link>
		<comments>http://www.mamaloveu.com/%e5%a6%82%e4%bd%95%e5%af%9f%e7%9c%8b%e8%87%aa%e5%b7%b1%e7%94%b5%e8%84%91%e6%98%af64%e4%bd%8d%e8%bf%98%e6%98%af36%e4%bd%8d/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 03:26:31 +0000</pubDate>
		<dc:creator>妈妈爱你</dc:creator>
				<category><![CDATA[饭碗]]></category>

		<guid isPermaLink="false">http://www.mamaloveu.com/?p=201</guid>
		<description><![CDATA[Win->cmd->systeminfo if has a line of 64-based PC ,then your computer is 64-bit based.]]></description>
			<content:encoded><![CDATA[<p>Win->cmd->systeminfo  if has a line of <img src='http://www.mamaloveu.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> 64-based PC ,then your computer is 64-bit based.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mamaloveu.com/%e5%a6%82%e4%bd%95%e5%af%9f%e7%9c%8b%e8%87%aa%e5%b7%b1%e7%94%b5%e8%84%91%e6%98%af64%e4%bd%8d%e8%bf%98%e6%98%af36%e4%bd%8d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

