리버's 아름다운 소풍

1 2 3 
Korean Semantic Web Conference - 12월 4일


자바를 손 뗀지가 벌써 5년정도 된것 같다. 요즘 다시 자바를 시작해야 할 필요가 생겼는데 막상 시작하자니 먼저 가슴이 답답해진다. 우선 이런 컨퍼런스라도 적극적으로 참여해 봐야 할 듯..
이 글의 관련글
일주일간 인기글
오늘 인기글
Korean Semantic Web Conference - 12월 4일
php에는 여러 프레임워크가 존재한다. 이 중 Zend Framework라는게 있는데, php로 구현되어 있는 검색엔진이 없을까 찾다가 알게 되었다. 이 프레임워크에는 Jakarta 프로젝트의 하나인 Lucene을 PHP로 포팅한 Zend_Lucene_Search 패키지가 존재한다.

이 패키지를 이용하여 검색엔진을 만들어서 테스트해봤다. 역시 빠르다. 하지만 문서의 갯수가 많아지니 현저히 느려지는 속도..

나름 결론을 내린 건 하드웨어 사양에 따라 틀리겠지만 10만건정도 이하의 문서를 검색하는 사이트에서 유용할 것 같다. 부하가 많이 걸리는 부분은 키워드에 맞는 문서를 검색하는 부분이 아니라 검색되어진 문서를 배열로 만들고 이를 사용자의 요구에 맞게 정렬하는 부분이었다. 이는 PHP의 한계가 아닐까 보여지는데... 검색결과문서수가 평균 천건을 넘지 않는다면 인덱싱되어 있는 문서건수가 많더라도 유용하게 사용되어 질 것 같다. 또한 검색엔진, Lucene을 이해하는 데에도 유용할 것 같다.





이 글의 관련글
일주일간 인기글
오늘 인기글
Korean Semantic Web Conference - 12월 4일
HTTP를 구현해 놓은 여러 컴포넌트들이 있지만 윈도우2000에서부터 기본으로 설치되는 MSXML2.ServerXMLHTTP 컴포넌트를 이용하여 원격 웹서버의 내용을 갖고 올수 있다.

가장 기본적인 방법은 다음과 같다.



GET 메쏘드로 갖고온 HTML을 화면에 출력하는 루틴이다. 게시판등에 글을 쓰거나 할 때는 POST 메쏘드를 사용하는데 이 방법도 가능한다.




오류 처리는 Send 메쏘드를 호출하기 전에  On Error Resume Next를 적어주고 오류발생여부를 체크하면 된다.


이 글의 관련글
일주일간 인기글
오늘 인기글
Korean Semantic Web Conference - 12월 4일
XSS방지를 위해 PHP에서는 htmlspecialchars함수를 사용하면 된다. ASP에서는 기본적으로 이런 기능의 함수가 없어서 같은 기능을 하는 함수를 만들었다. 사용자 입력 내용이 HTML로 출력될 때는 XSS방지를 위해서 반드시 htmlspecialchars함수를 써야 한다. 
<form method="post" action="test.asp">
<input type="text" name="test" value="<%=htmlspecialchars(Request("test"))%>">
<input type="submit">
</form>

