금요일, 1월 27, 2006

c/c++ cgi library

http://www.qdecoder.org/

CGI를 만들때 사용할 수 있는 library가 있음.

목요일, 1월 26, 2006

javascript 객체와 이벤트

객체 사용 가능한 이벤트 핸들러
윈도우 onLoad, onUnload
본문(Document) onLoad, onUnload
하이퍼텍스트 링크 onClick, onMouseOver
폼 onSubmit
폼 / TEXT OnBlur, onChange, onFocus, onSelect
폼 / TEXTAREA OnBlur, onChange, onFocus, onSelect
폼 / SELECT OnBlur, onChange, onFocus
폼 / CHECKBOX onClick
폼 / RADIO BUTTON onClick
폼 / BUTTON onClick
폼 / RESET BUTTON onClick
폼 / SUBMIT BUTTON onClick

금요일, 1월 06, 2006

tomcat out over memory문제

* 자바에서 기본적으로 설정되어있는 메모리 사이즈를 늘려줌

$ cp strartup.sh start.sh

$ vi startup.sh

# 사용하는 메모리사이즈를 조절함. tomcat 버젼이 5.x이상인경우에만 사용

# tomcat버젼에 4.x이하인경우에는 TOMCAT_OPTS 환경변수를 사용함.

export CATALINA_OPTS="-Xms256m -Xmx512m"

umask 0
/usr/local/tomcat/bin/start.sh

$ startup.sh


* 참고


$ java -X
-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:<directories and zip/jar files separated by ;>
set search path for bootstrap classes and resources
-Xbootclasspath/a:<directories and zip/jar files separated by ;>
append to end of bootstrap class path
-Xbootclasspath/p:<directories and zip/jar files separated by ;>
prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xloggc:<file> log GC status to a file with time stamps
-Xbatch disable background compilation
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size

-Xss<size> set java thread stack size
-Xprof output cpu profiling data
-Xfuture enable strictest checks, anticipating future default
-Xrs reduce use of OS signals by Java/VM (see documentation)
-Xcheck:jni perform additional checks for JNI functions
-Xshare:off do not attempt to use shared class data
-Xshare:auto use shared class data if possible (default)
-Xshare:on require using shared class data, otherwise fail.


The -X options are non-standard and subject to change without notice.

목요일, 1월 05, 2006

IP를 가지고 국가찾아내기

접근하는 IP만 가지고 해당 국가 모두를 차단할 수 있겠군요.

요즘 중국에서 오는 IP들이 해킹이나 스팸메일 많이 보내는데 이 자료를 유용하게 사용할 수 있을것 같습니다.

http://www.ip2nation.com/


수요일, 1월 04, 2006

mstone간단요약


* Mstone performance tool
http://www.mozilla.org/projects/mstone/


* download
% cvs co mozilla/mstone
% cd mozilla/mstone
% gmake rpackage


* 수신자 발신자 아이디
conf/general.wld


#<-- 발신자 %ld없이 이름을 주면 한 사람만 수신됨 램덤하게 숫자를 붙치고 싶은경우에만 %ld를 사용
smtpMailFrom mailtestuser0@test.test
loginFormat mailtestuser%ld
#<-- 수신자 %ld없이 이름을 주면 한 사람만 수신됨 램덤하게 숫자를 붙치고 싶은경우에만 %ld를 사용
addressFormat mailtestuser%ld@test.test


# %ld에 사용되는 번호
numAddresses 100
# %ld에 사용되는 최초 번호
firstAddress 0


* 동시 발송 프로세스 조절
conf/smtp.wld


clientCount 20 # <-- 100~200 사이에 수로 실행함



* 동보발송 수 조절
conf/smtp1k.wld
conf/smtp5k.wld
conf/smtp17k.wld


# deliver each message to more than 1 address
numRecips 1 # <-- 동보전송 수를 조절함



* 실행
mstone smtp -t 시간(초)


* 실행않되는 경우
/var/tmp에 ./data에 있는 메일 파일들을 복사함.. en-1k.msg, en-5k.msg, en-17k.msg

Blogging Tool 비교

http://www.zlbl.com/wp/archives/2005/09/28/407

http://www.zlbl.com/wp/blogging-tool/ <-- 아주 잘 정리되어있습니다. 참고하세요

저도 결론은 ^^
Zoundry Blog Writer

* http://www.zoundry.com/
* 무료이면서 한글이 잘 지원되는 blogger tool


VB activeX test

PARAM NAME="_ExtentX" VALUE="8467">
PARAM NAME="_ExtentY" VALUE="6350">
PARAM NAME="test1" VALUE="aaa">


'bas

Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
test1 = PropBag.ReadProperty("test1", "default value")
End Sub

월요일, 1월 02, 2006

stdcall형태로 함수 정의하기 (dll)

VC++이나 VB에서 C형태로 사용하기 위해서 정의하는 방법입니다.
CPP의 네이밍규칙때문에 C에서 함수 호출이 않되면 정의 후 사용하시면 됩니다.

extern "C" int __declspec(dllexport) fnName()
{

return 0;
}