Recently in Website management Category

website revision

| 3 Comments | No TrackBacks

網站的更新經過

  個人網站從當年的二級域名,動態域名,到後來的17fun.org和現在的yuleshow.com,已經有八年了,也算是上海最早擁有個人網站的一批人了。這回,網站是第四版的第一次重大改動;以往,每次改版,總是把界面改得完全不一樣,甚至連色彩配置也完全不一樣。當然,那時的重大改版,是隨著HTML3.0昇級到4.0IE4.0昇級到5.0以及CSS的推出而進行的;兩年前,技術已經非常成熟和穩定,所以網站也一直沒有改動。

  網站的核心是什麼?內容!既然技術已經提供了平臺,隨著內容的增多,就發現結構的缺陷了。我的網站一直是用Macromedia Dreamweaver製作的,使用了大量的templatelibrary,在一開始,的確非常容易,有一些小的改動,就在library裏改一下,然後Dreamweaver會自動改變template,而template的改變也會引起各個網面的自動改變,一切都很自然,都很順其自然,變動後衹要上傳就可以了。可用著用著,問題便產生了,首先是目錄的結構問題,我以前分成和現在差不多的幾個大類,大類下有小類,而且目錄結構上,也是對應分成這些類,在每個目錄下,存放html文件,與這些文件同級的有個目錄叫做images,就是與之相關的圖片文件了。

  於是,每次有一點點改動,哪怕糾正一個字母,打個比方,copyright2003變成2004,衹是一個「3」到「4」的改變,可這個library的改動,使得所有的html都改動了。而這些html是分佈於層次不同的子目錄中,與之平級的有許多圖片,甚至還有其它文件,那樣,上傳成了一個很大的問題,我衹能每回有全局改動的時候,將本地根目錄打個包,在文件包裡刪除所有的非html文件,然後將「動過手腳 」的壓縮包上傳到服務器,再解壓。

  問題還不僅如此,由於網站中的某些文檔是中文的,為了保證中文的完美顯示以及中英文的協調性,在一開始的時候,用了界面相同代碼有所不同的幾個template。關於我的網站語言使用的理念,非常容幸的是,我的理念而後被美國商務部采納,說白了,其實也就是不同語言版本的網站內容,不是簡單的翻譯,而是針對受眾的。打個比方,英文的網頁部分衹寫如何把東西從美國出口到中國,是給美國的生產商看的;而中文的頁面,衹有如何從美國進口的信息,是給中國的分銷商看的。

  網站的理念越細致,瑣事也越多;時間越長,問題也越尖銳。主要的問題還是來自於先前說的更新,例如改變菜單內容,每次都要把四五個template都打開,改到一下,再保存;還有是中文編碼的問題,當時使用的是gb2312編碼,於各地的朋友都不方便,近來由於unicode的成熟,gb2312明顯有捉襟見肘的弱勢;第三,blog技術的崛起,也使得我的網站看上去蒼白得很,我甚至動用了另一個平臺,架設了blog.yuleshow.com這個單獨的系統。

   一切的一切,都使得網站到了非傷筋動骨的地步,在經過了兩三個星期的思考與測試之後,改版開始了。

   第一大改動是目錄結構,我決定為圖片、文件、PDF、供下載的壓縮檔和html文檔分別建立頂級的目錄,將之完全分離開來,以便以後更大的改動並保證上下傳的方便。為此,我分別建立了imagesfiles目錄,在主目錄下,再依次建子目錄,以對應子欄目。

   第二大改動是用了MovableType weblog的代碼做核心,這樣,我就不再需要那個blog.yuleshow.com了,而且,每一篇文檔都可以留言了,為此,我取消了留言簿,而且,MovableType weblog可以非常容易地整合unicode (UTF-8)

  當然,說是相當容易的,具體操作的時候非要條理清楚,有條不紊。我先是在服務器上建了一個目錄,創建了一個新的目錄,叫做news.yuleshow.com,這樣做的好處是在改版之後,衹要把原來的域名指向新的目錄,而不會在改版期間造成閱讀不便。其間,碰到了許多基於blog的問題,我將另文詳述。

  前後花了兩個星期,網站終於改版完成,很輕鬆地轉換了域名,並且在新域名目錄下建立了symbol link(感謝linux,只用了幾行命令,要是Windows,沒大半個小時做不完)指向原先的目錄,這樣,如果別人用以前的路徑訪問,還是可以訪問得到;當然,我故意留了一些沒有做symbol link,那是些我特意希望訪客用新目錄結構的文檔。

  昇級的簡單過程就是這樣,如果你想繼續探討,請發郵件或者留言。

I have my personal website for eight years, it has four version and several revisions as well. In past, every version’s update is caused by the technique upgrade like HTML 3.0 to 4.0, IE 4.0 to 5 and the CSS releasing. This time, I can’t stand the difficult to upload files by updating even a letter through Macromedia Dreamweaver, also the system has language character set problem.

I create a temp website and did the revision, eventually it smoothly moved to the new files structure, new backend system. Now, the folder system is optimized and the kernel is using MovableType weblog. Also, I found a good solution for different Chinese displaying and integrating. If you want more information, please write to me or leave your comment here.

English vs. Chinese?

| 2 Comments | No TrackBacks

