8/10/2008

Db2's PureXml: a good solution for Web 2.0

I am developing web applications based on XML file recently, I fond the DB2 that support the xml data today, so,it might be a good XML database develpment tool for me.

8/09/2008

The relationship of class in UML

In theUML, a class diagram is a type of static structure diagram that describes the structure of a system by showing the system's classes, their attributes, and the relationships between the classes.

  • Instance Level Relationships have Association, Aggregation and Composition.
    Composition is a special form of aggregation where in each part may belong to only one whole at a time. When the whole is destroyed, so are its parts. Aggregation is a special form of association as well that specifies a whole-part relationship between the aggregate (whole) and a component part.You state an association at the class level.Association is An association between classes indicates that objects of one class may be related to objects of the other class
  • Class Level Relationships have generalization.
    The generalization relationship is also known as the inheritance or "is a" relationship.
  • General Relationship have dependency.
    A dependency exists between two defined elements if a change to the definition of one would result in a change to the other. A dependency can be between instances, classes, or both.
Note:In the class diagram, there the arrow always point to the supplier.

the different of Operation and method in OO

In OO terms ,the operation and method have different definition. the Operation is an aggregation of a serial procedures, and each procedure is named method. So ,as BA, when your extract some imported characters of business logic from stakeholders, you should distinguish them. you take each operation and ask stakeholders what procedure they use to carry it out. You document the procedure as a method.

Some advices of learning object-oriented development

OO is a complete conceptual framework that covers the entire life cycle of an IT project.

  • OO affects the way the BA analyzes and models the requirements.
  • OO affects the way the software engineer (technical systems analyst) designs the system specifications.
  • OO affects the way the code itself is structured: Object-Oriented Programming
So, how to improve your OO skilledness, I have some advice:
  • UML, is a good expression for your OO idea.
  • Design pattern, the classic OO experience
  • Refacotory, the methods how to organize your code
  • Python or PHP5, dynamic object-oriented programming languages that can be used for software development. they can realize your OO idea repidly than Java, C#, C++

8/07/2008

How to Change the disk label of ext3 on ubuntu

e2label [分区设备] [卷标名]
如果未指定卷标名,就会显示分区卷标名,如果指定了卷标名,就会将磁盘分区的卷标更改为指定的卷标名,卷标名最长为16个字符长度,超出长度将自动截断。
示例:e2label /dev/sda1 newlabel

graphical client for manage MySQL databases

GTK+ based client for MySQL wich allow to make querys and performs administrative jobs such as manage users, process, strucutres, data dumps and more.
sudo apt-get install gmysqlcc

SCIM doesn't work on Ubuntu Gutsy 8.10

I have used method from: https://bugs.launchpad.net/ubuntu/+bug/34282
and it works for me here is small HowTo:

Code:
sudo apt-get install scim-bridge
sudo gedit /etc/X11/xinit/xinput.d/scim
them find and change

Code:
GTK_IM_MODULE=xim
into
Code:
GTK_IM_MODULE="scim-bridge"
Restart system. SCIM should works fine with all applications. Maybe you will need start SCIM manually by

Code:
SCIM -d

7/01/2008

Linux下添加硬盘、分区、格式化任务详解

给硬盘分区

在slackware下有两个分区软件fdisk和cfdisk,例如我们已经有一个硬盘了,现在添加另一个硬盘到系统,那么我们根据命名规则知道这个新添加的硬盘应该是hdb。我们用下面命令给硬盘分区

fdisk /dev/hdb


你也可以用cfdisk来分区,命令如下:

cfdisk /dev/hdb


格式化硬盘

格式化成ext3格式

mkfs.ext3 /dev/hdb1


格式化成reiserfs的格式

mkfs.reiserfs /dev/hdb1


让硬盘启动自动挂载

例如挂载/dev/hdb1分区到/mnt/hd目录下

用vi编辑/etc/fstab文件,加入如下内容

/dev/dhb1  /mnt/hd  reiserfs defaults  1  1