2008年12月15日

折腾了好几次,终于在本本上安装成功。
1,不影响现有的系统,mbr,启动
2,可以做u盘
3.可以使用ubuntu
4,不用工具改变flash的格式
5,步骤简单
6,机器的主板必须支持usb启动


步骤
1,live-cd光盘启动
2,启动live-session
3,用gparted给u盘分区,16g(第一个分区fat32,第二个swap,第三个ext3,大小自己看着办)我的是4g,512m,10g
**记住,第一个分区一定是fat32,否则不能做u盘了,windows只认识第一个分区。
** 16g的usb,实际只有15g不到
4,分区完毕,安装,正常安装就可以。但是选择boot安装地点的时候,一定是当前u盘上的第一个分区就是fat32的位置
***比如,自己笔记本的硬盘/dev/sda, 那么u盘就是/dev/sdb,其中 fat32那个是/dev/sdb1, boot和grub一定安装到/dev/sdb1这个下面
***否则,开机不能启动,找不到grub.
5,然后安装就好了,安装完毕,启动系统,选择usb启动,就可以看到grub
6,需要修改menu.lst, 把(hd1,3)改成(hd0,3),就可以启动了
在windows下,插上usb,就是u盘(4g大小),这样,ubuntu和windows可以在这个分区共享文件了 
usb启动的时候,就能使用ubuntu系统,不影响windows启动。

 


 


微软官方地图机器人横空出世,助你成为城市达人! 立即添加!

posted @ 2008-12-15 09:50 Dolphin Pool 阅读(161) 评论(0) 编辑

2006年5月10日

JAVA(from java.sun.com)

代码:PasswordField.java

import java.io.*;

import java.util.*;

 

/**

 * This class prompts the user for a password and attempts to mask input with "*"

 */

 

public class PasswordField {

 

  /**

   *@param input stream to be used (e.g. System.in)

   *@param prompt The prompt to display to the user.

   *@return The password as entered by the user.

   */

 

  public static final char[] getPassword(InputStream in, String prompt)

    throws IOException {

 

      MaskingThread maskingthread = new MaskingThread(prompt);

      Thread thread = new Thread(maskingthread);

      thread.start();

       

      char[] lineBuffer;

      char[] buf;

      int i;

 

      buf = lineBuffer = new char[128];

 

      int room = buf.length;

      int offset = 0;

      int c;

 

      loop:   while (true) {

         switch (c = in.read()) {

            case -1:

            case '\n':

               break loop;

 

            case '\r':

               int c2 = in.read();

               if ((c2 != '\n') && (c2 != -1)) {

                  if (!(in instanceof PushbackInputStream)) {

                     in = new PushbackInputStream(in);

                  }

                  ((PushbackInputStream)in).unread(c2);

                } else {

                  break loop;

                }

 

                default:

                   if (--room < 0) {

                      buf = new char[offset + 128];

                      room = buf.length - offset - 1;

                      System.arraycopy(lineBuffer, 0, buf, 0, offset);

                      Arrays.fill(lineBuffer, ' ');

                      lineBuffer = buf;

                   }

                   buf[offset++] = (char) c;

                   break;

         }

      }

      maskingthread.stopMasking();

      if (offset == 0) {

         return null;

      }

      char[] ret = new char[offset];

      System.arraycopy(buf, 0, ret, 0, offset);

      Arrays.fill(buf, ' ');

      return ret;

   }

}

 

代码:PasswordApp.java

import java.io.*;

 

public class PasswordApp {

   public static void main(String argv[]) {

      char password[] = null;

      try {

         password = PasswordField.getPassword(System.in, "Enter your password: ");

      } catch(IOException ioe) {

         ioe.printStackTrace();

      }

      if(password == null ) {

         System.out.println("No password entered");

      } else {

         System.out.println("The password entered is: "+String.valueOf(password));

      }

   }

}

 
.Net
Password mask in a console app![Resolved]



http://www.vbforums.com/archive/index.php/t-325369.html

posted @ 2006-05-10 13:30 Dolphin Pool 阅读(835) 评论(0) 编辑

2006年2月15日

Definition of “Professional” in W-B Dictionary: exhibiting a courteous, conscientious, and generally businesslike manner in the workplace

 

