書籍:
FTP:
IT:
python:
2008年12月16日
2008年9月29日
好用的 netsh 指令
對於經常帶著筆記型電腦到處走,且又沒有 DHCP Server 可使用時,若要使用網路,都需要手動設定 IP address 、subnet mask、default gateway、Proxy Server等網路設定,甚至修改完畢還需重新啟動電腦,十分地麻煩,還好 Windows 2000 之後的作業系統內建有個指令可以解決這的問題。
以下的說明,以公司與家裡為範例進行說明,請依照您的實際環境與需求,自行參酌、變通。
第一次使用時需要先產生參考檔,請先將 TCP/IP 的 IP address 相關資料改成公司的,然後開啟命令提示字元,也就是 MS-DOS 視窗,輸入:
netsh -c interface dump > company.txt
此指令是將公司的 TCP/IP 設定值存檔到 company.txt 內。其中的-c 變更指定的 netsh 內容。interface 設定 TCP/IP 通訊協定 (包含位址、預設閘道、DNS 伺服器及 WINS 伺服器),並顯示設定及統計資訊。dump 將設定列出。> 將螢幕輸出導向到某的檔案。company.txt 要導向的檔案名稱。
接著將 TCP/IP 的 IP address 相關資料改成家裡的,在 MS-DOS 視窗,輸入:netsh -c interface dump > home.txt
此指令是將家裡的 TCP/IP 設定值存檔到 home.txt 檔
此時所欠缺的就是批次檔,依據不同的環境來設定 TCP/IP,我們需要撰寫兩個批次檔,第一個為 company.bat ,其內容為: @netsh -f company.txt
另一個為 home.bat ,其內容為:@netsh -f home.txt
此後,當要使用公司的 TCP/IP 設定時,就執行 company.bat ,在家裡時,就執行 home.bat。甚至可以在桌面上,替那兩個批次檔設定捷徑與快速鍵,直接按下 hot-key 就可以即時切換 TCP/IP 的設定。
以下的說明,以公司與家裡為範例進行說明,請依照您的實際環境與需求,自行參酌、變通。
第一次使用時需要先產生參考檔,請先將 TCP/IP 的 IP address 相關資料改成公司的,然後開啟命令提示字元,也就是 MS-DOS 視窗,輸入:
netsh -c interface dump > company.txt
此指令是將公司的 TCP/IP 設定值存檔到 company.txt 內。其中的-c 變更指定的 netsh 內容。interface 設定 TCP/IP 通訊協定 (包含位址、預設閘道、DNS 伺服器及 WINS 伺服器),並顯示設定及統計資訊。dump 將設定列出。> 將螢幕輸出導向到某的檔案。company.txt 要導向的檔案名稱。
接著將 TCP/IP 的 IP address 相關資料改成家裡的,在 MS-DOS 視窗,輸入:netsh -c interface dump > home.txt
此指令是將家裡的 TCP/IP 設定值存檔到 home.txt 檔
此時所欠缺的就是批次檔,依據不同的環境來設定 TCP/IP,我們需要撰寫兩個批次檔,第一個為 company.bat ,其內容為: @netsh -f company.txt
另一個為 home.bat ,其內容為:@netsh -f home.txt
此後,當要使用公司的 TCP/IP 設定時,就執行 company.bat ,在家裡時,就執行 home.bat。甚至可以在桌面上,替那兩個批次檔設定捷徑與快速鍵,直接按下 hot-key 就可以即時切換 TCP/IP 的設定。
2008年9月13日
讀取LOG檔案
由於要讀取記錄檔,並且能夠產出指定時間內的LOG
可是記錄檔的時間格式由於因為版本的關係會有多種不同的格式
於是在判別時需要多種格式可供轉換
但是是因為版本不同的關係
所以記錄檔的格式會是
時間格式A:
時間格式A:
時間格式A:
時間格式B:
時間格式B:
時間格式B:
時間格式C:
時間格式C:
在這裡有三種時間格式,所以一開始就有三種格式來判別
logdatetimeformat = [None,\
[lambda x: x[1:20],"時間格式A"],\
[lambda x: x[1:20],"時間格式B"],\
[lambda x: x[0:17],"時間格式C"]]
def dealline(line):
for format in logdatetimeformat :
if format :
rs = parsedatetime(format[0](line),format[1])
if rs :
logdatetimeformat[0]=format
return rs
return None
如此就可以在某個格式一但連續的話,就不需要多花時間還要判斷是否為其他的時間格式
可是記錄檔的時間格式由於因為版本的關係會有多種不同的格式
於是在判別時需要多種格式可供轉換
但是是因為版本不同的關係
所以記錄檔的格式會是
時間格式A:
時間格式A:
時間格式A:
時間格式B:
時間格式B:
時間格式B:
時間格式C:
時間格式C:
在這裡有三種時間格式,所以一開始就有三種格式來判別
logdatetimeformat = [None,\
[lambda x: x[1:20],"時間格式A"],\
[lambda x: x[1:20],"時間格式B"],\
[lambda x: x[0:17],"時間格式C"]]
def dealline(line):
for format in logdatetimeformat :
if format :
rs = parsedatetime(format[0](line),format[1])
if rs :
logdatetimeformat[0]=format
return rs
return None
如此就可以在某個格式一但連續的話,就不需要多花時間還要判斷是否為其他的時間格式
2008年5月1日
根莖類快速煮熟煮軟-紅蘿蔔 馬鈴薯等
【阿基師的偷呷步】用具:冰箱冷凍室作法:
【阿基師說分明】
- 將紅蘿蔔去皮,切塊,移入冰箱的冷凍庫,待結成冰狀,取出。
- 準備一鍋滾水鍋煮沸,放入已結成冰狀的紅蘿蔔塊
- 等到紅蘿蔔浮起來,就表示已經煮透了。撈起來,放入已煮好的料理中(例如:咖哩醬、高湯),拌一拌。
- 等紅蘿蔔吸了湯汁的味道就完成了,而且紅蘿蔔用筷子一戳就穿破了,口感吃起來軟軟的,還帶有紅蘿蔔原有的甜味哦!
【阿基師說分明】
- ★結成冰狀的紅蘿蔔放入滾水鍋中煮,煮熟煮軟的速度,比一般沒有經過冷凍的快上5倍。
- ★這個快速燉煮紅蘿蔔的方法,還可以應用在煮地瓜粥,因為您如果想吃地瓜粥或地瓜湯,又不想花很多的時間燉煮,都可以使用這個小秘訣哦!
- ★如果您一次買了很多紅蘿蔔或馬鈴薯等食材,大部份都是放在陰涼處保存,等時間放久了,不是乾掉就是會發芽,而流失了食材原有的營養,如果您把它切一切,放入冰箱急速冷凍起來,想吃多少用多少,就可以保存這些澱粉食物了,簡單又不浪費,還能保留食材最佳的養分
2008年4月30日
2008年4月22日
BT - trackers
http://tracker.prq.to/announce
http://tracker.prq.to:80/announce
http://vip.tracker.thepiratebay.org/announce
http://tv.tracker.prq.to/announce
http://bttrack.9you.com:8000/announce
http://bttrack.9you.com:6969/announce
http://bttrack.9you.com:8080/announce
http://tracker.prq.to:80/announce
http://vip.tracker.thepiratebay.org/announce
http://tv.tracker.prq.to/announce
http://bttrack.9you.com:8000/announce
http://bttrack.9you.com:6969/announce
http://bttrack.9you.com:8080/announce
2008年4月16日
Q Rcode
K800i可讀取QRCODE
下載 : http://qrcode.kaywa.com/
心得:使用螢幕上測試QRCODE皆可正確辨識,但是中文文字部分呈現亂碼
下載: QuickMark
心得:中文QRCODE,可線上產生QRCODE,但其提供的軟體並無支援k800i
下載:J2MEQRCode
心得:
參考 :
http://www.3qrcode.com/
qrcode / wiki
下載 : http://qrcode.kaywa.com/
心得:使用螢幕上測試QRCODE皆可正確辨識,但是中文文字部分呈現亂碼
下載: QuickMark
心得:中文QRCODE,可線上產生QRCODE,但其提供的軟體並無支援k800i
下載:J2MEQRCode
心得:
參考 :
http://www.3qrcode.com/
qrcode / wiki
2008年4月15日
Documenting software architecture, Part 1: What software architecture is, and why it's important to document it
Documenting software architecture, Part 1: What software architecture is, and why it's important to document it
Software architecture has increasingly become important for the development of complex real-time systems. In this new series, learn why and how you should document software architecture. You will learn about the five different views, or aspects, that you should document for any medium- to large-scale software development project. This first article in the series introduces software architecture and the importance of documentation. You'll also get an overview of the architecture views that will be covered in upcoming articles.
在開發複雜的即時交易系統中,軟體架構的重要性日益增加.再這一系列中,將會學習為何及如何將軟體架構文件化.你將會學習到五種不同的看法或觀點.在這系列的首篇文章中將會簡單的說明軟體架構與文件化的重要性.同時也在這篇文章了解接下來這一系列所討論有關架構觀點的概述.
Introduction
Software architecture as a discipline began in the 1970s. With the increasing complexity and pressures of developing complex real-time systems, software architecture emerged as a fundamental construct of mainstream systems engineering and software development.
軟體架構在1970年開始成為一項定律.隨著開發複雜即時系統的複雜度與各式的壓力的增加,軟體架構開始成為大型主機系統核心建置與軟體開發的基本要件.
Like any other enduring discipline, software architecture also had its initial challenges. A software architecture represents the structural and behavioral aspects of a system. The textual and diagrammatic expressions that were used during early efforts to document software architectures were often insufficient and imprecise. What was needed was a consistent and well-understood pseudo- or meta-language to unify all the different ways of representing and documenting software architectures. Engineering and computer science communities, fostered by academic research, have made great strides in developing best practices and guidelines for effective documentation of software architecture.
如同其它千百年來的定律一樣,軟體架構也有一定的挑戰性.一個軟體架構代表的是這個系統的結構與行為的表現.在早期,雖然使用文字跟圖像有助於文件化軟體架構的訂定,但畢竟這種方式並不足夠且不夠嚴謹.我們所需要的是一種具有連貫性與易於了解的通俗腳本語言來作為整合不同的軟體架構文件化的方式. 電腦工程科技社群因學術性方面的研究而獲得在發展更有效率的文件化軟體架構上,其最佳的實作與原則這一方面取得了重大的進展.
In this series, you will learn about documenting software architecture. Discover the different aspects you can document: system context, architectural overview, functional architecture, operational architecture, and architectural decisions.
In this first article, learn what software architecture is and the importance of documenting different aspects of the discipline.
再這一系列,你將學會有關於文件化軟體架構.發現下面各種文件化的不同觀點:系統內部,架構概述,功能性架構,操作性架構,與架構種類.
再這一首篇文章中,將學會何謂軟體架構與在文件化中每個觀點的差異處.
Software architecture
Various researchers have interpreted what software architecture is, and they have different viewpoints on how to best represent the architecture of a software system. None of the interpretations is wrong; each has its own merits. The definition by Bass L, et al captures the essence of what software architecture should entail:
"The software architecture of a program or computing system is the structure or structures of the system, which comprise software components, the externally visible properties of those components, and the relationships between them."
各式各樣的研究都已經闡釋何謂軟體架構,同時他們在對於軟體系統架構的最佳實作也有不同的看法.沒有一種研究是錯誤,每一種都具有他們的價值.根據 Bass L,et al 指出的定義為一個軟體架構的本質應具有下列的特性: 程式設計與計算系統之軟體架構是在系統的內部的結構應為軟體的元件組合,而每一元件皆具有外部可透視性的屬性與各元件之間的關連性.
The definition focuses on architecture made up of coarse-grained constructs (software components) that can be considered building blocks of the architecture. Each software component, or architectural building block, has certain externally visible properties that it announces to the rest of the architectural building blocks. Internal details of the software component design and implementation are not a concern to the rest of the system, which looks at a specific software component as only a black box. The black box has certain properties it exhibits, which the rest of the software components can use to collectively realize the business or IT goals. Software architecture identifies the architectural building blocks, at the right level of granularity. It also identifies and documents how the building blocks are related to one another.
首先此定義著眼於如何將可被視之為建構系統架構之區塊的粗略性元件(軟體元件).每一元件,或架構區塊,都會具有外部可視性之屬性設定資料,其可在架構區塊平台上發佈其相關訊息.軟體元件設計與實作的內部細節,並不是系統平台的關注點,這個應該僅視之如同黑盒子般的軟體元件規格書才是. 此黑盒子應該要在軟體元件平台上發佈其相關特性,使之在此平台上可協同合作了解其業務或IT目標.軟體架構在一定程度的等級上定義出建構架構之區塊.同時也定義並可文件化在架構區塊之間的關連性.
Architecture as it relates to software engineering is about decomposing or partitioning a single system into a set of parts that can be constructed iteratively, incrementally, and independently. The individual parts have explicit relationships with one another. When woven together, the individual parts form the architecture of the system, enterprise, or application.
跟軟體工程相關聯的架構指的是將單一子系統中自系統群集中分離或組合時,其具備有可重復性,擴充性,獨立性的構成行為.其個別之部分子系統具有於其他子系統明確清楚的關連.當將其組合在一起時,個別部分子系統可規範出系統,企業或應用程式的架構.
There is some confusion about the difference between architecture and design. As Clements P, et al. point out, all architectures are designs but not all designs are architectures. Designs that need to be bound in order for the system to meet its functional and nonfunctional requirements and goals are architectural in nature. While architecture considers an architectural building block a black box, design deals with the configuration, customization, and internal workings of an architectural building block. The architecture binds a software component to its external properties. Design is usually much more relaxed than architecture, because it allows more ways to adhere to the external properties of the component. Design also considers various ways to implement the internal details of the component.
對於架構與設計此兩者的差異仍有某種的混淆.如同 Clements P, et al 指出:架構就是設計但設計並不一定是架構. 就本質上,設計是架構本身是基於須滿足系統本身的功能,非功能性的需求和目標.當架構把建構架構區塊視之為黑盒子之下,設計就是要處理其設定,客制,與其他區塊的內部協同合作.架構會以其該軟體元件之外部屬性將其於其本身連結起來.相對於架構,設計是比較容易輕鬆的,因為設計可以使用比較多的方式去存取元件的外部特性.設計同時也有比較多的方式去考慮元件本身的實作細節.
Software architecture can be used recursively. Consider a software component (C1) that is part of a software architecture of a system. The software architect hands the component to the system designer, along with its properties, functional and nonfunctional capabilities it should exhibit, and its relationship to other software components. The designer, after analyzing software component C1, decides it should be broken down into finer-grained components (C11, C12, and C13), each of which provides a reusable function that would be used to implement the properties mandated for C1. The designer details out C11, C12, C13 and their interfaces.
軟體架構可以很容易的被擴充.考慮到一個軟體元件(C1)是一個軟體架構系統中的一個部份.此軟體架構的設計可以藉由下列的方式來操控此元件:特性,其所展示功能與非功能的項目與其與其他元件的關連性.再分析系統元件C1之後,設計者決定要將其在分離出更細的元件(C11,C12,C13),
At this point, to this designer, C11, C12, and C13 are architectural constructs (or components); each of them has explicitly defined external interfaces. To the designer, C11, C12, and C13 are the architecture of software component C1, and the constructs need further elaboration and design to address their internal implementations. Architecture can be used recursively by dividing a large, complex system into small constituent parts and focusing on each part.
Architecture bounds the system using the architectural building blocks that collectively meet the behavioral and quality goals. The stakeholders must be able to understand the architecture. So it is imperative that an architecture is adequately documented, as discussed in the next section.
原文:
http://www.ibm.com/developerworks/library/ar-archdoc1/?S_TACT=105AGX78&S_CMP=HP
Software architecture has increasingly become important for the development of complex real-time systems. In this new series, learn why and how you should document software architecture. You will learn about the five different views, or aspects, that you should document for any medium- to large-scale software development project. This first article in the series introduces software architecture and the importance of documentation. You'll also get an overview of the architecture views that will be covered in upcoming articles.
在開發複雜的即時交易系統中,軟體架構的重要性日益增加.再這一系列中,將會學習為何及如何將軟體架構文件化.你將會學習到五種不同的看法或觀點.在這系列的首篇文章中將會簡單的說明軟體架構與文件化的重要性.同時也在這篇文章了解接下來這一系列所討論有關架構觀點的概述.
Introduction
Software architecture as a discipline began in the 1970s. With the increasing complexity and pressures of developing complex real-time systems, software architecture emerged as a fundamental construct of mainstream systems engineering and software development.
軟體架構在1970年開始成為一項定律.隨著開發複雜即時系統的複雜度與各式的壓力的增加,軟體架構開始成為大型主機系統核心建置與軟體開發的基本要件.
Like any other enduring discipline, software architecture also had its initial challenges. A software architecture represents the structural and behavioral aspects of a system. The textual and diagrammatic expressions that were used during early efforts to document software architectures were often insufficient and imprecise. What was needed was a consistent and well-understood pseudo- or meta-language to unify all the different ways of representing and documenting software architectures. Engineering and computer science communities, fostered by academic research, have made great strides in developing best practices and guidelines for effective documentation of software architecture.
如同其它千百年來的定律一樣,軟體架構也有一定的挑戰性.一個軟體架構代表的是這個系統的結構與行為的表現.在早期,雖然使用文字跟圖像有助於文件化軟體架構的訂定,但畢竟這種方式並不足夠且不夠嚴謹.我們所需要的是一種具有連貫性與易於了解的通俗腳本語言來作為整合不同的軟體架構文件化的方式. 電腦工程科技社群因學術性方面的研究而獲得在發展更有效率的文件化軟體架構上,其最佳的實作與原則這一方面取得了重大的進展.
In this series, you will learn about documenting software architecture. Discover the different aspects you can document: system context, architectural overview, functional architecture, operational architecture, and architectural decisions.
In this first article, learn what software architecture is and the importance of documenting different aspects of the discipline.
再這一系列,你將學會有關於文件化軟體架構.發現下面各種文件化的不同觀點:系統內部,架構概述,功能性架構,操作性架構,與架構種類.
再這一首篇文章中,將學會何謂軟體架構與在文件化中每個觀點的差異處.
Software architecture
Various researchers have interpreted what software architecture is, and they have different viewpoints on how to best represent the architecture of a software system. None of the interpretations is wrong; each has its own merits. The definition by Bass L, et al captures the essence of what software architecture should entail:
"The software architecture of a program or computing system is the structure or structures of the system, which comprise software components, the externally visible properties of those components, and the relationships between them."
各式各樣的研究都已經闡釋何謂軟體架構,同時他們在對於軟體系統架構的最佳實作也有不同的看法.沒有一種研究是錯誤,每一種都具有他們的價值.根據 Bass L,et al 指出的定義為一個軟體架構的本質應具有下列的特性: 程式設計與計算系統之軟體架構是在系統的內部的結構應為軟體的元件組合,而每一元件皆具有外部可透視性的屬性與各元件之間的關連性.
The definition focuses on architecture made up of coarse-grained constructs (software components) that can be considered building blocks of the architecture. Each software component, or architectural building block, has certain externally visible properties that it announces to the rest of the architectural building blocks. Internal details of the software component design and implementation are not a concern to the rest of the system, which looks at a specific software component as only a black box. The black box has certain properties it exhibits, which the rest of the software components can use to collectively realize the business or IT goals. Software architecture identifies the architectural building blocks, at the right level of granularity. It also identifies and documents how the building blocks are related to one another.
首先此定義著眼於如何將可被視之為建構系統架構之區塊的粗略性元件(軟體元件).每一元件,或架構區塊,都會具有外部可視性之屬性設定資料,其可在架構區塊平台上發佈其相關訊息.軟體元件設計與實作的內部細節,並不是系統平台的關注點,這個應該僅視之如同黑盒子般的軟體元件規格書才是. 此黑盒子應該要在軟體元件平台上發佈其相關特性,使之在此平台上可協同合作了解其業務或IT目標.軟體架構在一定程度的等級上定義出建構架構之區塊.同時也定義並可文件化在架構區塊之間的關連性.
Architecture as it relates to software engineering is about decomposing or partitioning a single system into a set of parts that can be constructed iteratively, incrementally, and independently. The individual parts have explicit relationships with one another. When woven together, the individual parts form the architecture of the system, enterprise, or application.
跟軟體工程相關聯的架構指的是將單一子系統中自系統群集中分離或組合時,其具備有可重復性,擴充性,獨立性的構成行為.其個別之部分子系統具有於其他子系統明確清楚的關連.當將其組合在一起時,個別部分子系統可規範出系統,企業或應用程式的架構.
There is some confusion about the difference between architecture and design. As Clements P, et al. point out, all architectures are designs but not all designs are architectures. Designs that need to be bound in order for the system to meet its functional and nonfunctional requirements and goals are architectural in nature. While architecture considers an architectural building block a black box, design deals with the configuration, customization, and internal workings of an architectural building block. The architecture binds a software component to its external properties. Design is usually much more relaxed than architecture, because it allows more ways to adhere to the external properties of the component. Design also considers various ways to implement the internal details of the component.
對於架構與設計此兩者的差異仍有某種的混淆.如同 Clements P, et al 指出:架構就是設計但設計並不一定是架構. 就本質上,設計是架構本身是基於須滿足系統本身的功能,非功能性的需求和目標.當架構把建構架構區塊視之為黑盒子之下,設計就是要處理其設定,客制,與其他區塊的內部協同合作.架構會以其該軟體元件之外部屬性將其於其本身連結起來.相對於架構,設計是比較容易輕鬆的,因為設計可以使用比較多的方式去存取元件的外部特性.設計同時也有比較多的方式去考慮元件本身的實作細節.
Software architecture can be used recursively. Consider a software component (C1) that is part of a software architecture of a system. The software architect hands the component to the system designer, along with its properties, functional and nonfunctional capabilities it should exhibit, and its relationship to other software components. The designer, after analyzing software component C1, decides it should be broken down into finer-grained components (C11, C12, and C13), each of which provides a reusable function that would be used to implement the properties mandated for C1. The designer details out C11, C12, C13 and their interfaces.
軟體架構可以很容易的被擴充.考慮到一個軟體元件(C1)是一個軟體架構系統中的一個部份.此軟體架構的設計可以藉由下列的方式來操控此元件:特性,其所展示功能與非功能的項目與其與其他元件的關連性.再分析系統元件C1之後,設計者決定要將其在分離出更細的元件(C11,C12,C13),
At this point, to this designer, C11, C12, and C13 are architectural constructs (or components); each of them has explicitly defined external interfaces. To the designer, C11, C12, and C13 are the architecture of software component C1, and the constructs need further elaboration and design to address their internal implementations. Architecture can be used recursively by dividing a large, complex system into small constituent parts and focusing on each part.
Architecture bounds the system using the architectural building blocks that collectively meet the behavioral and quality goals. The stakeholders must be able to understand the architecture. So it is imperative that an architecture is adequately documented, as discussed in the next section.
原文:
http://www.ibm.com/developerworks/library/ar-archdoc1/?S_TACT=105AGX78&S_CMP=HP
2008年4月14日
K800I 照相 無聲 達成
K800I 照相 無聲 大成功
所需工具 :
FAR : 此版本適用型號所有DB2020機型,CID 為 49 ,51 ,52皆可使用
FAR 2.0 : 此版本適用型號所有DB3350 機型,CID 到81都可用 包括 J10
XS 3.2 ++
Sony Ericsson PC Suite_3.204.00_ZT.zip
注意事項 :
在每一步的操作過程中,請將手機關機並將電池取下約數秒鐘後再安裝至手機,如此即可確保每一次的操作之後的手機狀態為初始.
此外,在操作的過程中,手機請保持關機狀態,請勿開機.
步驟:
step 1.
step 2:
參考文章:
所需工具 :
FAR : 此版本適用型號所有DB2020機型,CID 為 49 ,51 ,52皆可使用
FAR 2.0 : 此版本適用型號所有DB3350 機型,CID 到81都可用 包括 J10
XS 3.2 ++
Sony Ericsson PC Suite_3.204.00_ZT.zip
注意事項 :
在每一步的操作過程中,請將手機關機並將電池取下約數秒鐘後再安裝至手機,如此即可確保每一次的操作之後的手機狀態為初始.
此外,在操作的過程中,手機請保持關機狀態,請勿開機.
步驟:
step 1.
- 檢查電池有無充滿,如在操作的過程中,因手機缺乏電力會導致死機的狀況
- 下載 官方軟體 (pc suite), 安裝必要之驅動程式等
step 2:
- 檢查手機的型號 : 使用 XS 3.2 ++ 來確認型號,方法如下
- 將K800關機後,將電池取出再裝上電池.
- 執行xs++刷機軟體,點選connect,然後按住手機上的C鍵,
再接上傳輸線,等待 xs++ 抓到手機資料後即可放開C. - 此時左邊視窗即會出現手機資訊出現ready for operation!
hardware platform : db2020 ---> 手機型號
erom cid : 52 ---> 手機CID - 使用FAR 修改:
- 將K800關機後,將電池取出再裝上電池.
- 執行 Far.exe (如遇到排版問題,則在 內容 - 字型 中 點選 細明體 並選擇字型大小即可)
- 執行 alt + F1 進入開啟頁面
- 選擇下方 3 SEFP ,點選進入
- 見下圖,選擇指定之型號與CID,點選 [Enter The Matrix] ,如下圖:

