AI Programming

AI Programming

Emc2

JF-Expert Member
Joined
Sep 26, 2011
Posts
16,808
Reaction score
16,968
Naomba wana JF tupoeane mawazo kuhusu Artificial Intelligent programming.

Mimi ningependa kushare na nyie simple javascript AI programming.

Title ya hii Application tutaiita "Numerology Relationship" Hii application itajaribu kuoanisha majina Mawili kama yatakuwa na uhusiano.

Tutaanza na theory halafu baadaye practical.
 
Kitu cha kwanza.
Kuzibadilisha herufi zote kuwa Namba.

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

Tuna assume character (,: etc ziwe 27 na namba zote ziwe 28
 
Mfano: Juma = 10+21+13+1 =45

Tuna chukua numerological Numba ambazo 1,2,3,4,5,6,7,8 na 9
Tunaipunguza 45 kuwa ndani ya 1-9
4+5 = 9
Kwa hiyo numerological Juma = 9.

Kitu kinachofuata ni tafsiri za namba.
 
Then ikawaje? endelea nataka kujua.
 
One: The numerology meaning of this number is unity, beginnings, God, masculine, creative, symbol of physical and mental activity. It's a number that expresses leadership, spotlight type individuality. There's a tendency to being organized, and ambitious. One's go to the top in everything that peaks their interest, reflecting a natural leader. They are forerunners and original thinkers. Leadership or a position of power is where they're happiest. Often, they are loners, and can be aggressive. The ambition to succeed can overshadow good judgment. The biggest lesson for one's is to dim that spotlight...sit back sometimes to recognize and appreciate the light in others.
Two: Dualist beliefs, Gnostic. This is a feminine numerology meanings number with traits like yielding, receptive, accepting, forgiving, passive, uncomplicated and stable. But, two's make things or groups function more efficiently. Devotion to truth and simplicity is of major importance. Two'sare the opposite personality to "1's". They are followers, good subordinates and team members. Often too subservient, which others perceive as weak or shy because of their natural gentleness. Because of their natural tendencies towards peace and diplomacy, they can appreciate both sides of an argument and are good mediators. Their path in life is to nurture and make the ideas of others shine...make their systems work. Two's need for peaceful assertion makes their lives work extremely smooth, while others suffer.
Three: Masculine. The Holy Trinity, (father, son, and holy ghost). Three'sare active, harmonious, pleasure–loving, and they bring joy to others in numerology meaning. Many politicians are threes with excellent conversational skills, but they can often be superficial. They give hope to others who see the dark side of things. These shining lights work hard to stop negativity from entering into their lives. The good in something usurps the bad every time. They are born mediators between 1 and 2 to draw them together. Extreme versatility and highly sociable attitudes make them well liked. In partnerships, they are sexually interested and interesting both. Three's meet and live life head on.
Four: Feminine. The number of matter in numerology meanings. Represents 4 seasons, 4 elements, 4 directions, 4 sides to a cube. Four's mirror magical geometry and buildings. They are stable, rigid, sure-footed, determined to reach their goals in a straight line. When things come without effort, fours are uneasy, thinking if it's good it must take hard work. Often they are so focused on their goal they miss the small pleasures of life. These stable, security loving people are often unmoving and dull. They are hardworking, good employees especially in planning, organization and administration. Four's biggest challenge is to find the "middle of the road", so they have balance in their lives.
Five: Masculine. Number of the senses, four limbs and one head make five main projections from the torso. Stars. Also sexual, male (3), female (2).Fives are likely to be restless, lively, adventuresome, quick-thinking, and quick-tempered. They love change and challenge, but take too many risks. It's common for them to act first and think later, which causes stumbling along the path. But, five's are progressive, free thinking, exciting, fun loving and sexual in numerology meanings. Simple everyday life is unattractive to these types. Five's handle unexpected changes and challenges well. Five's goal is to be forever youthful and have a good sense of humor. These traits make them happy and pleasurable company. Freedom is important to them, so stability conscious types would do better to look somewhere else.
Six: Feminine. The combination of the upward male triangle and downward female triangle for the 6 pointed star. Sixes numerology meanings show they possess the nurturing side of womanhood: safe, stable, warm, domestic, and motherly. Sixes are natural homemakers, giving love, warmth and security to their families even if they are a man. They are supportive, harmonious, companionable, responsible, good problem solvers who know life requires adjustments along the way. Sometimes smugness and a self-satisfying attitude can reveal an interfering know-it-all. Sixes major lesson in life is to adapt and adjust to lives changes in themselves and others.
Seven: Masculine. This is the holiest and most magical of all the numerology meaning numbers, possessing strength and psychic ability. Creation and rest in 7 days, 7 pillars of wisdom, http://www.2012-spiritual-growth-prophecies.com/seven-chakras.html7 chakras, 7 stars in the Big Dipper. Seven's are reflective and have a tendency towards mysticism or the occult. This is the number of an introspective individualists who is often a loner. They're highly intellectual, and not materialistic, but somehow money finds them. Not considered social butterflies, seven's are often perceived as cold and distant. It's immaterial, because they are unaffected by the opinions of others. Seven's are disciplined and work well without supervision, which they prefer to team efforts. Often they will escape into daydreaming, needing little rest, relaxation and sleep. Their challenge in life is to seek and understand the Truth. Seven's need to be gentle with themselves though, and learn that being alone is not the same as loneliness.
Eight: Feminine. This is the number of material matters and practicality. But, eights must learn how money can be used for the greater good. This is their numerology meanings challenge. They are a symbol of infinity, which leads to the next life...the eight-fold path away from materialism in Buddhism. Eight's like to accumulate wealth. This number is worldly and hardworking, but often lacks patience and pliability. Eight's are tough, being persistent till they accomplish a task. They make excellent business people, because they like order and making money. Often they lose what they make though. But, they can be ruthless in pursuit of their goals. On the other hand, they are very family oriented, protecting their loved ones. Learning that love, passion and marital commitment are just as much a part of success as material gain is another of their numerology meanings challenges.
Nine: Masculine. A product of 3 x 3 makes nine a powerful number. Nine represents achievement and completion. There are 9 months in pregnancy, 9 initiations during our advancing from a lower stage to a higher stage. In numerology meaning, nine's are achievers, possessing bright ideas, high ideals, and innate abilities. They take the big picture into consideration with their broad visions, global thinking, and universal problem solving capabilities. Their goal is to culminate, complete and finish all endeavors. Nine's are always looking for ways to improve on any situation or project. Traveling to distance places and possibly even having a foreign spouse is all part of a nine's makeup. These high energy people are creative often artistic, but they can be self-centered when it comes to their achievements. Recognition is important, but they will never flaunt their achievements. Nine's biggest challenge as indicated by numerology meanings...is to let go! When something has reached completion...it's outlived it's usefulness. Or, as in the case of a relationship, it may simply be time to end it, which means you have to let it go.
 
Tukisha maliza sasa kupata tafsiri ya kila namba na namna ya kukokotoa tuna kuja hatua ya pili.

kutafuta aina ya relationship ya watu hao wawili

1. Kuoa/kuolewa
2. Urafiki
3. Kibiashara
4. Kimapenzi
5. Kielimu n.k

Tunatengeneza formula ambayo itatuongoza.

ie Y= (Total name1 + Total Name2) * Relationship type
 
Tunabadilisha Relatioship type kuwa Namba

Kuoa/Kuolewa = 6
Urafiki = 4
Biashara = 3
Kimapenzi = 5
Kielimu = 9
 
Mfano Relationship ya kimapenzi ya Juma na Asha itakuwa hivi:-
Juma = 10+21+13+1 =45
Asha = 1 + 19 + 8 +1 = 29

Y = (29+45)*5 = 370 = 3+7 +0 = 10 = 1+0 =1

Kwahiyo Y=1
 
Kwahiyo maana ya relatioship ya kimapenzi kati ya Juma na Asha hii ni:

The numerology meaning of this number is unity, beginnings, God, masculine, creative, symbol of physical and mental activity. It's a number that expresses leadership, spotlight type individuality. There's a tendency to being organized, and ambitious. One's go to the top in everything that peaks their interest, reflecting a natural leader. They are forerunners and original thinkers. Leadership or a position of power is where they're happiest. Often, they are loners, and can be aggressive. The ambition to succeed can overshadow good judgment. The biggest lesson for one's is to dim that spotlight...sit back sometimes to recognize and appreciate the light in others.
 
Nadhani theoretical tumeelewa tunataka kufanya nn.
Ngoja tuanze practically.

Ili kutumia java script tunatakiwa kutumia HTML page.
 
Andika html kama ifuatavyo.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script src="script.js"></script>
<title></title>
</head>


<body>
<table>
<tr>
<td><input name="rdoType" type="radio" value="1" id="ch1" /> <label for="ch1">Kuoa/kuolewa</label></td>
<td><input name="rdoType" type="radio" value="2" id="ch2" /> <label for="ch2">Urafiki </label></td>
<td><input name="rdoType" type="radio" value="3" id="ch3" /> <label for="ch3">Biashara</label></td>
<td><input name="rdoType" type="radio" value="4" id="ch4" /> <label for="ch4">Kimapenzi </label></td>
<td><input name="rdoType" type="radio" value="5" id="ch5" /> <label for="ch1">Kielimu</label></td>
</tr>
</table>
<table>
<tr>
<td>Name 1</td><td><input id="txt1" type="text" /></td>


</tr>
<tr>
<td>Name 2</td><td><input id="txt2" type="text" /></td>


</tr>
<tr>
<td></td><td><input id="btnRetrieve" type="button" value="Evaluate" /></td>


</tr>
</table>
<br />
<div id="result"></div>
</body>
</html>
 
Samahani kidogo ndugu zangu nilitoka kidogo.

Hapo tumetengeneza HTML page hatua inayofuata ni kuteneza faili la javascript linaloitwa "script.js"
 
Ndani ya faili tunaanza kuandika vitu kama ifuatavyo.


function Number1() {
return "The numerology meaning of this number is unity, beginnings, God, masculine, creative, symbol of physical and mental activity. It's a number that expresses leadership, spotlight type individuality. There's a tendency to being organized, and ambitious. One's go to the top in everything that peaks their interest, reflecting a natural leader. They are forerunners and original thinkers. Leadership or a position of power is where they're happiest. Often, they are loners, and can be aggressive. The ambition to succeed can overshadow good judgment. The biggest lesson for one's is to dim that spotlight...sit back sometimes to recognize and appreciate the light in others.";

}

function Number2() {

return "Dualist beliefs, Gnostic. This is a feminine numerology meanings number with traits like yielding, receptive, accepting, forgiving, passive, uncomplicated and stable. But, two's make things or groups function more efficiently. Devotion to truth and simplicity is of major importance. Two'sare the opposite personality to '1's'. They are followers, good subordinates and team members. Often too subservient, which others perceive as weak or shy because of their natural gentleness. Because of their natural tendencies towards peace and diplomacy, they can appreciate both sides of an argument and are good mediators. Their path in life is to nurture and make the ideas of others shine...make their systems work. Two`s need for peaceful assertion makes their lives work extremely smooth, while others suffer."
}


function Number3() {
return " Masculine. The Holy Trinity, (father, son, and holy ghost). Three'sare active, harmonious, pleasure&#8211;loving, and they bring joy to others in numerology meaning. Many politicians are threes with excellent conversational skills, but they can often be superficial. They give hope to others who see the dark side of things. These shining lights work hard to stop negativity from entering into their lives. The good in something usurps the bad every time. They are born mediators between 1 and 2 to draw them together. Extreme versatility and highly sociable attitudes make them well liked. In partnerships, they are sexually interested and interesting both. Three's meet and live life head on.";




}

function number4()
{

return "Feminine. The number of matter in numerology meanings. Represents 4 seasons, 4 elements, 4 directions, 4 sides to a cube. Four`s mirror magical geometry and buildings. They are stable, rigid, sure-footed, determined to reach their goals in a straight line. When things come without effort, fours are uneasy, thinking if it's good it must take hard work. Often they are so focused on their goal they miss the small pleasures of life. These stable, security loving people are often unmoving and dull. They are hardworking, good employees especially in planning, organization and administration. Four's biggest challenge is to find the middle of the road, so they have balance in their lives."
}

function Nummber5() {

return " Masculine. Number of the senses, four limbs and one head make five main projections from the torso. Stars. Also sexual, male (3), female (2).Fives are likely to be restless, lively, adventuresome, quick-thinking, and quick-tempered. They love change and challenge, but take too many risks. It's common for them to act first and think later, which causes stumbling along the path. But, five's are progressive, free thinking, exciting, fun loving and sexual in numerology meanings. Simple everyday life is unattractive to these types. Five's handle unexpected changes and challenges well. Five's goal is to be forever youthful and have a good sense of humor. These traits make them happy and pleasurable company. Freedom is important to them, so stability conscious types would do better to look somewhere else."
}

function Number6() {
return "Feminine. The combination of the upward male triangle and downward female triangle for the 6 pointed star. Sixes numerology meanings show they possess the nurturing side of womanhood: safe, stable, warm, domestic, and motherly. Sixes are natural homemakers, giving love, warmth and security to their families even if they are a man. They are supportive, harmonious, companionable, responsible, good problem solvers who know life requires adjustments along the way. Sometimes smugness and a self-satisfying attitude can reveal an interfering know-it-all. Sixes major lesson in life is to adapt and adjust to lives changes in themselves and others.";


}
function Number7() {

return "Masculine. This is the holiest and most magical of all the numerology meaning numbers, possessing strength and psychic ability. Creation and rest in 7 days, 7 pillars of wisdom, 7 chakras, 7 stars in the Big Dipper. Seven's are reflective and have a tendency towards mysticism or the occult. This is the number of an introspective individualists who is often a loner. They're highly intellectual, and not materialistic, but somehow money finds them. Not considered social butterflies, seven's are often perceived as cold and distant. It's immaterial, because they are unaffected by the opinions of others. Seven's are disciplined and work well without supervision, which they prefer to team efforts. Often they will escape into daydreaming, needing little rest, relaxation and sleep. Their challenge in life is to seek and understand the Truth. Seven's need to be gentle with themselves though, and learn that being alone is not the same as loneliness."
}

function Number8() {

return " Feminine. This is the number of material matters and practicality. But, eights must learn how money can be used for the greater good. This is their numerology meanings challenge. They are a symbol of infinity, which leads to the next life...the eight-fold path away from materialism in Buddhism. Eight's like to accumulate wealth. This number is worldly and hardworking, but often lacks patience and pliability. Eight's are tough, being persistent till they accomplish a task. They make excellent business people, because they like order and making money. Often they lose what they make though. But, they can be ruthless in pursuit of their goals. On the other hand, they are very family oriented, protecting their loved ones. Learning that love, passion and marital commitment are just as much a part of success as material gain is another of their numerology meanings challenges."

}

function Number9() {
return "Masculine. A product of 3 x 3 makes nine a powerful number. Nine represents achievement and completion. There are 9 months in pregnancy, 9 initiations during our advancing from a lower stage to a higher stage. In numerology meaning, nine's are achievers, possessing bright ideas, high ideals, and innate abilities. They take the big picture into consideration with their broad visions, global thinking, and universal problem solving capabilities. Their goal is to culminate, complete and finish all endeavors. Nine's are always looking for ways to improve on any situation or project. Traveling to distance places and possibly even having a foreign spouse is all part of a nine's makeup. These high energy people are creative often artistic, but they can be self-centered when it comes to their achievements. Recognition is important, but they will never flaunt their achievements. Nine's biggest challenge as indicated by numerology meanings...is to let go! When something has reached completion...it's outlived it's usefulness. Or, as in the case of a relationship, it may simply be time to end it, which means you have to let it go."

}
 
var objArray
function initArray() {
objArray = new Array();
objArray.push("A");
objArray.push("B");
objArray.push("D");
objArray.push("E");
objArray.push("F");
objArray.push("G");
objArray.push("H");
objArray.push("I");
objArray.push("J");
objArray.push("K");
objArray.push("L");
objArray.push("M");
objArray.push("N");
objArray.push("O");
objArray.push("P");
objArray.push("Q");
objArray.push("R");
objArray.push("S");
objArray.push("T");
objArray.push("U");
objArray.push("V");
objArray.push("W");
objArray.push("X");
objArray.push("Y");
objArray.push("Z");

}
 
var objArray
function initArray() {
objArray = new Array();
objArray.push("A");
objArray.push("B");
objArray.push("D");
objArray.push("E");
objArray.push("F");
objArray.push("G");
objArray.push("H");
objArray.push("I");
objArray.push("J");
objArray.push("K");
objArray.push("L");
objArray.push("M");
objArray.push("N");
objArray.push("O");
objArray.push("P");
objArray.push("Q");
objArray.push("R");
objArray.push("S");
objArray.push("T");
objArray.push("U");
objArray.push("V");
objArray.push("W");
objArray.push("X");
objArray.push("Y");
objArray.push("Z");

}

kichwa kina uma..
 
Back
Top Bottom