In terms of IT Professional, they would be:

1.       Honest, be true to others and oneself

2.       Strong commitment and dedication to get work done even though it involves extra effort

3.       Persuit for perfection, and do it right the 1st time

4.       Continuously seeking for technical improvement and new technology upgrade

5.       Gracefully but firmly communicate ideas with clients, supervisor, sub-ordinates, colleagues and vendors

6.       Coorporative in teamwork, always willing to share knowledge with team members to improve each other

7.       Maturity. Aim for long term instead of having a very short mind/sight

8.       Aim for issue instead of person – 事不

 

In terms of IT projects implementation, professional means

1.       Follow the best process, standard (such as coding standard, documentation template) and practice (in designing, coding)

2.       Always plan before do

3.       On time delivery with best quality to exceed client’s expectation

 

posted @ 2006-02-15 09:10 Dolphin Pool 阅读(117) 评论(1) 编辑

2005年11月14日

反正是不一样,长度就是最主要的,奇怪在.Net Framework下,怎么长度就不一样呢?

C++.Net(MFC) 下,char  是8位的
C#.Net ,char  是16位的

posted @ 2005-11-14 14:25 Dolphin Pool 阅读(376) 评论(3) 编辑

2005年5月12日

昨天发现的, listBox1.DataSource重新绑定的时候,一定要listBox1.DataSource = null; ,然后才能实现listBox1的刷新!!!怎么也不理解为什么!
结果是

In an ArrayList, the 'plumbing' is not available to support two-way binding as with a dataset. So, you have to handle the synchronization yourself. One way to do this is to set the listBox1.DataSource to null and then reset it to your ArrayList. Another way is to use the CurrencyManager as shown in the code below.


     private System.Windows.Forms.ListBox listBox1; 
 
     
private System.Windows.Forms.Button button1; 
 
     
private ArrayList myArrayList; 
 

 
     
public Form1() 
 
     

 
          
// 
 
          
// Required for Windows Form Designer support 
 
          
// 
 
          InitializeComponent(); 
 

 
          myArrayList 
= new ArrayList(); 
 

 
          myArrayList.Add(
"orange"); 
 
          myArrayList.Add(
"green"); 
 
          myArrayList.Add(
"blue"); 
 
          myArrayList.Add(
"red"); 
 
           
 
          listBox1.DataSource 
= myArrayList; 
 
     }
 
 
      
 
     
//change the arraylist 
 
     
private void button1_Click(object sender, System.EventArgs e) 
 
     

 
          myArrayList[
1= "pink"
 
          myArrayList.Add(
"lavendar"); 
 

 
          
//use currency manger to sync up the listbox 
 
          BindingManagerBase bm 
= this.listBox1.BindingContext[myArrayList]; 
 
          CurrencyManager cm 
= (CurrencyManager) bm; 
 
          
if (cm != null
 
               cm.Refresh(); 
 
                
 
          
//Or, you can just reset the datasource 
 
          
//listBox1.DataSource = null; 
 
          
//listBox1.DataSource = myArrayList; 
 
     }
 
posted @ 2005-05-12 13:36 Dolphin Pool 阅读(723) 评论(0) 编辑
 
 
       经过设计,智能客户端应用程序可以将胖客户端应用程序的优点与瘦客户端应用程序的部署和可管理性优点结合起来,然而,要完全实现智能客户端应用程序的优点,需要考虑许多体系结构和设计问题。 智能客户端高级开发系列讲座提供了设计和实现智能客户端应用程序的最佳实践,从而使您能够在尽可能短的时间内实现智能客户端应用程序的优点。

MS==SM 哈哈,居然所写这样了。这里smart client MS的活动。不错的!

posted @ 2005-05-12 13:30 Dolphin Pool 阅读(567) 评论(1) 编辑

2005年3月4日

posted @ 2005-03-04 15:32 Dolphin Pool 阅读(266) 评论(0) 编辑
 
posted @ 2005-03-04 15:11 Dolphin Pool 阅读(3451) 评论(4) 编辑

2004年12月7日

posted @ 2004-12-07 17:13 Dolphin Pool 阅读(821) 评论(2) 编辑

2004年7月15日

posted @ 2004-07-15 17:05 Dolphin Pool 阅读(467) 评论(0) 编辑