2005/04/19

Quck Intro of Accessing Subversion

Version control is the art of managing changes to information. It has long been a critical tool for programmers, who typically spend their time making small changes to software and then undoing those changes the next day. But the usefulness of version control software extends far beyond the bounds of the software development world. Anywhere you can find people using computers to manage information that changes often, there is room for version control. And that's where Subversion comes into play.

Subversion uses WebDAV to access the repository and as such every file is accessible using standard http addresses.

To check out the source from the repository, you can use one of the following clients:

  • AnkhSVN is a plugin for Visual Studio.NET and allows you to checkout the source from within the Microsoft development tool. This is recommended for Gentle.NET developers or people working with Gentle in source form, provided you're using VS.NET as development IDE.
  • TortoiseSVN is a Windows Explorer plugin which integrates well with Windows and allows access to the repository from outside the development IDE.
  • RapidSVN is a graphical client program much like you may be familiar with from Visual SourceSafe or a similar tool.
  • Subversion itself includes command-line tools to access the repository.

Additionally, you can browse the repository using a web browser:

ViewCVS allows you to browse the source, view diffs, compare revisions and is a nice tool when you need to have a quick look at a file or revisions thereof.
WebDAV can be used to see the latest revision.

See O'Reilly's article for more intro.

2005/04/06

千金難買早知道 - 台灣7-ELEVEN創新行銷學

台灣7-ELEVEN創新行銷學多年前的某一天,一家7-ELEVEN在營業時間快結束時,因鐵捲門故障而無法順利打烊,只好繼續營業,萬萬沒有想到夜間的生意反而特別好,自此7-ELEVEN決定將營業時間改為24小時營業,終年不打烊。

7-ELEVEN由一個小小的意外,成就另一個新的商業模式,若沒有鐵捲門故障事件,也許到現在都還是11點打烊。

喜歡在一成不變的生活中來點不同的刺激嗎?有時候需要冒一點風險,試著以不同的方法去完成同樣的一件事,可能會產生迥然不同的結果。若結果不能改變,至少在經歷的過程中會有新的體會。

你每天是如何去上班的?試著開發新的交通路線,也許會意外的發現某些景象,比如發覺一家新奇的商店或某條更便捷的路線,類似的事不妨多多嘗試。

改變從小事出發,是因為小事所要承受的風險較低,能放鬆心情去做,從中慢慢培養更多的彈性,久而久之,你會驚覺自己比過去靈活許多。這是個很重要的練習,因為社會變化太快,我們需要因應許多意想不到的挑戰,而應戰的基本之道就是拓展個人的彈性。

有時生活上意外的改變會帶來意外的收穫,所謂無心插柳柳成蔭,就如同7-ELEVEN的故事一般,當天值班的那位店長可能會覺得自己很倒楣,無法準時下班,這件事卻對整個7-ELEVEN的營運有很大的突破。

「千金難買早知道」,就是因為無法預知,所以當困難、挑戰迎面而來時,一般人自然會選擇閃避。若在平常多練習擴展自己的舒適圈、增加自己的彈性,相對的,抗拒心就會減少許多,取而代之的是想出因應對策。這是一種化被動為主動的思考模式,當練習愈多時,個人的適應力就愈來愈強,解決問題的能力也會愈來愈進步,對自信心的增強很有幫助。

2005/03/10

Seymour Cray, Technical Wizards Behind the Supercomputer -> 超級電腦幕後英雄

Seymour R. Cray, a computer industry pioneer and the father of the supercomputer, posed with the Cray 3 supercomputer at Cray Computer Corp. company headquarters in 1994.

對程式設計人員來說,希穆爾克雷(Seymour Cray)是一位巨人。克雷極少發表演說,1976年他在科羅拉多州的國家大氣研究中心對程式設計人員發表演說,並同意演說結束後答覆詢問。只見會後整個會場突然沈寂下來,克雷在講台上站了好幾分鐘,等待程式人員提問,但沒有人發問。等到克雷離去以後,大氣研究中心電腦部負責人責備在場的程式人員:「為什麼沒有舉手發問?」經過一陣令人不安的沈默,一位程式師終於回答:「要你對上帝說話,你敢嗎?」

