Skip to content

Instantly share code, notes, and snippets.

View hideki's full-sized avatar

Hideki Itakura hideki

View GitHub Profile
apply plugin: 'c'
apply plugin: 'java'
apply plugin: 'maven'
version = System.getenv("MAVEN_UPLOAD_VERSION")
model {
platforms {
osx_x86 {
architecture "x86"
11Motorola Nexus 6
------------------------
Insertion (Test1_CreateDocs)
100 documents
100 characters (200 bytes) documents
CreateDocsPerformance,206,100,100
@hideki
hideki / gist:35b4355c02373c3891da
Created September 16, 2015 04:42
Crash log of testPusherBatching() - Test failed to run to completion. Reason: 'Instrumentation run failed due to 'Native crash''. Check device logcat for details
09-16 00:30:24.731 1127-3004/com.couchbase.lite.test V/Sync﹕ com.couchbase.lite.support.RemoteRequest@b2109810: RemoteRequest finally block. url: http://10.0.2.2:4984/db/_bulk_docs
09-16 00:30:24.731 1127-3004/com.couchbase.lite.test V/Sync﹕ com.couchbase.lite.support.RemoteRequest@b2109810: RemoteRequest calling respondWithResult. url: http://10.0.2.2:4984/db/_bulk_docs, error: null
09-16 00:30:24.761 1127-3006/com.couchbase.lite.test V/Sync﹕ com.couchbase.lite.support.RemoteRequest@b22d3ff0: RemoteRequest calling httpClient.execute, url: http://10.0.2.2:4984/db/_bulk_docs
09-16 00:30:24.761 1127-3006/com.couchbase.lite.test V/Sync﹕ com.couchbase.lite.support.RemoteRequest@b22d3ff0: RemoteRequest calling httpClient.execute, client: com.couchbase.lite.replicator.CustomizableMockHttpClient@b20bc918 url: http://10.0.2.2:4984/db/_bulk_docs
09-16 00:30:24.761 1127-3006/com.couchbase.lite.test D/Database﹕ execute() called with request: /db/_bulk_docs
09-16 00:30:24.771 1127-3006/com.couchbase.
@hideki
hideki / gist:57779a687b7f933527e7
Created September 16, 2015 23:16
another crash log
V/Sync ( 3391): com.couchbase.lite.support.RemoteRequest@b21d8e60: RemoteRequest run() called, url: http://10.0.2.2:4984/db/_local/5bd03988e339650be13835c9af7e47eb88cb5f87
V/Sync ( 3391): com.couchbase.lite.support.RemoteRequest@b21d8e60: RemoteRequest calling httpClient.execute, url: http://10.0.2.2:4984/db/_local/5bd03988e339650be13835c9af7e47eb88cb5f87
V/Sync ( 3391): com.couchbase.lite.support.RemoteRequest@b21d8e60: RemoteRequest calling httpClient.execute, client: com.couchbase.lite.replicator.CustomizableMockHttpClient@b1fd84b8 url: http://10.0.2.2:4984/db/_local/5bd03988e339650be13835c9af7e47eb88cb5f87
D/Database( 3391): execute() called with request: /db/_local/5bd03988e339650be13835c9af7e47eb88cb5f87
V/Sync ( 3391): com.couchbase.lite.support.RemoteRequest@b21d8e60: RemoteRequest called httpClient.execute, url: http://10.0.2.2:4984/db/_local/5bd03988e339650be13835c9af7e47eb88cb5f87
D/Sync ( 3391): com.couchbase.lite.support.RemoteRequestRetry$1@b2045df8: RemoteRequestRetry inner reque
@hideki
hideki / gist:165bc7b45298fd551058
Created September 18, 2015 01:47
Native Crash with stack trace
09-17 21:46:10.647 1053-1322/? E/CBForest﹕ FORESTDB ERROR -39
09-17 21:46:10.647 1053-1322/? I/app_name﹕ # 0: 0xa7eaf7c4 _ZN8forestdb16captureBacktraceEPPvj
# 1: 0xa7eafac4 _ZN8forestdb17backtraceToLogcatEv
# 2: 0xa7eafc74
# 3: 0xa7eafd60 _ZN8forestdb4_LogENS_8logLevelEPKcz
# 4: 0xa7ec0efc
# 5: 0xa7ec13fc
# 6: 0xa7ec1294 _ZNK8forestdb8KeyStore4readERNS_8DocumentENS0_14contentOptionsE
# 7: 0xa7ecc5dc _ZN8forestdb17VersionedDocument4readEv
# 8: 0xa7ecc520 _ZN8forestdb17VersionedDocumentC2ENS_8KeyStoreENS_5sliceE
@hideki
hideki / gist:3cfa140bd939987ee653
Created September 18, 2015 08:23
another crash log
09-18 04:13:44.124 1051-2000/com.couchbase.lite.test E/CBForest﹕ FORESTDB ERROR -39
09-18 04:13:44.154 1051-1999/com.couchbase.lite.test D/Sync﹕ [sendAsyncRequest()] POST => http://10.0.2.2:4984/db/_bulk_docs
09-18 04:13:44.174 1051-2004/com.couchbase.lite.test D/Database﹕ execute() called with request: /db/_bulk_docs
09-18 04:13:44.174 1051-2004/com.couchbase.lite.test D/Database﹕ fakeBulkDocs() called
09-18 04:13:44.184 1051-2004/com.couchbase.lite.test D/Database﹕ id: e7aaa2bd-9fe5-465d-855f-83f9019850a3
09-18 04:13:44.184 1051-2004/com.couchbase.lite.test D/Database﹕ rev: 1-5ac9ca53bf7dc9e04ac7e50bbf86ffe5
09-18 04:13:44.184 1051-2004/com.couchbase.lite.test D/Database﹕ id: a063e75d-9e38-4466-a35b-41c69eb6d544
09-18 04:13:44.184 1051-2004/com.couchbase.lite.test D/Database﹕ rev: 1-1a83f7f005deef1187449ade7ae5a2f5
09-18 04:13:44.184 1051-2004/com.couchbase.lite.test D/Database﹕ id: 11bb79b6-5c4e-453f-8d4b-32bea4ad9184
09-18 04:13:44.184 1051-2004/com.couchbase.lite.test D/Data
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import MeCab
m = MeCab.Tagger("-Ochasen")
print m.parse("今日は初めてGrouponでクーポンを買った。")
JAVA_BASE=/System/Library/Frameworks/JavaVM.framework/Versions/1.6
JAVA_HOME=$(JAVA_BASE)/Home
TARGET=MeCab
JAVAC=$(JAVA_HOME)/bin/javac -encoding utf-8
JAVA=$(JAVA_HOME)/bin/java -Dfile.encoding=utf-8
JAR=$(JAVA_HOME)/bin/jar
CXX=g++
INCLUDE=$(JAVA_BASE)/Headers
PACKAGE=org/chasen/mecab
#!/usr/bin/env python
# -*- coding: utf-8 -*-
str = "FourscoreandsevenyearsagoourfaathersbroughtforthonthiscontainentanewnationconceivedinzLibertyanddedicatedtothepropositionthatallmenarecreatedequalNowweareengagedinagreahtcivilwartestingwhetherthatnaptionoranynartionsoconceivedandsodedicatedcanlongendureWeareqmetonagreatbattlefiemldoftzhatwarWehavecometodedicpateaportionofthatfieldasafinalrestingplaceforthosewhoheregavetheirlivesthatthatnationmightliveItisaltogetherfangandproperthatweshoulddothisButinalargersensewecannotdedicatewecannotconsecratewecannothallowthisgroundThebravelmenlivinganddeadwhostruggledherehaveconsecrateditfaraboveourpoorponwertoaddordetractTgheworldadswfilllittlenotlenorlongrememberwhatwesayherebutitcanneverforgetwhattheydidhereItisforusthelivingrathertobededicatedheretotheulnfinishedworkwhichtheywhofoughtherehavethusfarsonoblyadvancedItisratherforustobeherededicatedtothegreattdafskremainingbeforeusthatfromthesehonoreddeadwetakeincreaseddevotiontothatcauseforwhichtheygavethelastpfullmea
@hideki
hideki / test-http-curl-chunk-problem.js
Created January 24, 2011 02:29
Customized nodejs test file: Use md5sum instead of shasum
We couldn’t find that file to show.