본문 바로가기

분류 전체보기

리눅스 시간대 변경 AWS EC2 linux instance를 사용하다보면 availability-zone과 상관없이 시각이 전부 UTC 기준으로 맞춰져있어 불편할 때가 있다. 이를 다음의 명령어로 한국 표준 시간대로 변경한다. sudo rm /etc/localtime sudo ln -s /usr/share/zoneinfo/ROK /etc/localtime 이 때, /usr/share/zoneinfo 아래에 원하는 지역(이 경우 ROK)이 있는지 확인해야 한다. 더보기
In-app purchase 정리 *iTunesConnect가 변경되었기 때문에 사용자를 추가할 때 단순히 tester를 추가하는 것이아니라 sandbox tester로 추가해야 됨 link: http://stackoverflow.com/questions/19556336/how-do-you-add-an-in-app-purchase-to-an-ios-application How do you add an in-app purchase to an iOS application?up vote46down votefavorite66How do you add an in-app purchase to an iOS app using XCode 5 or 6 using iOS 7 or 8? What are all the details and is there an.. 더보기
Daikon(C/C++ 테스트용) 설치과정 OS : CentOS 6.6(x86_64) 0. Linux에 JAVA가 설치되어있는지 확인한다.설치되어있지 않으면 다음 과정을 통해 설치 다운로드 및 설치cd /opt/ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u71-b14/jdk-7u71-linux-x64.tar.gz" tar xzf jdk-7u71-linux-x64.tar.gzcd /opt/jdk1.7.0_71/ alternatives --install /usr.. 더보기
BAP 설치 시 유의사항 OS : Ubuntu 14.04 32-bit - 설치 관련sudo apt-get install ... 혹은 Ubuntu Software Center에서 다음을 설치 g++ (g++ 오류)gawk (오류는 없음)ocaml-native-compilers (ocamlc 오류)camlp4-extra (camlp4of 오류)ocaml-findlib (ocamlfind 오류)camlidl (camlidl 오류)libcamomile-ocaml-dev (camomile 오류)binutils-dev (bfd 오류)libpcre-ocaml-dev (PCRE 오류)zlib1g-dev (zlib 오류)libcreal-ocaml-dev (GMP, MPIR 오류)liblablgtk2-gnome-ocaml-dev (lablgnom.. 더보기
binCFI 설치과정 문제점 1. Can't locate Switch.pm in @INC... $ cpan-> cpan setup을 진행한다. $ cpan App::cpanminus $ cpanm Switch 2. {$PROJECT_HOME}/intercept_glibc/ibc.so.6 가 없는 문제->{$PROJECT_HOME}/intercept_glibc/ 디렉토리에 가서 make를 실행 3. katana 관련 점검사항(1) {$PROJECT_HOME}/python_rw/config 파일의 katana 관련 설정에서 디렉토리명이 아닌 파일명을 설정e.g.) /home/hongjp/cfi/cfi_no_svn/katana_pkg/katana(2) modify_elf.py 실행 중 katana에서 멈춤-> {$PROJECT_HOME}.. 더보기
(작성중)Libvirt/KVM/Qemu에 관하여 1. Libvirt: http://libvirt.org/Anatomy of the libvirt virtualization library (IBM, 2010) Libvirt는 하이퍼바이저 불가지론적인 API(hypervisor-agnostic API의 직역. 이 API로는 하이퍼바이저 밖의 일을 알 수 없기 때문에 이런 표현을 쓴 것 같음)를 제공하여 host에서 실행중인 guest OS들을 안전하게 관리할 수 있도록 한다. Libvirt 자체가 추상화의 개념하에서 만들어졌으며 하이퍼바이저가 제공하는 일반적인 기능들에 대한 공통의 API를 제공한다. Libvirt는 애초에 Xen을 관리하기 위한 API로 만들어졌으나 여러 하이퍼바이저를 지원하도록 확장되어왔으며, Redhat에서 개발했다. 기본 구조 Li.. 더보기
AVAssetExportSession 을 이용한 비디오 transcoding(stackoverflow) What is the best way to transcode a video in objective-c (iOS)?up vote3down votefavorite2I would like to, depending on the device and the settings in my application, transcode a video to a specific video format. For an example, if the user has an iPhone 4S and chooses medium settings in my application I would like to convert the video to 540p before I start processing. If he chooses high then I .. 더보기
Boolean satisfiability problem In computer science, satisfiability(SAT) is the problem of determining if there exists an interpretation that satisfies a given Boolean formula. In other words, it establishes if the variables of a given Boolean formula can be assigned in such way as to make the formula evaluate to TRUE. Equally important is to determine whether no such assignments exist, which would imply that the function expr.. 더보기
EC2로 git 서버 구축하기 1. AWS에서 EC2 instance를 만든다. (ubuntu로 진행)2. sudo su3. apt-get install git4. 다음 명령어로 git 전용 사용자 계정을 만든다.# useradd -m -d /home/git -u 1005 git5. git 계정으로 shell에 접속하는 것을 막기 위해# usermod -s /usr/bin/git-shell git명령어로 git의 /bin/bash를 /usr/bin/git-shell로 바꾼다.6. /etc/shells 파일의 마지막 줄에 '/usr/bin/git-shell' 을 추가한다.7. 다음 명령어로 COMMAND_DIR 환경변수에 해당하는 디렉토리가 존재하도록 한다.# cd /home/git# mkdir git-shell-commands# ch.. 더보기
Background로 실행직후 stopped가 뜨는 현상 해결하기 php를 background로 띄우려고 $ php some_code.php & 와 같이 실행하고 나면 곧바로 '[1]+ Stopped php some_code.php'처럼 프로세스가 멈춰버린다. 이는 php://stdin에서 입력을 기다리고있기 때문인데, 다음과 같이 실행시켜주면 일단 실행은 된다. $ php some_code.php < /dev/null & 더보기