Friday, August 6, 2010

停止给自己找麻烦

最近又做了一件非常笨的事情,给自己带来了非常多的麻烦,弄得自己心情很烦躁。

多嘴或者多管闲事真是一个非常不好的毛病,不但对自己没有任何好处,还会给自己带来无尽的麻烦和烦恼。希望从现在开始吸取教训,不要犯同样的错误!

从现在开始, 让这成为自己的一个准则: 做好自己的事情,少管闲事.

Tuesday, March 2, 2010

hash in Perl

1. doesnt have order

Thursday, February 11, 2010

OSI - OCC - OPRA

to be updated...

Saturday, January 23, 2010

HKG info (1)

1. red chip -

2. blue chip -

3. H Share

Wednesday, January 20, 2010

Sybase Points (1)

1. can't capture the correct return status of isql to OS
--- as an alternative, we do a grep for Error or Msg in the log file

Monday, January 18, 2010

Questions...

1. what's newline character in sed?

- eg, sed 's/\n/,/' is not working; instead, I use tr to accomplish what I want to do.

Friday, December 11, 2009

Beta

corr(A, B) = Cov(A,B)/Vol(A)Vol(B)
var(A) = Vol(A) sqrt
Beta(A,B) = Cov(A,B)/var(B)

Monday, December 7, 2009

sed in Linux

1- say for example, in Shell programming, you want to append some variable at the string end, this wont work - sed 's/$/$temp/'

what we can do is use two sed's - sed -e 's/$/dummy/' | sed "/dummy/$temp/".

Friday, December 4, 2009

Revolutionary Road

A sad story...

Kate and Leo are just the best pair! They made it so much more perfect!

Everyone wants out.
Everyone wants in.
Everyone wants to want.

To want nothing is to have everything!

This movie made my honey and me cry, especially we watched it together when we're suffering bad things! There's a moment in the life of any human be that we stop and ask ourself if we're in the right road, with right person. Insatisfaction???!!! We got it from this one - Revolutionary Road.

Thursday, December 3, 2009

FIX Learning Notes (3)

1. interesting to know that we don't support msg with OrdStatus = New (we only care about executions, not orders)... Apparently this only applies to us, not part of FIX protocol.

2. OrdStatus, ExecType, ExecTransType