<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6705973982656162350</id><updated>2012-01-30T05:36:31.175-07:00</updated><category term='Microsoft'/><category term='Technology'/><category term='FixIt'/><category term='Nokia'/><category term='Thai'/><category term='Review'/><category term='David Silver'/><category term='NS2'/><category term='Correction'/><category term='Windows'/><category term='Security'/><category term='general'/><category term='Latex'/><category term='Mira Kirshenbaum'/><category term='Google'/><category term='Programming'/><category term='Summary'/><category term='Business'/><category term='David Kirkpatrick'/><category term='Maps'/><category term='Gaston Leroux'/><category term='AIT09'/><category term='Mac'/><category term='Software'/><category term='Lifestyle'/><category term='Bernhard Schlink'/><category term='Dalai Lama'/><category term='Leonard Mlodinow'/><category term='Books'/><title type='text'>Teerawat Issariyakul</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default?start-index=101&amp;max-results=100'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>133</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-5972666236920322926</id><published>2012-01-30T05:35:00.001-07:00</published><updated>2012-01-30T05:36:31.186-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Review'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Gaston Leroux'/><title type='text'>[Book Review] The Phantom of the Opera   by Gaston Leroux</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=as1&amp;amp;asins=1612930549&amp;amp;ref=qf_sp_asin_til&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 240px; width: 120px;"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;b style="font-weight: bold;"&gt;Rating:&amp;nbsp;&lt;/b&gt;3/5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b style="font-weight: bold;"&gt;&lt;b&gt;Genre:&lt;/b&gt;&amp;nbsp;&lt;/b&gt;Novel&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;Book Review&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-weight: 800;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div class="p1"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Most of us probably heard of “The Phantom of the Operas”. It is reproduced over and over again in various form. I first saw it in the broadway musical produced by Andrew Loyd Webber. Then I saw it again, when hollywood made it in the movie form. And, this is my third time. This time is in book, audiobook.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="s1"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;As in other novel, the book is more elaborated. It contains a lot of details which is left out by musicals or movies. Also some parts, some important parts, are quite different from the musical and movie production. It is interesting. But I find it quite difficult to follow (esp. for non-native speaker), because it contains so many Theatrical terminology. But it &amp;nbsp;was alright. On the average, I enjoyed it.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="s1"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;I’ve got the audiobook copy narrated by Barrett Whitener. At the beginning, it sounds a bit dull and uninteresting. But I get used to it pretty soon. He made sounds for male and female. It's pretty funny at the beginning. But again, I get used to it pretty soon.&lt;/div&gt;&lt;/div&gt;&lt;ol&gt;&lt;/ol&gt;&lt;div&gt;&lt;div style="font-weight: bold;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;b&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;Table of Contents (and the chapter marks on the audiobook version)&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Prologue&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter I: Is it the Ghost? (11.50)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter II: The New Margarita (32.35)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter III: The Mysterious Reason (54.20)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter IV: Box Five (1.11.00)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter V: The Enchanted Violin (1.39.40)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter VI: A Visit to Box Five (2.17.05)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter VII: Faust and What Followed (2.23.15)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter VIII: The Mysterious Brougham (2.52.16)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter IX: At the Masked Ball (3.09.30)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter X: Forget the Name of the Man's Voice (3.31.45)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XI: Above the Trap-Doors (3.42.58)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XII: Apollo's Lyre (4.00.00)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XIII: A Master-Stroke of the Trap-Door Lover (4.46.39)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XIV: The Singular Attitude of a Safety-Pin (5.09.50)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XV: Christine! Christine! (5.22.10)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XVI: Mme. Giry's Astounding Revelations as to Her Personal Relations with the Opera Ghost??? (5.30.42)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XVII: The Safety-Pin Again (5.54.01)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XVIII: The Commissary, The Viscount and the Persian (6.06.45)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XIX: The Viscount and the Persian (6.17.41)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XX: In the Cellars of the Opera (6.30.47)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XXI: Interesting and Instructive Vicissitudes of a Persian in the Cellars of the Opera (7.02.05)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XXII: In the Torture Chamber (7.31.41)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XXIII: The Tortures Begin (7.46.51)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XXIV: Barrels!...Barrels!...Any Barrels to Sell?" (8.00.45)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XXV: The Scorpion or the Grasshopper: Which? (8.24.02)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Chapter XXVI: The End of the Ghost's Love Story (8.40.27)&lt;/span&gt;&lt;/li&gt;&lt;li style="font: 12.0px Tahoma; margin: 0.0px 0.0px 5.0px 0.0px;"&gt;&lt;span style="letter-spacing: 0px;"&gt;Epilogue: The Paris Opera House (9.01.55)&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;b&gt;---------------------------------------------------------------------------------------------------------&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;a href="http://1.bp.blogspot.com/-eniIkTBUAW0/S7YzxXMm6_I/AAAAAAAAAF0/jQ8o15T_JAY/s1600/audible+-+freeTrial.png" imageanchor="1" style="clear: left; float: left; font-weight: bold; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://1.bp.blogspot.com/-eniIkTBUAW0/S7YzxXMm6_I/AAAAAAAAAF0/jQ8o15T_JAY/s200/audible+-+freeTrial.png" style="cursor: move;" width="200" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Personally, I prefer audiobooks. It's fun, and I can listen when I'm doing something else. It also makes other activities (e.g., jogging) a lot more fun. For more detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this post&lt;/a&gt;].&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;There is one more reason that may encourage you to go for the audiobook version. You can&amp;nbsp;&lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt;&amp;nbsp;now for FREE. Audible offers you a free trial for 14 days. Even if you get the book and cancel the subscription right away (so that you don't have to pay), you can keep the book. And, don't worry if you lost the audiobook file. Just log into audible.com. You can keep downloading the over and over again.&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-JP5BFLCRCUA/TyaNwOiJ8pI/AAAAAAAAAN0/-nDQMiQLf6w/s1600/PhantomOfTheOpera.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-JP5BFLCRCUA/TyaNwOiJ8pI/AAAAAAAAAN0/-nDQMiQLf6w/s320/PhantomOfTheOpera.jpg" width="188" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;i&gt;&lt;br /&gt;About the summary: It takes time to finish up a book. And, when you do, sometimes, you want to review what you learn from the book. If you do not make&amp;nbsp; notes as you read, you might have to go through the book once again. This can be time-consuming when you are dealing with a book. But you can still flip through the book and locate what you are looking for.&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to locate a specific part of content. Most likely you will have to listen to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting examples and case studies, not included here. Reading the original book would be much more entertaining and enlightening. If you like the summary, you may want to get the original from the source below.&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-5972666236920322926?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/5972666236920322926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=5972666236920322926' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5972666236920322926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5972666236920322926'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2012/01/book-review-phantom-of-opera-by-gaston.html' title='[Book Review] The Phantom of the Opera   by Gaston Leroux'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-eniIkTBUAW0/S7YzxXMm6_I/AAAAAAAAAF0/jQ8o15T_JAY/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-3474013269073618482</id><published>2011-11-05T12:44:00.001-06:00</published><updated>2011-11-05T12:46:14.569-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>In Year 2021</title><content type='html'>Remember, a Day Made Of Glass? It's the vision of Corning, a company which manufactures specialty glass and ceramics.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This time it's Microsoft. Let's see Microsoft's vision for year 2021.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://1.gvt0.com/vi/a6cNdhOKwi0/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/a6cNdhOKwi0&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266"  src="http://www.youtube.com/v/a6cNdhOKwi0&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Well, at least cars still run on tire...&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;I have one favor to ask. Talk to me. Tell me which technology is your favorite :)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;If you are interested in Corning's video, here it is:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://3.gvt0.com/vi/6Cf7IL_eZ38/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/6Cf7IL_eZ38&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266"  src="http://www.youtube.com/v/6Cf7IL_eZ38&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-3474013269073618482?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/3474013269073618482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=3474013269073618482' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/3474013269073618482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/3474013269073618482'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/11/in-year-2021.html' title='In Year 2021'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-114336668612217144</id><published>2011-10-17T07:49:00.000-06:00</published><updated>2011-10-17T07:49:10.749-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Review'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Mira Kirshenbaum'/><title type='text'>[Book Review] Too Good to Leave, Too Bad to Stay by Mira Kirshenbaum</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=as1&amp;amp;asins=0452275350&amp;amp;ref=qf_sp_asin_til&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 240px; width: 120px;"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;b style="font-weight: bold;"&gt;Rating: &lt;/b&gt;3.5/5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b style="font-weight: bold;"&gt;&lt;b&gt;Genre:&lt;/b&gt;&amp;nbsp;&lt;/b&gt;Non-fiction&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;Book Review&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-weight: 800;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;Do you know the term “Relationship ambivalence”? It is a state where you feel that your relationship is too good to leave, and, at the same time, you also feel that your relationship is too bad to stay. You feel like screwed up if you make either of the choices. So you don’t decide. You leave it to fate. You wait for the sign to tell you what to do. It may take months, years, or even decades for that sign to come. When the sign came, you’d ask yourself, why did’t I see this coming?, why have I waited for so long?,...&lt;/span&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;On the other hand, if might find the sign which convince you that your relation ship is too good to leave. And again, when the sign comes, you'd ask yourself, &amp;nbsp;why have I had to live with uneasy feeling, when the only problems in my relationship are so little and trivial and there is nothing fundamentally wrong with my relationship.&lt;/span&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;One of the reasons is that we tend to use balance scale to weigh pros and cons and then make decision. The problem is that pros and cons are constantly moving and very subjective. You’d feel like you need forever to make the decision. This book, on the other hand, takes the doctor approach. It’s like when you go to see a doctor. The doctor asks you diagnosis questions, and tell you what’s wrong with you (e.g., fever, migraine). This book contains 34 diagnosis questions, that will help you understand whether your relationship is too good to leave or too bad to stay. At the end of the book, the authors provides you with further recommended reading for either of your choice.&amp;nbsp; So you might not just find a way of your relationship ambivalence, but you might also know what to do after you make such the decision.&lt;br /&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;I found this book, when my relationship is kind of iffy. I'm not sure if I found my answer by reading this book. But my relationship got better before I finish the reading. It could be because of the book. But it could also be because the relationship got better by itself. Anyway, I continued reading to the end of the book.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;Overall, I found this book useful and interesting. It contains a lot of case studies, which make the book even more interesting. But it wasn’t that gripping. It’s&amp;nbsp; not the book that I can’t put it down and have to keep on reading.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;span class="s1"&gt;The Audiobook version of this book is narrated by Adriane McNeely. Her narration is nice, but again not to the degree that keep me so engaged that I can’t put it down. So on the average, this book is ok. It is a fine book and worth listening.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;span class="s1"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;span class="s1"&gt;One last nice thing about this book is that all chapters are named after song titles. For example, "All the things you are" (Chapter10) is a song from the musical "Very Warm for May". "If Ever I Should Leave You" (Chapter13) is a song from the musical "Camelot". I find this little things pretty nice and interesting.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;b&gt;&lt;b&gt;&lt;br /&gt;&lt;b&gt;Takeaways&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Relationship ambivalence makes you feel both too good to leave and too bad to stay at the same time. Avoid it. It’s just a waste of time and spiritual energy.&lt;/li&gt;&lt;li&gt;Balance scale approach is not good for every scenario in life, and definitely not for resolving relationship ambivalence. Doctor approach which asks diagnostic questions seem to work better.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;div style="font-weight: bold;"&gt;&lt;b&gt;&lt;b&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;Table of Contents&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;I. The Problem&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Chapter 1. Is You Is or Is you Ain’t My Baby?&lt;/li&gt;&lt;li&gt;Chapter 2. Dancing in the Dark&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Relationship Ambivalence&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;II: Solution&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Chapter 3. Enough Is Enough&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;Issue: Danger Signs&lt;/li&gt;&lt;li&gt;Chapter 4. It’s Too Late, Baby&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: If You’ve Already Decided to Leave&lt;/li&gt;&lt;li&gt;Chapter 5. Let’s Do It, Let’s Fall in Love&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Preconditions for Love&lt;/li&gt;&lt;li&gt;Chapter 6. You’ve Got a Hold on Me&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Power--When the Other Person Is Bossy,&lt;br /&gt;&amp;nbsp;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Controlling, Domineering, Overwhelming, ...&lt;/li&gt;&lt;li&gt;Chapter 7. Talk to Me&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Communication&lt;/li&gt;&lt;li&gt;Chapter 8. What Is This Thing Called Love?&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Is There Real Love Left?&lt;/li&gt;&lt;li&gt;Chapter 9. It Don’t Mean a Thing If It Ain’t Got That Swing&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Sex and Physical Affection&lt;/li&gt;&lt;li&gt;Chapter 10. All the Things You Are&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: You Partner’s Problems&lt;/li&gt;&lt;li&gt;Chapter 11. Let’s Call the Whole Thing Off&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Personal Bottom Lines&lt;/li&gt;&lt;li&gt;Chapter 12. You Say “Tomayto,” I Say “Tomahto”&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Post-relationship Options&lt;/li&gt;&lt;li&gt;Chapter 13. If Ever I Should Leave You&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Post-relationship Options&lt;/li&gt;&lt;li&gt;Chapter 14. R-E-S-P-E-C-T&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Do You Respect Each Other?&lt;/li&gt;&lt;li&gt;Chapter 15. Who’s Sorry Now?&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Hurts and Betrayals&lt;/li&gt;&lt;li&gt;Chapter 16. I Can’t Get No Satisfaction&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Getting Your Needs Met&lt;/li&gt;&lt;li&gt;Chapter 17. Love to Love You, Baby&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Intimacy--How It Feels to Be Close&lt;/li&gt;&lt;li&gt;Chapter 18. I’ve Got You Under My Skin&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Issue: Feeling You Belong Together&lt;/li&gt;&lt;li&gt;Chapter 19. Next Step&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;b&gt;Quotes&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;div style="text-align: center;"&gt;           &lt;br /&gt;&lt;blockquote&gt;&lt;span class="s1"&gt;“What had happened to the sweet woman he’d married? Now, three years later, Steve felt that Lynn had turned into someone who did nothing but complain. Then one Friday coming home from work Steve heard a song on the radio—“When a Man Loves a Woman.” Something about it got through to him, something about his having a responsibility to make sure she knew he loved her. They’d gotten so polarized, he saw, that he’d overlooked the possibility that she was unloving because he was unloving.”&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="s1"&gt;“You can often fix what was broken, but you can rarely fix what’s never work at the first place.”&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="s1"&gt;“The mere talent for power doesn’t make you the kind of power person that destroys relationships. But when the talent controls you and makes you its servant, then you and everyone around you are in big trouble.”&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="s1"&gt;“the real problem in relationships isn’t how untalented we are at bridging our differences; it’s how incredibly talented we are at manufacturing differences out of nothing if necessary, just to create a sense of differentiation, uniqueness, specialness. Besides, communication is the one thing in the universe specifically designed to bridge the gap between our differences. If we’re having trouble with that bridge, partly it’s because we’re so interested in magnifying those differences. But communication is the solution, not the problem.”&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="s1"&gt;“communication is a process of getting naked. Not physically, but interpersonally. The closer you are to someone, the closer communication brings you to this interpersonal nakedness. And love is the place where it’s safe to be naked. ”&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="s1"&gt;“The bottom line is the end of the line....You didn’t invent your bottom line, you discovered it.”&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="s1"&gt;“Perhaps what seems like a “difference” problem is really a communication problem.”&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;“Somehow, somewhere, when you look deep in your partner’s eyes you’ve got to be able to see yourself.”&lt;/blockquote&gt;&lt;div class="p2" style="font-weight: bold;"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/div&gt;&lt;blockquote&gt;“Respect is the soil out of which self-esteem grows. But the fighting and familiarity of relationships is the soil out of which disrespect grows.”&lt;/blockquote&gt;&lt;div class="p2" style="font-weight: bold;"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/div&gt;&lt;blockquote&gt;“Time heals all healable wounds.”&lt;/blockquote&gt;&lt;div class="p2" style="font-weight: bold;"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;div style="font-weight: bold; text-align: left;"&gt;&lt;b&gt;---------------------------------------------------------------------------------------------------------&lt;/b&gt;&lt;/div&gt;&lt;div style="font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;a href="http://1.bp.blogspot.com/-eniIkTBUAW0/S7YzxXMm6_I/AAAAAAAAAF0/jQ8o15T_JAY/s1600/audible+-+freeTrial.png" imageanchor="1" style="clear: left; float: left; font-weight: bold; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://1.bp.blogspot.com/-eniIkTBUAW0/S7YzxXMm6_I/AAAAAAAAAF0/jQ8o15T_JAY/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Personally, I prefer audiobooks. It's fun, and I can listen when I'm doing something else. It also makes other activities (e.g., jogging) a lot more fun. For more detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this post&lt;/a&gt;].&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;There is one more reason that may encourage you to go for the audiobook version. You can&amp;nbsp;&lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt;&amp;nbsp;now for FREE. Audible offers you a free trial for 14 days. Even if you get the book and cancel the subscription right away (so that you don't have to pay), you can keep the book. And, don't worry if you lost the audiobook file. Just log into audible.com. You can keep downloading the over and over again.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;a href="http://www.kqzyfj.com/click-3877311-3215981" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-EG8jI4TG2ck/To-_-nfkBcI/AAAAAAAAAJY/wuL8LmDsh_o/s200/TooGoodToLeave.jpeg" width="200" /&gt;&lt;/a&gt;&lt;i&gt;&lt;br /&gt;About the summary: It takes time to finish up a book. And, when you do, sometimes, you want to review what you learn from the book. If you do not make&amp;nbsp; notes as you read, you might have to go through the book once again. This can be time-consuming when you are dealing with a book. But you can still flip through the book and locate what you are looking for.&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to locate a specific part of content. Most likely you will have to listen to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting examples and case studies, not included here. Reading the original book would be much more entertaining and enlightening. If you like the summary, you may want to get the original from the source below.&lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;http://www.kqzyfj.com/click-3877311-3215981&lt;/a&gt;&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-114336668612217144?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/114336668612217144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=114336668612217144' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/114336668612217144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/114336668612217144'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/10/book-review-too-good-to-leave-too-bad.html' title='[Book Review] Too Good to Leave, Too Bad to Stay by Mira Kirshenbaum'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-eniIkTBUAW0/S7YzxXMm6_I/AAAAAAAAAF0/jQ8o15T_JAY/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-750618818246831414</id><published>2011-09-15T07:58:00.001-06:00</published><updated>2011-09-15T09:00:46.924-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Nokia'/><category scheme='http://www.blogger.com/atom/ns#' term='Maps'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'></title><content type='html'>&lt;b&gt;Google Map/Google Earth&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The day &lt;a href="http://www.google.com/earth/index.html"&gt;Google Earth&lt;/a&gt; came out, the whole world was stunned. It's the first time we see the useful (and dangerous) civilian application. Starting from seeing the world, we can zoom in and see countries, districts, villages, and houses (including yours).&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; text-align: right;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;img border="0" height="145" src="http://2.bp.blogspot.com/-gabD9peQsGI/TnH2me_YPAI/AAAAAAAAAJA/KLVTNObLEG0/s200/GE.jpeg" style="margin-left: auto; margin-right: auto;" width="200" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;This is what you see&lt;br /&gt;when you turn on Google Earth&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; text-align: right;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;img border="0" height="145" src="http://2.bp.blogspot.com/-UbwJQKsIoHc/TnH2oT1wh4I/AAAAAAAAAJE/AB4jxI69Qis/s200/GEZ.jpeg" style="margin-left: auto; margin-right: auto;" width="200" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;This is What you see&lt;br /&gt;When you look for a city&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Nokia Map 3D&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I just heard from the show Windows Weekly that Nokia has a pretty awesome &lt;a href="http://maps.nokia.com/3D/"&gt;map&lt;/a&gt; as well. I wasn't very excited. But I might as well check it out. And, again, I was stunned. Here is what I saw:&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-IjOzf2EEKrk/TnH57VgKWLI/AAAAAAAAAJI/J0EohCkW9Mg/s1600/Screen+shot+2011-09-15+at+8.08.08+PM.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="191" src="http://3.bp.blogspot.com/-IjOzf2EEKrk/TnH57VgKWLI/AAAAAAAAAJI/J0EohCkW9Mg/s200/Screen+shot+2011-09-15+at+8.08.08+PM.png" width="200" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;This is what you see&lt;br /&gt;when you first visited Nokia 3D Map&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-_MUfdoZWl9k/TnIA-ev--gI/AAAAAAAAAJQ/IhMwjUudvAU/s1600/Screen+shot+2011-09-15+at+8.42.47+PM.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="237" src="http://1.bp.blogspot.com/-_MUfdoZWl9k/TnIA-ev--gI/AAAAAAAAAJQ/IhMwjUudvAU/s400/Screen+shot+2011-09-15+at+8.42.47+PM.png" width="400" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;This is what you see&lt;br /&gt;when you look for a city&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;I was quite amazed. It's like in a video game or animation. Except it's real!! Check it out. Here is the [ &lt;a href="http://maps.nokia.com/3D/"&gt;link&lt;/a&gt; ]&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What about Earth View in Google Map&lt;/b&gt;&lt;br /&gt;I did not know that this option exists. But I thought Google must have something similar. And there is. It's called "&lt;a href="http://www.google.com/earth/explore/products/earthview.html"&gt;Earth View&lt;/a&gt;". But I was not impressed by Earth View. Nokia map 3D is far better. Well you can see a screenshot here.&lt;br /&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-KdNUsUiw-3I/TnICo1nSoNI/AAAAAAAAAJU/_Z3BCfWqwy4/s1600/Screen+shot+2011-09-15+at+8.49.28+PM.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="159" src="http://2.bp.blogspot.com/-KdNUsUiw-3I/TnICo1nSoNI/AAAAAAAAAJU/_Z3BCfWqwy4/s320/Screen+shot+2011-09-15+at+8.49.28+PM.png" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;Earth View of Google Maps&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-750618818246831414?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/750618818246831414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=750618818246831414' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/750618818246831414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/750618818246831414'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/09/google-mapgoogle-earth-day-google-earth.html' title=''/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-gabD9peQsGI/TnH2me_YPAI/AAAAAAAAAJA/KLVTNObLEG0/s72-c/GE.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-1575412271781896225</id><published>2011-06-06T22:59:00.000-06:00</published><updated>2011-06-06T22:59:11.908-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='David Kirkpatrick'/><category scheme='http://www.blogger.com/atom/ns#' term='Thai'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><title type='text'>[Book-Thai] Facebook คืออะไร? ทำไม Facebook จึงประสพความสำเร็จ</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Hcl0whFsJFk/Tawpqn4jGxI/AAAAAAAAAI4/qcKw6Qh04Mc/s1600/FBEffect.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-Hcl0whFsJFk/Tawpqn4jGxI/AAAAAAAAAI4/qcKw6Qh04Mc/s200/FBEffect.jpg" style="cursor: move;" width="131" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="font-family: Arial;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="s1" style="letter-spacing: 0px;"&gt;“We’re utility. We’re trying to increase the efficiency to which people can understand their world. We’re not trying to maximize the time spent on our site. We’re trying to help people have a good experience and get the maximum amount out of that time.”--Mark Zuckerberg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="p2" style="font-weight: bold; font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="s1" style="letter-spacing: 0px;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;b&gt;ตัวตนของเราออนไลน์&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;จุดเด่นของ Facebook คือการใช้ตัวตนจริงๆของเรา อันนี้ก็ต่างจาก Social Network Services อื่นๆก่อนหน้านี้ซึ่งคนมักจะสร้างนามแฝงขึ้นมาใช้แทนตัวเอง อันนี้ไม่ได้หมายความว่าเราไม่สามารถใช้นามแฝงในการสร้าง Facebook Account แต่เนื่องจาก Facebook ถูกสร้างขึ้นมาเพื่อพัฒนาการสื่อสารระหว่างคนที่เรารู้จัก การใช้นามแฝงจะทำให้เราได้ประโยขน์จาก Facebook น้อยมาก&lt;br /&gt;&lt;br /&gt;ตัวอย่างง่ายๆคือ ในสังคม Facebook เรามักจะยอมรับคนๆนึงเป็นเพื่อน ถ้าเรารู้จักเขาอยู่แล้ว หรือเขาเป็นเพื่อนของเพเพื่อนเรา (ซึ่งเราสามารถดูได้จากรายชื่อเพื่อน ในหน้า profile ของเพื่อนเรา) ถ้ามีคนที่ใช้นามแฝงเข้าไป เพื่อนๆอาจจะไม่รู้จักเขา และไม่รับเขาเป็นเพื่อนใน Facebook ก็ได้&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="s1" style="letter-spacing: 0px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;div style="font-weight: bold;"&gt;Personal Web Portal&amp;nbsp;&lt;/div&gt;&lt;div style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/div&gt;Portal หมายถึงประตู ส่วน Web Portal ก็หมายถึงประตูที่จะนำไปสู่โลกของอินเทอร์เน้ต Web Portal มักถูกใช้โดยผู้ให้บริการอินเทอร์เน็ต เพื่อแสดงข้อมูลต่างๆ ที่สอดคล้องกับความสนใจของผู้ใช้งาน เช่นการสมัครบริการ Terms of Service ค่าบริการ&lt;br /&gt;&lt;br /&gt;Personal Web Portal คือ Web Portal ที่สอดคล้องกับความต้องการของผู้ใช้คนหนึ่ง อันนีี้ต้องระบุให้ชัดนิดนึง เพราะ Content ที่สอดคล้องกับความต้องการของผู้ใช้ จะแตกต่างกับ Content ที่ผู้จัดทำ Web Portal คิดว่า น่าจะสอดคล้องกับความต้องการของผู้ใช้&lt;br /&gt;&lt;br /&gt;Personal Web Portal จะหมายถึงตัวแรก มันคือ Personal Web Page ตัวอย่างง่ายๆ คือเป็น Web Page ที่ประกอบขึ้นจาก Website ฉบับย่อ เช่น เมลล์ ราคาหุ้น หรืออื่นๆ ที่เราเข้าไปดูบ่อยๆ ส่วน Content ตัวหลังมักจะหมายถึง Target Advertising ซึ่งเป็นการส่งโฆษณาที่ได้จากการเก็บข้อมูลของลูกค้าคนนั้นๆ&lt;br /&gt;&lt;br /&gt;ในความคิดของผมแล้ว ผมจะชอบทั้ง Personal Web Portal และ Target Advertising ตัว Personal Web Portal ช่วยให้ผมสามารถดู Content ที่ผมสนใจจากหลายๆ Website ในหน้าจอเพียงหน้าเดียว โดยที่ไม่ต้องเข้าไปที่ Web Site ทีละ Website เพื่อเรียกดู Content นั้นๆ (สะดวกดีใช่มั้ยล่ะ?)&lt;br /&gt;&lt;br /&gt;ผมเคยได้ไปฟัง Presentation จากบริษัท Blyk เขากล่าวว่า “Advertisement isn’t spam, as long as it is relevant. It is information” ในส่วนตัวผมเอง ผมชอบที่จะได้รับคูปองซื้อ 1 แถม 1 จาก Starbuck แต่ในทางปฏิบัติแล้วผมมักจะได้้ อีเมลล์ ที่โฆษณายาแปลกๆ ที่ผมไม่ได้สนใจเสมอๆ (มันน่ารำคาญมั้ยล่ะ?)&lt;br /&gt;&lt;br /&gt;ในอดีตการสร้าง Web Page เป็นเรื่องยาก คนที่จะเขียนต้องมีความรู้ความชำนาญค่อนข้างดี คนทั่วไปจึงไม่ได้สนใจที่จะเขียน Personal Web Portal ขึ้นมาเอง&lt;br /&gt;&lt;br /&gt;Facebook ได้สร้าง Personal Web Portal สำหรับสมาชิกทุกคน Web Page ดังกล่าวของแต่ละคนจะแตกต่างกันไป และจะสอดคล้องกับความสนใจของแต่ละคน Facebook เรียกหน้า Web Page ดังกล่าวว่า Wall (หรือกระดานข่าว) &lt;br /&gt;&lt;br /&gt;แต่ Wall ของ Facebook ก็ยังไม่ได้ เป็น Personal Web Portal อย่างสมบูรณ์ เราไม่สามารถนำ Web Page ต่างๆ มาใส่ไว้ใน Wall ของเราใน Facebook ได้ แต่จะไปโทษ Facebook ก็ไม่ถูก เราต้องเข้าใจก่อนว่า Facebook ไม่ได้ถูกสร้างขึ้นมาเพื่อเป็น Personal Web Portal แต่ Facebook ถูกสร้างขึ้นมาเพื่อเป็นเครื่องมือที่ช่วยให้เราสื่อสารกับเพื่อนๆของเราได้ง่ายขึ้น Personal Web Portal เป็นเพียงผลพลอยได้จาก Facebook เท่านั้น&lt;/div&gt;&lt;div class="p2" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Source: The Facebook Effect by David Kirkpatrick, Prologue [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-facebook-effect-by-david.html"&gt;Read the Book Review&lt;/a&gt;].&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;---------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;Personally, I prefer audiobooks. It's fun, and I can listen when I'm doing something else. It also makes other activities (e.g., jogging) a lot more fun. For more detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this post&lt;/a&gt;].&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-eniIkTBUAW0/S7YzxXMm6_I/AAAAAAAAAF0/jQ8o15T_JAY/s1600/audible+-+freeTrial.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;span id="goog_1986132665"&gt;&lt;/span&gt;&lt;img border="0" height="132" src="http://1.bp.blogspot.com/-eniIkTBUAW0/S7YzxXMm6_I/AAAAAAAAAF0/jQ8o15T_JAY/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;span id="goog_1986132666"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason that may encourage you to go for the audiobook version. You can&amp;nbsp;&lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt;&amp;nbsp;now&amp;nbsp; for FREE. Audible offers you a free trial for 14 days. Even if you get the book and cancel the subscription right away (so that you don't have to pay), you can keep the book. And, don't worry if you lost the audiobook file. Just log into audible.com. You can keep downloading the over and over again.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;i&gt;About the summary: It takes time to finish up a book. And, when you do, sometimes, you want to review what you learn from the book. If you do not make notes as you read, you might have to go through the book once again. This can be time-consuming when you are dealing with a book. But you can still flip through the book and locate what you are looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to locate a specific part of content. Most likely you will have to listen to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting examples and case studies, not included here. Reading the original book would be much more entertaining and enlightening. If you like&amp;nbsp; &amp;nbsp; &amp;nbsp;the summary, you may want to get the original from the source below.&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-1575412271781896225?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/1575412271781896225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=1575412271781896225' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1575412271781896225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1575412271781896225'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/06/book-thai-facebook-facebook.html' title='[Book-Thai] Facebook คืออะไร? ทำไม Facebook จึงประสพความสำเร็จ'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Hcl0whFsJFk/Tawpqn4jGxI/AAAAAAAAAI4/qcKw6Qh04Mc/s72-c/FBEffect.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-41418245601808918</id><published>2011-06-05T04:24:00.000-06:00</published><updated>2011-06-05T04:24:36.434-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Windows 8!, What a Nice UI!</title><content type='html'>I just have a quick view at Windows 8. I really like its user interface! It's like a whole new world. What do you think?&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object width="320" height="266" class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://2.gvt0.com/vi/p92QfWOw88I/0.jpg"&gt;&lt;param name="movie" value="http://www.youtube.com/v/p92QfWOw88I&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266" src="http://www.youtube.com/v/p92QfWOw88I&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-41418245601808918?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/41418245601808918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=41418245601808918' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/41418245601808918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/41418245601808918'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/06/windows-8-what-nice-ui.html' title='Windows 8!, What a Nice UI!'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-1816056774441543392</id><published>2011-05-16T10:55:00.000-06:00</published><updated>2011-05-16T10:55:23.355-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><title type='text'>To My FB's Friend, It's time to change password!</title><content type='html'>I first heard about this from &lt;a href="http://twit.tv/sn"&gt;Security Now&lt;/a&gt; shows that Symantec discovered the tokens to access your Facebook account has leaked.&amp;nbsp;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Bad News:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;If you use Facebook app &amp;nbsp;and you gave that apps an access to your profile, you might want to read this. Usually, such the apps need to access your profile from times to times (e.g., post on the wall). The apps do not use your password to access your profile. They use Facebook-issued tokens to access your profile. The bad news is these token are leaked.&amp;nbsp;Now, hackers can do whatever your apps can do.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Good News:&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;The fix is simple just change your Facebook's password. Then, Facebook will reissue the tokens to all your apps. The old tokens that hackers might get a hold of would expire.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Wanna know more?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can read&lt;a href="http://www.symantec.com/connect/blogs/facebook-applications-accidentally-leaking-access-third-parties"&gt; this link&lt;/a&gt; to find out the details.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-1816056774441543392?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/1816056774441543392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=1816056774441543392' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1816056774441543392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1816056774441543392'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/05/to-my-fbs-friend-its-time-to-change.html' title='To My FB&apos;s Friend, It&apos;s time to change password!'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-2573946344922562073</id><published>2011-04-26T23:07:00.004-06:00</published><updated>2011-04-26T23:08:39.725-06:00</updated><title type='text'>List of MAC OSX Command Line</title><content type='html'>I just find a very useful site which contains a list of MAC OSX command line. Check out [ &lt;a href="http://ss64.com/osx/"&gt;here&lt;/a&gt; ].&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Command Line Interface&lt;/b&gt;&lt;br /&gt;Terminal is a&amp;nbsp;useful utility, which allows advanced users to work with command line interface (CLI). A lot of programmers prefer this mode due to its flexibility to customize things.&lt;br /&gt;&lt;br /&gt;Even for semi-advanced users, Terminal looks scary. One of the problems is that you don't know the command name and their syntax. Documentation is long and some time hard to read. But for sure, it require a lot of effort to comb through the documentation to get what you do using CLI. So a lot of users just give up using CLI.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;SS64&lt;/b&gt;&lt;br /&gt;Recently, I find a useful site, which lists the most frequently used commands for various platforms, e.g., OSX, Oracle, Windows. The list is not too long and is accompanied with short description. In my opinion, it is a very good reference site. Check out [ &lt;a href="http://ss64.com/"&gt;here&lt;/a&gt; ].&lt;br /&gt;&lt;br /&gt;&lt;b&gt;My Personal Use: Copy file content to clipboard.&amp;nbsp;&lt;/b&gt;&lt;br /&gt;Let me give you an example use. Do you know that OSX has a command "&lt;i&gt;pbcopy&lt;/i&gt;"? To me, I would like to copy the content in a text file to the clipboard. Here is what I do:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Type "&lt;i&gt;less myfile.txt | pbcopy&lt;/i&gt;" at the command prompt.&lt;/li&gt;&lt;li&gt;Press Command + V on the application that I would like to paste the content (Note: in Windows, press Ctrl + V).&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Pretty cool isnt' it?&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-2573946344922562073?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/2573946344922562073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=2573946344922562073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/2573946344922562073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/2573946344922562073'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/04/list-of-mac-osx-command-line_26.html' title='List of MAC OSX Command Line'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-1950077930517275915</id><published>2011-04-26T23:07:00.000-06:00</published><updated>2011-04-26T23:07:10.864-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac'/><title type='text'>List of MAC OSX Command Line</title><content type='html'>I just find a very useful site which contains a list of MAC OSX command line. Check out [ &lt;a href="http://ss64.com/osx/"&gt;here&lt;/a&gt; ].&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Command Line Interface&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Terminal is a&amp;nbsp;useful utility, which allows advanced users to work with command line interface (CLI). A lot of programmers prefer this mode due to its flexibility to customize things.&lt;br /&gt;&lt;br /&gt;Even for semi-advanced users, Terminal looks scary. One of the problems is that you don't know the command name and their syntax. Documentation is long and some time hard to read. But for sure, it require a lot of effort to comb through the documentation to get what you do using CLI. So a lot of users just give up using CLI.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SS64&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Recently, I find a useful site, which lists the most frequently used commands for various platforms, e.g., OSX, Oracle, Windows. The list is not too long and is accompanied with short description. In my opinion, it is a very good reference site. Check out [ &lt;a href="http://ss64.com/"&gt;here&lt;/a&gt; ].&lt;br /&gt;&lt;br /&gt;&lt;b&gt;My Personal Use: Copy file content to clipboard.&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Let me give you an example use. Do you know that OSX has a command "pbcopy"? To me, I would like to copy the content in a text file to the clipboard. Here is what I do:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Type "less myfile.txt | pbcopy" at the command prompt.&lt;/li&gt;&lt;li&gt;Press Command + V on the application that I would like to paste the content (Note: in Windows, press Ctrl + V).&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Pretty cool isnt' it?&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-1950077930517275915?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/1950077930517275915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=1950077930517275915' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1950077930517275915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1950077930517275915'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/04/list-of-mac-osx-command-line.html' title='List of MAC OSX Command Line'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-1894377899003047694</id><published>2011-04-19T06:12:00.001-06:00</published><updated>2011-04-19T06:12:00.453-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='David Kirkpatrick'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><title type='text'>[Book] Why is Facebook successful? What exactly is Facebook?</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Hcl0whFsJFk/Tawpqn4jGxI/AAAAAAAAAI4/qcKw6Qh04Mc/s1600/FBEffect.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-Hcl0whFsJFk/Tawpqn4jGxI/AAAAAAAAAI4/qcKw6Qh04Mc/s200/FBEffect.jpg" style="cursor: move;" width="131" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="font-family: Arial;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="s1" style="letter-spacing: 0px;"&gt;“We’re utility. We’re trying to increase the efficiency to which people can understand their world. We’re not trying to maximize the time spent on our site. We’re trying to help people have a good experience and get the maximum amount out of that time.”--Mark Zuckerberg&lt;/span&gt;&lt;/div&gt;&lt;div class="p2" style="font-weight: bold; font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;span class="s1" style="letter-spacing: 0px;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Facebook Key Differentiation Factor: Real Identity&lt;/b&gt;&lt;/div&gt;&lt;div class="p2" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;What differentiate Facebook from other online social networking website is the true identity. That does not mean you have to use your real name. But you get little benefit from Facebook if you use a fake name.&amp;nbsp;&lt;/div&gt;&lt;div class="p2" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Facebook mimics this property from the real society. You wouldn't be friends with those you don't know. You tend to make friends through your friends. In Facebook, you would friend people up if you know that person (or you know friends of that person) in the real world.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="s1" style="letter-spacing: 0px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Personal Web Portal&lt;/b&gt;&lt;br /&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;A portal is a door. So a web portal is a door to the world wide web. A web portal is usually used by Internet Service Provider to display the information relevant to users' interest such as various service plan. Web portals are usually attacked as online marketing tools which present annoying advertisement contents to users.&amp;nbsp;&lt;/div&gt;&lt;div class="p2" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;A personal web portal is just a web portal customized to fit one's interest. When created by marketing agency, personal web portals can mean a target advertising curstomizing to fit users' interest. This is even more scary, because it means one way or another the marketer must be tracking us.&lt;/div&gt;&lt;div class="p2" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;A personal web portal can be very nice if you created it by yourself. Think about it. Think about 100 most recent websites you visited. Are they all distinct? Most likely, the answer is "NO". You tends to visit some website more frequently than the others. For me, there are about 10 websites that I visit frequently. These 10 websites make up about 80% of the 100 websites I recently visited. The other 20% is random websites which I rarely visit.&amp;nbsp;&lt;/div&gt;&lt;div class="p2" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;It would be nice if there is a way to show me the updates on these 10 website I visit most frequently. What I can do is to bookmark these 10 website manually. But then it is quite clumsy. I have to go to each of these website one by one. And, I have to keep updating these websites as my interest changes.&lt;/div&gt;&lt;div class="p2" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;This is where personal web portals come in. A personal web portal is the place which keep track and show you the update on where your most interest lies. When you connect &amp;nbsp;to the internet, it shows you the list of your new mails, news update, stock price, weather forecast, and so on. This would be really nice. This is Facebook.&lt;/div&gt;&lt;div class="p2" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Social Web Portal&lt;/b&gt;&lt;/div&gt;&lt;div class="p2" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="p1" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;But Facebook takes a personal web portal a step further. Facebook views people as a social animal. Facebook thinks that we are interested in socializing rather than consuming web content. So it gives updates on people you most care about. Facebook is a personal social portal.&amp;nbsp;&lt;/div&gt;&lt;div class="p2" style="font: normal normal normal 14px/normal Arial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 16px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Source: The Facebook Effect by David Kirkpatrick, Prologue [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-facebook-effect-by-david.html"&gt;Read the Book Review&lt;/a&gt;].&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;---------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" style="cursor: move;" width="200" /&gt;&lt;/a&gt;Personally, I prefer audiobooks. It's fun, and I can listen when I'm doing something else. It also makes other activities (e.g., jogging) a lot more fun. For more detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this post&lt;/a&gt;].&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;There is one more reason that may encourage you to go for the audiobook version. You can&amp;nbsp;&lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt;&amp;nbsp;now&amp;nbsp; for FREE. Audible offers you a free trial for 14 days. Even if you get the book and cancel the subscription right away (so that you don't have to pay), you can keep the book. And, don't worry if you lost the audiobook file. Just log into audible.com. You can keep downloading the over and over again.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;i&gt;About the summary: It takes time to finish up a book. And, when you do, sometimes, you want to review what you learn from the book. If you do not make notes as you read, you might have to go through the book once again. This can be time-consuming when you are dealing with a book. But you can still flip through the book and locate what you are looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to locate a specific part of content. Most likely you will have to listen to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting examples and case studies, not included here. Reading the original book would be much more entertaining and enlightening. If you like&amp;nbsp; &amp;nbsp; &amp;nbsp;the summary, you may want to get the original from the source below.&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-1894377899003047694?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/1894377899003047694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=1894377899003047694' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1894377899003047694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1894377899003047694'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/04/book-why-is-facebook-successful-what.html' title='[Book] Why is Facebook successful? What exactly is Facebook?'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Hcl0whFsJFk/Tawpqn4jGxI/AAAAAAAAAI4/qcKw6Qh04Mc/s72-c/FBEffect.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-1333029708239793351</id><published>2011-04-04T00:26:00.007-06:00</published><updated>2011-06-06T23:01:23.662-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='David Kirkpatrick'/><category scheme='http://www.blogger.com/atom/ns#' term='Review'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><title type='text'>[Book Review] The Facebook Effect by David Kirkpatrick</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.amazon.com/dp/1439102120?tag=ns2ultteeiss-20&amp;amp;camp=213761&amp;amp;creative=393545&amp;amp;linkCode=bpl&amp;amp;creativeASIN=1439102120&amp;amp;adid=01X9CP1F2YE1DZARE3EP&amp;amp;" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-RMCQ1dDLO-I/TZWAursRMRI/AAAAAAAAAIw/e4Q0dzlq2v4/s200/FBEffect.jpg" width="131" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt; Rating:&amp;nbsp;4/5&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Genre:&lt;/b&gt;&amp;nbsp;Non-fiction&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Book Review&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;br /&gt;It is clear from the title that this book is about FACEBOOK. The most widely-used social networking website in the world. Out of curiosity, I read this book after watching the movie “Social Networks”, which is about Facebook. In my opinion, the movie is not based on this book. But based on another book “The Accidental Billionaires: The Founding of Facebook, A Tale of Sex, Money, Genius, and Betrayal” by &amp;nbsp;Ben Mezrich. So this book presents another point of view for Facebook, and unquestionably Mark Zuckerberg.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;This book consists of two parts: The history of facebook and the effect of facebook on the world. Personally, I found both part interesting. It lays down the detailed history of Facebook (not in a boring fashion). If you watched “Social Network” or red “The accidental billionaire”, you might think that Mark was a bad guy, who’d care for nothing but himself. He betrayed people over and over to get Facebook to the top of the world. This book presents another perspective. It’s the missing piece of why he did what he did.&lt;br /&gt;&lt;br /&gt;The book tells the story of Facebook to the very current time, long after the end of the movie “Social Network”. It also discusses about that happend in the real world before and after Facebook took off. For example, do you know that Facebook exploited attrition of Google and Microsoft to get good deals from them.&lt;br /&gt;&lt;br /&gt;Overall, I like this book. The content is good. The writing style is engaging. But it’s a bit long. So I would recommend this book for those who have real interest in Facebook or similar social networking technologies.&lt;br /&gt;In the audiobook version, this book is narrated by David Kirkpatrick himself. Although not my favorite one, he is a very good job. One good thing about self-narrated book is that the author usually know the emotion of the content. He can recall his feeling when he wrote a book. Listing to him is like you are writing the book with him.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Takeaway&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;There are few things that I learn from this book. They are not general things. They are specific to Facebook:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The innovation of Facebook is the authenticity. Facebook does not force people to use their real name. But you get little benefits if you use fake names.&lt;/li&gt;&lt;li&gt;Google is about information, but Facebook is about communication. It would be interesting to see which one will be the last man standing.&lt;/li&gt;&lt;li&gt;Facebook is not a website. It is a platform. And, platform (e.g., MS-Windows) is a real big thing. Once you have a platform. People can start building things in your way. In short, you do not own a website. You own the world.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Table of Contents&lt;/b&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Prologue: The Facebook Effect [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-facebook-effect-by-david.html"&gt;Part 1&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2011/06/book-thai-facebook-facebook.html"&gt;ส่วนที่ 1&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Chapter 1: The Beginning&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 2: Palo Alto&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 3: Social Networking and the Internet&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 4: Fall 2004&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 5: Investors&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 6: Becoming a Company&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 7: Fall 2005&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 8: The CEO&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 9: 2006&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 10: Privacy&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 11: The Platform&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 12: $15 Billion&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 13: Making Money&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 14: Facebook and the World&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 15: Changing Our Institutions&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 16: The Evolution of Facebook&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter 17: The Future&amp;nbsp;&lt;/li&gt;&lt;li&gt;Postscript&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;---------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;Personally, I prefer audiobooks. It's fun, and I can listen when I'm doing something else. It also makes other activities (e.g., jogging) a lot more fun. For more detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this post&lt;/a&gt;].&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1439102120&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;a href="http://www.kqzyfj.com/click-3877311-3215981" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;There is one more reason that may encourage you to go for the audiobook version. You can&amp;nbsp;&lt;a href="http://www.kqzyfj.com/click-3877311-3215981" target="_blank"&gt;get it&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=ns2ultteeiss-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0307275175" style="border-bottom-style: none !important; border-bottom-width: medium !important; border-color: initial !important; border-left-style: none !important; border-left-width: medium !important; border-right-style: none !important; border-right-width: medium !important; border-top-style: none !important; border-top-width: medium !important; cursor: move; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important;" width="1" /&gt;&amp;nbsp;now for FREE. Audible offers you a free trial for 14 days. Even if you get the book and cancel the subscription right away (so that you don't have to pay), you can keep the book. And, don't worry if you lost the audiobook file. Just log into audible.com. You can keep downloading the over and over again.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;i&gt;About the summary: It takes time to finish up a book. And, when you do, sometimes, you want to review what you learn from the book. If you do not make notes as you read, you might have to go through the book once again. This can be time-consuming when you are dealing with a book. But you can still flip through the book and locate what you are looking for.&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to locate a specific part of content. Most likely you will have to listen to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting examples and case studies, not included here. Reading the original book would be much more entertaining and enlightening. If you like&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;the summary, you may want to get the original from the source here [ &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;Audiobook&lt;/a&gt; ] [ &lt;a href="http://www.amazon.com/dp/1439102120?tag=ns2ultteeiss-20&amp;amp;camp=213761&amp;amp;creative=393545&amp;amp;linkCode=bpl&amp;amp;creativeASIN=1439102120&amp;amp;adid=01X9CP1F2YE1DZARE3EP&amp;amp;"&gt;Book&lt;/a&gt; ].&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-1333029708239793351?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/1333029708239793351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=1333029708239793351' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1333029708239793351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1333029708239793351'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/04/book-review-facebook-effect-by-david.html' title='[Book Review] The Facebook Effect by David Kirkpatrick'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-RMCQ1dDLO-I/TZWAursRMRI/AAAAAAAAAIw/e4Q0dzlq2v4/s72-c/FBEffect.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-6145987916679462000</id><published>2011-04-01T00:57:00.000-06:00</published><updated>2011-04-01T00:57:35.452-06:00</updated><title type='text'>[Book Review] The Drunkard's Walk: How Randomness Rules Our Lives by Leonard Mlodinow</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;br class="Apple-interchange-newline" /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;Rating:&amp;nbsp;4&lt;/b&gt;/5&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Genre:&lt;/b&gt;&amp;nbsp;Non-fiction&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Book Review&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;If you think that mathematics mainly for academic, this book might change your view. The book talks very little about basic probability principles. Rather, it focuses on how the principles were discovered, what it meant in the old time and the present time, and the fallacy associated to them.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;I am quite familiar with probability. So, I find myself reading this book enjoyably. As a student, I was wondering why should study difficult and boring mathematics. If you are like me, you might find this book quite interesting. This book gives the readers the reasons why mathematics matters to, say for example, engineers, statisticians, or even lawyers.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Another interesting part of this book is the&amp;nbsp; history. There are stories of great mathematician and scientists such as Gerolamo Cardano, Galileo Galilei, Blaise Pascal, Jacob Bernoulli, Thomas Bayes, Laplace, Carl Friedrich Gauss. Who would have know that Thomas Bayes was a minister. Pascal suffered from his illness when he did too much thinking.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;The book is interesting. It looks at aspects that I usually overlook. It keeps me engaged for most of the content. Overall, I like this book.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Takeaway&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Life is full of random events. Good lucks are rare. Bad luck are common. Therefore, bad lucks aren't bad lucks. There are just common things.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Do not be too proud of your talents. Success derives from a combination of talents and good lucks. A lot of talented people fails several times before they succeed.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Despite its important role, chance is not something we can control. The good news is another important factor that we can control is the effort. This means you can increase you chance of success by not giving up. Believe and keep trying.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Do not judge people just from the results. Talent is more important than results, as bad results might just come from bad luck.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Table of Contents&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Chapter One: Peering through the Eyepiece of Randomness [&lt;a href="http://t-issariyakul.blogspot.com/2010/07/are-we-better-guesser-than-mouse.html"&gt;Part 1&lt;/a&gt;,&lt;a href="http://t-issariyakul.blogspot.com/2010/08/regression-towards-mean-drunkards-walk.html"&gt;Part 2&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Chapter Two: The Laws of Truths and Half-Truths [&amp;nbsp;&lt;a href="http://t-issariyakul.blogspot.com/2010/08/greek-roman-and-mathematics.html"&gt;Click Here&lt;/a&gt;&amp;nbsp;]&lt;/li&gt;&lt;li&gt;Chapter Three: Finding Your Way through a Space of Possibilities [&amp;nbsp;&lt;a href="http://t-issariyakul.blogspot.com/2010/08/interpretation-of-randomness.html"&gt;Part 1&lt;/a&gt;,&amp;nbsp;&lt;a href="http://t-issariyakul.blogspot.com/2010/09/sample-space-and-gambling.html"&gt;Part 2,&lt;/a&gt;&amp;nbsp;&lt;a href="http://t-issariyakul.blogspot.com/2010/09/birthday-problem.html"&gt;Part 3&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Chapter Four: Tracking the Pathways to Success [&amp;nbsp;&lt;a href="http://t-issariyakul.blogspot.com/2010/09/gods-and-expectation.html"&gt;Click Here&lt;/a&gt;&amp;nbsp;]&lt;/li&gt;&lt;li&gt;Chapter Five: The Dueling Laws of Large and Small Numbers [&amp;nbsp;&lt;a href="http://t-issariyakul.blogspot.com/2010/09/probability-ratio-and-law-of-large.html"&gt;Click Here&lt;/a&gt;&amp;nbsp;]&lt;/li&gt;&lt;li&gt;Chapter Six: False Positives and Positive Fallacies [&lt;a href="http://t-issariyakul.blogspot.com/2010/09/book-false-positives-and-positive.html"&gt;Click Here&lt;/a&gt;&amp;nbsp;]&lt;/li&gt;&lt;li&gt;Chapter Seven: Measurement and the Law of Errors [&amp;nbsp;&lt;a href="http://t-issariyakul.blogspot.com/2010/10/book-measurement-and-law-of-errors.html"&gt;Click Here&amp;nbsp;&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;Chapter Eight: The Order in Chaos [ &lt;a href="http://t-issariyakul.blogspot.com/2010/10/dawn-of-statistics.html"&gt;Click Here&lt;/a&gt; ]&lt;/li&gt;&lt;li&gt;Chapter Nine: Illusions of Patterns and Patterns of Illusion [&lt;a href="http://t-issariyakul.blogspot.com/2010/11/book-people-perception-perfection-and.html"&gt; Part1&lt;/a&gt;, &lt;a href="http://t-issariyakul.blogspot.com/2010/11/book-hot-hand-fallacy.html"&gt;Part 2&lt;/a&gt;, &lt;a href="http://t-issariyakul.blogspot.com/2010/12/book-confirmation-bias-and-sharp.html"&gt;Part 3&lt;/a&gt;,&amp;nbsp;&amp;nbsp;]&amp;nbsp;&lt;/li&gt;&lt;li&gt;Chapter Ten: The Drunkard’s Walk&amp;nbsp;[ &lt;a href="http://t-issariyakul.blogspot.com/2010/12/book-butterfly-effect.html"&gt;Part 1&lt;/a&gt;, &lt;a href="http://t-issariyakul.blogspot.com/2011/02/book-past-present-asymmetry.html"&gt;Part 2&lt;/a&gt;,&amp;nbsp;&lt;a href="http://t-issariyakul.blogspot.com/2011/02/book-chances-and-successes-drunkards.html"&gt;Final Part&lt;/a&gt;&amp;nbsp;]&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;---------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" style="cursor: move;" width="200" /&gt;&lt;/a&gt;Personally, I prefer audiobooks. It's fun, and I can listen when I'm doing something else. It also makes other activities (e.g., jogging) a lot more fun. For more detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this post&lt;/a&gt;].&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;There is one more reason that may encourage you to go for the audiobook version. You can&amp;nbsp;&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;get it&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=ns2ultteeiss-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0307275175" style="border-bottom-style: none !important; border-bottom-width: medium !important; border-color: initial !important; border-left-style: none !important; border-left-width: medium !important; border-right-style: none !important; border-right-width: medium !important; border-top-style: none !important; border-top-width: medium !important; cursor: move; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important;" width="1" /&gt;&amp;nbsp;now for FREE. Audible offers you a free trial for 14 days. Even if you get the book and cancel the subscription right away (so that you don't have to pay), you can keep the book. And, don't worry if you lost the audiobook file. Just log into audible.com. You can keep downloading the over and over again.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;i&gt;About the summary: It takes time to finish up a book. And, when you do, sometimes, you want to review what you learn from the book. If you do not make notes as you read, you might have to go through the book once again. This can be time-consuming when you are dealing with a book. But you can still flip through the book and locate what you are looking for.&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to locate a specific part of content. Most likely you will have to listen to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting examples and case studies, not included here. Reading the original book would be much more entertaining and enlightening. If you like &amp;nbsp; &amp;nbsp;the summary, you may want to get the original from the source below.&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-6145987916679462000?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/6145987916679462000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=6145987916679462000' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6145987916679462000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6145987916679462000'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html' title='[Book Review] The Drunkard&apos;s Walk: How Randomness Rules Our Lives by Leonard Mlodinow'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-7204695916791347155</id><published>2011-02-17T01:41:00.004-07:00</published><updated>2011-04-01T01:10:50.290-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>[Book] Chances and Successes -- The Drunkard's Walk Wrap-up</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" style="cursor: move;" width="132" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;Although regularity can be found in social data, the future of a particular individual is impossible to predict due to&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;ul&gt;&lt;li&gt;There are infinitely many possibilities,&lt;/li&gt;&lt;li&gt;Minor change can lead to a significant change in outcomes (i.e., the Butterfly Effect), and&amp;nbsp;&lt;/li&gt;&lt;li&gt;People are irrational.&amp;nbsp;They sometimes act against their best interest.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;For a particular action, we all owe more to the chance (i.e., luck) than what most people realize.&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;blockquote style="text-align: center;"&gt;“Chance is more fundamental than causality.”&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;Future is unpredictable. Things are uncontrollable. No matter how good you are, your attempts might just turn out in vain consecutively. The good news is one thing that we are in control, our effort, can even out the bad luck. As Bernoulli would say increasing attempts would bring our success rate to our true capability.&lt;/div&gt;&lt;blockquote style="text-align: center;"&gt;“If you want to succeed, double your failure rate.”&lt;/blockquote&gt;&lt;div style="font-family: Arial;"&gt;It is important to plan, if we do so with our eyes opened. But more importantly, we ought to identify and appreciate the good luck we have, and recognize the random events that contribute to our success. Accept chance events that may cause us grief. Most of all, appreciate the absence of bad luck, the absence of the events that might have brought us down, and the absence of disease, war, famine, and accident that have not or have not yet befallen upon us. THEY ARE JUST CHANCES.&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Source: The Drunkard's Walk: How Randomness Rules Our Lives by Leonard Mlodinow, Chapter 10 [&lt;a href="http://t-issariyakul.blogspot.com/2011/02/book-past-present-asymmetry.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2011/02/book-past-present-asymmetry.html"&gt;Read the Previous Part&lt;/a&gt;].&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;---------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" style="cursor: move;" width="200" /&gt;&lt;/a&gt;Personally, I prefer audiobooks. It's fun, and I can listen when I'm doing something else. It also makes other activities (e.g., jogging) a lot more fun. For more detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this post&lt;/a&gt;].&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;There is one more reason that may encourage you to go for the audiobook version. You can&amp;nbsp;&lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt;&amp;nbsp;now&amp;nbsp; for FREE. Audible offers you a free trial for 14 days. Even if you get the book and cancel the subscription right away (so that you don't have to pay), you can keep the book. And, don't worry if you lost the audiobook file. Just log into audible.com. You can keep downloading the over and over again.&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;i&gt;About the summary: It takes time to finish up a book. And, when you do, sometimes, you want to review what you learn from the book. If you do not make notes as you read, you might have to go through the book once again. This can be time-consuming when you are dealing with a book. But you can still flip through the book and locate what you are looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to locate a specific part of content. Most likely you will have to listen to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting examples and case studies, not included here. Reading the original book would be much more entertaining and enlightening. If you like&amp;nbsp; &amp;nbsp; &amp;nbsp;the summary, you may want to get the original from the source below.&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-7204695916791347155?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/7204695916791347155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=7204695916791347155' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7204695916791347155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7204695916791347155'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/02/book-chances-and-successes-drunkards.html' title='[Book] Chances and Successes -- The Drunkard&apos;s Walk Wrap-up'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s72-c/201004-Drunkard.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-4361838199106411215</id><published>2011-02-10T01:40:00.001-07:00</published><updated>2011-04-01T01:13:27.360-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>[Book] Past-Present Asymmetry</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" style="cursor: move;" width="132" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;span class="Apple-style-span" style="font-family: Times;"&gt;&amp;nbsp;“If the future is really chaotic and unpredictable, why after the event has occurred does it seem as if we should have been able to foresee them?”&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;It is easy to reconstruct (or explain) a present from the past. But it s virtually impossible to predict the future from the present. To reconstruct the present, we can look at the past and make up the reason which leads to the present. If we use the same approach to predict (or extrapolate) the future, before long we will end up with infinitely many possibilities. And, even if you can magically pinpoint the future, the Butterfly Effect can mess things up. A minor event from the present to future can change the future entirely. This is to say “the future is unpredictable”.&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Source: The Drunkard's Walk: How Randomness Rules Our Lives by Leonard Mlodinow, Chapter 10&amp;nbsp;[&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;]&amp;nbsp;[&lt;a href="http://t-issariyakul.blogspot.com/2010/12/book-butterfly-effect.html"&gt;Read the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2011/02/book-chances-and-successes-drunkards.html"&gt;Read the Next Part&lt;/a&gt;].&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;---------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" style="cursor: move;" width="200" /&gt;&lt;/a&gt;Personally, I prefer audiobooks. It's fun, and I can listen when I'm doing something else. It also makes other activities (e.g., jogging) a lot more fun. For more detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this post&lt;/a&gt;].&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;There is one more reason that may encourage you to go for the audiobook version. You can&amp;nbsp;&lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt;&amp;nbsp;now&amp;nbsp; for FREE. Audible offers you a free trial for 14 days. Even if you get the book and cancel the subscription right away (so that you don't have to pay), you can keep the book. And, don't worry if you lost the audiobook file. Just log into audible.com. You can keep downloading the over and over again.&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;i&gt;About the summary: It takes time to finish up a book. And, when you do, sometimes, you want to review what you learn from the book. If you do not make notes as you read, you might have to go through the book once again. This can be time-consuming when you are dealing with a book. But you can still flip through the book and locate what you are looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to locate a specific part of content. Most likely you will have to listen to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting examples and case studies, not included here. Reading the original book would be much more entertaining and enlightening. If you like&amp;nbsp; &amp;nbsp; &amp;nbsp;the summary, you may want to get the original from the source below.&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-4361838199106411215?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/4361838199106411215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=4361838199106411215' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4361838199106411215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4361838199106411215'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/02/book-past-present-asymmetry.html' title='[Book] Past-Present Asymmetry'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s72-c/201004-Drunkard.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-261271393297615195</id><published>2011-01-14T21:27:00.026-07:00</published><updated>2011-01-15T10:45:02.788-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac'/><title type='text'>Mac Book Pro Battery</title><content type='html'>&lt;div style="font-family: Arial;"&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003G2ZJTG&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;ผมเพิ่งได้เครื่อง Mac Book Pro มา และพบว่าแบตเตอรี่ของเขามีความจุสูงมากๆ Apple อ้างว่าใช้ได้นานถึง 9 ชั่วโมง แต่ในเครื่องที่ผมใช้ก็คำนวณได้ 9 ชั่วโมงกว่าๆ ซึ่งก็นานมากอยู่ดี ถ้าต้องขึ้นเครื่องบินไปต่างประเทศ คงไม่ต้องกังวลเรื่องแบตเตอรี่หมดบนเครื่องอีกแล้ว&amp;nbsp;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;b&gt;อายุการใช้งาน&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;ก่อนจะคุยกันเรื่องอายุการใช้งานเรามาทำความรู้จักกับศัพท์ใหม่กันก่อน ศัพทที่ว่าคือ Charge Cycle&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Charge cycle 1 รอบหมายถึงการใช้แบตเตอรี่จนหมดเกลี้ยง 1 ครั้ง ถ้าเราใช้แบตเตอรี่ไป 30% หนึ่ง แล้ว recharge นั่นหมายถึงเราใช้งานไป 30% ของ 1 Charge Cycle เราจะต้องใช้แบตเตอรี่อีก 70% ของความจุทั้งหมดจึงจะครบ 1 Charge Cycle&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;Apple อ้างว่าแบตเตอรี่ของเขามีการใช้อายุการใช้งานดังนี้&lt;/div&gt;&lt;ul style="font-family: Arial;"&gt;&lt;li&gt;หลังจาก 1000 Charge Cycles ความจุของแบตเตอรี่จะอยู่ที่ 80% ของความจุแรกเริ่ม&lt;/li&gt;&lt;li&gt;การใช้งานปกติจะทำให้แบตเตอรี่ใช้ได้ถึง 5 ปี&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial;"&gt;&lt;b&gt;ความจุของแบตเตอรี่&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;ทางมุมขวาบนของ Desktop เราจะเห็น Mini Toolbar อยู่ ลองสังเกตุ icon รูปแบตเตอรี่ดู ด้านข้างจะมีสถานะอยู่&amp;nbsp;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_eW8Uemxxm60/TS_VPSc64jI/AAAAAAAAAIk/rpeOL2jQptU/s1600/Screen+shot+2011-01-14+at+11.42.48+AM.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="107" src="http://3.bp.blogspot.com/_eW8Uemxxm60/TS_VPSc64jI/AAAAAAAAAIk/rpeOL2jQptU/s200/Screen+shot+2011-01-14+at+11.42.48+AM.png" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Charged: ระหว่างใช้งานเครื่องด้วยไฟตรงและแบตเตอรี่เต็มอยู่&lt;/li&gt;&lt;li&gt;Percentage: เปอร์เซ็นต์ของแบตเตอรี่&lt;/li&gt;&lt;li&gt;เวลา:&amp;nbsp;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;ระหว่างชาร์จ: เวลาที่ต้องใช้ในการชาร์จแบตเตอรี่ให้เต็ม&lt;/li&gt;&lt;li&gt;ระหว่างที่ไม่ได้ชาร์จ: เวลาที่ยังใช้งานได้จนกว่าแบตเตอรี่จะหมด (ดูรูปประกอบ)&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;b&gt;ชาร์จได้ตลอดเวลา&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;Apple ใช้เทคโนโลยี Lithium-Ion Battery ซึ่งทำให้เราสามารถชาร์จแบตเตอรี่ได้ตลอดโดยไม่ต้องรอให้แบตเตอรี่หมดเสียก่อน ถ้าเราจำกันได้จะมีคนเคยบอกว่าแบตเตอรี่รุ่นเก่าๆ ที่เป็น&amp;nbsp;Nickel-based Battery จะต้องใช้ให้หมดก่อนค่อยชาร์จไม่งั้นแบตเตอรี่จะเสื่อมเร็ว นั้นเป็นเพราะถ้าชาร์จระหว่างที่แบตเตอรี่ไ่ม่หมดจะมีละอองคริสตัลไปเกาะที่สาร Nickel ทำให้กระแสไฟไม่สามารถไหลเข้าไปที่ Nickel ได้ แต่ Lithium-Ion ไม่มีปัญหานี้ เราจึงสามารถชาร์จได้ตลอดเวลา&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;นอกจากนี้หลักจากที่แบตเตอรี่เต็มแล้ว Mac Book จะตัดกระแสไฟจาก Adapter ไม่ให้เข้าไปที่แบตเตอรี่อีกด้วย ลองเข้าไปดูที่ System Preference ขณะที่ไม่ได้ชาร์จแบตเตอรี่อยู่ กล่อง 'Power Adapter' จะถูกไฮไลท์ด้วยพื้นหลังสีฟ้า&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_eW8Uemxxm60/TS_WVoEg0JI/AAAAAAAAAIo/N6fAmm1_5cA/s1600/Screen+shot+2011-01-14+at+11.48.58+AM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/_eW8Uemxxm60/TS_WVoEg0JI/AAAAAAAAAIo/N6fAmm1_5cA/s400/Screen+shot+2011-01-14+at+11.48.58+AM.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;b&gt;วิธีการชาร์จของ Apple&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;Apple จะชาร์จแบตเตอรี่ด้วยวิธี 2 วิธีด้วยกัน&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol style="font-family: Arial;"&gt;&lt;li&gt;Fast Charge: ชาร์จต่อเนื่องจนกระทั่ง Capacity ของแบตเตอรี่อยู่ที่ 80%&lt;/li&gt;&lt;li&gt;Trickle Charge: ชาร์จและหยุดสลับกันไป จนกระทั่ง แบตเตอรี่เต็ม (Trickle Charge จะช่วยถนอมแบตเตอรี่ไม่ให้เสื่อมเร็ว)&lt;/li&gt;&lt;/ol&gt;&lt;div style="font-family: Arial;"&gt;&lt;b&gt;แล้วค&lt;/b&gt;&lt;b&gt;วรจะชาร์จตลอดเวลาหรือไม่?&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;ตอบสั้นๆว่าไม่ควร Apple บอกว่าเราควรจะให้ electron ไหลผ่านแบตเตอรี่เป็นคร้ั้งคราว Apple แนะนำให้เราใช้งานดังนี้&lt;/div&gt;&lt;ul style="font-family: Arial;"&gt;&lt;li&gt;ดีที่สุด: สำหรับผู้ที่ต้องเดินทาง ให้เสียบไปใช้งานที่ office หรือที่บ้าน แล้วใช้งานระหว่างอยู่บนรถ เช่น บน BTS (แต่อย่าลืมว่าคนอเมริกันเดินทางมากกว่าคนไทยมากนะ)&amp;nbsp;&lt;/li&gt;&lt;li&gt;สำหรับผู้ที่ใช้ Macbook Pro แทน Desktop: ให้ใช้แบตเตอรี่ให้หมดแล้ว recharge (1 full charge cycle) เดือนละหนึ่งครั้ง (อันนี้เป็นข้อแนะนำสำหรับคนที่ตั้งเครื่องไว้ที่โต๊ะแล้วเสียบไฟไว้ตลอด)&lt;/li&gt;&lt;/ul&gt;&lt;span class="Apple-style-span" style="font-family: Arial;"&gt;ฟังดูแล้วยุ่งใช่มั้ยครับ ส่วนตัวผมคิดว่าผมจะใช้แบบสบายๆ มีที่ชาร์จไฟก็&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial;"&gt;ชาร์จ&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial;"&gt;&amp;nbsp;ไม่มีก็ไม่ต้อง&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial;"&gt;ชาร์จ&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial;"&gt;&amp;nbsp;ไม่ต้องไปดิ้นรนหาที่&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial;"&gt;ชาร์จ&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial;"&gt;เหมือนเวลาใช้ Notebook ที่มีความจุแค่ชั่วโมงเศษ&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;b&gt;อะไรทำให้ผมชอบ Macbook pro&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;แบตเตอรี่เป็นอีกสิ่งนึงที่ทำให้ผมชอบ Macbook Pro เมื่อก่อนเคยใช้ Notebook ยี่ห้ออื่น ต้องคอยกังวลว่าแบตจะหมด และต้องคอยถอดแบตเตอรี่ออกเพราะกลัวแบตเตอรี่จะเสื่อม Apple ออกแบบสินค้าให้เหมาะกับ Lifestyle ของผู้ใช้จริงๆ ตอนนี้ผมไม่ต้องกังวลว่าแบตเตอรี่จะหมดแล้ว (7 ชั่วโมงกว่า จะหมดก็ให้มันรู้ไป) แล้วก็ไม่ต้องคิดมากเรื่องต้องถอดแบตเตอรี่ออกเพราะกลัวมันจะเสื่อม (ยิ่งถ้าเสียบไปตลอดจะทำให้แบตเตอรี่เสื่อมด้วยซ้ำไป)&lt;/div&gt;&lt;div style="font-family: Arial;"&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ที่มา: Apple's Website เรื่อง [&lt;a href="http://www.apple.com/batteries/"&gt;แบตเตอรี่&lt;/a&gt;] และ [&lt;a href="http://www.apple.com/batteries/notebooks.html"&gt;แบตเตอรี่ของ Notebook&lt;/a&gt;]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-261271393297615195?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/261271393297615195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=261271393297615195' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/261271393297615195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/261271393297615195'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2011/01/mac-book-pro-battery.html' title='Mac Book Pro Battery'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/TS_VPSc64jI/AAAAAAAAAIk/rpeOL2jQptU/s72-c/Screen+shot+2011-01-14+at+11.42.48+AM.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-7623140551453542123</id><published>2010-12-30T05:48:00.006-07:00</published><updated>2011-04-01T01:14:05.594-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>[Book] Butterfly Effect</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" style="cursor: move;" width="132" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;No, we are not talking about the movie by Ashton Kutcher. We are going to talk about the Butterfly Effect which is a concept in chaos theory, which says&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;A flap of butterfly's wings in Brazil can set out a tornado in Texas.&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;More generally, few insignificant random events can cause a big impact. This phenomena occur a lot in our daily life. But perhaps, it is referred to as fate, rather than the Butterfly Effect. For example, had Bruce Willis not gone to at attend an Olympic event in 1984, he might have not been a star today, or had you not gone to study abroad, you might have not found the love of your life.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Source: The Drunkard's Walk: How Randomness Rules Our Lives by Leonard Mlodinow, Chapter 10 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/12/book-confirmation-bias-and-sharp.html"&gt;Read the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2011/02/book-past-present-asymmetry.html"&gt;Read the Next Part&lt;/a&gt;].&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;---------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" style="cursor: move;" width="200" /&gt;&lt;/a&gt;Personally, I prefer audiobooks. It's fun, and I can listen when I'm doing something else. It also makes other activities (e.g., jogging) a lot more fun. For more detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this post&lt;/a&gt;].&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;There is one more reason that may encourage you to go for the audiobook version. You can&amp;nbsp;&lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt;&amp;nbsp;now&amp;nbsp; for FREE. Audible offers you a free trial for 14 days. Even if you get the book and cancel the subscription right away (so that you don't have to pay), you can keep the book. And, don't worry if you lost the audiobook file. Just log into audible.com. You can keep downloading the over and over again.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;i&gt;About the summary: It takes time to finish up a book. And, when you do, sometimes, you want to review what you learn from the book. If you do not make notes as you read, you might have to go through the book once again. This can be time-consuming when you are dealing with a book. But you can still flip through the book and locate what you are looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to locate a specific part of content. Most likely you will have to listen to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting examples and case studies, not included here. Reading the original book would be much more entertaining and enlightening. If you like&amp;nbsp; &amp;nbsp; &amp;nbsp;the summary, you may want to get the original from the source below.&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-7623140551453542123?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/7623140551453542123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=7623140551453542123' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7623140551453542123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7623140551453542123'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/12/book-butterfly-effect.html' title='[Book] Butterfly Effect'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s72-c/201004-Drunkard.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-7132634324218791401</id><published>2010-12-20T20:16:00.002-07:00</published><updated>2011-04-01T01:14:53.653-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>[Book] Confirmation Bias and Sharp Shotter Effect</title><content type='html'>&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;Confirmation bias&lt;/b&gt;&lt;br /&gt;People are really good at recognizing patterns, even though a pattern isn’t a pattern. Once they find a pattern, it’s hard for them to let go. People tend to prove themselves correct, rather than find out the truth. This is called confirmation bias. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Sharpshooter effect&lt;/b&gt;&lt;br /&gt;It’s just like having a mediocre sharpshooter shoots a blank paper, and draws a picture afterwards. Consider following random results. Do you see any pattern?&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_eW8Uemxxm60/TRAbicStC3I/AAAAAAAAAIM/3FpH9wmcapE/s1600/201012-Sharpshooter1.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="34" src="http://2.bp.blogspot.com/_eW8Uemxxm60/TRAbicStC3I/AAAAAAAAAIM/3FpH9wmcapE/s320/201012-Sharpshooter1.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;I don’t. But if you do, you may consider to work in forensics science or as a government agency. &lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;Now let’s try again. I will just rearrange the above random string in a rectangle format. Here is the result:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_eW8Uemxxm60/TRAbvVKxGDI/AAAAAAAAAIQ/IiYBpqaw52Y/s1600/201012-Sharpshooter2.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_eW8Uemxxm60/TRAbvVKxGDI/AAAAAAAAAIQ/IiYBpqaw52Y/s1600/201012-Sharpshooter2.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Suppose the rectangle is a geographical area. If ‘1’ represents places where terrorism breaks out during the last few years. Then we might draw a conclusion that the left of the rectangle is a highly sensitive area. This experiment tells us that the pattern can be misleading. The location of sensitive areas may be just a random string crafted up to deceive authorities.&lt;br /&gt;&lt;br /&gt;Source:      The    Drunkard's Walk:  How Randomness Rules Our  Lives by Leonard       Mlodinow,    Chapter 9 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/11/book-hot-hand-fallacy.html"&gt;Read          the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/12/book-butterfly-effect.html"&gt;Read  the Next Part&lt;/a&gt;].&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------                &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally,    I prefer              audiobooks. It's fun, and I can listen when I'm    doing something else.   It            also makes other activities   (e.g.,  jogging) a lot more   fun.   For      more     detail about   audiobooks,  please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this                 post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason      that may encourage  you to go        for the audiobook version. You can  &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt;    now  for             FREE. Audible offers you a free trial for 14   days.  Even if   you    get    the      book and cancel the subscription   right  away (so  that     you  don't   have   to    pay), you can keep   the  book. And,  don't  worry    if  you lost   the    audiobook    file.  Just  log into   audible.com. You    can  keep   downloading     the  over and    over   again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About        the       summary: It   takes time to finish up a book. And, when  you         do,      sometimes,    you want to review what you learn from  the   book.   If       you do      not make  notes as you read, you  might have  to  go    through   the      book    once again.  This can  be  time-consuming  when    you are     dealing  with a      book. But  you  can  still flip   through the   book   and   locate  what you are        looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to                  locate a specific part of content. Most likely you will have    to        listen        to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the               book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting                  examples and case studies, not included here. Reading the          original      book    would be much more entertaining and     enlightening.      If you  like     the    summary, you may want to get     the original   from    the  source  below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-7132634324218791401?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/7132634324218791401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=7132634324218791401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7132634324218791401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7132634324218791401'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/12/book-confirmation-bias-and-sharp.html' title='[Book] Confirmation Bias and Sharp Shotter Effect'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s72-c/201004-Drunkard.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-5064847839374685619</id><published>2010-11-21T20:46:00.001-07:00</published><updated>2010-12-20T20:18:48.059-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>[Book] Hot hand fallacy</title><content type='html'>&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;br /&gt;&amp;nbsp;Hot hand fallacy states that if performing well in last consecutive trials, a person might perform well in the next trials. In fact, the streak (of well-performance) may just be because of pure chance. If this is the case, the results in the few consecutive trials infer nothing about the next trials.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hot hand fallacy is perceived in various fields such as sport or business. We usually judge people (e.g., basketball players or companies) by statistics. But we usually misled by a hot hand fallacy. When a good player makes several baskets consecutively, we tend to think that his hand is “hot”, and that his teammates should give him the ball. So if an average player makes several baskets consecutively, does is mean that his is better than a good player? No, because if he is better, his statistics would have been better. The fact that he makes a lot of baskets consecutively implies that he might miss a lot of baskets too. We just don’t know when it will happen.&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;What about when you see a company performs above average for 12 consecutive year? Would you think that the managements working for that company were great? Alternatively, would you think that the streak is just a chance? Let's analyze the chance, shall we?&lt;br /&gt;&lt;br /&gt;Let’s flip a coin. What are the chance that you will toss a head? One in two, right? What about 2 heads in rows? One in four right? Now think of head as when a company performs above average and a tail as when a company performs below the average. The chance of one company will perform above average for 12 consecutive months is just the chance of tossing heads for 12 consecutive time, which is 1 in 4096, pretty unlikely, isn’t it? So we might think that the management must be really good to beat the odds of 1 in 4096. Not quite!&lt;br /&gt;&lt;br /&gt;Why not? Don't forget that we have more than one company in the market. Let’s say we have 1000 companies in the market. What are the chance that one of those companies will perform above average for 12 consecutive years? That would be 1 in about 4.62. So it's not very low, right? &lt;br /&gt;&lt;br /&gt;So what exactly does it mean? For a company, it's still hard to perform above the average for 12 consecutive months. But it's not hard to find one of them which performs above the average for 12 consecutive months.&lt;br /&gt;&lt;br /&gt;Source:      The    Drunkard's Walk:  How Randomness Rules Our  Lives by Leonard       Mlodinow,    Chapter 9 [&lt;a href="http://t-issariyakul.blogspot.com/2010/07/book-review-drunkards-walk-how.html"&gt;Read               the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/11/book-people-perception-perfection-and.html"&gt;Read          the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/12/book-confirmation-bias-and-sharp.html"&gt;Read  the Next Part&lt;/a&gt;].&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------                &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally,   I prefer              audiobooks. It's fun, and I can listen when I'm   doing something else.   It            also makes other activities  (e.g.,  jogging) a lot more   fun.   For      more     detail about  audiobooks,  please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this                 post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason      that may encourage  you to go        for the audiobook version. You can  &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt;   now  for             FREE. Audible offers you a free trial for 14  days.  Even if   you    get    the      book and cancel the subscription  right  away (so  that     you  don't   have   to    pay), you can keep  the  book. And,  don't  worry    if  you lost   the    audiobook   file.  Just  log into   audible.com. You    can  keep   downloading    the  over and    over   again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About       the       summary: It   takes time to finish up a book. And, when  you        do,      sometimes,    you want to review what you learn from the   book.   If       you do      not make  notes as you read, you might have  to  go    through   the      book    once again.  This can be  time-consuming  when    you are     dealing  with a      book. But you  can  still flip   through the   book   and   locate  what you are       looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to                 locate a specific part of content. Most likely you will have   to        listen        to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the               book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting                 examples and case studies, not included here. Reading the         original      book    would be much more entertaining and    enlightening.      If you  like     the    summary, you may want to get    the original   from    the  source  below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-5064847839374685619?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/5064847839374685619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=5064847839374685619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5064847839374685619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5064847839374685619'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/11/book-hot-hand-fallacy.html' title='[Book] Hot hand fallacy'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s72-c/201004-Drunkard.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-8280743773173520322</id><published>2010-11-13T11:01:00.005-07:00</published><updated>2011-04-01T01:16:02.485-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>[Book] People, Perception, Perfection, and Randomness</title><content type='html'>&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;br /&gt;&amp;nbsp;Perfection requires perfect perception. It is hard to achieve perfection, since the data we perceives is rarely perfect. So how do we determine whether what we perceive is true. In a more technical term, how do we accept or reject the hypothesis based on what we perceived? In this respect, statisticians resort to "Significant Testing" in order to make decision based on observations. &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;"Human perception is very narrow. There is only about 1 degree of visual angle around the retina center which has high resolution. Outside this region, the resolution drops off sharply. Therefore, we tend to move our eyes a lot to compensate for the narrow visual area."&lt;/blockquote&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;People cannot perceive randomness when they see it, and they cannot produce it when they try. For example, if a random number generator generates several consecutive ‘0’, how much would you trust that generator? When Apple first introduced a shuffle function with true random in their iPod, some songs came up few times in a short playlist. People complained that the shuffle function isn't truly random. Apple ended up using less random function to make people feel that the shuffle function was more random. People cannot differentiate between a process being random, and the random outcomes of the process.&lt;br /&gt;&lt;br /&gt;Source:      The    Drunkard's Walk:  How Randomness Rules Our  Lives by Leonard       Mlodinow,    Chapter 9 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/10/dawn-of-statistics.html"&gt;Read          the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/11/book-hot-hand-fallacy.html"&gt;Read  the Next Part&lt;/a&gt;].&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------                &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally,  I prefer              audiobooks. It's fun, and I can listen when I'm  doing something else.   It            also makes other activities (e.g.,  jogging) a lot more   fun.   For      more     detail about audiobooks,  please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this                 post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason      that may encourage  you to go        for the audiobook version. You can  &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt;  now  for             FREE. Audible offers you a free trial for 14 days.  Even if   you    get    the      book and cancel the subscription right  away (so  that     you  don't   have   to    pay), you can keep the  book. And,  don't  worry    if  you lost   the    audiobook   file. Just  log into   audible.com. You    can  keep   downloading    the over and    over   again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About       the      summary: It   takes time to finish up a book. And, when  you       do,      sometimes,    you want to review what you learn from the  book.   If       you do      not make  notes as you read, you might have to  go    through   the      book    once again.  This can be time-consuming  when    you are     dealing  with a      book. But you can  still flip   through the   book   and   locate  what you are      looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to                locate a specific part of content. Most likely you will have  to        listen        to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the               book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting                examples and case studies, not included here. Reading the        original      book    would be much more entertaining and   enlightening.      If you  like     the    summary, you may want to get   the original   from    the  source  below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-8280743773173520322?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/8280743773173520322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=8280743773173520322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8280743773173520322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8280743773173520322'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/11/book-people-perception-perfection-and.html' title='[Book] People, Perception, Perfection, and Randomness'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s72-c/201004-Drunkard.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-2437632182929890753</id><published>2010-10-21T04:10:00.005-06:00</published><updated>2011-04-01T01:16:57.763-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>[Book] The Dawn of Statistics</title><content type='html'>&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br /&gt;Statistics began as early as 1066, when William the conqueror, the Duke of Normandy, conquered and became the King of England. He would like to find out what exactly he did conquer and how much tax he can collect. So he sent out two groups of inspectors to men to do some survey on land and livestock. At that time, people believed that it is the God’s will to let people live or die. So, a survey of people as well as how they born and die were forbidden. As time changes, people changes. In later time, people began to believe that study of population is not against the God’s will, but is the way to understand him better. In the 16th century, the London Bill of Mortality was drafted. It was the first attempts to record people’s birth and death.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div style="text-align: center;"&gt;&lt;blockquote&gt;&lt;blockquote&gt;"Statistics can provide insights into the system  from which the statistics are derived."&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br /&gt;Source:      The    Drunkard's Walk:  How Randomness Rules Our  Lives by Leonard       Mlodinow,    Chapter 8 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/10/book-measurement-and-law-of-errors.html"&gt;Read          the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/11/book-people-perception-perfection-and.html"&gt;Read  the Next Part&lt;/a&gt;].&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;---------------------------------------------------------------------------------------------------------                &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer              audiobooks. It's fun, and I can listen when I'm doing something else.   It            also makes other activities (e.g., jogging) a lot more   fun.   For      more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this                 post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason      that may encourage  you to go        for the audiobook version. You&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt; can  &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now  for             FREE. Audible offers you a free trial for 14 days. Even if   you    get    the      book and cancel the subscription right away (so  that     you  don't   have   to    pay), you can keep the book. And,  don't  worry    if  you lost   the    audiobook   file. Just log into   audible.com. You    can  keep   downloading    the over and   over   again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About       the     summary: It   takes time to finish up a book. And, when  you       do,     sometimes,    you want to review what you learn from the  book.   If      you do      not make  notes as you read, you might have to  go   through   the      book    once again.  This can be time-consuming  when   you are     dealing  with a      book. But you can  still flip  through the   book   and   locate  what you are      looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to               locate a specific part of content. Most likely you will have to        listen        to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the               book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting               examples and case studies, not included here. Reading the       original      book    would be much more entertaining and  enlightening.      If you  like     the    summary, you may want to get  the original   from    the  source  below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-2437632182929890753?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/2437632182929890753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=2437632182929890753' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/2437632182929890753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/2437632182929890753'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/10/dawn-of-statistics.html' title='[Book] The Dawn of Statistics'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s72-c/201004-Drunkard.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-5418275822955321827</id><published>2010-10-02T00:50:00.002-06:00</published><updated>2011-04-01T01:18:05.749-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>[Book] Measurement and the Law of Errors</title><content type='html'>&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;Ancient Experiment: Science or Art&lt;/b&gt;&lt;br /&gt;In the old time, scientists perform experiment, and make the best intuitive guess of what the result should be. And, if they were to repeat the experiment, they could get totally different results. They just lacked a standard for measurement. &lt;br /&gt;In other words, they use feeling rather than scientific method. Is this science? Or, is it art? “Any variation within a margin of error should be ignored.”&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;The Law of Errors: The Bell Curve&lt;/b&gt;&lt;br /&gt;Given a set of observations, Pascal tells us how expected value of the observations can be computed. But the expectation is just what you expect, not the real observations. The real one could deviate from the expectation. Now, the question is “by how much the observations deviate from the expectation?” &lt;br /&gt;&lt;br /&gt;Decades of study have shown that the deviation pattern follows what mathematicians call the normal distribution, often referred to as the Bell Curve due to its shape. The Bell Curve is characterized by two parameters: Expectation (what to expect of the observation) and Standard deviation (How much the observations deviate from the expectation, i.e., how reliable the expectation is). &lt;br /&gt;&lt;br /&gt;&lt;b&gt;So What? &lt;/b&gt;&lt;br /&gt;Modern scienticfic measurement is not based on feeling. It iterates the same experiment for several times, and finds a valid representation. In most cases, expectation is a valid representation. And, we can tell how reliable the expectation is by looking at the standard deviation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source:     The    Drunkard's Walk:  How Randomness Rules Our  Lives by Leonard      Mlodinow,    Chapter 7 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/09/book-false-positives-and-positive.html"&gt;Read         the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/10/dawn-of-statistics.html"&gt;Read  the Next Part&lt;/a&gt;]. &lt;br /&gt;---------------------------------------------------------------------------------------------------------               &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer             audiobooks. It's fun, and I can listen when I'm doing something else.  It            also makes other activities (e.g., jogging) a lot more  fun.   For      more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this                post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason      that may encourage  you to go       for the audiobook version. You&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt; can  &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now  for            FREE. Audible offers you a free trial for 14 days. Even if  you    get    the      book and cancel the subscription right away (so that     you  don't   have   to    pay), you can keep the book. And, don't  worry    if  you lost   the    audiobook   file. Just log into  audible.com. You    can  keep   downloading    the over and   over  again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About       the     summary: It  takes time to finish up a book. And, when  you       do,     sometimes,   you want to review what you learn from the  book.   If      you do     not make  notes as you read, you might have to  go   through   the     book    once again.  This can be time-consuming  when   you are    dealing  with a      book. But you can  still flip  through the   book  and   locate  what you are      looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to              locate a specific part of content. Most likely you will have to       listen        to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the              book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting              examples and case studies, not included here. Reading the      original      book    would be much more entertaining and enlightening.      If you  like     the    summary, you may want to get the original   from    the  source  below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-5418275822955321827?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/5418275822955321827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=5418275822955321827' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5418275822955321827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5418275822955321827'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/10/book-measurement-and-law-of-errors.html' title='[Book] Measurement and the Law of Errors'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s72-c/201004-Drunkard.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-5882410458490950403</id><published>2010-09-28T05:14:00.002-06:00</published><updated>2011-04-01T01:18:44.346-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>[Book] False Positives and Positive Fallacies</title><content type='html'>&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Conditional Probability&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;We learned earlier that more details can lead to more restriction and reduce the corresponding probability. More specifically, the probability of event A is always greater than the probability of events A and B.&lt;br /&gt;&lt;br /&gt;But details do not always reduce the probability. It can increase the probability by shrinking the sample space. We can be more sure that a specific outcome will occur if we can cross off some of the sample space. This is known as “Bayes’ Theorem”.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Bayes’ Theorem&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If you recall, Bernoulli considered the question&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;“Given a specified number of white and black balls in an urn, what is the probability of drawing a black ball?” &lt;/blockquote&gt;&lt;br /&gt;There is a minister and mathematician, who was interested in the following problem&lt;br /&gt;&lt;br /&gt;“Given that one or more balls has been drawn, what can be said about the number of white and black balls in the urn?”&lt;br /&gt;&lt;br /&gt;His name is Thomas Bay. He coined two terms.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt; Prior probability: The basic probability or initial estimation of an event&lt;/li&gt;&lt;li&gt;Posterior probability: The probability of the same event, when given more information (e.g., some of the balls are removed).&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;False Positive&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Consider an HIV testing scenario. With 10,000 test subjects, suppose the result is shown below: &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_eW8Uemxxm60/TKCDiKmqgTI/AAAAAAAAAII/qPLQg6HG7ys/s1600/201009-Drunkard-FalsePositive.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="97" src="http://2.bp.blogspot.com/_eW8Uemxxm60/TKCDiKmqgTI/AAAAAAAAAII/qPLQg6HG7ys/s400/201009-Drunkard-FalsePositive.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Suppose your blood test is HIV positive. What is the chance that you are not infected? It’s not uncommon to think that the chance is pretty slim (i.e., 10 in 10,000 or 1%). And, you might think that you will not live long enough to see your grandchild.&lt;br /&gt;&lt;br /&gt;This is another fallacy. Look at what you are considering. You are comparing false positive test to all test subjects regardless of their test results. What you should really looking for is as follows&lt;br /&gt;&lt;blockquote&gt;“Among those whose blood test is positive, how many people are not infected?”&lt;/blockquote&gt;Then, you will see that the error is 10 (false positive) in 10+1 (blood test is positive). The error is around 91%! On the other hand, there is no chance (0), that you will be infected if you blood test is negative. So you might consider taking the test again, if you blood test might turn out positive. But you do not need to take another test if your blood test is negative. The test result per se is necessary but not sufficient. We need to factor in the relevant sample space.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Fallacy: Prosecutor’s Fallacy&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Prosecutor’s fallacy is statistical misconceptions when making legal arguments. Common prosecutor’s fallacy includes, for example, drug test, and DNA test.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Source:     The   Drunkard's Walk:  How Randomness Rules Our  Lives by Leonard     Mlodinow,    Chapter 6 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/09/probability-ratio-and-law-of-large.html"&gt;Read        the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/10/book-measurement-and-law-of-errors.html"&gt;Read  the Next Part&lt;/a&gt;]. &lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------              &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer            audiobooks. It's fun, and I can listen when I'm doing something else. It            also makes other activities (e.g., jogging) a lot more fun.   For      more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this               post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason      that may encourage  you to go      for the audiobook version. You&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt; can  &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now  for           FREE. Audible offers you a free trial for 14 days. Even if  you   get    the      book and cancel the subscription right away (so that    you  don't   have   to    pay), you can keep the book. And, don't worry    if  you lost   the    audiobook   file. Just log into audible.com. You    can  keep   downloading    the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About       the     summary: It takes time to finish up a book. And, when  you       do,     sometimes,  you want to review what you learn from the  book.   If      you do    not make  notes as you read, you might have to  go   through   the    book    once again.  This can be time-consuming  when   you are   dealing  with a      book. But you can  still flip  through the   book and   locate  what you are      looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to             locate a specific part of content. Most likely you will have to      listen        to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the             book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting             examples and case studies, not included here. Reading the     original      book    would be much more entertaining and enlightening.     If you  like     the    summary, you may want to get the original  from    the  source  below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-5882410458490950403?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/5882410458490950403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=5882410458490950403' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5882410458490950403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5882410458490950403'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/09/book-false-positives-and-positive.html' title='[Book] False Positives and Positive Fallacies'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s72-c/201004-Drunkard.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-7130344092225496667</id><published>2010-09-19T09:23:00.002-06:00</published><updated>2010-09-30T05:50:45.005-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>Probability, Ratio, and the Law of Large Numbers</title><content type='html'>&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;b&gt;Probability and Ratio&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;You probably know about probability and ratio. Suppose I put 70 of black balls and 30 of white balls in an urn. General statements would be &lt;br /&gt;&lt;ul&gt;&lt;li&gt;The &lt;i&gt;Ratio&lt;/i&gt; of black balls (when comparing to all the balls in the urn) is 7:10&lt;/li&gt;&lt;li&gt;If I draw a ball from the urn, the &lt;i&gt;Probability &lt;/i&gt;that I would draw a black ball would be 7 in 10 &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Are They Different?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Ratio and Probability look very similar. For the above example, both the ratio and the probability is 7 in 10. But, in fact, they differs:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;Ratio &lt;/i&gt;is an act in the past. It is deterministic and measurable. You put 70 black balls in an urn. That's make the ratio 7 in 10.&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&lt;i&gt;Probability &lt;/i&gt;is an act in the future. It is probabilistic and uncertain. The chance to draw a black ball is 7 in 10. But it doesn't mean that, if you draw 10 balls, 7 of them would be black. &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;This definition discrepancy is filled up by what mathematicians known as the Law of Large Number. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Law of Large Number&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;"It is always possible to have a finite number of observations such that the observed probability matches closely with the underlying ratio."&lt;/blockquote&gt;The Law of Large Number was stated without proof by Gerolamo Cardano in the 15th century, and was formally proved by Jacob Bernoulli in the 17th century. It is therefore also known as the "Bernoulli's Theorem" or a "Golden Theorem". &lt;br /&gt;&lt;br /&gt;Loosely speaking, the law of large number say that the probability and the ratio would be the same if you carry out a sufficient large number of experiments. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Does It Have Implication in Real Life?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Yes. Here is one of them.&lt;br /&gt;&lt;br /&gt;Suppose you are good at something. But you keep failing due to the randomness (i.e., bad luck). Then you should double (or triple) your effort (number of trials). Your effort (i.e., trial) will wipe out the bad luck (i.e., randomness), and people will see your true performance (i.e., ratio). &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source:    The   Drunkard's Walk:  How Randomness Rules Our  Lives by Leonard    Mlodinow,    Chapter 5 [&lt;a href="http://t-issariyakul.blogspot.com/2010/07/book-review-drunkards-walk-how.html"&gt;Read            the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/09/gods-and-expectation.html"&gt;Read       the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/09/book-false-positives-and-positive.html"&gt;Read  the Next Part&lt;/a&gt;]. &lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------             &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer           audiobooks. It's fun, and I can listen when I'm doing something else. It           also makes other activities (e.g., jogging) a lot more fun.  For      more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this              post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason      that may encourage  you to go     for the audiobook version. You&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt; can  &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now  for          FREE. Audible offers you a free trial for 14 days. Even if  you  get    the      book and cancel the subscription right away (so that   you  don't   have   to    pay), you can keep the book. And, don't worry   if  you lost   the    audiobook   file. Just log into audible.com. You   can  keep   downloading    the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About      the     summary: It takes time to finish up a book. And, when  you      do,     sometimes,  you want to review what you learn from the book.   If      you do    not make  notes as you read, you might have to go   through   the    book    once again.  This can be time-consuming when   you are   dealing  with a      book. But you can  still flip through the   book and   locate  what you are      looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to            locate a specific part of content. Most likely you will have to     listen        to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the            book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting            examples and case studies, not included here. Reading the    original      book    would be much more entertaining and enlightening.    If you  like     the    summary, you may want to get the original from    the  source  below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-7130344092225496667?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/7130344092225496667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=7130344092225496667' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7130344092225496667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7130344092225496667'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/09/probability-ratio-and-law-of-large.html' title='Probability, Ratio, and the Law of Large Numbers'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s72-c/201004-Drunkard.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-4128574492885353810</id><published>2010-09-17T23:50:00.001-06:00</published><updated>2010-09-17T23:50:18.155-06:00</updated><title type='text'>A new blogspot test message no. 5 on Sept. 18</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-4128574492885353810?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/4128574492885353810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=4128574492885353810' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4128574492885353810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4128574492885353810'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/09/new-blogspot-test-message-no-5-on-sept.html' title='A new blogspot test message no. 5 on Sept. 18'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-2674106463247883509</id><published>2010-09-16T01:22:00.002-06:00</published><updated>2011-04-01T01:19:42.364-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>Gods and Expectation</title><content type='html'>&lt;a href="http://www.amazon.com/Drunkards-Walk-Randomness-Rules-Vintage/dp/0307275175?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;b&gt;Blaise Pascal&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Blaise Pascal is known as the person who invented the Pascal's Triangle, whose elements are the number of ways to arrange N objects in M places.&lt;br /&gt;&lt;br /&gt;But, the story that drew my interest is that he is also the inventor of expectation. And, even more interesting is how he came up with the concept of expectation. Here we go....&lt;a href="http://www.blogger.com/goog_1980467434" target="_blank"&gt;&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=ns2ultteeiss-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0452295432" style="border: medium none ! important; margin: 0px ! important; padding: 0px ! important;" width="1" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;Gods, Pious, and Expectation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Pascal conceived the expectation concept when he pondered whether he should believe in Gods. This is what he thought. If God exists the payoff for being pious is infinity. However, if God does not exist, the payoff will be insignificant. To account for the uncertainty of Gods' existance, he multiplied the probability that God exists and does not exist with correspondent payoffs, and added both the products together. That is what he called "expectation". Since the result was infinity, he concluded that regardless of whether God exists everybody should be pious.&lt;br /&gt;&lt;br /&gt;Source:    The   Drunkard's Walk:  How Randomness Rules Our Lives by Leonard    Mlodinow,    Chapter 4 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/09/birthday-problem.html"&gt;Read      the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/09/probability-ratio-and-law-of-large.html#more"&gt;Read  the Next Part&lt;/a&gt;]. &lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------            &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer          audiobooks. It's fun, and I can listen when I'm doing something else. It          also makes other activities (e.g., jogging) a lot more fun. For      more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this             post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason      that may encourage  you to go    for the audiobook version. You&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt; can  &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now  for         FREE. Audible offers you a free trial for 14 days. Even if  you get    the      book and cancel the subscription right away (so that  you  don't   have   to    pay), you can keep the book. And, don't worry  if  you lost   the    audiobook   file. Just log into audible.com. You  can  keep   downloading    the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About     the     summary: It takes time to finish up a book. And, when  you     do,     sometimes,  you want to review what you learn from the book.  If      you do    not make  notes as you read, you might have to go  through   the    book    once again.  This can be time-consuming when  you are   dealing  with a      book. But you can  still flip through the  book and   locate  what you are      looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to           locate a specific part of content. Most likely you will have to    listen        to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the           book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting           examples and case studies, not included here. Reading the   original      book    would be much more entertaining and enlightening.   If you  like     the    summary, you may want to get the original from   the  source  below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-2674106463247883509?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/2674106463247883509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=2674106463247883509' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/2674106463247883509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/2674106463247883509'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/09/gods-and-expectation.html' title='Gods and Expectation'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s72-c/201004-Drunkard.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-8885095121955623232</id><published>2010-09-15T03:44:00.000-06:00</published><updated>2010-09-15T03:44:47.077-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>Update on NS 2.35 Installation: Command not Found</title><content type='html'>During the last week, I have got few email about my previous NS2 installation.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Error Message&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;After the installation some one type "ns" and get the following error&lt;br /&gt;&lt;i&gt;&amp;gt;&amp;gt;ns&lt;/i&gt;&lt;i&gt;bash: ns: command not found&lt;/i&gt;&lt;br /&gt;This could be because you have not set the &lt;i&gt;$PATH&lt;/i&gt; variable. Therefore, the OS does not know where to look for the command "&lt;i&gt;ns&lt;/i&gt;".&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;Has NS2 Been Installed Correctly?&lt;/b&gt;&lt;br /&gt;Here is what you have to do&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Go to your directory ns2&lt;/li&gt;&lt;li&gt;If you type "&lt;i&gt;ls&lt;/i&gt;", you should see the file "&lt;i&gt;ns.exe&lt;/i&gt;"&lt;/li&gt;&lt;li&gt;Type "&lt;i&gt;./ns&lt;/i&gt;".&lt;/li&gt;&lt;li&gt;NS2 should run correctly. &lt;/li&gt;&lt;/ol&gt;&lt;b&gt;What If I Want to Run NS2 in Different Directory&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Well, you will have to make the command "&lt;i&gt;ns&lt;/i&gt;" globally available. There are two way to achieve this&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Set the &lt;i&gt;$PATH &lt;/i&gt;variable in the file &lt;i&gt;.bashrc&lt;/i&gt; located in your home directory (See the slide and the previous &lt;a href="http://www.ns2ultimate.com/post/504833450/linux-initialization-files-bash-profile-and-bashrc"&gt;post&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;Create a symbolic link to the OS search path such as "/usr/local/bin". To do this, type the followings:&lt;/li&gt;&lt;/ol&gt;&lt;i&gt;&amp;gt;&amp;gt;cd /usr/local/bin&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;gt;&amp;gt;ln –s /home/T_Bear/ns-allinone-2.35-RC3/ns-2.35/ns.exe&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;This statement works for my system. You might have to adjust the directory accordingly.&lt;br /&gt;Note: "&lt;i&gt;ln -s&lt;/i&gt;" is a command which creates a symbolic link to the following input argument to the current directory [see &lt;a href="http://en.wikipedia.org/wiki/Ln_%28Unix%29"&gt;here &lt;/a&gt;for more detail]&lt;br /&gt;NS2 should run now correctly.&lt;br /&gt;NS 2.35 Installation Slides&lt;br /&gt;I updated the slide accordingly. Please have a look below:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.slideshare.net/TBear76/ns235-installation-3395974" title="Ns-2.35 Installation"&gt;Ns-2.35  Installation&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;object height="355" width="425"&gt; &lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=20100311-ns2installation-100311052832-phpapp02&amp;amp;stripped_title=ns235-installation-3395974" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="allowScriptAccess" value="always" /&gt;&lt;embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=20100311-ns2installation-100311052832-phpapp02&amp;amp;stripped_title=ns235-installation-3395974" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;br /&gt;View more &lt;a href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a href="http://www.slideshare.net/TBear76"&gt;Teerawat Issariyakul&lt;/a&gt;.&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-8885095121955623232?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/8885095121955623232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=8885095121955623232' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8885095121955623232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8885095121955623232'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/09/update-on-ns-235-installation-command.html' title='Update on NS 2.35 Installation: Command not Found'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-5466585352698233742</id><published>2010-09-10T06:08:00.003-06:00</published><updated>2011-04-01T01:21:44.260-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>The Birthday Problem</title><content type='html'>&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;Given that everyone’s birthday is absolutely random, how many people&lt;br /&gt;must be in the room such that there is more than even chance (at least&lt;br /&gt;50%) that&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Another person would have the same birthday as you (ANS: 365/2 =&lt;br /&gt;183 persons)&lt;/li&gt;&lt;li&gt;Two persons would have the same birthday (ANS: 23 persons)&lt;/li&gt;&lt;/ul&gt;The difference is that you fix the date in the former. But you let the date vary in the latter. It is obvious that you would need less people in the latter than in the former. But the surprising result is that it is a lot less.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;This result can explain few strange and embarrassing incidents. Canadian lottery officials planned to awards cars to five people who own winning lottery tickets. The system ended up generating the same number twice. The person who has that number won two cars.&lt;br /&gt;&lt;br /&gt;Given the number of the first winning lottery, the chance that the second lottery will repeat the first one can be made very slim. However, the chance that two winning tickets are the same is not. &lt;br /&gt;&lt;br /&gt;Source:   The   Drunkard's Walk:  How Randomness Rules Our Lives by Leonard   Mlodinow,    Chapter 3 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/09/sample-space-and-gambling.html"&gt;Read     the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/09/gods-and-expectation.html"&gt;Read  the Next Part&lt;/a&gt;]. &lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------           &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer         audiobooks. It's fun, and I can listen when I'm doing something else. It         also makes other activities (e.g., jogging) a lot more fun. For     more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this            post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason     that may encourage  you to go    for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for         FREE. Audible offers you a free trial for 14 days. Even if you get    the      book and cancel the subscription right away (so that you  don't   have   to    pay), you can keep the book. And, don't worry if  you lost   the    audiobook   file. Just log into audible.com. You can  keep   downloading    the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About    the     summary: It takes time to finish up a book. And, when  you    do,     sometimes,  you want to review what you learn from the book. If      you do    not make  notes as you read, you might have to go through   the    book    once again.  This can be time-consuming when you are   dealing  with a      book. But you can  still flip through the book and   locate  what you are      looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to          locate a specific part of content. Most likely you will have to   listen        to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the          book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting          examples and case studies, not included here. Reading the  original      book    would be much more entertaining and enlightening.  If you  like     the    summary, you may want to get the original from  the  source  below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-5466585352698233742?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/5466585352698233742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=5466585352698233742' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5466585352698233742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5466585352698233742'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/09/birthday-problem.html' title='The Birthday Problem'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-6587986000933564311</id><published>2010-09-06T20:57:00.000-06:00</published><updated>2010-09-06T20:57:10.715-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>C++ and OTcl Linkage: Result — Passing Values between C++ and OTcl domains</title><content type='html'>ote: The content in this series is extracted from the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt;,     Introduction to          Network Simulator NS2. You   may have to read chapter 3     of the  &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt; for better          understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction &lt;/b&gt;&lt;br /&gt;This post is   the second   post     in the series on C++ and OTcl Linkage:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;a href="http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages"&gt;1.         Why Two Languages?&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Binding C++ and OTcl classes [&lt;a href="http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;Main         steps&lt;/a&gt;, &lt;a href="http://www.ns2ultimate.com/post/720424694/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;The       mechanism&lt;/a&gt;].&lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. &lt;a href="http://www.ns2ultimate.com/post/774980608/c-and-otcl-linkage-binding-variables"&gt;Variable     binding&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 4. OTcl  command:    Invoking C++ statements from    the  OTcl domain [ &lt;a href="http://www.ns2ultimate.com/post/801303612/c-and-otcl-linkage-otcl-commands-getting-started"&gt;Getting    Started&lt;/a&gt;, &lt;a href="http://www.ns2ultimate.com/post/925688244/c-and-otcl-linkage-otcl-commands-invocation"&gt;Invocation   process&lt;/a&gt;, &lt;a href="http://www.ns2ultimate.com/post/961476696/c-and-otcl-linkage-otcl-commands-binding-otcl-and"&gt;Binding  OTcl and C++ &lt;/a&gt;]&lt;br /&gt;&amp;nbsp;&amp;nbsp; 5. &lt;a href="http://www.ns2ultimate.com/post/1035505402/c-and-otcl-linkage-eval-invoking-otcl-statements"&gt;Eval: Invoking OTcl statements from the C++ domain&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 6. Result: Passing Values between C++ and OTcl domains&lt;br /&gt;&amp;nbsp;&amp;nbsp; 7.  Object  binding     and  object  construction process.&lt;br /&gt;In the previous &lt;a href="http://www.ns2ultimate.com/post/925688244/c-and-otcl-linkage-otcl-commands-invocation"&gt;post&lt;/a&gt;,   I blogged about an approach to invoke OTcl statements from the C++ domain using function &lt;i&gt;evalc(...)&lt;/i&gt; and &lt;i&gt;evalf(...)&lt;/i&gt;. This post discusses the way to pass results between C++ and OTcl domains using function &lt;i&gt;result(...)&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.slideshare.net/TBear76/20100905-ns2-passing-values-between-c-and-otcl" title="Passing Values Between C++ and OTcl"&gt;Passing Values Between C++ and OTcl&lt;/a&gt;&lt;/b&gt; &lt;br /&gt;&lt;object height="355" id="__sse5142372" width="425"&gt; &lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=20100905-otcl-result-new-100906214515-phpapp02&amp;amp;stripped_title=20100905-ns2-passing-values-between-c-and-otcl" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="allowScriptAccess" value="always" /&gt;&lt;embed name="__sse5142372" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=20100905-otcl-result-new-100906214515-phpapp02&amp;amp;stripped_title=20100905-ns2-passing-values-between-c-and-otcl" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="355" width="425"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;br /&gt;View more &lt;a href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a href="http://www.slideshare.net/TBear76"&gt;Teerawat Issariyakul&lt;/a&gt;.&lt;br /&gt;======================================================&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;T. Issaraiyakul and      E. Hossain,  “Introduction to Network         Simulator NS2”, Springer  2009.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You may also find lecture notes and other resource at the following               website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-6587986000933564311?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/6587986000933564311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=6587986000933564311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6587986000933564311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6587986000933564311'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/09/c-and-otcl-linkage-result-passing.html' title='C++ and OTcl Linkage: Result — Passing Values between C++ and OTcl domains'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-7923833806248311717</id><published>2010-09-01T03:01:00.004-06:00</published><updated>2011-04-01T01:23:41.607-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>Sample Space and Gambling</title><content type='html'>&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Dawn of Sample Sapce &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Gerolamo  Cardano was an physician, a gambler, and a mathematician. Early in his  career, he discovered the concept of sample space, and tried to publish  the concept in a book named “The book on Games of Chance”. The  manuscript was rejected.&lt;br /&gt;&lt;br /&gt;He did not try to published it again. Instead,  he used the concept to make a fortune out of gambling. The book was  published after his death in 1663. Here is the quote from the book. &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;“The possible outcomes of a random process can be thought of as a point  in the space.”&lt;/blockquote&gt;&lt;br /&gt;This space of all possible outcomes is later known to as “sample space”.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Combination, Permutation, and Gambling&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To see how sample space helps in gambling, let’s look at following  examples:&lt;br /&gt;&lt;b&gt;&lt;br /&gt;A Game of Flipping Two Coins&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Let flips two coin and bet on the number of heads. There can be no head,  one head, and two head. Before the time of sample space, it was  believed that each of these 3 outcomes are equally probable.&lt;br /&gt;&lt;br /&gt;If you look closely, there is one way to get no head (tail-tail) and one way to get two heads (head-head). But there are two ways to get one head (head-tail  and tail-head). If you are a time traveller, you should try to return  to 15th century and bet more on one head. It is more likely to win when  you bet on the one-head outcome. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;A Game of Throwing Three Dice&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Let throw three dices. There are 6 ways to get a total of 9, and 6 ways  to get a total of 10. One might think that getting 9 and getting 10 are  equally probable. But in fact, the total of 10 occurs more frequent. The  reason is that the combination of 6+3+1 = 6+1+3 = ... = 10 occurs more  frequent that of 3+3+3 = 9. This is what mathematician call "permutation''.&lt;br /&gt;&lt;br /&gt;"The chance of an event depends on the number of ways in which it can  occurs.''&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source:   The   Drunkard's Walk: How Randomness Rules Our Lives by Leonard   Mlodinow,    Chapter 3 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read         the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/08/interpretation-of-randomness.html"&gt;Read    the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/09/birthday-problem.html"&gt;Read  the Next Part&lt;/a&gt;]. &lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------          &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer        audiobooks. It's fun, and I can listen when I'm doing something else. It        also makes other activities (e.g., jogging) a lot more fun. For    more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this           post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason    that may encourage  you to go    for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for        FREE. Audible offers you a free trial for 14 days. Even if you get   the      book and cancel the subscription right away (so that you don't   have   to    pay), you can keep the book. And, don't worry if you lost   the    audiobook   file. Just log into audible.com. You can keep   downloading    the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About   the     summary: It takes time to finish up a book. And, when  you   do,     sometimes,  you want to review what you learn from the book. If     you do    not make  notes as you read, you might have to go through  the    book    once again.  This can be time-consuming when you are  dealing  with a      book. But you can  still flip through the book and  locate  what you are      looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to         locate a specific part of content. Most likely you will have to  listen        to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the         book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting         examples and case studies, not included here. Reading the original      book    would be much more entertaining and enlightening. If you  like     the    summary, you may want to get the original from the  source  below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-7923833806248311717?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/7923833806248311717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=7923833806248311717' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7923833806248311717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7923833806248311717'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/09/sample-space-and-gambling.html' title='Sample Space and Gambling'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-123914411108492804</id><published>2010-08-30T00:42:00.001-06:00</published><updated>2010-09-18T00:03:18.067-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>C++ and OTcl Linkage: Eval — Invoking OTcl statements from the C++ domain</title><content type='html'>Note: The content in this series is extracted from the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt;,     Introduction to         Network Simulator NS2. You   may have to read chapter 3     of the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt; for better         understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This post is   the second   post    in the series on C++ and OTcl Linkage:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;a href="http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages"&gt;1.        Why Two Languages?&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Binding C++ and OTcl classes [&lt;a href="http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;Main        steps&lt;/a&gt;, &lt;a href="http://www.ns2ultimate.com/post/720424694/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;The      mechanism&lt;/a&gt;].&lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. &lt;a href="http://www.ns2ultimate.com/post/774980608/c-and-otcl-linkage-binding-variables"&gt;Variable    binding&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 4. OTcl  command:    Invoking C++ statements from   the  OTcl domain [ &lt;a href="http://www.ns2ultimate.com/post/801303612/c-and-otcl-linkage-otcl-commands-getting-started"&gt;Getting   Started&lt;/a&gt;, &lt;a href="http://www.ns2ultimate.com/post/925688244/c-and-otcl-linkage-otcl-commands-invocation"&gt;Invocation  process&lt;/a&gt;, &lt;a href="http://www.ns2ultimate.com/post/961476696/c-and-otcl-linkage-otcl-commands-binding-otcl-and"&gt;Binding OTcl and C++ &lt;/a&gt;]&lt;br /&gt;&amp;nbsp;&amp;nbsp; 5. Eval  and  result:      Invoking OTcl statements from the C++ domain&lt;br /&gt;&amp;nbsp;&amp;nbsp; 6.  Object  binding     and  object construction process.&lt;br /&gt;In the previous &lt;a href="http://www.ns2ultimate.com/post/925688244/c-and-otcl-linkage-otcl-commands-invocation"&gt;post&lt;/a&gt;,  I blogged about an approach to invoke C++ statements from the OTcl  domain. This post discuss the reverse: Invoking OTcl statements from the  C++ domain.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt; &lt;br /&gt;&lt;object height="355" id="__sse5072524" width="425"&gt; &lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=20100828-otcl-eval-100828004858-phpapp01&amp;amp;stripped_title=20100828" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="allowScriptAccess" value="always" /&gt;&lt;embed name="__sse5072524" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=20100828-otcl-eval-100828004858-phpapp01&amp;amp;stripped_title=20100828" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="355" width="425"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;br /&gt;View more &lt;a href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a href="http://www.slideshare.net/TBear76"&gt;Teerawat Issariyakul&lt;/a&gt;.&lt;br /&gt;======================================================&lt;br /&gt;T. Issaraiyakul and      E. Hossain,  “Introduction to Network        Simulator NS2”, Springer  2009.     Buy it now from&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/product/0387717595?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0387717595" target="_blank" title="Buy the NS2 Book from Amazon"&gt;&lt;img height="20" src="http://media.tumblr.com/tumblr_kyl6clIbiM1qamw08.jpg" width="65" /&gt;&lt;/a&gt;&lt;br /&gt;You may also find lecture notes and other resource at the following              website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-123914411108492804?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/123914411108492804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=123914411108492804' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/123914411108492804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/123914411108492804'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/08/c-and-otcl-linkage-eval-invoking-otcl.html' title='C++ and OTcl Linkage: Eval — Invoking OTcl statements from the C++ domain'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-4785342167891201325</id><published>2010-08-27T05:55:00.002-06:00</published><updated>2011-04-01T01:24:43.596-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>The Interpretation of Randomness</title><content type='html'>&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;br /&gt;How much do you know about randomness? What does it mean by a random process? Well, a lot of people would say that a random process is a process whose outcomes cannot be predicted. Clean and simple, and nice for a lot of people. &lt;br /&gt;&lt;br /&gt;But this definition is quite vague to mathematician. Mathematicians have something for preciseness. When you say a circle is round, they would ask how round, and you would not know how to reply to them. But if you ask a mathematician how round is a circle, the answer would be 3.14 x R x R where R is the radius.&lt;br /&gt;&lt;br /&gt;Likewise, the above definition for a random process is not precise enough. For mathematician, there are at least two interpretation for a random process:&lt;br /&gt;&lt;br /&gt;(i) Frequency interpretation: A process is said to be able to generate random numbers when the observed outcome conform to the underlying probability.&lt;br /&gt;&lt;br /&gt;(ii) Subjective interpretation: Observed outcomes are said to be random if they cannot be predicted.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;A perfect dice creates random numbers from 1 to 6 according to the former interpretation since, in a long run, the outcomes would be each of the numbers (i.e., 1 to 6) with probability 1/6. However, since the outcomes are predictable, they are not random by the latter definition.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On the other hand, a real dice is not perfect. The probability at which a dice would land on each side is not 1 in 6. It may take millions or billions of observation. But finally, you will observe that one side would be more favorable than the others. As a result, throwing a real dice is not random by the former definition. But it is by the latter, since the outcomes are not predictable.&lt;br /&gt;&lt;br /&gt;Source:   The  Drunkard's Walk: How Randomness Rules Our Lives by Leonard   Mlodinow,   Chapter 3 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/08/greek-roman-and-mathematics.html"&gt;Read   the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/09/sample-space-and-gambling.html"&gt;Read  the Next Part&lt;/a&gt;]. &lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------         &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer       audiobooks. It's fun, and I can listen when I'm doing something else. It       also makes other activities (e.g., jogging) a lot more fun. For   more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this          post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason   that may encourage  you to go    for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for       FREE. Audible offers you a free trial for 14 days. Even if you get  the      book and cancel the subscription right away (so that you don't  have   to    pay), you can keep the book. And, don't worry if you lost  the    audiobook   file. Just log into audible.com. You can keep  downloading    the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About  the     summary: It takes time to finish up a book. And, when  you  do,     sometimes,  you want to review what you learn from the book. If    you do    not make  notes as you read, you might have to go through the    book    once again.  This can be time-consuming when you are dealing  with a      book. But you can  still flip through the book and locate  what you are      looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to        locate a specific part of content. Most likely you will have to listen        to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the        book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting        examples and case studies, not included here. Reading the original     book    would be much more entertaining and enlightening. If you like     the    summary, you may want to get the original from the source  below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-4785342167891201325?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/4785342167891201325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=4785342167891201325' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4785342167891201325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4785342167891201325'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/08/interpretation-of-randomness.html' title='The Interpretation of Randomness'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-4250481128512694125</id><published>2010-08-22T19:39:00.000-06:00</published><updated>2010-08-22T19:39:03.078-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>[NS2] Error message: Invalid command</title><content type='html'>Last week, I've got few messages asking me similar questions. The question was why do I see the following error message when running NS2 and how do I fix it? &lt;br /&gt;&lt;br /&gt;&lt;i&gt;invalid command name &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;The Cause of the Error Message&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This message is an OTcl error message, saying that the NS2 (or more precisely the OTcl interpreter) does not understand the current statement.&lt;br /&gt;For example, by default, the following OTcl statement will cause an error:&lt;br /&gt;&lt;i&gt;Agent/GPSR set sport_ 255&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;since NS2 does not understand "&lt;i&gt;Agent/GPSR&lt;/i&gt;" &lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Syntax of OTcl&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;OTcl is an interpreter which interprets OTcl command line by line. Each line begins with a keyword such as "&lt;i&gt;set&lt;/i&gt;", "&lt;i&gt;new&lt;/i&gt;", etc. &lt;br /&gt;&lt;br /&gt;The above example statement begins with "&lt;i&gt;Agent/GPSR&lt;/i&gt;" which is known to OTcl as a string, not a command. Therefore, OTcl creates an error message when encountering this message. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;How Do We Fix It?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To fix this problem, you first need to understand you own need. The above statement has two problem &lt;br /&gt;&lt;br /&gt;1. &lt;i&gt;Agent/GPSR&lt;/i&gt; is unknown to NS2. You need to declare this class before you can use it. To do so, please read the following &lt;a href="http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;post&lt;/a&gt;. &lt;br /&gt;2. In most cases, you would not set the value of a variable belonging to a class. But you will do so with a variable belonging to an object. So, after fixing the former problem, you will have to do the following:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;set agent [new Agent/GPSR]&lt;/i&gt;&lt;br /&gt;&lt;i&gt;$agent set sport_ 255&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;where first you create an object &lt;i&gt;$agent &lt;/i&gt;of class &lt;i&gt;Agent/GPSR&lt;/i&gt;. Then you set the instvar &lt;i&gt;sport_&lt;/i&gt; of &lt;i&gt;$agent &lt;/i&gt;to be 255&lt;br /&gt;======================================================&lt;br /&gt;T. Issaraiyakul and      E. Hossain,  “Introduction to Network        Simulator NS2”, Springer  2009.     Buy it now from&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/product/0387717595?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0387717595" target="_blank" title="Buy the NS2 Book from Amazon"&gt;&lt;img height="20" src="http://media.tumblr.com/tumblr_kyl6clIbiM1qamw08.jpg" width="65" /&gt;&lt;/a&gt;&lt;br /&gt;You may also find lecture notes and other resource at the following              website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-4250481128512694125?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/4250481128512694125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=4250481128512694125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4250481128512694125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4250481128512694125'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/08/ns2-error-message-invalid-command.html' title='[NS2] Error message: Invalid command'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-4347027898639149639</id><published>2010-08-18T02:27:00.003-06:00</published><updated>2011-04-01T01:25:15.339-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>The Greek, the Roman, and the Mathematics</title><content type='html'>&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;The Greek and Their Mathematics&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Most greek  Mathematics are mainly about geometry. They do not believe in  probability since&lt;br /&gt;&lt;ul&gt;&lt;li&gt;They believe that chance is governed purely  by Gods.&lt;/li&gt;&lt;li&gt;Their number system is very difficult to work with. Algebra and  arithematics had not existed in their time. They don’t even have the  number zero nor fraction.&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;The Roman and the Half-Proofs&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;It is hard  to prove a certain fact. It could be easier to break the fact into two  independent parts, and proves each part independently. Clean and simple,  isn't it? Well, this is probably why the Romans used it to prove  innocence.&lt;br /&gt;&lt;br /&gt;In the Roman time, a person can be condemned  if witnesses testified against that person. The number of witnesses  required to condemn a person varies according to the defendant's social  status.&lt;br /&gt;&lt;br /&gt;The idea behind this strategy is that two  half-proofs make up a full proof. So, let's find 2 of half-proves, add  them up, and get the full-proves. Suppose that each of half-proves can  be in correct with probability of 0.5. When we add them up, the  probability for the fact being correct is 1, right? Wrong!!&lt;br /&gt;&lt;br /&gt;Well,  to prove the fact, we need BOTH the halves to be correct. So the  probability of the entire fact being correct is 0.5 x 0.5 = 0.25, not  0.5 + 0.5 = 1.&lt;br /&gt;&lt;br /&gt;Source:  The  Drunkard's Walk: How Randomness Rules Our Lives by Leonard  Mlodinow,   Chapter 2 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/08/availability-bias-drunkards-walk.html"&gt;Read  the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/08/interpretation-of-randomness.html"&gt;Read  the Next Part&lt;/a&gt;]. &lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------        &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer      audiobooks. It's fun, and I can listen when I'm doing something else. It      also makes other activities (e.g., jogging) a lot more fun. For  more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this         post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason  that may encourage  you to go    for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for      FREE. Audible offers you a free trial for 14 days. Even if you get the      book and cancel the subscription right away (so that you don't have   to    pay), you can keep the book. And, don't worry if you lost the    audiobook   file. Just log into audible.com. You can keep downloading    the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the     summary: It takes time to finish up a book. And, when  you  do,    sometimes,  you want to review what you learn from the book. If   you do    not make  notes as you read, you might have to go through the   book    once again.  This can be time-consuming when you are dealing with a      book. But you can  still flip through the book and locate what you are      looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to       locate a specific part of content. Most likely you will have to listen       to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the       book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting       examples and case studies, not included here. Reading the original    book    would be much more entertaining and enlightening. If you like    the    summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-4347027898639149639?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/4347027898639149639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=4347027898639149639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4347027898639149639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4347027898639149639'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/08/greek-roman-and-mathematics.html' title='The Greek, the Roman, and the Mathematics'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-3591837162289080356</id><published>2010-08-16T00:50:00.001-06:00</published><updated>2010-08-18T00:24:48.262-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>C++ and OTcl Linkage: OTcl Commands — Binding OTcl and C++</title><content type='html'>Note: The content in this series is extracted from the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt;,     Introduction to        Network Simulator NS2. You   may have to read chapter 3     of the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt; for better        understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction &lt;/b&gt;&lt;br /&gt;This post is   the second   post   in the series on C++ and OTcl Linkage:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;a href="http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages"&gt;1.       Why Two Languages?&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Binding C++ and OTcl classes [&lt;a href="http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;Main       steps&lt;/a&gt;, &lt;a href="http://www.ns2ultimate.com/post/720424694/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;The     mechanism&lt;/a&gt;].&lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. &lt;a href="http://www.ns2ultimate.com/post/774980608/c-and-otcl-linkage-binding-variables"&gt;Variable   binding&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 4. OTcl  command:    Invoking C++ statements from  the  OTcl domain [ &lt;a href="http://www.ns2ultimate.com/post/801303612/c-and-otcl-linkage-otcl-commands-getting-started"&gt;Getting  Started&lt;/a&gt;, &lt;a href="http://www.ns2ultimate.com/post/925688244/c-and-otcl-linkage-otcl-commands-invocation"&gt;Invocation process&lt;/a&gt;, Binding OTcl and C++ ]&lt;br /&gt;&amp;nbsp;&amp;nbsp; 5. Eval  and  result:     Invoking OTcl statements from the C++ domain&lt;br /&gt;&amp;nbsp;&amp;nbsp; 6.  Object  binding    and  object construction process.&lt;br /&gt;In the previous &lt;a href="http://www.ns2ultimate.com/post/925688244/c-and-otcl-linkage-otcl-commands-invocation"&gt;post&lt;/a&gt;, I blogged about the key steps in the OTcl domain when instproc or OTcl command is invoked. In this post, I will explain how NS2 moves from OTcl to C++.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;Let's Review Our Example&lt;/b&gt;&lt;br /&gt;I will use the same example as in the &lt;a href="http://www.ns2ultimate.com/post/925688244/c-and-otcl-linkage-otcl-commands-invocation"&gt;last post&lt;/a&gt;. We will see the main steps when invoking&lt;br /&gt;&lt;br /&gt;&lt;i&gt;set obj [new MyOTclObject]&lt;/i&gt;&lt;br /&gt;&lt;i&gt;$obj show-delay&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What We Discussed in the Last Post&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In the &lt;a href="http://www.ns2ultimate.com/post/925688244/c-and-otcl-linkage-otcl-commands-invocation"&gt;last post&lt;/a&gt;, I took you through several key steps. And, the final step was to invoke instproc &lt;i&gt;unknown &lt;/i&gt;of the &lt;i&gt;SplitObject&lt;/i&gt;:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;SplitObject instproc unknown args {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [catch "$self cmd $args" ret] {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set cls [$self info class]&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; global errorInfo&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set savedInfo $errorInfo&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error "error when calling class $cls: $args" $savedInfo&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return $ret&lt;/i&gt;&lt;br /&gt;&lt;i&gt;}&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;This post will take it from this instproc. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;cmd: The Glue to the C++ domain&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Most of the content of the instproc &lt;i&gt;unknown &lt;/i&gt;is to check for error. The only important statement is &lt;br /&gt;&lt;br /&gt;&lt;i&gt;$self cmd $args&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;The instproc &lt;i&gt;cmd &lt;/i&gt;is bridges the OTcl domain to C++ domain. The above statement invokes the C++ function "&lt;i&gt;command()&lt;/i&gt;" of the C++ class which is bound to OTcl class from which $self was instantiated.&lt;br /&gt;&lt;br /&gt;From the above example, the statement will invoke the C++ function&lt;i&gt; command(...) &lt;/i&gt;of C++ class MyObject, whose details are shown below:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;1&amp;nbsp; int&amp;nbsp; MyObject::command(int argc, const char*const* argv) &lt;/i&gt;&lt;br /&gt;&lt;i&gt;2&amp;nbsp; {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;3&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (argc==2) {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;4&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (strcmp(argv[1], "show-delay") == 0) {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;5&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Delay is %g\n", delay_);&lt;/i&gt;&lt;br /&gt;&lt;i&gt;6&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return (TCL_OK);&lt;/i&gt;&lt;br /&gt;&lt;i&gt;7&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/i&gt;&lt;br /&gt;&lt;i&gt;8&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/i&gt;&lt;br /&gt;&lt;i&gt;9&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return TclObject::command(argc, argv);&lt;/i&gt;&lt;br /&gt;&lt;i&gt;10 };&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Function &lt;i&gt;command(argc,argv)&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Function command takes 2 input arguments&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;argc &lt;/i&gt;is the number of input arguments&lt;/li&gt;&lt;li&gt;&lt;i&gt;argv &lt;/i&gt;is an array of input arguments. It stores all the input parameters of the OTcl command, where &lt;i&gt;argv[0]&lt;/i&gt; stores a string "&lt;i&gt;cmd&lt;/i&gt;", &lt;i&gt;argv[1] &lt;/i&gt;stores a string of the first input argument, and so on. &lt;/li&gt;&lt;/ul&gt;&lt;b&gt;Example&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The OTcl command invocation was&lt;br /&gt;&lt;br /&gt;&lt;i&gt;$obj show-delay&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;This statement is passed down to instproc &lt;i&gt;unknown &lt;/i&gt;of class &lt;i&gt;SplitObject&lt;/i&gt;, which in turn executes&lt;br /&gt;&lt;br /&gt;&lt;i&gt;$self cmd $args&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;where &lt;i&gt;$self&lt;/i&gt; is &lt;i&gt;$obj&lt;/i&gt; and &lt;i&gt;$args&lt;/i&gt; is "&lt;i&gt;show-delay&lt;/i&gt;". This statement is passed on to the C++ function command(argc,argv), where &lt;i&gt;argc = 2&lt;/i&gt;, &lt;i&gt;argv[0] = "cmd"&lt;/i&gt;, and&lt;i&gt; argv[1] = "show-delay"&lt;/i&gt;.&amp;nbsp; Since &lt;i&gt;argc &lt;/i&gt;and &lt;i&gt;argv &lt;/i&gt;match both the "if" conditions (Lines 3 and 4), Line 5 is executed. And, a string "&lt;i&gt;show-delay&lt;/i&gt;" is shown on the screen. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Return Value&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;As a final note, Line 9 is the default statement, which is executed if none of the above "if" conditions matches. Here it invokes the (same) function command of its base class (here class &lt;i&gt;TclObject &lt;/i&gt;is the base class of class &lt;i&gt;MyObject&lt;/i&gt;), and passes &lt;i&gt;(argc,argv)&lt;/i&gt; as input arguments. The value returned from function&lt;i&gt; command(...)&lt;/i&gt; of class &lt;i&gt;TclObject &lt;/i&gt;will be returned to Line 9, and will be returned to the caller.&lt;br /&gt;======================================================&lt;br /&gt;&lt;br /&gt;T. Issaraiyakul and      E. Hossain,  “Introduction to Network        Simulator NS2”, Springer  2009. &lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;br /&gt;You may also find lecture notes and other  resource at the following             website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-3591837162289080356?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/3591837162289080356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=3591837162289080356' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/3591837162289080356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/3591837162289080356'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/08/c-and-otcl-linkage-otcl-commands_16.html' title='C++ and OTcl Linkage: OTcl Commands — Binding OTcl and C++'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-2356965355490475925</id><published>2010-08-14T00:36:00.002-06:00</published><updated>2011-04-01T01:27:19.953-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>Availability Bias</title><content type='html'>&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;b&gt;A Trick Question You Might Want To Try With Your Friends&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Let me ask you a question. Among English 6-letter words, which of the following is more probable? &lt;br /&gt;&lt;ul&gt;&lt;li&gt;Find a word whose fifth letter is ‘n’.&lt;/li&gt;&lt;li&gt;Find a word ending with ‘ing’.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;The correct one is the former. But if your answer is the latter, don't worry about it. It is normal. To see why, let me ask you another question. &lt;br /&gt;&lt;br /&gt;What is the 5th letter in a 6-letter word with suffix `ing'? It's `n', isn't it?. The latter case is just a special case (i.e., subset) of the former, and is therefore less probable. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Mathematics and Implication &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Mathematics, suppose we have events A and B. Then,&lt;br /&gt;&lt;br /&gt;P(A and B) &amp;lt;= P(A)&lt;br /&gt;P(A and B) &amp;lt;= P(B)&lt;br /&gt;&lt;br /&gt;However, most people are highly influenced by relevant information. They tend to think that statements with greater relevant details are more probably. This is a common fallacy which happens extensively in our daily life. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;More Examples&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Let me ask you again. Which of the following is more porbably?&lt;br /&gt;&lt;br /&gt;(i) "A suspect hates the victim and he kills the victim.'' OR ``A suspect kills the victim.'' &lt;br /&gt;(ii) It will be cloudy and rain tomorrow.'' OR ``It will rain today.''&lt;br /&gt;&lt;br /&gt;A lot of people tends to choose the former, since it provides supporting reasons. But think about it. More details impose more restriction on the statement. And, more restriction means less probable. This is a common fallacy in our daily life. Remember, more details leads to less probability, not more probability.&lt;br /&gt;&lt;br /&gt;Source:  The Drunkard's Walk: How Randomness Rules Our Lives by Leonard  Mlodinow,  Chapter 1 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] [ &lt;a href="http://t-issariyakul.blogspot.com/2010/08/regression-towards-mean-drunkards-walk.html"&gt;Read the Previous Part&lt;/a&gt; ] [&lt;a href="http://t-issariyakul.blogspot.com/2010/08/greek-roman-and-mathematics.html"&gt;Read  the Next Part&lt;/a&gt;]. &lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------       &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer     audiobooks. It's fun, and I can listen when I'm doing something else. It     also makes other activities (e.g., jogging) a lot more fun. For more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this        post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason that may encourage  you to go    for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for     FREE. Audible offers you a free trial for 14 days. Even if you get the     book and cancel the subscription right away (so that you don't have  to    pay), you can keep the book. And, don't worry if you lost the   audiobook   file. Just log into audible.com. You can keep downloading   the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the    summary: It takes time to finish up a book. And, when  you  do,   sometimes,  you want to review what you learn from the book. If   you do   not make  notes as you read, you might have to go through the   book   once again.  This can be time-consuming when you are dealing with a     book. But you can  still flip through the book and locate what you are     looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to      locate a specific part of content. Most likely you will have to listen      to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the      book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting      examples and case studies, not included here. Reading the original   book    would be much more entertaining and enlightening. If you like   the    summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-2356965355490475925?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/2356965355490475925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=2356965355490475925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/2356965355490475925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/2356965355490475925'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/08/availability-bias-drunkards-walk.html' title='Availability Bias'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-8334807515513049083</id><published>2010-08-10T02:58:00.002-06:00</published><updated>2011-04-01T01:30:19.241-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>Regression towards the Mean</title><content type='html'>&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;A result which falls far from the mean tends to be closer to the mean during the next attempt. Failing something consecutively does not mean that the next attempt will not succeed. Attempts and successes are not linearly related.&lt;br /&gt;&lt;br /&gt;Future is unpredictable, but there is one good news. If you are good (i.e., the mean is good enough), you will finally succeed (i.e., reach the mean). Do not give in, even if you have failed (i.e., fall off the mean) consecutively. &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;“Genius does not guarantee success, but it is seductive to assume that success must come from genius.” &lt;/blockquote&gt;&lt;br /&gt;The logic behind the “regression towards the mean” theorem is as follows. Suppose your average test score is 50. Now, let’s take a test. Suppose that you’ve got 40. If your next test scores less than 40, which is further away from the mean, your average won’t be 50. It has to be lower than 50 which contradicts to what we assume at the beginning.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Source: The Drunkard's Walk: How Randomness Rules Our Lives by Leonard Mlodinow, Chapter 1 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;]&amp;nbsp;[&lt;a href="http://t-issariyakul.blogspot.com/2010/07/are-we-better-guesser-than-mouse.html"&gt;Read the Previous Part&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/08/availability-bias-drunkards-walk.html"&gt;Read the Next Part&lt;/a&gt;].&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;Source:  The Drunkard's Walk: How Randomness Rules Our Lives by Leonard  Mlodinow,  Chapter 1 [&lt;a href="http://t-issariyakul.blogspot.com/2010/07/book-review-drunkards-walk-how.html"&gt;Read      the Book Review&lt;/a&gt;] [Read  the Next Part]. &lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------      &lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer     audiobooks. It's fun, and I can listen when I'm doing something else. It     also makes other activities (e.g., jogging) a lot more fun. For more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this       post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason that may encourage  you to go    for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for     FREE. Audible offers you a free trial for 14 days. Even if you get the     book and cancel the subscription right away (so that you don't have  to    pay), you can keep the book. And, don't worry if you lost the   audiobook   file. Just log into audible.com. You can keep downloading   the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the    summary: It takes time to finish up a book. And, when  you  do,   sometimes,  you want to review what you learn from the book. If   you do   not make  notes as you read, you might have to go through the   book   once again.  This can be time-consuming when you are dealing with a     book. But you can  still flip through the book and locate what you are     looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to      locate a specific part of content. Most likely you will have to listen      to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the      book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting      examples and case studies, not included here. Reading the original   book    would be much more entertaining and enlightening. If you like   the    summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-8334807515513049083?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/8334807515513049083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=8334807515513049083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8334807515513049083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8334807515513049083'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/08/regression-towards-mean-drunkards-walk.html' title='Regression towards the Mean'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-6221729681144226410</id><published>2010-08-08T23:39:00.000-06:00</published><updated>2010-08-08T23:39:38.470-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>C++ and OTcl Linkage: OTcl Commands -- Invocation process</title><content type='html'>Note: The content in this series is extracted from the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt;,     Introduction to       Network Simulator NS2. You   may have to read chapter 3     of the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt; for better       understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction &lt;/b&gt;&lt;br /&gt;This post is   the second   post  in the series on C++ and OTcl Linkage:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;a href="http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages"&gt;1.      Why Two Languages?&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Binding C++ and OTcl classes [&lt;a href="http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;Main      steps&lt;/a&gt;, &lt;a href="http://www.ns2ultimate.com/post/720424694/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;The    mechanism&lt;/a&gt;].&lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. &lt;a href="http://www.ns2ultimate.com/post/774980608/c-and-otcl-linkage-binding-variables"&gt;Variable  binding&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 4. OTcl  command:    Invoking C++ statements from the  OTcl domain [ &lt;a href="http://www.ns2ultimate.com/post/801303612/c-and-otcl-linkage-otcl-commands-getting-started"&gt;Getting Started&lt;/a&gt;, Invocation process ]&lt;br /&gt;&amp;nbsp;&amp;nbsp; 5. Eval  and  result:    Invoking OTcl statements from the C++ domain&lt;br /&gt;&amp;nbsp;&amp;nbsp; 6.  Object  binding   and  object construction process.&lt;br /&gt;&lt;br /&gt;In the  previous post, I  blogged  about OTcl command. I took you to see how to create a OTcl command in C++ and invoke the command from the OTcl domain. how C++ and OTcl classes are bound  together. In this  post, I will  explain the key steps for OTcl command invocation.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;Objective of this post&lt;/b&gt;&lt;br /&gt;From the previous post, our OTcl file looks like this: &lt;br /&gt;&lt;br /&gt;&lt;i&gt;1 set obj [new MyOTclObject]&lt;/i&gt;&lt;br /&gt;&lt;i&gt;2 $obj show-delay&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;In this post, we are going to look at the main step OTcl does when seeing &lt;br /&gt;&lt;br /&gt;&lt;i&gt;$obj show-delay&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Key Steps:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 1: Look for the instproc&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This is a simple structure of OTcl: Object name followed by the name of instproc. So, in the first step, OTcl see if the instproc "&lt;i&gt;show-delay&lt;/i&gt;" is defined in the class of &lt;i&gt;$obj&lt;/i&gt;. If so, it will execute the instproc. Otherwise, it will go to Step 2.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 2: Look for the default instproc "&lt;i&gt;unknown&lt;/i&gt;"&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;OTcl has a special instproc called "&lt;i&gt;unknown&lt;/i&gt;" which will be invoked if the invoked instproc is not defined in the current class. &lt;br /&gt;&lt;br /&gt;To see this, recall from the previous post that when executing "&lt;i&gt;otcl.tcl&lt;/i&gt;" you will see&lt;br /&gt;&lt;img src="http://media.tumblr.com/tumblr_l6vdtd8ZE61qamw08.png" /&gt;&lt;br /&gt;Now let's add the followings to the beginning of the file "&lt;i&gt;otcl.tcl&lt;/i&gt;". &lt;br /&gt;&lt;br /&gt;&lt;i&gt;3 MyOTclObject instproc unknown args {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;4 &amp;nbsp;&amp;nbsp;&amp;nbsp; puts "Invoking unknown"&lt;/i&gt;&lt;br /&gt;&lt;i&gt;5 }&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Now if you try to run "otcl.tcl", you will see &lt;br /&gt;&lt;img src="http://media.tumblr.com/tumblr_l6vdtrfx0h1qamw08.png" /&gt;&lt;br /&gt;Since the instproc unknown is defined in the class of&lt;i&gt; $obj&lt;/i&gt;, OTcl invokes what defined in the instproc &lt;i&gt;unknown&lt;/i&gt;, and moves to the next statement.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 3: Move to the base class&lt;/b&gt;&lt;br /&gt;OTcl is an object oriented program. According to the inheritance principle, if OTcl cannot find the method in the current class, it will moves to the base class and look for the method again. So, in this step, OTcl moves to the base class and repeat Step 1 and 2. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 4: The instproc &lt;i&gt;unknown &lt;/i&gt;of class &lt;i&gt;SplitObject&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;SplitObject is the uppermost class of every TclObject classes--meaning every TclObject must derive from this class. It defines instproc unknown as follows (see file &lt;i&gt;ns-allinone-xx/tclcl-x.xx/tcl-object.tcl&lt;/i&gt; for more detail):&lt;br /&gt;&lt;br /&gt;&lt;i&gt;SplitObject instproc unknown args {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [catch "$self cmd $args" ret] {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; set cls [$self info class]&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; global errorInfo&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; set savedInfo $errorInfo&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; error "error when calling class $cls: $args" $savedInfo&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return $ret&lt;/i&gt;&lt;br /&gt;&lt;i&gt;}&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;This instproc is in fact bound to the C++ domain. We shall talk about it in details in the next post. Please stay tune!!&lt;br /&gt;======================================================&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;T. Issaraiyakul and      E. Hossain,  “Introduction to Network      Simulator NS2”, Springer  2009.     Buy it now from&lt;br /&gt;&lt;br /&gt;You may also find lecture notes and other resource at the following            website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-6221729681144226410?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/6221729681144226410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=6221729681144226410' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6221729681144226410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6221729681144226410'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/08/c-and-otcl-linkage-otcl-commands.html' title='C++ and OTcl Linkage: OTcl Commands -- Invocation process'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-9085250076415193824</id><published>2010-07-17T04:47:00.002-06:00</published><updated>2011-04-01T01:32:54.304-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Leonard Mlodinow'/><title type='text'>Are we a better guesser than a mouse?</title><content type='html'>&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0307275175&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&amp;amp;lt;p&amp;amp;gt;&amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;a href="http://www.amazon.com/dp/0307275175?tag=ns2ultteeiss-20&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;camp=213761&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;creative=393545&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;linkCode=bpl&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;creativeASIN=0307275175&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;adid=17JYG930T2D4RC9VYBDZ&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;"&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;http://www.amazon.com/dp/0307275175?tag=ns2ultteeiss-20&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;camp=213761&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;creative=393545&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;linkCode=bpl&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;creativeASIN=0307275175&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;adid=17JYG930T2D4RC9VYBDZ&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/a&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;gt;&amp;amp;lt;/p&amp;amp;gt;&lt;/iframe&gt;It is compelling to answer ‘yes’. Unfortunately, the answer is ‘not always’. To see why, let’s setup an experiment where red and green cards are shown to a test subject. The job of the subject is to observe a sequence of cards and to guess the color of the next cards. Suppose that we use a certain sequence where 75% of the cards are green and 25% are red cards. The subject might choose to use one of the following 2 strategies for guessing:&lt;br /&gt;&lt;br /&gt;(i) Probability based guessing: Observe and compute probability of cards being green and red. Then always choose the color with higher probability. In the above example, the subject will always choose green. If we let the subject keeps guessing, the correct probability will approach 75%. But it can never be better than 75%. This is what most non-human animals such as mouses would do.&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;(ii) Pattern matching: Try to figure out the pattern, and guess accordingly. Suppose the sequence is 3 green card followed by 1 red card. Once you figure out the pattern, you will always guess correctly. &lt;br /&gt;&lt;br /&gt;Human is not very good at computing probability on the fly. So we usually resort to pattern matching. If we can recognize the pattern, we will do very good at predicting the color. But if the pattern is totally random with the ratio 3 out of 4 being green, there will be no pattern. We can guess nothing, and we will be outperformed by mouses.&lt;br /&gt;&lt;br /&gt;Source: The Drunkard's Walk: How Randomness Rules Our Lives by Leonard Mlodinow, Chapter 1 [&lt;a href="http://t-issariyakul.blogspot.com/2011/04/book-review-drunkards-walk-how.html"&gt;Read the Book Review&lt;/a&gt;] &amp;nbsp;[&lt;a href="http://t-issariyakul.blogspot.com/2010/08/regression-towards-mean-drunkards-walk.html"&gt;Read the Next Part&lt;/a&gt;].&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------     &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer     audiobooks. It's fun, and I can listen when I'm doing something else. It     also makes other activities (e.g., jogging) a lot more fun. For more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this      post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s1600/201004-Drunkard.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TDfcrGHyenI/AAAAAAAAAHM/Vr_C-1iJsKs/s200/201004-Drunkard.jpg" width="132" /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason that may encourage  you to go    for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for     FREE. Audible offers you a free trial for 14 days. Even if you get the     book and cancel the subscription right away (so that you don't have  to    pay), you can keep the book. And, don't worry if you lost the   audiobook   file. Just log into audible.com. You can keep downloading   the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the    summary: It takes time to finish up a book. And, when  you  do,   sometimes,  you want to review what you learn from the book. If   you do   not make  notes as you read, you might have to go through the   book   once again.  This can be time-consuming when you are dealing with a     book. But you can  still flip through the book and locate what you are     looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to      locate a specific part of content. Most likely you will have to listen      to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the      book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting      examples and case studies, not included here. Reading the original   book    would be much more entertaining and enlightening. If you like   the    summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-9085250076415193824?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/9085250076415193824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=9085250076415193824' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/9085250076415193824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/9085250076415193824'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/07/are-we-better-guesser-than-mouse.html' title='Are we a better guesser than a mouse?'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-5126832963943041934</id><published>2010-07-12T02:28:00.000-06:00</published><updated>2010-07-12T02:28:06.137-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>C++ and OTcl Linkage: OTcl Commands — Getting Started</title><content type='html'>Note: The content in this series is extracted from the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt;,     Introduction to      Network Simulator NS2. You   may have to read chapter 3     of the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt; for better      understanding.&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.slideshare.net/TBear76/t-4732809" title="OTcl Command -- Getting Started"&gt;OTcl Command -- Getting Started&lt;/a&gt;&lt;/b&gt; &lt;br /&gt;&lt;object height="355" id="__sse4732809" width="425"&gt; &lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=t-100711234358-phpapp02&amp;amp;stripped_title=t-4732809" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="allowScriptAccess" value="always" /&gt;&lt;embed name="__sse4732809" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=t-100711234358-phpapp02&amp;amp;stripped_title=t-4732809" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;br /&gt;View more &lt;a href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a href="http://www.slideshare.net/TBear76"&gt;Teerawat Issariyakul&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This post is   the second  post  in the series on C++ and OTcl Linkage:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;a href="http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages"&gt;1.     Why Two Languages?&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Binding C++ and OTcl classes [&lt;a href="http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;Main     steps&lt;/a&gt;, &lt;a href="http://www.ns2ultimate.com/post/720424694/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;The   mechanism&lt;/a&gt;].&lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. &lt;a href="http://www.ns2ultimate.com/post/774980608/c-and-otcl-linkage-binding-variables"&gt;Variable binding&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 4. OTcl  command:    Invoking C++ statements from the OTcl domain [ Getting Started, Make it more Interesting ]&lt;br /&gt;&amp;nbsp;&amp;nbsp; 5. Eval and  result:    Invoking OTcl statements from the C++ domain&lt;br /&gt;&amp;nbsp;&amp;nbsp; 6. Object  binding   and  object construction process.&lt;br /&gt;&lt;br /&gt;In the previous post, I  blogged  about how C++ and OTcl classes are bound together. In this  post, I will  explain how to bind C++ and OTcl class variable together. &lt;br /&gt;=======================================================&lt;br /&gt;T. Issaraiyakul and      E. Hossain,  “Introduction to Network     Simulator NS2”, Springer  2009.     Buy it now from&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/product/0387717595?ie=UTF8&amp;amp;tag=ns2ultteeiss-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0387717595" target="_blank" title="Buy the NS2 Book from Amazon"&gt;&lt;img height="20" src="http://media.tumblr.com/tumblr_kyl6clIbiM1qamw08.jpg" width="65" /&gt;&lt;/a&gt;&lt;br /&gt;You may also find lecture notes and other resource at the following           website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-5126832963943041934?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/5126832963943041934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=5126832963943041934' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5126832963943041934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5126832963943041934'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/07/c-and-otcl-linkage-otcl-commands.html' title='C++ and OTcl Linkage: OTcl Commands — Getting Started'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-8405769522662493626</id><published>2010-07-08T21:16:00.001-06:00</published><updated>2010-07-08T21:16:00.526-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>Segmentation Fault: A Common Error in NS2</title><content type='html'>&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;One of the most common error you might have found when running NS2 is "Segmentation Fault". This is just a type of runtime error. If you run, the same program in Win32 console application, Windows will show a run-time error message and terminate the program. So don't be intimidated by it.&amp;nbsp; &lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Example&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Example of codes which causes segmentation fault is shown below: &lt;br /&gt;&lt;br /&gt;&lt;i&gt;int x[10];&lt;/i&gt;&lt;br /&gt;&lt;i&gt;x[20] = 0;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;where you create an array &lt;i&gt;x&lt;/i&gt; with 10 slots, but try to access 20th slot of &lt;i&gt;x&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Suggestion?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cause 1 (C++):&lt;/b&gt; Most segmentation fault errors are usually rooted in C++ domain. So, check your C++ codes. I can't help finding bugs in your codes. But, here is the guideline for debugging:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Think carefully you have done before you see segmentation fault. The part which causes error is likely to be in that part. &lt;/li&gt;&lt;li&gt;If you do not find error, go back even further. Try to remove as many new modules that you have added as you can. Do it until you no longer see segmentation fault. Then start adding your module one by one until you see segmentation fault again. The most recently added module is the module which is most likely to cause the problem. &lt;/li&gt;&lt;li&gt;If you still do not find the error, you might have to reinstall NS2 and slowly added your modules one by one again. Use approach similar to step 2. &lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;I know debugging is a boring and laborious job. But you've gotta do it to move on.&amp;nbsp; Just don't give up.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cause 2 (Misconfiuration in OTcl)&lt;/b&gt;: Another common cause is in OTcl, where you do not attach NS2 components correctly. An example is that you may set the target of a link to an object which does not exist. So fix it!!&lt;br /&gt;&lt;br /&gt;Note: The point where error occurs is still in C++, but it is caused by misconfiguration in OTcl.&lt;br /&gt;&lt;br /&gt;========================================================&lt;br /&gt;&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;For more information about randomized scenarios, see&amp;nbsp;&amp;nbsp;&amp;nbsp; Chapter 12 in the&amp;nbsp; following book from Springer: &lt;br /&gt;T. Issaraiyakul and&amp;nbsp;&amp;nbsp;&amp;nbsp; E. Hossain,&amp;nbsp; “Introduction to Network Simulator NS2”, Springer 2009.&amp;nbsp;&amp;nbsp; You may also find lecture notes and other resource at the following&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-8405769522662493626?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/8405769522662493626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=8405769522662493626' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8405769522662493626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8405769522662493626'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/07/segmentation-fault-common-error-in-ns2.html' title='Segmentation Fault: A Common Error in NS2'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-6042218869656966459</id><published>2010-07-05T20:19:00.000-06:00</published><updated>2010-07-05T20:19:14.083-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>C++ and OTcl Linkage: Binding variables</title><content type='html'>Note: The content in this series is extracted from the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt;,     Introduction to     Network Simulator NS2. You   may have to read chapter 3     of the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt; for better     understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This post is   the second post in the series on C++ and OTcl Linkage:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;a href="http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages"&gt;1.   Why Two Languages?&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Binding C++ and OTcl classes [&lt;a href="http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;Main   steps&lt;/a&gt;, &lt;a href="http://www.ns2ultimate.com/post/720424694/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;The mechanism&lt;/a&gt;].&lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. Variable binding&lt;br /&gt;&amp;nbsp;&amp;nbsp; 4. OTcl  command:  Invoking C++ statements from the OTcl domain&lt;br /&gt;&amp;nbsp;&amp;nbsp; 5. Eval and  result:  Invoking OTcl statements from the C++ domain&lt;br /&gt;&amp;nbsp;&amp;nbsp; 6. Object  binding and  object construction process.&lt;br /&gt;&lt;br /&gt;In the previous post, I blogged about how C++ and OTcl classes are bound together. In this post, I will explain how to bind C++ and OTcl class variable together. &lt;br /&gt;&lt;b&gt; &lt;b&gt;&lt;a href="http://www.slideshare.net/TBear76/ns2-binding-c-and-otcl-variables" title="NS2: Binding C++ and OTcl variables"&gt;NS2: Binding C++ and OTcl variables&lt;/a&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;object height="355" id="__sse4676395" width="425"&gt; &lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=20100701-bindingvariable-100704100712-phpapp02&amp;amp;stripped_title=ns2-binding-c-and-otcl-variables" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="allowScriptAccess" value="always" /&gt;&lt;embed name="__sse4676395" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=20100701-bindingvariable-100704100712-phpapp02&amp;amp;stripped_title=ns2-binding-c-and-otcl-variables" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="355" width="425"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;br /&gt;View more &lt;a href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a href="http://www.slideshare.net/TBear76"&gt;Teerawat Issariyakul&lt;/a&gt;.  &lt;/b&gt;&lt;br /&gt;=======================================================&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;T. Issaraiyakul and      E. Hossain,  “Introduction to Network    Simulator NS2”, Springer  2009.&amp;nbsp; &lt;br /&gt;You may also find lecture notes and other resource at the following          website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-6042218869656966459?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/6042218869656966459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=6042218869656966459' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6042218869656966459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6042218869656966459'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/07/note-content-in-this-series-is.html' title='C++ and OTcl Linkage: Binding variables'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-7416518872997874286</id><published>2010-06-30T23:09:00.000-06:00</published><updated>2010-06-30T23:09:03.034-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>[ns2] C++ Command assert()</title><content type='html'>When delving into the C++ domain in NS2, you would be likely to find a C++ statement &lt;i&gt;assert(&amp;lt;expr&amp;gt;)&lt;/i&gt;. For example, in file &lt;i&gt;~ns/common/agent.cc,&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;assert(p!=NULL)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;This function inspects its input argument &lt;i&gt;&amp;lt;expr&amp;gt;&lt;/i&gt;. If the &lt;i&gt;&amp;lt;expr&amp;gt;&lt;/i&gt; is&lt;br /&gt;&lt;ul&gt;&lt;li&gt;TRUE, it does nothing.&lt;/li&gt;&lt;li&gt;FALSE, it terminates the program.&lt;/li&gt;&lt;/ul&gt;For more information, please see [ &lt;a href="http://www.cplusplus.com/reference/clibrary/cassert/assert/"&gt;this link&lt;/a&gt; ].&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-7416518872997874286?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/7416518872997874286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=7416518872997874286' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7416518872997874286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7416518872997874286'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/06/ns2-c-command-assert.html' title='[ns2] C++ Command assert(&lt;expr&gt;)'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-9179111193539933020</id><published>2010-06-20T20:56:00.000-06:00</published><updated>2010-06-20T20:56:37.386-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>C++ and OTcl Linkage: Binding C++ and OTcl classes — Part II</title><content type='html'>Note: The content in this series is extracted from the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt;,     Introduction to    Network Simulator NS2. You   may have to read chapter 3     of the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt; for better    understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This post is  the second post in the series on C++ and OTcl Linkage:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;a href="http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages"&gt;1.  Why Two Languages?&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Binding C++ and OTcl classes [&lt;a href="http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;Main  steps&lt;/a&gt;, The mechanism].&lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. Variable binding&lt;br /&gt;&amp;nbsp;&amp;nbsp; 4. OTcl command:  Invoking C++ statements from the OTcl domain&lt;br /&gt;&amp;nbsp;&amp;nbsp; 5. Eval and result:  Invoking OTcl statements from the C++ domain&lt;br /&gt;&amp;nbsp;&amp;nbsp; 6. Object binding and  object construction process.&lt;br /&gt;&lt;br /&gt;In the &lt;a href="http://www.ns2ultimate.com/post/689847378/c-and-otcl-linkage-binding-c-and-otcl-classes"&gt;previous  post&lt;/a&gt;, I blogged about how C++ and OTcl classes are bound together. In this post, I will explain the internal mechanism of the binding process.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Let return to our example&lt;/b&gt;&lt;br /&gt;Our objective was to bind two following classes together:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;C++ class name = MyObject&lt;/li&gt;&lt;li&gt;OTcl class name = MyOTclObject&lt;/li&gt;&lt;/ul&gt;The main step in doing so was to add the following code in a C++ file &lt;i&gt;otcl.cc&lt;/i&gt;:&lt;br /&gt;&lt;i&gt;1 #include "otcl.h"&lt;/i&gt;&lt;br /&gt;&lt;i&gt;2 static class MyObjectClass :  public  TclClass {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;3 public:&lt;/i&gt;&lt;br /&gt;&lt;i&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp; MyObjectClass() :   TclClass("MyOTclObject") {} &lt;/i&gt;&lt;br /&gt;&lt;i&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp; TclObject* create(int,   const char*const*) {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;6&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return (new MyObject());&lt;/i&gt;&lt;br /&gt;&lt;i&gt;7 &amp;nbsp;   }&lt;/i&gt;&lt;br /&gt;&lt;i&gt;8 }&amp;nbsp; class_my_object;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;In this post, we are going see what the above codes mean.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;It's Just Declaration of a Variable&lt;/b&gt;&lt;br /&gt;The above codes look quite scary. But it is quite simple. Let us go step by step, shall we?&lt;br /&gt;&lt;ul&gt;&lt;li&gt;I. We can declare a static C++ variable &lt;i&gt;class_my_object whose class is&amp;nbsp;&lt;/i&gt;&lt;i&gt;MyObjectClass &lt;/i&gt; as follows. &lt;/li&gt;&lt;/ul&gt;&lt;i&gt;static MyObjectClass &lt;/i&gt;&lt;i&gt;class_my_object;&lt;/i&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;II. Now, class &lt;i&gt;MyObjectClass&lt;/i&gt; has not been declared. We need to insert class definition before the variable declaration. The code would look like this.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;i&gt;static class MyObjectClass :  public TclClass {&lt;/i&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CLASS DEFITION&amp;gt;&lt;br /&gt;&lt;i&gt;}&amp;nbsp; class_my_object;&lt;/i&gt;&lt;br /&gt;which says that class &lt;i&gt;MyObjectClass &lt;/i&gt; derives from class &lt;i&gt;TclClass.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Class Definition&lt;/b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;There are 2 main steps in class definition&lt;br /&gt;1. Class constructor (Line 4)&lt;br /&gt;&lt;i&gt;MyObjectClass() :   TclClass("MyOTclObject") {} &lt;/i&gt;&lt;br /&gt;which feeds the OTcl class name &lt;i&gt;MyOTclObject&lt;/i&gt; to the based class &lt;i&gt;TclClass.&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;2. &lt;/i&gt;Function &lt;i&gt;create(...) &lt;/i&gt;(Lines 4-7)&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;This function is invoked when a &lt;i&gt;MyOTclObject &lt;/i&gt;object is created in the OTcl domain using the following statement&lt;br /&gt;&lt;i&gt;new &lt;/i&gt;&lt;i&gt;MyOTclObject&lt;/i&gt;&lt;br /&gt;What function &lt;i&gt;create(...)&lt;/i&gt; does is to create and return a C++ object, namely &lt;i&gt;MyObject&lt;/i&gt;, to the caller (Line 6).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Wrap-up&lt;/b&gt;&lt;br /&gt;So the above chunk of codes is just declaration of&amp;nbsp; a class and a static variable which maps a C++ class &lt;i&gt;MyObject &lt;/i&gt;to an OTcl class &lt;i&gt;MyOTclObject. &lt;/i&gt;&lt;br /&gt;When an OTcl object is created, NS2 looks up the repository of mapping variables, and calls function &lt;i&gt;creates(...) &lt;/i&gt;in order to create a shadow C++ object. I will blog about the object creation process again later in this series.&lt;br /&gt;=======================================================&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;T. Issaraiyakul and      E. Hossain,  “Introduction to Network   Simulator NS2”, Springer  2009.&lt;br /&gt;&lt;br /&gt;You may also find lecture notes and other resource at the following         website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-9179111193539933020?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/9179111193539933020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=9179111193539933020' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/9179111193539933020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/9179111193539933020'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/06/c-and-otcl-linkage-binding-c-and-otcl_20.html' title='C++ and OTcl Linkage: Binding C++ and OTcl classes — Part II'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-8956949819762093291</id><published>2010-06-16T21:57:00.000-06:00</published><updated>2010-06-16T21:57:35.650-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Review'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Bernhard Schlink'/><title type='text'>[BookReview] The Reader by Bernhard Schlink</title><content type='html'>&lt;b&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0753801728&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;Rating: &lt;/b&gt;3/5&lt;br /&gt;&lt;b&gt;Genre:&lt;/b&gt; Novel&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Book Review&lt;/b&gt;&lt;br /&gt;I picked this book by the recommendation from one of my friends. She told me that it was a good story, only if you don’t know the story before I read it, and it was.&lt;br /&gt;&lt;br /&gt;This story is translated from A Germany novel, “Der Vorleser”. It is the story during the Holocaust, told by the main character Michael Berg. Most of the storytelling is engaging, but some parts are not. The more exciting part is the place where the book surprises me. I won’t spoil you with what that is. You have to read the book.&lt;br /&gt;&lt;br /&gt;Overall, I think this is a good book. It worthes my time reading this book.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;Quotes&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;"But at a certain point the memory of her stopped accompanying me wherever I went. She stayed behind, the way a city stays behind as a train pulls out of the station. Its there, somewhere behind you, and you could go back and make sure of it. But why should you?"&lt;/blockquote&gt;&lt;br /&gt;&lt;blockquote&gt;"So I was still guilty. And if I was not guilty because one cannot be guilty of betraying a criminal, then I was guilty of having loved a criminal."&lt;/blockquote&gt;&lt;br /&gt;&lt;blockquote&gt;"This is what must happen to old married couples, I thought: the young man is preserved in the old one for her, the beauty and grace of the young woman stay fresh in the old one for him."&lt;/blockquote&gt;---------------------------------------------------------------------------------------------------------    &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer     audiobooks. It's fun, and I can listen when I'm doing something else. It     also makes other activities (e.g., jogging) a lot more fun. For more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this     post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/TBmcZ2C5dnI/AAAAAAAAAG8/ND_GbGmkSzw/s1600/201006+-+TheReader.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_eW8Uemxxm60/TBmcZ2C5dnI/AAAAAAAAAG8/ND_GbGmkSzw/s200/201006+-+TheReader.jpg" width="130" /&gt;&lt;/a&gt;&lt;/div&gt;There is one more reason that may encourage  you to go    for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for     FREE. Audible offers you a free trial for 14 days. Even if you get the     book and cancel the subscription right away (so that you don't have  to    pay), you can keep the book. And, don't worry if you lost the   audiobook   file. Just log into audible.com. You can keep downloading   the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the    summary: It takes time to finish up a book. And, when  you  do,   sometimes,  you want to review what you learn from the book. If   you do   not make  notes as you read, you might have to go through the   book   once again.  This can be time-consuming when you are dealing with a     book. But you can  still flip through the book and locate what you are     looking for.&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to      locate a specific part of content. Most likely you will have to listen      to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the      book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting      examples and case studies, not included here. Reading the original   book    would be much more entertaining and enlightening. If you like   the    summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-8956949819762093291?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/8956949819762093291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=8956949819762093291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8956949819762093291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8956949819762093291'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/06/bookreview-reader-by-bernhard-schlink.html' title='[BookReview] The Reader by Bernhard Schlink'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-7309462483639574238</id><published>2010-06-12T02:29:00.000-06:00</published><updated>2010-06-12T02:29:04.314-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>C++ and OTcl Linkage: Binding C++ and OTcl classes -- Part I</title><content type='html'>Note: The content in this series is extracted from the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt;,     Introduction to   Network Simulator NS2. You   may have to read chapter 3     of the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt; for better   understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This post is the second post in the series on C++ and OTcl Linkage:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;a href="http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages"&gt;1. Why Two Languages?&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Binding C++ and OTcl classes [Main steps, The mechanism].&lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. Variable binding&lt;br /&gt;&amp;nbsp;&amp;nbsp; 4. OTcl command: Invoking C++ statements from the OTcl domain&lt;br /&gt;&amp;nbsp;&amp;nbsp; 5. Eval and result: Invoking OTcl statements from the C++ domain&lt;br /&gt;&amp;nbsp;&amp;nbsp; 6. Object binding and object construction process.&lt;br /&gt;&lt;br /&gt;In the &lt;a href="http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages"&gt;previous post&lt;/a&gt;, I blogged about the motivation of having 2 languages. In this post, I will show you how to bind a C++ class to an OTcl class so that when an OTcl object is created, a shadowed C++ object is automatically crated. &lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;Explanation by Examples&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Here is what I would do in this post:&lt;br /&gt;&lt;br /&gt;Suppose I have a C++ class "&lt;i&gt;MyObject&lt;/i&gt;" and an OTcl class "&lt;i&gt;MyOTclObject&lt;/i&gt;". &lt;br /&gt;I would like to bind these two classes together so that when I call&lt;br /&gt;&lt;br /&gt;&lt;i&gt;new MyOTclObject&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;from the OTcl domain, a shadow C++ object is automatically created. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Key Steps&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I. Create a C++ class "&lt;i&gt;MyObject&lt;/i&gt;".&lt;br /&gt;II. Bind two class names "&lt;i&gt;MyObject&lt;/i&gt;" and "&lt;i&gt;MyOTclObject&lt;/i&gt;" together.&lt;br /&gt;III. Incorporate the classes into NS2 using the Make utility.&lt;br /&gt;IV. Test.&lt;br /&gt;&lt;br /&gt;Note that all these steps are done in 2 files: &lt;i&gt;otcl.h&lt;/i&gt; and &lt;i&gt;otcl.cc&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step I: Create a C++ class "&lt;i&gt;MyObject&lt;/i&gt;".&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;You can do so by defining the new class in the file &lt;i&gt;otcl.h&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;#include "object.h"&lt;/i&gt;&lt;br /&gt;&lt;i&gt;class MyObject : public TclObject {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;public:&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; MyObject();&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; virtual ~MyObject(){};&lt;/i&gt;&lt;br /&gt;&lt;i&gt;};&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step II:&amp;nbsp; Bind two class names "&lt;i&gt;MyObject&lt;/i&gt;" and "&lt;i&gt;MyOTclObject&lt;/i&gt;" together.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Here is the detail in the file &lt;i&gt;otcl.cc&lt;/i&gt;. &lt;br /&gt;&lt;br /&gt;&lt;i&gt;#include "otcl.h"&lt;/i&gt;&lt;br /&gt;&lt;i&gt;static class MyObjectClass : public TclClass {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;public:&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyObjectClass() : TclClass("MyOTclObject") {} &lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TclObject* create(int, const char*const*) {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return (new MyObject());&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/i&gt;&lt;br /&gt;&lt;i&gt;}&amp;nbsp; class_my_object;&lt;/i&gt;&lt;br /&gt;I will explain the details in the next post.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step III. Incorporate the classes into NS2 using the Make utility&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Make change to the file &lt;i&gt;~ns/Makefile&lt;/i&gt;. Look for the following section beginning with&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;i&gt;OBJ_CC = \&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tools/random.o \&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Then add the following line to the end of this section &lt;br /&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;YOUR_DIR&amp;gt;/ otcl.o &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Do not forget to put '\' between two lines. &lt;br /&gt;&lt;br /&gt;Then at command prompt, run&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&amp;gt;&amp;gt; make&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;The new classes &lt;i&gt;MyObject &lt;/i&gt;and &lt;i&gt;MyOTclObject &lt;/i&gt;should be incorporated into NS2.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step IV. Test&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;One last thing that we should do is to test whether what we did works. So just run NS2, and you should see the following results. &lt;br /&gt;&lt;br /&gt;&lt;i&gt;&amp;gt;&amp;gt; ns&lt;/i&gt;&lt;br /&gt;&lt;i&gt;% new MyOTclObject&lt;/i&gt;&lt;br /&gt;&lt;i&gt;_o4&lt;/i&gt;&lt;br /&gt;&lt;i&gt;%&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;which means an OTcl object &lt;i&gt;_o4&lt;/i&gt; was created.&lt;br /&gt;&lt;b&gt;Summary&lt;/b&gt;&lt;br /&gt;So if you would like to bind C++ and OTcl classes, you can just copy the following code and put the class name in the relevant place.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;static class &lt;/i&gt;&amp;lt;ANY CLASS NAME&amp;gt;&lt;i&gt; : public TclClass {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;public:&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyObjectClass() : TclClass("&lt;/i&gt;&amp;lt;YOUR OTCL CLASSNAME&amp;gt;&lt;i&gt;") {} &lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TclObject* create(int, const char*const*) {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return (new &lt;/i&gt;&amp;lt;YOUR c++ CLASSNAME&amp;gt;&lt;i&gt;());&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/i&gt;&lt;br /&gt;&lt;i&gt;} &lt;/i&gt;&amp;lt;ANY OBJ NAME&amp;gt;&lt;i&gt;;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Wrap-Up&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;That's it! It is not that hard to bind a C++ class to an OTcl class, right? In fact, this process is used repeatedly in NS2. Look for example at&lt;br /&gt;&lt;br /&gt;- C++ class &lt;i&gt;DropTail&lt;/i&gt;, which is bound to OTcl class &lt;i&gt;Queue/DropTail&lt;/i&gt; in file &lt;i&gt;~ns/queue/droptail.cc&lt;/i&gt;&lt;br /&gt;- C++ class &lt;i&gt;Connector&lt;/i&gt;, which is bound to OTcl class &lt;i&gt;Connector &lt;/i&gt;in file &lt;i&gt;~ns/common/connector.cc&lt;/i&gt;&lt;br /&gt;- C++ class &lt;i&gt;TcpAgent&lt;/i&gt;, which is bound to OTcl class &lt;i&gt;Agent/TCP &lt;/i&gt;in file &lt;i&gt;~ns/tcp/tcp.cc&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Although the key step are quite straightforward, the process is interesting. I will blog about the process later in the next post. Stay tune!&lt;br /&gt;=======================================================&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;T. Issaraiyakul and      E. Hossain,  “Introduction to Network  Simulator NS2”, Springer  2009.&lt;br /&gt;&lt;br /&gt;You may also find lecture notes and other resource at the following        website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-7309462483639574238?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/7309462483639574238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=7309462483639574238' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7309462483639574238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7309462483639574238'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/06/c-and-otcl-linkage-binding-c-and-otcl.html' title='C++ and OTcl Linkage: Binding C++ and OTcl classes -- Part I'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-4561372886329669850</id><published>2010-06-10T10:29:00.002-06:00</published><updated>2010-07-09T21:08:47.884-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Dalai Lama'/><title type='text'>The Responsible Free Market Economy -- The Leader's Way, Chapter 9</title><content type='html'>&lt;b&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=185788518X&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;Socialism and Capitalism&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Socialism is a great concept. Conceptual, it should bring benefits to all and eliminate poverty. But in practice, power in socialistic society tends to be in the hand of a group of few people. Most people work very hard, but gain very little. Lacking motivation, socialistic economy tends to be stagnant. Although socialism focuses on the distribution of wealth, there is no wealth to distribute.&lt;br /&gt;&lt;br /&gt;Capitalism, on the other hand, promotes competition in a free market. Freedom breeds competition. Free and fair competition leads to creation and wealth. Capitalism focuses on creation of wealth, not the distribution of wealth. Therefore, rich people become richer, while the poor remains poor. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Responsible Free Market Economy&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In a free market, the roles of government are to &lt;br /&gt;&lt;ul&gt;&lt;li&gt;Establish infrastructure necessary for fair competition. &lt;/li&gt;&lt;li&gt;Development of property rights&lt;/li&gt;&lt;li&gt;Bring in justice&lt;/li&gt;&lt;/ul&gt;From time to time, companies tend to form a group to collude in fixing product price, removing supply from the market, pressuring the government create regulation which prevents fair competition. The government should try to resist the pressure and set things right.&lt;br /&gt;&lt;br /&gt;Although the government play a major role in distributing well being to its citizen, we cannot entirely rely on the government. &lt;br /&gt;&lt;blockquote&gt;&lt;blockquote&gt;"It is impossible for the government to make people behave decently by law. The system will only work well when the leader in business and government have right motivation and act accordingly."&lt;/blockquote&gt;&lt;/blockquote&gt;Given more freedom, the companies just have to act more responsibly. &lt;br /&gt;&lt;br /&gt;Source: THE  Leader's Way: Business, Buddhism and happiness in an   interconnected  world by His Holyiness The Dalai Lama and Laurens Van Den   Muyzenberg,  Chapter 9 [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/bookreview-leaders-way-business.html"&gt;Read   the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/05/doing-right-thing-leaders-way-chapter-2.html"&gt;Read the Next Part&lt;/a&gt;].&lt;br /&gt;---------------------------------------------------------------------------------------------------------   &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer    audiobooks. It's fun, and I can listen when I'm doing something else. It    also makes other activities (e.g., jogging) a lot more fun. For more    detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this    post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-10273919?url=http%3A%2F%2Fwww.audible.com%2Fadbl%2Fstore%2Fwelcome.jsp%3Fsource_code%3DCOMA0216WS042109%26entryRedirect%3D%2Fentry%2Foffers%2FproductPromo2.jsp%26entryParams%3D%5EproductID%7EBK_BOLI_000594&amp;amp;cjsku=BK_BOLI_000594" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://www.audible.com/audiblewords/content/bk/boli/000594/t4_image.jpg" /&gt;&lt;/a&gt;There is one more reason that may encourage  you to go   for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for    FREE. Audible offers you a free trial for 14 days. Even if you get the    book and cancel the subscription right away (so that you don't have to    pay), you can keep the book. And, don't worry if you lost the  audiobook   file. Just log into audible.com. You can keep downloading  the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the   summary: It takes time to finish up a book. And, when  you  do,  sometimes,  you want to review what you learn from the book. If   you do  not make  notes as you read, you might have to go through the   book  once again.  This can be time-consuming when you are dealing with a    book. But you can  still flip through the book and locate what you are    looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to     locate a specific part of content. Most likely you will have to listen     to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the     book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting     examples and case studies, not included here. Reading the original  book    would be much more entertaining and enlightening. If you like  the    summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-4561372886329669850?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/4561372886329669850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=4561372886329669850' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4561372886329669850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4561372886329669850'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/06/responsible-free-market-economy-leaders.html' title='The Responsible Free Market Economy -- The Leader&apos;s Way, Chapter 9'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-4732322511534778882</id><published>2010-06-08T05:38:00.000-06:00</published><updated>2010-06-08T05:38:01.617-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>Error message: Undefined reference to vtable</title><content type='html'>&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;Another common error message when you compile NS2 would look like this&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Book/otcl.o:otcl.cc:(.text+0x8c): undefined reference to `vtable for MyObject'&lt;/i&gt;&lt;br /&gt;&lt;i&gt;collect2: ld returned 1 exit status&lt;/i&gt;&lt;br /&gt;&lt;i&gt;make: *** [libns.dll] Error 1&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Why?&lt;/b&gt;&lt;br /&gt;This error is caused by declaring but not implementing one or more virtual function. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;How to Fixed It?&lt;/b&gt;&lt;br /&gt;Provide implementation to all virtual functions&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;Details&lt;/b&gt;&lt;br /&gt;The above is all you need to know to fix it. But if you want to understand more, read on.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is vtable?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;From [&lt;a href="http://en.wikipedia.org/wiki/Virtual_method_table"&gt;this Wikipedia&lt;/a&gt;], vtable is known by several names, including a virtual method table, virtual function table, and dispatch table. It is a mechanism to implement run-time method binding (a.k.a. dynamic dispatch). A lot of buzz words, eh? Well, let's boil them down to plain English, shall we?&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Polymorphism&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Polymorphism is the ability of C++ to invoke the same function with different implementation under different context. Difficult to understand, right? So let's look at an example:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example: Classifiers&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Consider two main packet classifiers [&lt;a href="http://www.ns2ultimate.com/post/513029699/classifiers-a-multi-target-packet-forwarder"&gt;Read more about classifiers here&lt;/a&gt;]:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Address classifiers: Select and send packet to the next NsObject based on the address. &lt;/li&gt;&lt;li&gt;Port classifiers: Select and send packet to the next NsObject based on the transport layer port. &lt;/li&gt;&lt;/ul&gt;The job description of both the classifiers is the same: To classifier and forward packets. The difference is how they classify the packets.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Polymorphism for Classifiers&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Polymorphism defines a function &lt;i&gt;classify(p)&lt;/i&gt; in class &lt;i&gt;Classifier&lt;/i&gt;, and let the derived class defined their own way to classify packets. Usually, programmers would work with Classifier in their program. At run-time, the users chooses the classifier types (i.e., either address or port) based on their need, and instantiate objects accordingly. At the instantiation, objects morph (transform) itself from Classifier to either address classifier or port classifier.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;So Where is Vtable? &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Under the polymorphism concept, we need a mechanism to tell the program which implementation function &lt;i&gt;classify(p)&lt;/i&gt; should use: Inspecting the address or inspecting the transport layer port. In C++, such the mechanism is vtable. Vtable stores the address which contains function implementation of each object. When a function is invoked, C++ identifies the object, and fetches the relevant implementation by looking at vtable.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;About the Error&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;It should now be clear that if you do not provide implementation for virtual functions, C++ cannot construct vtable. Therefore, it shows the above error message on the screen.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;A Common Error&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Destructor is declared as virtual in class &lt;i&gt;TclObject&lt;/i&gt;, which is the base class for almost every class in NS2. In your new class, you have few choices&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Do not declare the destructor. In this case, the destructor of class &lt;i&gt;TclObject&lt;/i&gt; will be used.&amp;nbsp;&lt;/li&gt;&lt;li&gt;If you declare the destructor, you &lt;b&gt;MUST &lt;/b&gt;provide the implementation, even if it is an empty implementation (i.e., &lt;i&gt;{}&lt;/i&gt;). Otherwise, you will see the above error message. &lt;/li&gt;&lt;/ul&gt;=======================================================&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;T. Issaraiyakul and      E. Hossain,  “Introduction to Network Simulator NS2”, Springer  2009. &lt;br /&gt;You may also find lecture notes and other resource at the following       website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-4732322511534778882?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/4732322511534778882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=4732322511534778882' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4732322511534778882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4732322511534778882'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/06/error-message-undefined-reference-to.html' title='Error message: Undefined reference to vtable'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-998751816648181014</id><published>2010-05-31T06:23:00.001-06:00</published><updated>2010-06-01T06:41:36.223-06:00</updated><title type='text'>C++ and OTcl Linkage: Why Two Languages?</title><content type='html'>Note: The content in this series is extracted from the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt;,    Introduction to   Network Simulator NS2. You   may have to read chapter 3    of the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt; for better   understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;NS2 consists mainly of two languages: C++ and OTcl. Each of these two languages has its own strengths and weaknesses. NS2 beautifully integrates these two languages to draw out their strengths. For most of the time, you would not need to know the integration mechanism. But you need to know the strength and weaknesses of these two languages in order to apply them properly.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;Strengths and Weaknesses of C++ and OTcl &lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;C++:&lt;/b&gt; C++ is a compiled programming language. A C++ program needs to be compiled (i.e., translated) into the executable machine code. Since the executable is in the form of machine code, C++ program is very fast to run. However, the compilation process can be quite annoying. Every tiny little change like adding "&lt;i&gt;int x = 0&lt;/i&gt;;" will take few seconds.&amp;nbsp; &lt;/li&gt;&lt;li&gt;&lt;b&gt;OTcl:&lt;/b&gt; OTcl is an interpreted programming language. An OTcl program can run on the fly without the need for compilation. Upon execution, the interpreter translates OTcl instructions to machine code understandable to the operating system line by lin. Therefore, OTcl codes run more slowly than C++ codes do. The upside of OTcl codes is that every change takes effect immediately. &lt;/li&gt;&lt;/ul&gt;NS2 documentation suggests that C++ is slow to change but fast to run. OTcl is slow to run but fast to change.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Three Programming Style&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In order to understand the need of having two languages, let's look at what a C++ programmers would do. Suppose, we program C++ codes in file prog.cc and prog.h. We will need to create an executable file prog.exe. Here are three programing styles:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Basic C++ Programming&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;With this style, you write C++ codes, compile them, and run the executable file. This is quite easy, and is what most programmers would do for small and simple tasks. &lt;br /&gt;&lt;img src="http://media.tumblr.com/tumblr_l32nkbsJ6F1qamw08.png" /&gt;&lt;br /&gt;But again, as the program gets bigger, you will need to compile the  program for every little change. This programming style lacks flexibility.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. C++ Programming with Input Arguments&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;C++ allows programmers to supply input arguments: &lt;i&gt;argc &lt;/i&gt;(number of input arguments) and &lt;i&gt;argv &lt;/i&gt;(vector or array of input arguments).&lt;br /&gt;Suppose you would like to simulate a network with &lt;i&gt;n&lt;/i&gt; nodes fully connected with link speed &lt;i&gt;s&lt;/i&gt; Mbps. With the first programming style, you will need to recompile the code every time you change the speed and/or the number of nodes. &lt;br /&gt;&lt;br /&gt;&lt;img src="http://media.tumblr.com/tumblr_l32nkuNHvB1qamw08.png" /&gt;&lt;br /&gt;With the use of input arguments, you may write a program to take the number of nodes and link speed as the first and second input arguments, respectively. You C++ file would look something like this. &lt;br /&gt;&lt;br /&gt;&lt;i&gt;#include&amp;lt;iostream&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;using namespace std;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;void main(int argc, char* argv[]){&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt; "The number of node is " &amp;lt;&amp;lt;argv[0]&amp;lt;&amp;lt;endl;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt; "Speed of all links is " &amp;lt;&amp;lt;argv[1]&amp;lt;&amp;lt;endl;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;}&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;The resulting executable program would have the following syntax.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;prog &amp;lt;num_node&amp;gt; &amp;lt;link_speed&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;For example, if you would like to have 10 nodes each connected with 3 Mbps links, you would run&lt;br /&gt;&lt;br /&gt;&lt;i&gt;prog 10 3&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;This style gives the users flexibility to change system parameters without compilation. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. C++ Programming with a Configuration File&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The problem with the second style is that the invocation can get quite messy as the number of input arguments increases. Imagine a scenario with 10 nodes whose connecting links have various speed. It would be quite difficult to input say different sets of 20 parameters for each run. &lt;br /&gt;&lt;img src="http://media.tumblr.com/tumblr_l345upQP871qamw08.png" /&gt;&lt;br /&gt;The third programming style improves the second one by specifying all the parameters in one file called "configuration file". Basically, it is the second style with the name of the configuration file as its only input parameter. The details of link speed, number of nodes, the topology, and so on, can be specify in the configuration file. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;What about NS2?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;As you might imagine, NS2 uses the last style, where the configuration file is an OTcl file called "Tcl Simulation Script". This file contains information about what you would like to simulate such as "&lt;i&gt;set ns [new Simulator]&lt;/i&gt;", "&lt;i&gt;set n0 [$ns node]&lt;/i&gt;", and so on. This Tcl simulation script is just the input configuration file to a C++ program, "&lt;i&gt;~ns-2.35/ns.exe&lt;/i&gt;"&lt;br /&gt;&lt;br /&gt;If you have a configuration file "&lt;i&gt;simple.tcl&lt;/i&gt;", you can run NS2 by executing&lt;br /&gt;&lt;br /&gt;&lt;i&gt;ns simple.tcl&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;where &lt;i&gt;ns &lt;/i&gt;is the executable program obtained from compiling the entire NS2 codes using "&lt;i&gt;make&lt;/i&gt;" utility [&lt;a href="http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2"&gt;see this link for details&lt;/a&gt;], and &lt;i&gt;simple.tcl&lt;/i&gt; is an input configuration file of the executable file &lt;i&gt;ns&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;So Which on Should I Look into? C++ or OTcl?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;Perhaps, this is the question you most want to ask. The above provide the motivation of having two languages. The guideline of selecting the language is provided below:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;OTcl is a language for creating a network so that you don't have to recompile the codes every time you make changes to your simulation scenarios. It is also used to connect blocks (e.g., classifier, links, agent) within each NS2 components (e.g., node). &lt;/li&gt;&lt;li&gt;C++ defines internal mechanism of each block. It does things like packet forwarding, scheduling events, collecting statistic, and so on.&lt;/li&gt;&lt;/ul&gt;According to the OOP concept, every component should be self-contained and should provide interface to talk to other components. C++ is an OOP. Therefore, it defines these OOP functionalities.&lt;br /&gt;&lt;br /&gt;What missing is how the components are linked together. YOU, as a programmer, should be the one who decide what NS2 components are needed and how they are linked together (e.g., Node 1 to Node 3). And, you would tell NS2 to do so (i.e., linking components) by using OTcl.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Summary&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;By now, you should know what NS2 have two languages. But if you don't or if you think it's too much to remember, just read the following. These two points are the summary of the above.&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Use C++ for internal mechanism.&lt;/li&gt;&lt;li&gt;Use OTcl for configuration.&lt;/li&gt;&lt;/ul&gt;=======================================================&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;For more information about C++ and OTcl linkage see     Chapter 3 in  the  following book from Springer: &lt;br /&gt;T. Issaraiyakul and     E.  Hossain,  “Introduction to Network Simulator NS2”, Springer 2009.&lt;br /&gt;&lt;br /&gt;You may also find lecture notes and other resource at the following       website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-998751816648181014?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/998751816648181014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=998751816648181014' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/998751816648181014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/998751816648181014'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/05/c-and-otcl-linkage-why-two-languages.html' title='C++ and OTcl Linkage: Why Two Languages?'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-8525007136894947702</id><published>2010-05-29T13:00:00.003-06:00</published><updated>2010-07-09T21:19:47.610-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Dalai Lama'/><title type='text'>Entrepreneurship and Poverty -- The Leader's Way, Chapter 8</title><content type='html'>&lt;blockquote&gt;&lt;b&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=185788518X&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/b&gt;&lt;br /&gt;"Poverty is a problem of the mind, not the lack of resources or the lack of intelligence of the people."&lt;/blockquote&gt;In order to improve poverty,&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Government must be motivated to help.&lt;/li&gt;&lt;li&gt;Economy system must be a responsible one.&lt;/li&gt;&lt;li&gt;Regulation must stimulate entrepreneurship&lt;/li&gt;&lt;li&gt;Fair banking, property right, and family planning must be in place.&lt;/li&gt;&lt;/ul&gt;Poverty usually congregates around the poor. These people need to spend less, leading to stagnant economy and more unemployment. The government&lt;br /&gt;needs to promote entrepreneurship among the poor. This will alleviate poverty&lt;br /&gt;and increase liquidity.&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;Poor people do not lack skill. They lack opportunities. In fact, they are willing to work harder than the wealthy.&lt;br /&gt;&lt;br /&gt;Micro-credit lending is one of the concepts whose goal is not to seek benefit, but to provide opportunities to the poor. It focuses on trust rather than on collateral contracts.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;“Freedom without responsibility is not acceptable. It is even dangerous.”&lt;/blockquote&gt;&lt;br /&gt;Source:  THE  Leader's Way: Business, Buddhism and happiness in an    interconnected  world by His Holyiness The Dalai Lama and Laurens Van  Den   Muyzenberg,  Chapter 8 [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/bookreview-leaders-way-business.html"&gt;Read    the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/06/responsible-free-market-economy-leaders.html"&gt;Read the Last Part&lt;/a&gt;].&lt;br /&gt;---------------------------------------------------------------------------------------------------------    &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer     audiobooks. It's fun, and I can listen when I'm doing something else. It     also makes other activities (e.g., jogging) a lot more fun. For more     detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this     post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-10273919?url=http%3A%2F%2Fwww.audible.com%2Fadbl%2Fstore%2Fwelcome.jsp%3Fsource_code%3DCOMA0216WS042109%26entryRedirect%3D%2Fentry%2Foffers%2FproductPromo2.jsp%26entryParams%3D%5EproductID%7EBK_BOLI_000594&amp;amp;cjsku=BK_BOLI_000594" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://www.audible.com/audiblewords/content/bk/boli/000594/t4_image.jpg" /&gt;&lt;/a&gt;There is one more reason that may encourage  you to go    for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for     FREE. Audible offers you a free trial for 14 days. Even if you get the     book and cancel the subscription right away (so that you don't have  to    pay), you can keep the book. And, don't worry if you lost the   audiobook   file. Just log into audible.com. You can keep downloading   the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the    summary: It takes time to finish up a book. And, when  you  do,   sometimes,  you want to review what you learn from the book. If   you do   not make  notes as you read, you might have to go through the   book   once again.  This can be time-consuming when you are dealing with a     book. But you can  still flip through the book and locate what you are     looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to      locate a specific part of content. Most likely you will have to listen      to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the      book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting      examples and case studies, not included here. Reading the original   book    would be much more entertaining and enlightening. If you like   the    summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-8525007136894947702?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/8525007136894947702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=8525007136894947702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8525007136894947702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8525007136894947702'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/05/entrepreneurship-and-poverty-leaders.html' title='Entrepreneurship and Poverty -- The Leader&apos;s Way, Chapter 8'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-8738502775056289375</id><published>2010-05-25T08:03:00.000-06:00</published><updated>2010-05-25T08:03:57.610-06:00</updated><title type='text'>C++ and OTcl Linkage</title><content type='html'>Note: The content in this series is extracted from the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt;,    Introduction to  Network Simulator NS2. You   may have to read chapter 3    of the &lt;a href="http://www.ns2ultimate.com/" target="_blank"&gt;book&lt;/a&gt; for better  understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;NS2 consists of two languages: C++ and OTcl. For most of the time, you would configure (e.g., "&lt;i&gt;$ns duplex-link ...&lt;/i&gt; ", "&lt;i&gt;$ns attach-agent ...&lt;/i&gt;") a network in OTcl. But the real simulation is running in C++. If you are having troubles grasping the concepts of the linkage, stick around. I hope I can help enlighten you guys :)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;Outline&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Here is the outline of this series.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Why Two Languages?&lt;/li&gt;&lt;li&gt;Creating C++ and OTcl classes.&lt;/li&gt;&lt;li&gt;Class Binding&lt;/li&gt;&lt;li&gt;Variable binding&lt;/li&gt;&lt;li&gt;OTcl command: Invoking C++ statements from the OTcl domain&lt;/li&gt;&lt;li&gt;Eval and result: Invoking OTcl statements from the C++ domain&lt;/li&gt;&lt;li&gt;Object binding and object construction process.&lt;/li&gt;&lt;/ol&gt;&lt;b&gt;Do you like it?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I believe the above are all you need to understand the binding process. If you like it, please stick around and perhaps tell your friends about it. I will blog about them one by one. If you have any comments or suggestions, please place them on my facebook fan page [ &lt;a href="http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417"&gt;click here&lt;/a&gt; ].&amp;nbsp; &lt;br /&gt;=======================================================&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;For more information about C++ and OTcl linkage see     Chapter 3 in the  following book from Springer: &lt;br /&gt;T. Issaraiyakul and     E. Hossain,  “Introduction to Network Simulator NS2”, Springer 2009. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You may also find lecture notes and other resource at the following      website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-8738502775056289375?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/8738502775056289375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=8738502775056289375' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8738502775056289375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8738502775056289375'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/05/c-and-otcl-linkage.html' title='C++ and OTcl Linkage'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-7959098682326196744</id><published>2010-05-20T10:27:00.003-06:00</published><updated>2010-07-09T21:18:42.015-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Dalai Lama'/><title type='text'>The Challenge of Globalization -- The Leader's Way, Chapter 7</title><content type='html'>&lt;b&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=185788518X&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;Globalization business model&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Globalization has led the business through 3 following stages &lt;br /&gt;&lt;ol&gt;&lt;li&gt;Import/Export: Focus on trading on raw material and production&lt;/li&gt;&lt;li&gt;Satellites: All the branches take the commands from the headquarter. Build branches on several countries to&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Avoid importing/exporting raw material&lt;/li&gt;&lt;li&gt;Understand local people better&lt;/li&gt;&lt;li&gt;Avoid import/export regulation&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Globally integrated: This stage is similar to the satellite model. The difference is that the business initiative can come from any country (not just the headquarter country). &lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;Globally integrated companies are both less and more vulnerable at the same time. It is less vulnerable, since a failure to execute in one country does not result in the collapse of the company. The company still operates in other countries. It is more vulnerable due to increasing more level of trust among all the local branches. An execution failure or bad reputation in one country will impact the company more greatly. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Role of Globally Integrated Company&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Globalization was seen as an exploit over poor countries. But it is in fact a change which occurs much faster than before, and poor countries simply cannot keep up with. In fact, globally integrated companies can greatly contribute to people's well being, if they act responsibly. They can help underdeveloped countries catch up with developed countries, and help alleviate environmental problems. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Globalization and Competition&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Conceptually, globalization breeds competition, which should lead to benefit for all (e.g., good products at reasonable price). Competition should be a mean which takes us to the happy ending. Unfortunately, in reality, there are several bad practices which prevent us from such the happy ending. &lt;br /&gt;&lt;br /&gt;Obvious bad practices are for example selling bad products and services, irresponsibly dumping waste in the ocean, and so on. Apart from these obvious bad practices, the hidden ones are monopoly, price fixing, and corruption. The government should step in to help alleviate these hidden bad practices and promote fair competition. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Globalization and Innovation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Innovation has become global in two ways. First, when a new product comes into the market, it is available globally. Secondly, innovation depends&amp;nbsp; on diversity.&amp;nbsp; The invention is more likely when involving various kinds of people. &lt;br /&gt;&lt;br /&gt;Source: THE Leader's Way: Business, Buddhism  and happiness in an   interconnected world by His Holyiness The Dalai  Lama and Laurens Van Den   Muyzenberg, Chapter 7 [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/bookreview-leaders-way-business.html"&gt;Read    the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/05/entrepreneurship-and-poverty-leaders.html"&gt;Read the Next Part&lt;/a&gt;].&lt;br /&gt;---------------------------------------------------------------------------------------------------------    &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer    audiobooks. It's fun, and I can listen when I'm doing something else. It    also makes other activities (e.g., jogging) a lot more fun. For more    detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this     post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-10273919?url=http%3A%2F%2Fwww.audible.com%2Fadbl%2Fstore%2Fwelcome.jsp%3Fsource_code%3DCOMA0216WS042109%26entryRedirect%3D%2Fentry%2Foffers%2FproductPromo2.jsp%26entryParams%3D%5EproductID%7EBK_BOLI_000594&amp;amp;cjsku=BK_BOLI_000594" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://www.audible.com/audiblewords/content/bk/boli/000594/t4_image.jpg" /&gt;&lt;/a&gt;There is one more reason that may encourage  you to go   for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for    FREE. Audible offers you a free trial for 14 days. Even if you get the    book and cancel the subscription right away (so that you don't have to    pay), you can keep the book. And, don't worry if you lost the  audiobook   file. Just log into audible.com. You can keep downloading  the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the   summary: It takes time to finish up a book. And, when  you  do,  sometimes,  you want to review what you learn from the book. If   you do  not make  notes as you read, you might have to go through the   book  once again.  This can be time-consuming when you are dealing with a    book. But you can  still flip through the book and locate what you are    looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to     locate a specific part of content. Most likely you will have to listen     to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the     book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting     examples and case studies, not included here. Reading the original  book    would be much more entertaining and enlightening. If you like  the    summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-7959098682326196744?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/7959098682326196744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=7959098682326196744' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7959098682326196744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7959098682326196744'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/05/challenge-of-globalization-leaders-way.html' title='The Challenge of Globalization -- The Leader&apos;s Way, Chapter 7'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-4345709531519866452</id><published>2010-05-18T00:24:00.001-06:00</published><updated>2010-05-18T00:25:42.479-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><title type='text'>Classifiers and Routing Module: Attaching Agents</title><content type='html'>Note: This is a detailed note for the &lt;a href="http://www.ns2ultimate.com/"&gt;book&lt;/a&gt;,   Introduction to Network Simulator NS2. You   may have to read chapter 6   of the &lt;a href="http://www.ns2ultimate.com/"&gt;book&lt;/a&gt; for better understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This post is a sequel of the previous post, which demonstrated the  relationship of  classifiers, routing modules, and nodes:&lt;br /&gt;&lt;ul&gt;&lt;li&gt; &lt;a href="http://www.ns2ultimate.com/post/427665435/classifiers-and-routing-modules"&gt;What  are they, their purposes, their relationship, &lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/463202386/classifiers-and-routing-modules-configuration"&gt;How  to configure them conceptually&lt;/a&gt;, and&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/478990274/classifiers-and-routing-modules-putting-a-default"&gt;Using  &lt;i&gt;$ns node&lt;/i&gt;, how a default classifier, namely “&lt;i&gt;classifier_&lt;/i&gt;”,  is created and put  in a node.&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/495510167/classifiers-and-routing-modules-putting-a-routing"&gt;Putting a routing modules &lt;i&gt;rtnotif_ &lt;/i&gt;and&lt;i&gt; ptnotif_&lt;/i&gt; in a node using "&lt;i&gt;$ns node&lt;/i&gt;"&amp;nbsp;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/513029699/classifiers-a-multi-target-packet-forwarder"&gt;Details of classifiers&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/586097450/classifiers-and-routing-modules-implemenation-of"&gt;2 common ways to implement routing modules: rtnotif_ and ptnotif_&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;What’s in This Post&lt;/b&gt;&lt;br /&gt;So far, what we have looks like the figure below.&lt;br /&gt;&lt;img src="http://media.tumblr.com/tumblr_l1fs2zxLXt1qamw08.jpg" /&gt;&lt;br /&gt;This post will show you how to put yellows box, port classifier and agents, to a node.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Routing and Transport Layer Bridge in a Computer&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;When a packet arrives your computer, your computer will check the IP address. If the IP Address is for itself, it will deliver the packet to the attach transport layer protocol (e.g., your web browser may use TCP port 49175). Otherwise, it will forward the packet according to the routing table. &lt;br /&gt;&lt;br /&gt;Note: In windows, you can use the command&lt;br /&gt;&lt;br /&gt;&lt;i&gt;route print &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;to show routing table. Here is the example result.&lt;br /&gt;&lt;img src="http://media.tumblr.com/tumblr_l2huvuFTQf1qamw08.png" /&gt;&lt;br /&gt;&lt;br /&gt;Also, you can use the command&lt;br /&gt;&lt;br /&gt;&lt;i&gt;netstat -an &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;to show the transport layer port. Here is the example result.&lt;img src="http://media.tumblr.com/tumblr_l2huwnxizl1qamw08.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What about NS2&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Again, in NS2, a node can be a router or a computer. But it doesn't matter which one you are considering. NS2 makes no difference between these two types. A node is able to forward packets based on destination address and transport layer port indicated in the packet header.&lt;br /&gt;&lt;br /&gt;NS2 uses class Agent as a transport layer protocol (In fact, class Agent is used to create and destroy packets, but we'll talk about that later). So, our objective is to &lt;br /&gt;&lt;br /&gt;1. Create agents &lt;i&gt;$a0&lt;/i&gt; by using &lt;br /&gt;&lt;br /&gt;&lt;i&gt;&amp;gt;&amp;gt; set $a0 [new Agent/TCP]&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;2. Attach the created agent to the node &lt;i&gt;$n0&lt;/i&gt; by using &lt;br /&gt;&lt;br /&gt;&lt;i&gt;&amp;gt;&amp;gt; $ns attach-agent $n0 $a0&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;It is the latter step which is a bit complicated. So I better explain.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Key steps.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;So I am going to use the previous notation. Please see [ here ] before proceeding. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I. &lt;i&gt;[Tclscript] $ns attach-agent $n0 $a0&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;II.&lt;i&gt; [f_LT] Simulator::attach-agent{ node agent }&lt;/i&gt;&lt;br /&gt;&amp;nbsp; -&amp;gt; [1] &lt;i&gt;$node attach $agent&lt;/i&gt;: [see step III.]&lt;br /&gt;&amp;nbsp; &lt;br /&gt;III. &lt;i&gt;[f_NT] Node::attach { agent { port "" } }&lt;/i&gt;&lt;br /&gt;&amp;nbsp; -&amp;gt; [1] &lt;i&gt;set dmux_ [ new classifier/Port ]&lt;/i&gt;: Create a port classifier&lt;br /&gt;&amp;nbsp; -&amp;gt; [2] &lt;i&gt;$self add-route $address_ $dmux_&lt;/i&gt;: [see Step IV]&lt;br /&gt;&amp;nbsp; -&amp;gt; [3] &lt;i&gt;set port [ $dmux alloc-port [ [ Simulator instance ] nullagent ] ]&lt;/i&gt;: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; [3.1]&lt;i&gt; [ Simulator instance ] nullagent ]&lt;/i&gt; returns the null agent which is used to destroy packets&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; [3.2] &lt;i&gt;$dmux alloc-port [...]&lt;/i&gt;: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Store the agent from III.3.1 in the next available slot of the classifier &lt;i&gt;$dmux&lt;/i&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Return the associated port (or slot) number. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Note: In port classifiers, the slot number is the same as the port number&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - For more information about classifier, plese see [&lt;a href="http://www.ns2ultimate.com/post/513029699/classifiers-a-multi-target-packet-forwarder"&gt;this link&lt;/a&gt;]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp; [3.3] &lt;i&gt;$port [...]&lt;/i&gt; stores the value returns from III.3.2 in a local variable $port&lt;br /&gt;&amp;nbsp; -&amp;gt; [4] &lt;i&gt;$agent set agent_port_ $port&lt;/i&gt;: Store the allocate port number &lt;i&gt;$port &lt;/i&gt;into the instvar &lt;i&gt;$agent_port_&lt;/i&gt; of the input &lt;i&gt;$agent&lt;/i&gt;&lt;br /&gt;&amp;nbsp; -&amp;gt; [5] &lt;i&gt;$self add-target $agent $port&lt;/i&gt;: Tell the Node that the &lt;i&gt;$agent&lt;/i&gt; is attached to port number &lt;i&gt;$port &lt;/i&gt;[see Step V]&lt;br /&gt;&amp;nbsp; &lt;br /&gt;IV. &lt;i&gt;[f_NT] Node::add-route { dst target } &lt;/i&gt;(from III.2) &lt;br /&gt;&amp;nbsp; -&amp;gt; &lt;i&gt;$rtnotif_ add-route $dst $target&lt;/i&gt;: From the above figure,&lt;i&gt; $rtnotif_&lt;/i&gt; is a routing module responsible for packet routing. In this particular context, &lt;i&gt;$dst&lt;/i&gt; is the node address and &lt;i&gt;$target&lt;/i&gt; is &lt;i&gt;$dmux_&lt;/i&gt; (see III.2). Therefore, this statement tells &lt;i&gt;$rtnotif_&lt;/i&gt; that any packet destined to the current node should be forwarded to&lt;i&gt; $dmux_&lt;/i&gt;. Again, we do not configures classifiers directly. Routing module is the single point of classifier management, and we shall configure classifiers through routing modules only. For more information, please read [ &lt;a href="http://www.ns2ultimate.com/post/586097450/classifiers-and-routing-modules-implemenation-of"&gt;this link&lt;/a&gt; ].&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;V.&lt;i&gt; [f_NT] Node::add-target { agent port } &lt;/i&gt;(from III.2)&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; -&amp;gt; Similar to &lt;i&gt;add-route&lt;/i&gt;, instproc &lt;i&gt;add-target&lt;/i&gt; tells the node that packet whose port is &lt;i&gt;$port &lt;/i&gt;should be forwarded to the agent&lt;i&gt; $agent&lt;/i&gt;. &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; The job of classifying and forwarding packets based on the transport layer port is attributed to port classifier, which NS2 calls a "demultiplexer". Again, we do not configure the demultiplexer directly but does so through a routing module &lt;i&gt;$ptnotif_&lt;/i&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; As show in [ &lt;a href="http://www.ns2ultimate.com/post/586097450/classifiers-and-routing-modules-implemenation-of"&gt;this link&lt;/a&gt; ], &lt;i&gt;$ptnotif_&lt;/i&gt; has different implementation than &lt;i&gt;$rtnotif_&lt;/i&gt;. It is based on list (i.e., array), not pointers.&amp;nbsp; So what you see in this step is &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&lt;i&gt; foreach m [ $self set ptnotif_ ] {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $m attach $agent $port [see Step VI]&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; }&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;VI. &lt;i&gt;[f_RT] RtModule::attach { agent port }&lt;/i&gt; (From Step V)&lt;br /&gt;&amp;nbsp; -&amp;gt; [1 (Sending Agent)]&lt;i&gt; $agent target [ [ $self node ] entry ]&lt;/i&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A sending agent creates a packet and sends the created packets to the node. Then the node looks at the destination address in the packet header and forward the packet accordingly. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;i&gt; [ [ $self node ] entry ]&lt;/i&gt; return the entry point of the node associated with the routing module under consideration&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So the entire statement says that "set the target of the agent to be the node entry". The node will later pass it to its address classifier during normal packet forwarding mechanism.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; -&amp;gt; [2 (Receiving Agent)] &lt;i&gt;[ [ $self node ] dmux ] install $port $agent&lt;/i&gt;&lt;br /&gt;&amp;nbsp; If &lt;i&gt;$agent &lt;/i&gt;is a receiving agent, the packet will come from the node, pass through the address classifier and the demultiplexer, and arrive &lt;i&gt;$agent&lt;/i&gt;. &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; What we have to do here is to configure the demultiplexer obtained from &lt;i&gt;[ [ $self node ] dmux ]&lt;/i&gt;. The entire statement installs $agent in the slot number "&lt;i&gt;$port&lt;/i&gt;" of the demultiplexer. (For the detail of object installation in a classifier please see [&lt;a href="http://www.ns2ultimate.com/post/513029699/classifiers-a-multi-target-packet-forwarder"&gt;this link&lt;/a&gt;] ).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Wrap-Up&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Long, isn't it. Well, it's quite complicated. But that's how it works in NS2. For now, I think it is quite enough for you to get yourself working in an NS2 node. Next time you'd like to have a node classify packets based on your own criteria, follow the instruction in this series. That way you can make your NS2 code neat and compatible.&lt;br /&gt;I do left out the details of route configuration. It is quite similar to agent attachment. You can research about it yourself. But if you'd like me to talk about it. Please let me know.&lt;br /&gt;Comments? Facebook post? Please let me know. I appreciate the comments or questions you all have.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;==============================================================&lt;br /&gt;&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For     more information about NS2, see Chapter 6 in the  following book  from Springer: &lt;br /&gt;T.  Issaraiyakul   and    E. Hossain,   “Introduction to Network Simulator  NS2”, Springer   2009. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You   may also find  lecture notes and  other resource at the following       website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-4345709531519866452?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/4345709531519866452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=4345709531519866452' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4345709531519866452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4345709531519866452'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/05/classifiers-and-routing-module.html' title='Classifiers and Routing Module: Attaching Agents'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-6315335539049081099</id><published>2010-05-15T10:24:00.001-06:00</published><updated>2010-07-09T21:17:26.033-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Dalai Lama'/><title type='text'>Doing Business Right -- The Leader's Way, Chapter 6</title><content type='html'>&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=185788518X&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;Doing business right means doing business with warm hearts--meaning thinking of others' feeling. Although profit is essential, money can't buy happiness. Companies which do business right will attract consumers, investors, and employees. After all, people want to be a part of something they can be proud of. &lt;br /&gt;&lt;b&gt;&lt;br /&gt;Negative Factors&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The following are negative factors which contribute to corporate bad reputation:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Leaders without humility (Flashy leaders tend to be self-interest and lead the company into great risks).&lt;/li&gt;&lt;li&gt;Creative or fraudulent accounting&lt;/li&gt;&lt;li&gt;Increasing disparity in compensation&lt;/li&gt;&lt;li&gt;Exploited practices&lt;/li&gt;&lt;li&gt;Marketing of harmful product&lt;/li&gt;&lt;li&gt;Human right and environment violation&lt;/li&gt;&lt;li&gt;Countries without good governance&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Credible Corporation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Promotes corporation citizenship: A corporate can be viewed as a member of the society. As a good citizen, it should practice right view and right conduct such as Corporate Social Responsibility (CSR) and Environmental Impact Assessment (EIA) programs. &lt;/li&gt;&lt;li&gt;Accepts the honesty and success can go exist. The old business model is based on win or lose. There is no room for honesty. As people become more civilized, honesty has started to gain traction. An example is the magazine Ethisphere publishes the name of most ethical corporations in the world.&lt;/li&gt;&lt;/ul&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "While good sciences and regulation approval are essential, they are not sufficient. We need to engage with society, understanding and responding to people's concern and expectation'' -- James Smith, Shell U.K.'s country chairman.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;NGOs&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;NGO lives for general public, and discovers bad deeds that some companies try to hide. This is not the case for the companies with right conducts. They have got nothing to hide. Instead of trying to deny NGO, they can get help from NGO, since most people tend to believe NGOs more than the company. For example, if a company wants to open a factory in a certain country, it can ask NGO to study the possibilities, and cultural issues that might arise.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source: THE Leader's Way: Business, Buddhism  and happiness in an   interconnected world by His Holyiness The Dalai  Lama and Laurens Van Den   Muyzenberg, Chapter 6 [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/bookreview-leaders-way-business.html"&gt;Read   the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/05/challenge-of-globalization-leaders-way.html"&gt;Read the Next Part&lt;/a&gt;].&lt;br /&gt;---------------------------------------------------------------------------------------------------------   &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer    audiobooks. It's fun, and I can listen when I'm doing something else. It    also makes other activities (e.g., jogging) a lot more fun. For more    detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this    post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-10273919?url=http%3A%2F%2Fwww.audible.com%2Fadbl%2Fstore%2Fwelcome.jsp%3Fsource_code%3DCOMA0216WS042109%26entryRedirect%3D%2Fentry%2Foffers%2FproductPromo2.jsp%26entryParams%3D%5EproductID%7EBK_BOLI_000594&amp;amp;cjsku=BK_BOLI_000594" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://www.audible.com/audiblewords/content/bk/boli/000594/t4_image.jpg" /&gt;&lt;/a&gt;There is one more reason that may encourage  you to go   for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for    FREE. Audible offers you a free trial for 14 days. Even if you get the    book and cancel the subscription right away (so that you don't have to    pay), you can keep the book. And, don't worry if you lost the  audiobook   file. Just log into audible.com. You can keep downloading  the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the   summary: It takes time to finish up a book. And, when  you  do,  sometimes,  you want to review what you learn from the book. If   you do  not make  notes as you read, you might have to go through the   book  once again.  This can be time-consuming when you are dealing with a    book. But you can  still flip through the book and locate what you are    looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to     locate a specific part of content. Most likely you will have to listen     to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the     book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting     examples and case studies, not included here. Reading the original  book    would be much more entertaining and enlightening. If you like  the    summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-6315335539049081099?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/6315335539049081099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=6315335539049081099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6315335539049081099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6315335539049081099'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/05/doing-business-right-leaders-way.html' title='Doing Business Right -- The Leader&apos;s Way, Chapter 6'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-3363877055978297112</id><published>2010-05-13T05:31:00.001-06:00</published><updated>2010-07-09T21:16:37.041-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Dalai Lama'/><title type='text'>Creating Profit, Jobsor Happiness? -- The Leader's Way, Chapter 5</title><content type='html'>&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=185788518X&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;An organization is the place where people congregate. These people need common purposes and spontaneous leader.&lt;br /&gt;&lt;blockquote&gt;&lt;blockquote&gt;"Any   organization is both more and less than the sum of its members. It is less   because the members of the group devote only a part of their time to the   organization, and much more because the organization as a whole can   accomplish tasks the individual members cannot succeed in carrying out on   their own.''&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;b&gt;A Living Entity&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;We can consider business as a living entity. If food is essential to life, profit is essential to business. Business can be motivated. It can thrives, withers, and renews itself. It can act responsibly or irresponsibly. &lt;br /&gt;&lt;br /&gt;As people should not live to eat, business should not live to make profit only. Making less profit is similar to having less food to eat. But that's not necessarily a bad thing. Business has three important purposes: 1) Create profit, 2) serve the customers, 3) act responsibly.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Three groups of people&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;People have two eyes. One eye is for working. The other sees morality. Based on they eyes, people can be classified into:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The blinds: These people have no vision. They do not work. They cannot differentiate between vulgar and fine. As as result, they live in a poor life. They might behave badly (e.g., steal, rob, deceive) to earn wealth just to live. &lt;/li&gt;&lt;li&gt;The one-eyes: Although these people have vision and work hard to gain wealth. They do not act morally. They may acquire their wealth in a wrong way.&lt;/li&gt;&lt;li&gt;The two-eyes: These have vision to gain wealth, and they acquire their wealth righteously. They know what is good, what is evil. &lt;/li&gt;&lt;/ol&gt;One should avoid the blinds and the one-eyes, and associate with the two-eyes.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Satisfaction and Happiness&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;blockquote&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Happiness depends on satisfying different needs. But some fundamental need has to be satisfied before. Others can be considered.''&lt;/blockquote&gt;&lt;/blockquote&gt;There are 5 levels of satisfaction. &lt;br /&gt;&lt;ol&gt;&lt;li&gt;Physical need&lt;/li&gt;&lt;li&gt;Safety and Security&lt;/li&gt;&lt;li&gt;Love and Belongingness&lt;/li&gt;&lt;li&gt;Self-esteem&lt;/li&gt;&lt;li&gt;Self-actualization, vitality, creativity, self-sufficiency, authenticity, playfulness, and meaningfulness&lt;/li&gt;&lt;/ol&gt;The lower level (lower number) must be satisfied before considering the higher level. For example, people need to earn enough money for food, shelter, and so on. Given the basic satisfaction, people look for other satisfaction. For example, they want to be a part of the company they can be proud of. &lt;br /&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;Source: THE Leader's Way: Business, Buddhism and happiness in an   interconnected world by His Holyiness The Dalai Lama and Laurens Van Den   Muyzenberg, Chapter 5 [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/bookreview-leaders-way-business.html"&gt;Read  the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/05/doing-business-right-leaders-way.html"&gt;Read the Next Part&lt;/a&gt;].&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;---------------------------------------------------------------------------------------------------------  &lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: inherit; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer   audiobooks. It's fun, and I can listen when I'm doing something else. It   also makes other activities (e.g., jogging) a lot more fun. For more   detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this   post&lt;/a&gt;].&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-10273919?url=http%3A%2F%2Fwww.audible.com%2Fadbl%2Fstore%2Fwelcome.jsp%3Fsource_code%3DCOMA0216WS042109%26entryRedirect%3D%2Fentry%2Foffers%2FproductPromo2.jsp%26entryParams%3D%5EproductID%7EBK_BOLI_000594&amp;amp;cjsku=BK_BOLI_000594" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://www.audible.com/audiblewords/content/bk/boli/000594/t4_image.jpg" /&gt;&lt;/a&gt;There is one more reason that may encourage  you to go  for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for   FREE. Audible offers you a free trial for 14 days. Even if you get the   book and cancel the subscription right away (so that you don't have to   pay), you can keep the book. And, don't worry if you lost the audiobook   file. Just log into audible.com. You can keep downloading the over and   over again.&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;i&gt;About the  summary: It takes time to finish up a book. And, when  you  do, sometimes,  you want to review what you learn from the book. If   you do not make  notes as you read, you might have to go through the   book once again.  This can be time-consuming when you are dealing with a   book. But you can  still flip through the book and locate what you are   looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to    locate a specific part of content. Most likely you will have to listen    to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the    book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting    examples and case studies, not included here. Reading the original book    would be much more entertaining and enlightening. If you like the    summary, you may want to get the original from the source below.&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-3363877055978297112?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/3363877055978297112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=3363877055978297112' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/3363877055978297112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/3363877055978297112'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/05/creating-profit-jobsor-happiness.html' title='Creating Profit, Jobsor Happiness? -- The Leader&apos;s Way, Chapter 5'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-1424707616127634445</id><published>2010-05-10T00:18:00.000-06:00</published><updated>2010-05-10T00:18:32.048-06:00</updated><title type='text'>[ns2] Classifiers and Routing Modules: Implemenation of Routing Module--rtnotif_ v.s. ptnotif_</title><content type='html'>Note: This is a detailed note for the &lt;a href="http://www.ns2ultimate.com/"&gt;book&lt;/a&gt;,   Introduction to  Network Simulator NS2. You   may have to read chapter 6   of the &lt;a href="http://www.ns2ultimate.com/"&gt;book&lt;/a&gt; for better  understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This post is a sequel of the previous post, which demonstrated the   relationship of  classifiers, routing modules, and nodes:&lt;br /&gt;&lt;ul&gt;&lt;li&gt; &lt;a href="http://www.ns2ultimate.com/post/427665435/classifiers-and-routing-modules"&gt;What   are they, their purposes, their relationship, &lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/463202386/classifiers-and-routing-modules-configuration"&gt;How   to configure them conceptually&lt;/a&gt;, and&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/513029699/classifiers-a-multi-target-packet-forwarder"&gt;Details of classifesr: multi-target forwarders&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/478990274/classifiers-and-routing-modules-putting-a-default"&gt;Using   &lt;i&gt;$ns node&lt;/i&gt;, how a default classifier, namely “&lt;i&gt;classifier_&lt;/i&gt;”,   is created and put  in a node.&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/495510167/classifiers-and-routing-modules-putting-a-routing"&gt;Putting  a routing modules &lt;i&gt;rtnotif_ &lt;/i&gt;and&lt;i&gt; ptnotif_&lt;/i&gt; in a node  using "&lt;i&gt;$ns node&lt;/i&gt;"&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;What’s in This Post&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Before proceeding further, let me refresh you memory a bit. This is the Node architecture we see earlier.&amp;nbsp; We know that &lt;i&gt;$rtnotif_&lt;/i&gt; is bound to address classifiers and &lt;i&gt;ptnotif_&lt;/i&gt; is bound to port classifiers.&lt;br /&gt;&lt;br /&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;img src="http://media.tumblr.com/tumblr_l01sxl5EJ51qamw08.jpg" /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This post focuses on how exactly NS2 implement &lt;i&gt;$rtnotif_ &lt;/i&gt;and &lt;i&gt;$ptnotif_&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What are the purposes of routing module again?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A classifier is a multi-target forwarder [&lt;a href="http://www.ns2ultimate.com/post/513029699/classifiers-a-multi-target-packet-forwarder"&gt;see this post&lt;/a&gt;] usually stored in a Node. There can be more than one classifiers in a Node, since a Node may have several criteria to classify packet (e.g., based on address, port, flow, priority). &lt;br /&gt;&lt;br /&gt;Configuration of classifiers can be a mess. If you have 20 classifiers, you can have to have 20 configuration statements at a time. Keeping tracks of these 20 classifiers can be a headache. So, why don't you create groups of classifiers, and configure the groups instead of configuring each classifier individually? NS2 calls these groups "routing modules".&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Concept of Routing Modules&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Conceptually, you create and associate a classifier with a routing module. And, you  create a group by linking related routing module together. When you need to configure classifier, you do so through the "head" of the group (of routing modules) only.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Two Main Types of Implementation: Link-list and Array&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;There are two common ways to create a group of routing modules&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Link-list based.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This approach is used for a group of address classifiers in a node. An example configuration is shown below:&lt;br /&gt;&lt;img src="http://media.tumblr.com/tumblr_l26vg2WDf81qamw08.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;From the above figure, a routing module connects to a classifier using its pointer &lt;i&gt;classifier_&lt;/i&gt;. They are are links together by using pointer "&lt;i&gt;next_rtm_&lt;/i&gt;". When we need to add a routing entry to all classifiers (by calling the instproc &lt;i&gt;add-route&lt;/i&gt;), we only need to send the command through the first routing module (RM1), and the chain of routing modules will automatically propagate the commend to all connecting classifiers.&lt;br /&gt;&lt;br /&gt;Note: Usually, a Node stores the first (i.e., head) routing module for the address classifier group in its instvar &lt;i&gt;$rtnotif_&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Array (list) based.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This approach is used for a group of port classifiers in a node. An example configuration is shown below:&lt;br /&gt;&lt;img src="http://media.tumblr.com/tumblr_l26vewSeA91qamw08.jpg" /&gt;&lt;br /&gt;Similar to the address classifier group, each routing module in the port classifier group connects to a classifier using its pointer &lt;i&gt;classifier_&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;From the above figure, routing modules are stored in each component of a array variable. Again, we do not attach an agent&amp;nbsp; directly to each of port classifiers. But we do so through the instvar storing the routing modules associated to all port classifiers (by calling the instproc &lt;i&gt;add-target&lt;/i&gt;). NS2 will automatically send agent attaching command to all routing module in the array variable. &lt;br /&gt;&lt;br /&gt;Note: Usually, a Node stores all routing modules for a group of port classifiers in a list instvar &lt;i&gt;$ptnotif_ &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;NS2 Codes&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I will conclude&amp;nbsp; this post by showing how NS2 automatically propagates routing and agent-attaching commands.&lt;br /&gt;&lt;br /&gt;1. Instproc add-route define in [f_NT]&lt;br /&gt;&lt;br /&gt;&lt;i&gt;I. [f_NT] Node::add-route { dst target }&lt;/i&gt;&lt;br /&gt;&amp;nbsp; -&amp;gt;&lt;i&gt; rtnotif_ add-route $dst $target&lt;/i&gt;: This statement invokes instprocs &lt;i&gt;add-route&lt;/i&gt; of the head routing module &lt;i&gt;$rtnotif_&lt;/i&gt;. It tells the routing module that the packet whose destination is &lt;i&gt;$dst&lt;/i&gt; should be forwarded to NsObject $target&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;i&gt;II. [f_RT] RtModule instproc add-route { dst target }&amp;nbsp; &lt;/i&gt;&lt;br /&gt;&amp;nbsp; -&amp;gt; &lt;i&gt;[ $self set classifier_ ] install $dst $target&lt;/i&gt;: Install the NsObject &lt;i&gt;$target&lt;/i&gt; into the slot number &lt;i&gt;$dst&lt;/i&gt; of the instvar &lt;i&gt;$classifier_&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; -&amp;gt; if { $next_rtm_ != "" } {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $next_rtm_ add-route $dst $target&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/i&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From the above figure,&lt;i&gt; $next_rtm_ &lt;/i&gt;is the pointer to the next routing module in the address classifier group. This statement repeatedly invokes the &lt;i&gt;add-route&lt;/i&gt; instproc from one to the next related routing module, until reaching the end of the chain. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Again, the &lt;i&gt;add-route&lt;/i&gt; command is entered through the head routing module, &lt;i&gt;$rtnotif_&lt;/i&gt;. The command is then automatically propagate throughout all related routing module. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;2. &lt;i&gt;Instproc Node add-target defined in [f_NT]&lt;/i&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;I. &lt;i&gt;[f_NT] Node::add-target { agent port }&lt;/i&gt;&lt;br /&gt;&amp;nbsp;&lt;i&gt; -&amp;gt; foreach m [ $self set ptnotif_ ] {&lt;/i&gt;: &lt;i&gt;$ptnotif_&lt;/i&gt; is a list (i.e., array) variable. Each of its component is a routing module associated with a port classifier (see the above figure). So the following would be done to all routing modules within the port classifier group.&lt;br /&gt;&amp;nbsp; &lt;i&gt;-&amp;gt; $m attach $agent $port&lt;/i&gt;: Install $agent in the slot number "&lt;i&gt;$port&lt;/i&gt;" of the associated port classifier.&lt;br /&gt;==============================================================&lt;br /&gt;&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For    more information about NS2, see Chapter 6 in the  following book from Springer: &lt;br /&gt;T.  Issaraiyakul   and    E. Hossain,  “Introduction to Network Simulator  NS2”, Springer   2009. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You  may also find  lecture notes and  other resource at the following      website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-1424707616127634445?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/1424707616127634445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=1424707616127634445' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1424707616127634445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/1424707616127634445'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/05/ns2-classifiers-and-routing-modules.html' title='[ns2] Classifiers and Routing Modules: Implemenation of Routing Module--rtnotif_ v.s. ptnotif_'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-7514787226892733985</id><published>2010-05-07T01:27:00.004-06:00</published><updated>2010-07-09T21:16:01.692-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Dalai Lama'/><title type='text'>The Leader’s Purpose -- The Leader's Way, Chapter 4</title><content type='html'>&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1857885112&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt; &lt;br /&gt;A leader needs to have wisdom (right view) and faith (support from followers). He must establish clear purposes for the company, and set the value that should be observed by all. He should act as an example to convince his follows to follow the principles. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Leaders' Roles&lt;/b&gt;&lt;br /&gt;The leader's responsibilities include&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Set the values and purposes of the organization,&lt;/li&gt;&lt;li&gt;Create faith, attract competent people, and encourage them to put great effort into the organization, &lt;/li&gt;&lt;li&gt;Provide communication systems for people inside the organization, and &lt;/li&gt;&lt;li&gt;Plan, organize, set priority, and make decisions. &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;A good leader should have technical knowledge and skill, determination, endeavor, and courage. The leader should understand the problem and know the solution. He or she should understand the organization and its people, culture and characteristics.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Organization Purposes&lt;/b&gt;&lt;br /&gt;An organization should have purposes or mission statement. Main characteristics of good mission statements include&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Clear and understandable,&lt;/li&gt;&lt;li&gt;Appeal to people in the organization,&lt;/li&gt;&lt;li&gt;Help people in the organization make decisions, and&lt;/li&gt;&lt;li&gt;Meaningful in different culture (in case of global organizations).&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;Google's mission statement: "To organize the world information and make it universally accessible and useful."&lt;/blockquote&gt;&lt;b&gt;&lt;br /&gt;The eight worldly concerns&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Leaders tend to see ups and downs very frequently. So, they should learn to be calm and collected when facing problems. When facing a problem, four pairs of worldly concerns usually arises. These concerns should be avoided, as they induce negative energy. Rather than focusing on these concerns, leaders should develop their mind by asking the following questions:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Being distressed when belittled and elated when praised -&amp;gt; What is the purpose of the person who belittles or praised me? &lt;/li&gt;&lt;li&gt;Being depressed and happy when facing failure and success, respectively -&amp;gt;&amp;nbsp; What can I learn from the failure/success?&lt;/li&gt;&lt;li&gt;Being Disspirited and joyful when being poor and wealthy, respectively -&amp;gt; What can I do to better our status? &lt;/li&gt;&lt;li&gt;Being upset under the lack of recognition and pleased when being famous -&amp;gt; Am I getting arrogant?&lt;/li&gt;&lt;/ol&gt;Dealing with problems&lt;br /&gt;Hard problems are difficult to deal with. It is better to break the problems down into the following questions:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;What is the problem?&lt;/li&gt;&lt;li&gt;What is the cause of the problem?&lt;/li&gt;&lt;li&gt;What can I do to solve the problem?&lt;/li&gt;&lt;li&gt;How do I arrive the goals? &lt;/li&gt;&lt;/ul&gt;Source: THE Leader's  Way: Business, Buddhism and happiness in an  interconnected world by His  Holyiness The Dalai Lama and Laurens Van Den  Muyzenberg, Chapter 4 [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/bookreview-leaders-way-business.html"&gt;Read  the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/05/creating-profit-jobsor-happiness.html"&gt;Read the Next Part&lt;/a&gt;].&lt;br /&gt;---------------------------------------------------------------------------------------------------------  &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer   audiobooks. It's fun, and I can listen when I'm doing something else. It   also makes other activities (e.g., jogging) a lot more fun. For more   detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this   post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-10273919?url=http%3A%2F%2Fwww.audible.com%2Fadbl%2Fstore%2Fwelcome.jsp%3Fsource_code%3DCOMA0216WS042109%26entryRedirect%3D%2Fentry%2Foffers%2FproductPromo2.jsp%26entryParams%3D%5EproductID%7EBK_BOLI_000594&amp;amp;cjsku=BK_BOLI_000594" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://www.audible.com/audiblewords/content/bk/boli/000594/t4_image.jpg" /&gt;&lt;/a&gt;There is one more reason that may encourage  you to go  for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for   FREE. Audible offers you a free trial for 14 days. Even if you get the   book and cancel the subscription right away (so that you don't have to   pay), you can keep the book. And, don't worry if you lost the audiobook   file. Just log into audible.com. You can keep downloading the over and   over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the  summary: It takes  time to finish up a book. And, when  you do, sometimes,  you want to  review what you learn from the book. If  you do not make  notes as you  read, you might have to go through the  book once again.  This can be  time-consuming when you are dealing with a  book. But you can  still  flip through the book and locate what you are  looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to    locate a specific part of content. Most likely you will have to listen    to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the    book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting    examples and case studies, not included here. Reading the original book    would be much more entertaining and enlightening. If you like the    summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-7514787226892733985?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/7514787226892733985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=7514787226892733985' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7514787226892733985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/7514787226892733985'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/05/leaders-purpose-leaders-way-chapter-4.html' title='The Leader’s Purpose -- The Leader&apos;s Way, Chapter 4'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-4438683531348832629</id><published>2010-05-05T04:39:00.001-06:00</published><updated>2010-05-05T04:41:34.690-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NS2'/><category scheme='http://www.blogger.com/atom/ns#' term='general'/><title type='text'>[ns2] Do you really need NAM?</title><content type='html'>&lt;b&gt;NAM&lt;/b&gt;&lt;br /&gt;Recently, I've got few people asking about installation NAM (network animator) in NS2. Usually it is quite straightforward to do it in Linux. But it's quite tricky in Windows (with Cygwin). To be honest, I have not tried to use NAM in Cygwin. If I have time, I might try and let you know.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Have Not Try?&lt;/b&gt;&lt;br /&gt;You might wonder what I mean by I have not tried to use NAM. Won't I need it to do the research work? But the fact is I don't have any need to use NAM in my 10 years of research work.&lt;br /&gt;Performance measures that I use are for example average and variance of throughput, delay, fairness, etc. These parameters cannot measured by NAM. That's why I have never use NAM. Because of this, I have never had problem of installing X-Window in Cygwin.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;If not NAM, then What?&lt;/b&gt;&lt;br /&gt;There are several other ways to measure performance. For example, if you would like to know TCP throughput, just print out the final sequence number of a TCP flow and divide that number by the simulation time.&lt;br /&gt;In other cases, I do need to write the information to text files or analyze the trace file. I will blog about it. Please stick around.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Comments?&lt;/b&gt;&lt;br /&gt;I will be interested to know the cases where NAM is required, apart from the fact that it nicely moves. If you have any, I would be appreciated if you let me know.&lt;br /&gt;&lt;br /&gt;==============================================================&lt;br /&gt;&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For   more information about NS2, see the  following book from Springer: &lt;br /&gt;T. Issaraiyakul   and    E. Hossain,  “Introduction to Network Simulator NS2”, Springer   2009. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You  may also find lecture notes and  other resource at the following      website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-4438683531348832629?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/4438683531348832629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=4438683531348832629' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4438683531348832629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4438683531348832629'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/05/ns2-do-you-really-need-nam.html' title='[ns2] Do you really need NAM?'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-8869359336782829437</id><published>2010-05-01T07:53:00.004-06:00</published><updated>2010-07-09T21:15:20.350-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Dalai Lama'/><title type='text'>Doing the Right Thing -- The Leader's Way, Chapter 2</title><content type='html'>&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1857885112&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt; &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;"A leader will only be respected, when he acts according to the  principles in which he said he believes." &lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Leaders and Their Roles&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If the leader does not follow the principles, his followers will not follow the principles, but will follow the leaders’ whimsical will.&lt;br /&gt;&lt;br /&gt;The roles of leaders include making decision and taking actions for the organization and people working for them. Leader should practice right conduct, which is achieved when acting according to right view.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;"If the leader listens to you, it makes you feel valued and important." &lt;br /&gt;&lt;br /&gt;Right conduct is an offspring of two following concepts: Right intention and wholesome actions. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Right Intention&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Right intention refers to the care of well-being of the majority of people, not of everyone. This is because a benefit for a group of people can harm the others. It is quite impossible to make a decision which benefit everyone.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Wholesome decision&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The decisions and actions must be wholesome. Wholesome refers to the following 6 perfections:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Generosity: Do not take all the credits. Give some to others.&lt;/li&gt;&lt;li&gt;Ethical discipline: Reach your goal ethically.&lt;/li&gt;&lt;li&gt;Patience: Suppress your negative emotion.&lt;/li&gt;&lt;li&gt;Enthusiastic effort: Be diligent.&lt;/li&gt;&lt;li&gt;Concentration: Focus. Do not let your attention shift while working on a certain thing.&lt;/li&gt;&lt;li&gt;Wisdom&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;blockquote&gt;"Worry is a waste of energy. It does not solve anything."&lt;/blockquote&gt;&lt;br /&gt;Apart from the above 6 perfections, the followings are considered wholesome as well&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Humility: Be humble, listen, and admit mistakes.&lt;/li&gt;&lt;li&gt;Self-confidence&lt;/li&gt;&lt;li&gt;Consideration: Concern about well-being of others.&lt;/li&gt;&lt;li&gt;Equanimity: Be calm. Do not attach to bias or craving.&lt;/li&gt;&lt;li&gt;Having sense of shame.&lt;/li&gt;&lt;li&gt;Vigor&lt;/li&gt;&lt;li&gt;Receptivity and openminded.&lt;/li&gt;&lt;li&gt;Kindness&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;"Nothing can be gained by being unfriendly."&lt;/blockquote&gt;&lt;br /&gt;Source: THE Leader's Way: Business, Buddhism and happiness in an  interconnected world by His Holyiness The Dalai Lama and Laurens Van Den  Muyzenberg, Chapter 2 [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/bookreview-leaders-way-business.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/training-mind-leaders-way-chapter-3.html"&gt;Read the Next Part&lt;/a&gt;].&lt;br /&gt;--------------------------------------------------------------------------------------------------------- &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer  audiobooks. It's fun, and I can listen when I'm doing something else. It  also makes other activities (e.g., jogging) a lot more fun. For more  detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this  post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-10273919?url=http%3A%2F%2Fwww.audible.com%2Fadbl%2Fstore%2Fwelcome.jsp%3Fsource_code%3DCOMA0216WS042109%26entryRedirect%3D%2Fentry%2Foffers%2FproductPromo2.jsp%26entryParams%3D%5EproductID%7EBK_BOLI_000594&amp;amp;cjsku=BK_BOLI_000594" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://www.audible.com/audiblewords/content/bk/boli/000594/t4_image.jpg" /&gt;&lt;/a&gt;There is one more reason that may encourage  you to go for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for  FREE. Audible offers you a free trial for 14 days. Even if you get the  book and cancel the subscription right away (so that you don't have to  pay), you can keep the book. And, don't worry if you lost the audiobook  file. Just log into audible.com. You can keep downloading the over and  over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the  summary: It takes time to finish up a book. And, when  you do, sometimes,  you want to review what you learn from the book. If  you do not make  notes as you read, you might have to go through the  book once again.  This can be time-consuming when you are dealing with a  book. But you can  still flip through the book and locate what you are  looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to   locate a specific part of content. Most likely you will have to listen   to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the   book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting   examples and case studies, not included here. Reading the original book   would be much more entertaining and enlightening. If you like the   summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-8869359336782829437?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/8869359336782829437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=8869359336782829437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8869359336782829437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/8869359336782829437'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/05/doing-right-thing-leaders-way-chapter-2.html' title='Doing the Right Thing -- The Leader&apos;s Way, Chapter 2'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-4833283351825971954</id><published>2010-04-23T23:54:00.004-06:00</published><updated>2010-07-09T21:14:43.115-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Dalai Lama'/><title type='text'>Training the Mind -- The Leader's Way, Chapter 3</title><content type='html'>&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1857885112&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt; &lt;br /&gt;&lt;b&gt;Why do we want to train our mind?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The purpose of training your mind is to&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Be clam, collected, and concentrated all the time (especially when making decision).&lt;/li&gt;&lt;li&gt;Enable the mind to analyze things quickly.&lt;/li&gt;&lt;/ol&gt;Training your mind to the perfection is too difficult. So you should aim at steady progress.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;FAQ for Mind Training&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Q: How can you find time to meditate?&lt;br /&gt;A: You don’t need a lot of time. You can use the time that you have to wait for something. Five minutes would be quite sufficient.&lt;br /&gt;&lt;br /&gt;Q: Do you need a spiritual teacher?&lt;br /&gt;A: Yes, but you should assess the ability of the teacher first. The teacher should use his experience, not just follow the book. Once you have chosen a teacher, you should abide by his teaching. It is important to learn with doubt. Take his knowledge, not his words.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Simple techniques to train mind&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The four main meditation approaches are walking meditation, sitting meditation, one-pointed meditation, and analytical mediation&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Walking meditation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This is the simplest approach. The purpose is to develop the mindfulness and concentration, and the ability to observe when the emotion becomes active in the brain.&lt;br /&gt;&lt;br /&gt;Walking meditation proceed as follows. As you walk, focus your body: Your legs, your feet, your steps, etc. Do not think of the pass nor the future. Focus at the present. Be mindful all the time. When your mind shift, bring it back.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Sitting meditation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Your activity affects your breathing. You hold your breath when you lift a heavy thing. You breathe quickly when you are excited. You can use your breathing to control your emotion and your mind.&lt;br /&gt;&lt;br /&gt;When doing sitting meditation, sit with your back straight. Do not lean on anything, or you will be sleepy. Focus on your breathing only. When you breath in to fill up your stomach. Breath out to deflate your stomach. Each breathing should take 4-6 seconds. If you attention shifts, bring it back to your breathing. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;One pointed meditation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Similar to the first two meditation. But this time focus your mind on an object such as a picture of forest. Focus on the picture only. Again, if your attention shift, bring it back.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Analytical meditation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Focus on a certain subject. Think and reason with one subject only. This type of meditation helps gain deeper insight into the subject you are focusing on.&lt;br /&gt;&lt;br /&gt;Source: THE Leader's Way: Business, Buddhism and happiness in an  interconnected world by His Holyiness The Dalai Lama and Laurens Van Den  Muyzenberg, Chapter 3 [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/bookreview-leaders-way-business.html"&gt;Read the Book Review&lt;/a&gt;] [&lt;a href="http://t-issariyakul.blogspot.com/2010/05/leaders-purpose-leaders-way-chapter-4.html"&gt;Read the Next Part&lt;/a&gt;].&lt;br /&gt;--------------------------------------------------------------------------------------------------------- &lt;br /&gt;&lt;b&gt;Book or Audiobooks?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-3215981" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="133" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s200/audible+-+freeTrial.png" width="200" /&gt;&lt;/a&gt;Personally, I prefer  audiobooks. It's fun, and I can listen when I'm doing something else. It  also makes other activities (e.g., jogging) a lot more fun. For more  detail about audiobooks, please read [&lt;a href="http://t-issariyakul.blogspot.com/2010/04/text-to-speech-and-audiobook.html"&gt;this  post&lt;/a&gt;].&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.dpbolvw.net/click-3877311-10273919?url=http%3A%2F%2Fwww.audible.com%2Fadbl%2Fstore%2Fwelcome.jsp%3Fsource_code%3DCOMA0216WS042109%26entryRedirect%3D%2Fentry%2Foffers%2FproductPromo2.jsp%26entryParams%3D%5EproductID%7EBK_BOLI_000594&amp;amp;cjsku=BK_BOLI_000594" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://www.audible.com/audiblewords/content/bk/boli/000594/t4_image.jpg" /&gt;&lt;/a&gt;There is one more reason that may encourage  you to go for the audiobook version. You can &lt;a href="http://www.kqzyfj.com/click-3877311-3215981"&gt;get it&lt;/a&gt; now for  FREE. Audible offers you a free trial for 14 days. Even if you get the  book and cancel the subscription right away (so that you don't have to  pay), you can keep the book. And, don't worry if you lost the audiobook  file. Just log into audible.com. You can keep downloading the over and  over again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;About the  summary: It takes time to finish up a book. And, when  you do, sometimes,  you want to review what you learn from the book. If  you do not make  notes as you read, you might have to go through the  book once again.  This can be time-consuming when you are dealing with a  book. But you can  still flip through the book and locate what you are  looking for&lt;br /&gt;&lt;br /&gt;However, when the material is an audiobook, it is extremely hard to   locate a specific part of content. Most likely you will have to listen   to the entire audiobook once again.&lt;br /&gt;&lt;br /&gt;This book summary will help solve the pain of having to go through the   book all over again.&lt;br /&gt;&lt;br /&gt;I am leaving out the details of the books. Most books have interesting   examples and case studies, not included here. Reading the original book   would be much more entertaining and enlightening. If you like the   summary, you may want to get the original from the source below.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-4833283351825971954?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/4833283351825971954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=4833283351825971954' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4833283351825971954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4833283351825971954'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/04/training-mind-leaders-way-chapter-3.html' title='Training the Mind -- The Leader&apos;s Way, Chapter 3'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S7cDTbTUxkI/AAAAAAAAAGM/BYySdsMAyMI/s72-c/audible+-+freeTrial.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-6441932368782102359</id><published>2010-04-21T04:29:00.002-06:00</published><updated>2010-04-21T07:19:25.998-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Commonly Used Windows Shortcuts</title><content type='html'>Are you using Windows 7? Do you perfer keyboards to mouse? If you do, you might want to read on.&lt;br /&gt;&lt;br /&gt;I am a Windows user, and I hate to take my hands off the keyboards. I love shortcuts. I am quite happy that &lt;a href="http://www.microsoft.com/windows/explore/20-pc-shortcuts.aspx"&gt;Zia Munshi compiled and published 20 commonly used short-cut on Windows website&lt;/a&gt;. In fact, I learned it from &lt;a href="http://twit.tv/ww"&gt;Windows Weekly Show with Leo Laporte and Paul Thurrott&lt;/a&gt;. Feel free to check their websites out.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Commonly Used Windows Shortcuts&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Basic shortcuts Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Z, Ctrl+A, Ctrl+P, Alt+Tab&lt;/li&gt;&lt;li&gt;Windows+D: Show desktops&lt;/li&gt;&lt;li&gt;Windows+Up arrow: Maximize windows&lt;/li&gt;&lt;li&gt;Windows+Down arrow: Minimize windows&lt;/li&gt;&lt;li&gt;Windows+Left/Right arrow: Snap windows to different position to on you screen. This short cuts work on multiple screen setting.&lt;/li&gt;&lt;li&gt;Windows+P: Switch among various multi-monitor setting.&amp;nbsp; &lt;/li&gt;&lt;li&gt;Ctrl+Shift+Escape: Show task manage&lt;/li&gt;&lt;li&gt;Ctrl+L: Lock your computer&lt;/li&gt;&lt;li&gt;Ctrl+Click on taskbar: Switch between multiple instance under the same application. To try this, launch several IE instance. Then, click the taskbar icon while holding down the control key.&amp;nbsp; &lt;/li&gt;&lt;li&gt;Shift+Click on taskbar: Launch an instance (e.g., a new windows of IE) . &lt;/li&gt;&lt;li&gt;Windows + '+'/Windows + '-': Zoom in and Zoom out&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-6441932368782102359?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/6441932368782102359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=6441932368782102359' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6441932368782102359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/6441932368782102359'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/04/commonly-used-windows-shortcuts.html' title='Commonly Used Windows Shortcuts'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-5075915329900501238</id><published>2010-04-20T10:15:00.000-06:00</published><updated>2010-04-20T10:15:48.180-06:00</updated><title type='text'>Assistance and Ethics</title><content type='html'>&lt;b&gt;How much help is too much?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Recently, I've received and seen quite a bit of emails asking for help. I understand the frustration. I was there, frustrated of not knowing what to do. But some of the questions went a bit overboard.&lt;br /&gt;While I am willing to help, you've gotta help yourself too. Here are the questions that I don't think I will be able to comment on&lt;br /&gt;&lt;ul&gt;&lt;li&gt;I want to implement this protocol. Please send me the code.&lt;/li&gt;&lt;li&gt;I don't know what's wrong with the code. Can you help debugging my codes?&lt;/li&gt;&lt;/ul&gt;If the help you needed is one of the above, I might not be your best resource.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;Ethics: Learning, not Delegating &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I believe most people visiting this website would be students. What you need to keep in mind is the purpose of being who you are. The purpose of being a student is to learn, not to ask someone to do the homework for you. It is you who are learning, not me nor somebody else. So, it is you who will have to do the dirty work, and, in the process, learn something useful. I am here to help, not to do the work for you.&lt;br /&gt;Note: While getting open-source code is ethical, it is your job to find the code and understand it. You might have to read the documentation, contact the authors, and/or go through the code. In the end, you will learn something, and you will be able to modified to code to fit your need.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Everything is important&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A lot of students does not think highly of programming. They believe that their main objective is to learn telecommunications subjects, not programming. They are right. There are other methods to do high level study on telecommunications (e.g., mathematics). They don't need NS2. If you are one of them, do not spend too much time in NS2. You might be able to do high-level research without using NS2.&lt;br /&gt;&lt;br /&gt;For me, I like NS2 because of its potential to do a lot of things. And, it help me and others understand telecommunications better. I believe that programming is as important as the subject I am interested in. So I painfully trained myself in programming and debugging. In the end, I am quite happy with things I learned and skills I obtained.&lt;br /&gt;I believe everything is important. So I would like to share this mindset with you guys.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Services  I Offer&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;After a long lecture about ethics and boring stuff,  you might wonder "what do I get by visiting this website?'' I believe  what this website offers is of interest to the general public (e.g., NS2 installation, including new modules into NS2, routing modules, etc.)  If you have specific problem that I can help without breaking the above  ethics, I will gladly help. Just post your question on my &lt;a href="http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417"&gt;facebook  fanpage&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Be Specific&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Questions like "I want to implement a WFQ algorithm. How do I do that in NS2?'' are too broad, and would not comply with the above ethics. Again, this is you  work, not mine. You have to work on that yourself so that you can  learn something. Do the work until you run into a real problem like "I  have implemented WFQ in C++. How do I integrated into Tcl?" Show me that  you have done some work. And, I will point you to the right direction.  You will feel more satisfied when you discover things by yourself,  rather than having someone to tell you exactly what to do.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-5075915329900501238?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/5075915329900501238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=5075915329900501238' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5075915329900501238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/5075915329900501238'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/04/assistance-and-ethics.html' title='Assistance and Ethics'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-2379144573987813686</id><published>2010-04-12T21:27:00.000-06:00</published><updated>2010-04-12T21:27:43.230-06:00</updated><title type='text'>Synaptics: Disabling touch page, gestures, and more</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;Are you using a laptop? Does your laptop has a TouchPad? Does the TouchPad messup with your typing rhythm? If so, read on. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Accidental Touch on a TouchPad: What's an annoyance&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_eW8Uemxxm60/S8FmO7JkwwI/AAAAAAAAAGU/nlLi6NVUZg8/s1600/Synaptic-TouchPad.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="150" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S8FmO7JkwwI/AAAAAAAAAGU/nlLi6NVUZg8/s200/Synaptic-TouchPad.png" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;I've got a new Fujitsu S6420 few months ago. This is a nice laptop. The size is compact. It is easy to carry around. But because of its compactness, the touch pad is so close to keyboard. While typing my thumb would accidentally touch the touch pad. The cursor position would change and mess up my typing. I am kindda guy who don't like taking my hand off the keyboard. So, I get really annoyed when my hand accidentally touch the keypad.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;Plugging Mouse Doesn't Help&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Mouse isn't like headphone. In most computers, the speakers is disabled, when you plug in a headphone. Unfortunately, when you plug in a USB mouse. Both TouchPad and USB mouses work at the same time. So, plugging in a USB mouse doesn't help me. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;My Savior: Synaptics&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Google is my friend. I find this solution by googling "disabling TouchPad", and following webboards. I found the company Synaptic, which offers drivers for TouchPad [ &lt;a href="http://www.synaptics.com/support/drivers"&gt;here &lt;/a&gt;]. It works! Here is how&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What you need to do are&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download and install the driver [ &lt;a href="http://www.synaptics.com/support/drivers"&gt;Again from here&lt;/a&gt; ].&lt;/li&gt;&lt;li&gt;Restart your computer. Synaptics driver will appear on your taskbar (Arrows 1 and 2).&lt;/li&gt;&lt;li&gt;Open "Pointing Device Properties" (Arrow 3).&lt;/li&gt;&lt;li&gt;Click "Disable" (Arrow 4).&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_eW8Uemxxm60/S8F1h57gxcI/AAAAAAAAAGc/yZ_X_D6l4pU/s1600/Synaptic-Config.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="343" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S8F1h57gxcI/AAAAAAAAAGc/yZ_X_D6l4pU/s400/Synaptic-Config.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;Done! Now, the only active device is your USB mouse. At anytime you can click enable to activate the TouchPad. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Additional Features&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;There are few more cool features with Synaptics. You can set them up by clicking "Settings..." (Arrow 5). You can see the details [ &lt;a href="http://www.synaptics.com/solutions/products/touchpad"&gt;here &lt;/a&gt;]&lt;br /&gt;&lt;br /&gt;The followings are few features that I like (and use)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Scrolling: &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_eW8Uemxxm60/S8F1-STbamI/AAAAAAAAAGk/A33-Qxc4HIQ/s1600/Synaptic-ScrRegion.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_eW8Uemxxm60/S8F1-STbamI/AAAAAAAAAGk/A33-Qxc4HIQ/s320/Synaptic-ScrRegion.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Vertical scrolling&lt;/b&gt;: This is similar to wheel-mouse where you can move an active page up and down. Just place your finger on the right edge and drag up and down. Alternatively, you don't have to drag at the edge, if you use two fingers. Try it!&lt;/li&gt;&lt;li&gt;&lt;b&gt;Horizontal scrolling&lt;/b&gt;: Similar to up-down scrolling, horizontal scrolling allows you to move page left and right. I find this feature quite useful when I am reading a document or viewing picture with large width. This time place your finger on the bottom of the touch and drag left and right.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Adjusting scrolling area&lt;/b&gt;: Another great things about Synaptics is it allows you to adjust the scrolling areas on the left and the bottom of the TouchPad. Just choose Scrolling-&amp;gt;One-Finger-Scrolling-&amp;gt;Scrolling Region and adjust the green area in the picture.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Chiral scrolling&lt;/b&gt;: Most TouchPads are very small. How much can you do vertical and horizontal scrolling? Not much, eh? Synaptics makes a cleaver move for TouchPad. Suppose you are doing a vertical scroll. You would touch the top of the scrolling area and drag down. When there is no way to go, you can make a clock-wise spiral move as in the picture. The active will keep scrolling down as long as you move your finger spirally. To scroll up, just reverse the spiral direction. Not surprisingly, this gesture works for horizon (left-right) scrolling as well.&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_eW8Uemxxm60/S8F2rgbFsEI/AAAAAAAAAG0/OeqAzlVUNi0/s1600/Synaptic-Gesture.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="191" src="http://3.bp.blogspot.com/_eW8Uemxxm60/S8F2rgbFsEI/AAAAAAAAAG0/OeqAzlVUNi0/s400/Synaptic-Gesture.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;Pinch Zoom&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This feature works like multi-touch in iPhone. Just touch two points on a TouchPad. You can zoom in and out by dragging those two points closer and away, respectively, from each other&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Edge Motion&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Again, most touch pad is very small. One swipe might not bring a mouse pointer to the point you want. This is especially true for multi-monitor environment. With this feature, you can drag a pointer to the edge of the TouchPad in a single swipe. As long as your finger still touch the TouchPad, the mouse pointer will continue moving to the dragging direction. Again, you can also define the region where you call "edge" (like in scrolling).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;There are more...&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I just select few features that I like. There are a lot more features from &lt;a href="http://www.synaptics.com/"&gt;Synaptics&lt;/a&gt;. Their utilities is not limited to TouchPad. Other utilities are for example ClickPad in MacBook.&lt;br /&gt;&lt;br /&gt;Well, the best thing is that it works on almost any laptop and it's free!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-2379144573987813686?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/2379144573987813686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=2379144573987813686' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/2379144573987813686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/2379144573987813686'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/04/synaptics-disabling-touch-page-gestures.html' title='Synaptics: Disabling touch page, gestures, and more'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_eW8Uemxxm60/S8FmO7JkwwI/AAAAAAAAAGU/nlLi6NVUZg8/s72-c/Synaptic-TouchPad.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-4372866720215269402</id><published>2010-04-11T07:11:00.001-06:00</published><updated>2010-04-11T07:12:03.226-06:00</updated><title type='text'>Classifiers: A Multi-Target Packet Forwarder</title><content type='html'>Note: This is a detailed note for the &lt;a href="http://www.ns2ultimate.com/"&gt;book&lt;/a&gt;,   Introduction to Network Simulator NS2. You   may have to read chapter 6   of the &lt;a href="http://www.ns2ultimate.com/"&gt;book&lt;/a&gt; for better understanding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;This post is a sequel of the previous post, which demonstrated the  relationship of  classifiers, routing modules, and nodes:&lt;br /&gt;&lt;ul&gt;&lt;li&gt; &lt;a href="http://www.ns2ultimate.com/post/427665435/classifiers-and-routing-modules"&gt;What  are they, their purposes, their relationship, &lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/463202386/classifiers-and-routing-modules-configuration"&gt;How  to configure them conceptually&lt;/a&gt;, and&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/478990274/classifiers-and-routing-modules-putting-a-default"&gt;Using  &lt;i&gt;$ns node&lt;/i&gt;, how a default classifier, namely “&lt;i&gt;classifier_&lt;/i&gt;”,  is created and put  in a node.&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ns2ultimate.com/post/495510167/classifiers-and-routing-modules-putting-a-routing"&gt;Putting a routing modules &lt;i&gt;rtnotif_ &lt;/i&gt;and&lt;i&gt; ptnotif_&lt;/i&gt; in a node using "&lt;i&gt;$ns node&lt;/i&gt;" &lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a name='more'&gt;&lt;/a&gt;What’s in This Post&lt;/b&gt;&lt;br /&gt;I feel that before we can proceed further we need an understanding of what classifier is. Basically, it is an object which connects one NsObjects to several NsObjects. Note, in NS2 terminology, every object which can send and receive packets is called an NsObject.&lt;br /&gt;I made up a presentation file which explains the concept of classifiers: What it is What's its purpose, How it works, How to configure it. Enjoy...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.slideshare.net/TBear76/20100403-classifiers" title="NS2 Classifiers"&gt;NS2 Classifiers&lt;/a&gt;&lt;/b&gt; &lt;br /&gt;&lt;object height="355" width="425"&gt; &lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=20100403-classifiers-100411024558-phpapp01&amp;amp;stripped_title=20100403-classifiers" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="allowScriptAccess" value="always" /&gt;&lt;embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=20100403-classifiers-100411024558-phpapp01&amp;amp;stripped_title=20100403-classifiers" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="355" width="425"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;br /&gt;&lt;br /&gt;View more &lt;a href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a href="http://www.slideshare.net/TBear76"&gt;Teerawat Issariyakul&lt;/a&gt;.&lt;br /&gt;========================================================&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1441944125&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;For more information about classifiers and routing module, see    Chapter 6 in the  following book from Springer: &lt;br /&gt;T. Issaraiyakul and    E. Hossain,  “Introduction to Network Simulator NS2”, Springer 2009.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You may also find lecture notes and other resource at the following     website: &lt;a href="http://www.ece.ubc.ca/%7Eteerawat/NS2.htm" target="_blank"&gt;http://www.ece.ubc.ca/~teerawat/NS2.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6705973982656162350-4372866720215269402?l=t-issariyakul.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://t-issariyakul.blogspot.com/feeds/4372866720215269402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6705973982656162350&amp;postID=4372866720215269402' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4372866720215269402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6705973982656162350/posts/default/4372866720215269402'/><link rel='alternate' type='text/html' href='http://t-issariyakul.blogspot.com/2010/04/classifiers-multi-target-packet.html' title='Classifiers: A Multi-Target Packet Forwarder'/><author><name>Teerawat</name><uri>http://www.blogger.com/profile/05146281366158685597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_eW8Uemxxm60/TJgtAV-C6PI/AAAAAAAAAHo/ifinYetxf4s/S220/Copy+ofIMG_6693.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6705973982656162350.post-7925678368933390599</id><published>2010-04-09T23:18:00.004-06:00</published><updated>2010-07-09T21:12:05.329-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Summary'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Dalai Lama'/><title type='text'>Taking The Right View -- The Leader's Way, Chapter 1</title><content type='html'>&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ns2ultteeiss-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1857885112&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt; &lt;br /&gt;&lt;blockquote&gt;"Right view relates to the intention behind the decision. Right conduct refers to the quality of actions."&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Right View&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Right view is based on three following facts:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Having right intention&lt;/li&gt;&lt;li&gt;Understanding cause-effect law&lt;/li&gt;&lt;li&gt;Having right state of mind&lt;/li&gt;&lt;/ol&gt;Having right intention is to think about self and others: not self, not other, but both self and others.&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cause and Effect&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Cause-effect is a law of nature. Nothing happens without cause. By admitting this law, we shall understand that everything is inter-dependent. Everything you do will have&amp;nbsp; consequence. So think before act. Control your emotion. Do not let your emotion contro
