- 浏览: 77623 次
- 性别:
- 来自: 西安
最新评论
-
ppju:
cloud_ 写道我觉得还有个相关的原因,就是当页面没有保存为 ...
mysql数据库中文乱码问题 -
cloud_:
打错了 第二个include的应该是1.php
mysql数据库中文乱码问题 -
cloud_:
我觉得还有个相关的原因,就是当页面没有保存为UTF8格式时也会 ...
mysql数据库中文乱码问题 -
tangfeng:
ppju 写道shell script
每个linux命令行 ...
shell script study -
Magicloud:
这文太冇价值了……
shell script study
文章列表
Yesterday I found that I cannot clone the HashMap rightly through the clone() of HashMap. After cloning, The origin HashMap Object also can be modified by clone HashMap. That's a serious problem in the system.
I take a investigation on it and find the answer.The following is the solution.
Cause: t ...
JSON-JavaScript Object Notation is a lightweight data-interchange format.It is easy for humans to read and write.It is easy for machines to parse and generate.It is based on a subset of JavaScript Language.
JSON is a text format that is completely language independent but uses convention that is fam ...
Today is 20091208, and I am busy working in platform company.
Today keywords : Javascript, JSON, Struts2.
throught the jar json.*.jar, we can get the json string and pass it to browser by printwriter object.Then javascript will interpret it to some array. and you can use the elements displayed in ...
I have not updated my blog for a long time. There is something happened. I have hunt a good job that I think it. Right now, I will graduate from my mother univercity where stayed for seven years, but she didn't give me much. what I know comes from studying hard and a little luck.
Much press is comi ...
1. Shell的历史
Shell的作用是解释执行用户的命令,用户输入一条命令,Shell就解释执行一条,这种方式称为交互式(Interactive),Shell还有一种执行命令的方式称为批处理(Batch),用户事先写一个Shell脚本(Script),其中有很多条 ...
- 2009-11-11 13:15
- 浏览 1138
- 评论(0)
Java programs can run slower than an equivalent C++ program for many reasons:
Interpreting bytecodes is 10 to 30 times slower than native execution.
Just-in-time compiling bytecodes can be 7 to 10 times faster than interpreting, but still not quite as fast as native execution.
Java progra ...
- 2009-11-11 11:23
- 浏览 1253
- 评论(0)
我的系统是以 Redhat8.0、jdk1.4.2、语言en_US,虽然之前已经安装了freetype,但调用ImageMagick和 java.awt.image.*中的方法给图片打中文水印时仍然是乱码。虽然系统的默认语言是en_US,但RH8在/usr/share/fonts 下以及自带了中文TRUETYPE字库,不 ...
實際運用 Tomcat 5.0.19,我們了解在不修改 Tomcat 原始碼的狀況下,使用者透過 Form submit 的資料將一律以 ISO8859-1 處理,程式設計師必須自行將字串將轉換為 Big5(繁體中文) or GB2312/GBK(簡體中文),我們在應用程式中,對所有的 request.getParameter("xx"); 作了 toBig5String() 的處理,理論上,所有的中文問題應該不會出現才對,結果,還是發現某些狀況下,中文還是變成亂碼!
經過分析整理,我們發現問題出在 QueryString 的解析,以前在 Tomcat 4.x 時代,無論 ...
- 2009-11-05 10:07
- 浏览 2522
- 评论(0)
cvs update -p -r1.2 test.txt
执行后会显示test.txt文件r1.2版本时的内容,但是并没有把现在我本地目录下的test.txt内容恢复,还是最新的内容
更新到老版本
1、cvs update 将当前工作区的文件更新为最新版,即r1.4
2、cvs update -j 1.4 -j 1.2 file.name 这时候工作区中的file.name的内容变成了r1.2的
3、cvs commit 将修改提交,生成r1.5,内容同r1.2
现有12个小球,其中只有1个球与其它的球重量不同(即有11个球重量全相同),并且不知道这个跟其它球重量不同的球是重还是轻(跟其他11个重量相同的球相比而言),那么从这12个球中找出这个跟其它球重量不同的球。
请大家解答一下啊!
.................
期待答案
什么是TCP/IP协议,划为几层,各有什么功能?
TCP/IP协议族包含了很多功能各异的子协议。为此我们也利用上文所述的分层的方式来剖析它的结构。TCP/IP层次模型共分为四层:应用层、传输层、网络层、数据链路层。
TCP/IP网络协议
TCP/IP(Transmission Control Protocol/Internet Protocol,传输控制协议/网间网协议)是目前世界上应用最为广泛的协议,它的流行与Internet的迅猛发展密切相关-TCP/IP最初是为互联网的原型ARPANET所设计的,目的是提供一整套方便实用、能应用于多种网络上的协议,事实证明TCP/IP做到了这一点,它使 ...
- 2009-10-17 16:58
- 浏览 1040
- 评论(0)
递归算法实际上是一种分而治之的方法,它把复杂问题分解为简单问题来求解。对于某些复杂问题(例如
hanio塔问题),递归算法是一种自然且合乎逻辑的解决问题的方式,但是递归算法的执行效率通常比较差。因此
,在求解某些 ...
- 2009-10-17 16:43
- 浏览 3820
- 评论(0)
shell script
如果shell找到了与命令行上的命令具有相同名字的可执行文件,那么,shell将启动一个新的进程。
命令执行的过程中,shell将等待进程的结束,这时shell处于非活跃状态。
程序执行完毕后,将退出状态传给shell,这时shell处于活跃状态。显示提示符。
但是,shell本身并不处理命令行上的参数,只是将参数传递给程序。
- 2009-10-15 14:58
- 浏览 815
- 评论(0)
shell script
每个linux命令行包含如下内容:
1. command 命令
2. parameters 参数
3. options 选项
e.g:
$: ls -l
$: ls -x
$: ls -r
$: ls -rx
$: ls -lh
可以试一试上面得command在linux的terminal
shell并不要求程序名必须首先出现在命令行上,也支持如下的命令
$: >file1 <file2 cat
Today my girlfriend has reached the school. I am very happy for it!
I must be study harder and harder, and I am a responsible man.
Thank you for all friends!
Now I will sleep. Tomorrow will a good day for every one!
Go on to study all Linux Technologies and Java Technologies!
I will success at a ...
- 2009-07-26 00:40
- 浏览 639
- 评论(0)