工作與賺錢

不知道是不是因為物價上漲而薪水沒調,大家似乎都在追著錢跑。獨孤木老大寫的Show Me the Money江山代有才人出都是回答資訊業的讀者反映給他的問題。以前的同事A君來信說很高興可以不用再寫Code,看他這麼說讓我很感慨,我自己為了生活也沒有找讓我有興趣的Coding工作,就是這個工作錢多。獨孤老大說在公司挑大樑就能帶來新氣象,基本上我是同意,但許多公司內部的政治力干預人事就不是我們能預料到的,MIS的屎缺比獨孤老大想像中的多呀。

基本上,若只是想不被Fire,MIS接下公司的會計或薪資系統,在一般傳產公司大概可以穩穩的幹到退休。有些聰明的老板就根本把會計和薪資這些外包,直接由自己人來管,員工就只是可更換的棋子。If… If and only if 有年輕人看到我的Blog,建議還是找個自己真正有興趣的工作,前幾年咬著牙好好學習,過個五年十年後才不會後悔。我的同學有幾個工作快十年結果跑去賣保險,還有一個是班上第一名,天呀!或者像A君寫了3年程式才發現學生時代的興趣變成痛苦的工作。

對於已經不能轉職的人,要想著工作就只是工作,是一個讓你三餐溫飽的付出。要賺大錢請找清崎,再強調一次:公司請你來做事,不是讓你來自我實現。遇到能力比你差的人爬到你頭上,也只能說是他拍馬屁的能力比你強。責任愈大並不與能力愈強劃等號,但往好處想,你承擔愈多的責任,至少公司不能隨便炒你魷魚。

如果寫程式要賺比較多錢,還是辛苦點找家園區的半導體公司等著分股票吧~不然,台北的電腦公司大概都會讓你失望,包括Google之外那幾家網路公司。

張貼在 鬼扯淡 | 發表迴響

電腦肉腳事件

最近有不少電腦的肉腳事件,Firefox 1.5.0.5才剛發行馬上被發現一堆bug,今天又出1.5.0.6,這樣的軟體品質不行呀!
另一個是Google Browser Sync無法安裝或更新,好不容易從大陸網站找到0711的xpi,今天又看到0802版,仍然無法更新,這真的是我所知道的Google嗎?台灣也沒有別人討論,可能大家都覺得跑得太慢沒有在使用。
最後是Hinet的Xuite服務常掛點,以下今天早上它的錯誤訊息:

ERROR

The requested URL could not be retrieved


While trying to retrieve the URL: http://blog.xuite.net/efchang/network

The following error was encountered:

  • Connection to 127.0.0.1 Failed

The system returned:

    (111) Connection refused

The remote host or network may be down. Please try the request again.

Your cache administrator is blog@xuite.net.


Generated Fri, 04 Aug 2006 03:51:19 GMT by blog.xuite.net (squid/2.5.STABLE13)
張貼在 電腦和網際網路 | 發表迴響

試用DotNetNuke

最近幾天很帶塞,花了不少銀子,結果行照駕照又掉了,還得找時間去辦。
 
自從裝好DotNetNuke後,我就去下載中文套件,裝完後就發生AD整合的新帳號無法自動帶入,目前我只能手動新增帳號 Orz
DotNetNuke有部份已經改成AJAX,每個web part的標題都可直接click改名,立即生效,用起來馬上有web 2.0的感覺。
其他的部份還沒有很仔細的測試,不過速度夠快、模組多這兩點就足以在Intranet做Portal,若能解決帳號問題就可以上線了。
 
張貼在 電腦和網際網路 | 發表迴響

Internet Explorer 7 Blocker Toolkit

IE7將會以安全更新的方式強迫大家中獎,真不知道微軟在想什麼,我已經盡可能不要再罵微軟。看看目前使用MS DHTML設計的網頁還那麼多,尤其是各大企業內部的"Legacy" Web AP。裝過 IE7 Beta 3的人就知道,目前舊式DHTML寫法已經移除,除非IE7正式版再重新支援DHTML,否則我得使用Internet Explorer 7 Blocker Toolkit,不然電話會接到手軟呀!
張貼在 電腦和網際網路 | 發表迴響

DotNetNuke 4.3.3 Active Directory 整合認證

花了一整天的功夫,終於搞定DotNetNuke 4.3.3 的Windows Authentication,也就是Active Directory 整合認證。

照著Project ::Active Directorydavid@newcovenant.com的說明,做到第17步時發生問題,是因為我把<impersonate="true" />也uncomment,這行不能啟動,否則sql express無法使用。

接下來做到第21步時出現錯誤,原因是AD的帳號沒有讀取到Name的資料,值為Null,必須patch source code,方法如下:
先下載DotNetNuke_4.3.3_Source.zip解開,
將 LibraryControlsDataGridsTextColumnTemplate.vb 第182行
itemValue = DataBinder.Eval(container.DataItem, DataField).ToString()
改成以下4行
Try
    itemValue = DataBinder.Eval(container.DataItem, DataField).ToString()
Catch
   itemValue = Null.NullString
End Try

再重新編譯就行了。

看來目前.Net上Opensource的專案成熟度仍然太差,缺少像Xoops、JBoss這種Killer AP,而且參與人數也太少。

