2011年10月19日
摘要: 1. Download jdk installation file from http://www.oracle.com/technetwork/java/javase/downloads/index.html. a) If the file you download is rpm file, you can use command [rpm -i *.rpm] to startinstalling it. b) If it's bin file, you can use command [./*.bin] to startinstalling it. Then you can fi. 阅读全文
posted @ 2011-10-19 13:40 Forest Wang 阅读(165) 评论(0) 推荐(0) 编辑
  2011年10月13日
摘要: 1. Login linux system with an user who has system admin permission. 2. Go to the folder /boot/grub. cd /boot/grub3. Edit file “menu.lst” in this folder. Add “vga=0x0317” at the end of the kernel line. vim menu.lst4. Save the changes and quit vim.5. Restart. shutdown -r now6. When the system i... 阅读全文
posted @ 2011-10-13 15:57 Forest Wang 阅读(211) 评论(0) 推荐(0) 编辑
  2011年9月30日
摘要: 下面是一段有关Java线程的题目。 以下是一个Java类的代码:1publicclassTest{23inta=0;4intb=0;5intx=0;6inty=0;78publicstaticvoidmain(String[]args)throwsInterruptedException{9Testtest=newTest();10test.run();11}1213privatevoidrun()throwsInterruptedException{14Threadth1=newThread(){15publicvoidrun(){16a=1;17y=b;18}19};20th1.st... 阅读全文
posted @ 2011-09-30 09:38 Forest Wang 阅读(232) 评论(0) 推荐(0) 编辑
  2011年7月5日
摘要: 前些日子一个姐们儿疑惑的问我,为什么像你这种要啥没啥的普通爷们,不仅交了两位数的女朋友,而且一个个普遍质量都很高呢。我笑说,因为小时候火车站算卦的说我一生注定命犯桃花。牛逼吹完了今天是光棍节,我想与其给你们发我友邻的QQ或者手机号,不如大家一起聊聊经验切磋一下,毕竟授之以鱼不如授之以渔。强调本文纯属娱乐,欢迎转帖推荐,但是喷就免了人家不太会说话呢属于弱势群体的呢。强调本文纯属娱乐,欢迎转帖推荐,但是喷就免了人家不太会说话呢属于弱势群体的呢。强调本文纯属娱乐,欢迎转帖推荐,但是喷就免了人家不太会说话呢属于弱势群体的呢。(以下所有称之为姑娘的对象全默认为质量尚佳的中上等质量姑娘,中上等的标准众口. 阅读全文
posted @ 2011-07-05 09:30 Forest Wang 阅读(645) 评论(4) 推荐(2) 编辑
  2011年6月29日
摘要: 我主要工作是开发BS架构的项目,前几天有个任务就是要写一个Windows Form的小程序。主要是要时时显示当前进度,在网上看了很多大侠的解决方案,我用了比较通用的方法。关于这么做的理论我在这里就不赘述了,如有需要的童鞋可以下载附件中的代码,希望对你有所帮助。 代码 阅读全文
posted @ 2011-06-29 13:37 Forest Wang 阅读(810) 评论(0) 推荐(1) 编辑
摘要: 1、Response.Redirect(Request.Url.ToString());2、Response.Write("<script>window.location.href=document.URL;</script>"); 3、Response.AddHeader("Refresh","0"); 4、<meta http-equiv="refresh" content="600; url=fls.html"> 阅读全文
posted @ 2011-06-29 11:20 Forest Wang 阅读(392) 评论(0) 推荐(0) 编辑
  2010年10月26日
摘要: JSON格式我想很多做前台的人都不会陌生,在使用JQuery通过Ajax异步调用后台数据的时候,通常我们的返回数据会采用JSON格式。关于JSON格式我就不赘述了,可以访问以下网址http://www.json.org/json-zh.html(英语),上面已经说的很清楚了。 我只是要在这里强调一点,我们先来看一段代码。 在页面中有一段js: $(document).ready(function() {$.getJSON("GetData.ashx", function(data) { alert(data.name); }); }); 在GetData.ashx中返回如下 阅读全文
posted @ 2010-10-26 10:10 Forest Wang 阅读(649) 评论(2) 推荐(0) 编辑
  2010年10月22日
摘要: 强制不换行white-space:nowrap;自动换行word-wrap: break-word; word-break: normal; 强制英文单词断行word-break:break-all; 阅读全文
posted @ 2010-10-22 15:05 Forest Wang 阅读(3569) 评论(0) 推荐(0) 编辑
  2010年10月19日
摘要: You can do it step by step as follow.Step 1, Detect if the encoding of the project is UTF-8. If not, change its encoding to UTF-8.Step 2, Add configuration in struts' config file[src/struts.xml]. <constant name="struts.custom.i18n.resources" value="messageResource" /> & 阅读全文
posted @ 2010-10-19 17:51 Forest Wang 阅读(641) 评论(0) 推荐(0) 编辑