7.16.2007

Politician

好個打對台

這是在回家的途中看到的,也不知道是故意的還是不小心的, 居然這麼生硬的安插在旁邊.

感覺上右邊就是挨打的.

不過挨不挨打這對於選舉來說, 真的很難講.

這個整個故事是這樣的, 右邊的看板是"江連福"先生的, 看板主要是說他當立法委員, 努力爭取國道四號 連接到太平, 大里發包施工. 左邊的看板則是"馮定國"先生的, 針對右邊的看板做出糾正.

說穿了就是功勞是誰的的問題.

不過這些案子都是建設案, 台灣的基礎建設案+立法委員, 嗯, 這倒是個好問題.

後來晚上看電視很無聊之餘, Google了一下 , 還真是樂趣無窮.

5.15.2007

email a link

The day, my user in office found a special problem when using SharePoint 2K7 and Outlook 2K7.

The story as below:

User create a new share document library and put a file in there, than click the item's menu, select "Send To" -> "Email a link". Than, popup out an outlook mail dialog with an link to the document. Now, the url isnot work, why? because the domain name of SharePoint contain with some special character, my case is dash.

Per this discussion about this problem, the only way to solve this problem is change domain name...=_=

I will check this problem in Microsoft Connect, I thought this should be one of bug.

5.09.2007

Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item

I am get this information when I want to install VSTS SP1 in windows 2K3. Why I need to install the VSTS in Windows 2K3, that's because I want to develop a program that refer to Windows SharePoint Service 3.0 Tools to VS 2005 extension. Windows SharePoint Service 3.0 Tools to VS2005 extension ONLY can install in the machine that installed SharePoint Service … so silly.

So, the message base on the conditions: Windows 2K3 R2, VSTS 2005, want to install VSTS 2005 SP1.
The error message: as title.

Process: First, I search Microsoft KB and google to find the resolution. Here is the best discussion list about this problem.
First is the digital signature and second is the problem with permission.

But, after I do as both url, I could not resolve the problem still. Moreover, I could not see the ACCESS DINED in the tool mention by second url.

After 4 hours, I find something that I forget to check….
As the the picture below, just so easy to click and every thing is going find.
Just “unlock” the file.

1.06.2007

萬巒豬腳

這次綠島行回程是走南迴回台北, 經過萬巒的時候跑去吃豬腳, 到了台中跑去吃向日葵豬排飯, 豬腳真的不錯吃, 不過除了豬腳, 其他的東西就讓我後悔點, 尤其是虱目魚肚湯...湯清到沒魚味...鹹蛋苦瓜我是不清楚客家人是不是都這樣煮的, 但是一堆苦瓜跟形狀大塊到不行鹹蛋好像就是希望你一口苦瓜一口鹹蛋再一口飯的吃法似的...還是台北的餐廳弄得好吃.
至於向日葵豬排, 老闆好像身體不好, 那天剛好有開張...要去吃的朋友記得先打通電話. 至於味道就不多講了.
這是豬腳跟鹹蛋苦瓜的圖:
From 20070101跨年綠島行3/4

From 20070101跨年綠島行3/4

12.18.2006

.NET 漫談 (1)

.NET的程式開發過程裡,New這個動作到底代表了甚麼,我想這個要從Object life cycle(物件的生命週期)講起。

在電腦的世界裡面,我們定義的Class代表的就是一個我們設定好的記憶體模型,可以把它當作一個模子,我們可能準備了許多的模子,但是不代表我們有用模子壓出東西來,這個時候算是準備時期,程式開發的術語叫做Design-Time

當程式開始執行之後,這時候的狀態叫做Run-Time。這個時候電腦會根據你想要的東西,找到相對應的模子在記憶體裡面壓出你所想要的東西,這個東西叫做Object,你也可以稱它為Instance,不管Object或是Instance都是佔有記憶體的。

好啦,假設我們有兩個模子,要壓出小白兔跟花,所以一個叫做Rabbit,另一個叫做Flower,那我們要怎麼叫電腦幫我們做產生Object的動作呢?我們需要寫下像下面的的程式碼:

Rabbit melody=new Rabbit();
Flower rose=new Flower();

沒錯,New就是建立Instance的動作。但是你的內心一定有一些疑惑,那為甚麼有些東西需要New,但是有些東西不用New。

這個問題就回到我們以前討論的Value Type與Reference Type的差異。這兩個形態的分別就是因為Value Type夠簡單,夠單純,.NET可以完全掌控它,所以一般來說它是不需要New的,但是你可以試試看下面的程式碼:

Int32 i = new Int32();

然後Build看看,IDE應該只會吐一個warning CS0219: The variable 'i' is assigned but its value is never used警告訊息給你,還是可以過的。

所以說Value Type也是可以New的,只是.NET本身認為他很單純,簡單,所以Value Type才可以略過。再進一步的說來,.NET將(Type)區分成兩種大類,一種是所謂的Primitive Type, 也就是我們剛剛講的Value Type,不管是Primitive Type還是Reference Type的Instance都是在Runtime配置在記憶體中,但是兩者之間配置的位置是不一樣的,Reference Type是位在Heap裡面,受GC的管理,但Primitive Type是不在GC Heap裡面。

所以相對的Primitive Type的Instance在使用上會比較沒有額外的負擔,但是要記住,Primitive Type是記憶體大小不可變的,也就是當你宣告變數是Int32的型別之後,並無法改變它的大小,這部分我們就要注意System.String這個型別,這個型別的特殊的地方是它是個Reference Type,但它的狀態也是記憶體大小不可變,這個有看過String與StringBuilder比較的Demo都應該可以快速的體認到差異並懂得避免非效率的Coding行為。

11.15.2006

I am back

Finally, The Integration of database is completed.


I spent almost half year to complete this case, wrote a new program to transfer data without dependence upon database’s schema. Dynamically Database choice, Error message flow…
Maybe this program do not perfect, it also excellent for me, now.


And now, I give a course to training my colleague. I am trying to broach the O.O concept and introduce to difference method of development.


Up to now, Polymorphism is the bottleneck of learning for my most colleagues. I am trying to slow down and present more demo, next, I thought the better to comprehend the concept is practice.

In the end, The next post would be the note of my course.

8.14.2006

獨占性的好用與勉強可以的相容

過了很久,總算有空寫了。
工作忙到一定程度,人生就不知不覺得消失,想想真可怕。

獨占性的好用勉強可以的相容。我想說的是軟體的類型。
老實講,我不知道哪一個比較好,但是個人的立場是 勉強可以用,卻相容其他軟體的工具 最討我歡心。

Picasa推出了Web Albums,亮眼的程度可以跟Yahoo的Flickr相比,雖然只有250MB,不過感覺還真的不錯。不過,兩者互不相容,無法同步。我的朋友裡面有用Yahoo的就很少會用Picasa,那怎麼辦,一定要我人工同步嗎?

那個Google Calendar能跟Outlook同步嗎?要是Google不肯作,MS願意做嗎?

看到最近的Israel-Lebanon,好像到處都不相容...

--------------------

WWW,從Netscape對IE,Java對.NET,一路走來紛亂不已,讓我很害怕,所以就算Ajax跑出來,老實講,我還是寧願把Indigo搞清楚再說。

這是我的Picasa Web Albums
http://picasaweb.google.com/Robert.Yu.Tw
這個則是Flickr
http://www.flickr.com/photos/robertyu-tw/

至於MSN Live Space...耶....我喜歡那個Windows Live Favorites,尤其新出的Live Toolbar,不過其他的要是有.NET 1.0剛出來的氣勢,我想會好很多,畢竟MSN Messenger有他的市場優勢。