본문 바로가기

전체 글382

[JSP] XML declaration allowed only at the start of the document JSP 결과 페이지가 XML일때 브라우저 상에서 제목과 같은 메시지를 자주 보게 된다.이는 XML 윗부분에 whitespace가 추가되었기 때문에 발생한다. 12위와 같은 코드는 newline 이 발생되며, 아래와 같이 제거할 수 있다.1234 2015. 1. 27.
C++ Errors error LNK2019: __imp_WSAStartup12345678910111213LINK : xxxxxxxxxxxxxxxxxxxxx(를) 찾을 수 없거나 마지막 증분 링크에 의해 빌드되지 않았습니다. 전체 링크를 수행하고 있습니다.xxxxxx : error LNK2019: __imp_htons 외부 기호(참조 위치: "public: static int __cdecl ifs::core::wpl::Marshal::encode(void *,unsigned short)" (?encode@Marshal@wpl@core@ifs@@SAHPEAXG@Z) 함수)에서 확인하지 못했습니다.) : error LNK2001: __imp_htons 외부 기호를 확인할 수 없습니다.1>ifs100_test.lib(Marsha.. 2014. 11. 5.
iTerm Tips How to change encoding typePress ⌘ + i in the iTerm window.Click ‘Terminal’ tab.Select what you want in the ‘Character Encoding’ field. 2014. 7. 3.
C++ Multi Platform Issues Little Endian & Big Endianstruct 의 경우 variable의 bit order 변경 뿐 아니라 variable의 순서도 바뀌게 된다. 따라서 아래와 같이 little endian에서 작성된 struct는 big endian machine 에서 역순으로 기술되어야 한다. 1234567891011121314struct _MULTI_PLATFORM_STRUCT { #ifdef _IS_LITTLE_ENDIAN_ // _IS_LITTLE_ENDIAN_ is a custom definition to explain the variable order unsigned int pos : 20; unsigned int weight : 5; unsigned int field : 2; unsigned .. 2014. 7. 1.