목록전체 글 (164)
Pure Software Engineer :)
지난해에 이어서 두번째로 참가하게 된 63빌딩 계단 오르기 대회. 지난 대회 후기는 여기에서... 어쨋든 이번에는 지난번보다는 기록을 단축시키는것도 목표였지만 10분안으로 끊어보자는 목표도 있었다. 두번째 대회라고 나름 여유를 부르고 그랬던지, 이번에는 사진도 별로 안찍었다. 작년과 같이 이색복장 이벤트로 참가하신분들도 많았고 조세호, 이국주, 나나, 써니와 같은 연예인분들도 와서 TV프로그램 촬영차 왔던데... 그냥 그렇구나 생각하고 사진은 안찍었다. 그래도 출발전에 화이팅을 다짐하며 한장 찍고 대회 시간이 되어 간단히 몸을 풀고 출발! 10분안으로 들어오기위해 페이스를 계산했을때 1분에 6층을 올라가야 했고, 그러면 2분에 12층을 올라가야 했다. 그런데 12층에 가서 시계를 보니 아직 1분대였다. ..
리눅스 vi editor로 코딩하는게 익숙해서윈도우에서 gVim으로 개발하고 있다. gVim으로 파일을 저장하다 보니, 소스코드에 계속 BOM(Byte order mark)가 들어가는 현상이 있었다.이를 해결하는 방법은 생각보다 간단했다. // bom이 있는지 확인:set bomb? // bom 제거:set nobomb 이후에는 vimrc 파일에 set nobomb을 설정해놓고 사용중. Referenceshttps://wincent.com/wiki/Remove_BOM_marker_from_file_with_Vim
The literal 0 is an int, not a pointer. // three overloads of f void f (int); void f (bool); void f (void *); f(0); // call f(int), not f(void *) f(NULL); // might not compile, but typically calls f(int). Never calls f(void*) This counterintuitive is what led to the guideline for C++98 programmers to avoid overloading on pointer and integral types. That guideline remains valid in C++11, because,..
int x(0); // initializer is in parentheses int y = 0; // initializer follows "=" int z{0}; // initializer is in braces The use of an equals sign for initialization often misleads C++ newbies into thinking that an assignment is taking place, even though it's not. Widget w1; // call default constructor Widget w2 = w1; // not an assignment; calls copy ctor Widget w1 = w2; // an assignment; calls co..
C++은 이제 더이상 예전의 C++이 아니다. C++11 표준이 발표되고 C++14도 곧 나올것같은 상황에서 계속 공부를 하지 않으면 이게 C++ 코드나 맞나? 싶을 정도로 새롭게 변화하고 있다 Effective C++에 이어 C++11, C++14를 위한 Effective Modern C++이 최근 출간되었다. 우선 항목부터 정리해보고 조금씩 읽어 보자. 1. Deducing Types Item 1: Understanding template type deduction Item 2: Understanding auto type deduction Item 3: Understanding decltype Item 4: Know how to view deduced types 2. auto Item 5: Prefe..
Open Platform을 준비하면서 최근 OAuth 2.0 스펙을 공부하고 있다. RFC문서를 중심으로 보고 있는데, 내용을 조금씩 정리하고자 한다. Roles resource owner 리소스 소유자, 실제 리소스는 resource server에 존재 resource server Resource owner의 리소스를 가지고 있는 서버 client Resource owner를 대신해서 리소스에 접근하려는 제3의 Entity authorization server client를 인증해서 Resource owner를 대신해서 resource server에 요청할 수 있도록 access token을 발급하는 주체. 때로 resource server와 authorization server는 동일한 entity가..
회사에서 일을하면서 최근 Redis를 사용할 일이 생겼다. Redis는 key, value storage로 value로 다양한 자료구조를 제공한다는 장점이 있다. 어떤 자료구조를 사용하느냐에 따라 연산을 얼마나 빨리 수행하는지가 핵심이다. 여기서는 내가 사용할 자료구조와 자료구조를 통해 redis에 접근하기 위한 몇가지 연산들을 까먹지 않게 정리하고자 한다. set saddadd one or more members to a set sismemberdetermine if a given value is a member of a set smembersget all members in a set sremremove one or more members from a set hash hgetallget all the..