Saturday, December 3, 2011

The world in Steve Jobs's eyes



When you grow up you tend to get told the world is the way it is and you're life is just to live your life inside the world. 

Try not to bash into the walls too much. Try to have a nice family, have fun, save a little money.

That's a very limited life.


Life can be much broader once you discover one simple fact: 
"Everything around you that you call life was made up by people that were no smarter than you and you can change it, you can influence it, you can build your own things that other people can use."

Once you learn that, you'll never be the same again...

Monday, October 24, 2011

Computer Engineering Presentation

This presentation is divided into 2 parts:
1- Some info about the major, some specialties and work fields
2- General hints to improve your self away from Computer Engineering
hope you like it...

Download

Thursday, September 29, 2011

EgyMobiEd - Egypt Mobile Editor


starting from October, 6, in Egypt, NTRA decided to change the mobile codes, this will increase the mobile numbers from 10 numbers to 11 numbers, with a certain plan for each carrier; Vodafone, Mobinil, and Etisalat... 







imagine if you have, on average, 250 contact, and you need 1 minute to modify each, this would take up to 4 hrs and this is annoying

I made a simple tool that works with a wide range of mobiles, on any Windows PC to edit the contacts with a few steps:

Download
1- copy your contacts to your PC
using bluetooth or your mobile PC suite with cable/bluetooth
"you can search google if you had any difficulty doing this"

now you'll have one file or multiple files on your computer with ".vcf" or ".contact" extenstion 
"this depends on your mobile model and OS"



2- open the "EgyMobiEd" file, you downloaded

 3- click "Browse", and choose the folder where you copied your contacts



4- keep the "Backup" button checked if you need the tool to make a copy of the old contacts just in case


5- click "Modify"
this will do a backup copy in "ContactsBackup" folder and modify the contacts



6- now replace your phone contacts with the modified ones
using bluetooth or whatever you want to use...



* this tool won't modify any landline, fax, email, or any other contact data, also won't affect any manually modified contact according to the new plan
* if you have an old phone you can copy your contacts to your SIM, then do it with another phone

Tuesday, September 27, 2011

Best of Through The Wormhole 1


over the past few weeks I started following Through The Wormhole, an amazing documentary exploring the mysteries of the universe.  I enjoyed it a lot, specially with the deep voice of Morgan Freeman

I collected some of the best quotes and facts from the 1st season, hope you like it...

life is short and time is precious, we have our triumphs, we make our mistakes... if we could go back and correct those mistakes, would we ever learn anything from them?

just because at the moment your ideas are not fashionable or agreed upon, if you believe what you're doing is right, persist

the expansion of scientific knowledge will never fill in all the cracks, there will always be room for faith

just because you can't see something, doesn't mean there's nothing there 

discovery is exciting, but you have to temper that excitement and realize that you haven't proven it yet. so the search must go on

we choose to go to the moon in this decade and do the other things, not because they are easy, but because they are hard
in some research, payoff is just the pure knowledge

the better is the understanding... the simpler is description

to learn how everything around us fits together, we have to break things apart 

to understand how to twist reality, we have have to stop looking and learn how to listen 

there's a young lady named bright, she traveled far faster than light, she left oneday in a relative way, and returned home the previous night

sometimes science consists of cleaning up a lot of stuff, and seeing what's left behind

searching for clues is incredibly difficult, but fortunately, sometimes the clues come to us


the lines separating our real lives from our virtual lives begin to blur

the human brain is about 100.000 times more powerful than a current-day computer

black holes are places where the accepted laws of physics break down

we don't have the mental architecture yet to understand the universe

light beams are responsive somehow to gravity

Albert Einstein saw space and time as a flexible material that could be distorted by gravity

Leonard Susskind is one of the greatest physicists who began life as a plumber and proud of it, his observations about black holes were inspired by plumbing :D

the problem with Einstein theory is 2 descriptions of the same event, and that what relativity is based on

the earth is not rigid; the earth is sort of a squishy, goes up and down by a foot

time and space are tightly locked together

gravity slows time and this is the key to one form of time travel. I remember the aging issue of astronauts

since every bit of space exists here right now that means that every bit of time exists right here right now too

considering that there are hundreds of billions of galaxies, helps us understand the true scale of the universe

singularity; the initial state before the big bang, there was no-where and no-when

gravity can under some circumstances act repulsively and produce a gigantic acceleration

a tiny fraction of a second later after the big bang, the universe had doubled in size 100,000 times

the intersection of 2 planes is a line, and of 3 is a point. so our world is the intersection of 10 dimensions + time

in a clock, the gaps separating seconds makes sense for a second, if there was no gaps, the minute would be only one second

gravity is one of the factors that controls creatures shapes

