기본 콘텐츠로 건너뛰기

10월, 2017의 게시물 표시

[tip] c++ std::wostringstream, std::ostringstream gabage char

// release build is ok, only debug build std::wostringstream stLog; stLog << L"test"; // sometime gabage char in debugging view or string. // add to 'std::ends' stLog << L"test" << std::ends; // caution: solution but write null char in file. // convet to 'std::wstring' std::wstring strValue = stLog.str(); // solution... but, Debugger string --;;;; // check below setlocale(LC_ALL, "");

PostgreSQL 을 맥에서 설치하는 2가지 방법.

homebrew를 이용해서 설치를 했는데, 항상 웹서비스를 할 것이 아니라서, 이렇게 할 필요가 있나 생각했는데, PostgreSQL에 PostgreSQL.app 앱이 별도로 있어서 이건 왜 있나 했더니, 나처럼 필요한 경우에만 동작하고 필요없으면 끄고자 하는 경우에 쓰면 좋을 것 같다. 우선은 Postgresql.app 을 써서 사용해 보고 나중에 HomeBrew로 다시 설치해서 데몬으로 동작하고자 한다. 아래는 참고 링크 링크: http://jonnung.blogspot.kr/2014/12/osx-postgresql-install.html https://rorlab.gitbooks.io/railsguidebook/content/appendices/postgresql_install.html OS X 에서 Postgresql 설치하는 두가지 방법