<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>椰子Java</title> 
<link>http:///index.php</link> 
<description>我从业已有6年啦，经历了喜欢、狂热、努力、麻木、厌倦、坚持、直到深爱上我从事的行业，我觉得这是最能体现我价值的事业啦。几年前做这个blog只是为了将自己所学、所想、所思记录下来，以便日后能做为整理的资料，但是到今天我才发现它已经是我生活的一部分，现在如果我有一天没有写我的blog我都觉得少点什么，如果您对我的言论有共鸣的话欢迎您的讨论和指教。</description> 
<language>zh-cn</language> 
<copyright>Powered by Bo-blog 2.0.2 sp1</copyright>
<item>
<link>http:///read.php?804</link>
<title>时间格式函数</title> 
<author>fubin &lt;admin@yourname.com&gt;</author>
<category>BY Oracle</category>
<pubDate>Thu, 15 May 2008 15:13:47 +0000</pubDate> 
<guid>http:///read.php?804</guid> 
<description>
<![CDATA[ 
	CREATE OR REPLACE FUNCTION &nbsp; &nbsp; &nbsp; timeformat (<br/> &nbsp; m_amount_in IN NUMBER )<br/> &nbsp; RETURN VARCHAR2<br/>AS<br/> &nbsp; m_amount &nbsp; &nbsp; NUMBER := m_amount_in;<br/> &nbsp; word_string &nbsp;VARCHAR2(1000);<br/> &nbsp; minute_number &nbsp;number;<br/> &nbsp; second_number &nbsp;number;<br/> &nbsp; Begin<br/> &nbsp; IF Round(m_amount_in,0) > 59<br/> &nbsp; THEN<br/> &nbsp; &nbsp; &nbsp;minute_number := trunc((m_amount_in/60),0);<br/> &nbsp; &nbsp; &nbsp;dbms_output.PUT_LINE( minute_number);<br/> &nbsp; &nbsp; &nbsp;SECOND_NUMBER := &nbsp;MOD(m_amount_in , 60);<br/> &nbsp; &nbsp; &nbsp;dbms_output.PUT_LINE(SECOND_NUMBER);<br/> &nbsp; &nbsp; &nbsp; &nbsp; if second_number < '10'<br/> &nbsp; &nbsp; &nbsp; &nbsp; then<br/> &nbsp; &nbsp; &nbsp; &nbsp; word_string := &nbsp;minute_number &#124;&#124; ':'&#124;&#124; '0' &#124;&#124; round(second_number,0);<br/> &nbsp; &nbsp; &nbsp; &nbsp;else<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;word_string := &nbsp;minute_number &#124;&#124; ':'&#124;&#124; round(second_number,0);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end if ;<br/> &nbsp; &nbsp; &nbsp; &nbsp;ELSE<br/> &nbsp; &nbsp; &nbsp; &nbsp;MINUTE_NUMBER := 0;<br/> &nbsp; &nbsp; &nbsp; &nbsp;second_number := Round(m_amount_in,0) ;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if second_number < '10'<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; then<br/> &nbsp; &nbsp; &nbsp; &nbsp; word_string := 0 &#124;&#124; ':' &#124;&#124; '0' &#124;&#124; &nbsp;Round(second_number,0);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;word_string := 0 &#124;&#124; ':' &#124;&#124; Round(second_number,0);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end if ;<br/> &nbsp; &nbsp;END IF;<br/> &nbsp; RETURN &nbsp;(word_string);<br/>END timeformat;<br/><br/>/<br/><br/>
  ]]> 
</description>
</item><item>
<link>http:///read.php?803</link>
<title>希望上天能看到这一切</title> 
<author>fubin &lt;admin@yourname.com&gt;</author>
<category>路线图计划</category>
<pubDate>Wed, 14 May 2008 01:04:53 +0000</pubDate> 
<guid>http:///read.php?803</guid> 
<description>
<![CDATA[ 
	<a href="http:///attachment/200805/1210727089_0.jpg" target="_blank"><img src="http:///attachment/200805/1210727089_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http:///attachment/200805/1210727080_0.jpg" target="_blank"><img src="http:///attachment/200805/1210727080_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http:///attachment/200805/1210727070_0.jpg" target="_blank"><img src="http:///attachment/200805/1210727070_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http:///attachment/200805/1210727061_0.jpg" target="_blank"><img src="http:///attachment/200805/1210727061_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http:///attachment/200805/1210727051_0.jpg" target="_blank"><img src="http:///attachment/200805/1210727051_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http:///attachment/200805/1210727034_0.jpg" target="_blank"><img src="http:///attachment/200805/1210727034_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http:///attachment/200805/1210727022_0.jpg" target="_blank"><img src="http:///attachment/200805/1210727022_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http:///attachment/200805/1210727005_0.jpg" target="_blank"><img src="http:///attachment/200805/1210727005_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http:///attachment/200805/1210726994_0.jpg" target="_blank"><img src="http:///attachment/200805/1210726994_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><br/><br/><br/><br/>
  ]]> 