if aliens from another galaxy were watching us, they will see the earth 1,000 years ago

you can almost look at any technology that we use today as an extension of the human body

humans have been so interviewed with technology for thousands of years already that it's really hard to pull the two apart

fundamental forces: gravitational, electromagnetic, weak and strong; we know the first, we think we understand the second, but we can't take in the other two

all the stars are moving at the same speed, no matter how far from the center of galaxy, unlike planets in solar system

we live in a universe of matter and light; matter that makes us and light that sustains us

Tuesday, August 2, 2011

The 8 Pillars of Innovation


Have a mission that matters
work can be more than a job when it stands for something you care about. you must have the potential to touch many lives.

Think big but start small
no matter how ambitious the plan, you have to roll up your sleeves and start somewhere. we could do an even better job by devoting additional resources to tiny things.

Strive for continual innovation, not instant perfection
our iterative process often teaches us invaluable lessons. act on feedback; it's much better to learn these things early and be able to respond than to go too far down the wrong path

Look for ideas everywhere
if you can't solve it in now, try solving it later. think and rethink. ideas may come while having lunch

Share everything
by sharing everything, you encourage the discussion, exchange and re-interpretation of ideas, which can lead to unexpected and innovative outcomes

Spark with imagination, fuel with data
believe the impossible can become a reality. what begins with intuition is fueled by insights. data can either back up your instincts or prove them totally wrong

Be a platform
believe so strongly in the power of open technologies. they enable anyone, anywhere, to apply their unique skills, perspectives and passions to the creation of new products and features

Never fail to fail
it’s okay to fail as long as you learn from your mistakes and correct them fast. believe that it’s okay to fail can free you up to take risks

edit from a topic by Susan Wojcick and Robert Hanson

Wednesday, July 20, 2011

Friday, July 1, 2011

The Five Freedoms


1- The freedom to see and hear what is here, instead of what "should" be, was, or will be

2- The freedom to say what you feel and think, instead of what you "should" feel and think

3- The freedom to feel what you feel, instead of what you "ought" to feel

4- The freedom to ask for what you want, instead of always waiting for permission

5- The freedom to take risks on you own behalf, instead of choosing to be only "secure" and not rocking the boat

by Virginia Satir

Tuesday, May 31, 2011

Criticizing People


first, I'll admit that I can't stop myself from commenting on any thing, situation, action, ... etc like a young kid.

I know that is socially unacceptable and some people consider me impolite...
but appreciation is a kind of criticizing, you judge something say whether this is good or it is not, we love appreciation and hate criticism

ok, let me tell you that criticizing someone's action or work, doesn't mean in the first place that I don't like him; never... it means I DON'T LIKE WHAT YOU HAVE DONE THIS WAY !!

I'll classify criticizing as I see it:
1- family
2- friends
3- work colleagues
4- public figures
5- people you don't know

1- family: "the soup is salty, mom" then you regret "no naughty kid, you're impolite..."

2- friends: "your beard makes me feel you're a mafia man, shave it" he replies "it's not your business" but "you're my friend"

3- work colleagues: "which stupid one of you did that part of the program?" the victim replies "you're the only stupid" ooh I got him

4- public figures: they receive loads of criticism that can't be handled... so I prefer to be any thing but not a public figure, so I'll skip it

5- people you don't know: someone is smoking in public transport, "please stop... please stop" then you end up by saying "you and assholes like you deserve burning like your cigarettes"

don't judge me by those situations. I only wanna say I love my mom though her salty soup and my friend though his gangster beard and my work colleague though his bad code, and have nothing personal with the smoker in public transport if he's not smoking

your thoughts don’t define you, your emotions don’t define you, your reactions don’t define you

your thoughts don’t define you: "why they are doing this"
your emotions don’t define you, "I hate what they are doing"
your reactions don’t define you, "I criticize what they are doing"

what you think, it's either truth or happiness, but never both

I like criticism, it adds value, it means I did something that deserves attention
I never learned from a man who agreed with me...

Wednesday, April 27, 2011

It's Not About Math


two men meet on the street. they haven't seen each other for many years. they talk about various things, and then after some time one of them says:

"since you're a professor in mathematics,
I'd like to give you a problem to solve....
"

the mathematician: "what problem?"

the father: "you know, today's a very special day for me
all three of my sons celebrate their birthday this very day!
so, can you tell me how old each of them is?"

"sure" answers the mathematician, "but you'll have to tell me something
about them"

"OK, I'll give you some hints" replies the father of the three sons , "the
product of the ages of my sons is 36"

"that's fine" says the mathematician, "but I'll need more than just this"

"the sum of their ages is equal to the number of windows in that building"
says the father pointing at a structure next to them

