블로그 이미지
프로그램을 가장 훌륭하게 작성하는 방법은 상태가 변경되는 오브젝트들과 수학적인 값을 나타내는 오브젝트들의 조합으로 표현하는 것이다. -Kent Beck 초초초보

카테고리

Programming (184)
ASP.NET (9)
Silverlight (2)
Javascript (20)
C# (8)
java (25)
SQL (14)
Oracle (3)
MyBatis (3)
기타 (52)
개발방법론 (1)
trouble shooting (2)
Linux (5)
스칼라 (5)
html (2)
grails & gradle (3)
Spring (2)
rabbitmq (1)
(3)
spark (0)
docker (3)
Total
Today
Yesterday

달력

« » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

공지사항

최근에 올라온 글




...
 <tr id="tr<%# Container.ItemIndex +1 %>">
..



----------------------------------  1분 예제 ------------------------------------------

-------------------------------------------------------------------------------------
Posted by 초초초보
, |
1. STUFF
구문
STUFF ( character_expression , start , length ,character_expression )
character_expression : Base 문자데이터 식 
start : 시작 위치(1부터 시작)
length : 삭제할 길이 (character_expression 에서 삭제함)
character_expression : 삽입할 문자 데이터식

SELECT STUFF('abcdef', 2, 3, '123456');
abcdef 문자에서 2번째 부터 시작하여 3 길이만큼 글자를 삭제
-> bcd 삭제 후 aef 글자에 123456 삽입 함 위치는 start(2) 위치
결과값 : a123456ef
 
2. ISNULL
구문
ISNULL ( check_expression , replacement_value )
check_expression : Null 인지 Check 할 모든 식 
replacement_value : Null 일 경우 대입할 값

SELECT ISNULL('B', 'A')
결과값 : B
SELECT ISNULL(NULL, 'A')
결과값 :A
3. coalesce
구문
COALESCE ( expression [ ,...n ] ) 
여러개의 식 중 Null 이 아닌 값을 출력(리턴)
 
SELECT COALESCE ( NULL,NULL,NULL,'A') 
 결과값 :A
--> ISNULL 과의 차이는 ISNULL 은 식이 2개로 고정이지만,
COALESCE 은 2개 이상의 식에 대해서 NULL 체크 가능
 
 
 
 
 
 
 
 
 
Posted by 초초초보
, |

Telnet localhost 25

helo me

mail from:메일주소

rcpt to:메일주소
Data

Subject:This is Test Mail

kaoni.com

.


결과창
-----------------------------------------------------------------------------------------------
220 ksh.love1kkk.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready
at  Fri, 26 Jun 2009 13:29:38 +0900 -- 텔넷에 접속
helo me - 서버의 응답을 테스트
250 ksh.love1kkk.com Hello [127.0.0.1]
mail from:love1kkk@naver.com - 누가 보내는가?
250 2.1.0 love1kkk@naver.com....Sender OK

rcpt to:love1kkk@paran.com
500 5.3.3 Unrecognized command
rcpt to:love1kkk@paran.com -- 누구에게 보내는가?
250 2.1.5 love1kkk@paran.com
Data
500 5.3.3 Unrecognized command
Data
354 Start mail input; end with <CRLF>.<CRLF>
Subject:제목 - 제목 쓰고 엔터 한번 더 입력

내용입니다.

. -- 다쓰고 끝낼 때 .(점)
250 2.6.0 <KSHwzZBKLdVphNOQj2h00000001@ksh.love1kkk.com> Queued mail for deliver
y

Posted by 초초초보
, |

-- 파일 첨부 --
Posted by 초초초보
, |


서버에 SSL 적용하기
문서로 업로드 되어 있음


Posted by 초초초보
, |

IE8에서의 디버깅

기타 / 2009. 5. 28. 16:10

visual studio 로 디버깅 할때 IE8 에서는
안될 때가 있다.

실행 -> regedit 로  레지스트리편집기 창을 연다.
 HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main 

이동 후
TabProcGrowth 라는 이름의  DWORD(문자열 값)생성 한다.
값은 0 으로 셋팅 함.

디버깅 ㄱㄱ싱

Posted by 초초초보
, |


1. 제어판으로 이동 후 프로그램 클릭





2. 프로그램 및 기능 클릭






3. Windows 기능 사용/사용 안함 클릭








4. Telnet 체크 후 확인
서버는 서버 체크 후 확인
Posted by 초초초보
, |

폴더 감시 후 해당 폴더에서 변경(생성, 삭제, 이동 등)이 일어 났을 경우

해당 이벤트를 발생시킴


--  예제 소스  --
 static void Main(string[] args)
        {
            System.IO.FileSystemWatcher fsw = new System.IO.FileSystemWatcher();
            fsw.Path = "C:/test";
            fsw.EnableRaisingEvents = true;

            fsw.Created += new  System.IO.FileSystemEventHandler(fsw_Created);

            Console.ReadKey();
        }

        static void fsw_Created(object sender, System.IO.FileSystemEventArgs e)
        {
            Console.WriteLine("파일 경로 : " + e.FullPath);
            Console.WriteLine("만든 파일 : " + e.Name);
        }

Posted by 초초초보
, |

확장자와 mime 표

기타 / 2009. 5. 18. 11:21

