본문 바로가기

Programing

java jdbc tutorial 오라클에서 제공하는 jdbc 관련 문서이다. http://download.oracle.com/javase/tutorial/jdbc/ 들어가기 귀찮을 텐데 여기서 들어가쟈. Trail: JDBC(TM) Database Access The JDBC™ API was designed to keep simple things simple. This means that the JDBC makes everyday database tasks easy. This trail walks you through examples of using JDBC to execute common SQL statements, and perform other objectives common to database applications. This.. 더보기
java udp server 예제 (datagram) 회사에서 분산 환경에서 저장소의 배치 진행 상황을 보기위해 udp server를 사용하려고 한다. 간단하게 client로 부터 datagram을 받아서 echo 해주는 서버이다. 출처 : http://systembash.com/content/a-simple-java-udp-server-and-udp-client/ UDPServer.java: 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 import java.io.*; import java.net.*; class UDPServer { public static void main(String args[]) throws Exception { DatagramSocket serverSoc.. 더보기
eclipse에서 jdk 코드 안보일때 붙이기 (Attach Source) jdk 소스를 보고 싶은데 없다고 난리치면 그러니까 아래 DatagramSocket에서 F3눌렀을때 아래 같이 뜨면서 짜증이나고 그러면 말이다. Attach Source를 누른다. 아래 같이 찾아 보라고 할텐데 External File을 클릭하면 아래같은 창이 나오는데 java를 설치한 곳의 src.zip file을 고르고 확인 그리고 다시 확인 누르면 아래같이 아름다운 소스를 볼 수 있다. 더보기
java Option 자바 프로그램 만들때 option을 입력 받고 parsing하는 방법이다. 일단 아래를 읽어 보면 된다. Option http://commons.apache.org/cli/usage.html OptionBuilder http://commons.apache.org/cli/api-1.1/org/apache/commons/cli/OptionBuilder.html option : 선택, 선택권, 선택지, 선택의 자유, 선택되는 것 더보기
Hadoop(하둡) NotReplicatedYetException NotReplicatedYetException sleeping /user/neo/exclusive/create_doc.jrs1803 retries left 3 금일 하둡에 local file들을 upload하다가 위와 같은 exception을 만났다. google에서 찾다보니 한국 하둡유저 그룹의 아래와 같은 설명이 있다. 내 경우에는 hadoop dfs의 존재하는 어떤 directory의 모든 파일을 지우고 바로 그 디렉토리에 파일들을 다시 upload 할때 생겼는데 아마도 dfs의 directory에 같은 이름으로 바로 쓰려고 하는데 datanode에서 해당 파일들의 삭제 operation이 완료되지 못했던듯 싶다. 자세한 내용은 더 찾아 봐야 겠지만 아래는 한국 하둡 유저 그룹에 나온 내용이다. 해.. 더보기
Rails 관련 페이지들 Rails start guide http://guides.rubyonrails.org/getting_started.html Rails의 layout과 rendering에 대해서 설명해 주는 페이지 http://guides.rubyonrails.org/layouts_and_rendering.html Rails의 한국 start 페이지 http://wiki.rubyonrails.org/ko/start 더보기
Ruby study 진행 대충 언어를 할 때 이정도를 다루면 되지 않을까 싶다. 스트링 클래스 IO (file,network,db) thread 여기에 대해서 먼저 다뤄봐야겠다. 더보기
Ruby reference / 루비 레퍼런스 루비를 공부해 보기로 했다. 루비를 공부하기 위한 tutorial page모음 Mr. Neighborly’s Humble Little Ruby Book Programming Ruby Why’s (Poignant) Guide to Ruby 루비 Document http://www.ruby-doc.org/docs/ProgrammingRuby/ 한국 루비 관련 사이트 http://www.ruby-lang.org/ko/ 다운로드 / 문서 / 라이브러리 소개 / 커뮤티니 / 뉴스 / 보안이슈 짧은 튜토리얼도 제공한다. 가장 먼저 맛보기를 추천 !!! http://www.ruby-lang.org/ko/documentation/quickstart/ 루비 온 레일즈 관련 홈페이지 http://guides.rubyonr.. 더보기
Python CSV 파일을 xls 파일로 변환하기 / convering csv2xls using Python (csv to xls) csv파일을 xls파일료 변환하기 위해서 googling한 결과 http://sourceforge.net/projects/py-csv2xls/files/py-csv2xls/0.4.2/csv2xls-0.4.2.tgz/download 에서 python converter를 찾을 수 있었다. 다운받아서 압축을 풀면 csv2xls.py가 있다. main을 보니 아래와 같이 옵션이 있다. 실행해보쟈 def main(): parser = optparse.OptionParser() parser.add_option("-i", "--infile_names", dest="infile_names", default="", help="set infilenames") parser.add_option("-o", "--outfile_.. 더보기