이미 작성되어 있는 C++ 의 코드를 C# 에서 사용하기 위해서는 DLL 라이브러리를 만들고, 이를 C# 에서 import를 해서 사용할 수 있다. 기본적으로 이미 라이브러리로 만들어져 배포되어 있던 것을 사용하려고 할 때에는 별 생각 없이 그에 맞춰서 하려고 했지만, 내가 처음부터 dll 로 라이브러리를 만들고 이를 사용하려고 할때, 워낙 방법이 다양하다 보니.. 정확한 방법은 모르겠지만, 우선 나만의 format을 만들면 좋을 듯 하다. 하려고 할 때마다 늘 헷갈리고, 새로운 문제에 걸려서 힘들어해서.. 이를 정리하고자 한다. 우선 Interop에 대한 기본 방법에 대해서 먼저 익혀 두자. 참고 : http://ccambo.blogspot.kr/2013/01/c-interop-c-c-api.html ..
The following sensor data processing techniques have been applied: 1. Noise reduction by removal of outlier data values 2. Noise reduction by applying the moving-average method 3. Application of scaling factors to increment/decrement absolute angles 4. Re-calibration of gyroscope rest-average via sampling 5. Re-calibration of minimal and maximal rest-bound via sampling
프로젝트 실행시 PATH 환경 설정하기. Search MSDN for "How to: Set Environment Variables for Projects". (It's Project>Properties>Configuration Properties>Debugging "Environment" and "Merge Environment" properties for those who are in a rush.) The syntax is NAME=VALUE and macros can be used (for example, $(OutDir)). For example, to prepend C:\Windows\Temp to the PATH:PATH=C:\WINDOWS\Temp;%PATH% Similarly, to ap..
Difference Between newSingleThreadExecutor and newFixedThreadPool(1) Similirity newSingleThreadExecutor returns ExecutorService with single thread worker and newFixedThreadPool(1) also returns ExecutorService with single thread worker. In both case if thread terminates, new thread will be created. Difference ExecutorService returned by newSingleThreadExecutor can never increase its thread pool s..
Java의 final List 객체의 의미는?? final 은 본래 객체의 접근을 변경을 방지하는 한정자로 사용된다. 하지만, List 객체에 있어서는 최초 객체를 생성한 후에 필요에 따라 add, remove 등의 객체 element 변경이 가능하다.. 그럼, List 객체에 있어서 final이 갖는 의미는 무엇인가?? 한번 객체화 시킨 변수에 대해서 다른 참조자를 갖도록 할 수 없다. 즉, reference type의 객체로 한번 지정한 참조에 대한 변경을 허용하지 않는 것이다! 그럼 내부의 element에 대한 변경을 하지 않는 객체를 얻기 위해서는 어떻게 할 수 있을까? 아래 예제의 Nameserver2 를 보면, 기존의 Nameserver 객체를 Collection.unmodifiableList..
자바의 Copy by Reference 개념을 이해하기 위해서 만든 코드임. 또한, 깊은 복사를 이용한 결과 값을 보이는 예제도 함께 구현함. MyObject의 deep clone 구현에서는 wildcard type을 적용함. MyOject 를 상속한 MyObjectExt에 적용될 수 있는 사항도 포함하고 있음. deep clone의 경우에는 MyObject를 상속한 모든 클래스에 대해서 deep clone을 수행할 수 있도록 한다. deep clone시에는 MyObject의 필드 정보에 대해서만 clone을 수행하지만, reflection 정보를 확장해서 더욱 기능을 높일 수 있다. package application; import java.lang.reflect.Constructor; import j..
Application 이 종료될 때 JVM에 의해서 종료되는 Thread를 말한다. 보통 사용용도는 resource manager 또는 service 를 수행하는 중요도가 낮은 역할의 실행을 무한으로 돌릴때 사용한다. 가장 대표적인 예가 garbage collector 이다. Java has a special kind of thread called daemon thread. Only executes when no other thread of the same program is running. JVM ends the program finishing these threads, when daemon threads are the only threads running in a program. Daemon thre..