Emacs orgmode에서 한글 tex, pdf 출력하기

The title of this post is 'How to export an orgmode doc which contains Korean characters into Tex and PDF'. Assumed only Koreans would read this. Emacs는 현재 24.5.1 버전을 mac, windows. linux에서 사용하고 있습니다. 주로 mac platform에서 사용하고 있는데, 최근 우리말로 작성한 orgmode article을 tex과 pdf로 export하려 했지만 에러가 나거나 한글이 나오지 않는 현상을 … Continue reading Emacs orgmode에서 한글 tex, pdf 출력하기

C# Conditional assembly reference

If you want to include assemblies conditionally upon its preprocessor from c# project, you can use Condition keyword. See the following snippet. xx.csproj <Reference Condition=" $(DefineConstants.Contains('XXX_LIB_OS')) " Include="DRVNAME1, Version=1.1.1.0, Culture=neutral, PublicKeyToken=xxxxx, processorArchitecture=AMD64"> ... </Reference> <Reference Condition=" $(DefineConstants.Contains('XXX_LIB_APP')) " Include="APPNAME1, Version=1.1.1.0, Culture=neutral, PublicKeyToken=xxxxxxx, processorArchitecture=AMD64"> ... </Reference> Then define the constant <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> <DebugSymbols>true</DebugSymbols> <OutputPath> ... … Continue reading C# Conditional assembly reference

Writing a python build script for your Visual C++ project

If you’ve decided to write your own python build script for existing Visual Studio projects, then two questions would probably come up at first. What utility/commands are available for actually building *.sln/*. vcxproj files? How will you specify the appropriate version for your *.rc version resource file? Solution for #1. You can download the MSBuild … Continue reading Writing a python build script for your Visual C++ project

Resolving the LNK2019 error while linking QT app

If you’re developing a QT based application(which links QT libs as statically) and get LNK2019 ‘unresolved external symbol’ link errors when you try to link the other static library, Then you probably start looking those link settings such as, ☐ whether the architecture for the binary is correct(Are you trying to link an x86 lib to … Continue reading Resolving the LNK2019 error while linking QT app

윈도우 드라이버 코드 사이닝 실용 가이드

윈도우 코드 사인은 복잡합니다. 윈도우 코드 사인이 복잡한 이유는 기술의 복잡도가 높아서라기 보단, 그것이 기반으로 하고 있는 윈도우 코드 사인의 정책이 윈도우 버전마다 다르고 복잡해서 일 것이기 때문입니다. 저 역시 커널 드라이버 사인 이슈로 다시 예전 지식을 환기시키려고 노력하다가, 인터넷에서 좋은 글을 하나 발견하게 되었고 원 저자의 허락을 맡아 번역을 하고 그 결과를 이곳에 올리게 … Continue reading 윈도우 드라이버 코드 사이닝 실용 가이드

CppRest SDK(Casablanca) + static CRT link = caution! (might cause debug heap assert)

The C++ REST SDK(Casablanca) is currently only available to link dynamically(DLL) unless you build the library on your own. Here is the link describing the steps to link static to your application by downloading the source code and building it so. If you're using the cpprest sdk and unfortunately encountered the following debug heap assert, you probably made mismatch configuration for … Continue reading CppRest SDK(Casablanca) + static CRT link = caution! (might cause debug heap assert)

Downloading a file on the fly from Flask+sqlalchemy

Following code snippet shows how to implement downloading a file with flask. http://flask.pocoo.org/snippets/32/ def index(): strIO = StringIO.StringIO() strIO.write('Hello from Dan Jacob and Stephane Wirtel !') strIO.seek(0) return send_file(strIO, attachment_filename="testing.txt", as_attachment=True) In case you need to use the snippet to support downloading a file which is stored as BLOB originally and to convert it as a … Continue reading Downloading a file on the fly from Flask+sqlalchemy

Running Python Flask on a local IIS (not Azure!) with wfastcgi.py

There are already a lot of resources dealing with how to setup Django with IIS, or configure IIS to support WSGI with various tools such as Helicon Zoo, isapi-wsgi, and FastCGI. FastCGI looked good among others because I wanted to go with least 3rd party stack and the Microsoft distribute the wfastcgi.py through PTVS. However, there's a still one problem. I couldn't … Continue reading Running Python Flask on a local IIS (not Azure!) with wfastcgi.py

Extending Python with Visual C++ and PTVS

Last month there was a chance I gave a talk explaining how to start the PTVS(Python Tools for Visual Studio) through the MS virtual academy. The talk was live recorded and currently is being shared following URL: http://www.microsoftvirtualacademy.com/training-courses/-ptvs-python-tools-for-visual-studio-python It's Korean though. Throughout the demo, except the very basic examples I also included demos showing how to build a Python extension with … Continue reading Extending Python with Visual C++ and PTVS

Dropbox crash dump quick analysis (on Windows)

I don't exactly remember the last time I installed or upgrade the Dropbox on my Windows 8 laptop, but today one of my application started crashing itself whenever I opened a file open browser within app and it turned out it caused by Dropbox extension after quick analysis of crash dump. Unfortunately re-installing the most recent version doesn't fix the problem so far. … Continue reading Dropbox crash dump quick analysis (on Windows)