<?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>EVER</title>
	<atom:link href="http://ubsusa.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ubsusa.com</link>
	<description></description>
	<lastBuildDate>Wed, 22 Feb 2012 12:12:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>magento 装完插件显示404错误</title>
		<link>http://ubsusa.com/2012/02/magento-%e8%a3%85%e5%ae%8c%e6%8f%92%e4%bb%b6%e6%98%be%e7%a4%ba404%e9%94%99%e8%af%af/</link>
		<comments>http://ubsusa.com/2012/02/magento-%e8%a3%85%e5%ae%8c%e6%8f%92%e4%bb%b6%e6%98%be%e7%a4%ba404%e9%94%99%e8%af%af/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 12:12:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[杂]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://ubsusa.com/?p=131</guid>
		<description><![CDATA[其实登出再登入后台管理见面就好了]]></description>
			<content:encoded><![CDATA[<p>其实登出再登入后台管理见面就好了</p>
]]></content:encoded>
			<wfw:commentRss>http://ubsusa.com/2012/02/magento-%e8%a3%85%e5%ae%8c%e6%8f%92%e4%bb%b6%e6%98%be%e7%a4%ba404%e9%94%99%e8%af%af/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx运行下的joomla的url rewrite 规则</title>
		<link>http://ubsusa.com/2012/02/nginx%e8%bf%90%e8%a1%8c%e4%b8%8b%e7%9a%84joomla%e7%9a%84url-rewrite-%e8%a7%84%e5%88%99/</link>
		<comments>http://ubsusa.com/2012/02/nginx%e8%bf%90%e8%a1%8c%e4%b8%8b%e7%9a%84joomla%e7%9a%84url-rewrite-%e8%a7%84%e5%88%99/#comments</comments>
		<pubDate>Sun, 19 Feb 2012 22:47:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[杂]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://ubsusa.com/?p=124</guid>
		<description><![CDATA[经常会用到,备忘一下先 location / { if ( $args ~ "mosConfig_[a-zA-Z_]{1,21}(=&#124;\%3d)" ) { set $args ""; rewrite ^.*$ http://$host/index.php last; return 403;} if ( $args ~ "base64_encode.*\(.*\)") { set $args ""; rewrite ^.*$ http://$host/index.php last; return 403;} if ( $args ~ "(\&#124;%3E)") { set $args ""; rewrite ^.*$ http://$host/index.php last; return 403;} if ( $args ~ "GLOBALS(=&#124;\[&#124;\%[0-9A-Z]{0,2})") [...]]]></description>
			<content:encoded><![CDATA[<p>经常会用到,备忘一下先</p>
<pre class="brush: php;toolbar: false;">
       location / {
        if ( $args ~ "mosConfig_[a-zA-Z_]{1,21}(=|\%3d)" ) {
        set $args "";
        rewrite ^.*$ http://$host/index.php last;
        return 403;}

        if ( $args ~ "base64_encode.*\(.*\)") {
        set $args "";
        rewrite ^.*$ http://$host/index.php last;
        return 403;}

        if ( $args ~ "(\<|%3C).*script.*(\>|%3E)") {
        set $args "";
        rewrite ^.*$ http://$host/index.php last;
        return 403;}

        if ( $args ~ "GLOBALS(=|\[|\%[0-9A-Z]{0,2})") {
        set $args "";
        rewrite ^.*$ http://$host/index.php last;
        return 403;}

        if ( $args ~ "_REQUEST(=|\[|\%[0-9A-Z]{0,2})") {
        set $args "";
        rewrite ^.*$ http://$host/index.php last;
        return 403;}

        if (!-e $request_filename) {

        rewrite (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ /index.php last;
        break;
        }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://ubsusa.com/2012/02/nginx%e8%bf%90%e8%a1%8c%e4%b8%8b%e7%9a%84joomla%e7%9a%84url-rewrite-%e8%a7%84%e5%88%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ie下空层无法激活mouseover等事件</title>
		<link>http://ubsusa.com/2012/01/ie%e4%b8%8b%e7%a9%ba%e5%b1%82%e6%97%a0%e6%b3%95%e6%bf%80%e6%b4%bbmouseover%e7%ad%89%e4%ba%8b%e4%bb%b6/</link>
		<comments>http://ubsusa.com/2012/01/ie%e4%b8%8b%e7%a9%ba%e5%b1%82%e6%97%a0%e6%b3%95%e6%bf%80%e6%b4%bbmouseover%e7%ad%89%e4%ba%8b%e4%bb%b6/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 11:35:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[杂]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://ubsusa.com/?p=121</guid>
		<description><![CDATA[解决的办法可以是添加border属性或者background属性 最好的办法就是用ps制作一个空的png作为背景repeat一下]]></description>
			<content:encoded><![CDATA[<p>解决的办法可以是添加border属性或者background属性<br />
最好的办法就是用ps制作一个空的png作为背景repeat一下</p>
]]></content:encoded>
			<wfw:commentRss>http://ubsusa.com/2012/01/ie%e4%b8%8b%e7%a9%ba%e5%b1%82%e6%97%a0%e6%b3%95%e6%bf%80%e6%b4%bbmouseover%e7%ad%89%e4%ba%8b%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>从php5.3降级到php5.2</title>
		<link>http://ubsusa.com/2012/01/%e4%bb%8ephp5-3%e9%99%8d%e7%ba%a7%e5%88%b0php5-2/</link>
		<comments>http://ubsusa.com/2012/01/%e4%bb%8ephp5-3%e9%99%8d%e7%ba%a7%e5%88%b0php5-2/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 23:02:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[杂]]></category>

		<guid isPermaLink="false">http://ubsusa.com/?p=115</guid>
		<description><![CDATA[php5.3中，很多系统函数，变量已经不用了，例如 HTTP_POST_VARS， 导致一些老的站运行起来会有很多的errors 或者warnings 所以需要一个把php5.3降级到5.2 的脚本 ，在ubuntu下运行无错： #!/bin/bash echo "Am I root? " if [ "$(whoami &#038;2>/dev/null)" != "root" ] &#038;&#038; [ "$(id -un &#038;2>/dev/null)" != "root" ] ; then echo " NO! Error: You must be root to run this script. Enter sudo su " exit 1 fi echo " OK"; # finish all [...]]]></description>
			<content:encoded><![CDATA[<p>php5.3中，很多系统函数，变量已经不用了，例如 HTTP_POST_VARS， 导致一些老的站运行起来会有很多的errors 或者warnings</p>
<p>所以需要一个把php5.3降级到5.2 的脚本 ，在ubuntu下运行无错：</p>
<pre class="brush: php;toolbar: false;">
#!/bin/bash

echo "Am I root?  "
if [ "$(whoami &#038;2>/dev/null)" != "root" ] &#038;& [ "$(id -un &#038;2>/dev/null)" != "root" ] ; then
  echo "  NO!

Error: You must be root to run this script.
Enter
sudo su
"
  exit 1
fi
echo "  OK";

# finish all apt-problems:
apt-get -f install

# remove all your existing PHP packages. You can list them with dpkg -l| grep php
PHPLIST=$(for i in $(dpkg -l | grep php|awk '{ print $2 }' ); do echo $i; done;echo php5-curl)
echo these pachets will be removed: $PHPLIST
# you need not to purge, if you have upgraded from karmic:
aptitude remove $PHPLIST
# on a fresh install, you need purge:
# aptitude remove --purge $PHPLIST

#Create a file each in /etc/apt/preferences.d like this (call it for example /etc/apt/preferences.d/php5_2);
#
#Package: php5
#Pin: release a=karmic
#Pin-Priority: 991
#
#The big problem is that wildcards don't work, so you will need one such stanza for each PHP package you want to pull from karmic:

echo ''>/etc/apt/preferences.d/php5_2
for i in $PHPLIST ; do echo "Package: $i
Pin: release a=karmic
Pin-Priority: 991
">>/etc/apt/preferences.d/php5_2; done

# duplicate your existing sources.list replacing lucid with karmic and save it in sources.list.d:
#sed s/lucid/karmic/g /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/karmic.list

# better exactly only the needed sources, cause otherwise you can get a cachsize problem:
echo "# needed sources vor php5.2:
deb http://de.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic main restricted

deb http://de.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic-updates main restricted

deb http://de.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic universe
deb http://de.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic-updates universe

deb http://de.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://de.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic-updates multiverse

deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse
" >> /etc/apt/sources.list.d/karmic.list

aptitude update

apache2ctl restart

echo install new from karmic:
aptitude -t karmic install $PHPLIST

# at the end retry the modul libapache2-mod-php5 in case it didn't work the first time:
aptitude -t karmic install libapache2-mod-php5

apache2ctl restart
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ubsusa.com/2012/01/%e4%bb%8ephp5-3%e9%99%8d%e7%ba%a7%e5%88%b0php5-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kloxo 下安装ssl</title>
		<link>http://ubsusa.com/2011/08/kloxo-%e4%b8%8b%e5%ae%89%e8%a3%85ssl/</link>
		<comments>http://ubsusa.com/2011/08/kloxo-%e4%b8%8b%e5%ae%89%e8%a3%85ssl/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 01:10:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[杂]]></category>

		<guid isPermaLink="false">http://ubsusa.com/?p=113</guid>
		<description><![CDATA[其实是需要自己在shell生成private key的 通过后，需要把文件copy到 /home/kloxo/httpd/ssl 目录下去 乱扔在别的地方，可能会有如下错误 SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch]]></description>
			<content:encoded><![CDATA[<p>其实是需要自己在shell生成private key的<br />
通过后，需要把文件copy到 /home/kloxo/httpd/ssl 目录下去</p>
<p>乱扔在别的地方，可能会有如下错误<br />
SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch</p>
]]></content:encoded>
			<wfw:commentRss>http://ubsusa.com/2011/08/kloxo-%e4%b8%8b%e5%ae%89%e8%a3%85ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>css 注释符号</title>
		<link>http://ubsusa.com/2011/08/css-comment/</link>
		<comments>http://ubsusa.com/2011/08/css-comment/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 07:18:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[杂]]></category>

		<guid isPermaLink="false">http://ubsusa.com/?p=111</guid>
		<description><![CDATA[ie 中 双斜杠 // 是不认的，只能用 /* */ chrome是认的，这会造成跨浏览器显示不同，记录在这里]]></description>
			<content:encoded><![CDATA[<p>ie 中 双斜杠 // 是不认的，只能用 /* */<br />
chrome是认的，这会造成跨浏览器显示不同，记录在这里</p>
]]></content:encoded>
			<wfw:commentRss>http://ubsusa.com/2011/08/css-comment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何重新安装cydia？</title>
		<link>http://ubsusa.com/2011/07/%e5%a6%82%e4%bd%95%e9%87%8d%e6%96%b0%e5%ae%89%e8%a3%85cydia%ef%bc%9f/</link>
		<comments>http://ubsusa.com/2011/07/%e5%a6%82%e4%bd%95%e9%87%8d%e6%96%b0%e5%ae%89%e8%a3%85cydia%ef%bc%9f/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 00:35:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[杂]]></category>
		<category><![CDATA[cydia]]></category>

		<guid isPermaLink="false">http://ubsusa.com/?p=108</guid>
		<description><![CDATA[iphone 越狱后时间长了，装了乱七八糟的软件后，cydia经常会莫名其妙的出错，不能安装和更新软件，比如 postfix operation time out 错误等等，重新安装之 在cydia里找到 管理-软件包-cydia installer ，选择右上菜单里的更改-重新安装 然后把源地址也初始化： 用ifile或者电脑中的软件 iphone explorer 等等 删掉文件 /var/lib/cydia/metadata.plist 重新进入cydia，选择类型：用户，ok，cydia又干净了]]></description>
			<content:encoded><![CDATA[<p>iphone 越狱后时间长了，装了乱七八糟的软件后，cydia经常会莫名其妙的出错，不能安装和更新软件，比如 postfix operation time out 错误等等，重新安装之</p>
<p>在cydia里找到 管理-软件包-<a href="http://ubsusa.com/tag/cydia/" class="st_tag internal_tag" rel="tag" title="标签 cydia 下的日志">cydia</a> installer ，选择右上菜单里的更改-重新安装<br />
然后把源地址也初始化：<br />
用ifile或者电脑中的软件 iphone explorer 等等 删掉文件 /var/lib/cydia/metadata.plist<br />
重新进入cydia，选择类型：用户，ok，cydia又干净了</p>
]]></content:encoded>
			<wfw:commentRss>http://ubsusa.com/2011/07/%e5%a6%82%e4%bd%95%e9%87%8d%e6%96%b0%e5%ae%89%e8%a3%85cydia%ef%bc%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>magento 里获得所有的review的方法</title>
		<link>http://ubsusa.com/2011/07/magento-%e9%87%8c%e8%8e%b7%e5%be%97%e6%89%80%e6%9c%89%e7%9a%84review%e7%9a%84%e6%96%b9%e6%b3%95/</link>
		<comments>http://ubsusa.com/2011/07/magento-%e9%87%8c%e8%8e%b7%e5%be%97%e6%89%80%e6%9c%89%e7%9a%84review%e7%9a%84%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 05:15:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[杂]]></category>

		<guid isPermaLink="false">http://ubsusa.com/?p=106</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;toolbar: false;">
    	<?php
    		$rvs= Mage::getModel('review/review')->getResourceCollection();
    		$rvs->addStoreFilter( Mage::app()->getStore()->getId() )->addStatusFilter( Mage_Review_Model_Review::STATUS_APPROVED )->setDateOrder()->addRateVotes()->load();
    		foreach($rvs as $r)
    		{
    			echo "
<p style=\"font-weight:bold;margin-bottom:0px;\">".$r->getNickname()." says:

";
    			echo "

".$r->getDetail()."

";
    		}
    	?>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ubsusa.com/2011/07/magento-%e9%87%8c%e8%8e%b7%e5%be%97%e6%89%80%e6%9c%89%e7%9a%84review%e7%9a%84%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>magento 里的bestseller的实现</title>
		<link>http://ubsusa.com/2011/07/magento-%e9%87%8c%e7%9a%84bestseller%e7%9a%84%e5%ae%9e%e7%8e%b0/</link>
		<comments>http://ubsusa.com/2011/07/magento-%e9%87%8c%e7%9a%84bestseller%e7%9a%84%e5%ae%9e%e7%8e%b0/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 04:16:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[杂]]></category>

		<guid isPermaLink="false">http://ubsusa.com/?p=102</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;toolbar: false;">
    <?php
    $products = Mage::getResourceModel('reports/product_collection')->addAttributeToSelect('*')->addOrderedQty()->setOrder('ordered_qty', 'desc');
    $products->load();
    for($idx=0;$idx<5;$idx++)
    {
    	if($products->getItemById($idx))
    	{
    		echo "
<li><a href=\"".$products->getItemById($idx)->getProductUrl()."\">".$products->getItemById($idx)->getName()."</a></li>

";
    	}
    }
    ?>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ubsusa.com/2011/07/magento-%e9%87%8c%e7%9a%84bestseller%e7%9a%84%e5%ae%9e%e7%8e%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>密码保护：cs5</title>
		<link>http://ubsusa.com/2011/07/cs5/</link>
		<comments>http://ubsusa.com/2011/07/cs5/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 01:35:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[杂]]></category>

		<guid isPermaLink="false">http://ubsusa.com/?p=98</guid>
		<description><![CDATA[无法提供摘要。这是一篇受保护的文章。]]></description>
			<content:encoded><![CDATA[<form action="http://ubsusa.com/wp-pass.php" method="post">
<p>这是一篇受密码保护的文章。您需要提供访问密码：</p>
<p><label for="pwbox-98">密码：<br />
<input name="post_password" id="pwbox-98" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="提交" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://ubsusa.com/2011/07/cs5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

