기본 콘텐츠로 건너뛰기

1월, 2017의 게시물 표시

Book - 유시민 추천 도서

유시민의 글쓰기 특강에 나온 전략적 독서 목록입니다. 글쓰기를 위한 전략적 독서에 적합한 교양서를 유시민씨가 직접 추천한 도서들입니다. 책 순서는 글쓴이 이름순 입니다. 라인홀드 니버, <도덕적 인간과 비도덕적 사회>, 문예출판사 개인과 집단의 행동양태를 분석하고 사회적 정의를 수립하기 위한 방안을 제시한 인문서 『도덕적 인간과 비도덕적 사회』. 이 책은 개인적으로는 도덕적인 사람들도 사회내의 어느 집단에 속하면 집단적 이기주의자로 변한다는 내용을 담고 있다. 개인적으로는 자신의 이익을 희생하면서 타인의 이익을 배려할 수 있지만, 사회는 종종 민족적-계급적-인종적 충동이나 집단적 이기심을 생생하게 보여준다는 것이다.    레이첼 카슨, <침묵의 봄>, 에코리브르 환경 문제의 심각성과 중요성을 독자들에게 일깨워 준 책이다. 저자는 친구로부터 받은 편지 한 통을 계기로 살충제의 사용 실태와 그 위험성을 조사하고, 생물학자로서의 전문지식과 작가로서의 능력을 발휘해 방사능 낙진으로 인해 더욱 절실해지기 시작한 환경 문제의 복잡성을 알기 쉽게 풀어냈다. 더불어 무분별한 살충제 사용으로 파괴되는 야생 생물계의 모습을 적나라하게 공개하여, 생태계의 오염이 어떻게 시작되고 생물과 자연환경에 어떤 영향을 미치지는 지 구체적으로 설명하였다. 리처드 도킨스, <만들어진 신>, 김영사 <만들어진 신>은 신이라는 이름 뒤에 가려진 인간의 본성과 가치를 살펴보는 책이다. 과학과 종교계에 파란을 일으킨 「이기적 유전자」 의 저자 리처드 도킨스의 최신작으로, 미국의 광적인 신앙을 비판하며 무신론자의 자긍심을 높이고자 했다. 저자는 신이 없음을 주장하면서, 오히려 신을 믿음으로써 벌어진 참혹한 전쟁과 기아와 빈곤 문제들을 일깨운다. 과학과 종교, 철학과 역사를 넘나들며 창조론의 이론적 모순과 잘못된 믿음이 가져온 결과를 역사적으로 고찰하고 있...

PHP - Forbidden You don't have permission to access /img/ on this server.

# Set access permission <Directory "/path/to/docroot"> Allow from all </Directory> Apache 2.2 <VirtualHost *:80> ServerName zf2-tutorial.localhost DocumentRoot /path/to/zf2-tutorial/public SetEnv APPLICATION_ENV "development" <Directory /path/to/zf2-tutorial/public> DirectoryIndex index.php AllowOverride All Order allow,deny #<-- 2.2 config Allow from all #<-- 2.2 config </Directory> </VirtualHost> Apache 2.4 <VirtualHost *:80> ServerName zf2-tutorial.localhost DocumentRoot /path/to/zf2-tutorial/public SetEnv APPLICATION_ENV "development" <Directory /path/to/zf2-tutorial/public> DirectoryIndex index.php AllowOverride All Require all granted #<-- 2.4 New configuration </Directory> </VirtualHost>

GitHub - quick start

http://github.com : git hub 설치 git bash에서 다음 수행. > git config --global user.name "Your Name Here" > git config --global user.email "your_email@yourmail.com" : github 가입메일 github.com 에서 repository 만들기 ( https://github.com/username/myproject.git ) git bash에서 다음 수행 : local directory에서 실행 > git init (git status : 상태 확인) > git add filename : git add Readme.txt > git commit -m "Add Readme.txt" github와 local 저장소 연결 > git remote add origin https://github.com/username/myproject.git > git remote -v : 확인 github에 push > git push -u origin master

GitHub - fetch sourcenfiles from Github [github의 소스파일을 새로운 로컬 저장소로 가져오기.]

> 로컬 저장소(새폴더)를 만들다. > git init > git remote add origin https://github.com/heraldx/haFamily.git > git pull origin master > git remote -v origin https://github.com/heraldx/haFamily.git (fetch) origin https://github.com/heraldx/haFamily.git (push

Javascript - get filename

function getFileNameFromPath(path) { var ary = path.split("/"); return ary[ary.length - 1]; } ================================== var unix_path = '/tmp/images/cat.jpg'; console.log(unix_path.split(/[\\\/]/).pop()); var win_path = 'c:\\temp\images\cat.jpg'; console.log(win_path.split(/[\\\/]/).pop());