Friday, September 6, 2013

Define Home

Cambridge Dictionary says: "a property that you can buy or sell"

George Carlin says: "is just a place to keep your stuff while you go out and get more stuff"

some say home is where your family is

some say home is where your friends is

some say home is where your mom is

some say home is where your wife is

some say home is where the heart is

some say home is where you were born

some say home is where you feel safe

some say home is where your good memories are

some say home is where you can poop as long as you wish

I define it as: "something you think it's coming when you are young... and it's gone when you're old"

so, how you define home?

Sunday, May 12, 2013


I'm confused; really confused...

thinking about all the decisions I've made and creating scenarios that would never happen

annoying my self with things I wasted then I discovered they weren't meant to be mine

reconsidering the chances I missed and how that would have changed my life

my personality, my feelings, my thoughts are confusing me

is that what I wanted to be, or at least what I imagined myself to be?

is it better to have a regular routine or a messy crazy life?

am I seeking stability or enjoying my rocking chair?

what about the people who are in my life and they don't matter anymore?

what about the things I used to love and all of a sudden I don't care at all

I believe that I'm set on a path with some free choices

but anyway I will make these choices away from the conditions

Life can only be understood backward, it must be lived forward

Sunday, February 17, 2013

How to make a new CUDA project in VS 2012

this post is an update for How to make a new CUDA project in VS 2010 but this time for 2012

I'm using Windows 8 64-bit with Microsoft Visual Studio 2012, and Nvidia CUDA 5.0

first you must do these steps once:

1- copy files "CUDA 5.0.props, CUDA 5.0.targets, CUDA 5.0.xml, and Nvda.Build.CudaTasks.v5.0.dll" to:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\BuildCustomizations

2- copy "host_config.h" and replace the one in:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include

3- copy "usertype.dat" from:
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\doc\syntax_highlighting\visual_studio_8
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE

4- in Visual Studio 2012 IDE Select Tools menu -> Options -> Text Editor -> File Extension
type "cu" under Extension and select "Microsoft Visual C++" from Editor list and click Add

then these steps are for creating a new project:

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 5.0 or whatever version you're using

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

4- select VC++ Directories and add to Include Directories:

5- select Linker -> General and add to Additional Library Directories:

6- select Linker -> Input and add to Additional Dependencies:

7- now add your .cu file

hint: include 
#include "cuda.h"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
because Visual Studio will give you error for some CUDA keywords but will compile fine

your comments are welcomed

special thanks to Angga Reza Fardana for modifying the files and to Ade Miller too

Thursday, January 3, 2013

Are Religions Holding Us Back?

 over the years, people used to blame their failure over many things; bad luck, crazy weather, stupid people around, and many other lame reasons...
one of the reasons they are blaming on it now, is religion, or let me be more specific "being religious"

first of all, I'm Muslim, by born in a Muslim family, and now by free choice

over the history governors used religions to control their people, away from that all religions don't approve that way of control
religious men thought they are better humans, they should lead and people should "blindly" follow

when Galileo Galilei discovered that "that the sun does not circle the earth but the earth circles the sun" the church banned his ideas and was condemned by the Catholic Church for "vehement suspicion of heresy"

Leonardo da Vinci although he painted the most famous religious painting in history, he was an enemy of the church. because of his weird research and not-familiar inventions, dead bodies dissection, he was a truth-seeker, and the roman catholic church in the middle ages tended to imprison, torture, and execute truth-seekers, he was accused of being homosexual and
brought to trial for sodomy and the church sponsored persecution.

these are two of the most famous examples along with the famous bath forbidding issue...
how is this related to Christianity?

now Islam is experiencing a similar issues now, Muslims are using Islam to control people...
some countries are beating people to pray, while the prophet was asked "exhort your people to pray, and patiently adhere to it"

others ban photography while "al-Ḥasan ibn al-Haytham" aka Alhazen, is considered the god father of this science and he was a Muslim too

Ibn al-Nafis was the first to the first to describe the pulmonary circulation of the blood, and now people prohibit dissection of human bodies

in the middle ages, which was considered dark ages, people traveled from Europe to learn Arabic and study modern science, those were times when we understood religion

now if religious men couldn't understand it they ban it, and this problem extended to Science, Economy, and almost all fields of life, why you can judge that something is prohibited if you're not qualified to say so

religions are meant to push us forward to reach highest virtues and asked us to read and think not to blindly follow. religions are meant to pursue peace not to ignite hatred

please don't blame it on religion, blame it on not-so-true understanding