<%
Function htmlspecialchars(sStr)
htmlspecialchars = Replace( sStr, "&", "&amp;" )
htmlspecialchars = Replace( htmlspecialchars, ">", "&gt;" )
htmlspecialchars = Replace( htmlspecialchars, "<", "&lt;" )
htmlspecialchars = Replace( htmlspecialchars, """", "&quot;" )
htmlspecialchars = Replace( htmlspecialchars, "'", "&#039;" )
End Function
%>
이 글의 관련글
일주일간 인기글
오늘 인기글
Korean Semantic Web Conference - 12월 4일
오늘 CSS 스타일 "width=100%;margin-right:-175px;"을 드디어 해석했다. width와 margin을 같이 생각해서 도저히 해석이 안되는 거였다. 다음 그림을 보고서야 이해를 했다.

아래

These divs have the following CSS properties:

#div1 {
  width: 300px;
  height: 100px;
  border: 2px solid #f00;
}
#div2 {
  width: 300px;
  height: 100px;
  border: 2px solid #00f;
}

아래

#div1 {
  width: 300px;
  height: 100px;
  margin-bottom: 30px;
  border: 2px solid #f00;
}
#div2 {
  width: 300px;
  height: 100px;
  border: 2px solid #00f;
}

아래

#div1 {
  width: 300px;
  height: 100px;
  margin-bottom: -30px;
  border: 2px solid #f00;
}
#div2 {
  width: 300px;
  height: 100px;
  border: 2px solid #00f;
}


PS) 박스모델 오류도 자꾸 잊게 된다. 상기하는 차원에서..

div {
width: 100px;
padding: 10px;
border: 5px solid black;
margin: 10px; }

사용자 삽입 이미지
이 글의 관련글
일주일간 인기글
오늘 인기글

ASP.NET I18N

Programming/ASP, ASP.NET 2007/06/25 20:07 by 리버
Korean Semantic Web Conference - 12월 4일

ASP.NET에서 I18N을 지원하기 위한 좋은 자료를 발견해서 첨부...





<%@ page language="c#" runat="server" Culture="ko-KR"%>
<script runat=server>

void Page_Load(){ 
  String TodaysDate;
 
  TodaysDate = DateTime.Now.ToShortDateString();
  Response.Write(TodaysDate); 
}

   
</script>

이 글의 관련글
    이글의 태그와 관련된 글이 없습니다.
일주일간 인기글
오늘 인기글
TAG ,
Korean Semantic Web Conference - 12월 4일

한국스프링사용자모임에서 스프링 두번째 세미나합니다. 자바개발자 분이나 MVC모델에 관심이 있으신 분들은 참석해 보세요.

조금 늦었지만 이프릴 세미나에서 약속한대로 한국 스프링 사용자 모임을 만들게 되어 다행입니다. 가장 중요한 소식인 세미나 소식을 먼저 전합니다. 이번 세미나는 국민대에서 장소를 협찬해주셨고, 아직 내용이 결정되지 않았지만 오픈소스를 지원하는 몇몇 업체의 후원을 받을 예정입니다.

springseminar02.png

세미나 내용은 Spring DAO 내부의 템플릿 구현 방식을 골자로 하는 첫번째 세션을 토비님이 발표하고, 제가 두번째 세션인 Spring MVC에 대해 진행할 예정입니다. 지난 이프릴 세미나의 경험을 토대로 이번에는 라이브 코딩을 보여주기 적합한 장소를 섭외했으며 시간도 110분으로 연장했습니다. 충분한 코드 시연으로 내용 전달에 만전을 기하려고 기획한 것이지만 긴 세션으로 인해 지루해질 소지도 있고 사용자 참여도 늘리기 위해 스프링 퀴즈왕이라는 짧막한 이벤트도 마련했습니다. 경품 내용이나 구체적인 진행 방향은 아직 논의중이지만 재미있는 시간이 되도록 준비하겠습니다.

이 글의 관련글
일주일간 인기글
오늘 인기글

CSS Reference Card

Programming/CSS 2007/04/09 23:10 by 리버
Korean Semantic Web Conference - 12월 4일
간단하게 정리된 CSS Level 1 , Level 2 Reference Card 이다. 근데 좀 더 쉽게 프린트해서 볼 수 있는 방법이 있을것 같은데...

이 글의 관련글
일주일간 인기글
오늘 인기글

Ajax Development Links

Programming/AJAX 2007/03/31 23:36 by 리버
Korean Semantic Web Conference - 12월 4일

General Articles

From Jesse James Garrett (who coined the term)

Basic Tutorials

For specific languages or libraries

General Ajax Information

Solutions to specific Ajax related issues

In depth Ajax use articles

출처: Ajax Development Links

이 글의 관련글
일주일간 인기글
오늘 인기글
TAG
Korean Semantic Web Conference - 12월 4일
Wink is a Tutorial and Presentation creation software, primarily aimed at creating tutorials on how to use software (like a tutor for MS-Word/Excel etc). Using Wink you can capture screenshots, add explanations boxes, buttons, titles etc and generate a highly effective tutorial for your users.
Here is a sample Flash tutorial created by Wink. Click the green arrow button to start viewing it. -------->
(More tutorials created by Wink users and companies can be found at the User Forums.)

This is a good example of how you can create tutorials in Wink, by capturing screenshots, mouse movements and specifying your own explanations with them. And all this in a standard Windows-based UI with drag-and-drop editing makes it very easy to create high quality tutorials/documentation.

It is estimated that Macromedia Flash Player is installed in more than 90% of the PCs. Using Wink you can create content viewable across the web in all these users' desktops. Similar applications sell for hundreds of dollars, while Wink is free with unrivaled features. So spread the word about Wink to your friends.
이 글의 관련글
일주일간 인기글
오늘 인기글
1 2 3 
BLOG main image
리버's 아름다운 소풍
이씨플라자 개발자가 살아가는 이야기
by 리버

공지사항

카테고리

전체 (328)
살.아.가.며. (184)
웹.이.야.기. (75)
OS (13)
Software (17)
Security (4)
SQL Server (8)
Programming (24)

달력

«   2009/11   »
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          
get rss

495

411

-30 days

today : 337