Use SVN in Windows XP

1. 下载svn:http://subversion.apache.org/packages.html#windows 并安装
2. 创建repository folder c:\repository
3. goto c:\repository在命令行输入 svnadmin create project_repository
4. goto project_repository/conference/ 修改文件svnserve.conf去掉password-db = passwd前面的注释,来使用用户名和密码登录repository
5. 在文件passwd中添加希望的用户名和密码。
6. 命令行输入 svnserve –d –r project_repository 来启动服务
7. 这样一个repository就建立成功了

Use SVN in Windows XP

1. 下载svn:http://subversion.apache.org/packages.html#windows 并安装
2. 创建repository folder c:\repository
3. goto c:\repository在命令行输入 svnadmin create project_repository
4. goto project_repository/conference/ 修改文件svnserve.conf去掉password-db = passwd前面的注释,来使用用户名和密码登录repository
5. 在文件passwd中添加希望的用户名和密码。
6. 命令行输入 svnserve –d –r project_repository 来启动服务
7. 这样一个repository就建立成功了

NetBeans and UML Model


I have been trying to use Eclipse to generate UML diagram from existing project, and found many tools and do not know which one is the best.
Switch to Netbeans, it makes the job simple.
1. Install UML tool plugin into Netbeans,
  • Go to tools, plugins, from the Available Plugins panel search UML.
  • Following the instructions to install.
2.  Build a new UML project
  • New Project, UML and select Reverse Engineered Java-Platform Model
  • In the next screen, name your project and choose which  Java Project you want to use to produce the UML model
  • Also select the packages from the list
image
3. In the newly constructed UML project, right click the Diagrams node select new—>Diagram—> select the diagram you want to construct.
  • Here I use Class Diagram.
  • Drop the classes from the Model node into the newly constructed Class Diagram and the system will build the class diagram and relations for you automatically.
image
 Class Diagram 1
4. From the toolbar select Export Image  to save the produce UML diagram.

NetBeans and UML Model


I have been trying to use Eclipse to generate UML diagram from existing project, and found many tools and do not know which one is the best.
Switch to Netbeans, it makes the job simple.
1. Install UML tool plugin into Netbeans,
  • Go to tools, plugins, from the Available Plugins panel search UML.
  • Following the instructions to install.
2.  Build a new UML project
  • New Project, UML and select Reverse Engineered Java-Platform Model
  • In the next screen, name your project and choose which  Java Project you want to use to produce the UML model
  • Also select the packages from the list
image
3. In the newly constructed UML project, right click the Diagrams node select new—>Diagram—> select the diagram you want to construct.
  • Here I use Class Diagram.
  • Drop the classes from the Model node into the newly constructed Class Diagram and the system will build the class diagram and relations for you automatically.
image
 Class Diagram 1
4. From the toolbar select Export Image  to save the produce UML diagram.

Change Windows Server 2008 Theme

There are several thing you need to do before you can use third party theme package:
1. Enable Desktop Experience in Windows Server 2008
  • Click Start and select Server Manager
  • When the Server Manager window appears, go to the left pane and select Features.
  • On the right, click the Add Features link
  • Check the Desktop Experience checkbox
  • Click Next.
  • Click Install
  • When the installation is complete, Windows will notify you that you must restart your server to complete the process.
2. Patch the following system files
  • shsvcs.dll
  • themeui.dll
  • uxtheme.dll
download from here, choose the correct file!
during the replacement of the above three files you may encounter file can not be replaced problem, try add the following registration infor to your system:
after doing that, then you can right click the files which you want to replace and choose take ownership
after doing that then you can right click the file which you want to replace and choose “Take ownership”.

3. Reboot your system.
4. copy the themes into your X:\Windows\Resources\Themes folder
5. Right click your desktop , choose Personalize and then Theme.
6. Enjoy your new Windows 2008 theme.

Change Windows Server 2008 Theme

There are several thing you need to do before you can use third party theme package:
1. Enable Desktop Experience in Windows Server 2008
  • Click Start and select Server Manager
  • When the Server Manager window appears, go to the left pane and select Features.
  • On the right, click the Add Features link
  • Check the Desktop Experience checkbox
  • Click Next.
  • Click Install
  • When the installation is complete, Windows will notify you that you must restart your server to complete the process.
2. Patch the following system files
  • shsvcs.dll
  • themeui.dll
  • uxtheme.dll
download from here, choose the correct file!
during the replacement of the above three files you may encounter file can not be replaced problem, try add the following registration infor to your system:
after doing that, then you can right click the files which you want to replace and choose take ownership
after doing that then you can right click the file which you want to replace and choose “Take ownership”.

3. Reboot your system.
4. copy the themes into your X:\Windows\Resources\Themes folder
5. Right click your desktop , choose Personalize and then Theme.
6. Enjoy your new Windows 2008 theme.

Set the start value of the SERIAL type data in PostgreSQL database

I have been searing online to find a way to set the default start value of the serial type data use in the alter command without success.
But I did have an alternative solution to solve this problem by first defining the sequence, which is used by the serial type:
create sequence seqnbr_student_17 start 588280;
alter table student_17 add seqnbr integer not null default nextval(‘seqnbr_student_17 ’);
By doing this two lines of code you have actually defined a serial field with the start value 588280.

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...