Summer Solstice 2010 仲夏

Summer Solstice, 又叫 midsummer. 在溫帶的北美, 人們喜歡夏至Summer Solstice. 那是一年終日照最長的一天 , 也是夏天的開始.

這裡的人也很喜歡在今天開始辦 party 請朋友來喝酒聊天.通常夏天的系列活動也從今天開始.

小孩通常學校已經放假, 而夏令營還沒開始. 小孩們對暑假的憧憬跟預期心理在此時達到了高峰.

隨著各種各式各樣的遊行, 戶外音樂會, 跟其他聚會的舉辦, 人們紛紛褪下了她們厚重的衣物, 從躲了一整個冬天的室內走了出來, 到了海邊, 山上, 或是公園的大草地上野餐, 或

只是靜靜享受夏天溫和晚風的吹拂.

在溫寒帶的地方, 人們歡欣鼓舞慶祝崇拜太陽的儀式自古就有, 英國的 巨石Stonehenge 就發現人們幾千年前慶祝火堆的遺跡.

幾個有關夏至有趣的 facts:

著名的 Manhattanhenge 並不是出現在夏至.

端午節也不是跟夏至同一天.

有關夏至的神祉

我住的大紐約區大約是5點23分日出, 8點30日落. 冰島的Reykjavik 在今天則是24小時日照

Coding For Dummies II

This is a quick guide to pick up some basics of programming languages. First we go through some concepts, please don’t spend more than 20 minutes on each topic, as you can only learn them once you start coding. And keep in mind this post is a pointer; I skipped all the details as I believe you could certainly Google your ways out.

Components in a Programming Language.

Programming languages all have different syntax and different instructions, but most of them share the following components:

Variables : they are place holders, a facility for storing data. The current value of the variable is the data actually stored in the variable. The data stored in the variable can be changed (through assignment) during the program run.

Data Structure : a data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently. Choosing the right data structure is an important first step to a successful project.

Control FlowStatement & Function Calls. It’s the backbone of your program; it dictates the transfer of control in your code.

Boolean Logic: the basis of all modern digital(binary) world.

Name Spaces: a abstract package or container that groups certain classes and functions together. They are needed for any project beyond sample codes.

Self-Guided Homeworks.

