Friday, January 2, 2015

Gelukkig Kids

Wow ! Kids have animations made specifically to attract them into coding and formulating electronic projects. Raspberry Pi is fricking cool , Here is the video

(Some browsers doesn't show the video attached. you can just click here or type in Raspberry Pi Lets get physical) 


First you get to learn how to use a Linux based operating system that might inspire you to build an operating system , kick Windows out of the way..or at least know that there are other operating systems than Windows and MAC. Raspberry Pi includes tons of programs that can get kids into coding with an easy start up. And it is as cheap as 25$

I became aware that coding is a science and a profession when I was 19 years young. The only thing I encountered earlier was editing my posts in forums using HTML (no it wasnt html!) and maximum of what I failed to encourage my self to gravitate out of procrastination at age of 13 years young, was Web design via the obsolete Microsoft FrontPage (discontinued since 2003).

Although, I owned consoles varying from Family game, Sega , GameBoy, Playstation 1 and 2 .. I played Atari for a while too.. I never had it in my consciousness that actual game geeks as I was, are the ones who designed the concole's electronic circuit,, designed and designed those games, worked concepts with teams, sketched, developed stories , marketed and became millionaires out of it. I never imagined it is possible or it exists till I found out that some colleges gives bachelor in gaming and there are artisits who sketch merely for gaming. But the first turning point was when I met this dude who played SuperMario, then he tried to code a game due to overwhelming inspiration he got of that game, And he was just 9 years old in 1990!

Family Game 

I ended up reducing gaming at early age to be a (good) person, (good) student (This idea is what society sold me). And later on, In particular, I guess I completely stopped gaming just so to be the cool boy and not be laughed at and categorized as the gamer nerd who is all the time at home gaming! or maybe it was because of puberty (exploring new things).. or neither. @@


I happened to use Google when I was 18.. It all came late, its not that I have seen PC late :D But actually it is Late, I worked with a Gentlman who has been programming since 1970.. (speaking of punched cards!! )

I owned a Computer for the first time at age of 9 years old in 1998, Thanks to my Dad's vision. At the time, there was no Youtube to visualize my science classes or see history movies (I loved history) . There was no Youtube to visualize the three Laws of Motion by Isaac Newton or accessibility to dozens of cool videos that makes math fun. I didn't have Cosmos by Niel Degrasse Tyson that summarizes modern science in the coolest way possible. I was merely busy learning how to type, use Microsoft Word and when I was done, I thought I am a computer guru. Haha my my my !!

People tend to limit life by saying, If you are good in math .. you can be an engineer. Watch the animation I posted, That is engineering.  It is fun ,.. being a child ,.. being curious ,..being mischievous..No matter how old you are

I highly recommend you to get the collection of Cosmos and get a Raspberry Pi or Arduino. Get it for yourself or gift it to a kid. A number of them might as well end up inventing a revolutionary product or might not :D

To clarify , kids are who ever is below 88 :D

Sunday, December 21, 2014

The Inexplicable Univese Unsolved Mysteries

Tyson commenting on the question" Why adults need science books more then children?"

"Children were born inquisitors of their natural world. 
They turn over rocks, jump in puddles, They pour water down your back. They do things that you can look at it as reeking havic in the house. 

We can look at it as long series of science experiments. Some of them gone playfully wrong but nonetheless, explorations to the natural world. 
What happens is ..over time ..Adults gets it beaten out of them; because that is not a sign of obedience, That is a behavior of disarray. Plus, adults far out number children. So, I think the real problem in the world is Adults. Especially, since they control the world, not the kids."

No one wraps the Universe artistically as much as Astrophysicist Niel Degrasse Tyson. I hope you'll enjoy the video....
Happy Holidays

(Seems like the link is removed from youtube due to copy rights. If you are interested in the lucture, look up "The inexplicable universe unsolved mysteries or click here)

Friday, November 21, 2014

TI SensorTag Coordination

In this post, I'll be talking about the SensorTag CC2541 triaxial (3 axes) KXTI9 coordinates and

and how to convert from body frame coordinates to global frame coordinates or which is also called 

earth frame or reference frame. 

When you are starting with Sensortag Acceleromater for phone application developement or
for developing a specific product or to feed your curiousity, You have to do the following
1. Scan through the SensorTag user guide (buhh!)
2. SensorTag Accelerometer GaTT commands or also can be found here and don't use
Gatt commands that are given here  (they are totally wrong ..It got me through hell to recognize 

that....I will get into the details later).

3. look into KXTI9 datasheet 

I'll get into the Gatt commands later on. At the moment coordination is on demand.

Yes, so, well... Lets strip the Tag down

On the left is Sensor tag without casing and ofcourse on the right is with casing @@

Looking closer

KXTI9  chip as given in the datasheet ( and as how it looks in reality :D)

Look at pin 1 (the dot), for reference

And closer 
KXTI9  Coordinates as shown in data sheet. Z+ is pointing towards you 

Now, based on the first photo I posted, This is how the coordinates are (Z+ is pointing at you)

Mounting your SensorTag

I prefer testing the acceleration data when SensorTag is mounted in the following position 

Because the acceleration data will be closer to 0 , if not 0......Except the Z axes will be giving  1g as an output because it is aligned with the global frame.

Why X axis and Y axis ..Closer to 0

As you can see from the casing of Sensortag, it is not sharply straight , it has a slope on it (to contain the coin battery). Therefore, I prefer the position on the left, where the circuit within is more aligned with the table. Yet, I have to admit, I did some tests on other SensorTags, and some gave different values then 0 . So, it might not apply for all SensorTags. I guess the reason is the chip's manufacturing process error or how it is glued on the circuit causing misalignement with the global frame.

Global frame : Also called Earth frame or Inertial frame or reference frame. It has the following coordinate (0,0,1) where 1 is the gravity (9.8 m/s/s). It is also a high assumption in most cases; because it isn't exactly 1 all around the globe; as Earth has a Spheroid shape
(it is almost a sphere, but not quite).

Accelerometer KXTI9 outputs acceleration of the body frame plus global frame in digital hexadecimal format.

Body frame : It is the cooordinate I discuses earlier, coordinate of the chip on the circuit. 

This step is necessary if you want to obtain a clean Accelerometer data without the gravity component. So, you have to align it well with the global frame and get 0 output at the X, Y axes and 1 in the Z axes. If it isn't aligned , the 1g will cross on the X and Y axes and will interfere with their readings.

Wednesday, July 2, 2014

Procrastination antibiotics

Get over procrastination by doing a tiny simple simple basic things and start very easy, One day at a time. You'll be shocked with due time that you have developed a habit without even realizing that..

Here are some examples .. read them to get an overview and choose one.. but you should follow the last two techniques. Use a reminder for that, a piece of paper or a talking parrot .. You might miss a day, but you'll start again :

" Everything has its own place" ...
When you enter your room, by repeating this in your head you'll automatically hang your jacket, put your wallet and keys in its proper place. And in the morning first thing you'll do is prepare your bed sheet when you wake up.

"Just walk"
Take a walk around the block. Or just go jogging for 10 mins, one lap in the park. Or just go to gym , train one muscle ?.

Look into coming concerts or your new coming movie, or seminar, or festival or searching for a course to put you in depth in your field or something else and new....Note the date in your calender...Thus, If you have something to look upto in the future, you'll be more existed thinking about it and working towards it. Better then having a vague dull look into the future.

Hang out with a person who does stuff, who is active and got a routine. Eliminate vampires from your life. You'll be inspired to do things.

"Washing dishes, cleaning your room ? brushing your teeth at night?"
Tell your self, ahh it just takes 2 mins. Put your music on... before its done, you'll be done with your thing. Probably time will pass and you wont recognize you had finished the album because you got caught in the momentum.

Small steps again such as: No drinking liquids while eating food .. Restaurants or fast food ? once a week or a month. An apple a day keeps the doctor away. Every meal must have green. Skimmed products.
Most important first step is to throw away your scale, mirrors and tight clothes. Accept your self and enjoy it... with this you can move on and follow the small steps above. you'll be surprised in the long run.

"Congratulate and not criticize"
With these simple things you have done today, reward your self by feeling happy with this extra step you took today. Building a house takes a concrete at a time, and you have put the first concrete.

"Write doing the good things you did today before sleep"
This will help you condition your self to love your self, see the good you do. With this technique you'll end up accelerating in your habits and seeing the good in other people. Because you'll end up loving your self instead of criticizing your self all the time which will help you also love others. You can only give what you have.

William Shed recited to me once :

 "As I sail through change...
My resolve remains the same..
what I chose are manic moments..
Because ships are safe in the harbour..
But that is not what ships are made for..
The mind could strech much further..
But it seems that is not what our minds are trained for"

I replied him :
owww haeeeeelll naaaaww gimmie a cuppa coffee lemme catch d magic moments!

Thursday, May 22, 2014

Meteor shower

Possible biggest meteor shower in the year. Trails of dust left behind a commet's passage in period 1809 till 1924 will reach our orbit and cause meteor shower.. It will be awesome to witness this. If predictions are right.

NL: Beste om te kijken is kwart voor drie in ochtend 24 mei.

Oman : best time t watch is ... من همه عشان تحصل خبر.
Sources :
Science today Android app

Tuesday, April 8, 2014

برمجة يبالها شوتة روبيرتو كارلوس
أمة مرددة او امة مفكرة ؟ تحفيظ وتلقين او تفكير وبحث؟
خالف تعاقب وتعادى وتلعن وتموت رعب ..او خالف وتعايش وناقش من لزمه الامر وعيش بطمأنينة وثقة.. من دون انفصام
كلنا بشر من آدم, ام نحن ألوان وقبائل وبلادين وجير اوتوماتيك ومذاهب وجير عادي واديان وموديل دجاج رجول

الطفل عالم .. فيزيائي وكيميائي وطيار وأحيائي من الطفولة ان اعطى المجال من اهله والمدرسة التجنيدية في تكسير الغرفة وحرقها وتشويط فيوزات وكسر البيض والقفز من الطابق الثاني

Wednesday, November 27, 2013

From the Desert to Nasa,,

It is wonderful to find an Omani gentleman who made it. A person who hangs out with Sergey Brin co-founder of Google and did work with him. 

NASA which seems as an impossible destination, since they creat the impossibles there... he made it and worked at NASA....

University of East London, one of the top ten universities in UK... He held a position of a senior lecturer..

Patents? above 20 patents he different countries in Europe..

More and more achievements yet he himself has to reveal it more...

What an inspiration Abdullah Al Zakwani..

I wish I could find more about his journey.. Omani and Arab media in general must put more spot light on such people, to awaken the sleep and inspire the ones with ideas and ambition ... I found out about Dr. Abdullah Al Zakwani by coincidence when I was streaming TED videos ! Poor Omani documentaries (if any exist) and media aren't a big assistance in promoting such people. 

However, I salute the people who organized TEDx in Oman ..which started last year in Muscat.. This is a huge step forward...

If you are interested in research and innovation.... and in a succesful person's views and projects ... You'll enjoy his talk on TED 

click here Dr. Abdullah Al Zakwani at TEDxMuscat 2012