<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BrilliantEyes&#039; Blog</title>
	<atom:link href="http://brillianteyes.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://brillianteyes.wordpress.com</link>
	<description>Technology, gadgets, science -- all stuff fits in a nerd&#039;s life</description>
	<lastBuildDate>Fri, 30 Dec 2011 23:27:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='brillianteyes.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>BrilliantEyes&#039; Blog</title>
		<link>http://brillianteyes.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://brillianteyes.wordpress.com/osd.xml" title="BrilliantEyes&#039; Blog" />
	<atom:link rel='hub' href='http://brillianteyes.wordpress.com/?pushpress=hub'/>
		<item>
		<title>QuantRead: Yieldbook MBS LMM Term Structure Model</title>
		<link>http://brillianteyes.wordpress.com/2011/12/30/quantread-yieldbook-mbs-lmm-term-structure-model/</link>
		<comments>http://brillianteyes.wordpress.com/2011/12/30/quantread-yieldbook-mbs-lmm-term-structure-model/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 23:27:27 +0000</pubDate>
		<dc:creator>brillianteyes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://brillianteyes.wordpress.com/?p=186</guid>
		<description><![CDATA[The most celebrated part is the calculation done in Appendix 1. claim: Increase short vol decreases the serial correlation of 10yr swap rates. the proof applies the &#8220;roughly const coefficient&#8221; trick. note that &#8220;short&#8221; vol means the tenor. To show a proof for 10yr swap rates starting N yrs from now and M yrs from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=186&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The most celebrated part is the calculation done in Appendix 1.<br />
claim: Increase short vol decreases the serial correlation of 10yr swap rates.<br />
the proof applies the &#8220;roughly const coefficient&#8221; trick.<br />
note that &#8220;short&#8221; vol means the tenor. To show a proof for 10yr swap rates starting N yrs from now and M yrs from now, we need N * (M-N) vol. M-N must be small. </p>
<p>Higher serial correlation means if option is in-the-money now, it will be highly likely in-the-money later. Hence the embedded option value decreases.<br />
Such argument is kind of like: for CMO pricing, junior tranche likes the fact all collaterals are highly correlated, while senior tranche prefers all collaterals are lowly correlated.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brillianteyes.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brillianteyes.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brillianteyes.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brillianteyes.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brillianteyes.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brillianteyes.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brillianteyes.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brillianteyes.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brillianteyes.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brillianteyes.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brillianteyes.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brillianteyes.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brillianteyes.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brillianteyes.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=186&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brillianteyes.wordpress.com/2011/12/30/quantread-yieldbook-mbs-lmm-term-structure-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b6ed3d6a906d223359b75d43fba9482?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brillianteyes</media:title>
		</media:content>
	</item>
		<item>
		<title>QuantRead: Vol Skew and Valuation of Mtg</title>
		<link>http://brillianteyes.wordpress.com/2011/12/29/quantread-vol-skew-and-valuation-of-mtg/</link>
		<comments>http://brillianteyes.wordpress.com/2011/12/29/quantread-vol-skew-and-valuation-of-mtg/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 02:25:41 +0000</pubDate>
		<dc:creator>brillianteyes</dc:creator>
				<category><![CDATA[Quant]]></category>
		<category><![CDATA[MBS]]></category>
		<category><![CDATA[f2skew]]></category>
		<category><![CDATA[vol]]></category>
		<category><![CDATA[skew]]></category>
		<category><![CDATA[Black]]></category>

		<guid isPermaLink="false">http://brillianteyes.wordpress.com/?p=189</guid>
		<description><![CDATA[It is a whitepaper from Citi Yieldbook. Fair detailed to understand. when we assume different distribution on fwd rates, we end up with different vol numbers. Skew can be classified as OTM skew and ATM skew. Black&#8217;s model assumes lognormal distribution. i.e. fwd rate change is proportional to rate level. Fig5 in the paper shows [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=189&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is a whitepaper from Citi Yieldbook. Fair detailed to understand.</p>
<p>when we assume different distribution on fwd rates, we end up with different vol numbers.</p>
<p>Skew can be classified as OTM skew and ATM skew.</p>
<p>Black&#8217;s model assumes lognormal distribution. i.e. fwd rate change is proportional to rate level. Fig5 in the paper shows that empirical data contradicts this intuition; in fact, fwd rate changes are almost independent of rate level. In other words, our world is more like normal, not log-normal.</p>
<p>The skewness observed in log-normal model can actually come from the fact that the distribution is [almost] normal.</p>
<p>Study the impact of OAS (or price, as dual) on different fwd rates distributions.</p>
<p>&nbsp;</p>
<p>When rates rally (i.e. decrease), vol increase &#8212; i.e. we encounter extra skew. If OAS is const, such extra skew will reduce price.</p>
<p>If we have several different distributions, more skew, the price drop is more visible. Or inversely, if price is same, more OAS pick up.</p>
<p>How to make use of this paper?</p>
<p>Suppose we are assigned with two MBS valuation systems (S1 and S2), which give different prices on TBAs? How to explain the difference?</p>
<p>This paper says: we can study the price/OAS or duration relation w.r.t. to vol skewness.  Study the OTM and ATM skews from S1 and S2!</p>
<p><strong>Source: Volatility Skew and the valuations of mortages, 2005.</strong></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brillianteyes.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brillianteyes.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brillianteyes.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brillianteyes.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brillianteyes.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brillianteyes.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brillianteyes.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brillianteyes.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brillianteyes.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brillianteyes.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brillianteyes.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brillianteyes.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brillianteyes.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brillianteyes.wordpress.com/189/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=189&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brillianteyes.wordpress.com/2011/12/29/quantread-vol-skew-and-valuation-of-mtg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b6ed3d6a906d223359b75d43fba9482?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brillianteyes</media:title>
		</media:content>
	</item>
		<item>
		<title>Fast implementation of duo exp() evaluations using SSE2</title>
		<link>http://brillianteyes.wordpress.com/2011/12/23/fast-implementation-of-duo-exp-evaluations-using-sse2/</link>
		<comments>http://brillianteyes.wordpress.com/2011/12/23/fast-implementation-of-duo-exp-evaluations-using-sse2/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 13:33:55 +0000</pubDate>
		<dc:creator>brillianteyes</dc:creator>
				<category><![CDATA[AdvC++]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[HPC]]></category>
		<category><![CDATA[SSE]]></category>

		<guid isPermaLink="false">http://brillianteyes.wordpress.com/?p=183</guid>
		<description><![CDATA[It comes from a practical problem: I need evaluate tension spline very frequently. The most expensive part is to compute: sinh(x-l), sinh(r-l), sinh(r-x). It is simple to see that I only need evaluate exp(x-l) and exp(r-x), it leads to 40% performance boost. essentially, we replace 3 slow calls by 2 slow calls. Caveat: mathematically, we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=183&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It comes from a practical problem: I need evaluate tension spline very frequently. The most expensive part is to compute: sinh(x-l), sinh(r-l), sinh(r-x).</p>
<p>It is simple to see that I only need evaluate exp(x-l) and exp(r-x), it leads to 40% performance boost. essentially, we replace 3 slow calls by 2 slow calls.</p>
<p>Caveat: mathematically, we are correctly. But numerically, it is less obvious or arguable. To be strict, compiler will not be able to assume (a+b)+c = a+(b+c).</p>
<p>We can defend us (and the approximation below): all calculations in computers are approximate, even hardware from different vendors have slightly different implementation. We should ONLY focus on the study if the approximation is sufficient.</p>
<p>See the links below for general defense line.</p>
<p><a href="http://forums.amd.com/devforum/messageview.cfm?catid=390&amp;threadid=126611&amp;highlight_key=y" target="_blank">http://forums.amd.com/devforum/messageview.cfm?catid=390&amp;threadid=126611&amp;highlight_key=y</a></p>
<p><a href="http://forums.nvidia.com/index.php?showtopic=152829" target="_blank">http://forums.nvidia.com/index.php?showtopic=152829</a></p>
<p>Now our task is to compute exp(x-l) and exp(r-x); or a duo exp evaluation. Recall that SSE2 has 128bit register to hold 2 doubles and perform parallel calculations on them. It should help me. In fact, my code below achieves 40% speed up, when compiled with VS 2010 Express.</p>
<p>Caveats</p>
<p>1. our calculation is approximate, and I did not study the accuracy yet. But simply compare to even rougher approximation shows: the speedup is real.</p>
<p>2. VS2008 Express can not give me any gain.</p>
<p>3. Intel C++? good idea, but need rewrite the code, as I use Microsoft C++ intrinsics.</p>
<h2>Implementation</h2>
<p>First, know how to evaluate one exp() in C++. Then parallelize it and write the code for double-double pair in SSE2 intrinsics.</p>
<p>First of all, there is no assembly instruction for exp(). We only have MUL, ADD, SQRT, etc. So we need polynomial approximation. The classic way of doing this is via Taylor expansion. Also, we need pay attention on a few coding tricks to save more time in Taylor expansion evaluation.</p>
<p>I don&#8217;t need write my version. Just use <strong>Cephes</strong> library from Netlib. http://www.netlib.org/cephes/</p>
<p>Then we can see SSE/SSE2 at SF version of Cephes as SseMath.</p>
<p>http://gruntthepeon.free.fr/ssemath/</p>
<p>But I need DF precision! Easy, do some translation. We end up with the following code.</p>
<pre>// SSE2
#include &lt;emmintrin.h&gt;

#define SSE2_DOUBLE_CONST(Key, v) \
    static const __declspec(align(16)) double _D_##Key[2] = { v, v }
// repeat a const to be in packed form

#define SSE2_INT_CONST(Key, v) \
    static const __declspec(align(16)) int _I_##Key[4] = {v, v, v, v}

/*  SSE2 defs start */
SSE2_DOUBLE_CONST(1, 1.0);
SSE2_DOUBLE_CONST(0p5, 0.5);

SSE2_DOUBLE_CONST(cephes_LOG2, 1.44269504088896341);
SSE2_DOUBLE_CONST(cephes_C1, 0.693359375);
SSE2_DOUBLE_CONST(cephes_C2, -2.12194440e-4);

SSE2_DOUBLE_CONST(cephes_p0, 1.9875691500E-4);
SSE2_DOUBLE_CONST(cephes_p1, 1.3981999507E-3);
SSE2_DOUBLE_CONST(cephes_p2, 8.3334519073E-3);
SSE2_DOUBLE_CONST(cephes_p3, 4.1665795894E-2);
SSE2_DOUBLE_CONST(cephes_p4, 1.6666665459E-1);
SSE2_DOUBLE_CONST(cephes_p5, 5.0000001201E-1);

SSE2_DOUBLE_CONST(exp_upper,    88.3762626647949);
SSE2_DOUBLE_CONST(exp_lower,    -88.3762626647949);

SSE2_INT_CONST(0x7f, 0x7f);
/*  SSE2 defs end */

void exp_sse2(double in[2], double out[2])
{
    __m128d x = _mm_load_pd(in);

    __m128d tmp = _mm_setzero_pd();

    __m128d fx;

    __m128i emm0;

    __m128d oneD = *(__m128d*) _D_1;

    x = _mm_min_pd(x, *(__m128d*)_D_exp_upper);
    x = _mm_max_pd(x, *(__m128d*)_D_exp_lower);

    // exp(x) = exp( z + n log(2) ) = exp(z) * n^2 , where 0&lt;=z &lt; 1

    fx = _mm_mul_pd(x, *(__m128d*)_D_cephes_LOG2);
    fx = _mm_add_pd(fx, *(__m128d*)_D_0p5);

    emm0 = _mm_cvttpd_epi32(fx); //overloaded to handle _m128d
    tmp = _mm_cvtepi32_pd(emm0);

    __m128d flag = _mm_cmpgt_pd(tmp, fx); // ? 0xffffffffffffffff : 0x0
    flag = _mm_and_pd(flag, oneD);
    fx = _mm_sub_pd(tmp, flag);

    tmp = _mm_mul_pd(fx, *(__m128d*)_D_cephes_C1);
    __m128d tmp2 = _mm_mul_pd(fx, *(__m128d*)_D_cephes_C2);
    x = _mm_sub_pd(x, tmp);

    x = _mm_mul_pd(x, tmp2);

    __m128d z = _mm_mul_pd(x, x);

    __m128d y = *(__m128d*)_D_cephes_p0;
    y = _mm_mul_pd(y, x);
    y = _mm_add_pd(y, *(__m128d*)_D_cephes_p1);
    y = _mm_mul_pd(y, x);
    y = _mm_add_pd(y, *(__m128d*)_D_cephes_p2);
    y = _mm_mul_pd(y, x);
    y = _mm_add_pd(y, *(__m128d*)_D_cephes_p3);
    y = _mm_mul_pd(y, x);
    y = _mm_add_pd(y, *(__m128d*)_D_cephes_p4);
    y = _mm_mul_pd(y, x);
    y = _mm_add_pd(y, *(__m128d*)_D_cephes_p5);
    y = _mm_mul_pd(y, z);
    y = _mm_add_pd(y, x);
    y = _mm_add_pd(y, oneD);

    /* build 2^n */

    emm0 = _mm_cvttpd_epi32(fx);
    emm0 = _mm_add_epi32(emm0, *(__m128i*)_I_0x7f);
    emm0 = _mm_slli_epi32(emm0, 23);
    __m128d pow2n = _mm_castsi128_pd(emm0);

  y = _mm_mul_pd(y, pow2n);
    _mm_store_pd(out, y);

}</pre>
<h2>MISC</h2>
<p>http://eigen.tuxfamily.org/index.php?title=FAQ#Vectorization</p>
<p>A linear algebra library, with SSE.</p>
<p>http://simdx86.sourceforge.net/</p>
<p>libSIMDx86 v0.4.0<br />
The optimized SIMD library for x86 processors.</p>
<p>libSVM experiment: SSE extension</p>
<p>see source code for exp() kernel implementation in SSE2.</p>
<p>http://bazaar.launchpad.net/~olivier-grisel/simd4libsvm/libsvm.og.main/view/head:/src/kernel/kernel_sse2.cpp</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brillianteyes.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brillianteyes.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brillianteyes.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brillianteyes.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brillianteyes.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brillianteyes.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brillianteyes.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brillianteyes.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brillianteyes.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brillianteyes.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brillianteyes.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brillianteyes.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brillianteyes.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brillianteyes.wordpress.com/183/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=183&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brillianteyes.wordpress.com/2011/12/23/fast-implementation-of-duo-exp-evaluations-using-sse2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b6ed3d6a906d223359b75d43fba9482?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brillianteyes</media:title>
		</media:content>
	</item>
		<item>
		<title>Build out two more machines</title>
		<link>http://brillianteyes.wordpress.com/2011/11/25/build-out-two-more-machines/</link>
		<comments>http://brillianteyes.wordpress.com/2011/11/25/build-out-two-more-machines/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 21:29:32 +0000</pubDate>
		<dc:creator>brillianteyes</dc:creator>
				<category><![CDATA[GeekyGaddy]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HTPC]]></category>
		<category><![CDATA[PC]]></category>

		<guid isPermaLink="false">http://brillianteyes.wordpress.com/?p=178</guid>
		<description><![CDATA[&#160; The HTPC under build Fired the trigger on Nov 27, 2011. Antec Sonata III + 500W : $99 + $17 = $116. J&#38;R. I owned one from last December build, it works well. So I buy it again Note that Newegg.com current price is $129! Even higher than last year. So I buy it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=178&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<h2>The HTPC under build</h2>
<p>Fired the trigger on <strong>Nov 27, 2011</strong>.</p>
<h3>Antec Sonata III + 500W :</h3>
<h3>$99 + $17 = <strong>$116</strong>.</h3>
<p>J&amp;R. I owned one from last December build, it works well. So I buy it again <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Note that Newegg.com current price is $129! Even higher than last year. So I buy it from J&amp;R, but somehow it can only ship and cannot be picked up in store.</p>
<p>All other stuff are from Newegg.com</p>
<h3>Intel Core i3-2105 Sandy Bridge 3.1GHz LGA 1155 65W Dual-Core Desktop Processor Intel HD Graphics 3000 : $135</h3>
<p>Yes, I can save 20 bucks if I go for a 35W model. However, HD3000 graphics doubles the graphics engine from 6 to 12, compared to HD2000. As I will NOT buy discrete graphic card on HTPC. I decide to stick to HD3000.</p>
<h3>Kingston 4GB 240-Pin DDR3 SDRAM DDR3 1333 (PC3 10600) Desktop Memory: $15</h3>
<p>Yes, it is $15! Not on sale, just $15.</p>
<h3>MSI P67A-G43 (B3) LGA 1155 Intel P67 SATA 6Gb/s USB 3.0 ATX Intel Motherboard: $115 &#8211; $20 MIR = $95</h3>
<p>Surprisingly, cannot see a decent Gigabyte/Asus board with a decent price.  I used to think about Micro ATX board, but abandoned the idea. Yes, I can save a little space. But upgrading will be a big headache. Sometimes I have to upgrade, e.g. power supply may fail. Small box may come with a non-standard power supply, which means there is no cheap upgrade(though smaller).</p>
<h3>Intel 320 Series SSDSA2CW080G3K5 2.5&#8243; 80GB SATA II SSD. $150 &#8211; 70 = $80 (with free game and T-shirt)</h3>
<p>well, HTPC ONLY need 40GB to load Win7 &#8230; But 40GB price is $99 while 80 GB is $80 after rebate. So math rules.</p>
<p><span style="color:#ff0000;"><strong>Grand total: $441 (after $90 MIR)</strong></span></p>
<p>Let us see how this HTPC goes!</p>
<p>&nbsp;</p>
<h2>Random Thoughts before the Action</h2>
<p>&nbsp;</p>
<p>I have a plan to build two machines.</p>
<p>Current boxes:</p>
<p>1. Work machine: Q6600 + 4GB.</p>
<p>problem: no SSD, a little slow (esp. for video editing),  inefficient ( Q6600 marked at 130W). DVD drive dead.</p>
<p>2. Media PC: 2002-built P4 1.8G + 1GB</p>
<p>problem: very slow, even for simply task like turning it on then watch Video.</p>
<p>Grand plan:</p>
<p>1. New work PC: i7 2600K + 8GB (or 16?)</p>
<p>Use Intel SSD as boot disk, reuse existing hard drive as storage (until the hard drive price drops back to normal)</p>
<p>But, what to do with current Q6600? It is too energy inefficient for HTPC.</p>
<p>I may need an external BD burner. There is no point for an internal one. This will allow me later to buy MBA instead of MBP.</p>
<p>2. HTPC: due to configuration concern, I may go to full-size ATX case. Mini case is abundant, but I have to be very careful which board/aux to buy. Time wasting.</p>
<p>Basic idea: i3 + 4GB + SSD only</p>
<p>i3: $150?</p>
<p>4GB: $40</p>
<p>SSD: $100</p>
<p>board: $100</p>
<p>No video card required. But slot must be there.</p>
<p>Can we go fan-less?</p>
<p>Also, can we have GREAT remote experience? My current HP remote kb/mouse work, but rather clumsy</p>
<p>:</p>
<p>1) mouse is slow</p>
<p>2) kb is almost always out-of-power or not-in-sync. need reset repeatedly. So rarely used &#8212; even though it should be used more frequently to search video titles; or perform tasks like copying files around.</p>
<p>Some interesting remotes designed for HTPC are here.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brillianteyes.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brillianteyes.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brillianteyes.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brillianteyes.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brillianteyes.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brillianteyes.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brillianteyes.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brillianteyes.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brillianteyes.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brillianteyes.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brillianteyes.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brillianteyes.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brillianteyes.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brillianteyes.wordpress.com/178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=178&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brillianteyes.wordpress.com/2011/11/25/build-out-two-more-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b6ed3d6a906d223359b75d43fba9482?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brillianteyes</media:title>
		</media:content>
	</item>
		<item>
		<title>Profiling on VS2008 platform</title>
		<link>http://brillianteyes.wordpress.com/2011/11/25/profiling-on-vs2008-platform/</link>
		<comments>http://brillianteyes.wordpress.com/2011/11/25/profiling-on-vs2008-platform/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 21:16:55 +0000</pubDate>
		<dc:creator>brillianteyes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Optimization]]></category>
		<category><![CDATA[profiling]]></category>

		<guid isPermaLink="false">http://brillianteyes.wordpress.com/?p=176</guid>
		<description><![CDATA[Stumpled upon &#8220;Very Sleepy&#8221;. http://www.codersnotes.com/sleepy It only requires code compiled with Debug symbol on. Note that it works only on 1st thread of the process &#8212; so does it work well with Excel XLL? &#160; &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=176&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Stumpled upon &#8220;Very Sleepy&#8221;.</p>
<p>http://www.codersnotes.com/sleepy</p>
<p>It only requires code compiled with Debug symbol on. Note that it works only on 1st thread of the process &#8212; so does it work well with Excel XLL?</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brillianteyes.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brillianteyes.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brillianteyes.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brillianteyes.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brillianteyes.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brillianteyes.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brillianteyes.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brillianteyes.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brillianteyes.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brillianteyes.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brillianteyes.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brillianteyes.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brillianteyes.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brillianteyes.wordpress.com/176/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=176&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brillianteyes.wordpress.com/2011/11/25/profiling-on-vs2008-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b6ed3d6a906d223359b75d43fba9482?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brillianteyes</media:title>
		</media:content>
	</item>
		<item>
		<title>Template-based type-conversion operator cannot compile</title>
		<link>http://brillianteyes.wordpress.com/2011/11/18/template-based-type-conversion-operator-cannot-compile/</link>
		<comments>http://brillianteyes.wordpress.com/2011/11/18/template-based-type-conversion-operator-cannot-compile/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 22:04:14 +0000</pubDate>
		<dc:creator>brillianteyes</dc:creator>
				<category><![CDATA[AdvC++]]></category>

		<guid isPermaLink="false">http://brillianteyes.wordpress.com/?p=174</guid>
		<description><![CDATA[class Base { public: template&#60;typename T&#62; operator T(); // convert it to type T }; &#160; client side code: string vStrValue = myData["Key"];  //xxx It works well for VS2008, gcc 3.4. However, Mingw c++ 3.4.5 complains the line with xxx cannot compile call of overloaded function basic_string(Base&#38; ) is ambiguous. In fact, basic_string does have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=174&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>class Base</p>
<p>{</p>
<p>public:</p>
<p>template&lt;typename T&gt; operator T(); // convert it to type T</p>
<p>};</p>
<p>&nbsp;</p>
<p>client side code:</p>
<p>string vStrValue = myData["Key"];  //xxx</p>
<p>It works well for VS2008, gcc 3.4. However, Mingw c++ 3.4.5 complains the line with xxx cannot compile</p>
<p>call of overloaded function basic_string(Base&amp; ) is ambiguous.</p>
<p>In fact, basic_string does have two constructors with 1 argument:</p>
<p>either it takes _CharT, or it takes _Traits.</p>
<p>&nbsp;</p>
<p>This problem is still OPEN.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brillianteyes.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brillianteyes.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brillianteyes.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brillianteyes.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brillianteyes.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brillianteyes.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brillianteyes.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brillianteyes.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brillianteyes.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brillianteyes.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brillianteyes.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brillianteyes.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brillianteyes.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brillianteyes.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=174&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brillianteyes.wordpress.com/2011/11/18/template-based-type-conversion-operator-cannot-compile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b6ed3d6a906d223359b75d43fba9482?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brillianteyes</media:title>
		</media:content>
	</item>
		<item>
		<title>Why does MF matter?</title>
		<link>http://brillianteyes.wordpress.com/2011/11/17/why-does-mf-matter/</link>
		<comments>http://brillianteyes.wordpress.com/2011/11/17/why-does-mf-matter/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 20:21:51 +0000</pubDate>
		<dc:creator>brillianteyes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CapitalMarket]]></category>

		<guid isPermaLink="false">http://brillianteyes.wordpress.com/?p=172</guid>
		<description><![CDATA[only 0.5 bln missing. why does it matter? &#160; Global Deriv has a talk that mentioned the different clearing models: CME v.s. ICE. It DOES matter. &#160; In CME model, if MF commits fraud and goes belly up, other member firms have to share the loss. It is quite unfair and surprising ( being good [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=172&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>only 0.5 bln missing. why does it matter?</p>
<p>&nbsp;</p>
<p>Global Deriv has a talk that mentioned the different clearing models: CME v.s. ICE. It DOES matter.</p>
<p>&nbsp;</p>
<p>In CME model, if MF commits fraud and goes belly up, other member firms have to share the loss. It is quite unfair and surprising ( being good guy is apparently penalized).</p>
<p>What happens in ICE model for CDS?</p>
<p>What will be the direction for central swap clearing?</p>
<p>&nbsp;</p>
<p>Another big question is: how comes that 500m can be unaccounted for? why does CME bookkeeping system cannot tell (even after MF death) to tell who owns which? Details should be interesting.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brillianteyes.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brillianteyes.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brillianteyes.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brillianteyes.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brillianteyes.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brillianteyes.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brillianteyes.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brillianteyes.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brillianteyes.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brillianteyes.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brillianteyes.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brillianteyes.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brillianteyes.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brillianteyes.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=172&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brillianteyes.wordpress.com/2011/11/17/why-does-mf-matter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b6ed3d6a906d223359b75d43fba9482?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brillianteyes</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading Thinkpad X61T to Windows 7 with SSD</title>
		<link>http://brillianteyes.wordpress.com/2011/11/12/upgrading-thinkpad-x61t-to-windows-7-with-ssd/</link>
		<comments>http://brillianteyes.wordpress.com/2011/11/12/upgrading-thinkpad-x61t-to-windows-7-with-ssd/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 02:09:17 +0000</pubDate>
		<dc:creator>brillianteyes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://brillianteyes.wordpress.com/?p=170</guid>
		<description><![CDATA[Intel SSD 320. key challenges: X61T does not have a CD/DVD bay. If we simply replace HDD by SSD: 1) is it bootable at all? 2) where to grab the installation ISO? Below seems a workable plan. http://matthewammann.com/2011/05/24/thinkpads-and-ssds-part-1-preparation/ I will highlight a few key points here. &#160; 1. MS releases a Win7 -&#62; USB tool [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=170&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Intel SSD 320.</p>
<p>key challenges: X61T does not have a CD/DVD bay. If we simply replace HDD by SSD: 1) is it bootable at all? 2) where to grab the installation ISO?</p>
<p>Below seems a workable plan.</p>
<p>http://matthewammann.com/2011/05/24/thinkpads-and-ssds-part-1-preparation/</p>
<p>I will highlight a few key points here.</p>
<p>&nbsp;</p>
<p>1. MS releases a Win7 -&gt; USB tool</p>
<p>Use it to copy Win7 ISO contents to USB pen.</p>
<p>Note that many complains that &#8220;ISO error&#8221; problem occurs. See here for a fix.</p>
<p>&nbsp;</p>
<p>2. Make USD pen bootable.</p>
<p>http://www.intowindows.com/bootable-usb/</p>
<p>&nbsp;</p>
<p>3. Make X61T allow to boot from USB</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>Recommended Softwares</h2>
<p>http://forum.tabletpcreview.com/lenovo-ibm/23491-windows-7-clean-install-x61t.html</p>
<table id="post144665" width="100%" border="0" cellspacing="0" cellpadding="6" align="center">
<tbody>
<tr valign="top">
<td>
<div id="post_message_144665">Also, if anyone is interested, here is what I&#8217;m running on my machine&#8230;</p>
<p>VLC: This is the best video player out there. HUGE codec support.<br />
Handbrake: Good for converting video to play on different devices (iPhone)<br />
Office 2007: Good ink support<br />
Google Earth: Mapping app.<br />
SketchUp 7: Open-Source 3D modeling App.<br />
Open Pandora: A smaller version of Pandora<br />
iTunes: Duh<br />
Paint.NET: Free replacement for MS Paint<br />
Picasa 3: BEST photo management and simple editing tool<br />
Skype: free VoIP tool with video, file transfer, etc.<br />
Digsby: simple app that manages chat clients and social networks (facebook, AIM, etc)<br />
Evernote: Great Note-Taking App.<br />
Chrome: Google&#8217;s browser, but no real add-in support yet.<br />
Firefox: INSTALL THE BETA (3.1.2) the current version crashed<br />
<a href="http://www.crayonphysics.com/" target="_blank">Crayon Physics</a>: If you own a Tablet, you MUST get this game. It just came out final this week and it is absolutely amazing. I haven&#8217;t bought the full version yet, but I probably will soon.</div>
<div>
<hr size="1" />
<p><em> Last edited by Jimmy Sky : 01-14-2009 at 07:49 AM. Reason: Expanded the post to include install instructions </em></div>
</td>
</tr>
<tr>
<td><img title="Jimmy Sky is offline" src="http://forum.tabletpcreview.com/images/Tablet/statusicon/user_offline.gif" alt="Jimmy Sky is offline" border="0" /></td>
<td align="right"><a href="http://forum.tabletpcreview.com/newreply.php?do=newreply&amp;p=144665" rel="nofollow"><img title="Reply With Quote" src="http://forum.tabletpcreview.com/images/Tablet/buttons/quote.gif" alt="Reply With Quote" border="0" /></a></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brillianteyes.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brillianteyes.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brillianteyes.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brillianteyes.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brillianteyes.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brillianteyes.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brillianteyes.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brillianteyes.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brillianteyes.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brillianteyes.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brillianteyes.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brillianteyes.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brillianteyes.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brillianteyes.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=170&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brillianteyes.wordpress.com/2011/11/12/upgrading-thinkpad-x61t-to-windows-7-with-ssd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b6ed3d6a906d223359b75d43fba9482?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brillianteyes</media:title>
		</media:content>

		<media:content url="http://forum.tabletpcreview.com/images/Tablet/statusicon/user_offline.gif" medium="image">
			<media:title type="html">Jimmy Sky is offline</media:title>
		</media:content>

		<media:content url="http://forum.tabletpcreview.com/images/Tablet/buttons/quote.gif" medium="image">
			<media:title type="html">Reply With Quote</media:title>
		</media:content>
	</item>
		<item>
		<title>Crisis Review Reading</title>
		<link>http://brillianteyes.wordpress.com/2011/11/12/crisis-review-reading/</link>
		<comments>http://brillianteyes.wordpress.com/2011/11/12/crisis-review-reading/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 22:30:48 +0000</pubDate>
		<dc:creator>brillianteyes</dc:creator>
				<category><![CDATA[Quant]]></category>
		<category><![CDATA[quant]]></category>
		<category><![CDATA[serious reading]]></category>

		<guid isPermaLink="false">http://brillianteyes.wordpress.com/?p=166</guid>
		<description><![CDATA[1. The Devils in the tails, The actuarial math and subprime mortgage crisis. Donelly 2. Credit model and crisis. Brigo The preprint is freely available. 3. The formula that fell Wall Street. Sam Jones. FT.com 2009 It is about David Li, who studied at Waterloo (!). Note that Wired.com ran a similar article in 2009. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=166&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. The Devils in the tails, The actuarial math and subprime mortgage crisis. Donelly</p>
<p>2. Credit model and crisis. Brigo</p>
<p>The preprint is freely available.</p>
<p>3. The formula that fell Wall Street. Sam Jones. FT.com 2009</p>
<p>It is about David Li, who studied at Waterloo (!). Note that Wired.com ran a similar article in 2009.</p>
<p>4. [name forgotten]</p>
<p>It is about how Intex ruined MBS world, as everyone used it and made it possible to &#8220;standardize&#8221; the contracts and hence the pricing.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brillianteyes.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brillianteyes.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brillianteyes.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brillianteyes.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brillianteyes.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brillianteyes.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brillianteyes.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brillianteyes.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brillianteyes.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brillianteyes.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brillianteyes.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brillianteyes.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brillianteyes.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brillianteyes.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=166&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brillianteyes.wordpress.com/2011/11/12/crisis-review-reading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b6ed3d6a906d223359b75d43fba9482?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brillianteyes</media:title>
		</media:content>
	</item>
		<item>
		<title>Build XercesC</title>
		<link>http://brillianteyes.wordpress.com/2011/10/05/build-xercesc/</link>
		<comments>http://brillianteyes.wordpress.com/2011/10/05/build-xercesc/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 13:39:32 +0000</pubDate>
		<dc:creator>brillianteyes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://brillianteyes.wordpress.com/?p=160</guid>
		<description><![CDATA[Recently had a lot of fun to get XercesC working for a big project. First of all, highlight two commands very handy. $file foo.so Show how foo.so is built (flags, 32 bit or 64, platform) $ldd foo.so &#60;- /home/bunny/bar.so &#60;- /usr/lib/libm.so Show the dependency! It is critical as program won&#8217;t link if we only supply [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=160&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently had a lot of fun to get XercesC working for a big project.</p>
<p>First of all, highlight two commands very handy.</p>
<p><strong>$file foo.so</strong></p>
<p>Show how foo.so is built (flags, 32 bit or 64, platform)</p>
<p><strong>$ldd foo.so</strong></p>
<p>&lt;- /home/bunny/bar.so</p>
<p>&lt;- /usr/lib/libm.so</p>
<p>Show the dependency! It is critical as program won&#8217;t link if we only supply foo.so but some of its dependencies are missing.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>1. There are two main release series, 2.x.x and 3.x.x both are listed on the website. They co-exist for a reason.</h2>
<p>1) VS2008 cannot build v2.x ; in fact, there is no VS2008 solution file. If force an upgrading conversion, the build will fail.</p>
<p>2) v2.x cannot be built [I could be wrong, but it was not working out of box] for 64bit on Solaris.</p>
<p>3) Some old apps are wired with v2.x.</p>
<p>Lastly, v2 and v2 are not strictly API compatible.</p>
<h2>2. How to create a MinGW build.</h2>
<p>MinGW (ministic Gnu Windows) has a nice compiler suite. I used it to create .a on Solaris_i386 platform. The .a is in turn linked against other .a files, all compiled by MinGW C++, to create DLL and EXE. They are used on Win32.</p>
<p>The caveat is we have to use the entire MinGW compiler suite. It is easy to forget to use its ranlib. Then we can still generate .a, but it cannot be linked with other .a files.</p>
<p>Use command line below for Xerces-C-3.0.0</p>
<p>$./configure CC=/opt/mingw32/bin/gcc CXX=/opt/mingw32/bin/g++ RANLIB=/opt/mingw32/bin/ranlib &#8211;build=mingw32 &#8211;host=i386-mingw32msvc &#8211;disable-network  &#8211;prefix=~/homebrew/xercesc-v3</p>
<p>3. Makefile made adaptable</p>
<p>How to tell Makefile use proper headers/libs? Try below. For me, there are 3 targets: solaris_sparc, solaris_i386, windows.</p>
<p>XER = /opt/xercesc</p>
<p dir="ltr" align="left"><span style="color:#000000;font-family:Arial;font-size:x-small;">ifeq ($(TARGET), solaris_i386)<br />
INCL   += -I$(XER)/v3/solaris_i386/include<br />
else<br />
ifeq ($(TARGETTYPE), windows)<br />
INCL   += -I$(XER)/v3/windows/include<br />
else<br />
INCL   += -I$(XER)/v2/solaris_sparc/include<br />
endif<br />
endif</span></p>
<p dir="ltr" align="left"><span style="color:#000000;font-family:Arial;font-size:x-small;">ifeq ($(TARGETTYPE), solaris_i386)</span></p>
<p dir="ltr" align="left"><span style="color:#000000;font-family:Arial;font-size:x-small;">    LIBS +=  $(XER)/v3/windows/lib/libxerces-c.a<br />
else</span></p>
<p dir="ltr" align="left"><span style="color:#000000;font-family:Arial;font-size:x-small;">    ifeq ($(TARGETTYPE), windows)<br />
INCL += $(XER)/v3/windows/lib/libxerces-c.a<br />
else</span></p>
<p dir="ltr" align="left"><span style="color:#000000;font-family:Arial;font-size:x-small;">        $(XER)/v3/windows/lib/libxerces-c.a</span><br />
<span style="color:#000000;font-family:Arial;font-size:x-small;">    endif</span></p>
<p dir="ltr" align="left"><span style="color:#000000;font-family:Arial;font-size:x-small;">endif</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brillianteyes.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brillianteyes.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brillianteyes.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brillianteyes.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brillianteyes.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brillianteyes.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brillianteyes.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brillianteyes.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brillianteyes.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brillianteyes.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brillianteyes.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brillianteyes.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brillianteyes.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brillianteyes.wordpress.com/160/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brillianteyes.wordpress.com&amp;blog=5843469&amp;post=160&amp;subd=brillianteyes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brillianteyes.wordpress.com/2011/10/05/build-xercesc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b6ed3d6a906d223359b75d43fba9482?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brillianteyes</media:title>
		</media:content>
	</item>
	</channel>
</rss>
