<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[jindw@baidu]]></title>
        <image>
        <title>http://hi.baidu.com</title>
        <link>http://hi.baidu.com</link>
        <url>http://img.baidu.com/img/logo-hi.gif</url>
        </image>
<description><![CDATA[Java、JSI、JSA、JavaScript、FP、Template、DHTML]]></description>
<link>http://hi.baidu.com/jindw</link>
<language>zh-cn</language>
<generator>www.baidu.com</generator>
<ttl>5</ttl>


<item>
        <title><![CDATA[Firefox上读取服务端二进制数据]]></title>
        <link><![CDATA[http://hi.baidu.com/jindw/blog/item/3e0f29dbb2934060d1164e5c.html]]></link>
        <description><![CDATA[
		
		打开你的firefox<br>
输入：<br>
http://www.xidea.org<br>
<br>
打开firebug脚本输入窗口。<br>
<br>
贴上代码：<br>
<br>
<div style="border-style: dotted dotted dotted solid; border-color: rgb(131, 148, 178); border-width: 1px 1px 1px 4px; padding: 3px; background: rgb(250, 252, 254) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
<div class="quote_div">
<div>var xhr = new XMLHttpRe</div></div></div> <a href="http://hi.baidu.com/jindw/blog/item/3e0f29dbb2934060d1164e5c.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/jindw/blog/category/J%20S%20Debuging">J S Debuging</a>&nbsp;<a href="http://hi.baidu.com/jindw/blog/item/3e0f29dbb2934060d1164e5c.html#comment">查看评论</a>]]></description>
        <pubDate>2008-07-22  15:27</pubDate>
        <category><![CDATA[J S Debuging]]></category>
        <author><![CDATA[jindw]]></author>
		<guid>http://hi.baidu.com/jindw/blog/item/3e0f29dbb2934060d1164e5c.html</guid>
</item>

<item>
        <title><![CDATA[浏览器上读取并编码服务器端图片的想法]]></title>
        <link><![CDATA[http://hi.baidu.com/jindw/blog/item/1842d917998c760fc83d6d19.html]]></link>
        <description><![CDATA[
		
		js不具备操作二进制数据的能力，不过，<font size="-1"><font color="#c60a00">ISO</font>-88590-1可以无损的在字节流和字符流间相互转换。<br>
配上 mozilla重写content-type的方式，应该是可行的。<br>
<br>
而IE，xhr好像有个responseStream。不知道浏览器上能否工作。<br>
<br>
<br>
ISO-88590字符表unicode映射：<br>
</font><br>
 <a href="http://hi.baidu.com/jindw/blog/item/1842d917998c760fc83d6d19.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/jindw/blog/category/J%20S%20Debuging">J S Debuging</a>&nbsp;<a href="http://hi.baidu.com/jindw/blog/item/1842d917998c760fc83d6d19.html#comment">查看评论</a>]]></description>
        <pubDate>2008-07-22  10:54</pubDate>
        <category><![CDATA[J S Debuging]]></category>
        <author><![CDATA[jindw]]></author>
		<guid>http://hi.baidu.com/jindw/blog/item/1842d917998c760fc83d6d19.html</guid>
</item>

<item>
        <title><![CDATA[庆祝一下：JSI模板引擎编译工具调试通过]]></title>
        <link><![CDATA[http://hi.baidu.com/jindw/blog/item/39dc267ae45d41eb2f73b3d0.html]]></link>
        <description><![CDATA[
		
		再JSI的脚本导出工具中。通过再脚本抓出时加上一个拦截器，替换其中有效的模板创建指令的方式实现：<br>
<br>
详细步骤：<br>
<ol>
    <li>在抓出的源代码中，找到模板创建代码。</li>
    <li>通过装载单元管理器的上下文生成同样的模板实例。</li>
    <li>将对象的中间数据转化成JSON替换模板创建代码中的参数。</li>
</ol>
处理结果实例代码（没有做简单实例，吧全部的JSIDoc代码的处理结果的部分代码摘录出来）：<br>
 <a href="http://hi.baidu.com/jindw/blog/item/39dc267ae45d41eb2f73b3d0.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/jindw/blog/category/J%20S%20I">J S I</a>&nbsp;<a href="http://hi.baidu.com/jindw/blog/item/39dc267ae45d41eb2f73b3d0.html#comment">查看评论</a>]]></description>
        <pubDate>2008-07-20  01:07</pubDate>
        <category><![CDATA[J S I]]></category>
        <author><![CDATA[jindw]]></author>
		<guid>http://hi.baidu.com/jindw/blog/item/39dc267ae45d41eb2f73b3d0.html</guid>
</item>

<item>
        <title><![CDATA[简单的CSS格式化和压缩正则]]></title>
        <link><![CDATA[http://hi.baidu.com/jindw/blog/item/b3138123369ba442ac34de75.html]]></link>
        <description><![CDATA[
		
		有人喜欢吧一个css写成一行，。<br>
我不喜欢。<br>
格式化一下：<br>
<div style="border-style: dotted dotted dotted solid; border-color: rgb(131, 148, 178); border-width: 1px 1px 1px 4px; padding: 3px; background: rgb(250, 252, 254) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
<div class="quote_div">
<div>\{([\s\S]*?)\}([\r\n]+)<br>
{$2$1$2}$2</div>
</div>
</div>
<br>
多次替换<br>
 <a href="http://hi.baidu.com/jindw/blog/item/b3138123369ba442ac34de75.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/jindw/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/jindw/blog/item/b3138123369ba442ac34de75.html#comment">查看评论</a>]]></description>
        <pubDate>2008-07-17  16:57</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[jindw]]></author>
		<guid>http://hi.baidu.com/jindw/blog/item/b3138123369ba442ac34de75.html</guid>
</item>

<item>
        <title><![CDATA[IE 又一次背离了我们伟大的ECMA262标准]]></title>
        <link><![CDATA[http://hi.baidu.com/jindw/blog/item/5694252a5b85ee3d5243c1c0.html]]></link>
        <description><![CDATA[
		
		还是太信任IE6了。于是才有了<a href="http://hi.baidu.com/jindw/blog/item/2346c158c912b384810a1813.html" target="_blank">http://hi.baidu.com/jindw/blog/item/2346c158c912b384810a1813.html</a>中第八条留言指出的错误。<br>
<br>
是总归还是我错了，可是我这个人总喜欢给自己找理由。<br>
翻开ECMA 262中对substr方法的详细描述：<br>
<br>
 <a href="http://hi.baidu.com/jindw/blog/item/5694252a5b85ee3d5243c1c0.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/jindw/blog/category/J%20S%20Debuging">J S Debuging</a>&nbsp;<a href="http://hi.baidu.com/jindw/blog/item/5694252a5b85ee3d5243c1c0.html#comment">查看评论</a>]]></description>
        <pubDate>2008-07-15  11:53</pubDate>
        <category><![CDATA[J S Debuging]]></category>
        <author><![CDATA[jindw]]></author>
		<guid>http://hi.baidu.com/jindw/blog/item/5694252a5b85ee3d5243c1c0.html</guid>
</item>

<item>
        <title><![CDATA[QQ群的消息管理器怎么主次不分了？？]]></title>
        <link><![CDATA[http://hi.baidu.com/jindw/blog/item/aa0a26d374df42053bf3cfd5.html]]></link>
        <description><![CDATA[
		
		刚才看到一个申请群资格的系统消息。<br>
<br>
正想操作的时候断网了。<br>
从新启动机器后，再也招不到这些申请信息了。<br>
<br>
消息历史里面清一色的广告。<br>
<br>
这点设计确实够让我失望的！！ 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/jindw/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/jindw/blog/item/aa0a26d374df42053bf3cfd5.html#comment">查看评论</a>]]></description>
        <pubDate>2008-07-11  15:41</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[jindw]]></author>
		<guid>http://hi.baidu.com/jindw/blog/item/aa0a26d374df42053bf3cfd5.html</guid>
</item>

<item>
        <title><![CDATA[程序员的素养[转贴]]]></title>
        <link><![CDATA[http://hi.baidu.com/jindw/blog/item/03f54c60de60b3da8cb10df7.html]]></link>
        <description><![CDATA[
		
		去年的帖子，转一下。<br>
<div style="border-style: dotted dotted dotted solid; border-color: rgb(131, 148, 178); border-width: 1px 1px 1px 4px; padding: 3px; background: rgb(250, 252, 254) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
<div class="quote_div">
<div>1、&ldquo;一切从名字开始&rdquo;。无论是开发大的项目、写学习代码或打Patch，都要注意给项目、变量、函数起一个好的名字</div></div></div> <a href="http://hi.baidu.com/jindw/blog/item/03f54c60de60b3da8cb10df7.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/jindw/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/jindw/blog/item/03f54c60de60b3da8cb10df7.html#comment">查看评论</a>]]></description>
        <pubDate>2008-07-08  23:05</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[jindw]]></author>
		<guid>http://hi.baidu.com/jindw/blog/item/03f54c60de60b3da8cb10df7.html</guid>
</item>

<item>
        <title><![CDATA[将格式化进行到底]]></title>
        <link><![CDATA[http://hi.baidu.com/jindw/blog/item/76d36f3e693f233871cf6c64.html]]></link>
        <description><![CDATA[
		
		上次发布了一个格式化日期的函数。<br>
现在补充一下格式化数字的功能<br>
<br>
使用说明(拷贝自<a href="http://www.xidea.org/project/jsidoc" target="_blank">JSIDoc</a>)：<br>
===========================================================
<h3>日期模式说明</h3>
<pre>like the ISO 8895<br>also see Java's SimpleDateFormat.<br><br>Letter  Date or Time Component  Presentation    Examples          UserDic<br>Y       Year                    Year            1996; 96<br>M       Month in year           Mont</pre> <a href="http://hi.baidu.com/jindw/blog/item/76d36f3e693f233871cf6c64.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/jindw/blog/category/J%20S%20Debuging">J S Debuging</a>&nbsp;<a href="http://hi.baidu.com/jindw/blog/item/76d36f3e693f233871cf6c64.html#comment">查看评论</a>]]></description>
        <pubDate>2008-07-07  18:03</pubDate>
        <category><![CDATA[J S Debuging]]></category>
        <author><![CDATA[jindw]]></author>
		<guid>http://hi.baidu.com/jindw/blog/item/76d36f3e693f233871cf6c64.html</guid>
</item>

<item>
        <title><![CDATA[楚汉争霸的思考]]></title>
        <link><![CDATA[http://hi.baidu.com/jindw/blog/item/9231f0fe6dba5c345d60080e.html]]></link>
        <description><![CDATA[
		
		最近看百家讲坛的楚汉争霸，总是不时的泛起对项羽的尊敬和同情。<br>
<br>
一个是为之奈何的政治家。一个是<font face="宋体">拔山盖世的英雄豪杰。结果虽然合情合理，却又让人惋惜。<br>
<br>
&ldquo;所当者破，所击者服，未尝败北，遂霸有天下&rdquo;。<br>
在楚汉争霸的四年里，拼的是国力财力，</font><font face="宋体">项羽有着盖世的军事才能，创造了一个又一个的军事神话。</font><font face="宋体">刘邦累累惨败，败的一塌糊涂。</font><font face="宋体">而最后英雄还是没能拜托失败的命运。而且是败在一个只会为之奈</font> <a href="http://hi.baidu.com/jindw/blog/item/9231f0fe6dba5c345d60080e.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/jindw/blog/category/%BA%FA%D1%D4%C2%D2%D3%EF">胡言乱语</a>&nbsp;<a href="http://hi.baidu.com/jindw/blog/item/9231f0fe6dba5c345d60080e.html#comment">查看评论</a>]]></description>
        <pubDate>2008-07-04  01:11</pubDate>
        <category><![CDATA[胡言乱语]]></category>
        <author><![CDATA[jindw]]></author>
		<guid>http://hi.baidu.com/jindw/blog/item/9231f0fe6dba5c345d60080e.html</guid>
</item>

<item>
        <title><![CDATA[日期的格式化与解析]]></title>
        <link><![CDATA[http://hi.baidu.com/jindw/blog/item/2346c158c912b384810a1813.html]]></link>
        <description><![CDATA[
		
		昨天收到俊羿的一个需求，时间和日期的格式化。<br>
自己一直就想好好写写JavaScript的日期格式化功能，这次就彻底研究一下吧。<br>
<br>
一年前，和<a target="_blank" href="http://www.trydofor.com">trydofor</a>一起讨论过实现思路，后来，他亲自写了一个仿java.text.SimpleDateFormat的日期格式化类。<br>
<br>
动手之前，先拿到他的源码，好好研究一下，不满意的地方有一些：代码算是比较烦琐，也不符合JSI的风格，还有就是没有做到延迟计算（我认为这是个比较严重的问题）。<br>
<br>
<br>
看看java的SimpleDateFormat规则吧： <a href="http://hi.baidu.com/jindw/blog/item/2346c158c912b384810a1813.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/jindw/blog/category/J%20S%20Debuging">J S Debuging</a>&nbsp;<a href="http://hi.baidu.com/jindw/blog/item/2346c158c912b384810a1813.html#comment">查看评论</a>]]></description>
        <pubDate>2008-07-03  18:30</pubDate>
        <category><![CDATA[J S Debuging]]></category>
        <author><![CDATA[jindw]]></author>
		<guid>http://hi.baidu.com/jindw/blog/item/2346c158c912b384810a1813.html</guid>
</item>


</channel>
</rss>