English vs. Chinese, 到底如何选择?

  這幾天猶豫中,到底是把三個網站並成一個呢,還是繼續保持現狀;關於博客呢,也在想到底是繼續用英文寫呢,還是改成中文。用英文的話,有許多國外的朋友可以看到,而改成中文則寫起來更加順手,當然,國內的朋友也更容易一些。

  下午兩點半,問了二十幾個在MSN上的好友,結果很出人意外,那些英文好的、靠英文喫飯、正在海外留學的,都讓我用中文寫;而那些英文不怎麼好的、國營企業的,卻都讓我用英文寫。噢,值得說一句的是,我的那些Linux朋友,都建議我用英文,他們算是那些英文好也贊成我用英文寫的人了吧;當然,native speaker的英文應該更好,也更會贊成我用英文來寫,特別是Kitty。

I am always thinking the reversion of my website, either combine the three websites together or keep the current situation. And another problem is that to keep using English for the weblog, or totally change it to Chinese? The website will have more foreigners if it’s in English and vice versa.
I asked more than twenty buddies on the MSN, the result is a surprise. The friends who are living on English, are studying overseas and speak English well all suggest me to write the articles in Chinese (maybe they think my English is too poor). Other friends from state owned company and those poorly English speakers all suggested me to use English. All my Linux friends encourage me to keep use English; I think the native speakers will do that also especially Kitty.

Guestbook fixed

| No Comments | No TrackBacks

9:24 am Guestbook fixed, you are more than welcome to leave a message there.

The website is running under httpd 1.3.29 for a long time, and these days it became slower and slower, I decided to upgrade it to httpd 2.0.48.

I downloaded it, configured it and did make, make install. Everything looked ok but I can't find any information in the PID. Actually it automatically quit the process immediately.

I checked the error log, it said as follow:

[Fri Feb 20 20:41:17 2004] [alert] (22)Invalid argument: setgid: unable to set \
group id to Group 4294967295
[Fri Feb 20 20:41:18 2004] [alert] Child 15144 returned a Fatal error...
Apache is exiting!

Fatal error, the biggest problem under linux is always the most difficult problem. I read manual and found that "Group #-1" wasn't accepted by the server, I changed it into "Group root", done.

Another problem I got was that the IE browser can't automatically arecognize the charset of the pages. I changed all my Chinese pages information from tp . The only difference is that the letter case. Even THML document is case insensitive, but I read some articles say that has to be upper case.

One more step, I added following lines into httpd.conf:

AddDefaultCharset off
AddCharset GB2312 .GB2312 .GB2312

Wow, the problem solved.

Site statistic added

| No Comments | No TrackBacks

I added statistic to both main website and weblog. The backend system which I selected is AWStats.

Today, I successfully solved the problem of my own personal website connection speed problem. I had moved my website www.yuleshow.com from Linux Association server to my friend Worm Wang's server. After that, I found that the server was really slow, it always took 5 to 20 seconds to load the homepage. I checked the server today and found that the first line of virtual server was set as asterisk instead of real IP address. I changed it and the server works well.

HTML 4.0 協議中文版

| No Comments | No TrackBacks

這是我的一件非常舊的作品,也是我最刻苦時期(刻苦學習英文和電腦)的作品,這部作品其實並沒有對中國的網絡事業發展起到什麼作用,但是朋友們和網友們都因此對我錯愛有加,著實有些汗顏。現在,HTML已經成為非常普通的東西的,這部作品也在網上「廣為流傳」了,甚至還被《大眾軟件》「盜版」過;這麼多年過去,由於當時的水平以及標準術語的不規範,現在看來這件作品還是很幼稚的。因此,我這回取消了單獨頁面,衹將打包後的文件放在站上,朋友們可以下載後閱讀。另外,與W3相關的中文文檔的翻譯工作,中國的網友從來就沒有中斷,可以參見http://www.w3china.org

邵宛澍2000年5月30日


祝 各 位 網 友 新 年 好!

我在去年(1997)7月9日至7月31日之間,翻譯了Hyper Text Mark Language (HTML) 4.0 Draft,並且通過W3C (World Wide Web Consortium)組織的確認,W3C組織把我的名字放在他們節點的這裏那裏之後,我每天都會收到一兩封信向我索要這份文檔。甚至有人打算寄錢給我,買一份拷貝,其實這份文檔的在線版本完全是免費的,當然,為了這份文檔的更完善化和真正的完全的免費化,我也接受各種類型的贊助。

目前,這份文檔是在整個國際互聯網絡上能夠找到的唯一的中文版的HTML4.0協議書,雖然它是免費的,但還是要請各位網友遵守版權約定,任何未經本人授權的轉載(不包括熱鏈)在內,印刷都將在法律上被認為是非法的。

上面的代碼會把本頁頂端的圖案放置在您的網頁上,並且把鏈接到這裏,這一切都是免費的,不過,如果您願意的話,請給我發一封信

這份文檔從來都沒有如此完整的出現在網上過(指中文版),這次由於足夠無 餘莊的少莊主向我索要,我實在不忍拂了如此美麗的姑娘的意,因此特地寫了 這段序,把它放在這裏,而且,這一次,還特地提供了壓縮版本,您可以自由地下 載。下面分別是在線瀏覽和下載這套文檔的鏈接。

對於這種文檔的翻譯,我是第一次,希望網絡高手和英語高手能夠給我提出意見,讓我能夠更好地來改進這份文檔,也為了能夠讓更多的中國人能夠進入電腦高手的行列。

好了,現在就進入HTML4.0中文版吧:

邵宛澍1998年1月24日

Pages

Powered by Movable Type 5.01

About this Archive

This page is an archive of recent entries in the Website management category.

perl is the previous category.

Find recent content on the main index or look in the archives to find all content.