超級電腦的發明對於電腦的發展歷史來說,是一項重大的里程碑。本書敘述超級電腦的發明人克雷及他的工作小組,如何在電腦工業發展的初期,突破科學上的限制,與公司的官僚體系抗衡,進而奠定資訊時代的基石。

Cray-1, Cray's first supercomputer. Introduced in 1976, this system had a peak performance of 133 megaflops. The first system was installed at Los Alamos National Laboratory.

Cray Y-MP8DIntroduced in 1988, this system was key to breaking the one gigaflop performance barrier. It has traditionally been the standard by which other supercomputers are compared.

The Supermen : The Story of Seymour Cray and the Technical Wizards Behind the Supercomputer
by Charles J. Murray

Hardcover:
232 pages
Publisher: Wiley (January, 1997)
ISBN: 0471048852

Editorial Reviews

Amazon.com
The story of supercomputing is only partially about technology. More than anything, it's about the gifted, brilliant, and often eccentric individuals who knew how to use that technology in new ways to do amazing things. Perhaps the most amazing of the bunch was Seymour Cray, the bureaucracy-intolerant genius with the barnstorming mind whose name has become synonymous with supercomputers. Charles Murray gives us an insightful and often thrilling and sometimes amusing look into how Cray and his genius companions took computers to new heights and humbled companies like Control Data and IBM....

Chinese Edition: 超級電腦幕後英雄

作者:
Charles J. Murray/著
譯者: 譚天
出版社: 遠流
初版日期:1999年01月01日

Mingster Reviews: Fun to read, recommended.

Related Links

  1. Smart Computing Encyclopedia
  2. Cray Computer FAQ
  3. Cray-Cyber.org

2005/03/02

Lawyer got close, but no cigar - A tale of cock sucking lawyer

A Charlotte NC lawyer purchased a box of very rare and expensive cigars then insured them against fire among other things. Within a month having smoked his entire stockpile of these great cigars and without yet having made even his first premium payment on the policy, the lawyer filed a claim against the insurance company. In his claim, the lawyer stated the cigars were lost "in a series of small fires."

The insurance company refused to pay, citing the obvious reason, that the man had consumed the cigars in the normal fashion. The lawyer sued and won! In delivering the ruling the judge agreed with the insurance company that the claim was frivolous, however; the judge stated that the lawyer held a policy from the company in which it had warranted that the cigars were insurable and also guaranteed that it would insure them against fire, without defining what is considered to be "unacceptable fire," and was obligated to pay the claim. Rather than endure a lengthy and costly appeal process, the insurance company accepted the ruling and paid $15,000 to the lawyer for his loss of the rare cigars lost in the "fires."

NOW FOR THE BEST PART. After the lawyer cashed the check, the insurance company had him arrested on 24 counts of ARSON!!!! With his own insurance claim and testimony from the previous case being used against him, the lawyer was convicted of intentionally burning his insured property and sentenced him to 24 months in jail and a $24,000 fine. This is a true story and was the 1st place winner in the recent Criminal Lawyers Award Contest.

有名北卡 Charlotte的律師買了一盒極為稀有且昂貴的雪茄,還為雪茄投保了火險。結果他在一個月內把這些頂級雪茄抽完了,保險費一毛也還沒繳,卻提出要保險公司賠償的要求。在申訴中,律師說雪茄在「一連串的小火」中受損。保險公司當然不願意賠償,理由是:此人是以正常方式抽完雪茄。...... 結果律師告上法院還贏了這場官司。

法官在判決時表示,他同意保險公司的說法,認為此項申訴非常荒謬,但是該律師手上的確有保險公司同意承保的保單,證明保險公司保證賠償任何火險,且保單中沒有明確指出何類「火」不在保險範圍內。因此,保險公司必須賠償。與其忍受漫長昂貴的上訴過程,保險公司決定接受這項判決,並且賠償美金一萬五千元的雪茄「火險」。

以下才是最精彩的地方: 律師將支票兌現之後,保險公司馬上報警將他逮捕,罪名是涉嫌 24 起「縱火案」!!! 由他自己先前的申訴和證詞,這名律師立即以「蓄意燒毀已投保之財產」的罪名被定罪,要入獄服刑二十四個月,並罰款美金二萬四千元。

這種事,也只是有在美國才會發生!

2005/02/28

八大BT軟件介紹

