Post List

Friday, July 29, 2016

2. Spring MVC - Hello World example




1. Create a Maven Project

- File > New > Maven Project
- Select maven-archetype-webapp
- Enter an groupId and artifactId

ex) groupId : com.yunjee.springmvc / artifactId : SpringWeb

- Guide to naming
  https://maven.apache.org/guides/mini/guide-naming-conventions.html



2. Modify pom.xml

 Change pom.xml file to be the following :


3. Create web.xml

- Create webapp/WEB-INF/web.xml file to be the following :


4. Create ooo-servlet.xml


- Create webapp/WEB-INF/spring-servlet.xml file to be the following :


5. Create a JSP Page

- File > New > JSP file : webapp/WEB-INF/views/welcome.jsp
welcome.jsp file to be the following :


6. Create a Java Class

- File > New > Package > com.yunjee.spring
- File > New > Class > HelloWorldController.java
- HelloWorldController.java file to be the following :


7. Set a Server

- Window > show view > Server
- Create server > Select available project


8. Execute

- Run > Run (Ctrl + F11)
















** Error

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

- Check below Properties if tomcat is set

  • Java Build Path > add Library.. 
  • Targeted Runtimes
  • Project Facets > Runtimes

- Or, add servlet-api in Java Build Path > Libraries


Thursday, July 21, 2016

기술면접 준비

참고 사이트 :

- https://github.com/MaximAbramchuck/awesome-interview-questions

Monday, July 18, 2016

GE Korea 기술면접 후기


질문내용


J wanted to classify product items using Category ID and Product ID assigned to each product. For example, “A” product has category ID and product ID like Category ID : 100 , Product ID : 5. 

There are lots of products unclassified in a warehouse. So classify items using sample input below.

Sample Input ( C denotes “Category ID” and P denotes “Product ID” ) :
[C: 110 , P: 10]
[C: 101 , P: 9  ]
[C: 101 , P: 8  ]
[C: 103 , P: 7  ]
[C: 105 , P: 6  ]
[C: 105 , P: 5  ]
[C: 101 , P: 4  ]
[C: 103 . P: 3  ]
[C: 103 . P: 2  ]
[C: 110 . P: 1  ]

Constraints :
* Classify items using given information only (Category ID and Product ID)
* Classify by ascending or descending order.

Output Format :
ex)  
Category ID :  Product ID
50          :  4, 9, 10
55          :  3 ,10, 20
60          :  10 , 15, 22, 50
70          :  1, 100, 101
100         :  1, 4, 9, 20


면접분위기

면접은 약 40분의 코딩 테스트로, 2:1로 화상면접으로 진행함.
질문내용에 대해 파악했는지, 물어본 후에 코딩 테스트를 진행하였고,
중간에 모르는 부분들에 대해 물어보라고 하였음.
시간이 부족하였기 때문에 알고리즘을 어떻게 짤 것인지에 대한 질문을 추가로 함.

Sunday, July 17, 2016

전화 및 화상영어 후기 - 메가스터디 vs 콩영어

간단히, 내 소개를 하자면 intermediate low level의 영어 실력을 가지고 있고,
기존에 필리핀에서 어학연수 경험이 있어 필리핀 문화에는 어느정도 익숙한
퓨어 한국 여자 사람이다.

캐나다 토론토에서 9개월 정도 체류하면서 카페에서 일했고,
한국 들어온지 2년 넘어서 영어는 전혀 쓰지 않다가 전화영어랑 화상영어를 통해 공부하고 있다.

메가스터디에서 3개월 동안 화상영어(영자신문)를 그리고,
콩영어에서는 2개월의 전화영어(회화) 및 화상영어(문법)를 경험에 근거하여 리뷰를 해보고자 한다.

1. 강사진
강사들 교육면에 대해서는 메가스터디가 조금 더 잘 되어있는 것 같다. 그렇지만, 어딜 가든 강사들의 티칭 스킬은 비슷한 수준까지 올라온 것 같다. 다만, 나와 맞는 강사를 찾느냐가 관건이다. 대부분 일로일로에 있는 강사를 채용하고 있고, 메가스터디와 콩 영어 모두 원하는 강사로 변경이 가능하다.

2. 가격
메가스터디에서 30분 화상영어로 한달에 약 16만원정도 꼴로 수업을 받았었고,
콩영어에서는 위메프에서 할인 쿠폰을 사서 전화영어 20분과 화상영어 30분으로 한달에 약 9만원 정도에 수업을 받았다.

3. 시스템 및 서비스
메가스터디와 콩영어에서는 동일한 화상 영어 솔루션 프로그램을 사용하고 있고, 필리핀의 기상이 많이 안좋은 상황 아니면 깨끗한 화면과 끈김 없는 수업을 진행할 수 있다. 전화도 물론 깨끗한 음질이 제공되고, 화상영어는 자신이 솔루션 프로그램 내의 녹화 버튼을 눌러 녹화해야하지만, 전화로 했을 경우에는 자동으로 시스템에 올라간다.

