<?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/"
	>

<channel>
	<title>Liyun&#039;s Blog</title>
	<atom:link href="https://blog.liyunchen.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.liyunchen.com</link>
	<description>Explore The World of Economics</description>
	<lastBuildDate>Sat, 09 May 2020 08:32:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<atom:link rel='hub' href='https://blog.liyunchen.com/?pushpress=hub'/>
	<item>
		<title>Solo (VFR) flight to Oceano, CA</title>
		<link>https://blog.liyunchen.com/solo-vfr-flight-to-oceano-ca/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=solo-vfr-flight-to-oceano-ca</link>
		
		<dc:creator><![CDATA[Liyun]]></dc:creator>
		<pubDate>Tue, 25 Feb 2020 05:51:14 +0000</pubDate>
				<category><![CDATA[photo]]></category>
		<guid isPermaLink="false">http://blog.liyunchen.com/?p=600</guid>

					<description><![CDATA[Feb 17, 2020. It has been five months since I got my private pilot license! The winter wasn't offering many good days to go up and enjoy the freshness of the air. Finally, spring is here and unlike last year, it doesn't rain much this time. I haven't done much flying since last Nov (only [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Feb 17, 2020.</p>



<p>It has been five months since I got my private pilot license! The winter wasn't offering many good days to go up and enjoy the freshness of the air. Finally, spring is here and unlike last year, it doesn't rain much this time. I haven't done much flying since last Nov (only two trips to Monterey?), and I couldn't wait to have a great (long) weekend to go further. This time, I go all the way south to see the closest airport to the beach -- Oceano, CA (L52).</p>



<p>When I work up and checked the weather this morning around 8:30 am, to my surprise, the fog covered the entire path from Palo Alto to Paso Robles. I could fly down the coast, but what if I cannot land in Oceano? I could only fly VFR (and I don't want to fly when I cannot see anything...I am not commuting. Seeing the landscape is part of the joy of flying by myself). I decided to wait a few hours, and it finally cleared up around 10am. Well, by the time I was in the air, it was already 12pm, but at least, I knew it would be clear all the way and remain clear for my night landing. I haven't done a night landing forever. The Marina layer that covers Bay Area is challenging. </p>



<p>On the way to Oceano, I flew inland most of the time. After Paso Robles, I decided to check out high way 58 and the Carrizo Plain National Monument area. It could be really pretty if the flowers are blooming. However, despite the hills were green, there was no visible trace of flowers in my sight. I headed directly to Oceano after that. Sorry to confuse traffic control (Oakland Center and Santa Barbara Approach...I guess I was on their boundary). </p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00627-scaled.jpg"><img fetchpriority="high" decoding="async" src="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00627-1024x683.jpg" alt="" class="wp-image-602" width="512" height="342" srcset="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00627-1024x683.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00627-300x200.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00627-768x512.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00627-1536x1024.jpg 1536w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00627-2048x1365.jpg 2048w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00627-624x416.jpg 624w" sizes="(max-width: 512px) 100vw, 512px" /></a><figcaption>Too early for the flower carpet</figcaption></figure></div>



<p>The entire flight was very smooth, until close to Oceano. I was wowing the beauty of the beach, the ocean, and the airport, then some turbulence called my attention back. Okay, I guess I need to control the airplane first and land safely...There's enough time to enjoy the beauty of the sight after I land. </p>



<p>Most of the time, after I land somewhere, I need to find a crew car (thanks Monterey!) or a rental car to get around. When I was planning for the flight last night, someone said that I wouldn't need a car in Oceano. Really? Aren't airports always far away from the towns? When I got close to the airport, yea, of course I won't need a car. When I was flying down wind, I was literally flying on top of the beach. I didn't expect it to be this close. </p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="http://blog.liyunchen.com/wp-content/uploads/2020/02/IMG_4715-scaled.jpg"><img decoding="async" src="http://blog.liyunchen.com/wp-content/uploads/2020/02/IMG_4715-768x1024.jpg" alt="" class="wp-image-601" width="384" height="512" srcset="http://blog.liyunchen.com/wp-content/uploads/2020/02/IMG_4715-768x1024.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2020/02/IMG_4715-225x300.jpg 225w, http://blog.liyunchen.com/wp-content/uploads/2020/02/IMG_4715-1152x1536.jpg 1152w, http://blog.liyunchen.com/wp-content/uploads/2020/02/IMG_4715-1536x2048.jpg 1536w, http://blog.liyunchen.com/wp-content/uploads/2020/02/IMG_4715-624x832.jpg 624w, http://blog.liyunchen.com/wp-content/uploads/2020/02/IMG_4715-scaled.jpg 1920w" sizes="(max-width: 384px) 100vw, 384px" /></a><figcaption>The airport is just right next to the beach!</figcaption></figure></div>



<p>Because of the detour to the mountains, I ended up spending about 1.5+ hours for the entire flight, even with ~15 knots tailwind. Well, I was really hungry, so although I really wanted to see the beach, I decided to get some food first. After lunch, I finally had the energy to go for a long walk. On the maps, it said "Oceano Dunes SVRA". I was wondering, what's special about the beach? Soon I founded it out that people could drive their normal cars inside of the state park! That's just crazy. </p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00699-scaled.jpg"><img decoding="async" src="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00699-1024x683.jpg" alt="" class="wp-image-603" width="512" height="342" srcset="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00699-1024x683.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00699-300x200.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00699-768x512.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00699-1536x1024.jpg 1536w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00699-2048x1365.jpg 2048w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00699-624x416.jpg 624w" sizes="(max-width: 512px) 100vw, 512px" /></a><figcaption>Driveway on the sand</figcaption></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00680.jpg"><img loading="lazy" decoding="async" src="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00680-1024x683.jpg" alt="" class="wp-image-612" width="512" height="342" srcset="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00680-1024x683.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00680-300x200.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00680-768x512.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00680-1536x1024.jpg 1536w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00680-2048x1365.jpg 2048w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00680-624x416.jpg 624w" sizes="auto, (max-width: 512px) 100vw, 512px" /></a><figcaption>Blowing the sands like a little kid, at Oceano Dunes</figcaption></figure></div>



<p>After a two hours walk, I went back to my plane. Some flowers are already blooming, e.g. California poppy, though I am still waiting for the season to see them dominate the entire hill. California sunshine is always on the healing side. Just a little bit out of the bay (i.e. 1.5-hour flight), I can find so many beautiful places for a day adventure. </p>



<p>On the way back, I flew along the coast until Monterey, then directly to San Carlos. I was using autopilot all the way until I disengaged it near the silicon valley (where I had to manually control the plane). It was after sunset, and it took me 1.5 hours again due to headwind. Luckily, I could spare my hands and take some pictures. Traffic wasn't busy after sunset...NorCar approach was quiet with only some commercial airliners' traffic, and they flew IFR <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /> </p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00728-2-scaled.jpg"><img loading="lazy" decoding="async" src="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00728-2-1024x683.jpg" alt="" class="wp-image-609" width="512" height="342" srcset="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00728-2-1024x683.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00728-2-300x200.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00728-2-768x512.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00728-2-1536x1024.jpg 1536w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00728-2-2048x1365.jpg 2048w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00728-2-624x416.jpg 624w" sizes="auto, (max-width: 512px) 100vw, 512px" /></a><figcaption>Monterey city light after sunset</figcaption></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00734-2-scaled.jpg"><img loading="lazy" decoding="async" src="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00734-2-1024x683.jpg" alt="" class="wp-image-610" width="512" height="342" srcset="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00734-2-1024x683.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00734-2-300x200.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00734-2-768x512.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00734-2-1536x1024.jpg 1536w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00734-2-2048x1365.jpg 2048w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00734-2-624x416.jpg 624w" sizes="auto, (max-width: 512px) 100vw, 512px" /></a><figcaption>Santa Cruz city light after sunset</figcaption></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00739-1.jpg"><img loading="lazy" decoding="async" src="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00739-1-1024x683.jpg" alt="" class="wp-image-611" width="512" height="342" srcset="http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00739-1-1024x683.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00739-1-300x200.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00739-1-768x512.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00739-1-1536x1024.jpg 1536w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00739-1-2048x1365.jpg 2048w, http://blog.liyunchen.com/wp-content/uploads/2020/02/DSC00739-1-624x416.jpg 624w" sizes="auto, (max-width: 512px) 100vw, 512px" /></a><figcaption>South Bay light at night</figcaption></figure></div>



<p>Back to San Carlos, and then home. It's a long day but I was well rested mentally. One more achievement -- I remembered to open and close VFR flight plans both ways! </p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="766" height="632" src="http://blog.liyunchen.com/wp-content/uploads/2020/02/Screen-Shot-2020-02-17-at-10.45.21-PM.png" alt="" class="wp-image-613" srcset="http://blog.liyunchen.com/wp-content/uploads/2020/02/Screen-Shot-2020-02-17-at-10.45.21-PM.png 766w, http://blog.liyunchen.com/wp-content/uploads/2020/02/Screen-Shot-2020-02-17-at-10.45.21-PM-300x248.png 300w, http://blog.liyunchen.com/wp-content/uploads/2020/02/Screen-Shot-2020-02-17-at-10.45.21-PM-624x515.png 624w" sizes="auto, (max-width: 766px) 100vw, 766px" /><figcaption>Flight route -- outbound</figcaption></figure></div>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">600</post-id>	</item>
		<item>
		<title>An efficient way to give gifts in Stardew Valley</title>
		<link>https://blog.liyunchen.com/give-gifts-efficiently-in-stardew-valley/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=give-gifts-efficiently-in-stardew-valley</link>
					<comments>https://blog.liyunchen.com/give-gifts-efficiently-in-stardew-valley/#comments</comments>
		
		<dc:creator><![CDATA[Liyun]]></dc:creator>
		<pubDate>Wed, 09 Nov 2016 05:54:26 +0000</pubDate>
				<category><![CDATA[R, Stata, Matlab]]></category>
		<guid isPermaLink="false">http://blog.liyunchen.com/?p=555</guid>

					<description><![CDATA[I was playing Stardew Valley recently... well, it consumed much of my weekends... In the game, the player has to give gifts to all villagers to keep a good relationship with them. There is an official page displaying each one's preference, wiki. However, my life will be much easier if I can minimize the amount of [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I was playing Stardew Valley recently... well, it consumed much of my weekends...</p>
<p>In the game, the player has to give gifts to all villagers to keep a good relationship with them. There is an official page displaying each one's preference, <a href="http://stardewvalleywiki.com/List_of_Best_Gifts_by_Villager">wiki</a>. However, my life will be much easier if I can minimize the amount of distinct gifts I carry every day. When there is an optimization question, there is an analytical solution <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>My approach:</p>
<p>Use wiki's data as input, then identify the items that are favored by more than one villagers, and easy to obtain regardless of the season...as a result, I can arrange production and carriage easily and efficiently.</p>
<p>Output:</p>
<p>A network graph that shows how villagers are connected by gifts.</p>
<p><a href="http://blog.liyunchen.com/wp-content/uploads/2016/12/Screen-Shot-2016-11-06-at-6.52.54-PM.png"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-556" src="http://blog.liyunchen.com/wp-content/uploads/2016/12/Screen-Shot-2016-11-06-at-6.52.54-PM-1024x747.png" alt="screen-shot-2016-11-06-at-6-52-54-pm" width="625" height="456" srcset="http://blog.liyunchen.com/wp-content/uploads/2016/12/Screen-Shot-2016-11-06-at-6.52.54-PM-1024x747.png 1024w, http://blog.liyunchen.com/wp-content/uploads/2016/12/Screen-Shot-2016-11-06-at-6.52.54-PM-300x219.png 300w, http://blog.liyunchen.com/wp-content/uploads/2016/12/Screen-Shot-2016-11-06-at-6.52.54-PM-768x560.png 768w, http://blog.liyunchen.com/wp-content/uploads/2016/12/Screen-Shot-2016-11-06-at-6.52.54-PM-624x455.png 624w, http://blog.liyunchen.com/wp-content/uploads/2016/12/Screen-Shot-2016-11-06-at-6.52.54-PM.png 1536w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a></p>
<p>Source codes:</p>
<pre class="lang:r decode:true">gift = read.csv("stardew valley gift.csv/Sheet 1-Table 1.csv", stringsAsFactors = F)

names(gift)

expand.gift = apply(gift, 1, 
      function (x) {
        gift_list = unlist(strsplit(x[2],"\n "))
        data.frame(v = x[1], g = gift_list)
        }
      )
expand.gift = do.call(rbind, expand.gift)

expand.gift$v = gsub("\n","",expand.gift$v)
expand.gift$g = gsub("[[:space:]]","",expand.gift$g)
expand.gift$v = paste0("v.",expand.gift$v)
names(expand.gift) = c("source","target")
write.csv(expand.gift, file = "expand.gift.csv", row.names = F)
expand.gift = subset(expand.gift, ! g %in% c("Prismatic Shard","Rabbit's Foot"))

expand.gift.mul = merge(expand.gift, expand.gift,
                        by.x = "v",by.y = "v")
expand.gift.mul = subset(expand.gift.mul, g.x!= g.y)

library(igraph)
gift.n = graph_from_edgelist(as.matrix(expand.gift.mul[,2:3]), T)
gift.n = as.undirected(gift.n, mode = "mutual")
V(gift.n)$size &lt;- 1
l &lt;- layout_with_kk(gift.n)
plot(gift.n,layout=l, vertex.label.cex	 = 0.7)

write_graph(gift.n, file = "svgift.gml",format = "gml")
</pre>
<p>Original dataset:<br />
<a href="http://www.loyhome.com/cn/wp-content/uploads/2016/11/Sheet-1-Table-1.csv">sheet-1-table-1.csv</a></p>
<p>Vector graph output:<br />
<a href="http://www.loyhome.com/cn/wp-content/uploads/2016/11/svgift.pdf">svgift</a>.pdf</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.liyunchen.com/give-gifts-efficiently-in-stardew-valley/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">555</post-id>	</item>
		<item>
		<title>My Second 600 KM</title>
		<link>https://blog.liyunchen.com/my-second-600-km/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-second-600-km</link>
					<comments>https://blog.liyunchen.com/my-second-600-km/#comments</comments>
		
		<dc:creator><![CDATA[Liyun]]></dc:creator>
		<pubDate>Tue, 01 Mar 2016 07:06:08 +0000</pubDate>
				<category><![CDATA[photo]]></category>
		<guid isPermaLink="false">http://blog.liyunchen.com/?p=520</guid>

					<description><![CDATA[Ever since I first drove 600 KM in a day by myself, I never tried to drive that long again. Finally, it happened. Last weekend I had to drive 600 KM, for the second time in life. The route was a loop starting from San Jose, then Monterey, then through 17 mile to Carmel, then [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Ever since I <a href="http://blog.liyunchen.com/israel-full-of-adventures/">first drove 600 KM</a> in a day by myself, I never tried to drive that long again. Finally, it happened. Last weekend I had to drive 600 KM, for the second time in life.</p>
<p>The route was a loop starting from San Jose, then Monterey, then through 17 mile to Carmel, then down south to Big Sur and Hearst Castle, and finally drive back via 101.</p>
<p><a href="http://blog.liyunchen.com/wp-content/uploads/2016/03/Screen-Shot-2016-02-29-at-10.53.52-PM.png" rel="attachment wp-att-522"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-522" src="http://blog.liyunchen.com/wp-content/uploads/2016/03/Screen-Shot-2016-02-29-at-10.53.52-PM.png" alt="Screen Shot 2016-02-29 at 10.53.52 PM" width="826" height="936" srcset="http://blog.liyunchen.com/wp-content/uploads/2016/03/Screen-Shot-2016-02-29-at-10.53.52-PM.png 826w, http://blog.liyunchen.com/wp-content/uploads/2016/03/Screen-Shot-2016-02-29-at-10.53.52-PM-265x300.png 265w, http://blog.liyunchen.com/wp-content/uploads/2016/03/Screen-Shot-2016-02-29-at-10.53.52-PM-768x870.png 768w, http://blog.liyunchen.com/wp-content/uploads/2016/03/Screen-Shot-2016-02-29-at-10.53.52-PM-624x707.png 624w" sizes="auto, (max-width: 826px) 100vw, 826px" /></a>We were fortune enough to see the fog disappears in 17 mile. Everything happened in a sudden; dynamic.</p>
<p><a href="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04474.jpg" rel="attachment wp-att-523"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-523" src="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04474-1024x574.jpg" alt="DSC04474" width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04474-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04474-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04474-768x430.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04474-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a>Then a front page photo of the famous tree in 17 mile.</p>
<p><a href="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04553.jpg" rel="attachment wp-att-521"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-521" src="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04553-1024x574.jpg" alt="DSC04553" width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04553-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04553-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04553-768x430.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04553-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a>We saw three happy (or scared) rabbits... near the concrete bridge.</p>
<p><a href="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04571.jpg" rel="attachment wp-att-525"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-525" src="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04571-1024x574.jpg" alt="DSC04571" width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04571-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04571-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04571-768x430.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04571-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a></p>
<p>Sharp cliff and sapphire blue sea.</p>
<p><a href="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04592.jpg" rel="attachment wp-att-526"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-526" src="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04592-1024x574.jpg" alt="DSC04592" width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04592-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04592-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04592-768x430.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04592-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a></p>
<p>Sunset Near the Hearst Castle.</p>
<p><a href="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04659.jpg" rel="attachment wp-att-527"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-527" src="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04659-1024x574.jpg" alt="DSC04659" width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04659-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04659-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04659-768x430.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04659-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a></p>
<p><a href="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04651.jpg" rel="attachment wp-att-528"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-528" src="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04651-1024x574.jpg" alt="DSC04651" width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04651-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04651-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04651-768x430.jpg 768w, http://blog.liyunchen.com/wp-content/uploads/2016/03/DSC04651-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.liyunchen.com/my-second-600-km/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">520</post-id>	</item>
		<item>
		<title>finally....liyunchen.com</title>
		<link>https://blog.liyunchen.com/finally-liyunchen-com/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=finally-liyunchen-com</link>
					<comments>https://blog.liyunchen.com/finally-liyunchen-com/#comments</comments>
		
		<dc:creator><![CDATA[Liyun]]></dc:creator>
		<pubDate>Tue, 19 Jan 2016 19:31:39 +0000</pubDate>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[liyunchen.com]]></category>
		<guid isPermaLink="false">http://blog.cloudlychen.net/?p=517</guid>

					<description><![CDATA[Finally I decided to register a domain name under my name - liyunchen.com. (also liyunchen.net as a safe backup). Hope this helps my SEO (although it has been pretty good), as well as to keep everything consistent. Time to change my signature now 🙂]]></description>
										<content:encoded><![CDATA[<p>Finally I decided to register a domain name under my name - liyunchen.com. (also liyunchen.net as a safe backup).</p>
<p>Hope this helps my SEO (although it has been pretty good), as well as to keep everything consistent. Time to change my signature now <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.liyunchen.com/finally-liyunchen-com/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">517</post-id>	</item>
		<item>
		<title>Random Discovery from the City Lights, San Francisco</title>
		<link>https://blog.liyunchen.com/random-discovery-in-the-city-lights-san-francisco/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=random-discovery-in-the-city-lights-san-francisco</link>
					<comments>https://blog.liyunchen.com/random-discovery-in-the-city-lights-san-francisco/#comments</comments>
		
		<dc:creator><![CDATA[Liyun]]></dc:creator>
		<pubDate>Sun, 10 Jan 2016 06:35:10 +0000</pubDate>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[Afghanistan]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[city lights]]></category>
		<category><![CDATA[family]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[marriage]]></category>
		<category><![CDATA[middle east]]></category>
		<category><![CDATA[Poetry]]></category>
		<category><![CDATA[reading]]></category>
		<category><![CDATA[religion]]></category>
		<category><![CDATA[thinking]]></category>
		<category><![CDATA[war]]></category>
		<guid isPermaLink="false">http://blog.cloudlychen.net/?p=503</guid>

					<description><![CDATA[Having heard about the City Lights bookstore for a while, finally I got an idle afternoon to check out this cultural place. It was impressive that how the store encouraged people to read -- signs saying "have a seat + read a book" were everywhere. I went to the poetry room and found a seat [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Having heard about the City Lights bookstore for a while, finally I got an idle afternoon to check out this cultural place. It was impressive that how the store encouraged people to read -- signs saying "have a seat + read a book" were everywhere.</p>
<p>I went to the poetry room and found a seat in the corner. The room was very quite in the afternoon with a ray of sunshine coming in through the window. Everything was just perfect to have a seat and read. So I picked a book randomly and started to read. I was expecting to read a poetry book but it turned out that the book was actually about Afghanistan -- stories about Afghanistan behind a collection of lansays. The name of the book was <em><a href="http://www.amazon.com/Am-Beggar-World-Contemporary-Afghanistan/dp/0374191875">I Am the Beggar of the World: Landays from Contemporary Afghanistan</a>. </em></p>
<p>I was more interested in reading and feeling the stories. To be honest, I only had limited knowledge of the middle east (or the West Asia), in spite of <a href="http://blog.cloudlychen.net/israel-full-of-adventures/" target="_blank">a fortunate trip to Israel</a> this summer. When thinking about Afghanistan, my reactions were the American-Taliban war, withdrawal of American armies from Afghanistan, and some pieces of memories on the sharp contrast of Afghanistan in 50 years ago v.s. today. The book records some real stories in Afghanistan -- sex, rape, slave, war, marriage, family, exchange, education. Some brutal stories happened simply because people had no other choice. A vivid example is women's roles in a family. In the early days, women were responsible for bringing drinkable water to the family, and at that time they used containers like jugs to carry water from rivers to their houses. Recently, some families started to dig deep well to extract water directly from the underground so women no longer had to go out and carry water back. The interesting part was that because of the risk of rape and kidnap, women were not allowed to go out if not necessary, then it became hard for young girls to meet young boys. As a result, young people had fewer chances to meet each other. This side effect makes it harder to judge whether that technology improvement was good or bad; however, the wide applications of Internet (e.g. facebook) have significantly and positively impacted people's lives, as this lansay shows.</p>
<p><a href="http://www.loyhome.com/cn/wp-content/uploads/2016/01/IMG_3319.jpg"><img decoding="async" class="aligncenter size-large wp-image-3856" src="http://www.loyhome.com/cn/wp-content/uploads/2016/01/IMG_3319-1024x768.jpg" alt="IMG_3319" width="500" /></a></p>
<p><span id="more-503"></span>Then marriage. In my generation, it is rarely the case that marriages are purely arranged by their families. Most people at least have the freedom to choose someone they do not hate though their families are still providing matching advice. In contrast, marriages in Afghanistan convey more economic meanings -- family links, exchanges, and simply reproduction. Males have irreplaceable roles in the war, and there are many widows and children left unavoidably. It is very hard to re-marry someone else, either in Afghanistan today or in China a century ago. People have to weigh economic factors more in uncertainty and poverty. A piece of lansay tells such story. A girl was arranged to marry a boy, but unfortunately the boy died during the war. According to the custom (or two families' agreement), the girl could either marry the boy's older brother or younger brother instead. However, both of them repelled the girl because the girl's father had no money to pay the dowry. Another lansay also reflects similar idea.</p>
<blockquote><p>"When sisters sit together, they always praise their brothers.</p>
<p>When brothers sit together, they sell their sisters to others."</p></blockquote>
<p>There are some remarkable statistics behind. During the Afghanistan Civil War (90s of last century), about 1/4 of the population (equivalent to 1.5M) fled to Pakistan, and thousands of women were raped on the way. There is a research paper saying that readers response more strongly to single pictures than numbers from massive statistics, and apparently we can tell how true it is from the way that media report Syrian refugees.</p>
<p><a href="http://www.loyhome.com/cn/wp-content/uploads/2016/01/IMG_3324.jpg"><img decoding="async" class="aligncenter size-large wp-image-3857" src="http://www.loyhome.com/cn/wp-content/uploads/2016/01/IMG_3324-1024x768.jpg" alt="IMG_3324" width="500" /></a>The name of the book comes from a poet in the book.</p>
<blockquote><p>"In my dream, I am the president.</p>
<p>When I awake, I am the beggar of the world."</p></blockquote>
<p>It tells a story of a married woman. In the day her husband has to go out to feed the family, and the woman stays at home like a beggar; at night, they could have some warm foods together and stay together in the bed. That's the only warm that leads to a good dream.</p>
<p>I also find this lansay touching.</p>
<blockquote><p><a href="http://www.loyhome.com/cn/wp-content/uploads/2016/01/IMG_3326.jpg"><img decoding="async" class="aligncenter size-large wp-image-3859" src="http://www.loyhome.com/cn/wp-content/uploads/2016/01/IMG_3326-1024x768.jpg" alt="IMG_3326" width="500" /></a>I could have tasted death for a taste of your tongue</p>
<p>watching you eat ice cream when we were young.</p></blockquote>
<p>Without the picture on the left I could not link this to my memories about the country from 50 years ago v.s. today. In the past, people lived a happy life with a lot of freedom and smiles; however, today they only have <span class="def wordGroup">debris</span> of the old city left. It reminds me of the past changes in China. In the past 30 years, China had significant improvements on all aspects and life qualities have always been increasing. It is very hard for me to imagine how it feels when everything is ruined and goes back to decades ago. In addition to Afghanistan, many other middle eastern countries have experienced similar transitions, say, Iraq, Syria, Egypt. I find myself speechless in front of the refugee topic. On one side, China is so far away from the Middle East, and China's role seems unique (from people's comments when I was in Israel, they hope China can mediate other political parties because there is less direct conflict of interest), and also there are almost no refugee coming to China to cause any issues. On the other side, even though I have lived in Europe and am living in the U.S. now, I am not from these areas and it is hard for me to think on behalf of the local people and understand their concerns. The only thing I can say is that, there is definitely no Pareto improvement to make all sides happy. It is impossible for the refugees to adapt to  European communities immediately and peacefully. I don't feel it is a unique issue caused by religions or ethic groups though. Certain conditions have to be satisfied to reach an equilibrium, and once there is an external shock, the equilibrium might be broken and hence we see some severe issues like sexual assaults in some European countries.</p>
<p>After all, it was nice to read a book and learn some real stories. It was also a precious opportunity for me to spend a whole afternoon reading a random book and thinking about life. I used to do it a lot when I was in Shanghai, but no so often since I moved to the bay area. However, my arty cells are woken up and it is time to enjoy the power of thinking.</p>
<p><a href="http://www.loyhome.com/cn/wp-content/uploads/2016/01/IMG_3344.jpg"><img decoding="async" class="aligncenter size-large wp-image-3860" src="http://www.loyhome.com/cn/wp-content/uploads/2016/01/IMG_3344-1024x768.jpg" alt="IMG_3344" width="500" /></a></p>
<p>2016.1.9 At City Lights and Brioche Bakery &amp; Cafe, San Francisco.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.liyunchen.com/random-discovery-in-the-city-lights-san-francisco/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">503</post-id>	</item>
		<item>
		<title>install Rodeo on OS X El Captain</title>
		<link>https://blog.liyunchen.com/install-rodeo-on-os-x-el-captain/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-rodeo-on-os-x-el-captain</link>
		
		<dc:creator><![CDATA[Liyun]]></dc:creator>
		<pubDate>Fri, 25 Dec 2015 23:50:17 +0000</pubDate>
				<category><![CDATA[software]]></category>
		<category><![CDATA[Anaconda]]></category>
		<category><![CDATA[ipython]]></category>
		<category><![CDATA[notebook]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Rodeo]]></category>
		<guid isPermaLink="false">http://blog.cloudlychen.net/?p=498</guid>

					<description><![CDATA[Today I try to install Rodeo in order to use python for data analysis on my macbook. It is a new macbook (and the New Macbook) so I started everything from scratch. I installed Anaconda as recommended and then I installed iPython notebook. Everything worked fine. $ python Python 3.5.1 &#124;Anaconda 2.4.1 (x86_64)&#124; (default, Dec  [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Today I try to install Rodeo in order to use python for data analysis on my macbook. It is a new macbook (and the New Macbook) so I started everything from scratch. I installed Anaconda as recommended and then I installed iPython notebook. Everything worked fine.</p>
<pre class="">$ python
Python 3.5.1 |Anaconda 2.4.1 (x86_64)| (default, Dec  7 2015, 11:24:55) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.</pre>
<p>Then I tried to start Rodeo, hmm, error message: "Bad news. Rodeo cannot start".</p>
<p>What can I do? I searched on the internet but found nothing. I can use both ipython and python from my terminal so I thought that could not be a problem. Then I made a guess - there must be something wrong with environment variables. I tried to echo my environment variables from the terminal:</p>
<pre class="">$ echo $PATH
/Users/Liyun/anaconda/bin:/Users/Liyun/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin</pre>
<p>It looks fine to me. Then I opened Rodeo again,  discarded the error message,  and opened its preference tab. Wait, I can specify the python I want to use here, and by default it is /user/bin/python! So I tried this python,</p>
<pre class="">$ /usr/bin/python
Python 2.7.10 (default, Oct 23 2015, 18:05:06) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.</pre>
<p>Apparently, my macbook somehow comes with python 2.7. I changed the python path in Rodeo's preferences tab to /Users/Liyun/anaconda/bin/python and restarted Rodeo. This time it worked perfectly. Well, I guess for whatever reason Rodeo is trying to use the old python although I have installed Anaconda for it.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">498</post-id>	</item>
		<item>
		<title>about GDP</title>
		<link>https://blog.liyunchen.com/about-gdp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=about-gdp</link>
		
		<dc:creator><![CDATA[Liyun]]></dc:creator>
		<pubDate>Mon, 14 Sep 2015 17:56:20 +0000</pubDate>
				<category><![CDATA[economics]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[China]]></category>
		<category><![CDATA[economic growth]]></category>
		<category><![CDATA[GDP]]></category>
		<category><![CDATA[India]]></category>
		<category><![CDATA[Japan]]></category>
		<guid isPermaLink="false">http://blog.cloudlychen.net/?p=492</guid>

					<description><![CDATA[Happen to see this: In nominal terms — the most appropriate measure when judging an economy’s global impact — India’s output is one-fifth that of China’s. India makes up a mere 2.5 per cent of global GDP against a hefty 13.5 per cent for China. If China grew at 5 per cent annually, it would [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Happen to see <a href="http://marginalrevolution.com/marginalrevolution/2015/09/india-china-fact-of-the-day.html">this</a>:</p>
<blockquote><p><span data-reactid=".1.0">In nominal terms — the most appropriate measure when judging an economy’s global impact — India’s output is one-fifth that of China’s. India makes up a mere 2.5 per cent of global GDP against a hefty 13.5 per cent for China. If China grew at 5 per cent annually, it would add an Indian-sized economy to its already <a title="World Bank data- China" href="http://data.worldbank.org/country/china" target="_blank">hefty output in less than four years.</a> Saying India can match this is like saying a mouse can pull a tractor.</span></p></blockquote>
<p>Then quickly checked China's GDP data...almost doubled since 6 years ago? (2009-2015). It is not just the math thing... not only add another India, China has already added another Japan-size economy. But wait, what does GDP mean for everyone?</p>
<p><iframe loading="lazy" width="400" height="325" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" src="https://www.google.com/publicdata/embed?ds=k3s92bru78li6_&amp;ctype=l&amp;strail=false&amp;bcs=d&amp;nselm=h&amp;met_y=ngdpd&amp;scale_y=lin&amp;ind_y=false&amp;rdim=world&amp;idim=country:CN:JP:IN&amp;ifdim=world&amp;tstart=968914800000&amp;tend=1473836400000&amp;hl=en_US&amp;dl=en&amp;ind=false"></iframe></p>
<p>That's like the question I had when I was wandering in streets in Tel Aviv...How should we account for economic growth? Especially for a big and quite unbalanced economy like China. My generation is not feeling stable -- so many people have to leave their hometowns to make a life either in Big Three (Beijing or Shanghai or Guangzhou/Shenzhen). Given another decade, how much worse could it even be?</p>
<p>Also wait... when US was at 10T China was not even 2T (2002)... now China/US is 10/17. Who can conclude that India cannot grow like China?<br />
<iframe loading="lazy" width="400" height="325" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" src="https://www.google.com/publicdata/embed?ds=k3s92bru78li6_&amp;ctype=l&amp;strail=false&amp;bcs=d&amp;nselm=h&amp;met_y=ngdpd&amp;scale_y=lin&amp;ind_y=false&amp;rdim=world&amp;idim=country:CN:JP:IN:US&amp;ifdim=world&amp;tstart=337762800000&amp;tend=1473836400000&amp;hl=en_US&amp;dl=en&amp;ind=false"></iframe></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">492</post-id>	</item>
		<item>
		<title>Israel: Full of Adventures</title>
		<link>https://blog.liyunchen.com/israel-full-of-adventures/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=israel-full-of-adventures</link>
					<comments>https://blog.liyunchen.com/israel-full-of-adventures/#comments</comments>
		
		<dc:creator><![CDATA[Liyun]]></dc:creator>
		<pubDate>Tue, 01 Sep 2015 13:50:56 +0000</pubDate>
				<category><![CDATA[photo]]></category>
		<category><![CDATA[Beit Guvrin-Maresha]]></category>
		<category><![CDATA[Galilee Sea]]></category>
		<category><![CDATA[Golan Heights]]></category>
		<category><![CDATA[Haifa]]></category>
		<category><![CDATA[Israel]]></category>
		<category><![CDATA[Jewish]]></category>
		<category><![CDATA[Tel Aviv]]></category>
		<guid isPermaLink="false">http://blog.cloudlychen.net/?p=464</guid>

					<description><![CDATA[It took me a while to come up with the best title to describe my past 15 days experience in Israel... Finally I was inspired by "full of ingredients" and just a little change -- full of adventures. I think I am the kind of person who loves to travel alone. I seldom make a [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>It took me a while to come up with the best title to describe my past 15 days experience in Israel... Finally I was inspired by "<a href="http://www.r-bloggers.com/r-3-2-0-is-released-using-the-installr-package-to-upgrade-in-windows-os/">full of ingredients</a>" and just a little change -- full of adventures.</p>
<p>I think I am the kind of person who loves to travel alone. I seldom make a travel plan -- last time when I traveled to Tibet and Nepal I didn't even book a round-way ticket. That's the unpredictable part of traveling: I don't know what's going to happen, so everything is a surprise and I enjoy the process of discovery.</p>
<p>This time to Israel was in fact better organized. It was a business trip; otherwise it would be very hard for me to get a visa to Israel. I had to stay in office on workdays; but that was not too bad either, because I could chat with Israeli colleagues and learn from them. Of course weekends were my adventure time.</p>
<h3>600 KM Drive</h3>
<p>The most remarkable day was the second Friday (Sunday-Thursday are workdays in Israel), when I drove 600 km by myself up to the north. Haifa, Sea of Galilee, Golan Heights. I watched the most beautiful moon-rise in my life when the moon rose up from mountains over the Galilee Sea. I could not stop myself from constantly driving around Sea of Galilee until the sky went completely dark and my GPS kept correcting me to the right route back to Tel Aviv. It was too amazing to be rational. Time flew without awareness.</p>
<p><div id="attachment_472" style="width: 635px" class="wp-caption aligncenter"><a href="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC02160.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-472" class="size-large wp-image-472" src="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC02160-1024x574.jpg" alt="Moon rise at the Galilee Sea" width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC02160-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC02160-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC02160-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a><p id="caption-attachment-472" class="wp-caption-text">Moon rise at the Galilee Sea</p></div></p>
<p>When I walked to a Cafe on top of the Bahai Garden for a short afternoon tea, it turned out to be a coincidence that a painter was drawing a painting that very similar to me! I wish I was in a long light dress so I could have matched the painting much better!</p>
<p><div id="attachment_470" style="width: 635px" class="wp-caption aligncenter"><a href="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC01794.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-470" class="wp-image-470 size-large" src="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC01794-1024x574.jpg" alt="Coincide!" width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01794-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01794-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01794-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a><p id="caption-attachment-470" class="wp-caption-text">Coincidence!</p></div></p>
<p><div id="attachment_471" style="width: 635px" class="wp-caption aligncenter"><a href="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC01799.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-471" class="wp-image-471 size-large" src="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC01799-1024x574.jpg" alt="The painter and her painting. " width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01799-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01799-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01799-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a><p id="caption-attachment-471" class="wp-caption-text">The painter and her painting.</p></div></p>
<p><span id="more-464"></span></p>
<h3>Israeli People</h3>
<p>Israeli people were also active, open and hospitable. My colleagues took me to stunning places every noon for lunch and underground bars for midnight parties. Even random people on the street were keen to chat with me. In Haifa, a young guy who was a Haifa native asked me if he could show me around his city and introduce its histories. He scared me when he asked if I wanted to stay in Haifa for that night and even I was willing to move to Israel and get married...I was shocked but the second day my colleagues told me that was normal. That was just the way how Jewish people expressed themselves. Similarly in Tel Aviv when I asked a group of energetic men to take a photo of me on the beach, they even asked me if I just wanted a photo of myself or a photo of both of us. I felt that people were just curious to meet an East-Asian girl.</p>
<h3>The Jewish Culture</h3>
<p>The Jewish culture was also my main interest during this trip. Fortunately I managed to pay a visit to the <a href="http://www.bh.org.il/">Beit Hatfutsot, Museum of the Jewish People</a>. The museum recorded history of Jewish movements around the world: how they spread to other continents and how they finally made it back to Israel. The most impressive picture was when I saw a sculpture that demonstrated Jewish people's attitude towards education:</p>
<blockquote><p>
"The Jewish family put the child's education above everything".</p>
<p><a href="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC01326-e1441112046308-1.jpg"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-486" src="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC01326-e1441112046308-1-950x1024.jpg" alt="DSC01326-e1441112046308 (1)" width="625" height="674" srcset="http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01326-e1441112046308-1-950x1024.jpg 950w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01326-e1441112046308-1-278x300.jpg 278w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01326-e1441112046308-1-624x672.jpg 624w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01326-e1441112046308-1.jpg 2000w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a></p></blockquote>
<p>Also unity sits in the heart of the Jews:</p>
<blockquote><p>"All Jews are responsible for one another".</p></blockquote>
<p><a href="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC01330.jpg"><img loading="lazy" decoding="async" class="wp-image-466 size-large alignnone" src="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC01330-1024x574.jpg" alt="DSC01330" width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01330-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01330-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01330-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a></p>
<h3>Jewish People and China</h3>
<p><div id="attachment_467" style="width: 635px" class="wp-caption aligncenter"><a href="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC01375.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-467" class="wp-image-467 size-large" src="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC01375-1024x574.jpg" alt="Jewish Synagogue in China from the 12th century." width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01375-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01375-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC01375-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a><p id="caption-attachment-467" class="wp-caption-text">Jewish Synagogue in China from the 12th century.</p></div></p>
<p>They also had a synagogue (means church for Jewish people to get-together) in China from 1000 years ago. It happened to be the 70th Anniversary of World Anti-Fascist War and Israel consulate in Shanghai <a href="https://www.youtube.com/watch?v=e4xGW8OA210">made a short video</a> to thank Shanghai for refuge.</p>
<h3>Sleepless Tel Aviv</h3>
<p>Tel Aviv is 24 hours sleepless. We arrived on Sunday midnight (1am) and everything was open on the beach! Families and children were enjoying their times playing on the beach...Bars and restaurants were open to accommodate friends and parties.  One beef Carpaccio and a glass of cocktail...night life starts and never ends.</p>
<p>At my last night in Tel Aviv I ran into a musical concert in the Old Jaffa City. Vigorous band, devoted singer and amazed audiences when you sit in a historical open-air theater next to the Mediterranean Sea.</p>
<p><div id="attachment_480" style="width: 635px" class="wp-caption aligncenter"><a href="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC03493.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-480" class="size-large wp-image-480" src="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC03493-1024x574.jpg" alt="Music Concert in Old Jaffa City" width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC03493-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC03493-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC03493-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a><p id="caption-attachment-480" class="wp-caption-text">Music Concert in Old Jaffa City</p></div></p>
<p>Tel Aviv is also open to homosexuals. Although from the legal perspective gay marriage is not recognized officially yet, they can enjoy their lives anyway and easily in Tel Aviv. Look at their <span id="result_box" class="short_text" lang="en"><span class="hps">graffiti on the street. </span></span></p>
<p><div id="attachment_469" style="width: 907px" class="wp-caption aligncenter"><a href="http://blog.cloudlychen.net/wp-content/uploads/2015/09/Screen-Shot-2015-09-01-at-6.18.33-AM.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-469" class="wp-image-469 size-full" src="http://blog.cloudlychen.net/wp-content/uploads/2015/09/Screen-Shot-2015-09-01-at-6.18.33-AM.png" alt="Homosexual graffiti" width="897" height="574" srcset="http://blog.liyunchen.com/wp-content/uploads/2015/09/Screen-Shot-2015-09-01-at-6.18.33-AM.png 897w, http://blog.liyunchen.com/wp-content/uploads/2015/09/Screen-Shot-2015-09-01-at-6.18.33-AM-300x192.png 300w, http://blog.liyunchen.com/wp-content/uploads/2015/09/Screen-Shot-2015-09-01-at-6.18.33-AM-624x399.png 624w" sizes="auto, (max-width: 897px) 100vw, 897px" /></a><p id="caption-attachment-469" class="wp-caption-text">Homosexual graffiti</p></div></p>
<h3>The Caves</h3>
<p>I also made a short trip to <a href="http://old.parks.org.il/BuildaGate5/general2/data_card.php?Cat=~25~~131474600~Card12~&amp;ru=&amp;SiteName=parks&amp;Clt=&amp;Bur=466258966">Beit Guvrin-Maresha National Park</a>. The park is famous for big caves:</p>
<blockquote><p><span id="CoIDField_DataCardLongText_3"> For thousands of years people have been cutting into the rock beneath the nari as quarries, burial caves, storerooms, industrial facilities, hideouts and dovecotes. </span></p></blockquote>
<p>Some of the caves were huge and people actually lived inside -- very cool compared to the outside heat. A residential cave can consist of several rooms for different purposes: bedroom, storage, oil press etc.</p>
<p><div id="attachment_474" style="width: 612px" class="wp-caption aligncenter"><a href="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC02527.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-474" class="size-large wp-image-474" src="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC02527-602x1024.jpg" alt="Entrance to a cave" width="602" height="1024" srcset="http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC02527-602x1024.jpg 602w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC02527-176x300.jpg 176w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC02527-624x1062.jpg 624w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC02527.jpg 1405w" sizes="auto, (max-width: 602px) 100vw, 602px" /></a><p id="caption-attachment-474" class="wp-caption-text">Entrance to a cave</p></div></p>
<p><div id="attachment_475" style="width: 635px" class="wp-caption aligncenter"><a href="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC02567.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-475" class="size-large wp-image-475" src="http://blog.cloudlychen.net/wp-content/uploads/2015/09/DSC02567-1024x574.jpg" alt="The Bell Cave" width="625" height="350" srcset="http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC02567-1024x574.jpg 1024w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC02567-300x168.jpg 300w, http://blog.liyunchen.com/wp-content/uploads/2015/09/DSC02567-624x350.jpg 624w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a><p id="caption-attachment-475" class="wp-caption-text">The Bell Cave</p></div></p>
<p>&lt; to be continued?&gt;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.liyunchen.com/israel-full-of-adventures/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">464</post-id>	</item>
		<item>
		<title>Protected: Aloft in the Air</title>
		<link>https://blog.liyunchen.com/aloft-in-the-air/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=aloft-in-the-air</link>
		
		<dc:creator><![CDATA[Liyun]]></dc:creator>
		<pubDate>Sun, 19 Jul 2015 04:55:17 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://blog.cloudlychen.net/?p=461</guid>

					<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
										<content:encoded><![CDATA[<form action="https://blog.liyunchen.com/wp-login.php?action=postpass" class="post-password-form" method="post"><input type="hidden" name="redirect_to" value="https://blog.liyunchen.com/aloft-in-the-air/" /></p>
<p>This content is password-protected. To view it, please enter the password below.</p>
<p><label for="pwbox-461">Password: <input name="post_password" id="pwbox-461" type="password" spellcheck="false" required size="20" /></label> <input type="submit" name="Submit" value="Enter" /></p>
</form>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">461</post-id>	</item>
		<item>
		<title>Several ways to solve a least square (regression)</title>
		<link>https://blog.liyunchen.com/several-ways-to-solve-a-least-square-regression/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=several-ways-to-solve-a-least-square-regression</link>
		
		<dc:creator><![CDATA[Liyun]]></dc:creator>
		<pubDate>Sat, 18 Apr 2015 07:13:10 +0000</pubDate>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[A/B test]]></category>
		<category><![CDATA[bootstrap]]></category>
		<category><![CDATA[close form solution]]></category>
		<category><![CDATA[computation]]></category>
		<category><![CDATA[hadoop]]></category>
		<category><![CDATA[least squares]]></category>
		<category><![CDATA[linear regression]]></category>
		<category><![CDATA[lm]]></category>
		<category><![CDATA[qr decomposition]]></category>
		<category><![CDATA[regression]]></category>
		<category><![CDATA[regression anatomy]]></category>
		<category><![CDATA[rhadoop]]></category>
		<guid isPermaLink="false">http://blog.cloudlychen.net/?p=454</guid>

					<description><![CDATA[As far as I know, there are several ways to solve a linear regression with computers. Here is a summary. Native close form solution: just . We can always solve that inverse matrix. It works fine for small dataset but to inverse a large matrix might be very computations expensive. QR decomposition: this is the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>As far as I know, there are several ways to solve a linear regression with computers. Here is a summary.</p>
<ul>
<li>Native close form solution: just <span class='MathJax_Preview'><img src='https://blog.liyunchen.com/wp-content/plugins/latex/cache/tex_aa73f44987ef77c2ebbba31594fedccd.gif' style='vertical-align: middle; border: none; ' class='tex' alt="" /></span><script type='math/tex'></script>. We can always solve that inverse matrix. It works fine for small dataset but to inverse a large matrix might be very computations expensive.</li>
<li>QR decomposition: this is the default method in R when you run lm(). In short, QR decomposition is to decompose the X matrix to <i>X</i> = <i>QR </i>where Q is an orthogonal matrix and R is an upper triangular matrix. Therefore, <span class='MathJax_Preview'><img src='https://blog.liyunchen.com/wp-content/plugins/latex/cache/tex_fcdd34ca6c627b06293a911821575964.gif' style='vertical-align: middle; border: none; ' class='tex' alt="" /></span><script type='math/tex'></script> and then <span class='MathJax_Preview'><img src='https://blog.liyunchen.com/wp-content/plugins/latex/cache/tex_3643d2b5fc805d0b090e550eb1fccda8.gif' style='vertical-align: middle; border: none; ' class='tex' alt="" /></span><script type='math/tex'></script> then <span class='MathJax_Preview'><img src='https://blog.liyunchen.com/wp-content/plugins/latex/cache/tex_db3e6cdf49ff3851748894e6b1ed70a3.gif' style='vertical-align: middle; border: none; ' class='tex' alt="" /></span><script type='math/tex'></script>then <span class='MathJax_Preview'><img src='https://blog.liyunchen.com/wp-content/plugins/latex/cache/tex_47cca408e224bf7c08ee1f80f425576b.gif' style='vertical-align: middle; border: none; ' class='tex' alt="" /></span><script type='math/tex'></script>. Because R is a upper triangular matrix then we can get beta directly after computing Q'Y. (<a href="http://www.seas.ucla.edu/~vandenbe/103/lectures/qr.pdf">More details</a>)</li>
<li>Regression anatomy formula: my boss mentioned it (thanks man! I never notice that) and I read the book <em>Mostly Harmless Econometrics</em> again today, on page 36 footnote, there is the regression anatomy formula. Basically if you have solved a regression already and just want to add an additional control variable, then you can follow this approach to make the computation easy.<br />
<a href="http://blog.cloudlychen.net/wp-content/uploads/2015/04/Screen-Shot-2015-04-17-at-5.20.12-PM.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-455" src="http://blog.cloudlychen.net/wp-content/uploads/2015/04/Screen-Shot-2015-04-17-at-5.20.12-PM.png" alt="Screen Shot 2015-04-17 at 5.20.12 PM" width="898" height="585" srcset="http://blog.liyunchen.com/wp-content/uploads/2015/04/Screen-Shot-2015-04-17-at-5.20.12-PM.png 898w, http://blog.liyunchen.com/wp-content/uploads/2015/04/Screen-Shot-2015-04-17-at-5.20.12-PM-300x195.png 300w, http://blog.liyunchen.com/wp-content/uploads/2015/04/Screen-Shot-2015-04-17-at-5.20.12-PM-624x407.png 624w" sizes="auto, (max-width: 898px) 100vw, 898px" /></a><br />
Especially if you have already computed a simple A/B test (i.e. only one dummy variable on the right hand side), then you can obtain such residues directly without running a real regression and then compute the estimate for your additional control variables straightforwardly. The variance estimate also follows.</li>
<li>Bootstrap: in most case bootstrap is expensive because you need to re-draw repeatably from your sample. However, if it is a very large data and it is naturally distribution over a parallel file distribution system (e.g. Hadoop), then draw from each node could be the best map-reduce strategy you may adopt in this case. As far as I know, the rHadoop package accommodates such idea for their parallel lm() function (or map-reduce algorithm).</li>
</ul>
<p>Any other ways?</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">454</post-id>	</item>
	</channel>
</rss>