1. BitComet BitComet :

  • 全新高效的網絡內核,快速穩定,高速下載時依然保持很少的CPU占用。
  • 多任務同時下載,並支持對一個Torrent中的文件有選擇的下載。
  • 允許限制上傳速度和下載速度。
  • 動態磁盤緩存技朮,有效減小高速下載上傳對硬盤的損傷。
  • 自動保存下載狀態,續傳無需再次掃描文件,作種子也無需掃描文件。
  • 支持XP防火墻和網絡連接共享,硬件路由器(支持UPnP)的自動端口映射,內網免配置。
  • 可選為沒有下載完畢的文件添加.bc!后綴。
  • 自動檢查版本更新。
  • 支持多Tracker協議。
  • 只需一個監听端口即可滿足所有下載需要。
  • 多語言界面。

官方網站: http://www.bitcomet.com/indexzh.htm

2. 貪婪BT (GreedBT) ABC

  • 3MB的安裝包包含了所有功能,制作發布,多任務,高級設置等
  • 占用內存很少,速度飛快,設置全面。
  • 單窗口多任務同時進行
  • ABC-Tweak工具可以自由更改貪婪BT(ABC)的顯示界面
  • 隊列的優先級系統
  • 支持暫停、繼續、隊列、刪除的操作
  • 最小化到系統任務欄
  • 查看下載的詳細信息
  • 可以進行上傳、下載許多設置
  • 可以為每個任務單獨進行設置
  • 支持從Shad0w's bittorrent延伸過來的高級設置
  • 支持超級種子模式
  • 可以設置下載完成的文件的動作
  • 可以設置最大任務數
  • 支持提示保存目錄
  • 支持從本地和網絡手工添加torrent文件
  • 支持關聯torrent文件
  • 包含了制作torrent文件的工具
官方網站: http://bt.greedland.net/greedbt.php

3. BitAnarch 1.05a

  • 支援暫停、繼續 操作
  • 最小化到系統任務欄
  • 查看下載的詳細資訊
  • 可以設置下載完成的檔的動作
  • 可以設置最大任務數
  • 支援提示保存目錄
  • 支援從本地和網路手工添加torrent檔
  • 支援關聯torrent檔
  • 支援Muti-Tracker下載
官方網站: http://sourceforge.net/projects/bitanarch/

4.BitSpirit (比特精靈)v2.0 Final BitSpirit

  • 磁盤緩存机制
  • 很高的下載速度
  • 強大的下載管理功能
  • 文件選擇性下載
  • 快速啟動任務,無需等待 :靈活的速度控制
  • 數据壓縮傳送
  • 詳細的運行狀態信息
  • 方便的計划下載
  • 跟IE相集成,輕松下載
  • 監視剪貼板,方便添加任務
  • 完整支持UPNP,ICF
  • 可以與其它下載者聊天
  • 支持HTTP/SOCKS4/5代理
官方網站: http://www.lanspirit.com/bitspirit/index1.htm

5. BitTorrent CVS

  • 佔用記憶體很少,速度飛快:最小化到系統任務欄
  • 查看下載的詳細資訊
  • 可以進行上傳、下載設置
  • 支援提示保存目錄
  • 支援關聯torrent檔
官方網站: http://ei.kefro.st/projects/btclient/

6. Turbo BT

  • 清晰明了,美觀的界面.速度,時間,種子,對等用戶狀態一看就知
  • 中文,英文,繁體中文多語言版.可以動態切換
  • 可以保存系統設置,動態修改設置,取得最佳的下載效果
  • 在運行過程中可以暫停和恢復
  • 非常低的資源占用率. 在高速下載的同時不影響其他軟件的使用
  • 根据普遍的網絡帶寬配置,提供快捷速度設置,設置速度只需要從菜單上選擇一下
  • 下載完成后自動進入種子者模式.且速度降低.在造福其他人的同時,不影響自己的工作娛樂。
  • 提供動態幫助提示顯示在狀態欄,幫助您快速學習軟件的使用
  • 下載完成后自動播放提醒聲音
  • 可以自定義設置端口,在某些網絡中默認端口被封閉的情況下.多任務下載
  • 下載隊列
  • 自動關机
官方網站: http://www.turbobt.com/

