This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** mecab-0.98/src/tagger.cpp 2009-04-19 00:03:04.000000000 +0900 | |
--- mecab-0.98.mod/src/tagger.cpp 2011-11-03 15:41:01.000000000 +0900 | |
*************** | |
*** 253,258 **** | |
--- 253,259 ---- | |
const Node *TaggerImpl::parseToNode(const char *str, size_t len) { | |
CHECK_RETURN(str, static_cast<Node *>(0)) << "NULL pointer is given"; | |
const Node *bosNode = viterbi_.analyze(str, len); | |
+ begin_ = str; | |
CHECK_RETURN(bosNode, static_cast<const Node *>(0)) << viterbi_.what(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn -Dappengine.sdk.version="1.5.0.1" -Dappengine.sdk.root="/sdks/appengine-sdk-java-\${appengine.sdk.version}" -Dexec.args="-cp \${appengine.sdk.root}/lib/appengine-tools-api.jar com.google.appengine.tools.KickStart --jvm_flags=-Xdebug --jvm_flags=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=\${jpda.address} com.google.appengine.tools.development.DevAppServerMain --sdk_root=\${appengine.sdk.root} --disable_update_check \${project.build.directory}/\${project.build.finalName}" exec:exec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wada3 | |
import com.google.apphosting.api.ApiProxy | |
import com.google.apphosting.api.ApiProxy._ | |
import com.google.appengine.api.NamespaceManager | |
import scala.collection.jcl.Conversions._ | |
import java.util.concurrent.Future | |
class LocalEnvironment extends Environment { | |
def getAppId = "scala-test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wada3 | |
import java.lang.Runnable | |
import java.awt.Font; | |
import javax.swing.{JFrame,JSplitPane,JTree,JPanel,JMenuBar,JMenu,JMenuItem,UIDefaults,UIManager} | |
import javax.swing.SwingUtilities._ | |
import javax.swing.JFrame._ | |
import com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel | |
import scala.collection.jcl._ | |
import scala.collection.jcl.Conversions._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DatastoreService s = DatastoreServiceFactory.getDatastoreService( | |
new DatastoreConfig() { | |
@Override | |
public ImplicitTransactionManagementPolicy getImplicitTransactionManagementPolicy() { | |
return ImplicitTransactionManagementPolicy.AUTO; | |
//OR | |
//return ImplicitTransactionManagementPolicy.NONE; | |
} | |
} | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//URLFetch async/sync request difference | |
void asyncURLFetch() { | |
Delegate<Environment> delegate = ApiProxy.getDelegate(); | |
Environment env = ApiProxy.getCurrentEnvironment(); | |
ApiProxy.ApiConfig config = new ApiProxy.ApiConfig(); | |
config.setDeadlineInSeconds(10.0); | |
String[] targetUrls = { | |
"http://www.google.co.jp/","http://www.yahoo.co.jp/","http://www.goo.ne.jp/", | |
"http://wdweaver.blogspot.com/","http://atnd.org" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void multiplesync() { | |
long start = allocateIds("multiplesynckind",100); | |
long t1 = System.currentTimeMillis(); | |
Delegate<Environment> delegate = ApiProxy.getDelegate(); | |
Environment env = ApiProxy.getCurrentEnvironment(); | |
String appId = ApiProxy.getCurrentEnvironment().getAppId(); | |
DatastorePb.PutRequest putRequest = new DatastorePb.PutRequest(); | |
for(long i=start;i<start+100;i++) { | |
//putRequest.setTransaction(null); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testlib; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.concurrent.Future; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testlib; | |
import java.io.IOException; | |
import java.util.concurrent.Future; | |
import java.util.logging.Logger; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |