2005年12月


元旦期间(1-3日),本站停止更新. ^_^

祝大家在新的一年里,快乐快乐,心想事成,百尺竿头,更进一步!





    摘要:只留下这个阵地啦!    (全文共9字)——点击此处阅读全文




    摘要:something    (全文共527字)——点击此处阅读全文




    摘要:请求帮助!    (全文共88字)——点击此处阅读全文



IE的收藏夹存储在 [C:\Documents and Settings\用户名\收藏夹] 文件夹里面,一个地址有一个网页快捷方式。在重装系统的时候,要备份IE收藏夹就把这个文件夹备份起来,要恢复收藏夹就把这个文件覆盖到新系统的这个位置上。
然而FIREFOX采用了不同的设计。FIREFOX把所有的个性化信息制作成一个“个人档案”文件夹,默认的情况下,储存在[C:\Documents and Settings\用户名\application data\Mozilla\Firefox\Profiles]这个文件夹下。要单独备份“书签”信息,不需要备份这个文件夹,只需要使用“书签”-“管理书签”里面的导出功能,把所有收藏的地址导出成为“HTML”文件即可,当然,在新的FIREFOX浏览器中,你可以使用导入功能实现导入。
如果你还想备份其它的FIREFOX个性化信息,那么就有必要提一下个人档案管理了。关闭所有的FIREFOX窗口,在运行对话框中输入“FIREFOX -P”即可调出个人档安管理工具。借助于它,你可以方便地创建新的个人档案,恢复你以前用过的档案,选择一个新的地方来存储你的个人档案等。这个功能,感觉要比IE更具个性化,更实用。




    摘要:chapter 8 practice 6    (全文共2305字)——点击此处阅读全文




    摘要:chapter 8 practice 5    (全文共1732字)——点击此处阅读全文




    摘要:chapter 8 practice 4 : create an interface for c07/Sandwich.java    (全文共1891字)——点击此处阅读全文




    摘要:有廉价诊所吗?    (全文共300字)——点击此处阅读全文



we can use the P2 example, when we try to use "private" or "protected" or just leave it blank to decorate the method witch we inherit from the interface, jdk will send us an error message like this:

P2.java:6: f1() in c8.p2.P2 cannot implement f1() in c8.p2a.P2a; attempting to a ssign weaker access privileges; was public

so you can see, all method in interface will be set to public automatic!





    摘要:chapter 8 practice 2    (全文共833字)——点击此处阅读全文



电视盒与电视卡是竞争产品,功能非常接近,都能够实现:“与计算机显示器结合,用来插放电视”。那么,在什么情况下要选用什么产品呢?我的建议是这样,具有以下需求和条件的,建议使用电视盒:

1、有多余的显示器,可以独立用来播放电视;
2、想在不打开计算机的情况下观看电视节目;
3、想使用外接音箱;
4、想用显示器来显示DVD机、VCD机的视频;

而具有以下需求和条件的,建议使用电视卡:

1、想录制电视节目;
2、想把电视节目播放器当作一个影音程序,随时切换到操作系统中的其它程序;
3、显示器必需与计算机共用;
4、比较熟悉计算机硬件的安装、程序使用;

在价格方面,令人奇怪的是电视盒普遍比电视卡要低。当然,有人会说在可以上网的情况用,用PPlive之类的电视直播软件在线观看不是可以省下许多钱吗?是的,虽然它可以满足你一部份需要,但不是每个人的网络都足够宽的。昨天晚上买了个电视盒,150块,接上之后,感觉非常不错,比一年前使用电视卡的体验要好得多了,推荐有计算机还想要有电视的朋友使用——为什么要看似多此一举地写一篇这样的文章呢?因为在此之前的一年时间内,我竟然没有想到去买一个电视盒,而白白浪费了一年可以看电视的时间(开通了有线电视,但没有电视机!)。





    摘要:网络传销,手段比较笨拙,不过对一些人应该还有吸引力的!    (全文共3030字)——点击此处阅读全文