7. Azureus

  • 包含了所有下載功能,設置等
  • 佔用記憶體很多,速度一流
  • 支援暫停、繼續、刪除的操作
  • 最小化到系統任務欄
  • 支援提示保存目錄
  • 支援從本地和網路手工添加torrent檔
  • 支援關聯torrent檔
  • 支援Muti-Tracker下載
  • 完美的下載細節
官方網站: http://azureus.sourceforge.net/

8. Shareaza (簡稱:Raza)
是支援 eDonkey、BitTorrent、Gnutella 檔案共享平台的 P2P 用戶端軟體,在國外的評價極高,該軟體公司的目標是打造一個支援各種 P2P 檔案分享平台的用戶端軟體,Shareaza 完全免費,不含間諜軟體、沒有附加廣告軟體。

第2代BT除了不傷Hard Disk外,支援多國語詞,還加入P2P功能(唔怕死Link),第2代BT = BT+WinMX+Media Player,如你想用P2P功能那一定要Connect eDonkey, 好多人都有個問題,就係連唔到去eDonkey, 其實好簡單, 去工具,入面有個setting,入面揀番個eDongkey2000, 再下載番,再揀埋自動連線就可以連到的了!

官方網站: http://www.shareaza.com/

2005/02/16

What is a .BIN? What is a .CUE? What is an .ISO

The .BIN & .CUE CD image format was made popular by the CDRWin software. Afterwards many programs have started supporting or partially supporting it, including: Nero, BlindWrite, CloneCD, FireBurner. The .CUE file contains the track layout information, while the .BIN file holds the actual data.

ISO is also a CD image format, but is sometimes used for 'ISO9660 format' (standard, recognized by all applications) and sometimes for unique Easy CD ISO format.

There are varity ofsoftware that can handle .BIN, .CUE,and .ISO files. Each extension can be burnedinto aCD-R or a CD-RW. Below listed some of the popular software available in the market today:

  • Alcohol 120% - My favourite, excellent software, easy and yet very advanced (burns ISO, BIN/CUE, CCD, CDI, BWT files!)
  • BlindWrite - easy to use
  • FireBurner - also very good, a single .EXE file!
  • BurnAtOnce - A handy and FREE tool for burning .bin/.cue/.iso. Easy to use.
  • Nero - many of you have this, but it can't handle all image files.
  • CDRWin - This is the original BIN/CUE software.

In case you don't have CD/DVD burner, or in case you just want to read the content without any CD/DVD media. You can "mount" the image files as virtual CD-ROM drives using:

There are also several softwares you can use to exploit & manipulate BIN/CUE files in various ways:

FAQs

1. I have a .BIN file but no .CUE?
You will need to hand made the .CUE file. .CUE can be made with just Notepad. A typical PC CD-ROM .CUE looks like this:

FILE "image-name.BIN" BINARY
TRACK 01 MODE1/2352
INDEX 01 00:00:00


A typical Playstation(One or Two) .CUE file looks like this:

FILE "image-name.BIN" BINARY
TRACK 1 MODE2/2352
INDEX 1 00:00:00

"image-name.BIN" being the name of the image file (IWDII.BIN, CIV3.BIN and so on...)
Notice the difference of the track mode - PC-ROMs being Mode 1, Playstations CDs Mode 2 and (Super)Video CDs are also MODE2/2352.

2. How do I make .BIN & .CUE files?
CDRWin or the BIN/CUE format is not ideal for distributing. BlindWrite suite and CloneCD perform a lot better in this purpose and can also handle various copy protections. Both of these softwares can also create .CUE files for increased compatibility.

3. I have a .BIN & .CUE, but my CD writing software can't locate the .BIN file?
Edit the .CUE file with Notepad (or similar) and verify that the FILE "C:\path\image.bin" matches the location of your image file.

4. My image file is IMAGE.BIN.EXE and I can't rename it!
Read here - http://forums.afterdawn.com/thread_view.cfm/23982

5. Sector sizes of CD image files (by Aldaco12)?
When you talk about images must think on SECTORS not on DATA SIZE. The rules are:

