雖然FLEX 4 官方預估要到2009年第二季才會推出. 不過測試版的SDK (程式開發工具) 代號 Gumbo 的早已發佈. 有一些新的功能當然也只能透過新的SDK 搭配 FlashPlayer 10 才有法子編譯. 底下就跟大家分享如何在您的Flex Builder 3安裝the beta Gumbo SDK.

1.首先先請您到下面的網站去下載Gumbo

http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4

在上面的連結裏.您可以看到一些說明. 由於我是以假設您已經裝好了Flex builder 3 的情況下來.安裝使用這個Gumbo,所以請您下載版號為 4.0.0.4098 Open Source Flex SDK,底下是下載的連結

http://opensource.adobe.com/wiki/display/flexsdk/download?build=4.0.0.4098&pkgtype=2

下載的檔名應是 flex_sdk_4.0.0.4098_mpl.zip

下載完成後.請將它解壓縮到您想要放置的目錄,我個人是將它解壓縮到c:\flex_sdk_4.0.0.4098_mpl

Until Flex Builder 3 Stand Alone includes Ant built in you will have to install it separately. Peter Elst wrote steps for installing it in Flex Builder 2 but in Flex Builder 3 the steps are slightly different. For those that are not familiar with Eclipse, this can be tricky to install.

The following is the revised steps for Flex Builder 3 Stand Alone.

Quoted and revised from http://www.peterelst.com/blog/2006/09/03/flex-builder-2-ant-support/:

  1. Launch Flex Builder 3
  2. Go to Help > Software Updates > Find and Install
  3. Select “Search for new features to install” and click next
  4. Select “The Eclipse Project Updates” and click finish
    Note: If you do not have the option above click New Remote Site and enter "The Eclipse Project Updates" as the name and "http://update.eclipse.org/updates/3.3" as the url.
  5. In the Eclipse Project Updates > Eclipse 3.3.2 (3.3.3, 3.3.4, etc) node select “Eclipse Java Development Tools…” and click next
  6. Accept the license agreement and click next
  7. Click finish to start download
  8. Eclipse downloads Java Development Tools
  9. Click “Install all” to install Java Development Tools
  10. Restart the Eclipse workbench

That’s it! You now have Apache Ant support in your standalone Flex Builder 3 install.

Go to Window > Other View > Ant and Click OK. You now have the Ant view

會接觸到QQ 是因為過去在大陸工作的那一段時間從2008年2月一直到現在,中途經過了幾個版本
一直沒有推出繁體中文版,只有簡體中文版.

若使用簡體中文版即使搭配 Microsoft AppLocate 公用程式還是沒法子正確顯示中文字型.老是會出現? 或口字框體.

一直等到QQ2009 繁體中文版的發佈.還是沒能夠在windows xp 及 windows 7 7057正常的顯示中文. 總是有若干字體會變成? 或口字框體. 狀況依舊.

我個人是很反對使用QQ ,原因如下.

1.不論是個人或公司發展的軟體且不論其收費與否.均不該未經提示安裝廣告或強迫使用者接收廣告.除非在安裝軟件有在明顯處告之它本身即為ad-ware. 非經如此宣告即強塞廣告給使用者.等同流氓軟件或惡意程式.

底下列出部份關於流氓軟件或惡意程式的解釋, 資料來源為維基百科. 內地的朋友們可能無法順利開啟底下的網頁連結. 主要的原因是GFW 的做祟. 茲節錄部份的說明陳述於下

http://zh.wikipedia.org/w/index.php?title=%E6%B5%81%E6%B0%93%E8%BD%AF%E4%BB%B6&variant=zh-tw


維基百科,自由的百科全書
(重定向自流氓软件)
跳轉到: 導航, 搜尋

惡意軟體(中國大陸俗稱「流氓軟體」)是對網路上散播的符合如下條件(主要是第一條)的軟體的一種稱呼:

1. 採用多種社會和技術手段,強行或者秘密安裝,並抵制卸載;
2. 強行修改用戶軟體設置,如瀏覽器主頁,軟體自動啟動選項,安全選項;
3. 強行彈出廣告,或者其他干擾用戶佔用系統資源行為;
4. 有侵害用戶信息和財產安全的潛在因素或者隱患;
5. 與病毒聯合侵入用戶電腦;
6. 停用防毒軟體或其他電腦管理程式來做進一步的破壞;
7. 未經用戶許可,或者利用用戶疏忽,或者利用用戶缺乏相關知識,秘密收集用戶個人信息、秘密和隱私。