- 見下圖,按住手機上的C鍵,再接上傳輸線,等待 fra 抓到手機資料後即可放開C,如下圖:

進入目錄畫面,根目錄為FLASH跟FS,請點選FS目錄(目前尚無法進入Flash)
目錄結構如下:- FS/tpa/preset/custom/ 閉合文件目錄
- FS/ifs/settings/camera/ 相機目錄
- FS/tpa/preset/system/menu/ 12宮格目錄
- FS/tpa/preset/system/multimedia/pe/funlayer 相框目錄
無聲像機改法 FS/tpa/preset/system/sound 目錄底下,將相關檔案刪除即可- /camerashutter4.3gp 4連拍
- /cameraburst.3gp 一般拍照聲音
- /camerafocus.3gp 對焦聲
- 快門聲1 camerashutter.3gp和camerashutter_rer
- 快門聲2 camerashutter2.3gp和camerashutter2_rer
- 快門聲3camerashutter3.3gp和camerashutter3_rer
- 快門聲4camerashutter4.3gp和camerashutter4_rer
FAR 操作功能- F5 : 複製檔案
- F8 : 刪除檔案
- F10 : 離開FAR程式
- FS/tpa/preset/custom/ 閉合文件目錄
- FAR 操作方法:
操作FAR功能完畢之後,務必先執行 F10 (離開程式),而後才能拔除USB連結線,否則極易造成操作功能未完成(如檔案上下傳未完). - 如果為操作模式為RED:表示只能寫入,無法讀取,或是只能刪除未受保護的檔案
那麼要刪除受保護資料時,可先在電腦新增相同檔名的檔案,然後進行寫入,然後再刪除即可 - J10 台灣大哥大 客製化相關檔案
catch:
TPA\PRESET\CUSTOM\RIGHT_SOFTKEY_HOOK.itm
圖片位置為 :
tpa\user\picture\TWM_Power_On.gif
tpa\user\picture\TWM_Shutdown.gif
tpa\user\picture\Screensaver.gif
參考文章:
2008年4月12日
FTP - FileZilla - the free FTP solution
免費的FTP SERVER / CLIENT
此介面幾乎跟一般市售的FTP 軟體沒有甚麼太大的差別
想要簡單連上FTP就可以使用這個啦
http://filezilla-project.org/
此介面幾乎跟一般市售的FTP 軟體沒有甚麼太大的差別
想要簡單連上FTP就可以使用這個啦
http://filezilla-project.org/
MP3切割軟體mp3DirectCut 2.05(中文免安裝)
好用的MP3切割工具
MP3切割軟體mp3DirectCut 2.05(中文免安裝)
mp3DirectCut是一套MP3音樂剪輯工具,小巧好用,且又是綠色軟體。另外可以修整音樂檔的聲音大小並加以切割成數個較小的檔案。mp3DirectCut 還提供 MP3 音樂檔的聲量調整、均化、及去除靜音部份。
mp3DirectCut 是一個免費軟體,雖然在音樂檔的剪輯功能上並不如專業的音樂製作軟體來的強悍、功能完整,不過如果您只需要基本的修剪功能,那麼 mp3DirectCut 可以說是相當理想的程式。
MP3切割軟體mp3DirectCut 2.05(中文免安裝)
mp3DirectCut是一套MP3音樂剪輯工具,小巧好用,且又是綠色軟體。另外可以修整音樂檔的聲音大小並加以切割成數個較小的檔案。mp3DirectCut 還提供 MP3 音樂檔的聲量調整、均化、及去除靜音部份。
mp3DirectCut 是一個免費軟體,雖然在音樂檔的剪輯功能上並不如專業的音樂製作軟體來的強悍、功能完整,不過如果您只需要基本的修剪功能,那麼 mp3DirectCut 可以說是相當理想的程式。
K800I
IMEI: 進入手機按 *#06# 即可查詢
觀看手機資訊: *右*左左*左*
個人化 - 網路/網段 資訊: *右*左**左
改機:
http://www.wretch.cc/blog/h40415
FAR 簡介:
http://blog.xuite.net/jansin7456/blog/13252518
觀看手機資訊: *右*左左*左*
個人化 - 網路/網段 資訊: *右*左**左
改機:
http://www.wretch.cc/blog/h40415
FAR 簡介:
http://blog.xuite.net/jansin7456/blog/13252518
2008年4月11日
2008年4月6日
Office 2007存檔格式的兼容性問題
台灣下載位址:
http://www.microsoft.com/downloads/details.aspx?FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=zh-tw
另一個國內載點:
http://www.hhsh.chc.edu.tw/ftp/Microsoft%20%B7L%B3n%B3n%C5%E9/Microsoft%20Office/
Office 2007存檔格式的兼容性問題
WalterS. Mossberg莫博士信箱2007年09月06日13:36
專欄作家莫博士就有關電腦和其他電子設備的常見技術問題,答讀者問。
問:我在兩台新電腦上,所建立的Word新文件,都自動存成擴展名為“.docx”的文件。這是什麼種類的文件?我運用電子郵件,把這些文件發給其他人,結果,都讀不出來。你能給點意見嗎?
答:你那兩台新電腦上,似乎是安裝了Windows版的Office 2007。微軟(Microsoft Corp.)在這個版本中,啟用了一種新的默認文件格式,其擴展名的末尾,會帶有“X”。因此,Word的文檔擴展名,就成了:“docx”;Excel的文檔擴展名,則變成了:“xlsx”;而PowerPoint的文檔擴展名,則是:“pptx”。當你使用Word 2007時,所有文件會自動存成“docx”格式。收件方打不開這些文件,是因為:他們的電腦安裝的是舊版本Office,無法識別出新的文件格式。微軟已經為舊版Office,發佈了一個免費的文件格式自動轉換修正程式,但大多數人都仍未安裝該修正程式。(在http://www.microsoft.com/downloads路徑,找“2007版Word、Excel和PowerPoint文件格式Office兼容修正程式”一欄下載)。微軟還提供了一個蘋果Mac版Word和PowerPoint文件的獨立轉換程序。可以到http://www.microsoft.com/mac路徑下,找“Mac版Open XML文件格式轉換器”一欄下載。除非你能說服所有的收件人,都安裝此類修正程式,我還是建議你:改動Word 2007的設置,這樣,所有文件都會存成傳統的“doc”格式。這種舊格式,不但與老版本的Office兼容,還與許多其他在Windows和Macintosh操作系統下運行的程序兼容。要修改設置,首先在Word 2007界面左上方,點擊圓形的“Office按鍵”。然後,在右側偏下,點擊“Word選項”。出現下一個界面時,點擊左側的“儲存”欄。此時,螢幕右側會出現一個面板,在名為:“文件存儲格式”的選項旁,有個選單,往下拉,並找到“Word 97-2003文檔(*.doc)”。最後,點“OK”鍵,就行了。雖然微軟警告稱:舊格式無法應用Word 2007的某些新功能!但我相信:99%的情況下,這些功能是無關緊要的。任何情況下,都比不上兼容性來得重要。
問:怎樣將Windows系統下Outlook的所有信件,轉到Macintosh系統的電子郵件程序中﹖
答:辦法有好幾種。可以用:某種能與Mac電腦上電子郵件程序同步的掌上電腦(PDA)或智能手機,先與你電腦上的Outlook同步,再與Mac電腦同步。或者,用售價10美元的O2M軟體,它專門被設計用來將Outlook數據,轉移到各種Mac程序中。你可以在littlemachines.com網站上,下載此軟件。或者,你也可以求助於蘋果公司(Apple Inc.)。如果你是從蘋果公司零售店購買的電腦,會免費獲得一款基礎的文件轉換軟體。但如果想按照你希望的方式,傳送Outlook信件,可能必須要購買:蘋果公司價格為:每年99美元的ProCare服務,它提供了更全面的傳送服務。
問:我原來那台安裝Windows XP操作系統的電腦,因為運行速度太慢,最近被我換掉了。不過,想讓自己的小孩繼續用這台舊電腦。我在想,是不是要把硬碟格式化,並重新安裝XP系統(不久前,我買來升級機器用的),這樣可能可以提高機器的運行表現。你覺得如何﹖如果,我之前安裝XP系統時,已經起動了它,我能不能再重新安裝它的備份﹖
答﹕我也認為:格式化硬碟,並重裝Windows系統,能讓電腦運行得快一些。通常情況下都是這樣。鑒於:微軟的起動系統,一般允許:在同一台電腦上,重裝操作系統。只要你的機器在硬體上沒有大變化,重裝系統應該是合法的。如果起動失敗,你可以致電微軟公司,向他們解釋:這是同一台電腦。這種情況下,他們通常都會允許起動。
http://www.microsoft.com/downloads/details.aspx?FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=zh-tw
另一個國內載點:
http://www.hhsh.chc.edu.tw/ftp/Microsoft%20%B7L%B3n%B3n%C5%E9/Microsoft%20Office/
Office 2007存檔格式的兼容性問題
WalterS. Mossberg莫博士信箱2007年09月06日13:36
專欄作家莫博士就有關電腦和其他電子設備的常見技術問題,答讀者問。
問:我在兩台新電腦上,所建立的Word新文件,都自動存成擴展名為“.docx”的文件。這是什麼種類的文件?我運用電子郵件,把這些文件發給其他人,結果,都讀不出來。你能給點意見嗎?
答:你那兩台新電腦上,似乎是安裝了Windows版的Office 2007。微軟(Microsoft Corp.)在這個版本中,啟用了一種新的默認文件格式,其擴展名的末尾,會帶有“X”。因此,Word的文檔擴展名,就成了:“docx”;Excel的文檔擴展名,則變成了:“xlsx”;而PowerPoint的文檔擴展名,則是:“pptx”。當你使用Word 2007時,所有文件會自動存成“docx”格式。收件方打不開這些文件,是因為:他們的電腦安裝的是舊版本Office,無法識別出新的文件格式。微軟已經為舊版Office,發佈了一個免費的文件格式自動轉換修正程式,但大多數人都仍未安裝該修正程式。(在http://www.microsoft.com/downloads路徑,找“2007版Word、Excel和PowerPoint文件格式Office兼容修正程式”一欄下載)。微軟還提供了一個蘋果Mac版Word和PowerPoint文件的獨立轉換程序。可以到http://www.microsoft.com/mac路徑下,找“Mac版Open XML文件格式轉換器”一欄下載。除非你能說服所有的收件人,都安裝此類修正程式,我還是建議你:改動Word 2007的設置,這樣,所有文件都會存成傳統的“doc”格式。這種舊格式,不但與老版本的Office兼容,還與許多其他在Windows和Macintosh操作系統下運行的程序兼容。要修改設置,首先在Word 2007界面左上方,點擊圓形的“Office按鍵”。然後,在右側偏下,點擊“Word選項”。出現下一個界面時,點擊左側的“儲存”欄。此時,螢幕右側會出現一個面板,在名為:“文件存儲格式”的選項旁,有個選單,往下拉,並找到“Word 97-2003文檔(*.doc)”。最後,點“OK”鍵,就行了。雖然微軟警告稱:舊格式無法應用Word 2007的某些新功能!但我相信:99%的情況下,這些功能是無關緊要的。任何情況下,都比不上兼容性來得重要。
問:怎樣將Windows系統下Outlook的所有信件,轉到Macintosh系統的電子郵件程序中﹖
答:辦法有好幾種。可以用:某種能與Mac電腦上電子郵件程序同步的掌上電腦(PDA)或智能手機,先與你電腦上的Outlook同步,再與Mac電腦同步。或者,用售價10美元的O2M軟體,它專門被設計用來將Outlook數據,轉移到各種Mac程序中。你可以在littlemachines.com網站上,下載此軟件。或者,你也可以求助於蘋果公司(Apple Inc.)。如果你是從蘋果公司零售店購買的電腦,會免費獲得一款基礎的文件轉換軟體。但如果想按照你希望的方式,傳送Outlook信件,可能必須要購買:蘋果公司價格為:每年99美元的ProCare服務,它提供了更全面的傳送服務。
問:我原來那台安裝Windows XP操作系統的電腦,因為運行速度太慢,最近被我換掉了。不過,想讓自己的小孩繼續用這台舊電腦。我在想,是不是要把硬碟格式化,並重新安裝XP系統(不久前,我買來升級機器用的),這樣可能可以提高機器的運行表現。你覺得如何﹖如果,我之前安裝XP系統時,已經起動了它,我能不能再重新安裝它的備份﹖
答﹕我也認為:格式化硬碟,並重裝Windows系統,能讓電腦運行得快一些。通常情況下都是這樣。鑒於:微軟的起動系統,一般允許:在同一台電腦上,重裝操作系統。只要你的機器在硬體上沒有大變化,重裝系統應該是合法的。如果起動失敗,你可以致電微軟公司,向他們解釋:這是同一台電腦。這種情況下,他們通常都會允許起動。
2008年4月5日
榮譽勳章---空降神兵 - 修改
榮譽勳章---空降神兵
修改預設彈藥
C:\Program Files\Electronic Arts\Medal of Honor Airborne\UnrealEngine3\MOHAGame\Config\DefaultPlayer.ini
==> 玩者可攜帶之武器彈藥量設定
StartingReserveAmmo --> 初始彈藥
MaxReserveAmmo --> 最大彈藥
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHASMGAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAMKIIFragGrenadeAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHASniperAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAPistolAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHARifleAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAGammonGrenadeAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAStickGrenadeAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHARocketAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAShotgunAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAAutoRifleAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
修改武器設定
C:\Program Files\Electronic Arts\Medal of Honor Airborne\UnrealEngine3\MOHAGame\Config\DefaultWeapon.ini
==> 個別武器彈藥量設定
AmmoCount[0] --> 預設彈葯
MaxAmmoCount[0]=8 --> 最大彈藥
/////////////////////////////////////
// M1GARAND //
// EALA WEAPON VARS //
/////////////////////////////////////
[MOHAGameNonNative.MOHAM1Garand]
WeaponFireAnim=m1garand_gun_fire_1
WeaponFireAnim=m1garand_gun_fire_1
WeaponFireAnim=m1garand_gun_idle_1
//WeaponEquipAnim=
WeaponReloadAnim=m1garand_gun_reload
WeaponReloadAnim=m1garand_gun_reload_4
WeaponIdleAnim=m1garand_gun_idle_1
WeaponIdleAnim=m1garand_gun_idle_4
WeaponIdleAnim=m1garand_gun_idle_1
// TraceStartSocket=Barrel
ForceFalloffDistanceMax=200000
ForceFalloffDistanceStart=100000
// PlayerFOV=
// MeleeImpulse_Min=1000.0f
// MeleeImpulse_Max=2500.0f
MeleeInterval=0.9
MeleeImpactInterval=0.3
MeleeInterruptInterval=0.6
MoveSpeedMultipler=0.88
MaxAmmoCount[0]=8
MaxAmmoCount[1]=1
AmmoCount[0] = 8
AmmoCount[1] = 0
EquipTime_TUNE=0.30
PutDownTime_TUNE=0.30
FireIntervalStandard_TUNE=0.666
FireIntervalSecond_TUNE=0.666
RefireCheckTime=0.15
IronsightRefireCheckTime=0.15
WeaponRange_TUNE=16384
InstantHitDamageStandard_TUNE=8500
InstantHitDamageSecond_TUNE=8500
InstantHitDamageThird_TUNE=5000
// InstantHitMomentumStandard_TUNE=6000
// InstantHitMomentumSecond_TUNE=6000
// InstantHitMomentumThird_TUNE=6000
IronsightsFireTime=0.666
IronsightsInTime=0.22
IronsightsOutTime=0.20
IronsightsTargetWorldFOV=55
IronsightsTargetPlayerFOV=20
AltFireIronsightsTargetWorldFOV=55
AltFireIronsightsTargetPlayerFOV=20
NumExpLevels=3
ExpPointsLevel1=25
ExpPointsLevel2=50
ExpPointsLevel3=100
LowAmmoMixThreshold = 3
已有密技:
複製捷徑圖示
右鍵按內容
在目標那行字最後加上 -enableconsole
-enableconsole(前方需加空格)
以下這行是我電腦的範例:
C:\Program Files\Electronic Arts\Medal of Honor Airborne\UnrealEngine3\Binaries\MOHA.exe" -enableconsole
絕對可用
Code: Result:
god God Mode On/Off
fly Fly Mode (use etheral code to disable)
ghost No Clipping Mode On/Off
walk Disable Fly Mode
upgradeweapon Upgrades Weapon by One Level
showhud Show/Hide HUD
修改預設彈藥
C:\Program Files\Electronic Arts\Medal of Honor Airborne\UnrealEngine3\MOHAGame\Config\DefaultPlayer.ini
==> 玩者可攜帶之武器彈藥量設定
StartingReserveAmmo --> 初始彈藥
MaxReserveAmmo --> 最大彈藥
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHASMGAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAMKIIFragGrenadeAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHASniperAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAPistolAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHARifleAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAGammonGrenadeAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAStickGrenadeAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHARocketAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAShotgunAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
DefaultAmmoLoadout=(AmmoClass=class'MOHAGame.MOHAAutoRifleAmmoClass', StartingReserveAmmo=99999999, MaxReserveAmmo=99999999)
修改武器設定
C:\Program Files\Electronic Arts\Medal of Honor Airborne\UnrealEngine3\MOHAGame\Config\DefaultWeapon.ini
==> 個別武器彈藥量設定
AmmoCount[0] --> 預設彈葯
MaxAmmoCount[0]=8 --> 最大彈藥
/////////////////////////////////////
// M1GARAND //
// EALA WEAPON VARS //
/////////////////////////////////////
[MOHAGameNonNative.MOHAM1Garand]
WeaponFireAnim=m1garand_gun_fire_1
WeaponFireAnim=m1garand_gun_fire_1
WeaponFireAnim=m1garand_gun_idle_1
//WeaponEquipAnim=
WeaponReloadAnim=m1garand_gun_reload
WeaponReloadAnim=m1garand_gun_reload_4
WeaponIdleAnim=m1garand_gun_idle_1
WeaponIdleAnim=m1garand_gun_idle_4
WeaponIdleAnim=m1garand_gun_idle_1
// TraceStartSocket=Barrel
ForceFalloffDistanceMax=200000
ForceFalloffDistanceStart=100000
// PlayerFOV=
// MeleeImpulse_Min=1000.0f
// MeleeImpulse_Max=2500.0f
MeleeInterval=0.9
MeleeImpactInterval=0.3
MeleeInterruptInterval=0.6
MoveSpeedMultipler=0.88
MaxAmmoCount[0]=8
MaxAmmoCount[1]=1
AmmoCount[0] = 8
AmmoCount[1] = 0
EquipTime_TUNE=0.30
PutDownTime_TUNE=0.30
FireIntervalStandard_TUNE=0.666
FireIntervalSecond_TUNE=0.666
RefireCheckTime=0.15
IronsightRefireCheckTime=0.15
WeaponRange_TUNE=16384
InstantHitDamageStandard_TUNE=8500
InstantHitDamageSecond_TUNE=8500
InstantHitDamageThird_TUNE=5000
// InstantHitMomentumStandard_TUNE=6000
// InstantHitMomentumSecond_TUNE=6000
// InstantHitMomentumThird_TUNE=6000
IronsightsFireTime=0.666
IronsightsInTime=0.22
IronsightsOutTime=0.20
IronsightsTargetWorldFOV=55
IronsightsTargetPlayerFOV=20
AltFireIronsightsTargetWorldFOV=55
AltFireIronsightsTargetPlayerFOV=20
NumExpLevels=3
ExpPointsLevel1=25
ExpPointsLevel2=50
ExpPointsLevel3=100
LowAmmoMixThreshold = 3
已有密技:
複製捷徑圖示
右鍵按內容
在目標那行字最後加上 -enableconsole
-enableconsole(前方需加空格)
以下這行是我電腦的範例:
C:\Program Files\Electronic Arts\Medal of Honor Airborne\UnrealEngine3\Binaries\MOHA.exe" -enableconsole
絕對可用
Code: Result:
god God Mode On/Off
fly Fly Mode (use etheral code to disable)
ghost No Clipping Mode On/Off
walk Disable Fly Mode
upgradeweapon Upgrades Weapon by One Level
showhud Show/Hide HUD
2008年2月10日
Java SE 6 + Firefox 2 UI 問題(出現紅字)
有時都會出現 UI 問題:底下出了一個「menuitem」的紅字。我用了這個方法來解決,特此記下:
- 進入 Firefox 「安全模式」
- 選「停用所有附加元件」然後點「執行變更項目並重新啟動」
- Firefox 重啟後,打開中「附加元件」,重新啟動所有元件,再重啟 Firefox
這樣子就可以修復 UI 的問題了。而事實上,跟據 moztw 這個討論串 ,原因是因為 Java SE6 在加入 console 附件時的 chrome 打錯了字,更簡單的方法是:到 Firefox 安裝目錄下的 Firefox 安裝目錄下 extensions\{CAFEEFAC-0016-0000-0000-ABCDEFFEDCBA}\ 修改 chrome.manifest ,將
chrome/locale/zh_TW/ffjcext/
改成
chrome/locale/zh-TW/ffjcext/
存檔之後,進入安全模式一次,再重啟 Firefox 就可以了。
2008年1月24日
Python 編碼
處理Python 編碼真是討厭阿
(OS:誰叫我們是非英語系的勒)
1.%安裝目錄%\Lib\site.py --->
def setencoding():
"""Set the string encoding used by the Unicode implementation. The default is 'ascii', but if you're willing to experiment, you can change this."""
encoding = "utf-8" # Default value set by _PyUnicode_Init()
-------> 可修改預設編碼值 (其sys.setdefaultencoding(encoding) 在 2.0 後無效)
2.在script上宣告編碼
#-*- coding: utf-8 -*-
3. 如果上述都不指定,則輸入的檔案要UTF-8 格式~在str.encode("編碼格式") 指定即可
4. locale.getdefaultlocale() ---> 可得到預設的系統編碼
可搭配encode使用 例如 unicode(str).encode(locale.getdefaultlocale() )
(OS:誰叫我們是非英語系的勒)
1.%安裝目錄%\Lib\site.py --->
def setencoding():
"""Set the string encoding used by the Unicode implementation. The default is 'ascii', but if you're willing to experiment, you can change this."""
encoding = "utf-8" # Default value set by _PyUnicode_Init()
-------> 可修改預設編碼值 (其sys.setdefaultencoding(encoding) 在 2.0 後無效)
2.在script上宣告編碼
#-*- coding: utf-8 -*-
3. 如果上述都不指定,則輸入的檔案要UTF-8 格式~在str.encode("編碼格式") 指定即可
4. locale.getdefaultlocale() ---> 可得到預設的系統編碼
可搭配encode使用 例如 unicode(str).encode(locale.getdefaultlocale() )
訂閱:
意見 (Atom)