본문 바로가기
반응형

전체 글739

AudioPlayer Interface Overview State Diagram Play Directive PlaybackStarted Event PlaybackNearlyFinished Event ProgressReportDelayElapsed Event ProgressReportIntervalElapsed Event PlaybackStutterStarted Event PlaybackStutterFinished Event PlaybackFinished Event PlaybackFailed Event Stop Directive PlaybackStopped Event PlaybackPaused Event PlaybackResumed Event ClearQueue Directive PlaybackQueueCleared Event StreamMet.. 2017. 5. 24.
golang 정리 https://golang.org/pkg/net/http/ func NewRequest(method, urlStr string, body io.Reader) (*Request, error) { NewRequest는 메소드, URL 및 선택적 본문에 대해 새 Request를 반환합니다. 제공된 본문이 io.Closer 인 경우 반환되는 Request.Body가 body로 설정되고 클라이언트에 의해 닫힙니다. 메소드 Do, Post, PostForm, Transport.RoundTrip.NewRequest는 Client.Do와 함께 사용하기에 적합한 Request를 반환하거나 Transport.RoundTrip. 테스트에 사용할 요청을 만들려면 Server Handler는 다음과 같이 NewRequest 함.. 2017. 5. 18.
yum에 대해 알아보자. 출처 : https://access.redhat.com/ko/node/82093 yum의 개념 Yum은 Yellow dog Update라고도 하고 Duke University에서 RPM 설치를 개선하기 위해 개발한 패키지 관리자입니다.1) 패키지 설치: yum install package ex) yum install httpd 2) 패키지 삭제: yum remove package ex) yum remove httpd 3) 패키지 업데이트: yum update package ex) yum update httpd 4) 패키지 검색: yum search package ex) yum search httpd 5) 패키지 정보: yum info package ex) yum info httpd 6) 특정단어가 포함 .. 2017. 5. 9.
RND 스터디 주저리 일을 하다보니..무심코 그냥 지나치거나 그냥 암기식으로 정확히 모르는 상태에서 개발을할 때가 너무도 많았던것 같다. 일정이 빠듯하고 빨리 빨리를 외치는 한국 개발 문화도 있겠지만.. 내가 지식에 대한 접근이 틀렸을지도 모르겠다. 생각을 해보면 내부, 외부 스터디를 통해 많은 도움을 받고 더 발전을 해왔던것 같다. 앞으로도 스터디를 통해 좀 더 나아가고자 한다. 스터디 모임 RND : 개인적으로 지인들과 만든 모임. Right Now Develop! 지금 당장 개발하자라는 뜻이다.ㅋㅋ 목 표 정확히 알고자 한다. 분 야 network, DB, Language, Framework, New Skill 등 전 분야! 방 식 1. 주제를 모집한다. 2. 주제를 선정한다. 3. 주제에 대해 공부한다. 4. .. 2017. 5. 1.
jenkins setting OS : CentOS 7.2 JDK : jdk8명령어 : sudo yum install -y java-1.8.0-openjdk Tomcat : 9http://tomcat.apache.org/ JenkinsWar file : curl -L -O http://mirrors.jenkins-ci.org/war-stable/latest/jenkins.warTomcat 위치 : /apache-tomcat-9.0.0.M20/webapps 에 Jenkins.war를 배치! 그리고나서 톰캣을 기동 시킨다. go (build target : go lang)sudo yum install go tomcatJenkins가 풀리면http://localhost:8080/jenkins로 붙어서 좀 더 세부적인 셋팅을 하면 된다. 2017. 4. 28.
mesosphere https://mesosphere.github.io/marathon/ Marathon은 Mesosphere의 Datacenter Operating System (DC / OS) 및 Apache Mesos 용 프로덕션 급 컨테이너 오케스트레이션 플랫폼입니다. 특징고 가용성. Marathon은 100 % 가동 시간 동안 리더를 선출 한 액티브 / 패시브 클러스터로 실행됩니다.다중 컨테이너 런타임. Marathon은 Mesos 컨테이너 (cgroup 사용)와 Docker에 대한 first-class 지원을 제공합니다.Stateful apps(상태 보존 형 앱). Marathon은 영구 저장소 볼륨을 응용 프로그램에 바인딩 할 수 있습니다. MySQL 및 Postgres와 같은 데이터베이스를 실행할 수 있으며 .. 2017. 4. 28.
Jenkins Overall/Read permission Jenkins Overall/Read permission LDAP 설정하다가;; 전부 날아갔을 때!! http://stackoverflow.com/questions/36838867/jenkins-overall-read-permission Jenkins의 config.xml를 열어서 설정을 해주면 된다. 이렇게 되어있는데이것을 아래처럼 설정하면 잘되어진다 ㅎㅎhudson.model.Hudson.Administer:***Here is your username*** 2017. 4. 27.
about docker docker 란?docker install docker 명령어docker 오류 docker란?참조 사이트 : https://www.slideshare.net/pyrasis/docker-docker-38286477http://blog.nacyot.com/articles/2014-01-27-easy-deploy-with-docker/ docker install - CentOS 7 ver.아래의 부분이 없으면 최신버전으로 install 되지 않는다.sudo vi /etc/yum.repos.d/docker.repo [dockerrepo]name=Docker Repositorybaseurl=https://yum.dockerproject.org/repo/main/centos/7/enabled=1gpgcheck=1g.. 2017. 4. 27.
GOROOT와 GOPATH https://github.com/golang/go/wiki/GOPATH GOPATH 환경 변수는 Go 프로젝트 및 해당 바이너리 소스를 포함하는 $ GOROOT 외부의 디렉토리를 지정하는 데 사용됩니다.GO Lang은 아래와 같은 구조로 강제성을 가진다.terrypark@MacBook-Pro:~/go$ ll -rw-r--r--@ 1 terrypark staff 6148 4 26 13:41 .DS_Store drwxr-xr-x 19 terrypark staff 646 4 4 17:21 bin drwxr-xr-x 3 terrypark staff 102 2 2 11:13 pkg drwxr-xr-x 9 terrypark staff 306 3 2 14:20 src /Users/terrypark/go/src/gi.. 2017. 4. 27.
go land에서 formatting 설정하기 go land에서 formatting 설정하기 1. Preferences.. > Plugins 에서 File Watchers를 install 합니다. 2. File Watchers > gofmt 설정. go bin에 gofmt가 없다면 goimports로 해도 된다.Arguments: -w $FilePath$ 2017. 4. 26.
Spring WebFlux toby님이 회사에 오셨다.스프링캠프 2017을 등록 못해서 못갔는데 다행히 좋은 강의를 들을수 있어서 좋았다. 강의자료 : Spring WebFlux 람다식 추가 : 구 Spring web reactive 용도 서비스간 호출이 많은 마이크로서비스 아키텍처에 적합.비동기 - 논블럭킹 개발방식.성능을 뛰어나게 만들겠다.기존 @MVC 방식, 새로운 방식서블릿 스택과 api에서 탈피블록킹, 논블록킹동기, 비동기와는 관점이 다름.내가 직접 제어할 수 없는 대상을 상대하는 방법대상이 제한적임IO멀티 쓰레드 동기화 함수형 스타일의 콜백 방식 스프링 웹 1. 요청 매핑 2. 요청 바인딩 3. 핸들러 실행 4. 핸들러 결과 처리(응답 생성) WebFlux Router Function - 1. 요청매핑 (.route().. 2017. 4. 26.
빌드&배포 시스템 구축 환경OS : CentOS 7.xCI Tool : Jenkinsapache tomcat 9jdk 8Build Target : go langgit settinggo sdk settingglide settingdocker-client setting ============ show docker images ============= + docker images REPOSITORY TAG IMAGE ID CREATED SIZE /terry_park/vsc v0.3 e1ad78d5741f 3 seconds ago 858MB /terry_park/vsc v0.2 384a8f1df578 6 minutes ago 858MB /terry_park/vsc v0.1 219d8bcc0779 3 hours ago 1.04GB + .. 2017. 4. 25.
Apache Mesos Mesos는?아파치 프로젝트(http://mesos.apache.org/)트위터, 에어비앤비, 미소스피어가 사용.기본적으로 Docker 지원.분산 시스템 커널.모든 머신에서 동작.실행 어플리케이션에 대해 리소스 관리와 스케줄링 api를 제공.Mesosphere = Mesos + Marathon + ChrnonsMarathon : 작업(컨테이너) 관리 담당.Chronos : 작업 스케줄러. Mesos 노드 추상화Mesos의 노드들은 모든 Task에 대해 공유 된다. Mesos 동작 구성도Docker는 작업의 Type중 하나이다.Zookeeper를 통해 HA를 구성한다.Scheduler는 Chronos을 사용하거나, 직접 개발이 가능하다. Mesos 구성도 1Marathon은 PaaS플랫폼.향후 Kubern.. 2017. 4. 18.
패킷 분석을 위한 툴 - wireshark https://www.wireshark.org/download.html wire shark 이녀석은 네트워크 분석 툴이다.걍 클릭신공으로 셋팅한 뒤..아래와 같이 Capture > Options...를 통해서 start 시켜주면 된다. 혹은 아래와 같이 검정 버튼을 눌러도 된다. 아래처럼 선택 후 start를 클릭!! 가장 간단한 내용이다.패킷을 분석할 때 매우 유용한 툴임에 틀림없다! 더욱 더 알고 싶다면 http://search.daum.net/search?w=tot&DA=UME&t__nil_searchbox=suggest&sug=&sugo=5&sq=wire+shark&o=2&q=wireshark+%EC%82%AC%EC%9A%A9%EB%B2%95 를 클릭!! - 끝 - 2017. 4. 18.
curl http/2 ENVMac OS 10.12 TEST를 위해 curl http/2 지원 버전이 필요하였다. $ brew install curl --with-nghttp2 $ brew link curl --force위의 명령을 수행하는데 오류가 아래와 같이 났다.ERRORset the environment variables ZLIB_CFLAGSWarning: curl is a keg-only and another version is linked to opt.Package requirements (zlib >= 1.2.3) were not metyou may set the environment variables GLIB_CFLAGS and GLIB_LIBS to avoid the need to call pkg-config .. 2017. 3. 21.
AVS 가 뭐지? what is AVS? AVS는 아마존의 Alexa Voice Service이다.Cloud를 기반으로 스킬셋을 구현하여 TTS나 STT 등의 인터페이스를 제공하며 third-party에서도 쉽게 사용할 수가 있다.skill set등이 점점 늘어나고 있는 추세이다. IoT도 당근 가능! 또한 Streaming Media 서비스, Localization도 제공 한다. 대충 위의 기능들을 나열할 수 있을 것 같다.소스를 한번 보자. (https://github.com/alexa/alexa-avs-sample-app/blob/master/samples/javaclient/src/main/java/com/amazon/alexa/avs/AVSController.java#L520)public class AVSCont.. 2017. 3. 7.
Google API.AI https://docs.api.ai/docs/key-conceptsAPI.AI is built on a number of concepts. It’s good to understand what they are before trying anything hands-on.Agents correspond to applications. Once you train and test an agent, you can integrate it with your app or device.Entities represent concepts that are often specific to a domain as a way of mapping natural language phrases to canonical phrases that c.. 2017. 2. 20.
About Alexa ALEXA SKILLS ALEXA SKILLS intents / slotintent와 매칭되는 질문들을 목록으로 만들어 제공. SKILLS를 만들 때 고려해야 하는것?타입고려 : 예를 들어 커스텀 스킬은 피자 주문 같은것이고 스마트홈 스킬은 불켜고 끄고 하는 것. 브리핑 스킬은 신문을 읽어주거나 하는 것.시스템과 유저가 상호작용하는 경우 - Request가 덜 채워져있으면 다시 질문하여 의도를 파악 한다. 2017. 2. 17.
go lang Tip. tip_1 ) Test를 하고 싶다면?아래와 같은 사이트가 있는데 이녀석은 테스트에서 사용 되어진다고 한다. 아직 사용해본적은 없지만 사용하게 되면 포스팅 하도록 하겠다.http://goconvey.co/ tip_2) Mac에서 짠 뒤에 리눅스에서 동작하게 하려면?build를 할 디렉토리에서 아래와 같이 env GOOS=linux라고 지정!ex) env GOOS=linux go build tip_3) go에서 패키지 관리는 어떻게 할까?Java에 Maven같은게 있다면 Go는 glide라는 것이 있습니다.https://github.com/Masterminds/glide활용은 https://glide.sh/ 를 참조 또는 아래를 참조!$ glide create # Start a new workspace -.. 2017. 2. 15.
go lang - fresh를 사용해 보자. 이번 내용은 go get 이라는 명령어를 통해 Fresh 라는 것을 사용해 보자.Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file.저장 하면 바로바로 적용이 된다.https://github.com/pilu/fresh 에서 README.md를 참조! Installationgo get github.com/pilu/fresh 실행은 어플리케이션이 있는 곳으로 이동한 뒤에 fresh 라는 명령어를 쳐주면 서버가 기동 되어진다.fresh의 프로세스를 kill을할 때 유의 점으로는 fresh 말고도 runner_build라는것을 kill 해주어야 한다. 2017. 2. 15.
go lang을 해보자. 링크를 통해 OS에 맞는 것을 다운 받는다. (https://golang.org/dl/)home에서 go dir를 하나 만들어준다.다운 받은 pkg를 클릭클릭 하여 셋팅해준다..bash_profile에 환경변수를 잡아준다. # GOPATH export GOPATH=$HOME/go PATH=${PATH}:/usr/local/go/bin:${GOPATH}/bin 5. go 라는 명령어를 통해 잘 깔렸는지 확인.Go is a tool for managing Go source code. Usage: go command [arguments] The commands are: build compile packages and dependenciesclean remove object filesdoc show docume.. 2017. 2. 3.
반응형