the mathematician thinks for some time and replies: "still, I need an additional
hint to solve your puzzle"

"my oldest son has blue eyes" says the other man.

"oh, this is sufficient!" exclaims the mathematician, and he gives the father
the correct answer: the ages of his three sons


the answer is simple: "It's Not About Math"

the possible combinations: "from the 1st point"
1 + 1 + 36 = 38
1 + 2 + 18 = 21
1 + 3 + 12 = 16
1 + 4 + 9 = 14
1 + 6 + 6 = 13
2 + 2 + 9 = 13
2 + 3 + 6 = 11
3 + 3 + 4 = 10

unfortunately the 2nd point is distracting... the number of windows was 13

then comes the 3rd point:
my oldest son has blue eyes
no, no, wait... it's:
my oldest son has blue eyes

so
the ages of the three sons must be 2, 2, 9

if we can really understand the problem, the answer will come out of it; because the answer is not separate from the problem

source: How to Solve It: Modern Heuristics

Sunday, April 24, 2011

How Rational Thought Destroys Your Soul?


how rational thought destroys your soul?

could it be about the triumph of irrationality...

and the power that's in that?

you know, we spend a lot of time trying to organize the world;

we build clocks and calendars,

and we try and predict the weather.

but what part of our life is truly under our control?

what if we choose to exist purely...

in a reality of our own making?

does that render us insane?

and if it does,

isn't that better than a life of despair?

it's a course that investigates what drives men to be free,

no matter the cost...

from The Next Three Days

Wednesday, April 6, 2011

Conventional vs. Creative Intelligence


by: Orna Ross

conventional intelligence communicates through thoughts, concepts, opinions and ideas... creative intelligence communicates through feelings, emotions, imaginings and intuitions

conventional intelligence aims to control... creative intelligence aims to allow

conventional intelligence analyzes and critiques... creative intelligence plays and explores

conventional intelligence categorizes... creative intelligence disrupts

conventional intelligence looks out, seeing human reality as material and fixed... creative intelligence looks in, seeing human reality as imagined and co-created

conventional intelligence persuades through intellectual opinion and argument... creative intelligence persuades through story, symbol, and song

conventional intelligence consumes art, writing and music as entertainment... creative intelligence creates art, writing and music as expression

conventional intelligence likes answers... creative intelligence likes questions

conventional intelligence sees failure as avoidable and a defeat... creative intelligence sees failure as necessary and a learning opportunity

conventional intelligence deploys... creative intelligence devises

Monday, April 4, 2011

Life Book


by House Of Bread

Health:
1. Drink plenty of water
2. Eat breakfast like a king, lunch like a prince and dinner like a beggar
3. Eat more foods that grow on trees and plants, and eat less food that is manufactured in plants
4. Live with the 3 E's; Energy, Enthusiasm, and Empathy
5. Make time for prayer
6. Play more games
7. Read more books than you did in the past year
8. Sit in silence for at least 10 minutes each day
9. Sleep for 6 hours
10. Take a 10-30 minutes walk every day... and while you walk, smile

Personality:
11. Don't compare your life to others'. You have no idea what their journey is all about.
12. Don't have negative thoughts on things you cannot control. Instead invest your energy in the positive present moment
13. Don't over do; keep your limits
14. Don't take yourself so seriously; no one else does
15. Don't waste your precious energy on gossip
16. Dream more while you are awake
17. Envy is a waste of time. You already have all you need...
18. Forget issues of the past. Don't remind your partner with his/her mistakes of the past. That will ruin your present happiness.
19. Life is too short to waste time hating anyone. Don't hate others.
20. Make peace with your past so it won't spoil the present
21. No one is in charge of your happiness except you
22. Realize that life is a school and you are here to learn. Problems are simply part of the curriculum that appear and fade away like algebra class but the lessons you learn will last a lifetime.
23. Smile and laugh more
24. You don't have to win every argument. Agree to disagree.

Community:
25. Call your family often
26. Each day give something good to others
27. Forgive everyone for everything
28. Spend time with people over the age of 60 and under the age of 6
29. Try to make at least 3 people smile each day
30. What other people think of you is none of your business
31. Your job won't take care of you when you are sick. Your family and friends will; Stay in touch.

Life:
32. Do the right things
33. Get rid of anything that isn't useful, beautiful, or joyful
34. GOD heals everything
35. However good or bad a situation is, it will change
36. No matter how you feel, get up, dress up and show up
37. The best is yet to come
38. When you awake alive in the morning, thank GOD for it
39. Your inner most is always happy. So, be happy.

Last but not the least:
40. Share this with everyone you care about.

Monday, March 14, 2011

horoscopes - how we are fooled?


this topic was originally some tweets and I collected, edited and rephrased them