ID EXT MIME_TYPE
1   application/octet-stream
2 abs audio/x-mpeg
3 ai application/postscript
4 aif audio/x-aiff
5 aifc audio/x-aiff
6 aiff audio/x-aiff
7 aim application/x-aim
8 art image/x-jg
9 asf video/x-ms-asf
10 asx video/x-ms-asf
11 au audio/basic
12 avi video/x-msvideo
13 avx video/x-rad-screenplay
14 bcpio application/x-bcpio
15 bin application/octet-stream
16 bmp image/bmp
17 body text/html
18 cdf application/x-cdf
19 cer application/x-x509-ca-cert
20 class application/java
21 cpio application/x-cpio
22 cpio audio/x-cpio
23 csh application/x-csh
24 css text/css
25 dib image/bmp
26 doc application/msword
27 dtd text/plain
28 dv video/x-dv
29 dvi application/x-dvi
30 eps application/postscript
31 etx text/x-setext
32 exe application/octet-stream
33 gif image/gif
34 gtar application/x-gtar
35 gz application/x-gzip
36 hdf application/x-hdf
37 hqx application/mac-binhex40
38 htc text/x-component
39 htm text/html
40 html text/html
41 hqx application/mac-binhex40
42 ief image/ief
43 jad text/vnd.sun.j2me.app-descriptor
44 jar application/java-archive
45 java text/plain
46 jnlp application/x-java-jnlp-file
47 jpe image/jpeg
48 jpeg image/jpeg
49 jpg image/jpeg
50 js text/javascript
51 jsf text/plain
52 jspf text/plain
53 kar audio/x-midi
54 latex application/x-latex
55 m3u audio/x-mpegurl
56 mac image/x-macpaint
57 man application/x-troff-man
58 me application/x-troff-me
59 mid audio/x-midi
60 midi audio/x-midi
61 mif application/x-mif
62 mov video/quicktime
63 movie video/x-sgi-movie
64 mp1 audio/x-mpeg
65 mp2 audio/x-mpeg
66 mp3 audio/x-mpeg
67 mpa audio/x-mpeg
68 mpe video/mpeg
69 mpeg video/mpeg
70 mpega audio/x-mpeg
71 mpg video/mpeg
72 mpv2 video/mpeg2
73 ms application/x-wais-source
74 nc application/x-netcdf
75 oda application/oda
76 pbm image/x-portable-bitmap
77 pct image/pict
78 pdf application/pdf
79 pgm image/x-portable-graymap
80 pic image/pict
81 pict image/pict
82 pls audio/x-scpls
83 png image/png
84 pnm image/x-portable-anymap
85 pnt image/x-macpaint
86 ppm image/x-portable-pixmap
87 ps application/postscript
88 psd image/x-photoshop
89 qt video/quicktime
90 qti image/x-quicktime
91 qtif image/x-quicktime
92 ras image/x-cmu-raster
93 rgb image/x-rgb
94 rm application/vnd.rn-realmedia
95 roff application/x-troff
96 rtf application/rtf
97 rtx text/richtext
98 sh application/x-sh
99 shar ication/x-shar
100 smf audio/x-midi
101 snd audio/basic
102 src application/x-wais-source
103 sv4cpio application/x-sv4cpio
104 sv4crc application/x-sv4crc
105 swf application/x-shockwave-flash
106 t application/x-troff
107 tar application/x-tar
108 tcl application/x-tcl
109 tex application/x-tex
110 texi application/x-texinfo
111 texinfo application/x-texinfo
112 tif image/tiff
113 tiff image/tiff
114 tr application/x-troff
115 tsv text/tab-separated-values
116 txt text/plain
117 ulw audio/basic
118 ustar application/x-ustar
119 xbm image/x-xbitmap
120 xml text/xml
121 xpm image/x-xpixmap
122 xsl text/xml
123 xwd image/x-xwindowdump
124 wav audio/x-wav
125 svg image/svg+xml
126 svgz image/svg+xml
127 wbmp image/vnd.wap.wbmp
128 wml text/vnd.wap.wml
129 wmlc application/vnd.wap.wmlc
130 wmls text/vnd.wap.wmlscript
131 wmlscriptc application/vnd.wap.wmlscriptc
132 wrl x-world/x-vrml
133 Z application/x-compress
134 z application/x-compress
135 zip application/zip
136 ppt application/vnd.ms-powerpoint
137 xls application/vnd.ms-excel
138   application/octet-stream
139 hwp application/haansofthwp
140 err text/plain
141 pptx application/vnd.openxmlformats-officedocument.pres
142 mht message/rfc822
143 sql application/octet-stream
144 csv application/octet-stream
145 dll application/octet-stream





Posted by 초초초보
, |


소스 출처 : http://web.dicnote.com/bbs/board.php?bo_table=web_tip&wr_id=17&page=9&sca=&sfl=&stx=&spt=0&page=9&cwin=


//생성자 가져오기
      function getConstructorName(o) {
          if (o.constructor) {

              var code = o.constructor.toString();
              match = code.match(/function ([^\(]*)/);

              return (match && match[1]) || null;

          }
          return null;
      }

//실제 깊은 복사 수행하는 부분
      function deepCopy(src) {
          var constructor;
          var dst;
          if ((typeof src == "object") && (constructor = getConstructorName(src))) {
              dst = eval("new " + constructor + "()");

              if (src.prototype)
                  for (var key in src.prototype)
                  dst.prototype[key] = deepCopy(src.prototype[key]);

              for (var key in src)
                  dst[key] = deepCopy(src[key]);

              return dst;
          }

          dst = src;
          return dst;
      }
     

Posted by 초초초보
, |