Do the following mini-projects in each programming languages (VBA, Perl, Java or C# or C++) . The estimate time for each project is 2 hours, please spend as much time a you need on all projects and make sure you feel completely comfortable with them:

  • Hello Worlds
  • Create a function to print out Fibonacci series
  • Max, Min, Medium, Average & Print out sorted
  • Store (write and read back) bank accounts in a csv file, using a structure {firstname, lastname, gender,ssn,balance}
  • Input Screen (using command prompt & GUI) to dynamically store bank account information.
  • Parse & display a RSS on the internet
  • Create Course/Student/Teacher tables in a DB. A GUI to Insert Update Delete View records.

For Java (or C++, C#):

Design asset classes (Corporate subclass Bond, which subclass Instrument, Stock subclass Instrument).  Each has functions like currency, issuer, getIntrinsic, getMarketPrice, getYield, stock has getDividend, bond has getCoupon, etc…

For Perl:

Reformat/convert the following CSV files, from

Account, User Name, Creation Date, Balance
BI1234, John Doe, 3/21/98, “2,300,000”
GX4836, Mary Doe, 4/5/01, “360,500”
To
Account, Balance ,User Name, Creation Date
BI1234, 2300000, John Doe, 21/3/1998
GX4836, 360500 ,Mary Doe, 5/4/2001

For VBA:

Try at least 5 examples from this tutorial. Learn important collections/objects/methods/properties on Microsoft Excel Visual Basic Reference, like Window & Worksheet objects.

As a non-programmer, after completing all the homeworks, you should have a very good understanding about what programming languages are about, and when/how to use them.

For a programmer, you can pretty much follow the same guideline when learning a new language, you just need to add few more homeworks, like TCP/IP socket call, more OO topics, more sorting & data structure, web coding (dynamic html generation). Also throw in few more technologies:  javascript (and few frameworks), Python, XML, making a dll, web services,  db tuning.

Coding for Dummies I

This series is for non-tech people who want to get a job in today’s financial market. My primary target audience is for a MBA, economists or even accountants who want to take on a high finance role.


First I want to list all the important technologies used in today’s market. From all the places I worked before, and from all job postings, the following computer skills are what banks and funds are looking for:

Excel: Excel to financial professionals is like chopstick to Asian; you simply cannot claim your ethnicity without knowing it inside out. Among the “tricks”, you need to at least know the followings: Sort/Filter, Pivot table, Formula, Charts, Macros and VBA.

VBA. Thanks to the full Microsoft support. VBA can be run on all the MS Office products (Excel, Outlook, Word, etc) and has become the choice of trading desk support and any front-end development, as it allows you to “program” your desktop applications to become your proprietary trading system.

Perl. This high level scripting language is widely used in the overnight batch to process flat (csv) files, and to kick off 3rd party software. It is a de facto back-end language of the bank. On UNIX/Linux, people also use shell scripts.

Java/C++. For a more quantitative role, an OO (Object-oriented) language is essential, as it allows you to effectively develop a model or production grade system.

Numerical Analysis Software: Matlab, Mathematica, Mathcad they allow you to quickly turn models into code.

SQL Database: Learn to use SQL to design table and learn the ER diagram. Learn the interface from all the above languages (Perl, Java, VBA) and learn to normalize your table design.

Data Format: Use XML for a more structure dataset, CSV for super easy and fast data processing. This and database connectivity is very important. After all, data is what IT (information technology) is about.

Communication: Web Service, TCP/IP Socket. Other than APIs and file hand-shaking, these are ways to talk to 3rd party systems.

Industry Specific APIs : Bloomberg to retrieve market rates, pricing, indicatives, etc… ; Intex to access structured finance waterfall model. Adco(Andrew Davidson) & AFT(Espiel) for prepay and loss model; Tradeweb, Polypaths, etc…

Financial Protocols : FIX. This allows your system to talk to another system, to query, to make an offer, to place a trade, to settle, and to consolidate.

For Math, you need to know the following:

Statistics. The backbone of modern-day finance. Learn as much as you could.

Stochastic Calculus/ Monte Carlo Simulation. It simulate the moves of stocks, community, and interest rates.

Optimization : Curve fitting, Calibration, etc…

Linear Algebra / Numeric Analysis : Study of algorithms that use numerical approximation to turn continuous mathematics into code

In my second post, I will go over some basic programming language concepts.

信噪比

當今世界收入兩極化的原因我覺得有兩個: 一個是科技, 另一個是資訊
科技是槓桿, 讓知道方法的人能夠以一人之力舉起地球.
至於今天的資訊雖然感覺充斥氾濫, 事實上那些都是噪音,資訊本身仍是”稀有財”…
有能力從噪音中快速萃取出資訊, 甚至歸納出或看出趨勢的人正乘著翅膀快速飛去

當你有1百塊

當你有1百塊美元, 你到星巴克買咖啡來讓自己跟那些大都會上班族一樣; 然後無法相信有人竟在街上攤販買$1的咖啡.

當你有1千塊, 你偶爾上小法國餐館用餐跟到Wholefood買雜貨來表示自己有高級品味; 然後看不起那些成天在Red Lobster吃飯跟到WallMart血拼的人.

當你有1萬塊, 你拎著香乃爾的包包跟穿上Miu Miu的鞋子來讓自己光鮮亮麗就像Carrie; 然後受不了那些穿老海軍跟手提Taurus的公事包的人的庸俗跟醜陋.

當你有十萬塊, 你開台BMW然後到歐洲度假來炫耀你的事業成就跟非凡品味; 對於開韓國車跟到參加(華人)旅行團的人正眼也不瞧一下, 且避之唯恐不及.

當你有1百萬, 你住高級住宅區然後加入鄉村俱樂部來炫耀你的財富; 同時開輛舊 Saab (或是Scion)來隱晦的表達對住在中產社區卻開台賓士的人的輕蔑.

當你有1千萬, 你出入各種慈善活動花錢贖罪, 並捐款支持一些政客以證明自己人品高尚; 然後你覺得自己站在世界的頂端, 不知道那些下面的人整天汲汲營營是為了甚麼.

當你有1億美元, … 這不要問我, 那種 level 的人我身邊不多, 完全不知道他們在想甚麼.

你們要生養眾多,遍滿地面

創 世 記 1:28
神就賜福給他們,又對他們說:要生養眾多,遍滿地面,治理這地,也要管理海裏的魚、空中的鳥,和地上各樣行動的活物。

Laughter

創 世 記 9:1
神賜福給挪亞和他的兒子,對他們說:你們要生養眾多,遍滿了地。

母子

創 世 記 28:3
願全能的神賜福給你,使你生養眾多,成為多族,

Picture 098

創 世 記 35:11
神又對他說:我是全能的神;你要生養眾多,將來有一族和多國的民從你而生,又有君王從你而出。

滴水?

利 未 記 26:9
我要眷顧你們,使你們生養眾多,也要與你們堅定所立的約。

3 Brothers

詩 篇 105:24
耶和華使他的百姓生養眾多,使他們比敵人強盛,

We all live in a yellow submarine

詩 篇 128:3
你妻子在你的內室,好像多結果子的葡萄樹;你兒女圍繞你的桌子,好像橄欖栽子。

(所有照片於同一天在 Fort Trumbull State Park 跟 Hammonasset State Park 所攝)