abstract class P15Base {
 // if there is no the abstract method below
 // should use the (1) expression to call f() method
 abstract void f();
}
class P15Derived extends P15Base {
 void f() { System.out.println("P15Derived.f()"); }
 static void f2(P15Base b) {
  //((P15Derived)b).f(); //--(1)
  b.f();
 }
}
public class P15 {
 public static void main(String[] args) {
  P15Derived d = new P15Derived();
  P15Derived.f2(d);
 }
}




    摘要:chapter 7 practice 14    (全文共1306字)——点击此处阅读全文



//: c07/P13.java
abstract class P13Base {
 abstract void print();
 P13Base() {
  System.out.println("base constructor");
  print();
 }
}
class P13Derived extends P13Base {
 int i = 10;
 void print() {
  System.out.println(i);
 }
}
public class P13 {
 public static void main(String[] args) {
  P13Derived d = new P13Derived();
  d.print();
 }
}

run result :

base constructor    // set fields to default value and then call base class constructor
0     //'print method is abstract , then it will call the implement version -- derived class 's print method
10    // initilized the fileds and create object, run method print.




//: c07/P12.java : Partly overriding
class Printer {
 static String data = "standar printer";
 void print() {
  System.out.println(getData());
 }
 public static String getData() {
  return data;
 }
}
class LassertPrinter extends Printer{
 // void print() { System.out.println(getData()); }
 // because 'print()' is remarked,
 // if upcasting, the object will run the method
 // of the base class.
 public static String getData() {
  return "lassert printer";
 }
}
public class P12 {
 public static void runPrinter(Printer p) {
  p.print();
 }
 public static void main(String[] args) {
  LassertPrinter p = new LassertPrinter();
  runPrinter(p);
 }
}




    摘要:chapter 7 practice 10    (全文共2821字)——点击此处阅读全文




    摘要:chapter 7 practice 11    (全文共1856字)——点击此处阅读全文




    摘要:chapter 7 practice 9    (全文共1083字)——点击此处阅读全文




    摘要:chapter 7 practice 8    (全文共442字)——点击此处阅读全文




    摘要:chapter 7 practice 7    (全文共1841字)——点击此处阅读全文



//: c07/P6.java : polymorphism
class Rodent { //啮齿目动物
 void bite() {}
 void burrow() {}
 void bray() {}
}
class Mouse extends Rodent { //家鼠
 void bite() { System.out.println("Mouse.bite()"); }
 void burrow() { System.out.println("Mouse.burrow()"); }
 void bray() { System.out.println("Mouse.bray()"); }
}
class Gerbil extends Rodent { //沙鼠
 void bite() { System.out.println("Gerbil.bite()"); }
 void burrow() { System.out.println("Gerbil.burrow()"); }
 void bray() { System.out.println("Gerbil.bray()"); } 
}
class Hamster extends Rodent { //仓鼠
 void bite() { System.out.println("Hamster.bite()"); }
 void burrow() { System.out.println("Hamster.burrow()"); }
 void bray() { System.out.println("Hamster.bray()"); } 
}
public class P6 {
 public static void act(Rodent r) {
  r.bite();
 }
 public static void actAll(Rodent[] r) {
  for(int i = 0; i < r.length; i++)
   act(r[i]);
 }
 public static Rodent randRodent() { //返回随机类型的老鼠
  switch((int)(Math.random() * 3)) {
   default:
   case 0 : return new Mouse();
   case 1 : return new Gerbil();
   case 2 : return new Hamster();
  }
 }
 public static void main(String[] args) {
  Rodent[] r = new Rodent[10];
  for(int i = 0; i < r.length; i++) //填充老鼠数列
   r[i] = randRodent();
  actAll(r);
 }
}




    摘要:chapter 7 practice 5    (全文共3916字)——点击此处阅读全文




    摘要:chapter 7 practice 4    (全文共3124字)——点击此处阅读全文




    摘要:chapter 7 practice 3    (全文共2686字)——点击此处阅读全文




    摘要:chapter 7 practice 2    (全文共2697字)——点击此处阅读全文



