2010年1月28日星期四

2010 Greetings from Sacramento, California

2010 Greetings from Sacramento, California

To the 1st Group

By Silas & Bonnie:

By Bonnie & Lorrie:

To the 2nd Group

By Silas & Bonnie:

By Bonnie & Lorrie:

By Bonnie to Eddy Cheng and Sister Liu

2010年1月7日星期四

Test Map 2

function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); map.setUIToDefault(); // Create a base icon for all of our markers that specifies the // shadow, icon dimensions, etc. var baseIcon = new GIcon(G_DEFAULT_ICON); baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png"; baseIcon.iconSize = new GSize(20, 34); baseIcon.shadowSize = new GSize(37, 34); baseIcon.iconAnchor = new GPoint(9, 34); baseIcon.infoWindowAnchor = new GPoint(9, 2); // Creates a marker whose info window displays the letter corresponding // to the given index. function createMarker(point, index) { // Create a lettered icon for this point using our icon class var letter = String.fromCharCode("A".charCodeAt(0) + index); var letteredIcon = new GIcon(baseIcon); letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png"; // Set up our GMarkerOptions object markerOptions = { icon:letteredIcon }; var marker = new GMarker(point, markerOptions); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml("Marker " + letter + ""); }); return marker; } // Add 10 markers to the map at random locations var bounds = map.getBounds(); var southWest = bounds.getSouthWest(); var northEast = bounds.getNorthEast(); var lngSpan = northEast.lng() - southWest.lng(); var latSpan = northEast.lat() - southWest.lat(); for (var i = 0; i < 10; i++) { var latlng = new GLatLng(southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random()); map.addOverlay(createMarker(latlng, i)); } } }

test map

test

2009年6月2日星期二

2009-06-02-bind named

bind-devel.i386 30:9.3.4-6.P1.el5 foo 安裝bind.i386即可 yum install -y bind 安裝完後,服務名稱為named chkconfig named on 服務重啟 /etc/init.d/named restart 會出現訊息,要建立某檔案,只要touch建立一個就可以了 named 聽 tcp 和 udp的53port [root@srv67 ~]# netstat -na | grep -w 53 tcp 0 0 192.168.10.87:53 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN udp 0 0 192.168.10.87:53 0.0.0.0:* udp 0 0 127.0.0.1:53 0.0.0.0:* dig 會顯示名稱解析 設定在/etc/resolv.conf中的nameserver

2009-06-02-SQUID

yum install -y squid 安裝 chkconfig squid on 下次開機啟動 /etc/init.d/squid restart 第一次會初始化資料夾 若無法啟動或有問題,注意錯誤訊息,可能是主機明稱設定有問題 在/etc/hosts下和/etc/sysconfig/network 下的設定 觀察process [root@srv67 ~]# ps ax | grep squid 9541 ? Ss 0:00 squid -D 9543 ? S 0:00 (squid) -D 9556 pts/1 S+ 0:00 grep squid 觀察port號==> squid 聽 3128 port [root@srv67 ~]# netstat -na | grep -w 3128 tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 訊息紀錄 /var/log/squid/底下 cache.log store.log access.log Apache的訊息紀錄 /var/log/httpd/ 底下 access.log error.log 在virtual hosts 中,可設定獨立的log檔 開啟瀏覽器, 將proxy 設定成 127.0.0.1 port 3128 然後連線到tw.yahoo.com 第一次會比較久,然後可以在/var/log/squid/access.log中觀察 關鍵字: 第一次連會出現 TCP_MISS 若是頁面重新整理後則會出現 TCP_REFRESH_HIT

2009-06-02-HTTPD (II)

進入設定檔 /etc/httpd/conf/httpd.conf / 搜尋 www.html 進入 container中 # Controls who can get stuff from this server. # Order allow,deny Allow from all 測試:先將Allow那行註解,發現不能存取首頁了,apache預設為deny all 再加入這行在Allow 或 Order之後都可以 deny from 192.168.10.0/255.255.255.0 結果:Apache會擋下來自192.168.10.0網段的連線 Virtual Hosts (253, p.264) 在設定檔的最後面,使用virtual hosts 要先將預設的註解去除 #NameVirtualHost *:80 NameVirtualHost *:80 將下列7行複製, 要使用快速密技 7yy 然後到最後一行按下 p 這樣就可以速度複製 # # ServerAdmin webmaster@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common # 設定內容如下: 設定兩個來源的網址=> blog.f87.com 和 wiki.f87.com 並指向不同的網頁根目錄==> /var/www/blog 和 wiki.f87.com DocumentRoot /var/www/blog ServerName blog.f87.com DocumentRoot /var/www/wiki ServerName wiki.f87.com 設定檔存檔, httpd 重啟 測試: 為了不讓假設的網址連到外面,所以要先到 /etc/hosts 中作設定 vim /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 srv67.com srv67 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 # 加入以下兩行 192.168.10.87 blog.f87.com 192.168.10.87 wiki.f87.com 存檔後,開瀏覽器測試 狀況:當直接輸入ip 時會出現哪一個頁面? 解:若有設定virtual hosts, 則會以第一個的設定顯示 若要不影響本來的預設設定, 則可在virtual hosts 再加入一段(最前面) DocumentRoot /var/www/html 就可以將輸入ip或其他來源指回/var/www/html 下 或是用default 的設定(正規,但是麻煩)

   DocumentRoot /www/default80
   ...



2009年5月31日星期日

95Q4-肢體開發 Create Dance-上課心得

