# 설치 
sudo apt-get install -y postgresql libpq-dev

# CREATE DATABASE
sudo -u postgres psql -c "CREATE DATABASE [DBNAME]"

# CREATE USER
sudo -u postgres psql -c "CREATE USER [USERNAME] WITH PASSWORD '[PASSWORD]';"

# CREATE ROLE
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE [DBNAME] TO [USERNAME];"

# 외부에서 접속 가능하도록 수정
sudo vim /etc/postgresql/12/main/postgresql.conf
# 아래를 수정
listen_addresses = '*'

감사합니다.

Posted by kkckc
,

Python, Flask 로 소규모 프로젝트를 진행하면서, 어려운 점은 생각보다 괜찮은 샘플이나 내용이 많지 않다는 점입니다.
Stackoverflow에는 썩 괜찮은 답이 없을때도 많고, Official 한 자료 (https://docs.python.org/)가 가장 괜찮네요.

그 외에 아래 블로그를 발견했는데 내용이 꽤 좋습니다.
어떤 분인지 봤더니 O'Reilly 의 'Flasks 웹 개발' 저자네요. (바로 검증 끝이네요)

https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world

감사합니다.

Posted by kkckc
,

다음은 브라우저별 점유율을 보여주는 사이트입니다.

https://gs.statcounter.com/

 

Statcounter Global Stats - Browser, OS, Search Engine including Mobile Usage Share

Tracks the Usage Share of Search Engines, Browsers and Operating Systems including Mobile from over 10 billion monthly page views.

gs.statcounter.com

몇년 전만 해도 국내 웹 환경에서 IE(익스플로어)는 절대적이었는데, 모바일 환경으로의 전환 때문인지 삼성인터넷이 2.85%인게 인상적이네요. (아마 Safari는 아이폰도 포함된게 아닐까요?)

 

브라우저별 점유율은 안정적으로 이어지고 있네요

감사합니다.

Posted by kkckc
,

예전에 Bootstrap 3를 이용해 작성한 디자인 일부를 가져오려고 하니, 디자인이 뭔가 잘 적용이 안됩니다.
Bootstrap4는현재 가장 안정된 버전이지만, 3를 완전히 다시 작성한 버전이고, 하위호환성이 지원되지 않습니다.
Bootstrap5는 Jquery 의존성을 빼고 다시 작성했다고 하네요.  

https://stackoverflow.com/questions/49091275/upgrading-bootstrap-from-3-3-4-to-4-0/49091398#49091398

 

Upgrading Bootstrap from 3.3.4 to 4.0

I used to have my website with Boostrap 3.3.4, and since I moved to Bootstrap 4 everything is broken. Essentially the structure of my website was very simple, a container that contained some jumbo...

stackoverflow.com

npm install bootstrap@3

감사합니다.

Posted by kkckc
,