這些軟體也可能被稱為廣告軟體(adware)、間諜軟體(spyware)、惡意共享軟體(malicious shareware)。與病毒或蠕蟲不同,這些軟體很多不是小團體或者個人秘密地編寫和散播,反而有很多知名企業和團體涉嫌此類軟體。

其中以雅虎旗下的3721最為知名和普遍,也比較典型。[1][2]該軟體採用多種技術手段強行安裝和對抗刪除。很多用戶投訴是在不知情的情況下遭到安裝,而其多種反卸載和自動恢復技術使得很多軟體專業人員也感到難以對付,以至於其卸載成為大陸網站上的常常被討論和諮詢的技術問題。

據北京網路協會發起和公布的調查說,在被舉報投訴的前幾名中比較知名的軟體和企業有:3721的上網助手和網路實名、阿里巴巴旗下的淘寶、億貝易趣、中國網際網路絡信息中心(即CNNIC)的中文官方上網版軟體、百度的超級搜霸、雅虎的一搜等。

部分被指名的企業否認或者部分否認這些指責,也有企業表示:即將或者已經推出的新版軟體,已經對被投訴的問題作出改正。

個別「流氓軟體」的製作公司或製作機構,還狀告殺毒軟體公司將之納入「流氓」之列[3][4][5],部分殺毒軟體公司已經迫於法院判決將個別流氓軟體產品的特徵從病毒庫中刪除,不再將流氓軟體當電腦病毒來查殺。

有觀點認為此次調查原因是知名殺毒軟體企業瑞星由於廣告或者宣傳目的進行的炒作。

網路上有用戶表示可以接受這些軟體。但更多用戶不接受這類軟體。



官方定義

2006年11月9日,中國互聯網協會公布了惡意軟體的官方定義如下:[6]

惡意軟體(俗稱「流氓軟體」)是指在未明確提示用戶或未經用戶許可的情況下,在用戶計算機或其他終端上安裝運行,侵犯用戶合法權益的軟體。

* 強制安裝:指在未明確提示用戶或未經用戶許可的情況下,在用戶計算機或其他終端上安裝軟體的行為。
* 難以卸載:指未提供通用的卸載方式,或在不受其他軟體影響、人為破壞的情況下,卸載後仍活動程序的行為。
* 瀏覽器劫持:指未經用戶許可,修改用戶瀏覽器或其他相關設置,迫使用戶訪問特定網站或導致用戶無法正常上網的行為。
* 廣告彈出:指未明確提示用戶或未經用戶許可的情況下,利用安裝在用戶計算機或其他終端上的軟體彈出廣告的行為。
* 惡意收集用戶信息:指未明確提示用戶或未經用戶許可,惡意收集用戶信息的行為。
* 惡意卸載:指未明確提示用戶、未經用戶許可,或誤導、欺騙用戶卸載非惡意軟體的行為。
* 惡意捆綁:指在軟體中捆綁已被認定為惡意軟體的行為。
* 其他侵犯用戶知情權、選擇權的惡意行為。



言歸正傳 不管是工作或是與內陸的朋友/同事連絡情感就非得受到 QQ 的荼毒不可嗎? 當然也不盡然.底下我來介紹一套軟體來幫大家避過QQ 的毒手,沒人人願意使用軟體時被硬塞了一堆廣告,要提心吊擔會被監控側錄. 這套軟體叫Miranda IM 除了QQ 外還同時支援數套IM 軟體.

接下來請到底下的網址下載 Miranda IM


底下的安裝說明.我看用動畫來說明好了

安裝好Miranda IM 後.當然QQ 暫時還是無法使用.得另外下載其它的addons 才行.接著請到下述的連結下載 QQ 相關的addons

首先請先到http://www.squid-cache.org/ 去了解一下,去看看這隻魷魚.

再來請到http://squid.acmeconsulting.it/download/dl-squid.html
下載這隻魷魚加以烹煮.

2.7.STABLE6 06/03/2009 Standard
Delay Pools

對了.這有兩個版本的魷魚.我用的是Standard 的.

下載好後.解壓縮後預設是名為squid-2.7.STABLE6-bin 的資料夾.請到該資料夾內把其中的 squid 資料夾複製到 C 磁碟機去.

再來你會看到請到squid資料夾下的etc資料夾, 分別將squid.conf.default , mime.conf.default , cachemgr.conf.default 各複製一份. 再將檔名改為 squid.conf.default , mime.conf , cachemgr.conf .

