十二月
22

1. 安装

这个其实是比较简单的,而且我用的是text console进行的安装,也就是在命令行下装的装的solaris。网上介绍的都是图形界面的安装,很可惜,我完全没那么做。不过老实说,命令行下也蛮不错的,方向键+X+F2就差不多搞定了。

Notice:

1. 如果你是图形界面安装,到了DNS选项的时候最好别设置,因为可能会导致奇怪的问题;在命令行下就无所谓了。你一定会很担心,如果在这里不设定好 DNS 的话,有可能会不能上网。 那是对的,但也不建议你在这里设定;

2. 装好后,第一次出现 Login Name别输入,否则,便会启动Console 文字模式。等一会就会进入图形界面了。如果发生意外导致重启,是进不了图形界面的。这时候在登录进Console,  敲上
# svcadm clear  system/boot-archive
就OK了;

3. 选择 Java Desktop System, Release 3 来登录, 有时候你会发现里面的分辨率和画面色彩并不是你想要的, 但在里面确又调不了,这时候就要logout, 使用Command Line Login来修改。输入以下指令:
# cd /usr/X/bin
# kdmconfig

选择Xsun Server,就可以进行设置了。
阅读全文…

十二月
21

好冷好冷!

今天真的是超冷啊!都缩成一团了。Fairy说她那里都下雪了,同样是在北京,为啥我这就不下呢?

十二月
18

You can remove all the control-M characters inside Emacs, though it’s a little tricky because Emacs tries to be helpful and treat different OS-style line breaks transparently. To use Emacs to make the replacement, follow these steps:

1. type:

C-x RET C undecided-unix RET C-x C-w RET y

2. go to the beginning of the document

3. type:

M-x replace-string RET C-q C-m RET RET

Notice: where “RET” means <press the RETURN key> and things like C-q mean “hold control key and press the q” key.

十二月
16

I’m a newbie here, today I’ve got a problem. Here’s the shell:
b.sh

#!/bin/bash
rm -rf  $1

a.sh

#!/bin/bash
for file in '/root/Desktop/test/*'
do
echo $file
sh ./b.sh $file
done
ls /root/Desktop/test

When I sh a.sh, the result is : /root/Desktop/test/a /root/Desktop/test/b /root/Desktop/test/c /root/Desktop/test/d b c d I got the result that was not my expect. I wanna the whole folders are removed. It seems that only folder “a” was deleted. I’ve no idea how to modify my shell, or where cause the problem. Could you help me to modify this shell and please tell me why. Thanks! 阅读全文…

十二月
15

testcase exception

————————– expFile file/Exp.txt

java.io.FileNotFoundException: file/Exp.txt (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at java.io.FileReader.<init>(FileReader.java:41)
at largemv.ResGenerate.getActions(ResGenerate.java:30)
at largemv.ResGenerate.generate(ResGenerate.java:17)
at largemv.MVGenerateResResult.main(MVGenerateResResult.java:15)