목록전체 글 (10)
일기장
요구사항) Python2 >= 2.6 or Python >= 3.2 or PyPy $ python3 --version Python 3.6.9 1. 아래 링크에서 최신 파일을 다운받는다 https://github.com/fail2ban/fail2ban/releases 2. fail2ban 설치 스크립트 실행 $ curl -OL https://github.com/fail2ban/fail2ban/archive/0.11.1.tar.gz $ tar -xvzf 0.11.1.tar.gz $ cd fail2ban-1.0.1 $ sudo python setup.py install #설치확인 $ fail2ban-client -h 3. fail2ban 시작/등록 $ sudo cp files/debian-initd /etc/..
우분투 20.04는 php7.4가 레포에 이미 등록되어 나온다 $ sudo apt update $ sudo apt install php php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath $ sudo apt-get update $ sudo apt-get install curl $ sudo curl -s https://getcomposer.org/installer | php $ sudo mv composer.phar /usr/local/bin/composer 데이터베이스(postgresql)를 설치한다 https://browndwarf.tistory.com/58 ht..
1. app gradle에 databinding 추가 buildFeatures{ dataBinding = true } 2. 기본적인 ViewModel과 Data Class 작성 class MainViewModel: ViewModel() { private val _postList = ListLiveData() val postList: LiveData get() = _postList … } data class PostModel ( val postId: String ) 3. RecyclerView에 databinding (posts 속성은 아래 BindingAdapter로 추가) 4. RecyclerView에 사용될 Item xml 작성 … 5. Binding된 변수의 변화를 RecyclerViewAdapte..
도커로 php cms인 그누보드 서버를 만들어보자 글에서 사용한 도커 버전 $ docker -v Docker version 19.03.7, build 7141c199a2 선택] 사용할 도커 이미지들을 미리 pull 해준다 $ docker pull nginx $ docker pull mariadb $ docker pull php:7.4.3-fpm 그누보드는 gd, mysql, iconv php플러그인이 따로 필요해서 Dockerfile과 docker-php-extension-installer로 설치 *iconv는 php 기본 이미지에 설치되어 있다 ./Dockerfile FROM php:7.4.3-fpm ADD https://raw.githubusercontent.com/mlocati/docker-php-..
1. Nvidia 그래픽 드라이버 설치 https://www.lesstif.com/pages/viewpage.action?pageId=82214982 Ubuntu Desktop 에 NVidia driver 설치 개인적인 필요때문에 익숙하지 않은 Ubuntu Desktop 18.04 LTS 버전을 PC에 설치했는데 Nvidia 정식 드라이버가 아닌 nouveau 라는 드라이버가 설치되어 있더군요. www.lesstif.com 2. localtime 사용 (dual boot시 필요) https://www.howtogeek.com/323390/how-to-fix-windows-and-linux-showing-different-times-when-dual-booting/ How to Fix Windows and..

FluentWPF는 윈도우10 의 main theme 인 acrylic theme을 WPF 프로젝트에 적용하기 쉽게 해주는 패키지이다. 사용법 1. WPF 프로젝트에 FluentWPF Nuget 패키지를 설치한다. 2. XAML 네임스페이스를 추가한다. xmlns:fw="clr-namespace:SourceChord.FluentWPF;assembly=FluentWPF" 3. App.xaml 에 ResouceDictionary 를 추가한다. 사용 properties Property Name Type Description TintColor Color 반투명한 아크릴색 get / set TintOpacity double 아크릴 색의 투명도 get / set NoiseOpacity double 윈도우 배경 잡음..