Friday, January 21, 2011

a small fact to make our life 100% successful


I first know about success calculation 7 years ago, I was a high school student and my cousin, HR professor, showed me this, she explained to me how to be 100% successful. now I remembered it and it's a bit funny

If
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
is equal to
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

how to make our life 100% successful?

Luck?
L+U+C+K = 12+21+3+11 = 47%

Love?
L+O+V+E= 12+15+22+5 = 54%

Skills?
S+K+I+L+L+S = 19+11+9+12+12+19 = 82%

Knowledge?
K+N+O+W+L+E+D+G+E = 11+14+15+23+12+5+4+7+5 = 96%

Hard Work?
H+A+R+D+W+O+R+K = 8+1+18+4+23+15+18+11 = 98%

none of them makes 100%

then what makes 100% ...

Money?

Leadership?

every problem has a solution, only if we perhaps change our "ATTITUDE". it is our ATTITUDE towards life and work that makes our life 100% successful..

A+T+T+I+T+U+D+E = 1+20+20+9+20+21+4+5 = 100 %


btw, you'll find another 100% like discipline, but it's really your attitude which leads to 100% success

Saturday, January 15, 2011

How to make a new CUDA project in VS 2010

Update: How to make a new CUDA project in VS 2012

hey CUDA programmers, here a few steps to make a new CUDA project on visual studio 2010 to run the same as we do in visual studio 2008.

I tried it and worked, assuming of course you're already running CUDA, and you have SDK and tools installed...

first you must do this once:
copy files "Cuda.props, Cuda.targets, and Cuda.xml" to:
C:\Program Files\Microsoft Visual Studio 10.0\VC\VCProjectDefaults
special thanks to Ade Miller for the files


then:
1- create a New Project -> C++ Win32 Console Application -> Empty Project

2- mark the project in the Solution Explorer, then select Project menu -> Build Customizations... CUDA 3.2 or whatever version you're using

3- right click the project in the Solution Explorer and select Properties

4- select General and set the Platform Toolset to v90

5- select VC++ Directories and add to Include Directories:
C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 3.2\C\common\inc

6- select Linker -> General and add to Additional Library Directories:
$(CUDA_PATH)/lib/$(PlatformName);../../common/lib
and
C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 3.2\C\common\lib

7- select Linker -> Input and add to Additional Dependencies:
cudart.lib


8- select Custom Build Step -> General and add to Additional Dependencies:
C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 3.2\C\common\inc

9- now add your .cu file

your comments are welcomed

Thursday, January 6, 2011

On Reading the Koran - Nice TED Talk by Lesley Hazleton

Lesley Hazleton sat down one day to read the Koran. And what she found -- as a non-Muslim, a self-identified "tourist" in the Islamic holy book -- wasn't what she expected. With serious scholarship and warm humor, Hazleton shares the grace, flexibility and mystery she found