[caption id="attachment_69" align="alignnone" width="300" caption="Squid安裝目錄"]squid安裝目錄[/caption]

接下來要開始編修squid.conf. 請自行下載notepad++ 來編輯這個檔案. 相關的軟體下載網站在

http://notepad-plus.sourceforge.net/tw/site.htm

請注意一點.為了避免設置Squid.conf 的麻煩.建議將資料夾名稱維持 squid 並將其複製到 磁碟機 C 的根目錄接下來

要修改的也僅有 squid.conf 檔案.

底下則是我使用的快速設定的Squid.con Sample 檔案

# TAG: acl
# Defining an Access List
# acl all src 0.0.0.0/0.0.0.0
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network


acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_port 3128
maximum_object_size 10240 KB

#acl QUERY urlpath_regex cgi-bin \? \.cgi
#no_cache deny QUERY
cache_mem 64 MB
cache_swap_low 75
cache_swap_high 95
# TAG: cache_dir
cache_dir aufs c:/squid/var/cache 10240 64 256
#設定 cache 在 HDD 裡面的大小 (最多使用 10 GB、第一層 64 個目錄 、第二層 256 個目錄)
cache_log c:/squid/var/logs/cache.log
#記錄 squid 的執行狀況
access_log c:/squid/var/logs/access.log
#記錄 squid client 的 HTTP 及 IGP request
cache_store_log c:/squid/var/logs/store.log
#記錄 squid cache 哪些網頁資料
# TAG: http_access
# Allowing or Denying access based on defined access lists
# acl localhost src 127.0.0.1/255.255.255.255
acl lanuser1 src 192.168.1.0/24
acl lanuser2 src 192.168.0.0/24
http_access allow localhost
http_access allow lanuser1
http_access allow lanuser2
http_access deny all

# TAG: visible_hostname
# If you want to present a special hostname in error messages, etc,
# define this. Otherwise, the return value of gethostname()
# will be used. If you have multiple caches in a cluster and
# get errors about IP-forwarding you must set them to have individual
# names with this setting.
#
#Default:
# none
visible_hostname localhost
# TAG: dns_nameservers
# Use this if you want to specify a list of DNS name servers
# (IP addresses) to use instead of those given in your
# /etc/resolv.conf file.
# On Windows platforms, if no value is specified here or in
# the /etc/resolv.conf file, the list of DNS name servers are
# taken from the Windows registry, both static and dynamic DHCP
# configurations are supported.
#
# Example: dns_nameservers 10.0.0.1 192.172.0.4
#
#Default:
# none
dns_nameservers 168.95.192.1 168.95.1.1

先到http://ant.apache.org/ 下載. 自2006/12/19 號以來. 1.7版是目前最近的版本
將其解壓縮後.把apache-ant-1.7.0這個目錄搬到 c:
接下來看這目錄下的文檔說明. 底下是在FireFox 瀏覽器網址列輸入 因為他的文檔是.html 檔案
file:///C:/apache-ant-1.7.0/docs/manual/index.html
接下來要設定環境變數, 以我的安裝實例來做範例
底下的請在dos 命令列下執行
set ANT_HOME=c:\apache-ant-1.7.0
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
set PATH=%PATH%;%ANT_HOME%\bin

