Category: Java
-
[Java] Lucene Tutorial
Lucene is one of important search engines. It provides grate search performance and easy implementation.Here are some tutorials of Lucene :1. Create your own search engine (Traditional Chinese)2. Discover the Lucene full-text search library3. A Short Introduction to Lucene4. An Introduction to Apache Lucene for Full-Text Search If you have more interests in it. Just go to the…
-
Data Mining Libraries and Packages
I’ve found some data mining libraries (source codes) and packages. You can see the following resource list to download: Data Mining with SQL Server 2005 Apriori algorithm using C# and silverlight gSpan: Frequent Graph Mining Package gpuminer: Parallel Data Mining on Graphics Processors Dice- A random library for data mining Data Mining SDK Neural Network…
-
[程式設計] 影像搜尋與處理相關API
1. TinEye API TinEye 以圖找圖API簡介 TinEye API官網 說明:TinEye 的API目前看起來並沒有支援手機上使用版本。僅支援Python, Perl, Ruby, javascript, .NET等程式語言。 若要用他的手機版,得去使用他開發的PixID。(目前此版本還沒看到相關API) 2. Google Image API Google Image API說明:目前看起來只有提供輸入文字以搜尋相關圖片的API。 而Google Image Search 則提供了與TinEye一樣的圖片搜尋服務。不過相關API則是還沒支援,僅支援瀏覽器外掛版本。 Google 也提供了一些Java專用的圖形處理API: Image Java API ,專門替1MB以下圖片進行翻轉、刷淡、擷取縮圖等處理。 3. Google Picasa Web Uploader API 4. Imgur的Image Uploading API
-
[Java][雲端運算] 透過Hadoop Map/Reduce,將資料送到MySQL
哈哈!終於搞定了!卡了那麼久,竟然有一行根本不該加進去的。話不多說,先說明接下來的Code該做什麼?首先,我修改了Hadoop WordCount範例,主要是把HDFS中的input/input.txt,透過WordCount Map/Reduce後的資料,餵進MySQL資料庫。依照以下步驟:1. 建立資料庫: DROP TABLE IF EXISTS `WordCount`.`Counting`;CREATE TABLE `WordCount`.`Counting` (`name` char(48) default NULL,`count` int(11) default NULL) ENGINE=InnoDB DEFAULT CHARSET=latin1; 2. 將以下程式碼存成DBWordCount.java import java.io.IOException;import java.util.*;import org.apache.hadoop.fs.Path;import org.apache.hadoop.conf.*;import org.apache.hadoop.io.*;import org.apache.hadoop.io.Writable;import org.apache.hadoop.mapred.*;import org.apache.hadoop.util.*;import java.io.DataInput;import java.io.DataOutput;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import org.apache.hadoop.mapred.lib.db.DBWritable;import org.apache.hadoop.mapred.lib.IdentityReducer;import org.apache.hadoop.mapred.lib.db.DBConfiguration;import org.apache.hadoop.mapred.lib.db.DBOutputFormat;import org.apache.hadoop.mapred.lib.db.DBInputFormat;/*MySQL DB Schema:DROP TABLE IF EXISTS `WordCount`.`Counting`;CREATE TABLE `WordCount`.`Counting` (`name` char(48) default NULL,`count` int(11)…
-
[Java] 使用SAX處理XML檔案
使用SAX處理XML檔案http://www.javaworld.com.tw/confluence/pages/viewpage.action?pageId=492 介绍XML解析器SAX的文章(二)http://android.tgbus.com/Android/androidnews/200812/173490.shtml Parsing XML from the Net – Using the SAXParserhttp://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html
-
[Java] Java 呼叫C/C++ DLL
[Java]Java呼叫C/C++ DLLhttp://hatsukiakio.blogspot.com/2009/12/javajavacc-dll.html 有關Runtime.getRuntime().exec();http://www.programmer-club.com/ShowSameTitleN/java/12924.html JNI Call C++的問題http://www.javaworld.com.tw/jute/post/view?bid=5&id=240725 When Runtime.exec() won’thttp://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=3 Java Tip 17: Integrating Java with C++http://www.javaworld.com/javaworld/javatips/jw-javatip17.html?page=2