본문 바로가기

전체 글154

javascript clone object - deep copy 자바 스크립트 object를 전달한다는 의미는 value를 전달하는 것이 아닌 reference를 전달한다는 의미이다. child window에서 opener로 넘기고 해당 child window를 닫아 버리면 opener에서는 해당 객체의 reference를 잃어 버려서 에러가 생기기도 한다. 받자마자 반드시 clone 객체로 만들어서 opener window에서 객체를 가지고 있어야만 child window를 닫아도 이상이 없다. //object의 보다 정확한 타입을 얻을 때 사용. function getType(obj) { var objectName = Object.prototype.toString.call(obj); var match = /\[object (\w+)\]/.exec(objectNam.. 2014. 1. 14.
window.open post 방식으로 띄우기 function windowOpenPost(url, name, option){var urlArr = url.split('?');post_win(name, urlArr[0],urlArr[1]||'' , option);} function post_win(name, url, parm, opt) {var temp_win = window.open('', name, opt);post_goto(url, parm, name);}function post_goto(url, parm, target) {var f = document.createElement('form'); var objs, value;var params = parm.split("&");for(var i=0;i 2013. 12. 29.
ConcurrentHashMap 설명 링크 http://www.ilhwan.com/jav-concurrenthashmap%EC%97%90-%EA%B4%80%ED%95%98%EC%97%AC/ 2015-11-04 업데이트 ConcurrentHashMap 을 사용해야 하는 이유는 동기화 문제이다. 여러 인스턴스에서 하나의 공유된 객체를 사용할 때 스레드나 프로세스간에 우선순위 문제로 데이타 무결성을 훼손 할 수 있다. 그 때 사용해야 할 것이 thread safety 객체들이다. 앞에 Con- 이 prefix로 붙는 자바 객체는 동기화를 지원한다는 의미이다. 스프링 내부 소스를 열어본적이 있는데, Service들이 Injection 되어서 들어가 있는 Map 이 ConcurrentHashMap 였다. 좀더 자세한 정보가 위 링크에 있었으나 더 이상 존.. 2013. 11. 6.
무료로 제공되는 프로그래밍 서적 free programming pdf 무료로 제공되는 프로그래밍 책들이다. 아래 링크는 바로 자바로 간다. 다들 영어 책이라서... 흠... Free Programming books. blow link for java. https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md#java JavaArtificial Intelligence - Foundation of Computational AgentsData Structures and Algorithms with Object-Oriented Design Patterns in JavaCategory wise tutorials - J2EEThink Java: How to Think Like a Comput.. 2013. 11. 6.