</description>
</item><item>
<link>http:///read.php?802</link>
<title>地震后记</title> 
<author>fubin &lt;admin@yourname.com&gt;</author>
<category>路线图计划</category>
<pubDate>Tue, 13 May 2008 02:51:20 +0000</pubDate> 
<guid>http:///read.php?802</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp; &nbsp;今天第一件事情就是上网络看看地震的情况，令人伤心的是死亡人数已经过万了！<br/><br/> &nbsp; &nbsp;我想佛主会保佑他们的灵魂的，因为他们并没有错。<br/><br/> &nbsp; &nbsp;我不知道出现自然灾难后大家都在想什么，我想得更多的是我们应该是没有做错什么吧，真希望这并不是上天给我们的惩罚，而只是佛主不小心打的一个冷战。
  ]]> 
</description>
</item><item>
<link>http:///read.php?801</link>
<title>地震</title> 
<author>fubin &lt;admin@yourname.com&gt;</author>
<category>路线图计划</category>
<pubDate>Mon, 12 May 2008 14:38:35 +0000</pubDate> 
<guid>http:///read.php?801</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp; &nbsp;我第一对地震的感觉还是真很小的时候，大概是我上初中二年级的时候，我记得我们教学楼晃动了十多秒，真是一件恐怖的事情。<br/><br/> &nbsp; &nbsp;今天发生的地震对我来说影响好大，因为许多朋友都在成都，就在地震发生时候我还在网络上和他们聊天，他们忽然说：“不聊了！我们这里发生了地震！”我还以为他们在开玩笑，呵呵。<br/><br/> &nbsp; &nbsp;
  ]]> 
</description>
</item><item>
<link>http:///read.php?800</link>
<title>删除两个表重复的数据</title> 
<author>fubin &lt;admin@yourname.com&gt;</author>
<category>BY Oracle</category>
<pubDate>Sat, 10 May 2008 01:44:25 +0000</pubDate> 
<guid>http:///read.php?800</guid> 
<description>
<![CDATA[ 
	delete <br/> &nbsp; &nbsp;from &nbsp; &nbsp;schema.table1 t1<br/> &nbsp; &nbsp;where &nbsp; t1.rowid > <br/> &nbsp; &nbsp;(select<br/> &nbsp; &nbsp; min &nbsp; (t2.rowid)<br/> &nbsp; &nbsp; from &nbsp; schema.table1 t2<br/> &nbsp; &nbsp; where &nbsp;t1.fcn = t2.fcn);
  ]]> 
</description>
</item><item>
<link>http:///read.php?799</link>
<title>阿拉伯文字输入方法</title> 
<author>fubin &lt;admin@yourname.com&gt;</author>
<category>Java在Web上的应用开发</category>
<pubDate>Fri, 09 May 2008 12:48:53 +0000</pubDate> 
<guid>http:///read.php?799</guid> 
<description>
<![CDATA[ 
	这是所有特殊文字输入方法的最好解决方案。<br/><br/><a href="http:///attachment/200805/1210337290_0.jpg" target="_blank"><img src="http:///attachment/200805/1210337290_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><a href="attachment/200805/1210337229_0.rar">点击这里下载文件</a><br/><br/>
  ]]> 
