individuality, how do i confirm it?
if, if i am a person who lives in the earth alone, what am i?
i always find my self by others.
decomposing mind.
2008年8月30日土曜日
2008年8月29日金曜日
2008年8月27日水曜日
DNG SDK for mac
basically, DNG SDK mac is same as win ver, but you need to pay attention to build XMPToolkit.xcodeproj on dng_sdk_x_x/XMP-SDK/build/xcode. the xcodeproj generates libraries for DNG SDK.
anyway, see dng_validate. it's a start.
anyway, see dng_validate. it's a start.
how to build DNG project
we have few document of DNG SDK. you may say the spec is enough though, for me, not.
i think sample code is the most useful explanation to use the SDK. i ve tried to search them but no code have been found.
in DNG SDK directory, there is a directory called project. in it, two version of project file(win & mac) are. this is a log to compile win version.
1. install Microsoft Platform SDK
2. get XMP SDK from http://www.adobe.com/devnet/xmp/ and expat from http://sourceforge.net/projects/expat/
3.place XMP SDK on dng_sdk_x_x
4.copy expat library on dng_sdk_x_x/XMP-SDK/third-party/expat/
5.set project property of include path. at this time, Microsoft Platform SDK path
6.add a link to uuid.lib. this also is on Microsoft Platform SDK.
I guess you can compile DNG SDK project. later
i think sample code is the most useful explanation to use the SDK. i ve tried to search them but no code have been found.
in DNG SDK directory, there is a directory called project. in it, two version of project file(win & mac) are. this is a log to compile win version.
1. install Microsoft Platform SDK
2. get XMP SDK from http://www.adobe.com/devnet/xmp/ and expat from http://sourceforge.net/projects/expat/
3.place XMP SDK on dng_sdk_x_x
4.copy expat library on dng_sdk_x_x/XMP-SDK/third-party/expat/
5.set project property of include path. at this time, Microsoft Platform SDK path
6.add a link to uuid.lib. this also is on Microsoft Platform SDK.
I guess you can compile DNG SDK project. later
2008年8月13日水曜日
get out of here
some noise bugs me. get out of "here". a future? a life?
instinct and intention. these two elements combat. sometimes, the former wins and vice versa.
get the eyes, it's not mine. yours.
instinct and intention. these two elements combat. sometimes, the former wins and vice versa.
get the eyes, it's not mine. yours.
2008年8月12日火曜日
feeling, thinking
you never know what i m thinking. you never know what i m feeling.
what you look is what you think.
i don't want you a lot, but if possible, please feel inside of me.
the chaos is spreading around me. the chain reaction never stop.
someday, we may finish. i don't afraid of it. it's easy. accept it.
what you look is what you think.
i don't want you a lot, but if possible, please feel inside of me.
the chaos is spreading around me. the chain reaction never stop.
someday, we may finish. i don't afraid of it. it's easy. accept it.
OpenCV & Bayer data
i m trying to use bayer data with openCV. i m looking the document of openCV but i don't get it!!
2008年8月8日金曜日
compiling openCV code with g++
g++ `pkg-config --cflags opencv` `pkg-config --libs opencv` -o exe_name source.cpp
memo :-0
memo :-0
compiling openCV code with mingw
g++ %1.cpp -o %1.exe -I"C:\Program Files\OpenCV\cv\include" -I"C:\Program Files\OpenCV\cxcore\include" -I"C:\Program Files\OpenCV\otherlibs\highgui" "C:\Program Files\OpenCV\lib\cxcore.lib" "C:\Program Files\OpenCV\lib\cv.lib" "C:\Program Files\OpenCV\lib\highgui.lib"
wikipedia xml to Berkeley DB
I wanna get titles and link to wikipedia English pages from dump data of wikipedia.
This is the code.
This is the code.
#/usr/bin/env python
# -*- coding: utf-8 -*-
### globals
import sys
import re
from bsddb import db
from xml.sax import ContentHandler
from xml.sax import make_parser
class BaseHandler(ContentHandler):
def __init__(self, parser):
ContentHandler.__init__(self)
self.db = db.DB()
self.db.open("test_db", None, db.DB_HASH, db.DB_CREATE)
self.parser = parser
self.key_value_map = {}
def setHandlers(self, titleHandler, textHandler):
self.titleHandler = titleHandler
self.textHandler = textHandler
def startElement(self, name, attrs):
if name == u"title":
self.parser.setContentHandler(self.titleHandler)
elif name == u"text":
self.parser.setContentHandler(self.textHandler)
class TitleHandler(ContentHandler):
def __init__(self, baseHandler, parser):
ContentHandler.__init__(self)
self.baseHandler = baseHandler
self.parser = parser
def characters(self, char):
if char:
self.baseHandler.key_value_map["title"] = char.encode("utf-8")
def endElement(self, name):
if name == u"title":
#give handler
self.parser.setContentHandler(self.baseHandler)
class TextHandler(ContentHandler):
def __init__(self, baseHandler, parser):
ContentHandler.__init__(self)
self.baseHandler = baseHandler
self.parser = parser
def characters(self, char):
r = re.compile(u"\[\[en:(.*?)\]\]")
eng = r.findall(char)
if eng:
self.baseHandler.key_value_map["en"] = eng[0].encode("utf-8")
def endElement(self, name):
if name == u"text":
self.baseHandler.db.put(self.baseHandler.key_value_map["title"]
, self.baseHandler.key_value_map.get("en", ""))
print self.baseHandler.key_value_map
self.parser.setContentHandler(self.baseHandler)
#initialize the map
self.baseHandler.key_value_map = {}
if __name__ == "__main__":
parser = make_parser()
baseHandler = BaseHandler(parser)
titleHandler = TitleHandler(baseHandler, parser)
textHandler = TextHandler(baseHandler, parser)
baseHandler.setHandlers(titleHandler, textHandler)
xmlFile = open('jawiki-latest-pages-meta-current.xml', 'r')
parser.setContentHandler(baseHandler)
parser.parse(xmlFile)
2008年8月7日木曜日
Sequence of sample application of Steve Gehrman.
I got a great code of Steve Gehrman. He seems to be a developer of PathFinder.
This is about how to get a stack trace of cocoa application. Following is a sequence of function.
This is about how to get a stack trace of cocoa application. Following is a sequence of function.
MyDocument.m-MyDocument
+ (void)initialize;
NTExceptionHandlerDelegate.m
- (id)initWithEmail:(NSString*)emailAddress;
MyDocument.m-MyDocument
- (id)init
MyDocument.m-MyDocument
- (NSString *)windowNibName
MyDocument.m-MyDocument
- (void)windowControllerDidLoadNib:(NSWindowController *) aController
MyDocument.m-MyDocument
- (NSString*)displayName;
The application get started.
== Push "Exception 1" button.
MyDocument.m-MyDocument
- (void)exception1Action:(id)sender;
NTExceptionHandlerDelegate.m-NTExceptionHandlerDelegate
- (BOOL)exceptionHandler:(NSExceptionHandler *)sender shouldLogException:(NSException *)exception mask:(unsigned int)aMask;
NTExceptionHandlerDelegate.m-NTExceptionHandlerDelegate
- (BOOL)exceptionHandler:(NSExceptionHandler *)sender shouldHandleException:(NSException *)exception mask:(unsigned int)aMask;
NTExceptionHandlerDelegate.m-NTExceptionHandlerDelegate
- (BOOL)shouldDisplayException:(NSException *)exception;
NTExceptionPanelController.m-NTExceptionPanelController
- (id)initWithException:(NSException*)exception emailAddress:(NSString*)emailAddress;
NTExceptionPanelController.m-NTExceptionPanelController
- (void)awakeFromNib
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayCrashReport:(NSException*)exception;
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (NSString*)applicationName;
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTUtilities.m-NTUtilities
+ (NSString*)applicationVersion;
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTUtilities.m-NTUtilities
+ (NSString*)OSVersion;
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController (Private)
- (NSNumber*)applicationProcessID;
NTTaskController.m-NTTaskController
- (id)initWithDelegate:(id)delegate;
NTTaskController.m-NTTaskController
- (void)runTask:(BOOL)sync toolPath:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args
== A report screen appears
NTTaskController.m-NTTaskController
- (void) taskOutputAvailable:(NSNotification*)note
NTTaskController.m-NTTaskController (Private)
- (BOOL)processOutput:(NSData*)output;
NTTaskController.m-NTTaskController
- (void) taskOutputAvailable:(NSNotification*)note
NTTaskController.m-NTTaskController (Private)
- (BOOL)processOutput:(NSData*)output;
NTTaskController.m-NTTaskController
- (void)taskDidTerminate:(NSNotification*)note
NTTaskController.m-NTTaskController
- (void) taskOutputAvailable:(NSNotification*)note
NTTaskController.m-NTTaskController (Private)
- (BOOL)processOutput:(NSData*)output;
NTTaskController.m-NTTaskController
- (void) taskOutputAvailable:(NSNotification*)note
NTTaskController.m-NTTaskController (Private)
- (BOOL)processOutput:(NSData*)output;
NTTaskController.m-NTTaskController (Private)
- (void)sendOutputToDelegate;
NTExceptionPanelController.m-NTExceptionPanelController
- (void)delegate_handleTaskOutput:(NSString*)output
NTExceptionPanelController.m- NTExceptionPanelController (Private)
- (void)displayText:(NSString*)text
NTExceptionPanelController.m-NTExceptionPanelController
- (void)delegate_handleTaskFinished:(NSNumber*)result;
NTExceptionPanelController.m- NTExceptionPanelController (Private)
- (void)disposeTask;
NTTaskController.m-NTTaskController
- (void)taskErrorsAvailable:(NSNotification*)note
NTTaskController.m-NTTaskController
- (void)processOutputAfterDelay:(id)object;
NTTaskController.m-NTTaskController (Private)
- (void)sendOutputToDelegate;
NTTaskController.m-NTTaskController
- (void)dealloc;
NTTaskController.m-NTTaskController
- (void)stopTask;
Weakness
I feel a weakness of my mind. I always try to see myself from the third person, but, i can't.
Struggle, struggle. This situation makes me stronger. No pain, no gain. I know.
Please, please, make her and I relieved.
Flowing leaf, like water. The stream is karma in me.
Struggle, struggle. This situation makes me stronger. No pain, no gain. I know.
Please, please, make her and I relieved.
Flowing leaf, like water. The stream is karma in me.
Crush Report
I am researching a way to read a crush report of mac. This is a log.
This web site looks good, it is written in Japanese though.
My sample crush report is like below....
Process: mixi station [154]
Path: /Applications/mixi station.app/Contents/MacOS/mixi station
Identifier: jp.glucose.mmm
Version: ??? (20061221)
Code Type: X86 (Native)
Parent Process: launchd [82]
Date/Time: 2008-07-24 16:34:57.427 +0900
OS Version: Mac OS X 10.5.4 (9E17)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000e4c532d3
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x95ad46e8 objc_msgSend + 24
1 com.apple.CoreFoundation 0x96f216c4 _CFArrayReplaceValues + 2628
2 com.apple.Foundation 0x946b49a3 -[NSCFArray insertObject:atIndex:] + 131
3 com.apple.Foundation 0x946b4914 -[NSCFArray addObject:] + 68
4 jp.glucose.mmm 0x00005f6b 0x1000 + 20331
5 jp.glucose.mmm 0x000066d5 0x1000 + 22229
6 com.apple.AppKit 0x926ec441 -[NSTableView numberOfRows] + 175
7 com.apple.AppKit 0x926d4d5a -[NSTableView _verifySelectionIsOK] + 95
8 com.apple.AppKit 0x926d4c17 -[NSTableView _tileAndRedisplayAll] + 263
9 com.apple.AppKit 0x926d48c8 -[NSTableView setDataSource:] + 290
10 com.apple.AppKit 0x925e7c0c -[NSNibOutletConnector establishConnection] + 396
11 com.apple.AppKit 0x925c7aa4 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1211
12 com.apple.AppKit 0x925bde12 loadNib + 264
13 com.apple.AppKit 0x925bd774 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 946
14 com.apple.AppKit 0x925bd3b7 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 171
15 com.apple.AppKit 0x925bd2f5 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 391
16 jp.glucose.mmm 0x0000650e 0x1000 + 21774
17 jp.glucose.mmm 0x00006409 0x1000 + 21513
18 com.apple.AppKit 0x926c8c23 -[NSApplication sendAction:to:from:] + 112
19 com.apple.AppKit 0x92777660 -[NSMenu performActionForItemAtIndex:] + 493
20 com.apple.AppKit 0x92777365 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 220
21 com.apple.AppKit 0x92754242 AppKitMenuEventHandler + 6608
22 com.apple.HIToolbox 0x9406a763 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
23 com.apple.HIToolbox 0x94069b9d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
24 com.apple.HIToolbox 0x940864ee SendEventToEventTarget + 52
25 com.apple.HIToolbox 0x940babc1 SendHICommandEvent(unsigned long, HICommand const*, unsigned long, unsigned long, un.....
Important information is exceptions and crushed thread information. i think there are ways to know the function name by the address. I'm finding it now. later
This web site looks good, it is written in Japanese though.
My sample crush report is like below....
Process: mixi station [154]
Path: /Applications/mixi station.app/Contents/MacOS/mixi station
Identifier: jp.glucose.mmm
Version: ??? (20061221)
Code Type: X86 (Native)
Parent Process: launchd [82]
Date/Time: 2008-07-24 16:34:57.427 +0900
OS Version: Mac OS X 10.5.4 (9E17)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000e4c532d3
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x95ad46e8 objc_msgSend + 24
1 com.apple.CoreFoundation 0x96f216c4 _CFArrayReplaceValues + 2628
2 com.apple.Foundation 0x946b49a3 -[NSCFArray insertObject:atIndex:] + 131
3 com.apple.Foundation 0x946b4914 -[NSCFArray addObject:] + 68
4 jp.glucose.mmm 0x00005f6b 0x1000 + 20331
5 jp.glucose.mmm 0x000066d5 0x1000 + 22229
6 com.apple.AppKit 0x926ec441 -[NSTableView numberOfRows] + 175
7 com.apple.AppKit 0x926d4d5a -[NSTableView _verifySelectionIsOK] + 95
8 com.apple.AppKit 0x926d4c17 -[NSTableView _tileAndRedisplayAll] + 263
9 com.apple.AppKit 0x926d48c8 -[NSTableView setDataSource:] + 290
10 com.apple.AppKit 0x925e7c0c -[NSNibOutletConnector establishConnection] + 396
11 com.apple.AppKit 0x925c7aa4 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1211
12 com.apple.AppKit 0x925bde12 loadNib + 264
13 com.apple.AppKit 0x925bd774 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 946
14 com.apple.AppKit 0x925bd3b7 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 171
15 com.apple.AppKit 0x925bd2f5 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 391
16 jp.glucose.mmm 0x0000650e 0x1000 + 21774
17 jp.glucose.mmm 0x00006409 0x1000 + 21513
18 com.apple.AppKit 0x926c8c23 -[NSApplication sendAction:to:from:] + 112
19 com.apple.AppKit 0x92777660 -[NSMenu performActionForItemAtIndex:] + 493
20 com.apple.AppKit 0x92777365 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 220
21 com.apple.AppKit 0x92754242 AppKitMenuEventHandler + 6608
22 com.apple.HIToolbox 0x9406a763 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
23 com.apple.HIToolbox 0x94069b9d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
24 com.apple.HIToolbox 0x940864ee SendEventToEventTarget + 52
25 com.apple.HIToolbox 0x940babc1 SendHICommandEvent(unsigned long, HICommand const*, unsigned long, unsigned long, un.....
Important information is exceptions and crushed thread information. i think there are ways to know the function name by the address. I'm finding it now. later
登録:
投稿 (Atom)