http://www.cmcgov.com/ESRI/mapobjects.htm
http://extranet.mapinfo.com/products/Overview.cfm?productid=1900&productcategoryid=1,2,3]
Wednesday, August 30, 2006
MapExtreme
downLoad mapxtremejava.key from internet.
then put "mapxtremejava.key" into these directionaies:
C:\Program Files\MapInfo\MapXtreme-4.7.1\lib\server
C:\Program Files\MapInfo\MapXtreme-4.7.1\Tomcat-4.1\webapps\mapxtreme471\WEB-INF\classes
then put "mapxtremejava.key" into these directionaies:
C:\Program Files\MapInfo\MapXtreme-4.7.1\lib\server
C:\Program Files\MapInfo\MapXtreme-4.7.1\Tomcat-4.1\webapps\mapxtreme471\WEB-INF\classes
Monday, July 03, 2006
如何使用 Sysprep 工具將成功的 Windows XP 部署作業自動化
http://support.microsoft.com/?scid=kb;zh-tw;302577
Sysprep 參數
您可以將下列選用參數與 Windows XP 中的 Sysprep 命令搭配使用:| • | -activated - 不要重設 Windows 產品啟用的寬限期。只有當您已經在原廠啟用 Windows 安裝,才能使用此參數。 重要 您用來啟用 Windows 安裝的產品金鑰,必須和貼在該部特定電腦的真品證明書貼紙上的產品金鑰相符合。 |
| • | -audit - 將電腦重新啟動至「原廠」模式,不需要產生新的安全識別碼 (SID),也不需要處理 Winbom.ini 檔案 [OEMRunOnce] 區段中的任何項目。只有當電腦已經處於「原廠」模式時,才能使用此命令列參數。 |
| • | -bmsd - 將所有可用的大型存放裝置填入 [SysprepMassStorage] 區段中。 |
| • | -clean - 清除 Sysprep.inf 檔案中 [SysprepMassStorage] 區段所使用的重要裝置資料庫。 |
| • | -factory - 在啟用網路的狀態下重新開機,不要顯示「Windows 歡迎畫面」或迷你安裝程式。如果要更新驅動程式、執行隨插即用列舉、安裝程式、進行測試、用客戶資料來設定電腦,或是想要在工廠環境中變更其他設定,此參數會很有用。對於那些使用磁碟映像 (或複製) 軟體的公司來說,「原廠」模式可以減少所需的映像數目。 當您在「原廠」模式中完成所有工作之後,請使用 -reseal 參數來執行 Sysprep.exe 檔案,以準備將電腦交給使用者。 |
| • | -forceshutdown - 在 Sysprep.exe 檔案完成之後關閉電腦。 注意 如果電腦具有 ACPI BIOS,但是無法依照 Sysprep.exe 檔案的預設方式正常關機,就可以使用此參數。 |
| • | -mini - 設定 Microsoft Windows XP Professional 使用迷你安裝程式,而不是使用「Windows 歡迎畫面」。此參數對 Microsoft Windows XP Home Edition 沒有作用,首次執行 Microsoft Windows XP Home Edition 時一定是出現「Windows 歡迎畫面」。 請注意,如果您計畫要使用 Sysprep.inf 檔案將迷你安裝程式自動化,必須使用 -mini 參數來執行 Sysprep 工具,或是按一下以選取 GUI 介面中的 [迷你安裝程式] 核取方塊。根據預設,如果您沒有選擇執行迷你安裝程式,Windows XP Professional 就會執行「Windows 歡迎畫面」。 |
| • | -noreboot - 不需要重新啟動電腦或準備進行複製,就可以修改登錄項目 (SID、OemDuplicatorString 及其他登錄項目)。此參數主要是用來進行測試,特別是用來查看登錄是否已正確修改。Microsoft 不建議您使用此選項,因為在執行了 Sysprep.exe 檔案之後再來對電腦進行變更,可能會使 Sysprep.exe 檔案所完成的準備工作變成無效。請勿在生產環境中使用此參數。 |
| • | -nosidgen - 在不產生新的 SID 的情況下執行 Sysprep.exe 檔案。如果您不想要複製您正在執行 Sysprep.exe 檔案的電腦,或者如果您想要預先安裝網域控制站,就必須使用此參數。 |
| • | -pnp - 在迷你安裝程式執行期間,執行完整的隨插即用裝置列舉與安裝。如果第一次執行時出現的是「Windows 歡迎畫面」,則此命令列參數沒有作用。 只有在您必須偵測並安裝舊式、非隨插即用的裝置時,才使用 -pnp 命令列參數。請不要在只使用隨插即用裝置的電腦上使用 sysprep -pnp 命令列參數。否則,您將會增加第一次執行所需的時間,而且對使用者而言沒有任何額外的好處。 注意 如果無法避免使用未簽署的驅動程式,請將 UpdateInstalledDrivers=yes 參數與 OemPnPDriversPath= 及 DriverSigningPolicy=ignore 一起搭配使用,而不要使用 -pnp 命令列參數,以便能提供更完整的安裝。 |
| • | -quiet - 執行 Sysprep.exe 檔案,但是不要在螢幕上顯示確認訊息。如果您要將 Sysprep.exe 檔案自動化,此參數會很有用。例如,如果您計畫要在自動安裝程式完成之後立即執行 Sysprep.exe 檔案,請將 sysprep -quiet 命令新增到 Unattend.txt 檔案的 [GuiRunOnce] 區段中。 |
| • | -reboot - 強迫電腦自動重新開機,然後依照指定方式啟動「Windows 歡迎畫面」、迷你安裝程式或「原廠」模式。如果您想要稽核電腦並確認第一次執行時的運作正確,此參數會很有用。 |
| • | -reseal - 清除「事件檢視器」記錄,並準備將電腦交給客戶。在下一次重新啟動電腦時,依照設定會啟動「Windows 歡迎畫面」或迷你安裝程式。如果您執行 sysprep -factory 命令,必須將此項安裝的封裝作業當成預先安裝程序中的最後一個步驟。如果要執行這項操作,請執行 sysprep -reseal 命令,或按一下 [Sysprep] 對話方塊中的 [重新封裝] 按鈕。 |
Thursday, June 15, 2006
Wednesday, June 14, 2006
Wednesday, May 31, 2006
Source of Icons to help spruce up your custom entities
I like the silk ones from this series: http://www.famfamfam.com/lab/icons/
These are interesting. http://ndesign-studio.com/resources/pixel_icons.htm
Some interesting samples: http://www.icongalore.com/sales/purchase-and-download.php
Great Variety of them are also available here: http://www.iconarchive.com/
These are interesting. http://ndesign-studio.com/resources/pixel_icons.htm
Some interesting samples: http://www.icongalore.com/sales/purchase-and-download.php
Great Variety of them are also available here: http://www.iconarchive.com/
Monday, May 08, 2006
Google's services
Google Ad Sense https://www.google.com/adsense/
Google AdWords https://adwords.google.com/select
Google分析 http://google.com/analytics/
Google问答 http://answers.google.com/
GoogleBase http://base.google.com/
Google博客搜索 http://blogsearch.google.com/
Google书签 http://www.google.com/bookmarks/
Google图书搜索 http://books.google.com/
Google日历 http://google.com/calendar/
Google目录 http://catalogs.google.com/
Google代码 http://code.google.com/
Google桌面工具条 http://deskbar.google.com/
Google桌面 http://desktop.google.com/
Google网页目录 http://www.google.com/dirhp
Google地球 http://earth.google.com/
Google股票 http://finance.google.com/
Google网上论坛 http://groups.google.com/
Google图片搜索 http://images.google.com/
Google实验室 http://labs.google.com/
Google本地搜索 http://local.google.com/
Google地图 http://maps.google.com/
Google火星 http://www.google.com/mars/
Google移动 http://mobile.google.com/
Google月球 http://moon.google.com/
Google电影 http://www.google.com/movies
Google音乐 http://www.google.com/musicsearch
Google新闻 http://news.google.com/
Google软件包 http://pack.google.com/
Google网页创作 http://pages.google.com/
Google个性化主页 http://www.google.com/ig
Google个性化搜索 http://labs.google.com/personalized
Google阅读器 http://www.google.com/reader
Google学术搜索 http://scholar.google.com/
Google搜索历史 http://www.google.com/searchhistory
Google短信服务 http://www.google.com/sms/
Google提示 http://www.google.com/webhp?complete=1
GoogleTalk http://talk.google.com/
Google工具条 http://toolbar.google.com/
Google旅行计划者 http://www.google.com/transit
Google翻译工具 http://www.google.com/translate_t
Google视频 http://video.google.com
Google网页加速器 http://webaccelerator.google.com
Google Web API http://www.google.com/apis
Google网页搜索 http://www.google.com
Google AdWords https://adwords.google.com/select
Google分析 http://google.com/analytics/
Google问答 http://answers.google.com/
GoogleBase http://base.google.com/
Google博客搜索 http://blogsearch.google.com/
Google书签 http://www.google.com/bookmarks/
Google图书搜索 http://books.google.com/
Google日历 http://google.com/calendar/
Google目录 http://catalogs.google.com/
Google代码 http://code.google.com/
Google桌面工具条 http://deskbar.google.com/
Google桌面 http://desktop.google.com/
Google网页目录 http://www.google.com/dirhp
Google地球 http://earth.google.com/
Google股票 http://finance.google.com/
Google网上论坛 http://groups.google.com/
Google图片搜索 http://images.google.com/
Google实验室 http://labs.google.com/
Google本地搜索 http://local.google.com/
Google地图 http://maps.google.com/
Google火星 http://www.google.com/mars/
Google移动 http://mobile.google.com/
Google月球 http://moon.google.com/
Google电影 http://www.google.com/movies
Google音乐 http://www.google.com/musicsearch
Google新闻 http://news.google.com/
Google软件包 http://pack.google.com/
Google网页创作 http://pages.google.com/
Google个性化主页 http://www.google.com/ig
Google个性化搜索 http://labs.google.com/personalized
Google阅读器 http://www.google.com/reader
Google学术搜索 http://scholar.google.com/
Google搜索历史 http://www.google.com/searchhistory
Google短信服务 http://www.google.com/sms/
Google提示 http://www.google.com/webhp?complete=1
GoogleTalk http://talk.google.com/
Google工具条 http://toolbar.google.com/
Google旅行计划者 http://www.google.com/transit
Google翻译工具 http://www.google.com/translate_t
Google视频 http://video.google.com
Google网页加速器 http://webaccelerator.google.com
Google Web API http://www.google.com/apis
Google网页搜索 http://www.google.com
Saturday, April 01, 2006
Hong Kong Java User Group
Homepage: https://hkjug.dev.java.net/ News group: news://news.3home.net/3comp.programming.java
Friday, February 24, 2006
Masking Console System.in in 1.5 or b4
/* '\010' <== is the delete ASCII */
import java.io.*;
class EraserThread implements Runnable {
private boolean stop;
/**
*@param The prompt displayed to the user
*/
public EraserThread(String prompt) {
System.out.print(prompt);
}
/**
* Begin masking...display asterisks (*)
*/
public void run () {
stop = true;
while (stop) {
System.out.print("\010*");
try {
Thread.currentThread().sleep(1);
} catch(InterruptedException ie) {
ie.printStackTrace();
}
}
}
/**
* Instruct the thread to stop masking
*/
public void stopMasking() {
this.stop = false;
}
}
Wednesday, February 08, 2006
Sunday, February 05, 2006
Using Native Application to open file
This may be of interest to you. I have been looking around the web and found on a post that it is possible to open the real Acrobat viewer from Java, although it is O/S specific.
- For windows :
-
Runtime.getRuntime().exec(new String[]{ "rundll32", "url.dll,FileProtocolHandler", "filename.pdf" });
- For a mac:
-
Runtime.getRuntime().exec(new String[]{"open", "filename.pdf" });
Wednesday, February 01, 2006
JDK 1.4 Logging
The JDK defines 5 handlers:
* StreamHandler : sends messages to an OutputStream
* ConsoleHandler: sends messages to System.err
* FileHandler: sends messages to a file
* SocketHandler: sends messages to a TCP port
* MemoryHandler: buffers messages in memory
Sun has defined two formatters:
* SimpleFormatter: defines a simple message format containing among other things a timestamp
* XMLFormatter: a message in XML format
A logger with a ConsoleHandler with low priority level:
Logger logger1 = Logger.getLogger("abc.def");
logger1.setLevel(Level.FINEST);
ConsoleHandler c1 = new ConsoleHandler();
c1.setLevel(Level.FINEST);
logger1.addHandler(c1);
A logger with a FileHandler using a home made formatter:
Logger logger2 = Logger.getLogger("abc.def.ghi");
logger2.setLevel(Level.CONFIG);
FileHandler f2 = new FileHandler("%h/mylog.txt", 10000, 2, false);
f2.setFormatter(new MyFormatter());
f2.setLevel(Level.CONFIG);
logger2.addHandler(f2);
Formatters
Every handler must have a formatter defined, and the API has pre-defined a SimpleFormatter and an XMLFormatter which both extend the abstract class Formatter. You may define your own formatter if you like, and it's actually quite simple. You only have to implement the format method. This method receives an instance of the LogRecord class which contains several properties. format returns a string with the data that should be logged. In the next example I've made a formatter that returns the most important properties from the LogRecord:
import java.util.*;
import java.util.logging.*;
public class MyFormatter extends Formatter {
public String format(LogRecord record) {
return
"LogRecord info:\n" +
"Level: " + record.getLevel() + '\n' +
"LoggerName: " + record.getLoggerName() + '\n' +
"Message: " + record.getMessage() + '\n' +
" " + record.getMillis() + '\n' +
"Sequence Number: " + record.getSequenceNumber() + '\n' +
"SourceClassName: " + record.getSourceClassName() + '\n' +
"SourceMethodName: " + record.getSourceMethodName() + '\n' +
"ThreadID: " + record.getThreadID() + '\n';
}
}
* StreamHandler : sends messages to an OutputStream
* ConsoleHandler: sends messages to System.err
* FileHandler: sends messages to a file
* SocketHandler: sends messages to a TCP port
* MemoryHandler: buffers messages in memory
Sun has defined two formatters:
* SimpleFormatter: defines a simple message format containing among other things a timestamp
* XMLFormatter: a message in XML format
A logger with a ConsoleHandler with low priority level:
Logger logger1 = Logger.getLogger("abc.def");
logger1.setLevel(Level.FINEST);
ConsoleHandler c1 = new ConsoleHandler();
c1.setLevel(Level.FINEST);
logger1.addHandler(c1);
A logger with a FileHandler using a home made formatter:
Logger logger2 = Logger.getLogger("abc.def.ghi");
logger2.setLevel(Level.CONFIG);
FileHandler f2 = new FileHandler("%h/mylog.txt", 10000, 2, false);
f2.setFormatter(new MyFormatter());
f2.setLevel(Level.CONFIG);
logger2.addHandler(f2);
Formatters
Every handler must have a formatter defined, and the API has pre-defined a SimpleFormatter and an XMLFormatter which both extend the abstract class Formatter. You may define your own formatter if you like, and it's actually quite simple. You only have to implement the format method. This method receives an instance of the LogRecord class which contains several properties. format returns a string with the data that should be logged. In the next example I've made a formatter that returns the most important properties from the LogRecord:
import java.util.*;
import java.util.logging.*;
public class MyFormatter extends Formatter {
public String format(LogRecord record) {
return
"LogRecord info:\n" +
"Level: " + record.getLevel() + '\n' +
"LoggerName: " + record.getLoggerName() + '\n' +
"Message: " + record.getMessage() + '\n' +
" " + record.getMillis() + '\n' +
"Sequence Number: " + record.getSequenceNumber() + '\n' +
"SourceClassName: " + record.getSourceClassName() + '\n' +
"SourceMethodName: " + record.getSourceMethodName() + '\n' +
"ThreadID: " + record.getThreadID() + '\n';
}
}
Tuesday, January 31, 2006
Get Java Software Logo
For some reason, ur client might have no or old version of Java Virtual Machine installed.
To ensure they have correct JVM installed. Sun now introduced the "Get Java Logo"
After u signed up the http://logos.sun.com/spreadtheword. You will be able to enbed this logo on ur applet pages.
My registion provided me the follow code snippest:
Small Button
88 x 31
<a href="http://java.com/java/download/index.jsp?cid=jdp74840" target="_blank">
<img width="88" height="31" border="0"
style="margin: 8px;" alt="GetJava Download Button" title="GetJava"
src="http://java.com/en/img/everywhere/getjava_sm.gif?cid=jdp74840">
</a>
To ensure they have correct JVM installed. Sun now introduced the "Get Java Logo"
My registion provided me the follow code snippest:
Small Button
88 x 31
<a href="http://java.com/java/download/index.jsp?cid=jdp74840" target="_blank">
<img width="88" height="31" border="0"
style="margin: 8px;" alt="GetJava Download Button" title="GetJava"
src="http://java.com/en/img/everywhere/getjava_sm.gif?cid=jdp74840">
</a>
Medium Button

