본문 바로가기
반응형

Development271

노드 다루기 출처 : http://egloos.zum.com/survival/v/464374 1. 노드 찾기 - 태그 이름으로 노드 찾기 : $("태그이름"), $("선택자") - 클래스 이름으로 노드 찾기 : $(".클래스이름") - ID로 노드 찾기 : $("선택자") - 속성으로 노드 찾기 : $("[속성이름=값]") - 찾은 요소 개수 구하기 : .size() , .length - 찾은 요소 n번째 접근하기 : .eq(index) , .each(function(index){}); - 찾은 요소에서 특정요소만을 걸러내기 : .filter("선택자") - 찾은 요소에서 특정 자식요소만 찾기 : .find("선택자") 2. 자식 노드 찾기 - 전체 자식 노드 찾기 -- 텍스트 노드 포함 전체 자식 노드 찾기 : $.. 2014. 12. 29.
Windows.Forms.ControlPaint - 테두리(Border) 그리기 링크 : http://msdn.microsoft.com/ko-kr/library/system.windows.forms.controlpaint(v=vs.110).aspx 테두리 그리는데 여러가지 방법이 있겠지만, ControlPaint 클래스의 DrawBorder 를 이용하면 간단하게 그릴 수도 있다. // Handle the Form's Paint event to draw a 3D three-dimensional // raised border just inside the border of the frame. private void Form1_Paint(object sender, PaintEventArgs e) { Rectangle borderRectangle = this.ClientRectangle; b.. 2014. 12. 23.
System.Drawing - 문자열 그리기 자간에 대해서 이미지에 문자열을 그리고자 하는데 맛이 가는 줄 알았다. DrawString을 이용하면 자간 조정이 안되고,TextRenderer를 이용하면 안티알리아싱이 안되고;; 워쩌란 말인가; 스택오버플로우에서도 아래와 같이 언급하고 있으나;; 안됨;; 흠.. [DllImport("gdi32.dll", CharSet=CharSet.Auto)] public static extern int SetTextCharacterExtra( IntPtr hdc, // DC handle int nCharExtra // extra-space value ); public void Draw(Graphics g) { IntPtr hdc = g.GetHdc(); SetTextCharacterExtra(hdc, 24); //set spaci.. 2014. 12. 23.
PHP 파일 권한문제 (PHP fopen() Error: failed to open stream: Permission denied) 가끔 자주 까먹을때가 있다;; 1. 파일권한sudo chmod 777 test.txt2. PHP 설정파일 수정 ( php.ini ) - 왠만하면 여기까지 할 필요는 없겠지만, url 단으로 파일 열게 할때적용할 수 있겠지만 왠만하면;; 보안적으로는 위험할듯;;allow_url_fopen = off should bee this allow_url_fopen = On And add this line below it: allow_url_include = off should bee this allow_url_include = on 2014. 12. 20.
반응형