//: c07:Shapes.java
// Polymorphism in java
class Shape {
 void draw() {}
 void erase() {}
 // add an additinal method, if the derived class didn't overide
 // it, all derived object will be looked as "Shape";
 // the derived object who overried the method,
 // will be deal by it's own way!
 void colorUp() { System.out.println("Shape.colorUp()"); }
}
class Circle extends Shape{
 void draw() {
  System.out.println("Circle.draw()");
 }
 void erase() {
  System.out.println("Circle.erase()");
 }
 void colorUp() { System.out.println("Circle.colorUp()"); }
}
class Square extends Shape{
 void draw() {
  System.out.println("Square.draw()");
 }
 void erase() {
  System.out.println("Square.erase()");
 }
 void colorUp() { System.out.println("Square.colorUp()"); }
}
class Triangle extends Shape{
 void draw() {
  System.out.println("Triangle.draw()");
 }
 void erase() {
  System.out.println("Triangle.erase()");
 }
 void colorUp() { System.out.println("Triangle.coloUp()"); }
}
public class Shapes {
 public static Shape randShape() {
  switch((int)(Math.random() * 3)) {
   default:
   case 0 : return new Circle();
   case 1 : return new Square();
   case 2 : return new Triangle();
  }
 }
 public static void main(String[] args) {
  Shape[] s = new Shape[10];
  // file up the array with shapes:
  for(int i = 0; i < s.length; i++)
   s[i] = randShape();
  // make polymorphism method calls:
  for(int i = 0; i < s.length; i++) {
   s[i].draw();
   s[i].colorUp();
  }
 }
}




    摘要:chapter 6 practice 23    (全文共2458字)——点击此处阅读全文




    摘要:chapter 6 practice 21    (全文共305字)——点击此处阅读全文




    摘要:chapter 6 practice 20    (全文共499字)——点击此处阅读全文




    摘要:chapter 6 practice 19    (全文共779字)——点击此处阅读全文




    摘要:chapter 6 practice 18    (全文共757字)——点击此处阅读全文




    摘要:chapter 6 practice 17    (全文共686字)——点击此处阅读全文



//: c6/P16
// Upcasting
class Amphibian{
 void breathInAir(){
  System.out.println("breathInAir()");
 }
 void breathInWater(){
  System.out.println("breathInWater()");
 }
 void action(Amphibian ab){
  ab.breathInAir();
  ab.breathInWater();
 }
}
public class Frog extends Amphibian{
 public static void main(String[] args){
  Frog fo = new Frog();
  fo.action(fo);
 }
}




    摘要:chapter 6 practice 15    (全文共763字)——点击此处阅读全文




    摘要:chapter 6 practice 14    (全文共1232字)——点击此处阅读全文




    摘要:chapter 6 practice 13    (全文共866字)——点击此处阅读全文



魔兽世界告诉你:http://www.wowchina.com/news/main/20051020_1.htm

《魔兽世界》新开1组服务器防沉迷开始试行

2005.10.20

暴雪娱乐和第九城市响应新闻出版署“保护未成年人健康、创建绿色网游环境”号召,2005年10月20日在《魔兽世界》第五大区新开1组服务器——银翼要塞,开始试行防沉迷系统,该服务器游戏版本一致,任何激活五区的玩家可以正常进入。

在该防沉迷服务器上,防沉迷系统设定内容如下:

1.玩家累计游戏时间三小时以内,为“健康”游戏时间,玩家的游戏角色在此时段内经验值和掉宝率正常。
2.玩家累计游戏时间三小时至五小时之间,为“疲劳”游戏时间,玩家的游戏角色可获得的经验值以及掉宝率将降低50%。
3.玩家累计游戏时间超过五小时,为“不健康”游戏时间,玩家的游戏角色将无法获得经验值,掉宝率为0。
4.玩家累计下线休息时间如果已满五小时,则累计在线时间清零,如再上线即进入“健康”游戏时间,开始重新累计游戏时间。