100 x 43
Large Button

170 x 100
100 x 43
<a href="http://java.com/java/download/index.jsp?cid=jdp74840" target="_blank">
<img width="100" height="43" border="0" style="margin: 8px;" alt="GetJava Download Button" title="GetJava" src="http://java.com/en/img/everywhere/getjava_med.gif?cid=jdp74840">
</a>
<img width="100" height="43" border="0" style="margin: 8px;" alt="GetJava Download Button" title="GetJava" src="http://java.com/en/img/everywhere/getjava_med.gif?cid=jdp74840">
</a>
Large Button
170 x 100
<a href="http://java.com/java/download/index.jsp?cid=jdp74840" target="_blank" >
<img width="170" height="100" border="0" style="margin: 8px;" alt="GetJava Download Button" title="GetJava" src="http://java.com/en/img/everywhere/getjava_lg.gif?cid=jdp74840">
</a>
<img width="170" height="100" border="0" style="margin: 8px;" alt="GetJava Download Button" title="GetJava" src="http://java.com/en/img/everywhere/getjava_lg.gif?cid=jdp74840">
</a>
For Your Users Who Don't Have Java Runtime Environment Yet
Content owners can dramatically improve their users' experience by embedding the GetJava button within their applet. Doing so means that, if users do not have the Java Runtime Environment (JRE) installed, they will see the GetJava button, rather than a grey box. Here's the sample applet code with the HTML snippet placed within the <applet> tags.
<applet code=applet.class width=425 height=400>
You have visited a page that contains an applet written with Java
technology. Please install the Java Runtime Environment before
refreshing this page. <br>
<a href="http://java.com/java/download/index.jsp?cid=jdp74840"><img width="88" height="31" border="0" style="margin: 8px;" alt="GetJava Download Button"
title="GetJava" src="http://java.com/en/img/everywhere/getjava_sm.gif?cid=jdp74840"></a>
<br>
</applet>
Content owners can dramatically improve their users' experience by embedding the GetJava button within their applet. Doing so means that, if users do not have the Java Runtime Environment (JRE) installed, they will see the GetJava button, rather than a grey box. Here's the sample applet code with the HTML snippet placed within the <applet> tags.
<applet code=applet.class width=425 height=400>
You have visited a page that contains an applet written with Java
technology. Please install the Java Runtime Environment before
refreshing this page. <br>
<a href="http://java.com/java/download/index.jsp?cid=jdp74840"><img width="88" height="31" border="0" style="margin: 8px;" alt="GetJava Download Button"
title="GetJava" src="http://java.com/en/img/everywhere/getjava_sm.gif?cid=jdp74840"></a>
<br>
</applet>
Subscribe to:
Posts (Atom)