목록Software Engineering (80)
Pure Software Engineer :)
로컬에서 개발테스트할때 Redis Cluster가 필요한 경우가 있다. grokzen/redis-cluster 이미지 하나만 있으면 3 master / 3slave의 클러스터를 사용할 수 있다. 실행 시 protected mode로 인해 컨테이너 외부에서 접근하지 못할 수 있는데, 템플릿을 수정하고 컨테이너 이미지를 새로 빌드하면 끝. 1. redis-cluster.tmpl 파일 수정 protected-mode no 2. Dockerfile을 활용해 빌드 docker build --build-arg redis_version=7.0.7 -t redis-cluster . 3. 실행 docker run -e "IP=0.0.0.0" -p 7000-7005:7000-7005 redis-cluster:latest ..
b2로 빌드할때 address-model은 32,64 지정 가능 // windows에서 라이브러리 bit확인 (lib, dll) dumpbin /headers xxx.lib References http://codeyarns.com/2014/06/06/how-to-build-boost-for-visual-studio-2013/ http://stackoverflow.com/questions/495244/how-can-i-test-a-windows-dll-to-determine-if-it-is-32bit-or-64bit
SO_KEEPALIVE SIO_KEEPALIVE_VALS References https://msdn.microsoft.com/en-us/library/windows/desktop/ee470551(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/windows/desktop/dd877220(v=vs.85).aspx
1. 삼바 설치sudo apt-get updatesudo apt-get install samba 2. 사용자 비밀번호 설정sudo smbpasswd -a 3. 공유 디렉토리 생성 (필요시)mkdir /home// 4. 삼바 설정 추가/etc/samba/smb.conf 파일 맨 아래에 다음과 같이 추가---------------------------------------------[]path = /home//available = yesvalid users = read only = nobrowseable = yespublic = yeswritable = yes--------------------------------------------- 5. 삼바 데몬 재시작sudo service smbd restart ..
Referenceshttps://github.com/keith/swift.vimhttps://github.com/junegunn/vim-plug
References https://code.facebook.com/posts/1661982097368498 http://www.infoq.com/news/2015/07/facebook-folly-futures
Raspberry pi2를 target으로 리눅스 커널 부팅과정을 스터디 중.이 글은 커널 소스의 Documentation/arm/Booting 문서를 참고하여 작성한 글이다. 부트로더는 다음의 5가지 일을 한다.1. RAM 초기화2. 시리얼 포트 초기화3. Detect the machine type4. kernel tagged list 설정5. kernel image 호출 3. Detect the machine typearch/arm/tools/mach-types에 각 machine별 정보를 파일로 제공한다. # Database of machine macros and numbers ... # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number...prima2_evb M..
Ubuntu 12.04 버전에서 ruby dependency가 있는 다른 package를 설치할 일이 있었는데,ruby 버전이 너무 낮아서 에러가 발생했다. ubuntu 12.04에는 기본적으로 ruby1.8버전과 1.9.3버전이 설치되어 있는듯 하다.apt-get으로 설치하면 1.8 or 1.9.3 버전만 계속 설치되기에 2.* 소스를 받아서 직접 빌드해서 설치했다. 1. 먼저 ruby 이전 버전을 삭제하고$ sudo apt-get purge ruby1.8$ sudo apt-get purge ruby1.9.3 2. ruby 소스를 받아서 컴파일$ wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p481.tar.gz$ tar -xvzf ruby-2.0...