<?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://si.yousuode.com/feed" rel="self" type="application/rss+xml" />
	<link>http://si.yousuode.com</link>
	<description>见有所得,闻有所得,思亦有所得</description>
	<lastBuildDate>Mon, 30 Aug 2010 02:26:23 +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>Opera下多选select控件bug一枚</title>
		<link>http://si.yousuode.com/article/multiple_select_bug_in_opera.html</link>
		<comments>http://si.yousuode.com/article/multiple_select_bug_in_opera.html#comments</comments>
		<pubDate>Mon, 30 Aug 2010 02:25:24 +0000</pubDate>
		<dc:creator>海妖的夜</dc:creator>
				<category><![CDATA[develop]]></category>
		<category><![CDATA[javascript opera bug]]></category>

		<guid isPermaLink="false">http://si.yousuode.com/article/multiple_select_bug_in_opera.html</guid>
		<description><![CDATA[1: 首先用以下代码从多选的select控件中删除多个选项 for(var i=from.options.length-1;i&#62;=0;i—) { &#160;&#160;&#160; var tempOption=from.options[i]; &#160;&#160;&#160; if(tempOption.selected){ &#160;&#160;&#160;&#160;&#160;&#160;&#160; from.removeChild(tempOption); &#160;&#160;&#160; } } 2: 选中多个选项，执行上面的代码，除opera的其他浏览器都能够正确删除选中的多个选项，只有opera只能删除序号最大那个选中的选项，测试版本为opera 10.61 3: 经过仔细观察得知，删除一个选项以后，整个select控件失去焦点，于是所有选项的selected属性都变成false，所以以上代码的if语句除第一次外都跳过了，所以只成功删除序号最大的选中的那项 4: 基本解决思路: 先把选中选项的index用一个数组记录下来，然后根据选项序号从大到小删除对应选项. 或者放弃支持opera这么小众的浏览器，况且这还是个bug，不一定非要处理这种情况 5: 已经把bug提交给opera开发 © 海妖的夜 for 思有所得, 2010. &#124; 永久链接 &#124; 添加到 del.icio.us Tags: javascript opera bug]]></description>
			<content:encoded><![CDATA[</p>
<p>1: 首先用以下代码从多选的select控件中删除多个选项</p>
<blockquote style="margin-right: 0px" dir="ltr"><p>for(var i=from.options.length-1;i&gt;=0;i—) {     <br />&#160;&#160;&#160; var tempOption=from.options[i];     <br />&#160;&#160;&#160; if(tempOption.selected){     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; from.removeChild(tempOption);     <br />&#160;&#160;&#160; }     <br />} </p></blockquote>
<p>2: 选中多个选项，执行上面的代码，除opera的其他浏览器都能够正确删除选中的多个选项，只有opera只能删除序号最大那个选中的选项，测试版本为opera 10.61</p>
<p>3: 经过仔细观察得知，删除一个选项以后，整个select控件失去焦点，于是所有选项的selected属性都变成false，所以以上代码的if语句除第一次外都跳过了，所以只成功删除序号最大的选中的那项</p>
<p>4: 基本解决思路: 先把选中选项的index用一个数组记录下来，然后根据选项序号从大到小删除对应选项. 或者放弃支持opera这么小众的浏览器，况且这还是个bug，不一定非要处理这种情况</p>
<p>5: 已经把bug提交给opera开发</p>
<hr />
<p><small>© 海妖的夜 for <a href="http://si.yousuode.com">思有所得</a>, 2010. |
<a href="http://si.yousuode.com/article/multiple_select_bug_in_opera.html">永久链接</a> |
添加到
<a href="http://del.icio.us/post?url=http://si.yousuode.com/article/multiple_select_bug_in_opera.html&title=Opera下多选select控件bug一枚">del.icio.us</a>
<br/>
Tags: <a href="http://si.yousuode.com/article/tag/javascript-opera-bug" rel="tag">javascript opera bug</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://si.yousuode.com/article/multiple_select_bug_in_opera.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>项目中calendar模块修改版</title>
		<link>http://si.yousuode.com/article/ghrcalendar.html</link>
		<comments>http://si.yousuode.com/article/ghrcalendar.html#comments</comments>
		<pubDate>Sat, 26 Jun 2010 07:49:53 +0000</pubDate>
		<dc:creator>海妖的夜</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[未分类]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://si.yousuode.com/article/ghrcalendar.html</guid>
		<description><![CDATA[把项目中负责的一个模块精简修改后放在这里，以记录在css+javascript+jquery上的精进和展示现阶段的前端上的技术水准。后端简化了取数据方式，不过也还可以代表一部分的设计水准。 源码下载，部署在任意application server就好，如tomcat，可直接运行。 GHRCalendarWeb © 海妖的夜 for 思有所得, 2010. &#124; 永久链接 &#124; 添加到 del.icio.us Tags: css, javascript, jquery]]></description>
			<content:encoded><![CDATA[<p>把项目中负责的一个模块精简修改后放在这里，以记录在css+javascript+jquery上的精进和展示现阶段的前端上的技术水准。后端简化了取数据方式，不过也还可以代表一部分的设计水准。</p>
<p><a href="http://si.yousuode.com/wp-content/uploads/2010/06/ghrcalendar.png"><img style="display: inline; border-width: 0px;" title="ghrcalendar" src="http://si.yousuode.com/wp-content/uploads/2010/06/ghrcalendar_thumb.png" border="0" alt="ghrcalendar" width="288" height="192" /></a></p>
<p>源码下载，部署在任意application server就好，如tomcat，可直接运行。</p>
<p><a href="http://si.yousuode.com/wp-content/uploads/2010/06/GHRCalendarWeb.zip">GHRCalendarWeb</a></p>
<hr />
<p><small>© 海妖的夜 for <a href="http://si.yousuode.com">思有所得</a>, 2010. |
<a href="http://si.yousuode.com/article/ghrcalendar.html">永久链接</a> |
添加到
<a href="http://del.icio.us/post?url=http://si.yousuode.com/article/ghrcalendar.html&title=项目中calendar模块修改版">del.icio.us</a>
<br/>
Tags: <a href="http://si.yousuode.com/article/tag/css" rel="tag">css</a>, <a href="http://si.yousuode.com/article/tag/javascript" rel="tag">javascript</a>, <a href="http://si.yousuode.com/article/tag/jquery" rel="tag">jquery</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://si.yousuode.com/article/ghrcalendar.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript中将unicode代码字符转为真实字符</title>
		<link>http://si.yousuode.com/article/unicode_to_string.html</link>
		<comments>http://si.yousuode.com/article/unicode_to_string.html#comments</comments>
		<pubDate>Mon, 12 Apr 2010 09:02:12 +0000</pubDate>
		<dc:creator>海妖的夜</dc:creator>
				<category><![CDATA[develop]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://si.yousuode.com/article/unicode_to_string.html</guid>
		<description><![CDATA[&#60;script type=&#34;text/javascript&#34;&#62; &#160;&#160;&#160; function UnicodeToStr(str){ &#160;&#160;&#160;&#160;&#160;&#160;&#160; var re = /&#38;#[\da-fA-F]{1,5};/ig; &#160;&#160;&#160;&#160;&#160;&#160;&#160; var arr = str.match(re); &#160;&#160;&#160;&#160;&#160;&#160;&#160; if(arr == null) { &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return str; &#160;&#160;&#160;&#160;&#160;&#160;&#160; } &#160;&#160;&#160;&#160;&#160;&#160;&#160; var temp; &#160;&#160;&#160;&#160;&#160;&#160;&#160; for(var i = 0;i &#60; arr.length; i++){ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; str = str.replace(arr[i], String.fromCharCode(arr[i].replace(/[&#38;#;]/g,&#34;&#34;))); &#160;&#160;&#160;&#160;&#160;&#160;&#160; } &#160;&#160;&#160;&#160;&#160;&#160;&#160; return str;&#160; &#160;&#160;&#160; } &#160;&#160;&#160; alert(UnicodeToStr(&#34;&#38;#37;&#34;)); &#60;/script&#62; © 海妖的夜 for 思有所得, [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>&lt;script type=&quot;text/javascript&quot;&gt;      <br />&#160;&#160;&#160; function UnicodeToStr(str){      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var re = /&amp;#[\da-fA-F]{1,5};/ig;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var arr = str.match(re);      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(arr == null) {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return str;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var temp;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; for(var i = 0;i &lt; arr.length; i++){      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; str = str.replace(arr[i], String.fromCharCode(arr[i].replace(/[&amp;#;]/g,&quot;&quot;)));      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; return str;&#160; <br />&#160;&#160;&#160; }      <br />&#160;&#160;&#160; alert(UnicodeToStr(&quot;&amp;#37;&quot;));      <br />&lt;/script&gt;</p>
</blockquote>
<hr />
<p><small>© 海妖的夜 for <a href="http://si.yousuode.com">思有所得</a>, 2010. |
<a href="http://si.yousuode.com/article/unicode_to_string.html">永久链接</a> |
添加到
<a href="http://del.icio.us/post?url=http://si.yousuode.com/article/unicode_to_string.html&title=JavaScript中将unicode代码字符转为真实字符">del.icio.us</a>
<br/>
Tags: <a href="http://si.yousuode.com/article/tag/javascript" rel="tag">javascript</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://si.yousuode.com/article/unicode_to_string.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>不同浏览器对iframe与主页面dom树的不同理解</title>
		<link>http://si.yousuode.com/article/iframedom.html</link>
		<comments>http://si.yousuode.com/article/iframedom.html#comments</comments>
		<pubDate>Fri, 05 Mar 2010 10:03:00 +0000</pubDate>
		<dc:creator>海妖的夜</dc:creator>
				<category><![CDATA[develop]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://si.yousuode.com/article/iframedom.html</guid>
		<description><![CDATA[悄悄的IE8/firefox/opera与IE6/7/chrome对iframe与主页面dom结构的理解产生了分歧. 在IE6/7/chrome中iframe的dom树与主页面是独立的, 因此将iframe中的节点移动到主页面中会报错. 而在IE8/firefox/opera中iframe的dom树与主页面是相关的, 因此将iframe中的节点移动到主页面中会成功. 测试代码如下 iframe.html: &#60;div id=&#34;testdiv&#34;&#62;inside a iframe&#60;/div&#62; 主页面: &#60;iframe id=&#34;testiframe&#34; src=&#34;iframe.html&#34;&#62;&#60;/iframe&#62;&#60;br /&#62; &#60;div&#62;here is main content&#60;/div&#62; &#60;script type=&#34;text/javascript&#34;&#62; &#160;&#160;&#160; var iframe = document.getElementById(&#34;testiframe&#34;); &#160;&#160;&#160; setTimeout(function(){ &#160;&#160;&#160;&#160;&#160;&#160;&#160; var testdiv = iframe.contentWindow.document.getElementById(&#34;testdiv&#34;); &#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(testdiv.innerHTML); &#160;&#160;&#160;&#160;&#160;&#160;&#160; document.body.appendChild(testdiv); &#160;&#160;&#160;&#160;&#160;&#160;&#160; document.body.innerHTML += testdiv.outerHTML; &#160;&#160;&#160; }, 200); &#60;/script&#62; 首先等待200毫秒让iframe加载进来, 再验证的确取到了iframe中的内容, 然后将节点append到主页面, 然后就观察到了上面所描述的现象. 以上的分歧影响到了其他的JS库, 如JQuery, $(&#34;body&#34;).append()一样会有问题. 弥补方法则是判断浏览器类型, 然后用innerHTML绕过这个限制. [...]]]></description>
			<content:encoded><![CDATA[<p>悄悄的IE8/firefox/opera与IE6/7/chrome对iframe与主页面dom结构的理解产生了分歧.   <br />在IE6/7/chrome中iframe的dom树与主页面是独立的, 因此将iframe中的节点移动到主页面中会报错.     <br />而在IE8/firefox/opera中iframe的dom树与主页面是相关的, 因此将iframe中的节点移动到主页面中会成功.     <br />测试代码如下</p>
<p>iframe.html:</p>
<blockquote><p>&lt;div id=&quot;testdiv&quot;&gt;inside a iframe&lt;/div&gt; </p></blockquote>
<p> 主页面:<br />
<blockquote style="margin-right: 0px" dir="ltr">&lt;iframe id=&quot;testiframe&quot; src=&quot;iframe.html&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;    <br />&lt;div&gt;here is main content&lt;/div&gt;     <br />&lt;script type=&quot;text/javascript&quot;&gt;     <br />&#160;&#160;&#160; var iframe = document.getElementById(&quot;testiframe&quot;);     <br />&#160;&#160;&#160; setTimeout(function(){     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var testdiv = iframe.contentWindow.document.getElementById(&quot;testdiv&quot;);     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(testdiv.innerHTML);     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; document.body.appendChild(testdiv);     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; document.body.innerHTML += testdiv.outerHTML;     <br />&#160;&#160;&#160; }, 200);     <br />&lt;/script&gt;</p></blockquote>
<p>首先等待200毫秒让iframe加载进来, 再验证的确取到了iframe中的内容, 然后将节点append到主页面, 然后就观察到了上面所描述的现象.   <br />以上的分歧影响到了其他的JS库, 如JQuery, $(&quot;body&quot;).append()一样会有问题.    <br />弥补方法则是判断浏览器类型, 然后用innerHTML绕过这个限制.    <br />有趣的是,注释掉appendChild语句后发现, 在所有浏览器中只有firefox不支持outerHTML这个事实标准了.</p>
<hr />
<p><small>© 海妖的夜 for <a href="http://si.yousuode.com">思有所得</a>, 2010. |
<a href="http://si.yousuode.com/article/iframedom.html">永久链接</a> |
添加到
<a href="http://del.icio.us/post?url=http://si.yousuode.com/article/iframedom.html&title=不同浏览器对iframe与主页面dom树的不同理解">del.icio.us</a>
<br/>
Tags: <a href="http://si.yousuode.com/article/tag/javascript" rel="tag">javascript</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://si.yousuode.com/article/iframedom.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原创]JQuery插件better select</title>
		<link>http://si.yousuode.com/article/better-select.html</link>
		<comments>http://si.yousuode.com/article/better-select.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 09:12:00 +0000</pubDate>
		<dc:creator>海妖的夜</dc:creator>
				<category><![CDATA[plugin]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://si.yousuode.com/article/betterselect.html</guid>
		<description><![CDATA[本人写的第一个JQuery插件better select, 为的是提供与原生select控件一致的外观和更&#34;正常&#34;的功能体验. 与其他的select模拟插件不同, better select不使用div替换select本身, 只替换下拉框部分, 这样不会影响原本基于select控件的设计并且因此具有与其他原生select控件一致的外观. 在原生的select控件中, 当下拉框中条目字数过多,IE会截断,firefox会无限延伸下拉框而不是换行, better select选择进行换行, 且可定义宽度. 作为基本功能, better select实现了onchange的回调, 并额外提供对于下拉框每行的绘制回调来实现更复杂的下拉框,如含有图片和链接. 可设置的参数包括 dropDownClass:&#160;&#160;&#160;&#160;&#160; &#34;betterselect&#34;, selectedClass:&#160;&#160;&#160;&#160;&#160; &#34;selected&#34;, overClass:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;over&#34;, /* * if width is null, the width is equal to the select component width. */ width:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; null, /* * if item size is larger than scrollSize, then set the ul [...]]]></description>
			<content:encoded><![CDATA[<p>本人写的第一个JQuery插件better select, 为的是提供与原生select控件一致的外观和更&quot;正常&quot;的功能体验.    <br />与其他的select模拟插件不同, better select不使用div替换select本身, 只替换下拉框部分, 这样不会影响原本基于select控件的设计并且因此具有与其他原生select控件一致的外观.</p>
<p>在原生的select控件中, 当下拉框中条目字数过多,IE会截断,firefox会无限延伸下拉框而不是换行, better select选择进行换行, 且可定义宽度.    <br />作为基本功能, better select实现了onchange的回调, 并额外提供对于下拉框每行的绘制回调来实现更复杂的下拉框,如含有图片和链接.</p>
<p>可设置的参数包括</p>
<blockquote><p>dropDownClass:&#160;&#160;&#160;&#160;&#160; &quot;betterselect&quot;,      <br />selectedClass:&#160;&#160;&#160;&#160;&#160; &quot;selected&quot;,       <br />overClass:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;over&quot;,       <br />/*       <br />* if width is null, the width is equal to the select component width.       <br />*/       <br />width:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; null,       <br />/*       <br />* if item size is larger than scrollSize, then set the ul height to maxheight       <br />*/       <br />scrollSize:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 14,       <br />maxheight:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 252,       <br />/*       <br />* drawRowExtend is used to draw a row yourself.       <br />* should return string or jQuery object which is an&#160; Li component.       <br />* this function takes 3 parameters:       <br />* 1. the select component       <br />* 2. current index which is starting from 0       <br />* 3. the plugin options as a map       <br />*/       <br />drawLiExtend:&#160;&#160;&#160;&#160;&#160;&#160; null,       <br />onChangeCallback:&#160;&#160; null</p>
</blockquote>
<p>附上源码和示例, 发布于MIT许可证, 基于JQuery 1.3.2, 兼容IE6/7/8, Firefox, Opera, Chrome: <a href="http://si.yousuode.com/wp-content/uploads/2010/01/betterselect.zip">betterselect.zip</a></p>
<p>下一步功能:</p>
<blockquote><p>1.模仿原生select控件,在不同位置弹出不同方向下拉框, 如在最底下就向上弹出.</p>
<p>2.提供选项针对select本身的模拟.</p>
<p>3.增加键盘支持.</p>
</blockquote>
<hr />
<p><small>© 海妖的夜 for <a href="http://si.yousuode.com">思有所得</a>, 2010. |
<a href="http://si.yousuode.com/article/better-select.html">永久链接</a> |
添加到
<a href="http://del.icio.us/post?url=http://si.yousuode.com/article/better-select.html&title=[原创]JQuery插件better select">del.icio.us</a>
<br/>
Tags: <a href="http://si.yousuode.com/article/tag/jquery" rel="tag">jquery</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://si.yousuode.com/article/better-select.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>无敌鼠标映射工具</title>
		<link>http://si.yousuode.com/article/xmouse_button_control.html</link>
		<comments>http://si.yousuode.com/article/xmouse_button_control.html#comments</comments>
		<pubDate>Mon, 28 Dec 2009 16:33:21 +0000</pubDate>
		<dc:creator>海妖的夜</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://si.yousuode.com/article/%e6%97%a0%e6%95%8c%e9%bc%a0%e6%a0%87%e6%98%a0%e5%b0%84%e5%b7%a5%e5%85%b7.html</guid>
		<description><![CDATA[新买的惠普百灵无线鼠标没有自定义左侧两个按键的驱动, 但这个世界伟人辈出, 做出了这样的软件, 它支持将鼠标的一个按键映射到53种功能之一, 其中一个是映射到自定义键盘按键, 间接达到调用任何功能的目的. 它就是X Mouse Button Control. 这里有汉化http://diybbs.it168.com/thread-515119-1-1.html © 海妖的夜 for 思有所得, 2009. &#124; 永久链接 &#124; 添加到 del.icio.us Tags:]]></description>
			<content:encoded><![CDATA[<p>新买的惠普百灵无线鼠标没有自定义左侧两个按键的驱动, 但这个世界伟人辈出, 做出了这样的软件, 它支持将鼠标的一个按键映射到53种功能之一, 其中一个是映射到自定义键盘按键, 间接达到调用任何功能的目的.</p>
<p>它就是X Mouse Button Control.</p>
<p>这里有汉化<a title="http://diybbs.it168.com/thread-515119-1-1.html" href="http://diybbs.it168.com/thread-515119-1-1.html">http://diybbs.it168.com/thread-515119-1-1.html</a></p>
<hr />
<p><small>© 海妖的夜 for <a href="http://si.yousuode.com">思有所得</a>, 2009. |
<a href="http://si.yousuode.com/article/xmouse_button_control.html">永久链接</a> |
添加到
<a href="http://del.icio.us/post?url=http://si.yousuode.com/article/xmouse_button_control.html&title=无敌鼠标映射工具">del.icio.us</a>
<br/>
Tags: <br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://si.yousuode.com/article/xmouse_button_control.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>傲游简易顶贴助手插件</title>
		<link>http://si.yousuode.com/article/ding_plugin.html</link>
		<comments>http://si.yousuode.com/article/ding_plugin.html#comments</comments>
		<pubDate>Fri, 13 Nov 2009 07:49:00 +0000</pubDate>
		<dc:creator>海妖的夜</dc:creator>
				<category><![CDATA[plugin]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://si.yousuode.com/article/ding_plugin.html</guid>
		<description><![CDATA[随手写的.欢迎捧场:http://bbs.maxthon.cn/viewthread.php?tid=198341 © 海妖的夜 for 思有所得, 2009. &#124; 永久链接 &#124; 添加到 del.icio.us Tags: javascript]]></description>
			<content:encoded><![CDATA[<p>随手写的.欢迎捧场:<a title="http://bbs.maxthon.cn/viewthread.php?tid=198341" href="http://bbs.maxthon.cn/viewthread.php?tid=198341">http://bbs.maxthon.cn/viewthread.php?tid=198341</a></p>
<hr />
<p><small>© 海妖的夜 for <a href="http://si.yousuode.com">思有所得</a>, 2009. |
<a href="http://si.yousuode.com/article/ding_plugin.html">永久链接</a> |
添加到
<a href="http://del.icio.us/post?url=http://si.yousuode.com/article/ding_plugin.html&title=傲游简易顶贴助手插件">del.icio.us</a>
<br/>
Tags: <a href="http://si.yousuode.com/article/tag/javascript" rel="tag">javascript</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://si.yousuode.com/article/ding_plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>开机SvcHost.exe出错的其中之一可能原因</title>
		<link>http://si.yousuode.com/article/svchost_error.html</link>
		<comments>http://si.yousuode.com/article/svchost_error.html#comments</comments>
		<pubDate>Fri, 23 Oct 2009 03:24:01 +0000</pubDate>
		<dc:creator>海妖的夜</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://si.yousuode.com/article/svchost_error.html</guid>
		<description><![CDATA[曾经遇到过开机还没登陆桌面就出错的这个问题,后来关了很多服务,清理了很多注册表,打了很多补丁,不知是哪个起了作用就自然解决了. 今天再次遇到这个问题. 看到日志服务中有个关于360安全卫生核心服务的记录, 又看到有DCOM某某条错. 查看出错原因是某个程序在web准备好前从web启动服务失败. 于是福如心至, 想到360安全卫士的云查杀服务可能就是罪魁祸首, 而且也能解释为什么会在登录前就出错, 因为权限很高(在服务里根本停不掉), 于是开360起来看, 发现右边的广告信息被公司网络屏蔽了, 再访问360网站, 确认也被屏蔽. 于是结果很明显, 360云查杀服务在启动的时候要访问网络, 而360网络被公司封掉, 自然就无法启动, 于是报错. 卸载360后重启, 错误消失. 从上可以看出SvcHost.ext出错的可能原因是某个服务需要访问网络, 当网络连通, 但却没有返回正确结果的时候就可能出错. 因此解决思路应该从找那些服务是启动时候就访问网络的开始. 比如windows的自动更新服务, 比如后台智能传输服务, 比如SMS服务, 然后停掉它们. 其中windows的自动更新服务出错的几率很高. 这也能很好解释为什么SvcHost.exe出错, 虽然解决方法很多, 却又没有通用方法的原因, 因为出错的服务不同. © 海妖的夜 for 思有所得, 2009. &#124; 永久链接 &#124; 添加到 del.icio.us Tags:]]></description>
			<content:encoded><![CDATA[<p>曾经遇到过开机还没登陆桌面就出错的这个问题,后来关了很多服务,清理了很多注册表,打了很多补丁,不知是哪个起了作用就自然解决了.    <br />今天再次遇到这个问题.     <br />看到日志服务中有个关于360安全卫生核心服务的记录, 又看到有DCOM某某条错. 查看出错原因是某个程序在web准备好前从web启动服务失败.     <br />于是福如心至, 想到360安全卫士的云查杀服务可能就是罪魁祸首, 而且也能解释为什么会在登录前就出错, 因为权限很高(在服务里根本停不掉), 于是开360起来看, 发现右边的广告信息被公司网络屏蔽了, 再访问360网站, 确认也被屏蔽.     <br />于是结果很明显, 360云查杀服务在启动的时候要访问网络, 而360网络被公司封掉, 自然就无法启动, 于是报错.     <br />卸载360后重启, 错误消失.</p>
<p>从上可以看出SvcHost.ext出错的可能原因是某个服务需要访问网络, 当网络连通, 但却没有返回正确结果的时候就可能出错. 因此解决思路应该从找那些服务是启动时候就访问网络的开始.    <br />比如windows的自动更新服务, 比如后台智能传输服务, 比如SMS服务, 然后停掉它们. 其中windows的自动更新服务出错的几率很高.     <br />这也能很好解释为什么SvcHost.exe出错, 虽然解决方法很多, 却又没有通用方法的原因, 因为出错的服务不同.</p>
<hr />
<p><small>© 海妖的夜 for <a href="http://si.yousuode.com">思有所得</a>, 2009. |
<a href="http://si.yousuode.com/article/svchost_error.html">永久链接</a> |
添加到
<a href="http://del.icio.us/post?url=http://si.yousuode.com/article/svchost_error.html&title=开机SvcHost.exe出错的其中之一可能原因">del.icio.us</a>
<br/>
Tags: <br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://si.yousuode.com/article/svchost_error.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IBM Portal中从portal向portlet传参数的方法</title>
		<link>http://si.yousuode.com/article/ibm_portal_to_portlet.html</link>
		<comments>http://si.yousuode.com/article/ibm_portal_to_portlet.html#comments</comments>
		<pubDate>Tue, 13 Oct 2009 05:35:34 +0000</pubDate>
		<dc:creator>海妖的夜</dc:creator>
				<category><![CDATA[develop]]></category>
		<category><![CDATA[portlet java]]></category>

		<guid isPermaLink="false">http://si.yousuode.com/article/ibm-portal%e4%b8%ad%e4%bb%8eportal%e4%b8%ad%e5%90%91portlet%e4%bc%a0%e5%8f%82%e6%95%b0%e7%9a%84%e6%96%b9%e6%b3%95.html</guid>
		<description><![CDATA[虽然不是portlet规范中所定义的方法,但有的时候hack真的无法避免.以下方法在IBM Portal 6.1中测试通过. 先在portal(比如theme)中设置 request.setAttribute(&#34;testKey&#34;,&#34;testValue&#34;); 然后在portlet中使用 //用内部方法取得portal的http request HttpServletRequest httpReq = com.ibm.wps.pe.pc.std.core.PortletUtils.getInternalRequest(portletRequest).getHttpServletRequest(); httpReq.getAttribute(&#34;testKey&#34;); 其实portletRequest.getAttribute(…)本身就包含很多好东西,甚至包含portal的session,只是取的方法很麻烦. © 海妖的夜 for 思有所得, 2009. &#124; 永久链接 &#124; 添加到 del.icio.us Tags: portlet java]]></description>
			<content:encoded><![CDATA[<p>虽然不是portlet规范中所定义的方法,但有的时候hack真的无法避免.以下方法在IBM Portal 6.1中测试通过.</p>
<p>先在portal(比如theme)中设置</p>
<blockquote><p>request.setAttribute(&quot;testKey&quot;,&quot;testValue&quot;);</p>
</blockquote>
<p>然后在portlet中使用</p>
<blockquote><p>//用内部方法取得portal的http request</p>
<p>HttpServletRequest httpReq = com.ibm.wps.pe.pc.std.core.PortletUtils.getInternalRequest(portletRequest).getHttpServletRequest();</p>
<p>httpReq.getAttribute(&quot;testKey&quot;);</p>
</blockquote>
<p>其实portletRequest.getAttribute(…)本身就包含很多好东西,甚至包含portal的session,只是取的方法很麻烦.</p>
<hr />
<p><small>© 海妖的夜 for <a href="http://si.yousuode.com">思有所得</a>, 2009. |
<a href="http://si.yousuode.com/article/ibm_portal_to_portlet.html">永久链接</a> |
添加到
<a href="http://del.icio.us/post?url=http://si.yousuode.com/article/ibm_portal_to_portlet.html&title=IBM Portal中从portal向portlet传参数的方法">del.icio.us</a>
<br/>
Tags: <a href="http://si.yousuode.com/article/tag/portlet-java" rel="tag">portlet java</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://si.yousuode.com/article/ibm_portal_to_portlet.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>傲游百度贴吧只看某人插件</title>
		<link>http://si.yousuode.com/article/tieba_plugin.html</link>
		<comments>http://si.yousuode.com/article/tieba_plugin.html#comments</comments>
		<pubDate>Mon, 12 Oct 2009 07:42:00 +0000</pubDate>
		<dc:creator>海妖的夜</dc:creator>
				<category><![CDATA[plugin]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://si.yousuode.com/article/tieba-plugin.html</guid>
		<description><![CDATA[用jQuery实现的傲游百度贴吧只看某人插件, 可以连续载入下几页的过滤后数据, 点分页也可以保持过滤. 这个插件是对jQuery的第一次真正的演练, 欢迎捧场: http://bbs.maxthon.cn/viewthread.php?tid=190791. © 海妖的夜 for 思有所得, 2009. &#124; 永久链接 &#124; 添加到 del.icio.us Tags: javascript]]></description>
			<content:encoded><![CDATA[<p>用jQuery实现的傲游百度贴吧只看某人插件, 可以连续载入下几页的过滤后数据, 点分页也可以保持过滤.    <br />这个插件是对jQuery的第一次真正的演练, 欢迎捧场: <a title="http://bbs.maxthon.cn/viewthread.php?tid=190791" href="http://bbs.maxthon.cn/viewthread.php?tid=190791">http://bbs.maxthon.cn/viewthread.php?tid=190791</a>.</p>
<p><img src="http://addons.maxthon.cn/image_url/2836/20091025223400_tieba.jpg" /></p>
<hr />
<p><small>© 海妖的夜 for <a href="http://si.yousuode.com">思有所得</a>, 2009. |
<a href="http://si.yousuode.com/article/tieba_plugin.html">永久链接</a> |
添加到
<a href="http://del.icio.us/post?url=http://si.yousuode.com/article/tieba_plugin.html&title=傲游百度贴吧只看某人插件">del.icio.us</a>
<br/>
Tags: <a href="http://si.yousuode.com/article/tag/javascript" rel="tag">javascript</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://si.yousuode.com/article/tieba_plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
