<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0">
  <title type="html">chaoskcuf&#039;s lab: HTML에서-원하는-부분만-골라내자에 달린 최근 댓글/트랙백 목록</title>
  <id>http://chaoskcuf.com/</id>
  <link rel="alternate" type="text/html" hreflang="ko" href="http://chaoskcuf.com/" />
  <subtitle type="html">WPF, Silverlight, C#, MFC 프로그래밍 팁, 자작 프로그램 개발</subtitle>
  <updated>2008-11-18T03:23:53+09:00</updated>
  <generator>Textcube 1.7.4 : Risoluto</generator>
  <entry>
    <title type="html">작은돌맹이님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment1736" />
    <author>
      <name>(작은돌맹이)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment1736</id>
    <published>2008-05-21T15:43:42+09:00</published>
    <summary type="html">대단하십니다~ 이런 프로그램을 보면 저도 꼭 프로그래밍을 배워보고 싶네요.

좋은자료 감사합니다.</summary>
  </entry>
  <entry>
    <title type="html">chaoskcuf님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment1737" />
    <author>
      <name>(chaoskcuf)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment1737</id>
    <published>2008-05-21T23:45:08+09:00</published>
    <summary type="html">조금만 관심을 가지시면 쉽게 배우실 수 있습니다. ^^</summary>
  </entry>
  <entry>
    <title type="html">chaoskcuf님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2967" />
    <author>
      <name>(chaoskcuf)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2967</id>
    <published>2008-06-12T10:38:48+09:00</published>
    <summary type="html">&amp;quot;{0} 이것으로 페이지가끝까지 가면 다음페이지 넘어가는 로직을 모르겠습니다 &amp;quot; =&amp;gt; 저는 그냥 단순히 &amp;quot;1 page 다음은 2 page다&amp;quot; 라는 것을 가정해 두고 만들었습니다. {0}은 C#의 String Format에 사용하는 형식일 뿐입니다.

&amp;quot;이멜정규식을 소스에 넣고 실행하면 문자열에라가뜨던데 그 원인이 몬지 로그렜어요&amp;quot; =&amp;gt; C# 소스를 직접 작성하신다면 @&amp;quot;\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*&amp;quot;; 를 사용하시면 됩니다. 문자열 에러의 원인은 &#039;\\&#039;(역슬래시) 때문입니다. 정규식에서 사용하는 역슬래시는 기본적으로 의미를 가지고 있는 문자열입니다. @를 사용하지 않으실경우는 반드시 &amp;quot;\\\\&amp;quot; 이렇게 두개를 사용하여야 합니다.</summary>
  </entry>
  <entry>
    <title type="html">김시억님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2966" />
    <author>
      <name>(김시억)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2966</id>
    <published>2008-06-10T20:01:13+09:00</published>
    <summary type="html">많은 도움이 되고있습니다 ^^;;

근데 한가지 더 여쭐게 있는데요 페이징하는 방법좀 설명해주세요 -_-;;

{0} 이것으로 페이지가끝까지 가면 다음페이지 넘어가는 로직을 모르겠습니다 -_-;;

그리고 이멜정규식을 소스에 넣고 실행하면 문자열에라가뜨던데 그 원인이 몬지 로그렜어요 ㅠ.ㅠ

님처럼 텍스트박스에 넣고 하면 되고요 ㅠ.ㅠ

한번만 더 도와주세요오</summary>
  </entry>
  <entry>
    <title type="html">chaoskcuf님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2964" />
    <author>
      <name>(chaoskcuf)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2964</id>
    <published>2008-06-10T13:30:34+09:00</published>
    <summary type="html">그러나 주의할 것이 
대개의 싸이트에서 이메일 수집은 불법입니다.</summary>
  </entry>
  <entry>
    <title type="html">chaoskcuf님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment3000" />
    <author>
      <name>(chaoskcuf)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment3000</id>
    <published>2008-08-21T10:10:22+09:00</published>
    <summary type="html">현재 작업이 진행중이라고 this.Dispose()를 부르면 this는 해당 Form이고 그 Form이 종료되어 버립니다.

부득이 에 올려주신 처리방법으로 처리를 하고 싶으시면

 class Program
    {
        static HttpWebRequest _request = null; 
        static void Main(string[] args)
        {
            System.Timers.Timer timer = new System.Timers.Timer();
            timer.Interval = 5000;
            timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed);
            timer.Start();
            try
            {
                _request = (HttpWebRequest)WebRequest.Create(&amp;quot;http://www.someuri.com&amp;quot;);
                //_request.Timeout = 5000;
                _request.GetResponse();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }

        static void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            _request.Abort();
        }
    }

