7월 31, 2018의 게시물 표시

대학생 코딩 과제 대행 java, python, oracle 스물 세 번째

이미지
https://open.kakao.com/o/s3aMpbA 요즘 회사다니면서 과제 의뢰가 들어와도 못했었는데, 그래도 짬이 나서 오랜만에 도전..! 이번 의뢰자도 외국대학교 인데 어디 학교인지는 모르겠다. 먼저 요구사항이다. python으로 생물학적인(?) 세포를 이차원배열에서 지지고 볶고 하는 과제이다. graphics.py 사용해야하는게 필수 조건이다. 실행영상이다. 코드는 지저분해서.. 올리지 말까하다가 올린다. from graphics import * import random # makeControl()function creates Control Panel Graphics window as specified def makeControl (): window = GraphWin( "Control Panel" , 300 , 460 ) # GENERATIONS meesage box = Rectangle(Point( 0 , 20 ) , Point( 300 , 40 )) box.draw(window) box.setFill( "black" ) messages = Text(Point( 150 , 30 ) , "GENERATIONS" ) messages.draw(window) messages.setTextColor( "white" ) # START,RANDOM, MANUAL, RESTART, PAUSE, QUIT button START = Rectangle(Point( 30 , 50 ) , Point( 130 , 80 )) START.draw(window) START.setFill( "green" ) Smessages = Text(Point( 80 , 65 ) , "START" ) Smessages.draw(windo...

Spring security 기본적인 설정과 예제

이미지
제일 먼저, pom.xml 디펜던시 https://mvnrepository.com/search?q=security 로 들어간 다음 검색어에 security를 검색하면 쭈욱 라이브러리들이 나온다. 버전은 알아서 맞게 찾아서 추가해주면 된다. Spring Security Web ,  Spring Security Config 기본적으로 두가지가 최소 요건이라고 한다. 하지만 필자는 정확히는 잘 모르지만  Spring Security Core 까지 추가했다.  시간을 더 할애해서 파고 들어서 공부해봐야 할 것 같다. 필자는 properties 설정에서 <org.springframework-version>3.1.1.RELEASE</org.springframework-version> 버전을 잡아줬기 때문에 아래와 같이 버전을 잡았다. 물론 ${org.springframework-version} 이렇게 해도 되지만, 확실히 보기 위해서.. <!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-core --> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> <version>3.1.1.RELEASE</version> </dependency> <!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-core --> <dependency> <grou...