</description>
</item><item>
<link>http:///read.php?798</link>
<title>按照一个规则分割某个字符串，并把字符穿</title> 
<author>fubin &lt;admin@yourname.com&gt;</author>
<category>BY Oracle</category>
<pubDate>Wed, 07 May 2008 08:23:27 +0000</pubDate> 
<guid>http:///read.php?798</guid> 
<description>
<![CDATA[ 
	在Oracle中实现Java Split方法，我有做了一个改进，既可以将某个字符串，分割以后，将任何段组合成为一个新的String.<br/><br/><br/>CREATE OR REPLACE TYPE ty_str_split IS TABLE OF VARCHAR2 (4000);<br/><br/>CREATE OR REPLACE FUNCTION fn_split (p_str IN VARCHAR2, p_delimiter IN VARCHAR2)<br/> &nbsp;RETURN ty_str_split<br/>IS<br/> &nbsp;j INT := 0;<br/> &nbsp;i INT := 1;<br/> &nbsp;len INT := 0;<br/> &nbsp;len1 INT := 0;<br/> &nbsp;str VARCHAR2 (4000);<br/> &nbsp;str_split ty_str_split := ty_str_split ();<br/>BEGIN<br/> &nbsp;len := LENGTH (p_str);<br/> &nbsp;len1 := LENGTH (p_delimiter);<br/><br/> &nbsp;WHILE j < len<br/> &nbsp;LOOP<br/> &nbsp; &nbsp;j := INSTR (p_str, p_delimiter, i);<br/><br/> &nbsp; &nbsp;IF j = 0<br/> &nbsp; &nbsp;THEN<br/> &nbsp; &nbsp; &nbsp; &nbsp;j := len;<br/> &nbsp; &nbsp; &nbsp; &nbsp;str := SUBSTR (p_str, i);<br/> &nbsp; &nbsp; &nbsp; &nbsp;str_split.EXTEND;<br/> &nbsp; &nbsp; &nbsp; &nbsp;str_split (str_split.COUNT) := str;<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp;IF i >= len<br/> &nbsp; &nbsp; &nbsp; &nbsp;THEN<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXIT;<br/> &nbsp; &nbsp; &nbsp; &nbsp;END IF;<br/> &nbsp; &nbsp;ELSE<br/> &nbsp; &nbsp; &nbsp; &nbsp;str := SUBSTR (p_str, i, j - i);<br/> &nbsp; &nbsp; &nbsp; &nbsp;i := j + len1;<br/> &nbsp; &nbsp; &nbsp; &nbsp;str_split.EXTEND;<br/> &nbsp; &nbsp; &nbsp; &nbsp;str_split (str_split.COUNT) := str;<br/> &nbsp; &nbsp;END IF;<br/> &nbsp;END LOOP;<br/><br/> &nbsp;RETURN str_split;<br/>END fn_split;<br/>/<br/><br/><br/>--取得从开始到某个位置的所有字符串的累加<br/><br/>CREATE OR REPLACE FUNCTION fn_split_b (p_str IN VARCHAR2, p_delimiter IN VARCHAR2,my_flag in integer)<br/> &nbsp;RETURN string as<br/> &nbsp;cursor c(s_p_str VARCHAR2, s_p_delimiter VARCHAR2)<br/> &nbsp;IS<br/> &nbsp; &nbsp;SELECT * FROM TABLE (CAST (fn_split (s_p_str, s_p_delimiter) AS ty_str_split));<br/> &nbsp;r c%ROWTYPE;<br/> &nbsp;temp_Var varchar2(255) :='';<br/> &nbsp;temp_int integer :=1;<br/>BEGIN<br/> &nbsp;OPEN c(p_str,p_delimiter);<br/> &nbsp;LOOP<br/> &nbsp; &nbsp;FETCH c INTO r;<br/> &nbsp; &nbsp;EXIT WHEN temp_int>my_flag;<br/> &nbsp; &nbsp;temp_int:=temp_int+1;<br/> &nbsp; &nbsp;temp_Var:=temp_Var&#124;&#124;r.column_value;<br/> &nbsp;END LOOP;<br/> &nbsp; &nbsp;return temp_Var;<br/> &nbsp;CLOSE c;<br/>END;<br/>
  ]]> 