메가스터디의 경우 1:1 전담으로 Q&A를 처리, 콩영어는 1:2 전담으로 Q&A를 처리하고,두 업체 모두 처리 속도는 빠른 편이다.

시스템 적으로 수업 시간 변경에 대한 편의는 메가스터디가 좀 더 좋다. 1시간 전에 available한 강사 또는 내가 수업 받고 있는 강사의 시간에 맞게 변경 가능하다. 콩영어의 경우는 3시간 전에 1:1 게시판에 신청을 해야하고, 전담 매니저가 확인 후 변경을 해준다.

여기에서, 콩영어의 메리트를 하나 주목할 수 있는데, 메가스터디는 글자수가 제한이 있는 영작 첨삭 서비스인데 반해 콩영어는 길이 무제한 그리고 요청하면 MP3파일 까지 직접 강사님이 녹음해서 올려준다. 


>> 총평
좀 두서 없이 적은 거 같긴 한데, 전화영어와 화상영어는 본인의 의지 및 영어에 대한 목표가 있어야 하고, 그것을 잘 이끌어 줄 강사를 만나는 것이 제일 중요한 것 같다. 내 경우, 개인적으로는 큰 업체 (메가스터디) 도 좋았지만, 작은 업체 (콩영어)도 가격 대비 나쁘지 않아 계속 사용중이다.

Saturday, July 16, 2016

내려놓음..


버릴 줄 알아야, 
그리고 포기할 줄 알아야
비로소 채울 수 있는 것이거늘..

머리로는 이해가 되지만,
용기가 나질 않네.

나는 무엇 때문에 그렇게 고민하는가.

인간은 불안한 존재라고 하지만,
무엇이 나를 이토록 흔들리고 불안하게 만드는가.








새벽의 끄적임...

Friday, July 15, 2016

1. Setting Environment

*** 07.15.2016 latest version
*** 08.02.2016 updated
*** based on window 10 64bit


1. Eclipse (eclipse-jee-neon-R-win32-x86_64)

- http://www.eclipse.org/downloads/eclipse-packages/


2. Spring STS 3.8.0

- Install Spring Framework STS 3.8.0
  Help > Install New software > http://springide.org/updatesite  Help > Eclipse Marketplace > search "STS" 

3. Maven

- if you already installed Spring STS 3.8.0, you do not need to install Maven


- https://maven.apache.org/what-is-maven.html
- http://stackoverflow.com/questions/3589562/why-maven-what-are-the-benefits

4. JDK (Java SE Development Kit 8u91)

- http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- After installation, set environment variable

- JAVA_HOME : C:\Program Files\Java\jdk1.8.0_91
- PATH : %JAVA_HOME%\bin
- CLASSPATH : .;%JAVA_HOME%\lib\tools.jar


5. Tomcat (apache-tomcat-9.0.0.M9)

- http://tomcat.apache.org/
- After download Tomcat, unzip in Java folder
- set environment variable

- CATALINA_HOME : C:\Program Files\Java\Tomcat 9.0
- PATH : %CATALINA_HOME%\bin

- exec C:\Program Files\Java\Tomcat 8.5\bin\startup
- check http://localhost:8080/


6. Apache (httpd-2.4.23-win64-VC14)

- https://www.apachelounge.com/download/
- After unzip, relocate C drive : C:\Apache24


7. Connect with tomcat

- http://apache.tt.co.kr/tomcat/tomcat-connectors/jk/binaries/windows/
- download connector using mod_jk

1) Copy mod_jk.so file to C:\Apache24\modules
2) Check server.xml

    <!-- Define an AJP 1.3 Connector on port 8009 -->

    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />


3) Create workers.properties file at C:\Apache24\conf

    worker.list=worker1
    worker.worker1.type=ajp13
    worker.worker1.host=localhost
    worker.worker1.port=8009

4) Set some parameters to httpd.conf file

    LoadModule jk_module modules/mod_jk.so


    JkWorkersFile conf/workers.properties

    JkLogFile logs/mod_jk.log

    JkLogLevel info



    JkMount /* worker1



* Refer to : http://joont.tistory.com/55

c.f) 
* vcruntime140.dll error
- https://ko.dll-files.com/
- download and copy to C:\Windows\System32

* make annotation (전체 주석)
- C:\Apache24\conf\extra\httpd-vhosts.conf


* 시스템 효용성 및 분산 처리를 위해서 apache 와 tomcat을 연동
  ( WEB Server -> html, WAS Server -> jsp )
* 최신라이브러리 관리와 프로젝트 관리를 위해 Maven 사용