개발
-
RHEL/CentOS 에 python 2.7, 3.* 설치하기개발 2019. 3. 14. 09:02
출처 : https://www.lesstif.com/pages/viewpage.action?pageId=30705072개요CentOS 6 에는 Python 2.6 이 탑재되어 있으며 많은 시스템 유틸리티(Ex: semange 같은 SELinux 관리 유틸)이 기본 설치된 파이썬과 의존 관계에 있습니다. python 으로 만들어진 로그 취합 서비스인 Sentry 는 Python 2.7 이상을 요구하며 다음과 같은 설치 방법이 있습니다. 소스 tarball 을 다운 받아서 컴파일하여 설치rpm 패키지를 구해서 패키지 매니저로 설치 개인적으로는 웬만하면 소스 컴파일을 자제하는 편이지만 python 은 CentOS 에 꼭 필요한 프로그램이며 2번 방식으로 설치할 경우 기본 설치된 python 에 덮어써서 시스템..
-
Spring boot 현재 세션 가져오기개발 2019. 3. 6. 08:37
Spring에서 인터셉터나 필터, 컨트롤러 등에서 로그인한 사용자 정보를 가져 오고 싶을 때Authentication auth = SecurityContextHolder.getContext().getAuthentication(); Get the username of the logged in user: getPrincipal()Get the password of the authenticated user: getCredentials()Get the assigned roles of the authenticated user: getAuthorities()Get further details of the authenticated user: getDetails()4가지의 메소드가 있고, 유저이름을 알기위해서 getP..
-
Spring boot application.properties 설명개발/JAVA 2019. 2. 27. 11:24
# ===================================================================# COMMON SPRING BOOT PROPERTIES## This sample file is provided as a guideline. Do NOT copy it in its# entirety to your own application. ^^^# =================================================================== # ----------------------------------------# CORE PROPERTIES# ---------------------------------------- # BANNERbanner.cha..
-
FFMPEG 명령어개발/리눅스 2019. 2. 1. 10:14
FFMPEG 명령어 Ffmpeg 기본 사용법 1. avi 파일을 플래쉬 파일 포맷인 flv로 변환할때 사용하는 명령어 ffmpeg -i filename.avi -ar 22050 -ab 32 -f flv -s 320x240 filename.flv 2. 변환된 flv 파일에서 원하는 순간의 스크린샷 이미지 추출 ffmpeg -i filename.flv -f image2 -t 0.001 -ss 3 filename.jpg - 3초 경과 시점의 스크린샷 추출 3. 여러개의 동영상을 하나로 합치기 ffmpeg -i test1.avi -i test2.avi -vcodec copy -acodec copy -vcodec copy -acodec copy test12.avi -newvideo -newaudio [기타 옵션 ..
-
ImagemagicK개발/리눅스 2019. 2. 1. 10:14
ImagemagicK n 이미지 변환, 수정 등의 기능을 갖춘 무료 소프트웨어. n Cats에서 이미지 변환 및 워터마크를 삽입하는데 사용한다. n 사용중인 버전 : 6.8.8-9 n 설치 명령어 yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz tar xzvf ImageMagick.tar.gz cd ImageMagick-7.0.6-0 ./configure --prefix=/usr/local --with-bzlib=yes --with-fontcon..