为了提倡适度玩家游戏,保持健康生活,《魔兽世界》游戏本身就带有休息系统,玩家在获得充分休息(角色不在线)的时候,角色将进入精力充沛的游戏时间,此时经验条呈淡蓝色。玩家在精力充沛的经验结束后将进入精力疲劳阶段,玩家所得到的经验将会减半,此时经验条呈紫色。

同时,为了保护未成年人健康生活,第九城市还推出了家长查询系统,该系统是针对未成年人未经家长允许使用家长身份证进行开设账号的现象,家长可以通过输入自己的真实姓名和身份证号码来查询是否被自己的孩子使用,并可以通过相关流程与第九城市协商,采取进一步的监督管理,这一系统已获玩家家长的好评与关注。

第九城市将努力配合政府有关部门的工作,希望通过此系统的运行,能够普及玩家的健康游戏观念,并且促进他们养成良好的游戏习惯,创建健康文明绿色的网上游戏世界。





    摘要:chapter 6 practice 12    (全文共2041字)——点击此处阅读全文




    摘要:chapter 6 practice 11    (全文共1402字)——点击此处阅读全文



//: c6/P10.java
class Componenet1{
 Componenet1(){
  System.out.println("Componenet1 constructor");
 }
}
class Componenet2{
 Componenet2(){
  System.out.println("Componenet2 constructor");
 }
}
class Componenet3{
 Componenet3(){
  System.out.println("Componenet3 constructor");
 }
}
class Root{
 Componenet1 c1;
 Componenet2 c2;
 Componenet3 c3;
 Root(){
  System.out.println("Root constructor");
  c1 = new Componenet1();
  c2 = new Componenet2();
  c3 = new Componenet3();
 }
}
class Stem extends Root{
 Componenet1 s1;
 Componenet2 s2;
 Componenet3 s3;
 Stem(){
  // default constructor can be called itself.
  //super();
  System.out.println("Stem constructor");
  s1 = super.c1;
  s2 = super.c2;
  s3 = super.c3;
 }
}
public class P10{
 public static void main(String[] args){
  Stem s = new Stem();
  System.out.print("Done.");
 }
}




    摘要:chapter 6 practice 9    (全文共830字)——点击此处阅读全文




    摘要:an example of chater 7     (全文共1509字)——点击此处阅读全文



//: c06:Chess.java
// Inheritance, constructors and arguments.

class Game{
 Game(int i){
  System.out.println("Game constructor.");
 }
}

class BoardGame extends Game{
 BoardGame(int i){
  super(i);
  System.out.println("BoardGame constructor.");
 }
}

public class Chess extends BoardGame{
 // if remark the constructor, because of the constructor
 // of the base-class is not a default constructo,
 // so it cannot be called itself,
 // the base-class doesn't be initilized properly:
 Chess(){
  super(11);
  System.out.println("Chess constructor.");
 }
 public static void main(String[] args){
  Chess x = new Chess();
 }
}///:~





    摘要:excel 小问题    (全文共263字)——点击此处阅读全文




    摘要:chapter 6 practice 5    (全文共807字)——点击此处阅读全文




    摘要:chapter 6 practice 4    (全文共1937字)——点击此处阅读全文




    摘要:没事玩玩    (全文共205字)——点击此处阅读全文



//: c6/P3.java
// lazy initilization:
class P3a{
 public P3a(){
  System.out.println("P3a constructor.");
 }
}
public class P3{
 P3a a;
 void lazyCome(){
  a = new P3a();
 }
 public static void main(String[] args){
  P3 p = new P3();
  // lazy initilization here:
  // if lazyCome() don't been used,
  // P3a object will not be created:
  p.lazyCome();
  System.out.print("Done.");
 }
}



