본문 바로가기

분류 전체보기355

[C++11] std::bind 로 unique_ptr 넘기기 될줄 알았죠? 안돼요...ㅠㅠ 이 글을 보면 해결책이 있을줄 알았죠? 없어요...^^ 최소한 C++ 자체 라이브러리 안에서는....ㅠㅠ 아래와 같이 따로 만들면은 됩니다! #include #include #include #include class Caller { public: virtual void run() = 0; }; template class Binder : public Caller { protected: F f_; std::size_t args_count_ = std::tuple_size::value; Tuple tuple_; public: Binder(F f, Tuple&& tuple) : f_(f), tuple_(std::move(tuple)) { std::cout 2019. 9. 4.
std::function 복사는 비싸다! 테스트코드 #include #include #include #include std::function temp_s; std::unique_ptr temp_u; void test_1() { for(int i=0; i 2019. 9. 4.
WinEverywhere: 단축키로 창 찾기 IntelliJ를 써보신분은 아마 Double-Shift로 원하는 소스나 클래스를 찾는 Everywhere기능을 애용하셨을 겁니다. Windows에서도 해당 기능이 있었으면 해서 급하게 만들어 봤습니다. (전 IntelliJ를 열몇개씩 띄어놓고 쓰는 편이라.. 이런 기능이 필요합니다..ㅋ 그리고 급하게 만들었다는건.. 완성도가 떨어진다는 뜻이니..ㅠㅠ 양해부탁드리고 혹시나 직접 기능 추가하신다면 추가 후 PR날려주세요 ^^) github 주소 : https://github.com/jc-lab/WinEverywhere github release에서 다운받으실 수 있습니다. 사용법은 그저... Double-Alt를 누르면 창이 뜨고, 원하는 창 이름을 입력한 뒤 엔터누르면 해당 창으로 이동합니다. Esc를 .. 2019. 8. 31.
자체 메일서버에서 보내는 메일이 스팸으로 갈 때.. https://mxtoolbox.com/domain/ 일단 위 사이트에서 확인해보면 웬만한건 해결방법을 알 수 있다. 나는 몇군데 blacklist가 걸려서 그랬었는데... https://rabbitchris.tistory.com/819 참고하여 해결하였다. 정리하면... SPF, DKIM 설정해야 하고 rDNS (PTR레코드)또한 필수이다. SPF : https://support.google.com/a/answer/33786 DKIM : https://support.google.com/a/answer/174124 PTR레코드 관련.. Kakao https://mail-notice.kakao.com/mboard/notice/7 Daum http://hanmail-notice.daum.net/notice/.. 2019. 8. 29.
SafeNet eToken 5110 RSA는 1024 ~ 2048bit, EC는 256~384bit까지만 지원한다. >pkcs11-tool.exe --module eTPKCS11.dll -M Using slot 0 with a present token (0x0) Supported mechanisms: DES-MAC, keySize={8,8}, sign, verify DES-MAC-GENERAL, keySize={8,8}, sign, verify DES3-MAC, keySize={24,24}, sign, verify DES3-MAC-GENERAL, keySize={24,24}, sign, verify AES-MAC, keySize={16,32}, sign, verify AES-MAC-GENERAL, keySize={16,32}, sign, .. 2019. 8. 14.
SmartCard HSM-DUAL C:\Program Files\OpenSC Project\OpenSC\tools>pkcs11-tool.exe --list-mechanisms Using slot 0 with a present token (0x0) Supported mechanisms: SHA-1, digest SHA256, digest SHA384, digest SHA512, digest MD5, digest RIPEMD160, digest GOSTR3411, digest ECDSA, keySize={192,521}, hw, sign, other flags=0x1d00000 ECDSA-SHA1, keySize={192,521}, hw, sign, other flags=0x1d00000 ECDH1-COFACTOR-DERIVE, keySiz.. 2019. 8. 8.
반응형