Class 1 @ 2007 / 5 / 2 My First Class of Creative Dance When I saw the title of this course: DANCE, I came up with ballet, street dance, hit-pop, and so on. I was kind of scary of dancing since I had never had such experience. I was seriously concerned about the score that I might get a poor one, since I have taken all my scores seriously. Only one thing that I was interested in was yoga class informed on the syllabus. After taking the first class, the contents of this course are not what I was thinking about. As the title “creative”, there is no boundary and restrict of any dancing style but using our creativity to express ourselves. Being a seed and or being a tree was an interesting and impressive thing that I had never done before. With rhythms from 8 to 2 decreasingly, we had our bodies moving relaxed and freely from a seed to a tree or from a tree back to a seed, back and forth. The other interesting thing was “going through people with standstill steps and moving hands”. Students who were assigned by teacher should start moving through interstices made by people who stood still but moved hands and bodies purposely, in order to make it hard to pass through. One of classmates even passed through someone’s interstice of two legs. I think she got involved in this class with 100% effort. I did devote myself to this class due to the fact that I was sweating all the time from the beginning to the end of the class! Class 2 @ 2007 / 5 / 7 * Accident Event* I sprained my left ankle when I played badminton last Friday. I took a day off to re-see a doctor for my ankle. Class 3 @ 2007 / 5 / 9 * Accident Event* I went to see a doctor for my sprained ankle again since I still had bad feeling of my left ankle. But I heard my classmates said that being a Chinese writing brush to introduce your names was a special experience. I hope I can go back to the class and enjoy dancing in the class as soon as possible. Class 4 @ 2007 / 5 / 14 YA! Finally my sprained ankle allowed me to come back to class and enjoy with everybody! When I arrived at the classroom, I found a great change of this class – two times participants compared with my first class in this course. What happened to those guys? Since that I am a shy guy and have never been performing myself in front of such amount of people before this course, now I have to rebuild my courage and braveness to allow myself and others to accept my performance. That’s a great work for me! Though the situation was such a chaos in the class, I think most participants had fun as well as myself did. I heard others talking about that using the whole body of each part as the Chinese writing brush to introduce your own name. I was a little bit sad for my absence of the class last week. But thanks to those guys appearing suddenly, I got the chance to play as one writing brush myself. It was really fun greater than I had thought about that! After having everyone’s performance done, I found myself that I did not make the full use of my body, especially my trunk legs. It seemed that I got a pair of lame legs which were not capable of moving themselves. Next time I will emphasize the performance of my legs. Before that, I think I need to talk to my leg first. Class 5 @ 2007 / 5 / 16 *Substitute teacher for the day! Class 6 @ 2007 / 5 / 21 *Rehearsing the Midterm Class 7 @ 2007 / 5 / 23 *Group Presentation – The Midterm Creative Dance Final Performance – One Minute Dance Audience Manual Instructor: 程宜莉 老師 Performer: Robert Liu (劉興昌) 494660169 @ Software Engineering Date: 2007 / 6 / 27 Content 整個表演敘述一個淡江大學蘭陽校園內,一個資軟系學生在學季末倒數幾天的生活。一開始就在天剛破曉的清晨五點鐘,一切看似非常的美好,沒想到,他突然想起今天要交一個超級重要的報告,卻被他忘的一乾二淨!警覺到危機的他,馬上從床上跳起來,便和鍵盤來了一段糾纏、難分難捨、痛苦…………… Class 8 @ 2007 / 5 / 28 Today I had a feeling that I would perform better and more extensive if I took off my glasses. Somehow I just couldn’t help but judge the person who is in front of me. Maybe I should pay more attention and focus on the class. I think I need practices about focusing and not to be distracted easily. Class 9 @ 2007 / 5 / 30 I tried to get rid of my classes today in the class. I found that it did work to make me concentrate on teaching. But……here’s the problem… I couldn’t see teacher’s demonstration clearly… Oops! I think I’d better put my glasses back and try to find another way to train myself not to be distracted easily... Also, I love the yoga today! This is my first time to really enjoy with the body stretch and breathe. It seems to be extremely harmonized. Class 10 @ 2007 / 6 / 4 (5) I fell asleep deeply at the beginning of class. It was really a chaotic and hustling and bustling quarter that I had never had. Reports, papers, and presentations come one after another. But it’s a relief that I enrolled this class. In this class I can have myself relaxed through body stretch and dancing wildly. Though dancing causes physical tiredness, it does release muscles and mental aspects. I think it would be better for me if teacher could give more yoga element in this class. ^^ Class 11 @ 2007 / 6 / 6 Until today in the class, my muscles of the whole legs are still a little bit hurt. I recalled from the last class’ memory that I might over stretch my legs…… Class 12 @ 2007 / 6 / 11 (12) Today everyone lined up and connected to persons in front of and back of me with different ways like physical contact and spatial contact. I really enjoyed watching everyone with different connecting ways reflected by the mirror. I could see my pose as I was taking part in. That’s interesting and wonderful to have that mirror. Class 13 @ 2007 / 6 / 13 I love the feeling of rolling over others’ body and be rolled by others! I think everyone has an incorrect sense about weighted people like me. They(normal size of body) think that it must be hurt and hard to be rolled by overweight people. They started to worry about their safety and kept screaming” what am I going to get through with when there is a fat guy who is going to roll over me!” I firmly believe that they are totally wrong! For people like me are wrapped by muscle which is soft and protective for both others and myself. So if they are quite enough relax their body, they won’t get hurt. On the contrary, it is really hurt to be rolled over by skinny people. Their bones lack of muscles and impact directly on others’ body. That’s what I say “hurt”!!!