<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[叶子]]></title> 
<link>http://blog.yeeh.org/index.php</link> 
<description><![CDATA[叶子]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[叶子]]></copyright>
<item>
<link>http://blog.yeeh.org/post/220/</link>
<title><![CDATA[中国网络已死，有事烧纸。]]></title> 
<author>叶子 &lt;www(at)ye.vg&gt;</author>
<category><![CDATA[手]]></category>
<pubDate>Tue, 23 Feb 2010 00:37:28 +0000</pubDate> 
<guid>http://blog.yeeh.org/post/220/</guid> 
<description>
<![CDATA[ 
	昨天把一个.net续费了下，支付宝付款53￥。godaddy做的真是越来越出色了，美元自动结算￥，汇率为6.83*，挺厚道。<br/><br/>今天得到的消息：<br/>1.企业网站备案需企业负责人去isp处按工信部指定拍照备案，比身份证还严格，二代身份证好歹还可以自己传照片过去办，这个要亲自，背景颜色还是指定的。好吧，blog已经搬出来了，你要逼我把所有站都搬么？<br/>2.cn域名补全信息，要提交身份证扫描件，不全者3.15日删除，续费价格60￥，更有某个域名注册商对代理商说，资料补足率不足80%要代理降级，代理降级意味着什么？注册和续费价格要贵的多。鉴于此，所有cn（其实也就6个）不续费。<br/>3.有某部头头吹风手机和上网要实名制。银行卡早实名制了吧，电话诈骗中转账不是转到国外账户的吧？ 效果呢？<br/><br/><br/>中国网络已死，有事烧纸。<br/><br/>
]]>
</description>
</item><item>
<link>http://blog.yeeh.org/post/218/</link>
<title><![CDATA[google apps即将停止支持ie6]]></title> 
<author>叶子 &lt;www(at)ye.vg&gt;</author>
<category><![CDATA[手]]></category>
<pubDate>Wed, 03 Feb 2010 06:35:29 +0000</pubDate> 
<guid>http://blog.yeeh.org/post/218/</guid> 
<description>
<![CDATA[ 
	今天收到google发的email通知，看来ie6灭亡再次提速了。以下为原文：<br/><br/>Dear Google Apps admin,​<br/><br/>In order to continue to improve our products and deliver more sophisticated features and performance, we are harnessing some of the latest improvements in web browser technology.&nbsp;&nbsp;This includes faster JavaScript processing and new standards like HTML5.&nbsp;&nbsp;As a result, over the course of 2010, we will be phasing out support for Microsoft Internet Explorer 6.0 as well as other older browsers that are not supported by their own manufacturers.<br/><br/>We plan to begin phasing out support of these older browsers on the Google Docs suite and the Google Sites editor on March 1, 2010.&nbsp;&nbsp;After that point, certain functionality within these applications may have higher latency and may not work correctly in these older browsers. Later in 2010, we will start to phase out support for these browsers for Google Mail and Google Calendar.<br/><br/>Google Apps will continue to support Internet Explorer 7.0 and above, Firefox 3.0 and above, Google Chrome 4.0 and above, and Safari 3.0 and above.<br/><br/>Starting this week, users on these older browsers will see a message in Google Docs and the Google Sites editor explaining this change and asking them to upgrade their browser.&nbsp;&nbsp;We will also alert you again closer to March 1 to remind you of this change.<br/><br/>In 2009, the Google Apps team delivered more than 100 improvements to enhance your product experience.&nbsp;&nbsp;We are aiming to beat that in 2010 and continue to deliver the best and most innovative collaboration products for businesses.<br/><br/>Thank you for your continued support!<br/><br/>Sincerely,<br/><br/>The Google Apps team<br/><br/><br/>Email preferences: You have received this mandatory email service announcement to update you about important changes to your Google Apps product or account.<br/><br/>Google Inc.<br/>1600 Amphitheatre Parkway<br/>Mountain View, CA 94043<br/><br/>尝试翻译了下：<br/><br/>亲爱的google应用套件管理员：<br/>&nbsp;&nbsp; <br/>&nbsp;&nbsp; 在持续改进我们的产品和提供更复杂的功能以及提升性能的过程中，我们利用了一些网页浏览器的最新技术。这包括更快的javascript解析引擎和类似html5这样的新标准。因此2010年之后，我们将停止支持那些软件商不再提供技术支持的老版本浏览器，例如微软的ie6。<br/>&nbsp;&nbsp; <br/>&nbsp;&nbsp; 我们计划3月1日开始取消google docs套件和google sites编辑器对那些老版本浏览器的支持。之后，在这些老版本浏览器上访问此类应用的某些功能可能带来比较高的延迟，甚至是不能使用。在2010年下半年，我们将取消gmail和google日历对这些浏览器的支持。<br/><br/>&nbsp;&nbsp; google应用将继续支持ie7+，firefox3.0+，chrome4.0+以及safari3.0+。<br/>&nbsp;&nbsp; <br/>&nbsp;&nbsp; 从本周开始，使用老版本浏览器访问google docs和google sites的用户将会看见解释这个变化的提示并被要求升级浏览器。我们在3月1日来临前将会再次提醒您。<br/> <br/>&nbsp;&nbsp; 在2009年中，google apps团队提供了超过100个提升您产品体验的改进。我们的目标是在2010年再接再厉，为企业提供最好和最创新的协作产品。 <br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp; 感谢您的继续支持。<br/><br/>&nbsp;&nbsp; 此致<br/><br/>google apps 团队<br/><br/>提示：您收到此封邮件是因为您的google apps产品或账户做了重大修改。<br/>Tags - <a href="http://blog.yeeh.org/tags/google/" rel="tag">google</a>
]]>
</description>
</item><item>
<link>http://blog.yeeh.org/post/216/</link>
<title><![CDATA[ie6下span有背景图的最低行高问题]]></title> 
<author>叶子 &lt;www(at)ye.vg&gt;</author>
<category><![CDATA[手]]></category>
<pubDate>Thu, 31 Dec 2009 09:06:47 +0000</pubDate> 
<guid>http://blog.yeeh.org/post/216/</guid> 
<description>
<![CDATA[ 
	<div class="quote"><div class="quote-title">引用</div><div class="quote-content">span.a1&#123; border:solid 1px #f00; display:block;&nbsp;&nbsp;height:9px; line-height:9px; padding:0; margin:0;background:url(st/img/t2.png); &#125;<br/>span.a2&#123; border:solid 1px #f00; display:block;&nbsp;&nbsp;height:9px; line-height:9px; padding:0; margin:0;&#125;</div></div><br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;span class="a1"&gt;&lt;/span&gt;<br/>&lt;span class="a2"&gt;&lt;/span&gt;</div></div><br/><br/>ie6下会导致高度不同 <br/>dtd为xhtml1-transitional <br/>os为2003 sp2
]]>
</description>
</item><item>
<link>http://blog.yeeh.org/post/214/</link>
<title><![CDATA[学学jquery源码]]></title> 
<author>叶子 &lt;www(at)ye.vg&gt;</author>
<category><![CDATA[手]]></category>
<pubDate>Sat, 12 Dec 2009 03:07:14 +0000</pubDate> 
<guid>http://blog.yeeh.org/post/214/</guid> 
<description>
<![CDATA[ 
	那天面试还有一题，同样没实现出来。大概如下：<br/>var Do;<br/>//代码开始<br/>//-----代码部分<br/>//代码结束<br/>var a = Do("aa");<br/>a.bt("bt");<br/>补全代码，实现a.bt输出结果为aabt。<br/><br/>如果是var a = new Do("aa")，那么直接定义Do为函数，给Do添加方法即可。可是没有new，那么就需要自己构造增强函数了。之前看过点jquery源码，但是没留意这个=_=。今天把jq的翻出来复看，发现了这个秘密...<br/><br/>var Do;<br/>//代码开始<br/>Do = function(a) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp; return new Do.fn.init(a);<br/>&#125;;<br/>Do.fn = Do.prototype = &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp; temp: "",<br/>&nbsp;&nbsp;&nbsp;&nbsp; init: function(a) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.temp = a;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return this;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &#125;,<br/>&nbsp;&nbsp;&nbsp;&nbsp; bt: function(b) &#123; document.write(this.temp + b ) &#125;<br/>&#125;<br/>Do.fn.init.prototype = Do.fn;<br/>//代码结束<br/>var a = Do("aa");<br/>a.bt("bt");<br/><br/>jq对应的是<br/>// Give the init function the jQuery prototype for later instantiation<br/>jQuery.fn.init.prototype = jQuery.fn;
]]>
</description>
</item><item>
<link>http://blog.yeeh.org/post/213/</link>
<title><![CDATA[古文输出]]></title> 
<author>叶子 &lt;www(at)ye.vg&gt;</author>
<category><![CDATA[手]]></category>
<pubDate>Wed, 09 Dec 2009 12:29:06 +0000</pubDate> 
<guid>http://blog.yeeh.org/post/213/</guid> 
<description>
<![CDATA[ 
	古文输出是从右向左，从上到下输出，虽然ie私有属性有竖排，不过今天面的是要求js实现。当时太急躁了点，在地铁上时候静心一想，其实和前些日子那个贪吃蛇异曲同工，算法比那个还简单...<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>&nbsp;&nbsp;&nbsp;&nbsp;function ancient(str, line) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//计算列度<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var col = Math.ceil(str.length / line);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//初始化矩阵<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var a = new Array();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//初始化行数<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i < line; i++) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a[i] = new Array();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;l = 0;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i < line * col; i++) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a[l].unshift(!!str[i] ? str[i] : "--");<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;l += 1;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (l > line - 1) &#123;l = 0;&#125;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//输出<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var s = "";<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i < line; i++) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s += a[i].join("");<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s += "&lt;br /&gt;";<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return s;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/>&nbsp;&nbsp;&nbsp;&nbsp;document.write(ancient("我爱你哈哈哈哈", 2));<br/> </div></div>
]]>
</description>
</item><item>
<link>http://blog.yeeh.org/post/208/</link>
<title><![CDATA[51js一贴]]></title> 
<author>叶子 &lt;www(at)ye.vg&gt;</author>
<category><![CDATA[手]]></category>
<pubDate>Wed, 04 Nov 2009 04:18:27 +0000</pubDate> 
<guid>http://blog.yeeh.org/post/208/</guid> 
<description>
<![CDATA[ 
	有条蛇它长度不固定，蛇头朝北顺时针盘旋着，请打印出如下图的蛇形矩阵。答题时间40分钟。<br/><br/>9&nbsp;&nbsp;9&nbsp;&nbsp;9&nbsp;&nbsp;9&nbsp;&nbsp;9&nbsp;&nbsp;9&nbsp;&nbsp;9<br/>8&nbsp;&nbsp;6&nbsp;&nbsp;6&nbsp;&nbsp;6&nbsp;&nbsp;6&nbsp;&nbsp;6&nbsp;&nbsp;9<br/>8&nbsp;&nbsp;6&nbsp;&nbsp;3&nbsp;&nbsp;3&nbsp;&nbsp;4&nbsp;&nbsp;7&nbsp;&nbsp;9<br/>8&nbsp;&nbsp;5&nbsp;&nbsp;3&nbsp;&nbsp;1&nbsp;&nbsp;4&nbsp;&nbsp;7<br/>8&nbsp;&nbsp;5&nbsp;&nbsp;2&nbsp;&nbsp;2&nbsp;&nbsp;4&nbsp;&nbsp;7<br/>8&nbsp;&nbsp;5&nbsp;&nbsp;5&nbsp;&nbsp;5&nbsp;&nbsp;4&nbsp;&nbsp;7<br/>8&nbsp;&nbsp;8&nbsp;&nbsp;8&nbsp;&nbsp;7&nbsp;&nbsp;7&nbsp;&nbsp;7<br/><br/>我的答案（ps:没考虑优化，但是明显数学能力不够，囧，原文见：http://bbs.51js.com/viewthread.php?tid=85907&extra=page%3D1）<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;function draw(n) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;count = n * (n + 1) / 2;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m = Math.ceil(Math.sqrt(count));<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var a = [],b = [];<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i < m; i++) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a[i] = [];<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (j = 0; j < m; j++) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp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bsp; y = t;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#125;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x1 = x;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y1 = y;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //开始画<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to = 1; //向下 2左 3上 4右<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i = 0; i < count; i++) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a[x][y] = b[i] ;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#125; catch (e) &#123;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#125;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; n = Math.ceil(Math.sqrt(i + 1+1));<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (n % 2 == 0) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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sp;&nbsp;&nbsp;&nbsp; for (i = 0; i < m; i++) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s += a[i].join(",");<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s += "&#92;n";<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#125;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return s;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/>&nbsp;&nbsp;&nbsp;&nbsp;alert(draw(9));<br/></div></div><br/>Tags - <a href="http://blog.yeeh.org/tags/javascript/" rel="tag">javascript</a>
]]>
</description>
</item><item>
<link>http://blog.yeeh.org/post/207/</link>
<title><![CDATA[maxthon的css mode]]></title> 
<author>叶子 &lt;www(at)ye.vg&gt;</author>
<category><![CDATA[手]]></category>
<pubDate>Sat, 31 Oct 2009 15:16:05 +0000</pubDate> 
<guid>http://blog.yeeh.org/post/207/</guid> 
<description>
<![CDATA[ 
	win7 32&64bit下 maxthon2.5.8默认是quirks mode，结果和ie7很接近。<br/><br/>一直以来困惑的解决了。
]]>
</description>
</item><item>
<link>http://blog.yeeh.org/post/209/</link>
<title><![CDATA[startssl.com 证书@passid.net]]></title> 
<author>叶子 &lt;www(at)ye.vg&gt;</author>
<category><![CDATA[手]]></category>
<pubDate>Wed, 14 Oct 2009 05:17:10 +0000</pubDate> 
<guid>http://blog.yeeh.org/post/209/</guid> 
<description>
<![CDATA[ 
	上个月就从瘾科技或者cnbeta还是blog.s135.com 发现了这个站 然后顺手去申请了一把。<br/>记录下：<br/><br/>1.https://www.startssl.com/申请用户 推荐使用firefox，因为ie没能过（或许我rp吧），第一次使用先signup。<br/>注意填写真实资料，否则会通不过的。记得安装证书。<br/><a href="http://blog.yeeh.org/attachment.php?fid=124" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=124" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>2.以后登录就是走这里，直接证书验证登陆。<br/><a href="http://blog.yeeh.org/attachment.php?fid=125" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=125" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><a href="http://blog.yeeh.org/attachment.php?fid=126" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=126" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>3.进control panel，先添加验证域名<br/><a href="http://blog.yeeh.org/attachment.php?fid=127" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=127" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>4.点domain name validation<br/><a href="http://blog.yeeh.org/attachment.php?fid=128" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=128" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>5.之后写域名 填写后缀 之后选验证方式（我选的查询域名所有者email，查收email验证的）<br/><a href="http://blog.yeeh.org/attachment.php?fid=129" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=129" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>6.好了之后右边会有验证通过的域名<br/><a href="http://blog.yeeh.org/attachment.php?fid=130" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=130" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>7.左边选 ‘certificates wizard’ ，certificate target选‘web server ssl、tls certificate’，之后continue<br/><a href="http://blog.yeeh.org/attachment.php?fid=131" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=131" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>8.填写密码，长度。千万记住这里的password。之后continue<br/><a href="http://blog.yeeh.org/attachment.php?fid=132" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=132" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>9.抄录下文本框的内容 用记事本保存 记得别有空格 存好了把后缀改成ssl.key。之后下一步。<br/><a href="http://blog.yeeh.org/attachment.php?fid=133" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=133" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>10.选取刚才的域名。<br/><a href="http://blog.yeeh.org/attachment.php?fid=134" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=134" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>11.添加二级域名。我写的是www，之后continue。<br/><a href="http://blog.yeeh.org/attachment.php?fid=135" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=135" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>12.得到csr文件。一样记事本保存，不能有空格。<br/><a href="http://blog.yeeh.org/attachment.php?fid=136" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=136" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>13.完成。<br/><a href="http://blog.yeeh.org/attachment.php?fid=137" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=137" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>14.耐心等官方审核通过。通过了会有email通知。<br/><br/>15.通过后去toolbox，点Retrieve Certificate<br/><a href="http://blog.yeeh.org/attachment.php?fid=138" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=138" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>16.选刚才的二级域名<br/> <a href="http://blog.yeeh.org/attachment.php?fid=139" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=139" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>17.获取Certificate，保存。<br/><a href="http://blog.yeeh.org/attachment.php?fid=140" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=140" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>18.如果是iis用，那么导入证书最方便了， 那么继续。还是toolbox，选Create PFX file。出来下面的界面。打开第9步记录的ssl.key，把里面的内容复制到第一个。打开第17步获得的Certificate，复制到第二个。密码就是第8步的密码。之后continue。<br/><a href="http://blog.yeeh.org/attachment.php?fid=141" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=141" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>19.下载生成的文件，后缀为p12.<br/><br/>20.iis里导入，并应用到网站。这里就不多说了。<br/><br/>更新测试结果：ie8直接过 ff3.5要求加入信任列表 safari直接过 chrome提示，opera提示。<br/>最新效果图<br/><a href="http://blog.yeeh.org/attachment.php?fid=142" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=142" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><br/>Tags - <a href="http://blog.yeeh.org/tags/startssl/" rel="tag">startssl</a> , <a href="http://blog.yeeh.org/tags/ssl/" rel="tag">ssl</a> , <a href="http://blog.yeeh.org/tags/passid/" rel="tag">passid</a>
]]>
</description>
</item><item>
<link>http://blog.yeeh.org/post/204/</link>
<title><![CDATA[网易改版和maxthon]]></title> 
<author>叶子 &lt;www(at)ye.vg&gt;</author>
<category><![CDATA[手]]></category>
<pubDate>Mon, 12 Oct 2009 12:52:15 +0000</pubDate> 
<guid>http://blog.yeeh.org/post/204/</guid> 
<description>
<![CDATA[ 
	消息1：昨天网易改版，新闻标题从12px改成14px，更偏于大显示器阅读。其实yahoo改版，新闻标题早就放到了14px。passid的字体为以下几种：<br/>1. input，20px；<br/>2. h1：18px；<br/>3.一般特出，h2：16px<br/>4. label，14px；<br/>5.其他：12px；<br/> <br/>消息2：关于maxthon。不晓得这个用ie内核的浏览器，用的是哪个版本的ie内核，不像ie6，但是也不像win7自带的ie8，css解析起来有点奇怪，特别是line-height为1，那么某些地方会在竖方向少掉2px，变成某些中文上部没有。<br/><br/><br/>前台样式终于修正好了，下面搞前台js。
]]>
</description>
</item><item>
<link>http://blog.yeeh.org/post/202/</link>
<title><![CDATA[创建可复用的html之form]]></title> 
<author>叶子 &lt;www(at)ye.vg&gt;</author>
<category><![CDATA[手]]></category>
<pubDate>Tue, 15 Sep 2009 01:41:36 +0000</pubDate> 
<guid>http://blog.yeeh.org/post/202/</guid> 
<description>
<![CDATA[ 
	差不多4年前，对当时炒得火热的web2.0很不齿--沸沸扬扬的压根就没什么新技术，如果说ucc(user create content)也算创新的话，那bbs这个应用算啥？至于ajax，那就更不是什么新技术了，微软很早就发明了这个的技术部分。不过今年，我慢慢改变了看法。<br/><br/>首先，借着web2.0的大旗或者说东风，出现了一堆接近ucc或者让用户改变了生活习惯的应用。twitter，facebook是当下最火的，前几年的flickr和youtube，last.fom等，国内最火的则是kaixin001了，认识的朋友中就真有半夜起来偷菜的=_=。同时，再现了01年前网络的盛况--免费资源多了很多。我在用的大多是gg的东西，比如reader，picasa，手机版maps，google apps，这些实实在在改变了我的生活习惯。话说，腾讯前几日也开始了免费企业邮箱的内测，谁说免费的多些不是好事呢？并且同时，小额应用收费服务也慢慢变得普遍了，不晓得是不是网络一代开始陆续走上工作岗位的缘故，起码大学毕业的几乎人人会上网这是事实^_^<br/><br/>其二，api横行。不记得是哪个站开始的了，或许是flickr开始的？有开发接口，产生了丰富的客户端应用，这多少也算ucc一部分，应该说user create applacation，之后公布api似乎成了不少2.0网站的标配，比如国内的豆瓣，很喜欢他们家的rest api。我最近在用的recaptcha和dnspod也都有api。<br/><br/>其三，用户体验。这个这几年上升到了一个全新的高度，甚至是很泛滥成灾了，ajax自然不必说，另外一个改变生活习惯的在第一点里我没说，那就是rss订阅。我的google reader里一堆订阅，甚至每日都要花上半小时来看，比如engadget，cnbeta，爱枣报， 糗事百科等。甚至我的台式机上的imon里，都有天气以及新闻订阅。页面则趋向于简洁，不仅速度更快而且不影响用户浏览。<br/><br/>最后说说技术。python，php，ror，这是这几年火爆的2.0标配语言，php继yahoo之后很被发扬光大，ror和python也越来越热。js framework也出现了很多，最有名的算jquery了吧，使用它的站一把。yui则是yahoo开发的一套css，js，html框架。这些标准，多了总归不是坏事。<br/><br/>离标题扯远了，回归主题。html的作用不仅仅是用户看到的界面，也要让机器（特别是搜索引擎）阅读起来省时省力，于是慢慢的有了某些默认的标准，比如MicroFormat。尽量使数据和界面分离，这样不仅机器省事，写代码也省事，算可复用吧^_^，这几日在忙用户注册，就说说form复用的小感，先感谢下google，yahoo和microsoft这三大神，参考了他们一些html。<br/><br/>先看一组图：<br/>google<br/><a href="http://blog.yeeh.org/attachment.php?fid=110" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=110" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>微软<br/><a href="http://blog.yeeh.org/attachment.php?fid=111" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=111" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http://blog.yeeh.org/attachment.php?fid=112" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=112" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>yahoo<br/><a href="http://blog.yeeh.org/attachment.php?fid=113" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=113" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http://blog.yeeh.org/attachment.php?fid=114" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=114" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>提炼出几个主要的元素：标签、输入框、提示、贴士（提示的补充）、信息（填写正确或者错误的信息）。那么一行表单自然就出来了：label、input、hint、tips、message。给这些加上不同的html，就是label、input/textarea/select、span、p、div。一般label的float为左，text-align为右，margin-right可以加上几个像素，甚至可以:after加上“：”。input的float为左。hint为换行居左，。tips为浮动，默认隐藏，当onfocus时候显示。message这个没固定，微软是在输入框上面，google在输入框下面，yahoo则是本行。个人还是倾向于yahoo的，没有歧义。<br/><br/>当然，有复杂的输入框部分，那个input变成一个整div去排版。<br/><br/>清爽了吧。附忙了几天的页面对比：<br/><a href="http://blog.yeeh.org/attachment.php?fid=115" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=115" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>最后确认的,简单就是美嘛<br/><a href="http://blog.yeeh.org/attachment.php?fid=116" target="_blank"><img src="http://blog.yeeh.org/attachment.php?fid=116" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>Tags - <a href="http://blog.yeeh.org/tags/passid.net/" rel="tag">passid.net</a>
]]>
</description>
</item>
</channel>
</rss>