Tuesday, April 17, 2007

Agile Software Development with SCRUM

This book has been my bed time reading for the last couple days. The authors' critics on traditional software development methodology and comment on modeling software development as a dynamic process hit the bull's eye. In fact, back in college, when I was taught the waterfall approach in software engineering class, I had my doubts: there are just too many uncertainties in the process to make it a static assembly line. Scrum methodology makes sense because it recognizes and utilizes the dynamics embedded in software development process, instead of trying to control it. I might get Srumatized some time after I get over with this CFA stuff...

Thursday, April 12, 2007

Wednesday, April 11, 2007

The top 10 traders by Trader Daily

The top 10 traders with highest estimated income by Trader Daily. This is also mentioned in today's WSJ. Interestingly, the top trader, John Arnold, got to the top by taking opposite position as Brian Hunter, the trade who is responsible for the collapse of hedge fund Amaranth. Hunter himself was on the same top trader list last year...

NameCityFirmAgeEst. Income
John ArnoldHoustonCentaurus Energy33$1.5-2B
James SimonsEast Setaucket, New YorkRenaissance Technologies Corp.68$1.5-$2B
Eddie LampertGreenwich, ConnecticutESL Investments44$1-1.5B
T. Boone PickensDallasBP Capital78$1B-1.5
Stevie CohenStamford, ConnecticutSAC Capital Advisors50$1B
Stephen FeinbergNew YorkCerberus Capital47$800-900M
Paul Tudor JonesGreenwich, ConnecticutTudor Investment Corp.53$700-800M
Bruce KovnerNew YorkCaxton Associates62$700-800M
Israel EnglanderNew YorkMillennium Management58$600-700M
David ShawNew YorkD.E. Shaw & Co.55$600-700M

Tuesday, April 10, 2007

Legacy Code = Code without tests

Saw this definition from a blog entry here. It origins from book "Working Effectively with Legacy Code". This makes perfect sense in most cases: the fear of making changes in "legacy code" largely derives from the fact that the system is untestable. Before TDD became a rather common software development practise, "legacy code" normally refers to code without detailed documentation. I tend to think of unit/integration tests as a type of documentation under TDD. After all, there is no better way to describe the specification of an application than actually using it.

Thursday, April 5, 2007

MSBuild, NUnit and CruiseControl.Net

I thought this would be the de facto standard setup for most .Net project these days. But it turns out making the whole thing work is far from "standard". Here are the steps I took, for what it's worth:

  • MSBuild is installed with .Net Framework 2.0. Install CruiseControl from here, and NUnit from here.
  • Install MSBuild Community Tasks, which includes a NUnit task for MSBuild.
  • Now you can create NUnit task in MSBuild project like this:
  •    <Import  Project="$(MSBuildExtensionsPath\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
       <NUnit Assemblies="myTest.dll"
           ToolPath="C:/Program Files/NUnit 2.4/bin/" 
           OutputXmlFile="TestResult.XML"/>
  • Setup MSBuild task in CruiseControl. Strangely, the custom logger used in the example is NOT part of CruiseControl installation. You need to download it here and put it into CruiseControl installation folder.
  • Use NUnit with CruiseControl. Since NUnit is setup as part of MSBuild, the only thing left to do is to merge the test result output into build log.
  • Finally, if CruiseControl is setup as a windows service and you're compiling a C/C++ project with MSBuild, you might get this error:
  •       Fatal Error C1902: Program database manager mismatch; please check your installation.
    Believe me, this has nothing to do with the pdb files. Unfortunately, link to the hotfix mentioned in the KB article is broken. An alternative is to set your CruiseControl service to run under a different use account than the default SYSTEM. (Yeah, I know...)

Wednesday, April 4, 2007

C-Runtime Libraries, DLL Hell and Side-by-Side Deployment

Starting from Windows XP, Microsoft has created a new "side-by-side" deployment model for native libraries as its latest attempt to solve the "DLL Hell" mess. The concept is pretty much the same as versioning in the managed world: libraries are versioned and signed, then installed in a global cache (WinSxS folder). Different versions of the same library can co-exist in the cache. A manifest is embedded in executable files to identify the version of the library the application was built with. C-Runtime libraries (MSVCRTxx.DLL, MSVCPRTxx.DLL, etc) are treated the same way. The process will throw a nasty error message if the executable or any DLL doesn't have a manifest embedded. If a third party library or an old DLL lying around doesn't have manifest built in, MT.EXE can be used to embed the manifest xml into the DLL directly:

    mt /outputresource:yourlib.dll;#2 -manifest yourlib.dll.manifest
More references in MSDN:

Hedge Fund and Managed Account

A good discussion on Managed Account in Hedge Fund industry. I can understand why managed accounts can become an operational and logistical hassle, at least from IT infrastructure point of view.

Monday, April 2, 2007

Wireless Break Throughs on April 1st (And 4/1st only)

First, free broadband access through local municipal sewage lines (A.K.A toilets) for the pigeon cluster search company:

In case you don't have a bathroom at home, don't worry. There is the more widely applicable RFC that transmits IP packets through Semaphore Flag Signaling System (A.K.A hand waving signals), try speaking "Hi" to your neighbour like this:
           SFS        0     __0      \0      |0
                     /||      ||      ||      ||
                     / \     / \     / \     / \
                      A       B       C       D
           IP-SFS    0x00    0x01    0x02    0x03
           -----------------------------------------
           SFS        0/      0__     0     __0
                     ||      ||      ||\     /|
                     / \     / \     / \     / \
                      E       F       G       H
           IP-SFS    0x04    0x05    0x06    0x07
           -----------------------------------------
           SFS       \0      |0__     0|      0/
                     /|       |      /|      /|
                     / \     / \     / \     / \
                      I       J       K       L
           IP-SFS    0x08    0x09    0x0A    0x0B
           -----------------------------------------
           SFS        0__     0     _\0     __0|
                     /|      /|\      |       |
                     / \     / \     / \     / \
                      M       N       O       P
           IP-SFS    0x0C    0x0D    0x0E    0x0F

              Figure 3: IP-SFS Data Signals.

Friday, March 30, 2007

Driving Direction from NY to London

"Driving" Direction from NY to London, according to the smart a$$ GoogleMap. Be sure to check out step 23.

Wednesday, March 28, 2007

WTF is WF?

Ever wonder why there is WCF (Windows Communication Foundation) and WPF (Windows Presentation Foundation) but Windows Workflow Foundation is only called WF? This slide probably explains it: The WWF (World Wildlife Foundation) even forced World Wrestling Federation to rename itself to WWE (World Wrestling Entertainment). In a word, don't mess with the panda! Seriously, here is world’s most trivial and useless Windows Workflow Foundation (WF) application, best for beginners.