Create Repository with Subversion, Ankhsvn, and Visual Studio 2008

1. Install Subversion

I used the certified version from Collab.Net. I removed the Apache option during installation for I only want to share projects on local network. The repository directory required by installation is used as the parent folder for a number of project repositories.

Next, I created a temporary folder called "temp" under that parent repository directory and then sub-folders "branches", "tags", and "trunck" under "temp".

Next, in the DOD command windows, I CD into the parent repository folder and type "svnadmin create --fs-type fsfs myproject"to create a project repository called "myproject". I also modified "svnserve.conf" and "passwd" (find how to online) under "myproject" to accommodate authentication.

Further, I started subversion server using command "net start CSVNsvnserve" and imported the project directory layout from "temp" into "myproject" using "svn import -m "initial project layout" svn://localhost/myproject/". The import asks for the Windows User and Password and then the project repository User and Password for validation.

2. Install AnkhSvn

AnkhSvn is also from Collab.Net. Now, it's time to upload the project files to the myproject repository.

In Visual Studio, I right click "mysolution" and choose to "add solution to subversion" and supplied the svn url as "svn://localhost/myproject/trunk". This will create another folder called "mysolution" under "trunk" (all files get a blue plus icon).

Next, I right click "mysolution" again and choose to "subversion -> add" and put all the solution files to the queue adding to repository (all files get a green plus icon).

Further, I right click "mysolution" again and choose to "subversion -> commit" and then all the solution files will be actually uploaded to the "myproject" repository (all files get a blue tick icon).


3. References:

Ankhsvn Documentation

LNK2001: unresolved external symbol _gsl_rng_default

The solution to the error LNK2001: unresolved external symbol _gsl_rng_default from using GSL library with MS Visual Studio is simple. It lies inside the project settings (compiler and linker) used for compiling the GSL library and all the test examples. The error disappears when those settings are applied to the work project. Better to do this by looking at the command line options other than browsing the setting dialogs one after one.

Build files for GSL 1.12 for Microsoft Visual Studio 2008
http://gladman.plushost.co.uk/oldsite/computing/gnu_scientific_library.php
(Note: This build has a bug that is not difficult to find out :-))

天亮

忙碌一个晚上,
终于做了点事。
扑过来的寒气,
清醒的凉。

演唱会

  在十七岁的初恋第一次约会, 男孩为了她彻夜排队, 半年的积畜买了门票一对。我唱得她心醉,我唱得她心碎,三年的感情一封信就要收回。她记得月台汽笛声声在催,播我的歌陪着人们流泪,嘿咦嘿嘿,陪着人们流泪。她来听我的演唱会, 在二十五岁恋爱是风光明媚。男朋友背着她送人玫瑰, 她不听电话夜夜听歌不睡。我唱得她心醉,我唱得她心碎,成年人分手后都像无所谓。和朋友一起买醉卡拉ok,唱我的歌陪着画面流泪,嘿咦嘿嘿,陪着流眼泪。我唱得她心醉,我唱得她心碎,在三十三岁真爱那么珍贵。年轻的女孩求她让一让位,让男人决定跟谁远走高飞,嘿咦嘿嘿,谁在远走高飞。我唱得她心醉,我唱得她心碎,她努力不让自己看来很累。岁月在听我们唱无怨无悔,在掌声里唱到自己流泪,嘿咦嘿嘿,唱到自己流泪。她来听我的演唱会,在四十岁后听歌的女人很美。小孩在问她为什么流泪,身边的男人早已渐渐入睡。她静静听着我们的演唱会。

Attach Database to MS SQL Server 2005

1. Make sure the database file is not "read-only".

2. Change the path to the databasefile when operating system error is "system cannot find the file specified".

学习 Screen (Day 2)

Some good materials from
http://www.pixelbeat.org/lkdb/screen.html

Key Action Notes
============================
Ctrl+a c new window
Ctrl+a n next window I bind F12 to this
Ctrl+a p previous window I bind F11 to this
Ctrl+a " select window from list I have window list in the status line
Ctrl+a Ctrl+a previous window viewed

Ctrl+a S split terminal horizontally into regions Ctrl+a c to create new window there
Ctrl+a :resize resize region
Ctrl+a :fit fit screen size to new terminal size Ctrl+a F is the same. Do after resizing xterm
Ctrl+a :remove remove region Ctrl+a X is the same
Ctrl+a tab Move to next region

Ctrl+a d detach screen from terminal Start screen with -r option to reattach
Ctrl+a A set window title
Ctrl+a x lock session Enter user password to unlock
Ctrl+a [ enter scrollback/copy mode Enter to start and end copy region. Ctrl+a ] to leave this mode
Ctrl+a ] paste buffer Supports pasting between windows
Ctrl+a > write paste buffer to file useful for copying between screens
Ctrl+a < read paste buffer from file useful for pasting between screens

Ctrl+a ? show key bindings/command names Note unbound commands only in man page
Ctrl+a : goto screen command prompt up shows last command entered

Evolution of Dance

This is the funniest video I have seen on youtube so far.