<?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-38307392</id><updated>2011-08-20T06:51:01.622-07:00</updated><title type='text'>模擬小狗的memo</title><subtitle type='html'>engineering phase</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://threecia-tech.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://threecia-tech.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>threecia</name><uri>http://www.blogger.com/profile/14839577045244960329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-38307392.post-785059176369636750</id><published>2010-11-22T01:27:00.000-08:00</published><updated>2011-01-04T19:45:22.101-08:00</updated><title type='text'>2011京都賞櫻</title><content type='html'>1. 4/2(六) ~ 4/9(六)&lt;br /&gt;&lt;br /&gt;2. 飛機&amp;住宿&lt;br /&gt;&lt;br /&gt;雄獅旅遊&lt;br /&gt;http://www.liontravel.com/&lt;br /&gt;國泰航空 艙等V 14天旅遊票 網上訂位價11235 電話訂位價11235&lt;br /&gt;國泰航空 艙等L 14天旅遊票 網上訂位價12181 電話訂位價12305&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;東橫INN (連鎖旅館, 各地房間完全一樣)&lt;br /&gt;http://www.toyoko-inn.com/china/&lt;br /&gt;&lt;br /&gt;京都四條烏丸分店&lt;br /&gt;http://www.toyoko-inn.com/hotel/00040/index.html&lt;br /&gt;京都府京都市下京区烏丸通松原下る五条烏丸町393番&lt;br /&gt;TEL：075-344-1045&lt;br /&gt;FAX：075-344-1047&lt;br /&gt;地圖如下&lt;br /&gt;http://www.toyoko-inn.com/hotel/00040/map.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. 賞櫻地點&lt;br /&gt;&lt;br /&gt;google map 賞櫻地點整理&lt;br /&gt;---------------------------------------------&lt;br /&gt;http://maps.google.com.tw/maps?f=q&amp;source=s_q&amp;hl=zh-TW&amp;geocode=&amp;q=%E4%B8%8A%E9%87%8E&amp;sll=35.717598,139.778838&amp;sspn=0.030383,0.062785&amp;brcurrent=3,0x0:0x0,0&amp;ie=UTF8&amp;hq=&amp;hnear=%E6%97%A5%E6%9C%AC,+%E4%B8%8A%E9%87%8E%E7%AB%99&amp;ll=35.713765,139.77725&amp;spn=0.030385,0.062785&amp;t=h&amp;z=15&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. 景點&lt;br /&gt;&lt;br /&gt;4. 名產&lt;br /&gt;&lt;br /&gt;5. 地圖&amp;交通&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38307392-785059176369636750?l=threecia-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://threecia-tech.blogspot.com/feeds/785059176369636750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38307392&amp;postID=785059176369636750' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/785059176369636750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/785059176369636750'/><link rel='alternate' type='text/html' href='http://threecia-tech.blogspot.com/2010/11/2011.html' title='2011京都賞櫻'/><author><name>threecia</name><uri>http://www.blogger.com/profile/14839577045244960329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38307392.post-5687031841574208122</id><published>2010-10-17T19:24:00.002-07:00</published><updated>2010-10-17T19:36:53.845-07:00</updated><title type='text'>中壢聚餐地點</title><content type='html'>1. 古月新城&lt;br /&gt;中壢市健行路41號&lt;br /&gt;(03)4588270&lt;br /&gt;http://www.h2ocity.com.tw/shop.asp?shop_id=7528&lt;br /&gt;&lt;br /&gt;http://www.wretch.cc/blog/lucy812411/20561412&lt;br /&gt;http://www.wretch.cc/blog/lucidglass/19586882&lt;br /&gt;http://tw.myblog.yahoo.com/mnsod2007/article?mid=7575&amp;prev=7598&amp;next=-1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. 陽光森林義式廚房&lt;br /&gt;中壢市中央西路二段193號&lt;br /&gt;(03)4945611&lt;br /&gt;http://yo.xuite.net/info/element.php?id=WiTQsfn_F3vSwENJp5V1kw&lt;br /&gt;&lt;br /&gt;http://travelsolio.pixnet.net/blog/post/25246836&lt;br /&gt;http://blog.xuite.net/gelion/blog/36077188&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. 夏諾瓦義大利麵&lt;br /&gt;中壢市中央西路二段268號&lt;br /&gt;(03)4938878&lt;br /&gt;沒有網頁, 但有很多食記&lt;br /&gt;&lt;br /&gt;http://travelsolio.pixnet.net/blog/post/24576884&lt;br /&gt;http://travelsolio.pixnet.net/blog/post/24897812&lt;br /&gt;http://haruhii.pixnet.net/blog/post/25907071&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38307392-5687031841574208122?l=threecia-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://threecia-tech.blogspot.com/feeds/5687031841574208122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38307392&amp;postID=5687031841574208122' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/5687031841574208122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/5687031841574208122'/><link rel='alternate' type='text/html' href='http://threecia-tech.blogspot.com/2010/10/blog-post.html' title='中壢聚餐地點'/><author><name>threecia</name><uri>http://www.blogger.com/profile/14839577045244960329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38307392.post-3700067031314259425</id><published>2010-07-02T10:08:00.000-07:00</published><updated>2010-07-02T18:32:32.701-07:00</updated><title type='text'>花東行memo</title><content type='html'>住:&lt;br /&gt;&lt;br /&gt;花蓮&lt;br /&gt;&lt;br /&gt;花蓮國軍英雄館&lt;br /&gt;http://www.netete.com/hero/about.htm&lt;br /&gt;花蓮市花崗街56號&lt;br /&gt;兩人套房1400&lt;br /&gt;&lt;br /&gt;樺城民宿&lt;br /&gt;http://www.leehome-taroko.com.tw/order.htm&lt;br /&gt;花蓮縣新城鄉新城村中正路30號&lt;br /&gt;兩人套房1000&lt;br /&gt;&lt;br /&gt;花蓮縣勞工育樂中心&lt;br /&gt;http://www.labor038563461.com/index.asp&lt;br /&gt;&lt;span class="style3"&gt;花蓮縣花蓮市富安路199號&lt;/span&gt;&lt;br /&gt;兩人房1000&lt;br /&gt;&lt;br /&gt;民宿-六號美宿館&lt;br /&gt;http://hs101.com.tw/news/index.php&lt;br /&gt;花蓮市國盛八街95號&lt;br /&gt;兩人房1200&lt;br /&gt;&lt;br /&gt;台東&lt;br /&gt;&lt;br /&gt;原住民文化會館&lt;br /&gt;http://www.tac-hotel.com.tw/hotel.html&lt;br /&gt;台東市中山路10號&lt;br /&gt;兩人房1150&lt;br /&gt;&lt;br /&gt;假期商務旅館&lt;br /&gt;http://www.easytravel.com.tw/ehotel/default.aspx?n=7301&lt;br /&gt;台東市正氣路147號&lt;br /&gt;兩人房1000&lt;br /&gt;&lt;br /&gt;馨園商務旅館&lt;br /&gt;http://www.happyin.com.tw/&lt;br /&gt;台東市中山路402號&lt;br /&gt;兩人房1000-1400&lt;br /&gt;&lt;br /&gt;高雄&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;行:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38307392-3700067031314259425?l=threecia-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://threecia-tech.blogspot.com/feeds/3700067031314259425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38307392&amp;postID=3700067031314259425' title='23 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/3700067031314259425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/3700067031314259425'/><link rel='alternate' type='text/html' href='http://threecia-tech.blogspot.com/2010/07/memo.html' title='花東行memo'/><author><name>threecia</name><uri>http://www.blogger.com/profile/14839577045244960329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>23</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38307392.post-5029371212619286634</id><published>2010-06-27T00:38:00.001-07:00</published><updated>2010-06-27T00:38:41.360-07:00</updated><title type='text'>mms location</title><content type='html'>音樂&lt;br /&gt;ASIAFM衛星音樂台 321 mms://bcr.media.hinet.net/RA000004&lt;br /&gt;Apple line 蘋果線上 248 mms://bcr.media.hinet.net/RA000001&lt;br /&gt;BestRadio 台中好事903 211 mms://bcr.media.hinet.net/RA000010&lt;br /&gt;BestRadio 台北好事989 212 mms://bcr.media.hinet.net/RA000013&lt;br /&gt;BestRadio 花蓮好事935 303 mms://bcr.media.hinet.net/RA000011&lt;br /&gt;BestRadio 高雄港都983 213 mms://bcr.media.hinet.net/RA000012&lt;br /&gt;Flyradio飛揚調頻895 357 mms://bcr.media.hinet.net/RA000019&lt;br /&gt;KISS RADIO 南投廣播 258 mms://bcr.media.hinet.net/RA000043&lt;br /&gt;KISS RADIO 台南知音廣播 255 mms://bcr.media.hinet.net/RA000044&lt;br /&gt;KISS RADIO 大苗栗廣播 256 mms://bcr.media.hinet.net/RA000041&lt;br /&gt;KISS RADIO大眾廣播電台 156 mms://bcr.media.hinet.net/RA000040&lt;br /&gt;KISSRadio 網路音樂台 308 mms://bcr.media.hinet.net/RA000042&lt;br /&gt;POP Radio 370 mms://bcr.media.hinet.net/RA000080&lt;br /&gt;中廣古典網 162 mms://bcr.media.hinet.net/RA000005&lt;br /&gt;中廣流行網 205 mms://bcr.media.hinet.net/RA000009&lt;br /&gt;中廣音樂網i radio 206 mms://bcr.media.hinet.net/RA000007&lt;br /&gt;佳音CCM 340 mms://bcr.media.hinet.net/RA000031&lt;br /&gt;全國廣播音樂網 338 mms://bcr.media.hinet.net/RA000047&lt;br /&gt;台北之音HitFM聯播網 台中 88 mms://bcr.media.hinet.net/RA000035&lt;br /&gt;台北之音HitFM聯播網 台北 222 mms://bcr.media.hinet.net/RA000036&lt;br /&gt;台北之音HitFM聯播網 高雄 90 mms://bcr.media.hinet.net/RA000034&lt;br /&gt;台北愛樂 228 mms://bcr.media.hinet.net/RA000018&lt;br /&gt;台灣之音-音樂 313 mms://bcr.media.hinet.net/RA000061&lt;br /&gt;太陽電台 289 mms://bcr.media.hinet.net/RA000064&lt;br /&gt;奇美古典音樂網 294 mms://bcr.media.hinet.net/RA000014&lt;br /&gt;寶島新聲廣播電台 259 mms://bcr.media.hinet.net/RA000066&lt;br /&gt;&lt;br /&gt;生活資訊&lt;br /&gt;ASIA FM92.3亞太電台 295 mms://bcr.media.hinet.net/RA000002&lt;br /&gt;ASIA FM92.7亞州電台 210 mms://bcr.media.hinet.net/RA000003&lt;br /&gt;GOLD FM-台中城市廣播 226 mms://bcr.media.hinet.net/RA000028&lt;br /&gt;GOLD FM-台北健康電台 229 mms://bcr.media.hinet.net/RA000027&lt;br /&gt;IC之音 148 mms://bcr.media.hinet.net/RA000037&lt;br /&gt;佳音廣播電台 201 mms://bcr.media.hinet.net/RA000029&lt;br /&gt;佳音電台2台 250 mms://bcr.media.hinet.net/RA000030&lt;br /&gt;全國廣播 202 mms://bcr.media.hinet.net/RA000068&lt;br /&gt;台中廣播 230 mms://bcr.media.hinet.net/RA000046&lt;br /&gt;台北廣播電台- 都會資訊頻道 208 mms://bcr.media.hinet.net/RA000070&lt;br /&gt;台北廣播電台喔海洋頻道 238 mms://bcr.media.hinet.net/RA000069&lt;br /&gt;大千電台 109 mms://bcr.media.hinet.net/RA000067&lt;br /&gt;大愛網路電台 325 mms://bcr.media.hinet.net/RA000017&lt;br /&gt;宜蘭中山電台 301 mms://bcr.media.hinet.net/RA000065&lt;br /&gt;環宇廣播 282 mms://bcr.media.hinet.net/RA000020&lt;br /&gt;真心之音廣播電台 217 mms://bcr.media.hinet.net/RA000033&lt;br /&gt;青春線上 356 mms://bcr.media.hinet.net/RA000079&lt;br /&gt;飛碟電台 232 mms://bcr.media.hinet.net/RA000072&lt;br /&gt;&lt;br /&gt;新聞&lt;br /&gt;NEWS98新聞網 187 mms://bcr.media.hinet.net/RA000073&lt;br /&gt;中廣新聞網 207 mms://bcr.media.hinet.net/RA000008&lt;br /&gt;&lt;br /&gt;綜合&lt;br /&gt;台灣之音-華語 315 mms://bcr.media.hinet.net/RA000063&lt;br /&gt;復興廣播電台 短波網 288 mms://bcr.media.hinet.net/RA000026&lt;br /&gt;復興廣播電台 第一網 286 mms://bcr.media.hinet.net/RA000024&lt;br /&gt;復興廣播電台 第二網 287 mms://bcr.media.hinet.net/RA000025&lt;br /&gt;正聲台北調幅台 317 mms://bcr.media.hinet.net/RA000015&lt;br /&gt;正聲台北調頻台 198 mms://bcr.media.hinet.net/RA000016&lt;br /&gt;漢聲光華網-中波 281 mms://bcr.media.hinet.net/RA000075&lt;br /&gt;漢聲光華網-短波 309 mms://bcr.media.hinet.net/RA000077&lt;br /&gt;漢聲廣播電台 215 mms://bcr.media.hinet.net/RA000074&lt;br /&gt;漢聲廣播電台全國調頻網 216 mms://bcr.media.hinet.net/RA000076&lt;br /&gt;綠色和平台灣文化廣播電台 327 mms://bcr.media.hinet.net/RA000032&lt;br /&gt;&lt;br /&gt;外語&lt;br /&gt;ICRT 177 mms://bcr.media.hinet.net/RA000038&lt;br /&gt;台灣之音-FM 312 mms://bcr.media.hinet.net/RA000060&lt;br /&gt;台灣之音-亞洲 311 mms://bcr.media.hinet.net/RA000059&lt;br /&gt;台灣之音-歐美及方言 314 mms://bcr.media.hinet.net/RA000062&lt;br /&gt;&lt;br /&gt;多元文化&lt;br /&gt;中廣客家頻道 160 mms://bcr.media.hinet.net/RA000006&lt;br /&gt;大漢之音 300 mms://bcr.media.hinet.net/RA000021&lt;br /&gt;寶島客家 241 mms://bcr.media.hinet.net/RA000023&lt;br /&gt;新客家廣播電台 254 mms://bcr.media.hinet.net/RA000048&lt;br /&gt;高屏溪客家電台 298 mms://bcr.media.hinet.net/RA000045&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38307392-5029371212619286634?l=threecia-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://threecia-tech.blogspot.com/feeds/5029371212619286634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38307392&amp;postID=5029371212619286634' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/5029371212619286634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/5029371212619286634'/><link rel='alternate' type='text/html' href='http://threecia-tech.blogspot.com/2010/06/mms-location.html' title='mms location'/><author><name>threecia</name><uri>http://www.blogger.com/profile/14839577045244960329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38307392.post-333164324354153996</id><published>2009-03-29T07:51:00.000-07:00</published><updated>2009-03-29T07:55:45.571-07:00</updated><title type='text'>struct with bit limit</title><content type='html'>struct data {&lt;br /&gt;  int data_1:4;&lt;br /&gt;  int data_2:4;&lt;br /&gt;  int data_3;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;int main(int argc, char** argv){&lt;br /&gt;  struct data my_data = {&lt;br /&gt;    .data_1 = 0;&lt;br /&gt;    .data_2 = 1;&lt;br /&gt;    .data_3 = 1;&lt;br /&gt;  };&lt;br /&gt;&lt;br /&gt;  my_data.data_2 = my_data.data_2 + 15;&lt;br /&gt;  my_data.data_3 = my_data.data_3 + 15;&lt;br /&gt;&lt;br /&gt;  printf("struct size = %d.\n", sizeof(struct data) );&lt;br /&gt;  printf("data_1 = %d.\n", my_data.data_1);&lt;br /&gt;  printf("data_2 = %d.\n", my_data.data_2);&lt;br /&gt;  printf("data_3 = %d.\n", my_data.data_3);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;output:&lt;br /&gt;struct size = 8&lt;br /&gt;data_1 = 0&lt;br /&gt;data_2 = 0&lt;br /&gt;data_3 = 16&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38307392-333164324354153996?l=threecia-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://threecia-tech.blogspot.com/feeds/333164324354153996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38307392&amp;postID=333164324354153996' title='19 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/333164324354153996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/333164324354153996'/><link rel='alternate' type='text/html' href='http://threecia-tech.blogspot.com/2009/03/struct-with-bit-limit.html' title='struct with bit limit'/><author><name>threecia</name><uri>http://www.blogger.com/profile/14839577045244960329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38307392.post-8032759382686232941</id><published>2009-03-21T11:23:00.000-07:00</published><updated>2009-03-21T11:29:40.576-07:00</updated><title type='text'>Difference between "my" and "local" keyword</title><content type='html'>Please refer below two examples:&lt;br /&gt;&lt;br /&gt;1.&lt;br /&gt;&lt;pre class="code"&gt;&lt;tt&gt;&lt;span&gt;&lt;tt class="codetext"&gt;&lt;span style="font-size:-1;"&gt;$a = 3.14159;&lt;br /&gt;{&lt;br /&gt; local $a = 3;&lt;br /&gt; print "In block, \$a = $a\n";&lt;br /&gt; print "In block, \$::a = $::a\n";&lt;br /&gt;}&lt;br /&gt;print "Outside block, \$a = $a\n";&lt;br /&gt;print "Outside block, \$::a = $::a\n";&lt;br /&gt;&lt;br /&gt;# This outputs&lt;br /&gt;In block, $a = 3&lt;br /&gt;In block, $::a = 3&lt;br /&gt;Outside block, $a = 3.14159&lt;br /&gt;Outside block, $::a = 3.14159&lt;br /&gt;&lt;/span&gt;&lt;/tt&gt;&lt;/span&gt;&lt;/tt&gt;&lt;/pre&gt;&lt;br /&gt;2.&lt;br /&gt;&lt;pre class="code"&gt;&lt;tt&gt;&lt;span&gt;&lt;tt class="codetext"&gt;&lt;span style="font-size:-1;"&gt;$a = 3.14159;&lt;br /&gt;{&lt;br /&gt; my $a = 3;&lt;br /&gt; print "In block, \$a = $a\n";&lt;br /&gt; print "In block, \$::a = $::a\n";&lt;br /&gt;}&lt;br /&gt;print "Outside block, \$a = $a\n";&lt;br /&gt;print "Outside block, \$::a = $::a\n";&lt;br /&gt;&lt;br /&gt;# This outputs&lt;br /&gt;In block, $a = 3&lt;br /&gt;In block, $::a = 3.14159&lt;br /&gt;Outside block, $a = 3.14159&lt;br /&gt;Outside block, $::a = 3.14159&lt;br /&gt;&lt;/span&gt;&lt;/tt&gt;&lt;/span&gt;&lt;/tt&gt;&lt;/pre&gt;&lt;br /&gt;"local" will make global variable with the same name "invisible" temporarily,&lt;br /&gt;"my" will create a new memory space and you can distinguish local and global scope variable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38307392-8032759382686232941?l=threecia-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://threecia-tech.blogspot.com/feeds/8032759382686232941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38307392&amp;postID=8032759382686232941' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/8032759382686232941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/8032759382686232941'/><link rel='alternate' type='text/html' href='http://threecia-tech.blogspot.com/2009/03/difference-between-my-and-local-keyword.html' title='Difference between &quot;my&quot; and &quot;local&quot; keyword'/><author><name>threecia</name><uri>http://www.blogger.com/profile/14839577045244960329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38307392.post-1398052167987169486</id><published>2009-03-21T11:03:00.000-07:00</published><updated>2009-03-21T11:10:12.869-07:00</updated><title type='text'>How variable definition affect GDB access policy?</title><content type='html'>Consider this defnition:&lt;br /&gt;&lt;br /&gt;int x[] = {5,4,3,2,1};&lt;br /&gt;char y[] = {9,8,7,6,5};&lt;br /&gt;&lt;br /&gt;Because sizeof(*x) = 4 and sizeof(*y) = 1&lt;br /&gt;GDB will calculate result of x with alignment value of 4 and result of y with alignment value of 1,&lt;br /&gt;therefore we will have such output in GDB:&lt;br /&gt;&lt;br /&gt;p (int)*(x+1)    --&gt; 4&lt;br /&gt;p (char)*(y+1)    --&gt; 8&lt;br /&gt;&lt;br /&gt;Eventually, x will be added by 4 and y will be added by 1 then do type casting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38307392-1398052167987169486?l=threecia-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://threecia-tech.blogspot.com/feeds/1398052167987169486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38307392&amp;postID=1398052167987169486' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/1398052167987169486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/1398052167987169486'/><link rel='alternate' type='text/html' href='http://threecia-tech.blogspot.com/2009/03/how-variable-definition-affect-gdb.html' title='How variable definition affect GDB access policy?'/><author><name>threecia</name><uri>http://www.blogger.com/profile/14839577045244960329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38307392.post-6469927197297786639</id><published>2009-03-15T07:29:00.000-07:00</published><updated>2009-03-15T07:52:02.727-07:00</updated><title type='text'>Linux in Virtualbox with Windows XP as host system</title><content type='html'>1. Software we need:&lt;br /&gt;&lt;br /&gt;Virtualbox to install Linux and X server running on Windows XP to enable X11 forwarding&lt;br /&gt;&lt;br /&gt;Pietty:&lt;br /&gt;http://www.csie.ntu.edu.tw/~piaip/pietty/&lt;br /&gt;&lt;br /&gt;Virtualbox:&lt;br /&gt;http://www.virtualbox.org/&lt;br /&gt;&lt;br /&gt;Xming:&lt;br /&gt;http://sourceforge.net/projects/xming&lt;br /&gt;&lt;br /&gt;Linux (Ubuntu, in this example):&lt;br /&gt;http://www.ubuntu.com/&lt;br /&gt;&lt;br /&gt;3. Install all software and Linux system&lt;br /&gt;&lt;br /&gt;4. In Virtualbox control window:&lt;br /&gt;    a. add a new netwotk adapter with "HOST interface" option&lt;br /&gt;&lt;br /&gt;5. Login Linux system and get local IP address binding on "HOST interface" network adapter using "ifconfig" command&lt;br /&gt;&lt;br /&gt;6. Make sure that SSH server deamon is listening on specific port&lt;br /&gt;&lt;br /&gt;7. Login Linux system using pietty by guest IP address and SSH protocol&lt;br /&gt;&lt;br /&gt;8. Modify .bashrc as below:&lt;br /&gt;alias v='gvim -font "Monospace 16"'&lt;br /&gt;alias c='clear'&lt;br /&gt;alias l='ls --color'&lt;br /&gt;alias cl='clear; ls -la'&lt;br /&gt;alias gcc='gcc -Wall'&lt;br /&gt;alias h='history'&lt;br /&gt;&lt;br /&gt;You will get "small" font size on gvim probably if you do not set fontsize option&lt;br /&gt;&lt;br /&gt;9. Modify .vimrc as below:&lt;br /&gt;behave mswin                   "enable MS windows hbehavior&lt;br /&gt;syntax on                           "enable syntax&lt;br /&gt;colors desert                      "color scheme setting&lt;br /&gt;filetype on                          "enable file type&lt;br /&gt;set number                        "enable line number&lt;br /&gt;set tabstop=4                    "set soft tab space&lt;br /&gt;set cindent                         "set auto indent&lt;br /&gt;set ignorecase                   "set case-insensitive search&lt;br /&gt;set hls                                "highlight search result&lt;br /&gt;set ruler                            "show current cursor position&lt;br /&gt;set mousef                        "focus follows mouse&lt;br /&gt;set nocompatible             "enable backspace&lt;br /&gt;set backspace=indent,eol,start          "enable backspace&lt;br /&gt;nnoremap q :quit&lt;enter&gt;                     "quit by typing 'q' only&lt;br /&gt;&lt;br /&gt;You can get more information at this --&gt; http://www.vim.org/&lt;br /&gt;&lt;br /&gt;10. Change pietty setting:&lt;br /&gt;        connection --&gt; SSH --&gt; X11&lt;br /&gt;                Enable X11 forwarding and set display location as "localhost:0.0"&lt;br /&gt;&lt;br /&gt;11. Start Xming, login guest Linux system, try "xeyes &amp;amp;" to hceck X window forwarding&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38307392-6469927197297786639?l=threecia-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://threecia-tech.blogspot.com/feeds/6469927197297786639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38307392&amp;postID=6469927197297786639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/6469927197297786639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/6469927197297786639'/><link rel='alternate' type='text/html' href='http://threecia-tech.blogspot.com/2009/03/linux-in-virtualbox-with-windows-xp-as.html' title='Linux in Virtualbox with Windows XP as host system'/><author><name>threecia</name><uri>http://www.blogger.com/profile/14839577045244960329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38307392.post-6107848122487929118</id><published>2007-04-15T08:21:00.000-07:00</published><updated>2007-04-15T08:30:06.222-07:00</updated><title type='text'>cygwin header file bug?</title><content type='html'>剛剛試著在自己的NB上面編himax-cc&lt;br /&gt;偶然間發現一個似乎是cygwin bug的敘述&lt;br /&gt;&lt;br /&gt;問題出現在/usr/include/cygwin/types.h&lt;br /&gt;其中&lt;br /&gt;#ifndef __u_int8_t_defined&lt;br /&gt;#define __u_int8_t_defined&lt;br /&gt;typedef unsigned char u_int8_t;&lt;br /&gt;#endif&lt;br /&gt;#ifndef __u_int16_t_defined&lt;br /&gt;#define __u_int16_t_defined&lt;br /&gt;typedef __u_int16_t u_int16_t;&lt;br /&gt;#endif&lt;br /&gt;#ifndef __u_int32_t_defined&lt;br /&gt;#define __u_int32_t_defined&lt;br /&gt;typedef __u_int32_t u_int32_t;&lt;br /&gt;#endif&lt;br /&gt;#ifndef __u_int64_t_defined&lt;br /&gt;#define __u_int64_t_defined&lt;br /&gt;typedef __u_int64_t u_int64_t;&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;問題出現在__u_int16_t, __u_int32_t, __u_int64_t並未在之前被定義&lt;br /&gt;所以compiler在跑這一段的時候還是不知道到底u_int16_t, u_int32_t, u_int64_t到底應該用什麼樣的type來組合&lt;br /&gt;因此對照/usr/include/sys/types.h中的敘述&lt;br /&gt;我試著把它改成如下&lt;br /&gt;&lt;br /&gt;#ifndef __u_int8_t_defined&lt;br /&gt;#define __u_int8_t_defined&lt;br /&gt;typedef unsigned char u_int8_t;&lt;br /&gt;#endif&lt;br /&gt;#ifndef __u_int16_t_defined&lt;br /&gt;#define __u_int16_t_defined&lt;br /&gt;typedef unsigned short u_int16_t;&lt;br /&gt;#endif&lt;br /&gt;#ifndef __u_int32_t_defined&lt;br /&gt;#define __u_int32_t_defined&lt;br /&gt;typedef unsigned int u_int32_t;&lt;br /&gt;#endif&lt;br /&gt;#ifndef __u_int64_t_defined&lt;br /&gt;#define __u_int64_t_defined&lt;br /&gt;typedef unsigned long long u_int64_t;&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;就可以動了&lt;br /&gt;不過我懷疑這是cygwin的一個bug&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38307392-6107848122487929118?l=threecia-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://threecia-tech.blogspot.com/feeds/6107848122487929118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38307392&amp;postID=6107848122487929118' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/6107848122487929118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/6107848122487929118'/><link rel='alternate' type='text/html' href='http://threecia-tech.blogspot.com/2007/04/cygwin-header-file-bug.html' title='cygwin header file bug?'/><author><name>threecia</name><uri>http://www.blogger.com/profile/14839577045244960329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38307392.post-116671323204478335</id><published>2006-12-21T06:59:00.000-08:00</published><updated>2006-12-21T07:00:32.050-08:00</updated><title type='text'>HTML tag list 網站整理</title><content type='html'>HTML&lt;br /&gt;http://www.w3schools.com/tags/ref_byfunc.asp&lt;br /&gt;&lt;br /&gt;CSS&lt;br /&gt;http://www.w3schools.com/css/css_syntax.asp&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38307392-116671323204478335?l=threecia-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://threecia-tech.blogspot.com/feeds/116671323204478335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38307392&amp;postID=116671323204478335' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/116671323204478335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38307392/posts/default/116671323204478335'/><link rel='alternate' type='text/html' href='http://threecia-tech.blogspot.com/2006/12/html-tag-list.html' title='HTML tag list 網站整理'/><author><name>threecia</name><uri>http://www.blogger.com/profile/14839577045244960329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