_request 객체에 Abort 함수를 불러주시면 Request가 중지됩니다.</summary>
  </entry>
  <entry>
    <title type="html">chaoskcuf님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2999" />
    <author>
      <name>(chaoskcuf)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2999</id>
    <published>2008-08-21T09:53:31+09:00</published>
    <summary type="html">try
            {
                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(&amp;quot;http://www.someuri.com&amp;quot;);
                request.Timeout = 5000;
                WebResponse reponse = request.GetResponse();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }

원하시는 것이 5초간 응답이 없을 경우 request를 처리하는 것이라면 위와 같이 간단히 Timeout 프로퍼티를 사용하면 될 것 같은데요? ^^</summary>
  </entry>
  <entry>
    <title type="html">chaoskcuf님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2963" />
    <author>
      <name>(chaoskcuf)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2963</id>
    <published>2008-06-10T13:26:07+09:00</published>
    <summary type="html">@&amp;quot;\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&amp;quot;; 

여기서 앞에 @&amp;quot;와 뒤에 &amp;quot;; 를 빼시면 됩니다.

위의 프로그램에서 http://chaoskcuf.com/137 를 URL 입력란에 넣고, \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* 를 pattern 입력란에 넣으면

creative9100@hotmail.com 를 찾아낼 수 있습니다.</summary>
  </entry>
  <entry>
    <title type="html">김철수님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2998" />
    <author>
      <name>(김철수)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2998</id>
    <published>2008-08-20T15:42:40+09:00</published>
    <summary type="html">c# 초보입니다 질문한가지 드리겠습니다 제가 임의의사이트에 접속하려고 아래와 같이 코딩하였습니다
http 방식의 접속인데요...

 timer_i = 0;
 timer1.Interval = 100;
 timer1.Start();

	HttpWebRequest s_log = (HttpWebRequest)WebRequest.Create(http://www.www.com); //으로접속하여
	.
	......기타등등...
	......기타등등...
	......하고
	.
	url_connect.Write(sendBuffes_login, 0, sendBuffes_login.Length); //이렇게 값을 던졌습니다
	timer1.Stop();


.
.
.
 private void timer1_Tick(object sender, EventArgs e)
        {
            txt_time_out.Text = timer_i.ToString();
            timer_i++;
        }
        

이렇게요....

그런데 플이 응답이 없고 먹통이 되길래 웹브라우져로 열어보니 역시나 한참있다가 페이지없음이
뜨더라 이거죠 그래서 
응답이 없으면 타이머로 5초간시간재서  응답이 없으면 중단을 하려고 타이머코드를 추가했는데요
저게 폼자체가 먹통이 되어서 시간이 올라가는게 보이질 않습니다 ㅠ.ㅠ
타이머도 작동안하고요 먹통이 되어서요
5초지나도  timer1.Stop(); 까지 진행이 안되면 응답없는 사이트로 간주하여 작업을 중단해야하는데
말이죠 1분까이 먹통됬다 오류페이지 띄워주십니다ㅠ.ㅠ
답변을 기다립니다...

아참 그리고 현재작업이 먹통이되어 중단하려면 this.Dispose(); 이 명령어를 호출하게 하면되나요??
현재작업중단 처리도 제가 헤메는 부분입니다

어떤님께 여쭤봤더니...
-&amp;gt;보통 쓰레드를 사용해서 해결하는데... 
-&amp;gt;파일 읽어 오는 부분을 별도의 쓰레드로 만들어서 
-&amp;gt;시작하면 다른 이벤트 받는데 지장없습니다.

음....쓰레드처리하라시는데 제가 초보라...
약간의 코드주석을 좀 달아서 답변주시면 대단히 감사하겠습니다</summary>
  </entry>
  <entry>
    <title type="html">김시억님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2962" />
    <author>
      <name>(김시억)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2962</id>
    <published>2008-06-10T02:23:37+09:00</published>
    <summary type="html">한가지 여쭙겠습니다

html 에서 uri 가지고 오는부분은 어케해서 작동하게 만들었는데요

html 에서 email 형식으로 된것을 가지고 오려니 당췌 정규식을 어케해야할지

감이 안오더라고요 msdn 에있는 정규식이라고 나와있는게 

@&amp;quot;\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&amp;quot;; 

이건데 이거넣고 실행해봐도 이메일을 추출못하더라고요

고수님의 한줄답변을 기다립니다

제메신져는 creative9100@hotmail.com 입니다 메신져안하시더라도 답변은 좀 남겨주세요

메일로그인해서 답변주셨나 확인하겠습니다 ^^;;</summary>
  </entry>
  <entry>
    <title type="html">김시억님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2972" />
    <author>
      <name>(김시억)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2972</id>
    <published>2008-06-21T07:10:56+09:00</published>
    <summary type="html">앞선 답변에 감사드립니다

죄송한데 한가지 질문을 더 드릴일이 있어요

텍스트화일을 읽어들였는데요 

라인이 20만줄인데

예를 들어 10번째줄부터 20번째줄까지만 가져오려한다면

어떻게 해야할까요??

이게 계속 10씩 증가하는데 다 읽어들여서 해당위치값을 불러들이는

반복작업을 시키자니 뒤로갈수록 화일다 읽고 해당위치 가져오고하면

꽁수코딩이 답이 아니더라고요

고수님의 한줄 답변을 기다립니다</summary>
  </entry>
  <entry>
    <title type="html">chaoskcuf님의 댓글</title>
    <link rel="alternate" type="text/html" href="http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2975" />
    <author>
      <name>(chaoskcuf)</name>
    </author>
    <id>http://chaoskcuf.com/entry/HTML%EC%97%90%EC%84%9C-%EC%9B%90%ED%95%98%EB%8A%94-%EB%B6%80%EB%B6%84%EB%A7%8C-%EA%B3%A8%EB%9D%BC%EB%82%B4%EC%9E%90#comment2975</id>
    <published>2008-06-23T18:20:27+09:00</published>
    <summary type="html">답변이 늦었습니다.

http://chaoskcuf.com/149 글에 따로 질문에 대한 답변을 했습니다.</summary>
  </entry>
</feed>
