<%@page import= "java.io.*, java.util.*, java.text.* " %>
<%
Date frDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse("2007-05-01 15:37:01");
Date toDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse("2007-05-01 16:27:01");
long diffMil = toDate.getTime() - frDate.getTime();
long diffSec = diffMil/1000;
long diffHour = diffSec/3600;
long  Min = (diffSec%3600) / 60;

                out.println ("diffMil==>" +  diffMil + "<br>");
                out.println ("diffSec==>" +  diffSec + "<br>");
                out.println ("diffHour==>" +  diffHour + "<br>");
                out.println ("Min==>" +  Min + "<br>");

String ret = diffHour + ":" + Min + " 남았습니다";
                out.println ("ret==>" +  ret + "<br>");

%>
~


원격 오라클 DB 에 접속이 무척 느렸다.
클라이언트 장비 /etc/hosts 파일에 클라이언트 호스트 이름을 등록해 주었더니 잘 된다
왠 조화일까?

http://www.javanuri.com/devforum/boardView.jsp?&menuId=10&Id=245115

JSON 에서는 특수문자를 인식 못한다. NL(NewLine), CR(CarridgeReturn) 값 등을 빼야 한다.

java 에서 정수 비교

java 2007. 4. 18. 19:48
Integer 형을 쓰면 == 로 비교하지 못한다. (객체를 비교하게 된다)
int 형을 쓰면 == 로 값을 바로 비교할 수 있다.

$A is not defined
return __method.apply(object, args.concat($A(arguments))

위와 같은 에러가 날때가 있다
(firebug 에서 prototype.js 를 쓸 때)

아래 처럼 패치하면 된다
     52 Function.prototype.bindAsEventListener = function(object) {
     53   var __method = this;
     54   return function(event) {
     55     if(typeof($A) == 'function'){ // <-- Added Firefox Fix
     56       return __method.call(object, event || window.event);
     57     }
     58   }
     59 }

출전은
http://www.skybyte.net/articles/prototype.js/


createElement

카테고리 없음 2007. 4. 17. 00:38
When you create an element you must append it to something inside the HTML document to give it scope (visibility). // this code does NOT work


newdiv = document.createElement("div"); // set div attributes newdiv.className = "x"; newdiv.id = "mine"; ... mydiv = document.getElementById("mine"); // does not find it

////////////////////////////

//this code DOES work

newdiv = document.createElement("div"); // set div attributes newdiv.className = "x"; newdiv.id = "mine";
document.body.appendChild(newdiv); // or some other node ... mydiv = document.getElementById("mine"); // finds it

http://www.zytrax.com/tech/dom/createelement.html)

table 안에서는 <div id="qlist_today" style="display:block">
와 같은 코드가 안되는 듯...
table 밖으로 감싸니까 잘된다.

C:\Documents and Settings\%USERNAME%\Application Data\VanDyke Software\SecureCRT\Config
(windows xp)

C:\Users\%USERNAME%\AppData\Roaming\Van Dyke Technologies\SecureCRT\Config
(windows7)

에 있다. 포맷하기 전에 백업을 받아 두면 유용할 듯



근 3 시간 동안 낑낑대다가 알아냈다.

virtualDubMod 1.5.10.2 를 받는다
(설치 파일이 아니다. 반드시 이 버전을 받는다)

1. 실행파일을 실행
2.  video 메뉴에서 direct 어쩌구 선택
3. avi 파일을 연다
4. streams 메뉴에서 list 어쩌구 선택
5. 그 목록에서 2번째를 선택한 뒤 오른쪽의 wav 로 복사 선택