<?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>CBCのBlog</title>
	<atom:link href="http://www.chenbaocheng.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.chenbaocheng.com/blog</link>
	<description>长草了...</description>
	<lastBuildDate>Mon, 30 Aug 2010 07:53:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>zend studio 7配色方案还原</title>
		<link>http://www.chenbaocheng.com/blog/?p=2541</link>
		<comments>http://www.chenbaocheng.com/blog/?p=2541#comments</comments>
		<pubDate>Mon, 30 Aug 2010 07:52:42 +0000</pubDate>
		<dc:creator>cbc</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.chenbaocheng.com/blog/?p=2541</guid>
		<description><![CDATA[x:\My Document\Zend\workspaces\DefaultWorkspace7\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.ui.workbench.prefs 如果有备份直接覆盖，没有则删掉，然后修复安装一下就行咯~~ 这样既可以保持原有的项目存在，又可以将配色方案还原的默认。 ZendStudio 8 beta版用起来还不错的样子，哈~Windows live 2010 beta也不错]]></description>
		<wfw:commentRss>http://www.chenbaocheng.com/blog/?feed=rss2&amp;p=2541</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chrome OS</title>
		<link>http://www.chenbaocheng.com/blog/?p=2538</link>
		<comments>http://www.chenbaocheng.com/blog/?p=2538#comments</comments>
		<pubDate>Sat, 14 Aug 2010 05:32:28 +0000</pubDate>
		<dc:creator>cbc</dc:creator>
				<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://www.chenbaocheng.com/blog/?p=2538</guid>
		<description><![CDATA[我不是GG粉丝，只是对新鲜的事物保持一种好奇，Chrome OS或许在不远的将来，在平板电脑或者是各种便携客户端上大显身手. &#160; 海盗湾BT种子： https://torrents.thepiratebay.org/5173539/Chromium_OS_USB_Image.5173539.TPB.torrent 纳米盘下载： http://d.namipan.com/d/0858ed7cb648dfc0eb81d52dc2036aa8a7b0503d53403a13 &#160; 光盘镜像烧录到优盘的小工具Image Writer for Windows： https://launchpad.net/win32-image-writer/+download &#160; 将下载到的Chrome OS压缩包解压缩，然后用Image Writer for Windows写入优盘，将优盘插入电脑，重启，USB启动。。。慢慢体验Chrome OS吧！^_^]]></description>
		<wfw:commentRss>http://www.chenbaocheng.com/blog/?feed=rss2&amp;p=2538</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Demonstration of Different Ways to Play a Sound from a Web Page</title>
		<link>http://www.chenbaocheng.com/blog/?p=2537</link>
		<comments>http://www.chenbaocheng.com/blog/?p=2537#comments</comments>
		<pubDate>Wed, 11 Aug 2010 03:55:53 +0000</pubDate>
		<dc:creator>cbc</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.chenbaocheng.com/blog/?p=2537</guid>
		<description><![CDATA[http://www.phon.ucl.ac.uk/home/mark/audio/play.htm &#160; Demonstration of Different Ways to Play a Sound from a Web Page Here are some examples of sound replay from a web page. View the HTML source of the page to see how it&#8217;s done. These examples have only been tested on a PC. Browsers tested: Internet Explorer (6.0), Firefox (1.0), Mozilla (1.7.5), [...]]]></description>
		<wfw:commentRss>http://www.chenbaocheng.com/blog/?feed=rss2&amp;p=2537</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>js获取浏览器高度和宽度值</title>
		<link>http://www.chenbaocheng.com/blog/?p=2534</link>
		<comments>http://www.chenbaocheng.com/blog/?p=2534#comments</comments>
		<pubDate>Wed, 14 Jul 2010 06:22:44 +0000</pubDate>
		<dc:creator>cbc</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.chenbaocheng.com/blog/?p=2534</guid>
		<description><![CDATA[&#60;script&#62; document.write(&#34;屏幕尺寸：&#34;+screen.width+&#34;*&#34;+screen.height) &#60;/script&#62; document.documentElement.clientHeight IE下为0. 加上: &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; 则没问题。 否则用body IE中： document.body.clientWidth ==&#62; BODY对象宽度 document.body.clientHeight ==&#62; BODY对象高度 document.documentElement.clientWidth ==&#62; 可见区域宽度 document.documentElement.clientHeight ==&#62; 可见区域高度 FireFox中： document.body.clientWidth ==&#62; BODY对象宽度 document.body.clientHeight ==&#62; BODY对象高度 document.documentElement.clientWidth ==&#62; 可见区域宽度 document.documentElement.clientHeight ==&#62; 可见区域高度 Opera中： document.body.clientWidth ==&#62; 可见区域宽度 document.body.clientHeight ==&#62; 可见区域高度 document.documentElement.clientWidth ==&#62; 页面对象宽度（即BODY对象宽度加上Margin宽） document.documentElement.clientHeight ==&#62; 页面对象高度（即BODY对象高度加上Margin高） [...]]]></description>
		<wfw:commentRss>http://www.chenbaocheng.com/blog/?feed=rss2&amp;p=2534</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery 1.4版本的15个新功能</title>
		<link>http://www.chenbaocheng.com/blog/?p=2532</link>
		<comments>http://www.chenbaocheng.com/blog/?p=2532#comments</comments>
		<pubDate>Tue, 22 Jun 2010 06:26:19 +0000</pubDate>
		<dc:creator>cbc</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.chenbaocheng.com/blog/?p=2532</guid>
		<description><![CDATA[1.jQuery()创建DOM元素：支持传参设置属性 之前，jQuery可以通过 attr 方法设置元素的属性，既可传属性的名和值，也可以是包含几组特定 属性名值对 的 对象。在jQuery 1.4 中，你可以把一个参数对象作为附属参数传给 jQuery 函数本身，同时创建HTML元素。 比方说你想要创建一个带有几个属性的锚记元素（&#60;a&#62;&#60;/a&#62;）。在1.4中，一切如此简单： JavaScript代码 jQuery(&#8216;&#60;a&#62;&#60;/a&#62;&#8217;, {&#160;&#160;&#160; id: &#8216;foo&#8217;,&#160;&#160;&#160; href: &#8216;http://google.com&#8217;,&#160;&#160;&#160; title: &#8216;Become a Googler&#8217;,&#160;&#160;&#160; rel: &#8216;external&#8217;,&#160;&#160;&#160; text: &#8216;Go to Google!&#8217; });&#160;&#160; 你大概也能猜到，这个锚记元素没有的 text 属性会调用 jQuery 的私有方法”.text()” ，把元素里的文字设置为“Go to Google!” 针对这一用法，下面是更有用的实例： JavaScript代码 jQuery(&#8216; &#60;div&#62;&#8217;, {&#160;&#160;&#160; id: &#8216;foo&#8217;,&#160;&#160;&#160; css: {&#160;&#160;&#160; fontWeight: 700,&#160;&#160;&#160; color: &#8216;green&#8217; },&#160;&#160;&#160; click: function(){&#160;&#160;&#160; alert(&#8216;Foo [...]]]></description>
		<wfw:commentRss>http://www.chenbaocheng.com/blog/?feed=rss2&amp;p=2532</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过设置P3P头来实现跨域访问COOKIE</title>
		<link>http://www.chenbaocheng.com/blog/?p=2529</link>
		<comments>http://www.chenbaocheng.com/blog/?p=2529#comments</comments>
		<pubDate>Sun, 13 Jun 2010 04:38:23 +0000</pubDate>
		<dc:creator>cbc</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.chenbaocheng.com/blog/?p=2529</guid>
		<description><![CDATA[在做校内APP时，开始受官方wiki里的一篇文章的误导，签名验证思路不正确，在做签名验证时，选择从COOKIE获取COOKIE的值做验证。后来论坛搜索发现可以用URL里GET传值做签名验证。在使用COOKIE时IE里遇到获取不到COOKIE的情况，查阅资料是由于IE对第三方COOKIE做了严格的限制导致，火狐下没有这个问题。如果让IE也能获取第三方的COOKIE那就是P3P。下面是牛人老王博客里抄来的文章。跨域的问题以后还会经常遇到，抄来以备查阅 &#160; ===================================================== 来源：http://hi.baidu.com/thinkinginlamp/blog/item/5e2a02084f1dafd163d9865f.html &#160; 作者：老王 网上看了别人介绍的一片文章，说使用P3P可以完成跨域COOKIE操作，感觉很COOL，不过没有提供源代码，我胡乱写了一下，大家看看。 实际工作中，类似这样的要求很多，比如说，我们有两个域名，我们想实现在一个域名登录后，能自动完成另一个域名的登录，也就是PASSPORT的功能。 我只写一个大概，为了测试的方便，先编辑hosts文件，加入测试域名（C:\WINDOWS\system32\drivers\etc\hosts） 127.0.0.1&#160;&#160;&#160;&#160;&#160;&#160;&#160; www.a.com 127.0.0.1&#160;&#160;&#160;&#160;&#160;&#160;&#160; www.b.com 首先：创建 a_setcookie.php 文件，内容如下： &#60;?php //header(&#8216;P3P: CP=&#34;CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR&#34;&#8217;); setcookie(&#34;test&#34;, $_GET['id'], time()+3600, &#34;/&#34;, &#34;.a.com&#34;); ?&#62; 然后：创建 a_getcookie.php 文件，内容如下： &#60;?php var_dump($_COOKIE); ?&#62; 最后：创建 b_setcookie.php 文件，内容如下： &#60;script src=&#34;http://www.a.com/a_setcookie.php?id=www.b.com&#34;&#62;&#60;/script&#62; －－－－－－－－－－－－－－－－－－－－－－－－－－－－ [...]]]></description>
		<wfw:commentRss>http://www.chenbaocheng.com/blog/?feed=rss2&amp;p=2529</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zen Coding:css,html缩写替换大观&#8212;让你的html,css飞起来[转载]</title>
		<link>http://www.chenbaocheng.com/blog/?p=2527</link>
		<comments>http://www.chenbaocheng.com/blog/?p=2527#comments</comments>
		<pubDate>Tue, 08 Jun 2010 09:03:43 +0000</pubDate>
		<dc:creator>cbc</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.chenbaocheng.com/blog/?p=2527</guid>
		<description><![CDATA[E元素名称(div, p); E#id使用id的元素(div#content, p#intro, span#error); E.class使用类的元素(div.header, p.error.critial). 你也可以联合使用class和idID: div#content.column.width; E&#62;N子代元素(div&#62;p, div#footer&#62;p&#62;span); E+N兄弟元素(h1+p, div#header+div#content+div#footer); E*N元素倍增(ul#nav&#62;li*5&#62;a); E$*N条目编号 (ul#nav&#62;li.item-$*5); zen coding 替换展现&#8217;api&#8217;. zen coding 是一个俄罗斯人写的编辑器(支持大部分现下流行的编辑器)插件，其安装也是非常简单，只要安装插件，然后在项目中拷贝js文件就可以。项目发布时，可删除js文件。它主要任务是把前端工程师从繁琐的html,css结构代码中解放出来，但是里边需要记忆的替换简写非常多，本着眼观十遍不如手动一遍的原则，只能边用边记。 其中的css替换功能也非常的不错。但是里边也有很多冗余无用的替换，本人正在一边使用一边修正原来作者定义在实际生产中不合理的替换。 稍后会一并把zen_settings文件发上来，并对替换的代码做简单的解释说明。 刚开始肯定有点不习惯，这结构还得一边写一边思考。但是习惯后，感觉是非常的便利，可以用“神速”两个字来概括书写时的心情。 至于其它心得体会，本人在使用后会慢慢发出来，以供借鉴。 zen特点是向css选择器进行了深刻的模仿。jquery选择器也是跟css选择符学习的，所以熟悉这二者技术的人会很快上手。其它详细信息关注来源网站。 其中html标签替换学习&#8211;源码在其包中zen-settings.js，我列出大部分是常用的，还有一些不常用的没有列出，参考源文件，上一行是手动输入，下一行是按快捷键(alt+E)后zen输出，环境为Aptana 2.0.2： 本人修改后的zen_setting.js 此文件2009年度最后一次更新，这次更新的主要内容有： 1. width等值后添加单位。 2. 让常用的缩写更加人性化。 3. 还有几个新缩写的添加。 下载后后解压 支持zen coding，jQuery，html5 绿色版dreamweaver下载 这两天对css替换功能做了疯狂的试验及完善，对其使用频率过高的替换做了简化，对难易记忆的，用重发音区分，这次的变化，也将扩展快捷键改为alt+s，因为本人平常QQ发消息是这两个键，比较习惯，ctlr + enter，左手ctrl 右手enter结合太麻烦，右手ctrl + enter完成时间过长，只好左手完成了。先将经验分享如下，单字母开始为原始元素，下一行为zen扩展输出后元素，依次类推： 在原来zen中css属性与属性值是取首字母冒号然后属性值，我对其写法进行了简化。对常用的属性进行了缩写。比如 原来的p是padding，原zen为pos感觉太麻烦，所以缩减为pp，然后是其属性值。ppaposition:absolute; pprposition:relative; 还有类似的：flfloat:left;frfloat:right;cbclear:both;dbdisplay:block;didisplay:inline;dibdisplay:inline-block;ohoverflow:hidden; 其它css类： mmargin:;mtmargin-top:;mrmargin-right:;mlmargin-left:;mbmargin-bottom:;ppadding:;pt,pr,pb,pl同marginbgbackground:url() 0 0 [...]]]></description>
		<wfw:commentRss>http://www.chenbaocheng.com/blog/?feed=rss2&amp;p=2527</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS上yum安装nginx+mysql+php+php-fastcgi</title>
		<link>http://www.chenbaocheng.com/blog/?p=2525</link>
		<comments>http://www.chenbaocheng.com/blog/?p=2525#comments</comments>
		<pubDate>Mon, 07 Jun 2010 04:21:48 +0000</pubDate>
		<dc:creator>cbc</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.chenbaocheng.com/blog/?p=2525</guid>
		<description><![CDATA[今天在虚拟机里配个服务跑个程序，用源码编译安装太慢了，从网上找了一个YUM安装的文章，转载以备查询 一、更改yum源为网易的源加快速度 vi /etc/yum.repos.d/CentOS-Base.repo 更改内容如下 # CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the [...]]]></description>
		<wfw:commentRss>http://www.chenbaocheng.com/blog/?feed=rss2&amp;p=2525</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>httpsqs的应用</title>
		<link>http://www.chenbaocheng.com/blog/?p=2272</link>
		<comments>http://www.chenbaocheng.com/blog/?p=2272#comments</comments>
		<pubDate>Mon, 31 May 2010 03:07:28 +0000</pubDate>
		<dc:creator>cbc</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.chenbaocheng.com/blog/?p=2272</guid>
		<description><![CDATA[最近项目中有这样一个需求，需要给用户发放优惠券，每人领取一次，流程如下： 1、判断优惠券表中是否有剩余的优惠券 2、判断是否领取过 3、判断是否在制定IP地址范围内（使用了最新的纯真IP库） 4、以上条件满足时，界面中有个按钮会晃动，提示用户有新的系统礼物 5、用户领取优惠券时，还是要走上面的流程，然后更新优惠券表里的状态，同时往用户优惠券表里插入用户领取到的优惠券记录 用户的优惠券表进行了分表处理。优惠券表是独立的一张表， 表里有50W数据。 系统运行数天后，得到系统管理员的反馈是&#8211; 数据库压力太大。发现有2条SQL语句很慢。 SELECT COUNT(0) FROM db_name.tb_name WHERE `STATUS`=0； SELECT SEQ, COUPON_CODE FROM db_name.tb_name WHERE `STATUS` = 0 ORDER BY SEQ ASC; 第一句很这句很明显的有问题，后面经过测试，哪怕直接用第二句来判断是否有剩余的优惠券，效率都会高3倍左右。 第二句之所以慢，我怀疑没有合理创建索引，连上数据库才发现，根本没创建索引。。。太粗心了，竟然给忘记了。创建索引后性能明显提升，有10倍左右的性能提升。 后来经过老大的指点，说这种采用队列可能效果更好。发来一个链接http://blog.s135.com/httpsqs/ 金山的高手开发的一个开源队列服务程序。 HTTPSQS（HTTP Simple Queue Service）是一款基于 HTTP GET/POST 协议的轻量级开源简单消息队列服务，使用 Tokyo Cabinet 的 B+Tree Key/Value 数据库来做数据的持久化存储。 张宴同学博客上发布的测试数据： 采用Apache ab命令进行压力测试，开启10个线程，放入10万条文本数据（每条512字节）到队列中: 使用HTTP Keep-Alive时：15446 requests/sec 关闭HTTP Keep-Alive时：10515 requests/sec [...]]]></description>
		<wfw:commentRss>http://www.chenbaocheng.com/blog/?feed=rss2&amp;p=2272</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>灯炮植物教程[转载]</title>
		<link>http://www.chenbaocheng.com/blog/?p=2258</link>
		<comments>http://www.chenbaocheng.com/blog/?p=2258#comments</comments>
		<pubDate>Tue, 25 May 2010 07:24:05 +0000</pubDate>
		<dc:creator>cbc</dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.chenbaocheng.com/blog/?p=2258</guid>
		<description><![CDATA[雷得深按得姐特闷,来,跟我一起做这个灯泡植物吧. 应此图的很多同学的要求.做个小教程. 工具需要钳子,十字改锥,铁丝,当然,灯炮是必备的.咳咳 首先,我们要准备以上如图所示之工具.以及灯泡一枚,市场价2元每只!! 然后捏,接着往下看. 看到灯泡的黑色屁股没,嗯,就是这里. 看到没,看到没,我们需要用钳子把这个黑色屁股夹破,夹碎.这里呢,建议大家还是戴上手套,是嘛,小伙儿们都要有一套嘛.姑娘们更应该有一套啊!!! 对,就像这样夹啊夹啊夹. 看吧,看吧,这样夹.这样.这样.你懂的. 哎呀,终于夹碎了. 啊哈哈,终于碎了.碎了.碎了. 对,就这样,把灯丝和其它全部往里捅.哇三,断掉了. 然后用十字螺丝刀(为什么要十字的,因为十字的受力点在最中央,一字型的不推荐.),往里捅啊捅啊捅,什么,不知道如何捅? 胡说,XXOO还没人教你呢,不一样会捅. 嗯. 对,就这样.这里要提醒大家,一定要有一套哦.手套要戴好.万一灯泡破掉也不至于伤手的. 看大图.捅成这样了.悲惨啊. 然后用十字螺丝刀把捅的小孔的创面继续上下左右最大化,把里面的二层灯炮全部弄碎. 然后倒掉里面的碎玻璃. 对,就是这铜线. 这里用小夹子或者镊子把铜丝夹出来.然后可劲儿往外扯.扯啊扯啊扯啊扯,啊呀呀,终于清空了里面.所有的东西. 基本算完工了. 到这里.拿出事先备好的铁丝,不能要钢丝哦,太硬. 一手握住灯泡,然后拿铁丝,往着尾部的螺纹绕成线圈型.然后再旋转下来.把线圈用钳子夹得紧一点,再旋到灯泡上,哇三,果然很紧哦.很紧哦.喵哈哈 雷得深按得姐特闷, 到这儿.基本上算完工了. 激动吧. 我跟这儿没空下楼找土和小植物. 放植物很容易哈。干土，用线折成槽倒进去，然后小植物塞进去，然后用一字螺丝刀调整位置。然后用注射器浇水。 或者放草种子。 喵哈哈。。。 但是酥酥放的这个耶。 各位就自个儿看着办吧,小心心的装上土,再小心心种上小植物.哦哟,放家里,放办公室,放音响上,放哪那好看. 啧啧啧啧 你再看看，人家姑娘家实践的。真强大。]]></description>
		<wfw:commentRss>http://www.chenbaocheng.com/blog/?feed=rss2&amp;p=2258</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
