본문 바로가기

프로그램 경험

Virtual-Key Codes Virtual-Key CodesApplies to: desktop apps onlyThe following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system. The codes are listed in numeric order.Constant/valueDescriptionVK_LBUTTON0x01Left mouse buttonVK_RBUTTON0x02Right mouse buttonVK_CANCEL0x03Control-break processingVK_MBUTTON0x04Middle mouse button ..
[Rails] 개발 모드 변경하기 레드마인은 레일즈로 만들어져 있다.레드마인을 사용하는데 겐트 차트의 디자인을 조금 수정하고 페이지를 보니 수정이 반영되질 않는다.웹서버를 재시작 해야만 반영된다. 망할... 개발 모드로 변경하는 방법을 모르겠다..ㅜㅜ -----------------------------------------------찾았다!!![Rails App Path]\config\environment.rb 를 수정 하면 된다. # Load the rails applicationrequire File.expand_path('../application', __FILE__) # Make sure there's no plugin in vendor/plugin before startingvendor_plugins_dir = File.joi..
팝업에서 부모창 스크립트 호출 하기 /*     var win = window.dialogArguments || opener || parent || top;    win.reload_form(); //부모창에 있는 함수    self.close();    /* ]]> */
[PHP] 한달이 몇일 까지인지 알아내기 echo date("t", mktime (0,0,0,4,1,2012));  // return 30//date("t", mktime (0,0,0,월,1,년));
[JS] 문자열 JSON 타입을 JSON으로 변환 AJAX를 통해 JSON을 가져 왔는데 이걸 JS에서 그냥 JSON처럼 사용할 수가 없다. 그저 문자열에 불과 하기 때문이다. 그래서 이걸 JSON으로 변환해서 사용해야 한다. 받은 파일을 링크 하고 아래와 같이 사용한다.
[PHP] UTF-8 을 EUC-KR로 변환 하기 iconv 함수 쓸때 //IGNORE 를 안붙여주면 내용이 짤리는 경우가 있다. 꼭 넣어주자.
[PHP] 파일 UTF-8로 저장하기 출처 : http://www.codingforums.com/showthread.php?t=129270
[PHP] 파일 다운로드 $justfilename = 'abc.pdf';       $filefullpath = '/home/you/file/path/'. justfilename;header('Content-type: application/x-unknown');header("Content-Disposition: attachment; filename=\"".$justfilename."\";");readfile($filefullpath);