</description>
</item><item>
<link>http:///read.php?797</link>
<title>北极小村</title> 
<author>fubin &lt;admin@yourname.com&gt;</author>
<category>My English</category>
<pubDate>Mon, 05 May 2008 02:01:59 +0000</pubDate> 
<guid>http:///read.php?797</guid> 
<description>
<![CDATA[ 
	<a href="http:///attachment/200805/1210039442_0.jpg" target="_blank"><img src="http:///attachment/200805/1210039442_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>The tiny village of Moriusaq stands on the frozen landscape of northwest Greenland. The sea ice near this settlement used to be thick enough to travel and hunt on for hundreds of miles for up to ten months. Recently though, climate change has reduced this crucial window to just a few weeks each year.<br/><br/>这是一个位于格林兰西北部冻土地区的Moriusaq小村庄，以往这些地区的冰层在冻结以后通常可以供人们在上面行动10个月左右，但是由于最近气候变化造成了这种情况只能一年持续数周。
  ]]> 
</description>
</item><item>
<link>http:///read.php?796</link>
<title>忙碌的一天</title> 
<author>fubin &lt;admin@yourname.com&gt;</author>
<category>路线图计划</category>
<pubDate>Sun, 04 May 2008 01:46:24 +0000</pubDate> 
<guid>http:///read.php?796</guid> 
<description>
<![CDATA[ 
	假日过去了。。。新的工作周期又开始啦，真是忙碌的一天！
  ]]> 
</description>
</item><item>
<link>http:///read.php?795</link>
<title>Joboss中文问题解决方案</title> 
<author>fubin &lt;admin@yourname.com&gt;</author>
<category>Java在Web上的应用开发</category>
<pubDate>Tue, 29 Apr 2008 01:37:56 +0000</pubDate> 
<guid>http:///read.php?795</guid> 
<description>
<![CDATA[ 
	现象：在Web浏览器中，点击中文的Link，传过去的值是乱码。<br/><br/>解决方案：修改配置<br/><br/>文件地址：<br/>M:&#92;jboss-4.0.5.GA&#92;server&#92;all&#92;deploy&#92;jbossweb-tomcat55.sar &#92;server.xml<br/><br/>修改内容：<br/><br/> &nbsp;将 disableUploadTimeout=&quot;true&quot; &nbsp;URIEncoding=&quot;GBK&quot; useBodyEncodingForURI=&quot;true&quot; 文字配置加入其中。<br/><br/><br/>例如：<br/><br/> &nbsp; &nbsp; &lt;!-- A HTTP/1.1 Connector on port 8080 --&gt;<br/> &nbsp; &nbsp; &nbsp;&lt;Connector port=&quot;8080&quot; address=&quot;${jboss.bind.address}&quot;<br/> &nbsp; &nbsp; &nbsp; &nbsp; maxThreads=&quot;250&quot; strategy=&quot;ms&quot; maxHttpHeaderSize=&quot;8192&quot;<br/> &nbsp; &nbsp; &nbsp; &nbsp; emptySessionPath=&quot;true&quot;<br/> &nbsp; &nbsp; &nbsp; &nbsp; enableLookups=&quot;false&quot; redirectPort=&quot;8443&quot; acceptCount=&quot;100&quot;<br/> &nbsp; &nbsp; &nbsp; &nbsp; connectionTimeout=&quot;20000&quot; disableUploadTimeout=&quot;true&quot; &nbsp;URIEncoding=&quot;GBK&quot; useBodyEncodingForURI=&quot;true&quot;/&gt;<br/><br/> &nbsp; &nbsp; &nbsp;&lt;!-- Add this option to the connector to avoid problems with <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.NET clients that don&#039;t implement HTTP/1.1 correctly <br/> &nbsp; &nbsp; &nbsp; &nbsp; restrictedUserAgents=&quot;^.*MS Web Services Client Protocol 1.1.4322.*$&quot;<br/> &nbsp; &nbsp; &nbsp;--&gt;<br/> &nbsp;<br/> &nbsp; &nbsp; &nbsp;&lt;!-- A AJP 1.3 Connector on port 8009 --&gt;<br/> &nbsp; &nbsp; &nbsp;&lt;Connector port=&quot;8009&quot; address=&quot;${jboss.bind.address}&quot;<br/> &nbsp; &nbsp; &nbsp; &nbsp; emptySessionPath=&quot;true&quot; enableLookups=&quot;false&quot; redirectPort=&quot;8443&quot; <br/> &nbsp; &nbsp; &nbsp; &nbsp; protocol=&quot;AJP/1.3&quot;/&gt;
  ]]> 
</description>
</item>
</channel>
</rss>