Monday, June 27, 2011

re: VTK + VS2010

It turns out to be very simple once you have downloaded CMAKE (http://www.cmake.org).

Select the version of VS you have installed in your computer or would like it to be converted to.  Then, click configure and generate.

Thursday, June 16, 2011

openCL + OSX: Introduction

If you are like me always wander, you might wonder how openCL works in OSX.

Luckily, if you have 10.6 or later, your os is equipped with openCL, no need to fiddle through ./configure make and at the end, a bunch of fiery errors.

And, very fortunately, they have sample codes:
http://developer.apple.com/library/mac/#samplecode/OpenCL_Hello_World_Example/Introduction/Intro.html%23//apple_ref/doc/uid/DTS40008187

ENJOI!

Wednesday, June 15, 2011

[recommendation] Mac Research for Scientist

Author(s) of MacResearch for Scientist.  Please allow me to take this opportunity to say "THANK YOU" wholeheartedly.

http://www.macresearch.org/cocoa_for_scientists_part_xiv_beginning_3d_visualization

This is insanely good.

For those who have had footsteps in the academic arena, this is something you shouldn't miss at all.

[ios] Adding a new sound to the Mixer

Adding a new sound to the mixer looks complicated but it's actually quite easy.

Based on the sample project, MixerHost, you will need to make some changes.

0) in MixerHostAudio.h
i) change file number accordingly

1) in MixerHostAudio.m
i) add a new NSUrl to the bundle resource
ii) modify enableMixerInput, such that it knows what to do when an extra input is on
iii) change the busCount accordingly

2) in MixerHostViewController (.h, .m)
i) Add switches and faders accordingly.

Monday, June 13, 2011

re: DICOM LUT for WW/WL-tuning

If you want to know why there's the need for the pointers.... Read below:


The need for the pointer because, you would not need to traverse NxM(width x height), but instead, you probably just need to traverse window_min to window_max.
But initially, you need to set the ptrs of each pixel to the gray_scale arrays.

Email me, if you want more details.  Or leave comments.

Friday, June 3, 2011

Thursday, June 2, 2011

re: AVAudioRecorder to NSData



NSFileManager* fileMgr = [NSFileManager defaultManager];
NSData* dataBuffer = [fileMgr contentsAtPath: [soundRecorder.url relativePath]];



Wala.

Wednesday, June 1, 2011

Buffer Overflow and its exploit

A very good academical reading is here:
http://www.tenouk.com/Bufferoverflowc/Bufferoverflow5.html

Basics of Shellcodes:
http://www.infosecwriters.com/text_resources/pdf/basics_of_shellcoding.pdf