<?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>Crystal Chen &#187; Crystal</title>
	<atom:link href="http://crystalchen.com/cc/author/crystal/feed/" rel="self" type="application/rss+xml" />
	<link>http://crystalchen.com/cc</link>
	<description></description>
	<lastBuildDate>Fri, 18 May 2012 06:43:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Yunnan, China! &#8211; an email from 11/28/06</title>
		<link>http://crystalchen.com/cc/yunnan-china-an-email-from-112806/</link>
		<comments>http://crystalchen.com/cc/yunnan-china-an-email-from-112806/#comments</comments>
		<pubDate>Fri, 18 May 2012 06:38:25 +0000</pubDate>
		<dc:creator>Crystal</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://crystalchen.com/cc/?p=601</guid>
		<description><![CDATA[4 Days in&#160;Yunnan&#160;Province of Western&#160;China From Kunming, the capital of&#160;Yunnan&#160;Province, we flew over soft,&#160;mountainous terrain into the northern city of Lijiang. A white shuttle&#160;bus took us to Old Town Lijiang about 20 minutes away. Old Town&#160;Lijiang is a World Heritage &#8230; <a href="http://crystalchen.com/cc/yunnan-china-an-email-from-112806/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>4 Days in&nbsp;Yunnan&nbsp;Province of Western&nbsp;China</strong></p>
<div id=":13h">
<div>
<div>From Kunming, the capital of&nbsp;Yunnan&nbsp;Province, we flew over soft,&nbsp;mountainous terrain into the northern city of Lijiang. A white shuttle&nbsp;bus took us to Old Town Lijiang about 20 minutes away. Old Town&nbsp;Lijiang is a World Heritage sight and the primary reason visitors&nbsp;come&nbsp;to Lijiang.&nbsp;&nbsp;</div>
<div>&nbsp;</div>
<div><em>A view of Lijiang Old Town from a hill at sunrise.</em></div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/oldtown.jpg"><img class="wp-image-602 alignnone" title="oldtown" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/oldtown.jpg" alt="" width="410" height="307" /></a></div>
<div>&nbsp;</div>
<div>Old Town is where quite a few of the Naxi minority people live. They sell their trinkets by day and let out their homes to visitors at night. There are hundreds of guesthouses and inns to choose from in Old Town, so housing is never an issue here. The streets of Old Town are cobblestone and the houses made of wood in the Naxi style.&nbsp;</div>
<div>&nbsp;</div>
<div>An earthquake which hit Lijiang in 1996 leveled a good chunk of modern Lijiang, but Old Town seemed fine. Clear streams run through much of Old Town via canals; there was an article on the plane which compared Venice to Old Town Lijiang&#8230;though I think that was a little bit of a stretch.</div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/lijiang.jpg"><img class="alignnone size-full wp-image-603" title="lijiang" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/lijiang.jpg" alt="" width="240" height="320" /></a></div>
<div>&nbsp;</div>
<div>&nbsp;What I enjoyed most about Old Town was the attitude of the Naxi people. They are unpretentious people and singing and dancing, to them, is a natural part of life. Here and there, I could always hear a Naxi woman letting out a melody. The elderly Naxi women especially loved to dance together.&nbsp;</div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/naxidance.jpg"><img class="alignnone size-full wp-image-604" title="naxidance" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/naxidance.jpg" alt="" width="410" height="307" /></a></div>
<div>&nbsp;<em>Naxi people dance in rings.</em></div>
<div>&nbsp;</div>
<div>The weather was never very warm, a brisk&nbsp;50 something degrees and particularly chilly at night.&nbsp;Despite it being low season, the streets were still filled with tourists; I wonder what spring and summertime are like here!&nbsp;</div>
<div>&nbsp;</div>
<div>The next day, we booked a round trip van ride to Lake Lugu, which was 6 hours northeast&nbsp;</div>
<div>of Lijiang. Typically, a 6 hour ride can sound long, but bearable&#8230;for roads in decent condition!!!! Half of our trip was over unpaved road (made of cobblestone) with no safety guards to prevent our little van from falling 1000 feet or more down the mountainside.&nbsp;&nbsp;Our driver was a man who thought he was on a mission; he ripped around the winding turns just as quickly as a straight path and bypassed every vehicle which came in his way. We went up, down, and over 2 extremely high mountains and avoided various rocks which had dropped onto the road from above. The view was, of course, very beautiful, but a little hard to appreciate given the imminent risk of death.</div>
<div>&nbsp;</div>
<div><em>The first descent after leaving Lijiang. Let&#8217;s begin our journey!</em></div>
<div>&nbsp;<a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/start.jpg"><img class="alignnone size-full wp-image-605" title="start" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/start.jpg" alt="" width="410" height="307" /></a></div>
<div>&nbsp;</div>
<div><em>Homes we passed of the locals of&nbsp;Yunnan.&nbsp;</em></div>
<div><em><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/live.jpg"><img class="alignnone size-full wp-image-606" title="live" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/live.jpg" alt="" width="568" height="374" /></a></em></div>
<div>&nbsp;</div>
<div>Finally, after much praying and screaming for help, we reached Lake Lugu, a clear high-altitude lake and home to the Muosuo minority people. <a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/luguhu.jpg"><img class="alignnone size-full wp-image-607" title="luguhu" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/luguhu.jpg" alt="" width="512" height="342" /></a></div>
<div>&nbsp;</div>
<div>We were taken to an inn called Zhaxi&#8217;s House and checked in for the usual 50 RMB for a double room with private bath (that&#8217;s $6.41 USD). We walked about and noticed large white stone burners which honored the Mountain God.</div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/altar.jpg"><img class="alignnone size-full wp-image-608" title="altar" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/altar.jpg" alt="" width="410" height="307" /></a></div>
<div>&nbsp;</div>
<div>A large rock mountain dominated most of Lige, the small &#8216;town&#8217; where we were staying. Lige was more like a row of 10 wooden lodges along the lake and that was all.&nbsp;</div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/mountain.jpg"><img class="alignnone size-full wp-image-609" title="mountain" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/mountain.jpg" alt="" width="507" height="339" /></a></div>
<div>&nbsp;</div>
<div>In the afternoon, we noticed young&nbsp;women outside roasting baby pigs over basins of timber fires. Being low season, the town had a certain deserted feel to it.&nbsp;I would say in total, there were about 15-20 guests staying in Lige&nbsp;that night.</div>
<div>&nbsp;</div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/pig.jpg"><img class="alignnone size-full wp-image-610" title="pig" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/pig.jpg" alt="" width="522" height="426" /></a>&nbsp;</div>
<div>After dinner we met Zhaxi, the owner of our lodge, in his restaurant on the 2nd floor. He was a tall, handsome Muosuo man. An entire wall of the restaurant was dedicated to photographs of him. He had been a monk for 10 years (from ages 8-18, I calculated) in Taersi Monastery before deciding to return to mortal life.&nbsp;</div>
<div>&nbsp;</div>
<div><em>Zhaxi, our dashing host.</em></div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/zhaxi.jpg"><img class="alignnone size-full wp-image-611" title="zhaxi" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/zhaxi.jpg" alt="" width="296" height="411" /></a></div>
<div>&nbsp;</div>
<div>He escorted us to the town&#8217;s little party at a nearby lodge where the young people danced Muosuo dances around a fire and sang Muosuo songs plainly for our amusement&#8230;though they looked like they were having some fun too.</div>
<div>&nbsp;</div>
<div><em>Muosuo girls trying to stay warm between dances.</em></div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/muosuo.jpg"><img class="alignnone size-full wp-image-612" title="muosuo" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/muosuo.jpg" alt="" width="418" height="396" /></a></div>
<div>Ironically, the guests, most of whom were Han Chinese, engaged in a kind of competition with the Muosuo group&#8230;on who could sing their songs better and louder. The Han Chinese would belt out popular Mandarin pop tunes over the Muosuo young people&#8217;s traditional songs. Innocent though it seemed, I couldn&#8217;t help but think that it was all too indicative of what the Han Chinese have been doing and are doing best&#8230;</div>
<div>&nbsp;</div>
<div>What is most distinctive about the Muosuo people is that, here, the women run the show. The Muosuo are the only, if not last, remaining matriarchal society in the world. Women own the property and the lineage runs down through the women&#8217;s side of the family. This system evolved after countless generations and it seems to work for both sides! Maybe we in the West should take a hint! Here is how it works: if a Muosuo man wants to marry a Muosuo woman, he begins to visit her every night. During the daytime, he is expected to work and earn his living as part of his mother&#8217;s household. If he has children with his wife, the wife raises the children with her household members (i.e. mother, sister, brother, mother&#8217;s brother). The man isn&#8217;t totally scott-free though, he has the duty of raising his sister&#8217;s children. Each household earns their own income. If the marriage breaks up for lack of love, there is no wealth or property to separate nor will their children experience any change in guardians. Fascinating.&nbsp;&nbsp;I could sense a little of the matriarchy by the way the young women behaved around men. They were friendly enough, but they also seemed a little on the haughty side. The young ones especially were conservative and didn&#8217;t commiserate with the men for too long.&nbsp;</div>
<div>&nbsp;</div>
<div><em>Muosuo girls dressed up for photos.</em></div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/muosuogirls.jpg"><img class="alignnone size-full wp-image-614" title="muosuogirls" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/muosuogirls.jpg" alt="" width="332" height="346" /></a></div>
<div>&nbsp;</div>
<div>Before we left Lake Lugu, we visited another small town, Luoshui, on the west side of the lake. Though more populated and commercialized, the scenery of the lake from here was even more beautiful than from Lige. I&#8217;m sure the sunrise here would have been fantastic! As I wandered around the shore, the locals were sitting in circles of a dozen people or so, playing cards and having a good time of it.&nbsp; Seemingly the best way to pass the time here&#8230;in a world where televisions and technology don&#8217;t mean much.</div>
<div>&nbsp;</div>
<div><em>Tibetan prayer culture is found around Lake Lugu.</em></div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/prayerwheel.jpg"><img class="alignnone size-full wp-image-615" title="prayerwheel" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/prayerwheel.jpg" alt="" width="341" height="397" /></a></div>
<div>&nbsp;</div>
<div>So there it is, the highlights of our trip to&nbsp;Yunnan. Hope you enjoyed it!</div>
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</div>
<div id=":1i1">&nbsp;</div>
]]></content:encoded>
			<wfw:commentRss>http://crystalchen.com/cc/yunnan-china-an-email-from-112806/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beijing Impressions &#8211; an email from 11/16/06</title>
		<link>http://crystalchen.com/cc/beijing-impressions-an-email-from-111606/</link>
		<comments>http://crystalchen.com/cc/beijing-impressions-an-email-from-111606/#comments</comments>
		<pubDate>Fri, 18 May 2012 06:11:49 +0000</pubDate>
		<dc:creator>Crystal</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://crystalchen.com/cc/?p=590</guid>
		<description><![CDATA[First Impressions of&#160;China I arrived in Beijing, like any foreigner, with strange ideas in my head about what life might be like in a Communist country. I had seen from photos on the internet how modern and capitalist the cities &#8230; <a href="http://crystalchen.com/cc/beijing-impressions-an-email-from-111606/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>First Impressions of&nbsp;China</strong></p>
<p>I arrived in Beijing, like any foreigner, with strange ideas in my head about what life might be like in a Communist country. I had seen from photos on the internet how modern and capitalist the cities had become, and yet, in my mind, from the many news reports I had read, I was sure the images I had seen were all &#8220;presented&#8221; and there would be destitution and despair just behind the facade.</p>
<div>And yet, my first impression of Beijing was very positive. Despite whatever may lay behind it, the first impression is always the first impression. The airport was incredibly modern and nothing less than of international standard. The highway to my university was smooth, well paved, and marked.&nbsp; It was lined with forests of tall and dignified trees, giving me a sense that things had always been this way. Signs were written in both English and Chinese. Even the campus of the Beijing Sport University looked clean, well-tended, and broad. My dorm room was very modern and clean, and the water which poured out from the modern bathroom was also hot and clean. Recalling all this in retrospect now, I&#8217;ve realized that this is exactly the first impression Beijing hopes all visitors will have arriving into the city, especially come 2008.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><strong>Daily Life</strong></div>
<div>&nbsp;</div>
<div>What do I see of daily life in Beijing? Construction on a primitive level is always taking place. Peasants in worn, street clothes wearing no helmets and sometimes no shoes are operating highly dangerous steel cutters. Construction is rarely taped off. I step away to avoid the embers falling on me.</div>
<div>&nbsp;</div>
<div>I never knew what a brick of coal looked like until&nbsp;China. I never had even an inkling of the concept of energy usage until seeing here it at its most basic level. An old man pulls a wooden cart. Inside there are a hundred neatly stacked black, cylindrical bricks of coal. He pulls the cart down the street and sells the bricks to his regular customers. They store the bricks in stacks just inside the entrance ways of their homes and businesses. I see the bricks used to heat large, black woks set up on the sidewalk, or in a man&#8217;s cart.&nbsp; From those woks they sell the sweet potatoes that I sometimes buy. For roasted chestnuts, coals ground to the size of gravel are put in the wok and heated. The chestnuts are added and the man uses his shovel to stir the coal. From what I have seen in all the cities I&#8217;ve visited all over&nbsp;China, coal is still a very important means for survival for many people.</div>
<div>&nbsp;</div>
<div><em>delivering coal on a gorgeous fall day. this guy is modern, he has a bicycle cart.</em></div>
<div><em><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/coal.jpg"><img class="alignnone size-full wp-image-591" title="coal" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/coal.jpg" alt="" width="360" height="288" /></a></em></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><em>chestnuts being sold in front of Beijing&#8217;s High Tech Park</em></div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/chestnuts.jpg"><img class="alignnone size-full wp-image-592" title="chestnuts" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/chestnuts.jpg" alt="" width="360" height="270" /></a></div>
<div>&nbsp;</div>
<div>I have developed the habit of always bargaining in&nbsp;China. Despite the fact that my lunches and dinners are between 3-5 RMB (40-60 cents) and taxi rides to the city are 25 RMB (3 US Dollars), I always feel the need ask for a fair price. In the shopping areas in Beijing, merchants will quote all customers (Chinese and foreign) a price that is between double and triple what the item really should cost. If you don&#8217;t bargain, they figure everyone is happy with the price, especially them! Haggling a little about the price is a protection measure for me, just something to make sure that, as a foreigner, they can&#8217;t pull the wool over me so easily.</div>
<div>&nbsp;</div>
<div>Smoking is rampant. When I am eating in a restaurant, a man is always smoking at the table next to me. Maybe four or five men are smoking at tables next to me. I can never taste what I am eating this way. The restaurant is always filled with smoke and the hostess must open the door at times to let the smoke out. When sleeping in the 2nd class trains, every 5 minutes, a man is smoking in the hallway and the entire train car smells of smoke. When I get home from the train station, my clothes smell like smoke. There is no avoiding second-hand smoke in&nbsp;China.</div>
<div>&nbsp;</div>
<div>The sound of men and women, young and old, hawking phlegm, fills the air. They spit it anywhere. I&#8217;ve learned to avoid stepping in the mucous-saliva puddles on the sidewalks. Men and women pick their noses in public, vigorously. If it is not pickable, they will cover one nostril with a finger and blow out their noses as hard as they can until the offending item ejects/sprays out of their nose and onto the sidewalk. Some will do this over a trashbin out of courtesy.</div>
<div>&nbsp;</div>
<div>But Beijingers, on the whole, are a simple group. They seek a simple, uncomplicated life. And in many respects, there is an innocence in their thoughts. They have the best intentions in mind. Why did the school clerk not give me a receipt for my purchase? Because he has it written down right there in his books of course! They don&#8217;t even imagine that things could be done otherwise; that they wouldn&#8217;t do the right thing. Maybe they believe that everyone else is doing the same. Is this their key to happiness?</div>
<div>&nbsp;</div>
<div>I have one, genuine Chinese friend. He is on track to be a gym teacher, but he actually wants to be a businessman. The other day, he texted me his excitement about having the opportunity to join the Communist Party. He sounded so happy. He said he was very lucky and would now have a chance at a better job in the future. After my initial reaction, I was able to wish him good luck. <em><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/cdorm.jpg"><img class="alignleft  wp-image-593" style="margin: 10px;" title="cdorm" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/cdorm.jpg" alt="" width="280" height="288" /></a></em>He, like all other undergraduates, lives in a dorm room smaller than mine with 5 other bunkmates. They have a shared bathroom for the whole floor and the shower facilities are in an entirely different building and run only during specific hours.</div>
<div>&nbsp;</div>
<div><em>typical BSU undergrad dorm</em></div>
<div>&nbsp;</div>
<div>I have my own bathroom and hot shower in my room and can stay up whenever I please; their lights go out at 11:30pm. When he&#8217;s online, he messages me from the desktop computer that&#8217;s inside his bed. His bunkmates also have computers installed at the foot of their beds. Seeing my condition compared to theirs, I felt too spoiled.&nbsp;</div>
<div>&nbsp;<a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/mdorm.jpg"><img class=" wp-image-594 " title="mdorm" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/mdorm.jpg" alt="" width="332" height="248" /></a></div>
<div><em>My BSU International Student dorm</em></div>
<div>&nbsp;</div>
<div>International students here. We are placed in our own dorms, taking our own classes in a separate building, and not informed of the university functions. Life for the Chinese students is not interrupted by our presence. It is likely the same situation for many international students in many universities around the world. I suppose some students enjoy the comfort and safety this provides; whereas, I am only chagrined at the lack of immersion. When living in a foreign country, I enjoy actively adapting to become one of the locals.&nbsp;China&nbsp;is the first country where I could not nor had the desire to do this. Sadly, for this reason, after 3 months of living here, I could not tap into this culture. I don&#8217;t understand, even on an intuitive level, how the Chinese people think and feel. In other countries, my lack of language ability did not hinder my ability to sense/pick-up the general vibe, but here, I feel I have nothing to grab on to.</div>
<div>&nbsp;</div>
<div>Maybe the bleak, cold weather has affected my thoughts, but I can only guess they are thinking, &#8220;At every corner, everywhere I go, it is easy to see hardship. Best to do what is necessary to improve one&#8217;s condition. I don&#8217;t want to work all day for 60 RMB.&#8221;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><em>a common vegetable market in Anhui province</em></div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/vegmkt.jpg"><img class="wp-image-595 alignnone" title="vegmkt" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/vegmkt.jpg" alt="" width="343" height="257" /></a></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><em>a common crowd getting on Platform 6 for the train from Beijing to Hangzhou</em></div>
<div><em><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/train.jpg"><img class="wp-image-596 alignleft" title="train" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/train.jpg" alt="" width="428" height="257" /></a></em></div>
]]></content:encoded>
			<wfw:commentRss>http://crystalchen.com/cc/beijing-impressions-an-email-from-111606/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>South India: how to eat &#8211; a leaf, your hand, and love</title>
		<link>http://crystalchen.com/cc/how-to-eat/</link>
		<comments>http://crystalchen.com/cc/how-to-eat/#comments</comments>
		<pubDate>Fri, 18 May 2012 05:00:22 +0000</pubDate>
		<dc:creator>Crystal</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://crystalchen.com/cc/?p=577</guid>
		<description><![CDATA[Hi everyone, Another installment, so soon I know.&#160; It&#8217;s only&#160;a&#160;matter of time before I forget most of the details, so I thought I had better geta&#160;move on in sharing it with you folks!&#160; &#160; Crystal &#160; Eat, Drink,&#160;and&#160;do Mehndi &#160; &#8230; <a href="http://crystalchen.com/cc/how-to-eat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000000;">Hi everyone,</span></p>
<div><span style="color: #000000;">Another installment, so soon I know.&nbsp; It&#8217;s only&nbsp;a&nbsp;matter of time before I forget most of the details, so I thought I had better geta&nbsp;move on in sharing it with you folks!&nbsp;</span></div>
<div>&nbsp;</div>
<div>Crystal</div>
<div>&nbsp;</div>
<div><strong><span style="color: #1c571b;">Eat, Drink,&nbsp;and&nbsp;do Mehndi</span></strong></div>
<div>&nbsp;</div>
<div>My increasing sensitivity to wasteful consumption is&nbsp;a&nbsp;result of the vegetarian diet I have been following for the past two years, that I know for sure. The practice has essentially opened&nbsp;a&nbsp;small, rare window through which I can glimpse&nbsp;a&nbsp;different scene from the immediate reality,&nbsp;a&nbsp;scene which yields&nbsp;a&nbsp;more personal understanding of the vast, vast amount of the Earth&#8217;s resources&nbsp;and&nbsp;creatures destroyed in order to satisfy such an inconsequential thing as the tastebud. Somewhere in the Bhagavad Gita (one of India&#8217;s ancient texts), it talks of taste being the most uncontrollable of the 5 senses of the material world. I am beginning to agree. What ordinary person can resist the offer of&nbsp;a&nbsp;glass of wine,&nbsp;a&nbsp;barbequed steak,&nbsp;and&nbsp;chocolate cake? But I digress. All of this leads to the actual topic: how I came to appreciate the earthy, ingenius, compassionate, simplicity of the Indian way of partaking food.</div>
<div>&nbsp;</div>
<div>It all began with the&nbsp;leaf.&nbsp; The &#8216;aak&#8217; as I learned it is called;&nbsp;a&nbsp;large, fresh green banana&nbsp;leaf&nbsp;cut cleanly to the size of&nbsp;a&nbsp;place setting. It is placed right on one&#8217;s table or on&nbsp;a&nbsp;steel plate. The aak is used in all dining occassions, from&nbsp;a&nbsp;casual meal at&nbsp;a&#8217;hotel&#8217; (the Indian term for restaurant) to&nbsp;a&nbsp;sumptuous wedding banquet. Once placed in front of you, the general practice is that you take water from the cup, pour it into&nbsp;your&nbsp;cupped&nbsp;hand,&nbsp;and&nbsp;sprinkle the water over the aak to cleanse it. Use the fingers to rub the water about the aak, then hold up the aak&nbsp;and&nbsp;let the excess run off on to the table.</div>
<div>&nbsp;</div>
<div>This is&nbsp;your&nbsp;plate.</div>
<div>&nbsp;<a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/aak.jpg"><img class="alignnone size-full wp-image-578" title="aak" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/aak.jpg" alt="" width="389" height="246" /></a></div>
<div>&nbsp;</div>
<div>Completely biodegradeable, beautiful, natural, still vibrating with the energy of life. From&nbsp;a&nbsp;reiki standpoint, this is important. And&nbsp;from an economic standpoint, no need for dishwashing. Scrap the hired dishwashers, pass the savings onto the customer. Krishna, an important Hindu god, asked his devotees to offer him&nbsp;a&nbsp;leaf,&nbsp;a&nbsp;fruit,&nbsp;a&nbsp;flower,&nbsp;and&nbsp;some water&#8230; so, it seems to go with the overall Indian psyche to have one&#8217;s meal on&nbsp;a&nbsp;leaf.</div>
<div>&nbsp;</div>
<div><em>the aak on&nbsp;a&nbsp;steel plate</em></div>
<div><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/plate.jpg"><img class="size-full wp-image-579" title="plate" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/plate.jpg" alt="" width="512" height="135" /></a></div>
<div>&nbsp;</div>
<div><strong>Your&nbsp;utenstils:&nbsp;your&nbsp;fingers</strong></div>
<div>&nbsp;</div>
<div>During mealtime at the Krishna temple, I would sometimes see some of the more &#8220;hardcore&#8221; devotees neglecting their spoons and&nbsp;eating with their right&nbsp;hand, the fingers becoming&nbsp;a&nbsp;gooey mess. This was natural for them; it was I who was out of place with my sterile plastic spoon. After some tries, I adapted&nbsp;and&nbsp;became comfortable using my right&nbsp;hand&nbsp;to eat the temple food. Thank God I did.&nbsp;Everyone in India eats with their hands. It is not&nbsp;a&nbsp;novelty gesture or an old custom or what not. No one thinks twice about it; this is just how to eat.&nbsp;The practice is to use&nbsp;your&nbsp;fingers to blend the curries in with the plain rice (and blend it well, I say!). Scoop&nbsp;a&nbsp;parcel of it to the mouth,&nbsp;and&nbsp;with&nbsp;a&nbsp;quick push of the thumb, you can consume it quickly&nbsp;and&nbsp;cleanly.&nbsp; I felt now, how many Americans feel when they are with&nbsp;a&nbsp;family of Asian descent at&nbsp;a&nbsp;Chinese restaurant. No one in the family thinks twice about using chopsticks, but to the non-Asian, it&#8217;s jarringly unfamiliar.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;<a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/hands.jpg"><img class="alignleft size-full wp-image-580" title="hands" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/hands.jpg" alt="" width="352" height="265" /></a>Food from&nbsp;hand&nbsp;to mouth. No need to cut down acres of bamboo, no need to mold tons of plastics or smelt metal. The body&#8217;s energy can interact with the food before it has even entered the body&#8217;s system.&nbsp;And&nbsp;the sticky fingers? All eating areas seem to have&nbsp;a&nbsp;conveniently located niche in the main room called the&nbsp;Hand&nbsp;Wash. Or, if you do not want to get up, pouring water from the steel cup over&nbsp;your&nbsp;fingers&nbsp;and&nbsp;into&nbsp;a&nbsp;dish is fine too.</div>
<div>&nbsp;</div>
<div><strong><span style="color: #481a54;">First Evening</span></strong></div>
<div>&nbsp;</div>
<div>My first evening at the bride&#8217;s house in Bangalore, the aunties, children, bride&nbsp;and&nbsp;I were all sitting about the 2nd floor room having mehndi applied to our hands by two professional mehndi artists, one solely for the bride,&nbsp;and&nbsp;one for the rest of us. The boys, no older than 10, were jumping about&nbsp;and&nbsp;the the girls, of the same age range, were sitting together talking amongst themselves. One of the aunties, Tanuja, arrived in the room with&nbsp;a&nbsp;vat of what looked like pongal, soft rice flavored with spices. The children gathered round as she began to take the rice in her one&nbsp;hand&nbsp;and&nbsp;press it in such&nbsp;a&nbsp;way that it went from being&nbsp;a&nbsp;sticky glob to becoming&nbsp;a&nbsp;smooth, rounded egg of rice. The children would come from here&nbsp;and&nbsp;there, open their mouths,&nbsp;and&nbsp;she would pop the rice &#8220;eggs&#8221; into their mouths. Once&nbsp;a&nbsp;child finished his/her first mouthful, he/she would approach again&nbsp;and&nbsp;Tanuja would place another fresh-made egg into his mouth. I was fascinated by it all. It reminded me of the way&nbsp;a&nbsp;bird regurgitates her food&nbsp;and&nbsp;offers it to her peeping chicks in the nest. It struck me as such an endearing practice, food from&nbsp;hand&nbsp;to mouth. My only conception prior to this of how to feed&nbsp;a&nbsp;6-year-old child, if one even did feed&nbsp;a&nbsp;6-year-old child, was with&nbsp;a&nbsp;spoon or fork. This method was infinitely more intimate; perhaps one of the thousands of ways in which the close bonds of the Indian family are created.</div>
<p><strong>Mehndi Time</strong></p>
<div>
<p><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/arms.jpg"><img class="size-full wp-image-581 alignnone" title="arms" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/arms.jpg" alt="" width="380" height="307" /></a></p>
<p>The application of mehndi by the artist took about 10 minutes per person. In speaking with her, she said she began the practice 8 years ago; she also mentioned that it is something she never tires of. If the mehndi appeared too dry, we dabbed sugar water on it to dampen it so that it could continue to stain the skin. I was told I should sleep that night with the mehndi on my hands, after which I could wash it off in the morning&nbsp;and&nbsp;apply Vicks Vapor Rub on my hands to help it set. The bride&#8217;s mehndi, however, was applied on her forearms&nbsp;and&nbsp;feet as well as her hands. Her pattern was intensely intricate&nbsp;and&nbsp;her mehndi process took well over two hours.&nbsp;</p>
</div>
<div><em></em>With nothing to do but wait until everyone had their mehndi applied, I decided to engage the children by asking how to count to 10 in Telugu, one of the main local languages of Karnataka state. Suddenly, the boys&nbsp;and&nbsp;girls all began to crowd around me, teaching me the numbers&nbsp;and&nbsp;telling me how many numbers they knew. &#8220;I can count to 60 in Telugu!&#8221; proclaimed one boy. &#8220;I can count to 100!&#8221;, claimed another. From numbers, they moved on to talk of snakes&nbsp;and&nbsp;told fantastic stories. Each child was so excited to have his/her chance to speak that they sometimes began to speak before the other was done. It was as if, finally, an adult was listening to what they had to say.&nbsp;And&nbsp;they had plenty to talk about: animals, ghosts, their favorite Hindu gods (I enjoyed that particular conversation immensely). I began to become aware of the range of intellect among them. One small boy in particular was able to express himself more eloquently than the average American adult I thought.</div>
<div>&nbsp;</div>
<div>By now it was nearly 10 o&#8217; clock&nbsp;and, save the bride, we all (about 7 aunties&nbsp;and&nbsp;10 kids) had mehndi on our palms. Even the boys had some on their left palms just for fun. I was called down to dinner,&nbsp;and, not having the use of my hands, an auntie I had never met before offered to&nbsp;hand-feed me with&nbsp;a&nbsp;spoon. I accepted the offer thinking about the&nbsp;hand-to-mouth practice I had seen earlier. Even when my memories began at two years of age, I have no recollection of having been fed by my mother or my aunties. The children in India, from what I had seen, will have clear memories of this. Despite looking completely ridiculous, I experienced the doting&nbsp;love&nbsp;that came with being fed by an Indian mother.</div>
<div>&nbsp;</div>
<div>
<div class="mceTemp">
<dl id="attachment_582" class="wp-caption alignnone" style="width: 308px;">
<dt class="wp-caption-dt"><a href="http://crystalchen.com/cc/wp-content/uploads/2012/05/mehndi.jpg"><img class="size-full wp-image-582" title="mehndi" src="http://crystalchen.com/cc/wp-content/uploads/2012/05/mehndi.jpg" alt="" width="298" height="376" /></a>the results of my mehndi night</dt>
</dl>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://crystalchen.com/cc/how-to-eat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assignment 2: Rainbow.java</title>
		<link>http://crystalchen.com/cc/assignment-2-rainbow-java/</link>
		<comments>http://crystalchen.com/cc/assignment-2-rainbow-java/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 03:17:42 +0000</pubDate>
		<dc:creator>Crystal</dc:creator>
				<category><![CDATA[Studies]]></category>

		<guid isPermaLink="false">http://crystalchen.com/cc/?p=512</guid>
		<description><![CDATA[&#160; /*&#160;* File: Rainbow.java&#160;* ------------------&#160;* This program displays a rainbow by adding consecutively&#160;* smaller circles to the canvas using an array. &#160;*/&#160;import java.awt.Color;&#160;import acm.graphics.GOval;import acm.graphics.GRect;import acm.program.*;&#160;public class Rainbow extends GraphicsProgram &#123;&#160; public static final int SUN_RADIUS = 80; public static &#8230; <a href="http://crystalchen.com/cc/assignment-2-rainbow-java/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://crystalchen.com/cc/wp-content/uploads/2011/11/rainbow1.png"><img class="alignnone size-full wp-image-522" title="rainbow" src="http://crystalchen.com/cc/wp-content/uploads/2011/11/rainbow1.png" alt="" width="755" height="515" /></a>&nbsp;</p>
<p><!--DEVFMTCODE--><pre class="devcodeblock" title="Java"><div class="devcodeoverflow"><ol><li><span style="color: #666666; font-style: italic;">/*</span></li><li><span style="color: #666666; font-style: italic;">&nbsp;* File: Rainbow.java</span></li><li><span style="color: #666666; font-style: italic;">&nbsp;* ------------------</span></li><li><span style="color: #666666; font-style: italic;">&nbsp;* This program displays a rainbow by adding consecutively</span></li><li><span style="color: #666666; font-style: italic;">&nbsp;* smaller circles to the canvas using an array. </span></li><li><span style="color: #666666; font-style: italic;">&nbsp;*/</span></li><li>&nbsp;</li><li><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.Color</span><span style="color: #339933;">;</span></li><li>&nbsp;</li><li><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">acm.graphics.GOval</span><span style="color: #339933;">;</span></li><li><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">acm.graphics.GRect</span><span style="color: #339933;">;</span></li><li><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">acm.program.*</span><span style="color: #339933;">;</span></li><li>&nbsp;</li><li><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Rainbow <span style="color: #000000; font-weight: bold;">extends</span> GraphicsProgram <span style="color: #009900;">&#123;</span></li><li>&nbsp;</li><li> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> SUN_RADIUS <span style="color: #339933;">=</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">;</span></li><li> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> BAND_WIDTH <span style="color: #339933;">=</span> <span style="color: #cc66cc;">20</span><span style="color: #339933;">;</span></li><li> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> RAINBOW_OVERHANG <span style="color: #339933;">=</span> <span style="color: #cc66cc;">380</span><span style="color: #339933;">;</span></li><li> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> RAINBOW_OFFSET <span style="color: #339933;">=</span> <span style="color: #cc66cc;">150</span><span style="color: #339933;">;</span></li><li>&nbsp;</li><li> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> run<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></li><li>&nbsp;</li><li><span style="color: #666666; font-style: italic;">// Creating a sky with a GRect method</span></li><li>&nbsp;</li><li> drawSky <span style="color: #009900;">&#40;</span><span style="color: #003399;">Color</span>.<span style="color: #006633;">CYAN</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li>&nbsp;</li><li><span style="color: #666666; font-style: italic;">// Creating a sky with a GOval method</span></li><li><span style="color: #666666; font-style: italic;">// drawCircle (220, 220, 510, Color.CYAN);</span></li><li>&nbsp;</li><li> <span style="color: #003399;">Color</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> colors <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #003399;">Color</span>.<span style="color: #006633;">RED</span>, <span style="color: #003399;">Color</span>.<span style="color: #006633;">ORANGE</span>, <span style="color: #003399;">Color</span>.<span style="color: #006633;">YELLOW</span>, <span style="color: #003399;">Color</span>.<span style="color: #006633;">GREEN</span>, <span style="color: #003399;">Color</span>.<span style="color: #006633;">BLUE</span>, <span style="color: #003399;">Color</span>.<span style="color: #006633;">MAGENTA</span>, <span style="color: #003399;">Color</span>.<span style="color: #006633;">CYAN</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></li><li>&nbsp;</li><li> <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>colors.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></li><li>&nbsp;</li><li> drawCircle <span style="color: #009900;">&#40;</span>getWidth<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span>, getHeight<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> RAINBOW_OFFSET, <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>getWidth<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>RAINBOW_OVERHANG<span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">*</span>BAND_WIDTH<span style="color: #009900;">&#41;</span>, colors<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li>&nbsp;</li><li> <span style="color: #009900;">&#125;</span></li><li>&nbsp;</li><li><span style="color: #666666; font-style: italic;">// Creating a cute, little sun in the corner using the GOval method</span></li><li>&nbsp;</li><li> drawCircle <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, SUN_RADIUS, <span style="color: #003399;">Color</span>.<span style="color: #006633;">YELLOW</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li>&nbsp;</li><li> <span style="color: #009900;">&#125;</span></li><li>&nbsp;</li><li> <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> drawCircle<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> x, <span style="color: #000066; font-weight: bold;">int</span> y, <span style="color: #000066; font-weight: bold;">int</span> r, <span style="color: #003399;">Color</span> acolor<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> </li><li>&nbsp;</li><li> GOval myCircle <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GOval<span style="color: #009900;">&#40;</span>x<span style="color: #339933;">-</span>r, y<span style="color: #339933;">-</span>r, r<span style="color: #339933;">*</span><span style="color: #cc66cc;">2</span>, r<span style="color: #339933;">*</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li> myCircle.<span style="color: #006633;">setFilled</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li> myCircle.<span style="color: #006633;">setColor</span><span style="color: #009900;">&#40;</span>acolor<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li> add <span style="color: #009900;">&#40;</span>myCircle<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </li><li>&nbsp;</li><li> <span style="color: #009900;">&#125;</span></li><li>&nbsp;</li><li> <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> drawSky<span style="color: #009900;">&#40;</span><span style="color: #003399;">Color</span> skycolor<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></li><li>&nbsp;</li><li> GRect mySky <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GRect<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, getWidth<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, getHeight<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li> mySky.<span style="color: #006633;">setFilled</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li> mySky.<span style="color: #006633;">setColor</span><span style="color: #009900;">&#40;</span>skycolor<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li> add <span style="color: #009900;">&#40;</span>mySky<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li> <span style="color: #009900;">&#125;</span></li><li>&nbsp;</li><li><span style="color: #009900;">&#125;</span></li><li></li></ol></div></pre><!--END_DEVFMTCODE--></p>
]]></content:encoded>
			<wfw:commentRss>http://crystalchen.com/cc/assignment-2-rainbow-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Brick Pyramid</title>
		<link>http://crystalchen.com/cc/500/</link>
		<comments>http://crystalchen.com/cc/500/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 18:06:46 +0000</pubDate>
		<dc:creator>Crystal</dc:creator>
				<category><![CDATA[Studies]]></category>

		<guid isPermaLink="false">http://crystalchen.com/cc/?p=500</guid>
		<description><![CDATA[/*&#160;* File: Pyramid.java&#160;* ------------------&#160;* This program is a stub for the Pyramid problem, which draws&#160;* a brick pyramid.&#160;*/&#160;import acm.graphics.*;import acm.program.*;&#160;public class Pyramid extends GraphicsProgram &#123;&#160;//create constants for the brick width, brick height, and the number of //bricks in the base &#8230; <a href="http://crystalchen.com/cc/500/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><!--DEVFMTCODE--><pre class="devcodeblock" title="Java"><div class="devcodeoverflow"><ol><li><span style="color: #666666; font-style: italic;">/*</span></li><li><span style="color: #666666; font-style: italic;">&nbsp;* File: Pyramid.java</span></li><li><span style="color: #666666; font-style: italic;">&nbsp;* ------------------</span></li><li><span style="color: #666666; font-style: italic;">&nbsp;* This program is a stub for the Pyramid problem, which draws</span></li><li><span style="color: #666666; font-style: italic;">&nbsp;* a brick pyramid.</span></li><li><span style="color: #666666; font-style: italic;">&nbsp;*/</span></li><li>&nbsp;</li><li><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">acm.graphics.*</span><span style="color: #339933;">;</span></li><li><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">acm.program.*</span><span style="color: #339933;">;</span></li><li>&nbsp;</li><li><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Pyramid <span style="color: #000000; font-weight: bold;">extends</span> GraphicsProgram <span style="color: #009900;">&#123;</span></li><li>&nbsp;</li><li><span style="color: #666666; font-style: italic;">//create constants for the brick width, brick height, and the number of </span></li><li><span style="color: #666666; font-style: italic;">//bricks in the base of the pyramid</span></li><li>&nbsp;</li><li>	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> BRICK_WIDTH <span style="color: #339933;">=</span> <span style="color: #cc66cc;">30</span><span style="color: #339933;">;</span></li><li>	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> BRICK_HEIGHT <span style="color: #339933;">=</span> <span style="color: #cc66cc;">12</span><span style="color: #339933;">;</span></li><li>	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> BRICKS_IN_BASE <span style="color: #339933;">=</span> <span style="color: #cc66cc;">12</span><span style="color: #339933;">;</span></li><li>&nbsp;</li><li>	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> run<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></li><li>&nbsp;</li><li>		<span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span>BRICKS_IN_BASE<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></li><li>&nbsp;</li><li>			drawRowOfBricks<span style="color: #009900;">&#40;</span></li><li>&nbsp;</li><li>				<span style="color: #009900;">&#40;</span>getWidth<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span>BRICK_WIDTH<span style="color: #339933;">*</span><span style="color: #009900;">&#40;</span>BRICKS_IN_BASE<span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span>,</li><li>				<span style="color: #009900;">&#40;</span>i<span style="color: #339933;">*</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>BRICK_HEIGHT<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span>BRICK_HEIGHT,</li><li>				BRICKS_IN_BASE<span style="color: #339933;">-</span>i</li><li>&nbsp;</li><li>			<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li>&nbsp;</li><li>		<span style="color: #009900;">&#125;</span></li><li>	<span style="color: #009900;">&#125;</span></li><li>&nbsp;</li><li>	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> drawBrick<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> x, <span style="color: #000066; font-weight: bold;">int</span> y, <span style="color: #000066; font-weight: bold;">int</span> brick_width, <span style="color: #000066; font-weight: bold;">int</span> brick_height<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> </li><li>&nbsp;</li><li>		GRect myBrick <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GRect<span style="color: #009900;">&#40;</span>x, y, brick_width, brick_height<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li>		add <span style="color: #009900;">&#40;</span>myBrick<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </li><li>&nbsp;</li><li>	<span style="color: #009900;">&#125;</span></li><li>&nbsp;</li><li>	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> drawRowOfBricks<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> x, <span style="color: #000066; font-weight: bold;">int</span> y, <span style="color: #000066; font-weight: bold;">int</span> numOfBricks<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></li><li>&nbsp;</li><li>		<span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span>numOfBricks<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span></li><li>&nbsp;</li><li>			drawBrick<span style="color: #009900;">&#40;</span>x<span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">*</span>BRICK_WIDTH<span style="color: #009900;">&#41;</span>, y<span style="color: #339933;">+</span>getHeight<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, BRICK_WIDTH, BRICK_HEIGHT<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li>&nbsp;</li><li>	<span style="color: #009900;">&#125;</span></li><li>&nbsp;</li><li><span style="color: #009900;">&#125;</span></li><li></li></ol></div></pre><!--END_DEVFMTCODE--></p>
<p><a href="http://crystalchen.com/cc/wp-content/uploads/2011/10/pyramid.png"><img class="alignnone size-full wp-image-504" title="pyramid" src="http://crystalchen.com/cc/wp-content/uploads/2011/10/pyramid.png" alt="pyramid" width="755" height="515" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://crystalchen.com/cc/500/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