Facts:

  1. A standard 74 min CD is made by 333,000 sectors.
  2. Each sector is 2352 bytes big, and contains 2048 bytes of PC (MODE1)Data, 2336 bytes of PSX/VCD (MODE2) Data or 2352 bytes of AUDIO.
  3. The difference between secor size and data content are the Headers info and the Error Correction Codes, that are big for Data (high precision required), small for VCD (standard for video) and none for audio.
  4. If you extract data in RAW format (standard for creating images) you always extract 2352 bytes per sector, not 2048/2336/2352 bytes depending on data type (basically, you extract the whole sector).
  5. This fact has two main consequences:
  6. You can record data at very high speed (40x) without losing information, but if you try to do the same with PSX or Audio you get unredable CD (for PSX) od audio CD with lots of clicks because there are not error correction codes (and error are more likely to occur if you record at high speed.
  7. On a 74 min CD you can fit very large RAW images,up to 333,000 x 2352 = 783,216,000 bytes (747 Mb). This should be the upper limit for a RAW image created from a 74 min CD. Remember that if you store standard data (backup files), you can burn only 333,000 x 2048 = 681,984,000 bytes (the well known 650 MB limit).

    Note that an image size is ALWAYS a multple of 2352 bytes (you extract SECTORS), if extracted in RAW mode.

2005/02/03

Writing Effective Use Cases

by Alistair Cockburn (Paperback)
Addison-Wesley Pub Co; 1st edition (January 15, 2000)

Editorial Reviews

Amazon.comAlistair Cockburn's Writing Effective Use Cases is an approachable, informative, and very intelligent treatment of an essential topic of software design. "Use cases" describe how "actors" interact with computer systems and are essential to software-modeling requirements. For anyone who designs software, this title offers some real insight into writing use cases that are clear and correct and lead to better and less costly software.

The focus of this text is on use cases that are written, as opposed to modeled in UML. This book may change your mind about the advantages of writing step-by-step descriptions of the way users (or actors) interact with systems. Besides being an exceptionally clear writer, the author has plenty to say about what works and what doesn't when it comes to creating use cases. There are several standout bits of expertise on display here, including excellent techniques for finding the right "scope" for use cases. (The book uses a color scheme in which blue indicates a sea-level use case that's just right, while higher-level use cases are white, and overly detailed ones are indigo. Cockburn also provides notational symbols to document these levels of detail within a design.)

This book contains numerous tips on the writing style for use cases and plenty of practical advice for managing projects that require a large number of use cases. One particular strength lies in the numerous actual use cases (many with impressive detail) that are borrowed from real-world projects, and demonstrate both good and bad practices. Even though the author expresses a preference for the format of use cases, he presents a variety of styles, including UML graphical versions. The explanation of how use cases fit into the rest of the software engineering process is especially good. The book concludes with several dozen concrete tips for writing better use cases.

Software engineering books often get bogged down in theory. Not so in Writing Effective Use Cases, a slender volume with a practical focus, a concise presentation style, and something truly valuable to say. This book will benefit most anyone who designs software for a living. --Richard Dragan


Topics covered:


  • Introduction to use cases
  • Requirements
  • Usage narratives
  • Actors and goals
  • Stakeholders
  • Graphical models for use cases
  • Scope for use cases (enterprise-level through nuts-and-bolts use cases)
  • Primary and supporting actors
  • Goal levels: user goals, summary level, and subfunctions
  • Preconditions, triggers, and guarantees
  • Main success scenarios
  • Extensions for describing failures



  • Formats for use cases (including fully dressed one- and two-column formats)
  • Use case templates for five common project types
  • Managing use cases for large projects
  • CRUD use cases
  • Business-process modeling
  • Missing requirements
  • Moving from use cases to user-interface design
  • Test cases
  • eXtreme Programming (XP) and use cases
  • Sample problem use cases
  • Tips for writing use cases
  • Use cases and UML diagrams
From Book News, Inc.
A specialist in object technology presents software developers with a current guide to writing use cases as a means of capturing the behavioral requirements of software systems and business practices. Covers key elements of use cases, a style guide with suggested formats, a list of time-saving writing tips, a set of use case templates with commentary, and learning exercises with answers to clarify important points.Book News, Inc.®, Portland, OR

Mercury簡易改裝

有同好有一樣的困擾 - 如何使用自己的data logging軟體,因此寫了這篇來分享我的簡易改裝。 Background 雲豆子 MERCURY roaster 烘豆機的設計是使用自行開發的軟體,來:1. 操控風門/火力; 2. data logging/自動烘焙。 ...