若您未做上述的動作就去執行ant. 會出如下的錯誤訊息(雖然ANT 會試著去解讀你的環境變數,但最好你要完成
上述的設定再來執行它.

Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.6.0_03\lib\tools.jar
Buildfile: build.xml does not exist!
Build Failed


緣起: 我發現TOMCAT 討論區的資料都有些過時了. 絕少有論論新版的DBOC 的安裝方法. 繞了好大一圈查了不少心得分享(大部份是舊的), 實在解決不了問題.

先說說我的安裝過程好了. 我是依循官方的文件做的.但是畢竟是官方文件. 有些小細節是沒有提及的. 不過還是請各位參考一下. 以下是官方網站的連結.

http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

要特別注意這段話:
Please note that JNDI resource configuration changed somewhat between Tomcat 5.0.x and Tomcat 5.5.x. You will most likely need to modify older JNDI resource configurations to match the syntax in the example below in order to make them work in Tomcat 6.x.x.

當然光看完這段話也是一頭霧水.解決不了問題. 接下來請看看這段的說明
http://wiki.apache.org/tomcat/FAQ/Deployment
其中提到:
Why does tomcat 5 create context configuration files?

Unlike tomcat 4.x, tomcat 5.x creates context configuration files for you in its conf/[Engine name]/[Host name] directory. This is part of the change in tomcat's configuration mechanism from version 4.x to make overall configuration more robust, flexible, and enterprise-friendly. Note, however, that this has changed the recommended deployment practices for web applications. These context configuration files are created by tomcat, but not removed by tomcat, because the user may have changed them or other files in the conf directory. The suggested practice for tomcat 5 is to place context configuration files in the META-INF/context.xml directory of your webapp, and use Tomcat's Manager webapp to deploy/undeploy your applications. More details can be found here: [WWW] MARC Archive

也就是說原本在5.5版 .... 原本是被放在 c:\tomcat \conf\Server.xml 現在到了 6.0 卻被移出到 c:\tomcat\webapps\META-INF 並獨立出來為一單一的 context.xml 檔案

接下來請回到http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html 繼續看下去.
MySQL DBCP Example

0. Introduction
這部份改一下. 我的測試平台跟sample 有點不一樣.
MySQL 5.0.45
Connector/J 5.1.5 (the official JDBC Driver)mysql-connector-java-5.1.5-bin.jar
tomcat 6.0.14
Product Version: NetBeans IDE 6.0 (Build 200711261600)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; MS950; zh_TW (nb)
Userdir: C:\Documents and Settings\yitafan\.netbeans\6.0

1. MySQL configuration
這部份沒什麼特別的. 請你把它改為自己mysql server 上面的有效帳號就好

2.2. Context configuration

Configure the JNDI DataSource in Tomcat by adding a declaration for your resource to your Context.
這裏就要注意了 要把這下列的sample 貼到
c:\tomcat\webapps\META-INF\context.xml

3. web.xml configuration

Now create a WEB-INF/web.xml for this test application.
這部份也是把官網的sample 搬到你的 c:\tomcat\webapps\WEB-INF\web.xml

4. Test code

Now create a simple test.jsp page for use later.
這個測試用的 test.jsp 就放到 c:\tomcat\webapps

這部份有用到JSTL 請使用 jakarta-taglibs-standard-1.1.2
解壓縮後,把LIB目錄下的jstl.jar 跟 standard.jar 丟到 C:\tamcat\webapps\WEB-INF\LIB 目錄下即可

注意事項. 以上目錄只是便於說明 c:\tamcat\webapps 請自行換置成您的安裝路徑. 至於 webapps 我是用官方sample的預設DBTest

後記: 跑是跑起來了 不過.我不知如何查看DBOC 連結池的狀態. 有懂這方面的朋友們.再麻煩你們指點了. 若我的解說有什麼疑問也請留言. 我會就我所了解的來跟您解釋. 若有錯誤請不吝指教

DBDesigner 4 這套軟體. 算是一套Free ER Diagram 程式. 在Windows 下搭配Mysql 5.0.45 卻會無法使用.
原因如下:

因為DBDesigner4 的設計者當初是以 Version 3.xx 的Mysql 作為參考. 對於帳號密碼的認證依然是採用舊的方式. 因此必需在Mysql 命令列下做點小修改.

Ok thought I would have a look at DBDesigner4 as MyWorkbench seems to be taking a long time to get into beta. DBDesigner4 looks a great product but couldnt get it to connect to mysql 5 then realised that it the designer was designed for version 3 mysql and lots of the old mysql products need to read the myql.user table for id's etc.

Tried the old trick of using the OLD_PASSWORD function and seems to work what you need to do is this....

1. Open the mysql command prompt.

2. SET PASSWORD FOR 'root'@'localhost' = OLD_PASSWORD('rootpassword');

UPDATE mysql.user SET Password = OLD_PASSWORD('rootpassword') WHERE Host = 'localhost' AND User = 'root';

FLUSH PRIVILEGES;

all in one line - hit return.

3. Try dbdesigner4 again and you should now be able to connect.

要注意以下的第二部份. 若您用選取.再用貼上的. 會出現一個問題 就是沒法子貼那麼多行的命令,
而會被強迫斷行並送出Enter 而產生錯誤. 最好是先執行前兩行命令, 沒出錯後再貼FLUSH PRIVILEGES; 來更新權限

上述原文出處:http://www.paulfarrow.com/archive/2007/09/03/dbdesigner4-windows-and-mysql-5.aspx

Copyright 2010 Yita電腦調校日誌
Lunax Free Premium Blogger™ template by Introblogger