February 2012
S M T W T F S
« Aug    
 1234
567891011
12131415161718
19202122232425
26272829  

Categories

Tuesday, 16th of March 2010 at 05:26:55 PM

How to list all files under command line.

DIR /S /ON /B >TEST.TXT

Continue reading How to list all files under command line.

Monday, 1st of February 2010 at 12:18:26 PM

58th ASMS Conference 2010 Abstract

I world like to publish a poster in 2010. I wrote a abstract on my capstone project.

After my Prof. Tang revise my abstract, it seem more clear than I wrote before.

I want to improve my English writing, any idea?

Continue reading 58th ASMS Conference 2010 Abstract

Thursday, 28th of January 2010 at 11:59:51 PM

C# deep Object clone

I made a mistake, I used shallow clone instead of deep clone. That’s second time I made this mistake.

Here is the deep clone. Remember to add [Serializable] for class.

Ref

using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

public Class Test : IClonable
{
public Test()
{
}
// deep copy in separeate memory space
public object Clone()
{
MemoryStream ms = new MemoryStream();
BinaryFormatter bf = new BinaryFormatter();
bf.Serialize(ms, this);
ms.Position = 0;
object obj [...]

Wednesday, 9th of December 2009 at 03:58:18 PM

How to invoke an executable program inside C#

System.Diagnostics.Process p = System.Diagnostics.Process.Start("calc.exe");
p.WaitForExit(); // Wait until the [...]

Friday, 20th of November 2009 at 04:28:20 PM

Visual studio setup project upgrade

Set an option which allow program automatic uninstall when you click  msi package.

Visual Studio – deploy RemovePreviousVersions  propertied

Continue reading Visual studio setup project upgrade

Friday, 20th of November 2009 at 01:15:01 PM

Linear least squares approximation

C# Library

ALGLIB

Matlab

a[] [...]