最後把David的27個步驟貼在後面:
1. For a fresh install, just go to the next step. If it’s an upgrade, follow Tam Tran’s instructions about the database entry, and the file deletion post above. Ignore the rest.
2. In IIS, open Properties on the web site or Virtual Directory > Directory Security tab > Edit button. Uncheck "Anonymous access" and "OK" your way out.
3. In Web.config, comment OUT the Windows Authentication block. Uncomment the Forms Authentication block.
4. Uncomment the "Authentication" item under "httpModules."
5. Log in with admin account.
6. Go to Admin > Authentication.
7. Check "Windows Authentication?"
8. Check "Synchronize Role?" if you want AD groups sync’ed. (Don’t ask me if this doesn’t work. Report it as a bug to Tam Tran.)
9. Leave "Provider:" at the default. There’s normally only one choice, anyway.
10. Choose "Authentication Type." "Delegation" is a good choice in most cases.
11. "Root Domain:" If you want to authenticate and get groups from the Root forest, then leave this blank. Otherwise, enter the LDAP path to your desired AD tree. Use this format: "LDAP://dc=com,dc=this,dc=that." Using "LDAP://" in the entry overcomes a bug that exists.
12. In most circumstances, you can leave "User Name" and "Password" and "Confirm Password" blank. These are supposed to be for an account that has "Read" access to the active directory. In most cases, EVERY account has read access. So leaving these blank will cause DNN to use your domain account to read the directory.
13. Click "Update." You will get an error message at the next screen. That’s OK. Your entries just went into the ModuleSettings table of the database.
14. Log out, and close the browser.
15. Open Web.config, and uncomment the Windows Authentication block. Comment OUT the Forms Authentication block.
16. Save web.config.
17. Open a browser and point it at the site. You should see that the "Login" link says "Logout." This indicates that you were automatically logged in using your AD account. You won’t be able to do anything here but browse public pages. But in the background, a user account was created for you, like "domainusername."
18. Close the browser.
19. Open web.config. Disable Windows Authentication and enable Forms Authentication. Save web.config.
20. Open a browser and point it at the site. Log in as Admin.
21. Go to Admin > User Accounts. Click the "all" link. You should see your "domainusername" account in the list.
22. Click the pencil next to that account.
23. Click "Manage Roles for this User."
24. Add this user account to the "Administrators" Role.
25. Log out, and close the browser.
26. Open web.cofig. Last time, I promise. Enable Windows Authentication and disable Forms Authentication. Save web.config.
27. Open a browser and point it at the site. Now you should not only see "Logout" at the Login link, but you should also be able to use the "Admin" menu.

張貼在 .net | 2 則迴響

有人罵Yahoo!奇摩

http://blog.woixv.com/?p=365

這是到Hemidemi不小心看到的連結,不予評論(我的言論不公正)。我所知帳號獨立的部分是因為Yahoo!Kimo和Yahoo!Japan一樣都是由併購而來,所以有舊有的帳號系統與Yahoo!官方帳號系統,我不瞭解的部份是為何不能完全只使用Yahoo!官方的帳號系統,不知道是否有Yahoo!系統所沒有的欄位。而Blog似乎也是台灣這方面自行開發的系統,與Yahoo!360 Blog不一樣,不解呀!

我的個性不喜歡浪費時間造輪子,若是我主導,若美國的系統好用的話就全改用美國的系統。或許是他們覺得國情不同不符使用習慣吧?最近公司內部的網頁要改版,我正在Survey好用的架站系統,應該從XoopsRainbow PortalDotnetnuke選一個。部門裏除了我應該沒有人熟php吧?所以可能出線的會是Dotnetnuke,因為Rainbow Portal仍然停在去年底的版本,asp.net 2.0的只有Dotnetnuke

張貼在 電腦和網際網路 | 發表迴響

引述:RoR風潮的背後

這是第一次從Spaces引用到Spaces,還蠻好用的。

我沒有真正寫過Ruby on Rails,就不對本文評論,最近看到數位時代提到HemidemiRoR寫的,讓我對RoR又有點興趣,尤其是它的load balance。

引述

RoR風潮的背後

RoR的流行速度確實很有點出人意料,老實說,RoR在技術上沒有大的創新,而且在php裡早就有類似的嘗試,別的不說,RoR作者在寫RoR之前,就是一個php程序員,也有一個php版本的RoR,不過同樣的東西在php陣營裡卻沒有產生任何反響,反倒是Ruby陣營裡紅透半邊天。為什麼會有這樣的情況出現,是一個值得思考的事情,一方面,php陣營內framework數量眾多,用戶有很多選擇,這點和java類似,任何一個framework都很難達到RoR在Ruby陣營裡那種一呼百應的效果,因為對於Rubyer來說,他們沒有別的選擇,RoR是唯一的framework,這樣的壟斷地位,某種程度上加速了RoR的火爆。另一方面,Ruby本身也確實存在一些php不及的優點,如完整的動態語言的特性。但在我看來,從一個長遠的角度來看,php的表現仍然會優於ruby,原因如下:php有更好的用戶群,10多年的積累不是初出茅廬的ruby能在短時間內超越的,而且,ibm, oracle都開始對php提供了企業級的支持,再者,php的社區是活躍的,語言級別上的一些不足之處會在未來的適當時候得到袮補。
btw:在說說ror本身,很多人認為它是web開發的終極殺手,我一直有點懷疑,它只不過是一個Active Record的應用而已,本質上講,RoR是以資料庫為中心而設計的只適用於那些業務邏輯和數據結構十分相似的項目,可能是受了這幾天看《領域驅動設計》這本書的影響,我一直認為這樣的設計在一定的前提下是可以的,但不能體現OOP的真諦,從某種程度上來說,它掩蓋了問題的實質:領域對象的價值!唉,全世界的程序員辛辛苦苦的研究了面向對象幾十年,一覺醒來,被RoR打回解放前。
張貼在 程式設計 | 發表迴響