<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[yehell的专栏]]></title><description><![CDATA[海纳百川 有容乃大]]></description><link>https://blog.youkuaiyun.com/yehell</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; yehell]]></copyright><item><title><![CDATA[JSP的CSV导出（多语言 无乱码）]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/4418203</link><guid>https://blog.youkuaiyun.com/yehell/article/details/4418203</guid><author>yehell</author><pubDate>Thu, 06 Aug 2009 13:38:00 +0800</pubDate><description><![CDATA[今天Support的时候遇到个烦人的问题，CSV出力数据的时候泰文乱码。找了半天才发现错误出在使用FileWriter读写临时文件的时候不能设置“utf-8”编码。所以就此改用OutputStreamWriter。 在Java中，如果我们用java.io.FileReader或者java.io.FileWriter来读写文件的话，固然我们可以通过 java.io.BufferedReade]]></description><category></category></item><item><title><![CDATA[怎样去除jsp页面留下的空白]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2787022</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2787022</guid><author>yehell</author><pubDate>Fri, 08 Aug 2008 13:31:00 +0800</pubDate><description><![CDATA[JSP生成的html里面会留下许多空白行(以及space, tab, etc.)，那是动态语句留下的痕迹。当初留下这些空白行自然有他的理由 － 方便调试，这样行号才能对的上。但是对于处于production环境中的页面，这么多空白行有时候会是个灾难，常见原因有二: a. 大大增加了页面体积; b. 不利于SEO.            tomcat 5.x以后,在conf/web.xml中加入]]></description><category></category></item><item><title><![CDATA[[备忘]Ruby on Rails Send Mail实例]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2659598</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2659598</guid><author>yehell</author><pubDate>Wed, 16 Jul 2008 11:46:00 +0800</pubDate><description><![CDATA[csdn的编辑器终于改版了！庆贺庆贺前几天做了个Ruby on Rails Send Mail的例子，测试成功！代码不多但是总记不住郁闷，所以还是写下来以备后用吧：）#    --Test E-Mail Succeed!        p request.env["HTTP_HOST"]        require "net/smtp"            message ]]></description><category></category></item><item><title><![CDATA[Rails Ajax Search 实例]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2638330</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2638330</guid><author>yehell</author><pubDate>Fri, 11 Jul 2008 11:54:00 +0800</pubDate><description><![CDATA[ Ruby on Rails宣称自己对web2.0技术的支持是很彻底的，其中对于ajax的使用，更是声称是业界领先，所以现在就来体验一下它的优势：）目的：在text_filed中输入用户名，及时在下面的div中显示搜索结果。1.controllerdef search_ajax    @results = User.find( :all,                ]]></description><category></category></item><item><title><![CDATA[Ruby on Rails操作Google Calendar(二)]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2612431</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2612431</guid><author>yehell</author><pubDate>Fri, 04 Jul 2008 17:47:00 +0800</pubDate><description><![CDATA[ Ruby on Rails操作Google Calendar(一)里面讲了如何创建新Calendar,下面继续更新操作 前面说过Google Calendar是通过entry ID来识别Calendar的，所以如果希望更新Calendar首先需要得到这个ID,下面这个方法实现获取当前用户的所有Calendar对象：   def get_calendars     http = Net]]></description><category></category></item><item><title><![CDATA[Ruby on Rails操作Google Calendar(一) ]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2611956</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2611956</guid><author>yehell</author><pubDate>Fri, 04 Jul 2008 16:19:00 +0800</pubDate><description><![CDATA[最近遇到个项目需要把Google Calendar嵌入到现行系统当中作为用户的日程表,随即彻底研究了一下Google Calendar的API。实际上，Google Calenar的说明文档从实例到视频全权概括，可以说是相当详细了。但是唯独对Ruby链接Calendar的描述只有寥寥几句，也许对于Google来说Ruby远不及Java,PHP等等语言有影响力。 简单理解一下Google C]]></description><category></category></item><item><title><![CDATA[Jftp上传文件实例]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2481698</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2481698</guid><author>yehell</author><pubDate>Mon, 26 May 2008 11:43:00 +0800</pubDate><description><![CDATA[使用开源Jftp开发适合ftp和sftp两种模式的文件传输，实现类如下：import net.sf.jftp.config.Settings;import net.sf.jftp.net.ConnectionHandler;import net.sf.jftp.net.ConnectionListener;import net.sf.jftp.net.FtpConnection;impor]]></description><category></category></item><item><title><![CDATA[解决ajax返回innerHTML中javascript不能运行问题]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2232326</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2232326</guid><author>yehell</author><pubDate>Mon, 31 Mar 2008 10:48:00 +0800</pubDate><description><![CDATA[ 在实际应用的过程中，我们经常会遇到使用ajax返回某一个网页的内容到模版页面的某一个标签中显示的操作。如果返回的值仅仅是文本类数据不会影响模版页面的功能，但是如果返回的数据包括javascript，那么直接innerHTML到模版页的这段脚本是不会被运行的。原因在于浏览器只在显示模版时才解析javascript，而使用ajax返回的js是被后期倒入的并没有被解析，所以调用的时候找不到对应的fun]]></description><category></category></item><item><title><![CDATA[如何使div中文本垂直居中]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2219837</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2219837</guid><author>yehell</author><pubDate>Wed, 26 Mar 2008 13:24:00 +0800</pubDate><description><![CDATA[如何使文本在DIV中垂直居中如果是文字，便不能用背景方法，可以用增高行距的办法变通实现垂直居中，完整代码如下：body{TEXT-ALIGN: center;}#center{ MARGIN-RIGHT: auto;MARGIN-LEFT: auto; height:200px;background:#F00;width:400px;vertical-align:middle;line-h]]></description><category></category></item><item><title><![CDATA[javaMail发送邮件实例]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2199575</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2199575</guid><author>yehell</author><pubDate>Thu, 20 Mar 2008 11:56:00 +0800</pubDate><description><![CDATA[ Mailer类的说明:具有两个构造函数    Mailer() 读取properties文件的数据配置javamail的发送属性     Mailer(String mail_host, String stmp_port, String template_file_path, String send_from, String pw, String charset) 使用参数配置j]]></description><category></category></item><item><title><![CDATA[主要邮件服务器地址]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2199523</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2199523</guid><author>yehell</author><pubDate>Thu, 20 Mar 2008 11:40:00 +0800</pubDate><description><![CDATA[主要邮件服务器地址       网易126邮箱 　　接收服务器：pop3.126.com　　发送服务器：smtp.126.com　　网易163免费邮 　　接收服务器：pop.163.com　　发送服务器：smtp.163.com　　网易163VIP邮箱 　　接收服务器：pop.vip.163.com　　发送服务器：smtp.vip.163.com　　网易188财富邮 　　接收服务器：pop]]></description><category></category></item><item><title><![CDATA[HashMap和Hashtable的区别]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2199492</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2199492</guid><author>yehell</author><pubDate>Thu, 20 Mar 2008 11:34:00 +0800</pubDate><description><![CDATA[项目测试的时候突然遇到了一个奇怪的问题，网页的template有时候可以显示有时候却空白。结果师兄猜想是haspmap()在多线程情况下出现了不同步所产生的。由此问题引发了学习兴趣：研究HashMap和Hashtable的区别Hashtable和HashMap类有三个重要的不同之处。    第一个不同主要是历史原因。Hashtable是基于陈旧的Dictionary类的，HashMap]]></description><category></category></item><item><title><![CDATA[学习Jetty AJAX Chat实例]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2182210</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2182210</guid><author>yehell</author><pubDate>Fri, 14 Mar 2008 13:51:00 +0800</pubDate><description><![CDATA[第一次接触Jetty感觉还不错，小而简单速度也较快。对于纯java开发的开源web服务器来说确实值得推荐。今天在http://jetty.mortbay.org/上下载了Jetty 6版本，解压后无需安装就可以运行了（双击bin目录下的Jetty-Service.exe）。只得注意的是jettty也是使用的8080端口，所以机器上同时配置tomcat的朋友可以修改一下jetty的默认端口。（c]]></description><category></category></item><item><title><![CDATA[Apache 重定向配置方法]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2170018</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2170018</guid><author>yehell</author><pubDate>Tue, 11 Mar 2008 16:10:00 +0800</pubDate><description><![CDATA[ 今天的support内容需要测试Apache 页面重定向，简单的说就是配置Apache让它自动把旧的URL地址转换成新的URL输出。     首先，apache重定向功能需要调用mod_rewrite模块，由于apache2.2的modules文件夹中带有该模块，所以我们只需开启http.conf文件中的LoadModule rewrite_module modules/mod_re]]></description><category></category></item><item><title><![CDATA[10种职场经典寓言 绝对让你震撼]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2148002</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2148002</guid><author>yehell</author><pubDate>Wed, 05 Mar 2008 09:25:00 +0800</pubDate><description><![CDATA[(一)　　一只乌鸦坐在树上，整天无所事事。一只小兔子看见乌鸦，就问：“我能象你一样整天坐在那里，什么事也不干吗？”乌鸦答道：“当然啦，为什么不呢？”于是，兔子便坐在树下，开始休息。突然，一只狐狸出现了。狐狸跳向兔子……并把它给吃了。 　　这个故事的寓意是……要想坐在那里什么也不干，你必须坐(做)得非常非常高。 　　(二) 　　一只火鸡和一头公牛在聊天。“我非常想到那棵树顶上去，”火]]></description><category></category></item><item><title><![CDATA[常用正则表达式]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2122463</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2122463</guid><author>yehell</author><pubDate>Tue, 26 Feb 2008 15:33:00 +0800</pubDate><description><![CDATA["^/d+$"　　//非负整数（正整数 + 0）"^[0-9]*[1-9][0-9]*$"　　//正整数"^/d+$"　　//非负整数（正整数 + 0）"^[0-9]*[1-9][0-9]*$"　　//正整数"^((-/d+)|(0+))$"　　//非正整数（负整数 + 0）"^-[0-9]*[1-9][0-9]*$"　　//负整数"^-?/d+$"　　　　//整数"^/d+(/./d+)]]></description><category></category></item><item><title><![CDATA[推荐：数据访问优化性能]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2113375</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2113375</guid><author>yehell</author><pubDate>Fri, 22 Feb 2008 14:44:00 +0800</pubDate><description><![CDATA[ 一、表的设计       当在表中添加字段的时候,应该选择长度最小的数据类型,这样表在内存中每页可以存储更多的记       录。如：“姓名”字段一般设置为TEXT类型，长度为10一般就够用，则比默认的255要好的多。整       型Integer的长度是2，在使用整型Integer就可以解决问题的地方不要使用Single、Long、       Double、Currency，因为它们的长度]]></description><category></category></item><item><title><![CDATA[java.lang.OutOfMemoryError: Java heap space 解决方法  ]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2108950</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2108950</guid><author>yehell</author><pubDate>Wed, 20 Feb 2008 11:46:00 +0800</pubDate><description><![CDATA[ java.lang.OutOfMemoryError: Java heap space 解决方法 这个问题的根源是jvm虚拟机的默认Heap大小是64M,可以通过设置其最大和最小值来实现.设置的方法主要是几个.1.可以在windows 更改系统环境变量加上JAVA_OPTS=-Xms64m -Xmx512m2,如果用的tomcat,在windows下,可以在C:/tomcat]]></description><category></category></item><item><title><![CDATA[编码中提高性能的注意事项（整理中）]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2107404</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2107404</guid><author>yehell</author><pubDate>Tue, 19 Feb 2008 18:29:00 +0800</pubDate><description><![CDATA[1.尽量降低大循环内代码的复杂度。 （优化最常见的情况，这有点类似于 80/20 原则，就是要尽量让会被大量运行的代码片段简单快速）]]></description><category></category></item><item><title><![CDATA[ORA-00942:table or view does not exist]]></title><link>https://blog.youkuaiyun.com/yehell/article/details/2096960</link><guid>https://blog.youkuaiyun.com/yehell/article/details/2096960</guid><author>yehell</author><pubDate>Fri, 15 Feb 2008 13:24:00 +0800</pubDate><description><![CDATA[ORA-00942:table or view does not exist     产生原因：这是由于装载的表或视图不存在，多半是CATEXP.SQL还没有运行，无法执行Export视图,如果CATEXP.SQL已经运行，则可能是版本错误。　　解决方法：因为Import和Export共享的一些视图是通过运行CATEXP.SQL来装载的（它们具有相同的视图），并不生成单独的CATEXP.SQL]]></description><category></category></item></channel></rss>