I can't log me in to.. from StartSSL
코모도 SSL 기간이 이제 끝난다. SSL 연장할까하다가 그냥 StartSSL 무료 발급받기로했다. 근데 왠 오류. . https 서비스 제공시 인증서가 필요한데, StartSSL에서 무료로 발행하는 인증서를 사용할 경우, linux, mac에서는 문제가 없는데, windows 크롬에서 Insecure Contents로 인식되어 안전하지 못한 사이트로 인식되는 경우가 있다. 크롬에서는 SHA-1 알고리즘의 인증서를 신뢰하지않고 Insecure Contents에러를 내도록 바뀌었는데, StartSSL에서 SHA-2 알고리즘으로 생성한 인증서를 windows 크롬에서 SHA-1 알고리즘으로 인식하여 Insecure Contents 에러를 발생한다. https://code.google.com/p/chromium/issues/detail?id=473105 https://forum.startcom.org/viewtopic.php?p=21707#p21707 http://serverfault.com/questions/684736/why-does-chrome-on-1-computer-say-my-certificate-is-invalid-insecure
테트리스
#include < stdio.h > #include < stdlib.h > #include < time.h > #include < conio.h > #include < windows.h > #include < mmsystem.h > #pragma comment(lib, "winmm.lib") # define true 1 # define false 0 # define bool int # define BOARD_WIDTH 10 # define BOARD_HEIGHT 20 # define BOARD_X 4 # define BOARD_Y 2 # define DELAY 100 enum ControlKeys { UP = 72, DOWN = 80, LEFT = 75, RIGHT = 77, SPACE = 32 }; static int score = 0; //게임점수 static int level = 1; //게임레벨 static int speed = 180; // 블럭이 떨어지는 속도 int board[BOARD_HEIGHT + 1][BOARD_WIDTH + 2] = { 0, }; // 7개의 블럭 생성 int blocks[28][4][4] = { // ■■■■ { { 0, 1, 0, 0 }, { 0, 1, 0, 0 }, { 0, 1, 0, 0 }, { 0, 1, 0, 0 } }, { { 0, 0, 0,...
C++로 웹서버 만들기
아는 지인이 C++로 웹서버를 만들고있다고해서 궁금해서 자료찾던중에 괜찮은 자료(‘http://tech.tigiminsight.com/2015/10/09/cplusplus-web-framework.html’) 나도 나중에 웹서버를 만들수있는 기회가있었으면 좋겠다. 아니면 팀원들이랑 만들어볼까. .
[Nginx] SSL_CTX_use_PrivateKey_file” “problems getting password error” indicate in Nginx error log 오류
Remove the key pass phrase http://stackoverflow.com/questions/9380403/what-does-ssl-ctx-use-privatekey- file-problems-getting-password-error-indica OpenSSL 기준임.
스타일시트 셀렉터
자꾸 까먹어서 포스팅하게됬다. . . 참고자료(‘http://www.w3.org/TR/CSS21/selector.html%23id-selectors’) Pattern matching In CSS, pattern matching rules determine which style rules apply to elements in the document tree(‘돔트리’). These patterns, called selectors, may range from simple element names to rich contextual patterns. If all conditions in the pattern are true for a certain element, the selector matches the element. The case-sensitivity of document language element names in selectors depends on the document language. For example, in HTML, element names are case- insensitive, but in XML they are case-sensitive. The following table summarizes CSS 2.1 selector syntax: PatternMeaningDescribed in section * Matches any element. Universal selector E Matches any E element (i.e., an element of type E). Type selectors E F Matches any F element that is a descendant of an E element. Descendant selectors E > F Matches any F element that is a child of an element E. Child selectors E:first-child Matches element...
NGINX SSL 설정
작년에 SSL 설정을 따로해놨는데, 이번에 강제이전(?)을 하게되고 재 설정하게되었다. Configuring HTTPS Servers 꽤 잘 설명되있는 문서를 가지고왔다. .key - CSR 자동생성 신청시, 같이 자동 생성된 개인키 (SHA1 알고리즘, PEM 텍스트, 패스워드 없음) .pfx - 개인키+서버응답인증서 패키징된 인증서 (설치시 암호 필요) .pfx.txt - pfx 를 이용해서 인증서 설치시 필요한 해제 암호 .Chain.zip - 설치가 필수인 체인 인증서 모음 압축 파일 server { listen 443 ssl; server_name www.example.com; ssl_certificate www.example.com.crt; ssl_certificate_key www.example.com.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; … }
속도의 선순환 by Randy Shoup
연사 Randy Shoup는 20년 경력의 엔제니어로 대표적으로 eBay와 구글의 엔지니어링 디렉터를 거쳐 현재는 유명 게임회사에서 CTO를 맡고있다. 상당히 인상적인 강연(‘The Virtuous Cycle of Velocity: What I Learned About Going Fast at eBay and Google by Randy Shoup‘)이어서 개인적으로 블로그에 포스팅하게 되었다. 우선 Randy Shoup이 강연에서 제일 강조했던 것은 “A급 개발자” 소프트웨어 기반의 회사는 인재가 곧 회사의 대체 불가능한 자산이며 회사의 운영에도 크게 영향을 미친다. 개발자가 회사에 소중한 존재인 것을 느낄 수 있도록 해줘야 한다. 구글과 이외 메이저 서비스들이 매우 잘하고 있다. 이제 국내도 위에서부터 바뀌고 있긴 하지만. . A급 상위 개발자는 흔히 말하는 하위 개발자의 생산력이 10배 정도 되며 코드 또한 깔끔하다. 아래는 동영상과 PDF자료이다. http://flowcon.org/dl/flowcon-sanfran-2013/slides/RandyShoup_TheVirtuousCycleO fVelocityWhatILearnedAboutGoingFastAtEBayAndGoogle.pdf
nginx 따로 컴파일안하고 Installing optional Nginx modules with apt-get
Installing optional Nginx modules with apt- get(‘http://serverfault.com/questions/227480/installing-optional-nginx- modules-with-apt-get’)
Using GeoIP With Nginx On Ubuntu 12.04
Geoip를 통해서 핸들링할 일이생겨서 웹서버를 통해서 진행했다. 이전에는 스크립트 언어로 처리했는데 이래저래 책을 보니 웹서버에서 처리하는게 가장 효율적이라고한다. https://www.howtoforge.com/using-geoip-with-nginx-on-ubuntu-12.04
Nginx Customize Servername
How To Customize Your Nginx Server Name After Compiling From Source In CentOS(‘https://www.digitalocean.com/community/tutorials/how-to-customize- your-nginx-server-name-after-compiling-from-source-in-centos’) 리스폰받을때 헤더에 서버네임기재되는게 보기싫어서; nginx에 경우는 설정에서 토큰값끄면되는데 그건 버전만 가리는거라서 암튼 이 자료가 필요한사람이있을수있으니 올림. 아니면 모듈 컴파일전에 해당 부분소스를 수정해주면된다.https://forum.nginx.org/read.php?11,1646 nginx 포럼 참고바람.
그림으로 배우는 HTTP & Network
그림으로 배우는 HTTP & Network [HTTP & Network Basic](http://book.daum.net/detail/book.do?bookid=KOR9788931447897) 저자 [우에노 센](http://book.daum.net//search/bookSearch.do?advancedSearchYN=y&author=%EC%9A%B0%EC%97%90%EB%85%B8%20%EC%84%BC) 지음 출판사 [영진닷컴](http://book.daum.net/search/bookSearch.do?advancedSearchYN=y&publisher=%EC%98%81%EC%A7%84%EB%8B%B7%EC%BB%B4&publisherID=PU00387324) | 2015-01-26 출간 카테고리 [컴퓨터/IT](http://book.daum.net/category/book.do?categoryID=KOR33) 책소개 이 책은 웹의 근간을 이루는 HTTP를 중심으로 하여 웹, 인터... 글쓴이 평점
MySQL 기본 명령어
MySQL 접속 C:> mysql -h호스트 -u계정 -p비밀번호 데이터베이스명 예) mysql -hlocalhost -uroot -pdbpass mysql -h는 생략하셔두 됩니다. 데이터베이스 생성 mysql> create database 데이터베이스명; 데이터베이스 보기 mysql> show databases; 데이터베이스 변경 및 접근 mysql> use 데이터베이스명; 데이터베이스 삭제 mysql> drop database 데이터베이스명; mysql을 접속 안한 상태 C:> mysqladmin -u계정 -p비밀번호 drop 데이터베이스명 테이블 생성 mysql> create table 테이블명 (필드명 필드속성(필드길이) 기타옵션); 예) create table test ( num int(11) NOT NULL auto_increment, member varchar(50), system int(2) DEFAULT ‘0’, tdate datetime, PRIMARY KEY (num) ); 테이블 보기 mysql> show tables; 테이블 구조 보기 mysql> desc 테이블명; 테이블 구조 추가 mysql> alter table 테이블명 add 필드명 필드속성(필드크기) 옵션; 예) alter table test add subject varchar(50) NOT NULL DEFAULT ‘No’; 테이블 구조 수정 mysql> alter table 테이블명 change 필드명 변경할필드명 필드속성(필드크기) 옵션; 예) alter table test change subject content text; 테이블 구조 삭제 mysql> alter table 테이블명 drop 필드명; 테이블 복사 mysql> create table 사본테이블명...
단국대 해커톤
http://blog.naver.com/dram2345/220493144570 아, 끝났네 . . . 팀 대회 스케줄 정리하고있는데 . . 하 이렇게 꿀잼허니버터잼들이ㅣ 벌써 사라지다니. .
C. Propagating tree
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output 출처 : 이번 팀원 들이랑 같이 풀 문제 찾고있는 중 발견(‘http://codeforces.com/problemset/problem/383/C’) Iahub likes trees very much. Recently he discovered an interesting tree named propagating tree. The tree consists of n nodes numbered from 1 to n, each node i having an initial value ai. The root of the tree is node 1. This tree has a special property: when a value val is added to a value of node i, the value -val is added to values of all the children of node i. Note that when you add value -val to a child of node i, you also add -(-val) to all children of the child of node i and so on. Look an example explanation to understand better how it works. This tree supports two types of queries: “1 x val” — val is...
구글 입사문제 중에서
Q : 1부터 10,000까지 8이라는 숫자가 총 몇번 나오는가? 8이 포함되어 있는 숫자의 갯수를 카운팅 하는 것이 아니라 8이라는 숫자를 모두 카운팅 해야 한다. (※ 예를들어 8808은 3, 8888은 4로 카운팅 해야 함) A : *1 10,000 에는 8 이 없으니 무시하고, 1 부터 9999 까지 X X X 8 인 경우 : 1,000개 ( X X X 는 세자리이므로 0 0 0 ~ 9 9 9 까지 천개) X X 8 X 인 경우 : 1,000개 ( X X X 는 세자리이므로 0 0 0 ~ 9 9 9 까지 천개) X 8 X X 인 경우 : 1,000개 ( X X X 는 세자리이므로 0 0 0 ~ 9 9 9 까지 천개) 8 X X X 인 경우 ; 1,000개 ( X X X 는 세자리이므로 0 0 0 ~ 9 9 9 까지 천개) 총 4,000 개 *2 파이썬 int count = 0; for(int i =...