//: c6/P2.java
// the non-default constructor must be initilized yourself:
class P2a{
 P2a(int a){
  System.out.println("a constructor.");
 }
}
class P2b{
 P2b(int b){
  System.out.println("b constructor.");
 }
}
public class P2 extends P2a{
 P2b b;
 public P2(int x){
  // the super class must be initilized here!
  super(1);
  b = new P2b(2);
  System.out.println("c constructor.");
 }
 public static void main(String[] args){
  P2 x = new P2(3);
  System.out.print("Done."); 
 }
}




    摘要:chapter 6 practice 1    (全文共518字)——点击此处阅读全文



regsvr32 用法详解

/u- 解除服务器注册
/s- 无声;不显示消息框
/i- 调用DllInstall,给其传递一个可选[cmdline];跟/u一起使用时,卸载dll
/n- 不要调用DllRegisterServer;这个选项必须跟/i一起使用




收件箱.dbx达到2g,拒绝接收新邮件,于是我把里面的邮件转移到别的邮件夹中,甚至将邮件都转空了,收件箱.dbx文件还是保持在2g,结果还是收不下邮件!

没办法,关了outlook,将收件箱.dbx改名,让outlook生成一个新的收件箱.dbx文件,才终于把问题解决。那个旧的收件箱.dbx文件,那个没有包含任何邮件的巨型文件,到底为什么这么大呢?!

难道用得太久,里面住满了不速之客?





    摘要:chapter 5 practice 9    (全文共517字)——点击此处阅读全文




    摘要:chapter 5 practice 8    (全文共1234字)——点击此处阅读全文




    摘要:chapter 5 practice 7    (全文共442字)——点击此处阅读全文




    摘要:chapter 5 practice 6    (全文共1192字)——点击此处阅读全文




    摘要:chapter 5 / practice 4    (全文共1200字)——点击此处阅读全文




    摘要:chapter 5 / practice 3    (全文共1107字)——点击此处阅读全文




    摘要:chapter 5 practice 2    (全文共652字)——点击此处阅读全文




    摘要:chapter 5/ practice 1    (全文共500字)——点击此处阅读全文




    摘要:practice 20    (全文共1467字)——点击此处阅读全文




    摘要:practic 19    (全文共1200字)——点击此处阅读全文




    摘要:practice 18    (全文共572字)——点击此处阅读全文




    摘要:practice 17    (全文共507字)——点击此处阅读全文




    摘要:practice 16    (全文共1103字)——点击此处阅读全文




    摘要:Outlook Express 不能打开收件箱解决办法    (全文共416字)——点击此处阅读全文




    摘要:Practice 15    (全文共313字)——点击此处阅读全文




    摘要:thinking in java chapter 4 practice 14    (全文共488字)——点击此处阅读全文




    摘要:thinking in java chapter 4 practice 13    (全文共1096字)——点击此处阅读全文




    摘要:thinking in java chapter 4 practice 12    (全文共939字)——点击此处阅读全文




    摘要:

//: c4/P11
// use finalize() method
public class P11{
 int i;
 String s;
 boolean b;
 P11(){
  i = 10;
  s = "it's funny.";
  b = true;
  System.out.println("continue..");
 }
 public void finalize(){
  i = 0;
  s = "";
  b = false;
  System.out.println("finalize has been done!");此处阅读全文





    摘要:thinking in java chapter 4 practice 10    (全文共589字)——点击此处阅读全文




    摘要:thinking in java chapter 4 practise 9    (全文共754字)——点击此处阅读全文



//: c4/P8.java
// use the default constructor:
public class P8{
 int i;
 boolean b;
 void print(){
  System.out.println(i + " is " + b);
 }
 public static void main(String[] args){
  P8 p = new P8();
  p.print();
  System.out.print("done.");
 }
}




    摘要:

Service Unavailable

后退,再点,后退,再点,一般就可以了。

    (全文共54字)——点击此处阅读全文