I'll share some thoughts about horoscopes and astrology, and how they are completely FAKE

astrology and graphology do not have to be accurate

instead, you simply give people a general statement about personality, and their brains will trick them into believing that it is insightful and individual

horoscopes have fooled millions of people over thousands of years

astrologers can produce any old rubbish providing it is sufficiently vague and flattering

most people will tick the "highly accurate" box

given that the scientific evidence in favor of astrology is less than overwhelming it would be tempting to conclude that

conclusion: "there is no real science associated with a person’s date of birth"

imagine how many birth date records are not true

how much can twins differ though they share the same birth date and the same coincidences, what about a university professor in cambridge and a worker in zimbawabie suffering from AIDS ?!!

astrology means "you can explain or predict fate, personality, human affairs", and this not a science !!

"most people are more than willing to believe anything that puts them in a positive light" so they think in horoscopes

fuzzy future and fear drives you to believe in someone's SMART rephrase of "almost the same shit" and traditions push you towards it

"the most gullible people would rather fool themselves than face up to their gullibility" and this another reason to believe astrologist

sometimes we accept to be fooled and we go to theaters waiting for magicians to fool us...

but "magicians are honest deceivers; unlike most liars, they are completely open about their intentions to cheat"

finally I remember: "if you are one in a million... there are 1300 of you in China" you ain't that special

some of those thoughts are not mine; copied from various books and some online topics...

please reconsider believing this bullshit

Sunday, February 20, 2011

But the emperor isn't wearing anything at all!



dad reminded me of the short tale of The Emperor's New Clothes...

"An Emperor who cares for nothing but his wardrobe hires two weavers who promise him the finest suit of clothes from a fabric invisible to anyone who is unfit for his position or "just hopelessly stupid". The Emperor cannot see the cloth himself, but pretends that he can for fear of appearing unfit for his position or stupid; his ministers do the same. When the swindlers report that the suit is finished, they dress him in mime and the Emperor then marches in procession before his subjects. A child in the crowd calls out that the Emperor is wearing nothing at all and the cry is taken up by others. The Emperor cringes, suspecting the assertion is true, but holds himself up proudly and continues the procession."

in Egypt the oldie said for 30 or may be 59 yrs "life is good" while it was piece of shit and "that's enough" while they got literally nothing and "we should forgive" while they are beaten !!

they tried to transfer this fear to their children, over the generations till we reached a point when the youth began to refuse and discuss. the oldie accused them of being impolite. then the youth said "but the emperor isn't wearing anything at all!".

then the oldie discovered that they were blind or at least fear made them so...

please let your child express himself and teach him how to make a decision and choose freely and don't handicap your children by making their lives easy

Wednesday, February 9, 2011

Freedom Quotes



I'll post here some of my tweets during our revolution which started January 25th, and inspired the whole world...

sorry I couldn't reference each, you can google any to get the author's name. and some are mine of course

courage is not the absence of fear, courage is to move despite your fear

I hate politics and could spend a whole month without reading news, but I adore freedom... even animals seek it

they can whip my body... but not my soul

he who is brave is free

The secret of happiness is freedom. The secret of freedom is courage

Man is free at the moment he wants to be

No one is free when others are oppressed

we prefer liberty with danger to peace with slavery

any existence deprived of freedom is a kind of death

Freedom is never voluntarily given by the oppressor; it must be demanded by the oppressed

only our faith in freedom can keep us free

it's very hard to beat a person who never gives up

remember that we will survive, this is January twenty-five

First they ignore you, then they laugh at you, then they fight you... then you WIN

Fear can hold you prisoner, Hope can set you free

ideas don't die, ideas are bulletproof

in the truest sense, freedom cannot be bestowed; it must be achieved

a slave is one who waits for someone to come and free him, we are free

every battle has its victims, this time they are heroes

if you're not brave, you're not going to be free

nonviolence is a weapon of the strong

we all have to make sacrifices... for the common good

run without a destination, and you'll finally see, what freedom can be

better to die free in happiness than to live caged in fear

They can beat me, torture me, and even kill me. Then they will have my dead body, but not my obedience

Freedom is not the way you speak, or act. It's the way you live your life

True freedom comes when you think, "there is nothing to lose"

everything is theoretically impossible, until it is done

don't walk like u rule the world... walk like u don't care who does

only those who risk going too far can possibly find out how far one can go

success comes in cans; failure in can'ts

Wisdom is knowing what to do next, Skill is knowing how to do it, and Virtue is doing it

emotions never made a better world, it's attitude then thinking and good planing and potential then you can add emotions as a spices

one of the best things is the power to forgive, and accepting your opponent/other's opinion is a bless

justice means crime cannot be tolerated... criminals thrive on the indulgence of society's understanding

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