text:
NUM-nai8]]
## kw4n
“day 15 of month 7.” The word “month” refer to those in the Hebrew calendar. (See: [[translate-hebrewmonths]] and [[translate-ordinal]])

## e72q
“gather together to worship and honor Yahweh.” The phrase “a holy assembly” means the people gather together to worship Yahweh. Worshiping Yahweh is a holy event.

## e2ym
This is an idiom. Here the word “keep” means to observe or celebrate. The word “him” refers to Yahweh. Alternate translation: “you must observe the festival for Yahweh” or “you must celebrate the festival for Yahweh” (See: [[figs-idiom]])

# 29:13
## lh4l
This can be stated in active form. “you must burn it on the altar” (See: [[figs-activepassive]])

## u88p
“13 young bulls, 2 rams, and 14 male lambs” (See: [[translate-numbers]])

# 29:14
## ja5h
This can be stated in active form. Alternate translation: “fine flour which you have mixed with oil” (See: [[figs-activepassive]])

## idt9
The phrase “of fine flour mixed with oil” is understood from earlier in the sentence and can be repeated. “Three-tenths” means three parts out of ten equal parts. This can be written in modern measurements. Alternate translation: “six liters of fine flour mixed with oil” or “three-tenths of an ephah (which is about six liters)” (See: [[translate-fraction]] and [[translate-bvolume]])

## hgf4
“13 bulls” (See: [[translate-numbers]])

## qmq4
The phrase “of an ephah of fine flour” is understood from earlier in the sentence. “Two-tenths” means two parts out of ten equal parts. This can be written in modern measurements. Alternate translation: “four and a half liters of fine flour” or “two-tenths of an ephah (which is about 4.5 liters)” (See: [[figs-ellipsis]] and [[translate-fraction]] and [[translate-bvolume]])

# 29:15
## jj7t
“14 lambs” (See: [[translate-numbers]])

## qqa5
The phrase “of fine flour” is understood from earlier in the sentence. “A tenth” means one part out of ten equal parts. This can be written in modern measurements. Alternate translation: “2 liters of fine flour” or “a tenth of an ephah (which is about 2 liters)” (See: [[translate-fraction]] and [[translate-bvolume]])

# 29:16
## vxx2
The grain offering and drink offering accompany the regular burnt offering.

# 29:17
## r62t
“On day 2 of the festival.” Here the word “assembly” refers to the Festival of Weeks. (See: [[translate-ordinal]])

## dus6
“12 young bulls, 2 rams, and 14 male lambs” (See: [[translate-numbers]])

# 29:18
## sk9u
This can be stated in active form. Alternate translation: “as Yahweh commanded” (See: [[figs-activepassive]])

# 29:19
## f57m
The grain offering was to be offered with the burnt offering. Drink offerings were to be offered with both the sin offering and the burnt offering. Alternate translation: “along with the grain offering and the drink offerings that accompany them” (See: [[figs-possession]])

# 29:20
## mi8p
“day 3 of the festival.” Here the word “assembly” refers to the Festival of Weeks. (See: [[translate-ordinal]])

## r4i9
“11 bulls, 2 rams, and 14 male lambs” (See: [[translate-numbers]])

# 29:21
## q47t
This can be stated in active form. Alternate translation: “as Yahweh commanded” (See: [[figs-activepassive]])

# 29:22
## fe9m
The grain offering was to be offered with the burnt offering. The drink offerings were to be offered with both the sin offering and the burnt offering. Alternate translation: “along with the grain offering and the drink offerings that accompany them” (See: [[figs-possession]])

# 29:23
## g35h
See [[NUM-g35h]]
## kxu3
“day 4 of the festival.” Here the word “assembly” refers to the Festival of Weeks. (See: [[translate-ordinal]])

## v266
“14 male lambs” (See: [[translate-numbers]])

# 29:24
## g8rl
This can be stated in active form. Alternate translation: “as Yahweh commanded” (See: [[figs-activepassive]])

# 29:25
## y2d2
The grain offering was to be offered with the burnt offering. The drink offerings were to be offered with both the sin offering and the burnt offering. Alternate translation: “along with the grain offering and the drink offerings that accompany them” (See: [[figs-possession]])

# 29:26
## jr4e
“day 5 of the festival.” Here the word “assembly” refers to the Festival of Weeks. (See: [[translate-ordinal]])

## wa33
“14 male lambs” (See: [[translate-numbers]])

# 29:27
## y83f
This can be stated in active form. Alternate translation: “as Yahweh commanded” (See: [[figs-activepassive]])

# 29:28
## dde7
The grain offering was to be offered with the burnt offering. The drink offerings were to be offered with both the sin offering and the burnt offering. Alternate translation: “along with the grain offering and the drink offerings that accompany them” (See: [[figs-possession]])

# 29:29
## l7vr
“day 6 of the festival.” Here the word “assembly” refers to the Festival of Weeks. (See: [[translate-ordinal]])

## dix2
“14 male lambs” (See: [[translate-numbers]])

# 29:30
## x5lx
This can be stated in active form. Alternate translation: “as Yahweh commanded” (See: [[figs-activepassive]])

# 29:31
## mq57
The grain offering was to be offered with the burnt offering. The drink offerings were to be offered with both the sin offering and the burnt offering. Alternate translation: “along with the grain offering and the drink offerings that accompany them” (See: [[figs-possession]])

# 29:32
## mwy5
“day 7 of the festival.” Here the word “assembly” refers to the Festival of Weeks. (See: [[translate-ordinal]])

## x55k
“14 male lambs” (See: [[translate-numbers]])

# 29:33
## rxm4
This can be stated in active form. Alternate translation: “as Yahweh commanded” (See: [[figs-activepassive]])

# 29:34
## vk22
The grain offering was to be offered with the burnt offering. The drink offerings were to be offered with both the sin offering and the burnt offering. Alternate translation: “along with the grain offering and the drink offerings that accompany them” (See: [[figs-possession]])

# 29:35
## a9cf
See [[NUM-a9cf]]
## hs6t
This “eighth” is the ordinal number for eight. (See: [[translate-ordinal]])

## x6n9
“gather together again to worship Yahweh.” This is another assembly similar to the one on the first day of the festival.

# 29:36
## h37k
This can be stated in active form. Alternate translation: “you must burn it on the altar” (See: [[figs-activepassive]])

# 29:37
## hc7w
These offerings were to be offered with the bull, the ram, and the lambs. Alternate translation: “the grain offerings and the drink offerings” (See: [[figs-possession]])

## m6nc
This can be stated in active form. Alternate translation: “as Yahweh commanded” (See: [[figs-activepassive]])

# 29:38
## nyr3
The grain offering was to be offered with the burnt offering. The drink offerings were to be offered with both the sin offering and the burnt offering. Alternate translation: “along with the grain offering and the drink offerings that accompany them” (See: [[figs-possession]])

# 29:39
## zpq3
“These offerings are what you must offer”

## y3wf
“planned festivals.” These are festivals that occurred at regularly scheduled times. The word “fixed” means “set” or “predetermined.”

# 30:intro
## e9dr
See [[NUM-e9dr]]
# 30:2
## n92a
The words “a man” refer to any man, not one particular man. It refers only to men and does not include women. Alternate translation: “any man”

## yep5
Here Moses speaks of a person promising to do something as if his promise were a physical object that he ties to himself. Alternate translation: “committing to fulfill a promise” or “promising to do something” (See: [[figs-metaphor]])

## d5ft
These two sentences have similar meanings and are combined to emphasize that he must fulfill his promises. Here “word” is a metonym that refers to what he said. (See: [[figs-parallelism]])

## nf8m
The phrase “his word” refers to a man’s oaths and vows. Here Moses speaks of not fulfilling these as if they were physical objects that the man could break. Alternate translation: “he must fulfill his promises” (See: [[figs-metaphor]] and [[figs-metonymy]])

## krx2
Here the word “mouth” is a metonym for the things that the man says. Alternate translation: “to do everything that he says he will do” (See: [[figs-metonymy]])

# 30:3
## rh7v
Here Moses speaks of a woman promising to do something as if her promise were a physical object that she ties to herself. Alternate translation: “commits herself to fulfilling a promise” or “promises to do something” (See: [[figs-metaphor]])

# 30:4
## u957
These two phrases have very similar meanings. They emphasize what she has promised to do. Alternate translation: “the vow” (See: [[figs-doublet]])

## xw8r
Here Moses speaks of how a woman has committed herself to fulfilling a promise as if her promise were a physical object that she had bound to her body. Alternate translation: “that she has committed herself to fulfill” (See: [[figs-metaphor]])

## c1r2
“he does not cancel what she has said”

## vp6b
This is an idiom. It means that her vows will remain in effect and that she will be required to fulfill them. Alternate translation: “she will be obligated to fulfill” (See: [[figs-idiom]])

# 30:5
## m6gk
These two phrases have very similar meanings. They emphasize what she has promised to do. Alternate translation: “her vows” (See: [[figs-doublet]])

## u255
This is an idiom. It means that her vows will remain in effect and she will be required to fulfill them. See how you translated this phrase in [Numbers 30:4](../30/04.md). Alternate translation: “she will be obligated to fulfill” (See: [[figs-idiom]])

## r6kd
This refers to Yahweh forgiving her for not fulfilling her vows. The full meaning of this statement can be made clear. Alternate translation: “Yahweh will forgive her for not fulfilling her vows” (See: [[figs-explicit]])

# 30:6
## qq7y
something done without thinking

## r4gc
Here Moses speaks of how a woman has committed herself to fulfilling a promise as if her promise were a physical object that she had bound to her body. Alternate translation: “which she has committed herself to fulfill” (See: [[figs-metaphor]])

# 30:7
## s8e5
You may need to specify that he says nothing to her about her vow. Alternate translation: “says nothing to her about her vow” or “does not tell her to have Yahweh release her from the vow” (See: [[figs-ellipsis]])

## nh9k
Here Moses speaks of how a woman has committed herself to fulfilling a promise as if her promise were a physical object that she had bound to her body. Alternate translation: “that she has committed herself to fulfill” See how this is translated in [Numbers 30:4](./04.md). (See: [[figs-metaphor]])

## vj3j
This is an idiom. It means that her vows will remain in effect and that she will be required to fulfill them. Alternate translation: “she will be obligated to fulfill” See how this is translated in [Numbers 30:4] (./04.md). (See: [[figs-idiom]])

# 30:8
## n9fw
“the vow that she has made … that is, the rash talk of her lips.” These two phrases refer to the same thing. The second phrase describes the vow that the woman made. (See: [[figs-parallelism]])

## j925
The phrase “the rash talk” refers to the rash promise that she made. Here “her lips” means the woman herself. She is referred to as “her lips” because lips are related to what she says. Alternate translation: “the rash things she has said” or “her rash promise” (See: [[figs-synecdoche]])

## pen9
Here Moses speaks of how a woman has committed herself to fulfilling a promise as if her promise were a physical object that she had bound to her body. Alternate translation: “that she has committed herself to fulfill” See how this is translated in [Numbers 30:4](./04.md). (See: [[figs-metaphor]])

## dgy8
Here Moses speaks about Yahweh forgiving the woman for not fulfilling her vow as if he were releasing her from something that bound her. The full meaning of this statement can be made clear. Alternate translation: “Yahweh will forgive her” or “Yahweh will forgive her for not fulfilling her vow” (See: [[figs-metaphor]] and [[figs-explicit]])

# 30:9
## g5l3
See [[NUM-g5l3]]
## vr6d
This can be stated in active form. Alternate translation: “a woman whom a man has divorced” (See: [[figs-activepassive]])

## aab4
This is an idiom. It means that her vows will remain in effect and she will be required to fulfill them. See how you translated a similar phrase in [Numbers 30:4](./04.md). Alternate translation: “she will be obligated to fulfill” (See: [[figs-idiom]])

# 30:10
## svt7
This refers to a married woman. You can make the meaning of this statement clear. Alternate translation: “If a married woman makes a vow” (See: [[figs-explicit]])

# 30:11
## m4jf
This is an idiom. The phrase “will stand” means that her vows will remain in effect and she will be required to fulfill them. See how you translated a similar phrase in [Numbers 30:4](../30/04.md). Alternate translation: “then she must fulfill all her vows” (See: [[figs-idiom]])

# 30:12
## p61z
Here what the woman said is referred to as something that came out of her lips. Alternate translation: “then whatever she said” (See: [[figs-metonymy]])

## r31m
This is an idiom. It means that her vows will not remain in effect and she will be not required to fulfill them. See how you translated this phrase in [Numbers 30:4](./04.md). Alternate translation: “she will not be obligated to fulfill” (See: [[figs-idiom]])

## g6ze
Here Moses speaks about Yahweh forgiving the woman for not fulfilling her vow as if he were releasing her from something that bound her. The full meaning of this statement can be made clear. Alternate translation: “Yahweh will forgive her” or “Yahweh will forgive her for not fulfilling her vow” (See: [[figs-metaphor]] and [[figs-explicit]])

# 30:13
## rng1
an oath by which the woman says that unless she fulfills the oath, God or other poeple have the right to afflict her

# 30:14
## sq3z
Moses describes a woman’s promises as if they were something that she is physically bound by. Alternate translation: “obligations” or “promises” (See: [[figs-metaphor]])

## ntv6
This is an idiom. It means that her vows will remain in effect and that she will be required to fulfill them. Alternate translation: “she will be obligated to fulfill” See how this is translated in [Numbers 30:4](./04.md). (See: [[figs-idiom]])

## w9nv
You can make clear the understood information. Alternate translation: “because he has said nothing to her about them” (See: [[figs-ellipsis]])

# 30:15
## z7x5
This means that he will be guilty of her sin instead of her if she does not fulfill her vow. The full meaning of this statement can be made clear. Alternate translation: “if she does not fulfill her vow, she will not be guilty of her sin, and he will be guilty instead of her” (See: [[figs-explicit]])

# 31:intro
## p1di
See [[NUM-p1di]]
# 31:2
## u6qq
Yahweh was punishing the Midianites for convincing the Israelites to worship idols.

## l7s2
These two phrases mean basically the same thing.  (See: [[figs-parallelism]] and [[figs-euphemism]])

# 31:3
## z1v2
“Give weapons to some of your men”

## jkm1
“go fight a war against the Midianites and punish them for what they did to us”

# 31:4
## zf2p
“1,000” (See: [[translate-numbers]])

# 31:5
## i7mh
“12,000” (See: [[translate-numbers]])

## i3cm
“the thousands of Israel’s men”

## bef8
This can be stated in active form. Alternate translation: “every tribe sent 1,000 men to war” (See: [[figs-activepassive]])

## qqa6
All 12 tribes sent men, including the tribe of Levi. Each tribe sent 1,000 men into battle. (See: [[figs-explicit]])

# 31:8
## n3ta
These are names of kings of Midian. (See: [[translate-names]])

## e2d3
Beor was Balaam’s father. See how you translated this in [Numbers 22:5](../22/05.md).

# 31:9
## y5k2
“They took the Midianites’ possessions as their own”

# 31:10
## xji1
“Israel’s army burned all the Midianites’ cities where the Midianites lived and all the Midianites’ camps”

# 31:11
## yll7
“The army of Israel took”

## ghi1
This refers to the material goods they recovered from killing the Midianite men.

# 31:12
## zi9f
a large area of flat land

# 31:14
## r7xx
Possible meanings are (1) these numbers represent the exact amount of soldiers that these commanders and captains led. Alternate translation: “the commanders of 1,000 soldiers and the captains of 100 soldiers” or (2) the words translated as “thousands” and “hundreds” do not represent exact numbers, but are the names of larger and smaller military divisions. Alternate translation: “the commanders of large military divisions and the captains of smaller military divisions” (See: [[translate-numbers]])

# 31:15
## q7z6
The law was explicit on who would be permitted to live. The army violated the law by allowing all the women and children to live. This was a rebuke to the army leaders. (See: [[figs-rquestion]])

# 31:16
## zwr2
This word is used here to draw the audience’s attention to what is said next.  This refers to girls who were virgins. (See: [[figs-euphemism]])

# 31:19
## esz2
Moses is referring to anyone who fought in battle, not just the commanders.

## u6bv
They must become spiritually clean again before entering the camp.

# 31:20
## bml5
This can be stated in active form. Alternate translation: “everything that someone has made of animal hide, goats’ hair, or wood” (See: [[figs-activepassive]])

# 31:21
## se97
See [[NUM-se97]]
# 31:22
## m16e
metals that were used during that time period

# 31:23
## t8y8
“that will not burn”

## an62
“put it into the fire”

## lv3d
This refers to water that someone has mixed with ashes from a sin offering. See: [Numbers 19:17-19](../19/17.md).

# 31:24
## y8tf
These are the customs of becoming ceremonially clean before Yahweh.

# 31:26
## gv9a
This can be stated in active form. Alternate translation: “Count all of the possessions that the soldiers took” (See: [[figs-activepassive]])

## i5qv
“the leaders of each clan”

# 31:28
## f8wf
See [[NUM-f8wf]]
## ar4h
This can be stated in active form. Alternate translation: “Collect a tax from the soldiers’ plunder and give it to me” (See: [[figs-activepassive]])

## hv3b
“every 500” (See: [[translate-numbers]])

# 31:29
## w6nr
“from the soldiers’ half”

## eds7
This can be stated in active form. Alternate translation: “which he will present to me” (See: [[figs-activepassive]])

# 31:30
## x2qb
See [[NUM-x2qb]]
## e7ze
“Also from the people of Israel’s half of the plunder”

## s2xh
those who oversee and maintain the tabernacle and sacrifices to Yahweh

# 31:32
## s6hw
This word is used here to mark a break in the main teaching. Here Moses begins listing the amount of plunder and how much went to the soldiers, to the people, and to Yahweh.

## jc9u
“six hundred and seventy-five thousand sheep” (See: [[translate-numbers]])

# 31:33
## en2l
“72,000 oxen” (See: [[translate-numbers]])

# 31:34
## m1fr
“61,000 donkeys” (See: [[translate-numbers]])

# 31:35
## mz61
“32,000 women” (See: [[translate-numbers]])

## h8xs
“women who had no had sexual relations with a man.” This refers to women who are virgins. (See: [[figs-euphemism]])

# 31:36
## k5us
See [[NUM-k5us]]
## hx4b
This can be stated in active form. Alternate translation: “The soldiers’ part of the sheep” (See: [[figs-activepassive]])

## xz5a
“three hundred and thirty-seven thousand sheep” (See: [[translate-numbers]])

# 31:37
## kxp6
“was six hundred and seventy-five” (See: [[translate-numbers]])

# 31:38
## tpd3
36,000 (See: [[translate-numbers]])

## yn5y
72 (See: [[translate-numbers]])

# 31:39
## id45
See [[NUM-id45]]
## vj4q
“were thirty thousand five hundred” (See: [[translate-numbers]])

## ryh3
61 (See: [[translate-numbers]])

# 31:40
## p6gv
16,000 (See: [[translate-numbers]])

## db8h
32 (See: [[translate-numbers]])

# 31:41
## t161
This can be stated in active form. Alternate translation: “to be an offering to Yahweh” (See: [[figs-activepassive]])

# 31:42
## uzx5
See [[NUM-uzx5]]
# 31:43
## tq4z
“three hundred and thirty-seven thousand five hundred sheep” (See: [[translate-numbers]])

# 31:44
## iiy9
36,000 oxen (See: [[translate-numbers]])

# 31:46
## ad6b
“16,000 women.” It has been stated earlier that all the males and the married women captives were put to death (See: [[translate-numbers]] and [[figs-explicit]])

# 31:47
## kg6l
See [[NUM-kg6l]]
## kg6m
See [[NUM-kg6m]]
# 31:48
## vf7u
Possible meanings are (1) these numbers represent the exact amount of soldiers that these commanders and captains led. Alternate translation: “the commanders over 1,000 soldiers and the captains over 100 soldiers” or (2) the words translated as “thousands” and “hundreds” do not represent exact numbers, but are the names of larger and smaller military divisions. Alternate translation: “the commanders over large military divisions and the captains over smaller military divisions” See how you translated a similar phrase in [Numbers 31:14](../31/14.md). (See: [[translate-numbers]])

# 31:49
## f2pw
The commanders refer to themselves as “your servants.” This is a polite way to speak to someone with greater authority.

## v7td
This can be stated in a positive statement. “we know for certain that every man is here” (See: [[figs-litotes]])

# 31:50
## xin3
See [[NUM-xin3]]
## a59f
These are all types of jewelry that people wore.

## zw94
“to thank God for saving our lives”

# 31:51
## q5dj
“all the articles of gold” or “all the golden jewelry”

# 31:52
## grf3
“All the gold of the offering that the commanders of thousands and the captains of hundreds gave to Yahweh weighed”

## qri3
Possible meanings are (1) these numbers represent the exact amount of soldiers that these commanders and captains led. Alternate translation: “from the commanders of 1,000 soldiers and from the captains of 100 soldiers” or (2) the words translated as “thousands” and “hundreds” do not represent exact numbers, but are the names of larger and smaller military divisions. Alternate translation: “from the commanders of large military divisions and from the captains of smaller military divisions” See how you translated a similar phrase in [Numbers 31:14](../31/14.md). (See: [[translate-numbers]])

## b57h
“sixteen thousand, seven hundred and fifty” (See: [[translate-numbers]])

## gj47
A shekel is 11 grams. (See: [[translate-bmoney]])

# 31:54
## r1uq
The gold will remind the people that Yahweh gave them victory. It will also remind Yahweh that the people fulfilled his revenge on the Midianites.

# 32:intro
## yg1s
See [[NUM-yg1s]]
# 32:1
## t4bt
This word is used here to mark a break in the main story line. Here Moses tells background information about the tribes of Reuben and Gad. (See: [[writing-background]])

# 32:3
## dwl6
These are names of cities. (See: [[translate-names]])

# 32:4
## fd7v
See [[NUM-fd7v]]
## t4lw
Yahweh enabling the Israelites to conquer the people who lived in the land is spoken of as if Yahweh went before the Israelites and attacked the people. Alternate translation: “the lands where Yahweh enabled us to defeat the people living there” (See: [[figs-metaphor]])

## a77c
The people of the tribes of Reuben and Gad refer to themselves in this way to show respect to a person of higher authority.

# 32:5
## pl1g
Here “found favor” is an idiom that means be approved of or that the leaders are pleased with them. Here “eyes” are a metonym for sight, and sight is a metaphor representing his evaluation. Alternate translation: “If we have found favor with you” or “If you are pleased with us” (See: [[figs-idiom]] and [[figs-metonymy]] and [[figs-metaphor]])

## q5ik
This can be stated in active form. Alternate translation: “give this land to us” (See: [[figs-activepassive]])

## gd1t
They wanted the land on the east side of the Jordan River instead of crossing over to the west side and claiming land there. Alternate translation: “Do not make us cross over the Jordan to take possession of land on that side” (See: [[figs-explicit]])

# 32:6
## sua3
Moses asks this question to rebuke the people from the tribes of Gad and Reuben. Alternate translation: “It is wrong for you to settle down in this land while your brothers go to war.” (See: [[figs-rquestion]])

# 32:7
## c23x
Moses asks this question to correct the people from the tribes of Gad and Reuben. Alternate translation: “Do not discourage the hearts … the land that Yahweh has given them.” or “Your actions would discourage the hearts … the land that Yahweh has given them.” (See: [[figs-rquestion]])

## yrl5
Here the word “hearts” represents the people themselves and refers to the seat of their emotions. Alternate translation: “discourage the people of Israel from going” or “cause the people of Israel to not want to go” (See: [[figs-synecdoche]])

# 32:8
## v1cy
See [[NUM-v1cy]]
# 32:9
## ge3e
This is the name of a place. See how you translated this in [Numbers 13:23](../13/23.md). (See: [[translate-names]])

## jta2
This refers to seeing what was in the land. Alternate translation: “They saw the strong people and cities in the land” (See: [[figs-explicit]])

## z21f
Here the word “hearts” represents the people themselves and refers to the seat of their emotions. See how you translated this in [Numbers 32:7](../32/07.md).  This can be stated in active form. Alternate translation: “Yahweh became very angry” (See: [[figs-metaphor]] and [[figs-activepassive]])

# 32:11
## wb16
“none of the people.” This phrase refers to both men and women.

## m7bw
“20 years old or older” (See: [[translate-numbers]])

## a6wn
Being devoted to Yahweh and obeying him are spoken of as if they were following Yahweh. Alternate translation: “completely obeyed me” or “been completely devoted to me” (See: [[figs-metaphor]])

# 32:12
## m62i
These are names of men. (See: [[translate-names]])

## dt3y
This is the name of a people group.  This can be stated in active form. Alternate translation: “Yahweh became very angry with Israel” (See: [[figs-metaphor]] and [[figs-activepassive]])

## qr9t
“40 years” (See: [[translate-numbers]])

## mca3
This can be stated in active form. Alternate translation: “he destroyed all the generation … sight” or “all the generation … sight had died” (See: [[figs-activepassive]])

## z1be
Being in someone’s sight means to be in front of that person where he can see. Alternate translation: “who had done evil before Yahweh” or “who had done evil in Yahweh’s presence” (See: [[figs-idiom]])

# 32:14
## j6ik
The people of Reuben and Gad acting like their ancestors did is spoken of as if they were standing in the place where their ancestors did. Alternate translation: “you have begun to act just like your ancestors” (See: [[figs-metaphor]])

## t3rd
The people causing Yahweh to become angrier is spoken of as if his anger was a fire and the people are adding more fuel to that fire. Alternate translation: “to cause Yahweh to be even more angry with Israel” (See: [[figs-metaphor]])

# 32:15
## n14t
“this entire people” or “all this generation of people”

# 32:17
## ni8k
“will be ready with weapons” or “will be ready to fight a war”

## c639
“in the secured cities”

# 32:18
## lu48
See [[NUM-lu48]]
## k2zl
The land that the people were to receive as a permanent possession is spoken of as if it were an inheritance that they were to obtain. Alternate translation: “has taken possession of his portion of the land” (See: [[figs-metaphor]])

# 32:20
## s681
“if you take your weapons”

## sb1z
This means Yahweh will go with them to battle and enable them to defeat their enemy and take their land. Alternate translation: “in the presence of Yahweh” (See: [[figs-idiom]])

# 32:21
## w22a
“until Yahweh has driven out his enemies from his presence.” The pronouns here all refer to Yahweh. Yahweh enabling the Israelites to defeat their enemies is spoken of as if Yahweh were fighting their battles. Alternate translation: “until Yahweh has enabled your soldiers to defeat the enemy and force them away from his presence” (See: [[figs-metaphor]])

# 32:22
## he19
Here the word “land” refers to the people who live there. This can be stated in active form. Alternate translation: “in his presence the Israelites have subdued the people who live in the land” (See: [[figs-metonymy]] and [[figs-activepassive]])

## i7x4
It is implied that they will return to the east side of the Jordan. Alternate translation: “you may return to this land on the east side of the Jordan” (See: [[figs-explicit]])

## rj5v
Possible meanings are (1) “You will have fulfilled your obligation to Yahweh and to Israel” or (2) “There will be nothing for which Yahweh or the people of Israel can blame you.”

# 32:23
## g2nz
Moses speaks of sin as if it were a person who will condemn the guilty person. This means that the people cannot escape the punishment that their sin deserves. Alternate translation: “Know for sure that Yahweh will punish you for your sin” (See: [[figs-personification]])

# 32:25
## ygw2
The people of Gad and Reuben refer to themselves as “your servants.” This is a polite way of speaking to someone with greater authority.

# 32:27
## j571
You can make it clear that they will cross over the Jordan. Alternate translation: “will cross over the Jordan River” (See: [[figs-explicit]])

## w8i3
“every man prepared for war”

# 32:29
## ml25
“every man who is ready with his weapon”

## x7ul
Here the word “land” refers to the people who live there. This can be stated in active form. Alternate translation: “if Yahweh subdues before you the people living in the land” or “if they help you subdue the people living in the land” (See: [[figs-activepassive]])

# 32:30
## c7xh
“then the descendants of Gad and Reuben will receive land with you in Canaan”

# 32:32
## v4jp
You can make it clear that they will cross the Jordan. Alternate translation: “We will cross over the Jordan ready to fight” (See: [[figs-explicit]])

## zxx7
The land that the people were to receive as a permanent possession is spoken of as if it were an inheritance that they were to obtain. Alternate translation: “the portion of land that we will possess” (See: [[figs-metaphor]])

## p5vi
This idiom refers to ownership. Alternate translation: “will be ours” (See: [[figs-idiom]])

# 32:33
## d9qr
These are names of kings who ruled two separate kingdoms. Alternate translation: “the kingdom of Sihon … and the kingdom of Og” (See: [[figs-ellipsis]] and [[translate-names]])

# 32:34
## x51u
These are names of cities. (See: [[translate-names]])

# 32:35
## h5rs
These are names of cities. (See: [[translate-names]])

# 32:36
## q92b
These are names of cities. (See: [[translate-names]])

# 32:37
## ln11
These are names of cities. (See: [[translate-names]])

# 32:38
## du4l
These are names of cities. (See: [[translate-names]])

## a8pp
This can be translated in active form. Alternate translation: “people later changed the names of these cities” (See: [[figs-activepassive]])

# 32:39
## we8f
This is the name of a man. See how you translated this name in [Numbers 26:29](../26/29.md).

# 32:41
## h5li
This is the name of a man. (See: [[translate-names]])

## mn6c
This is the name of a city. (See: [[translate-names]])

# 32:42
## rm3m
This is the name of a man. (See: [[translate-names]])

## r3cx
This is the name of a city. (See: [[translate-names]])

# 33:intro
## s7u7
See [[NUM-s7u7]]
# 33:1
## va6t
“by their military divisions.” This means that each tribe had their own men, who were armed, to protect them. See how you translated “armed groups” in [Numbers 1:3](../01/03.md).

# 33:2
## gx4i
This can be stated in active form. Alternate translation: “as Yahweh commanded” (See: [[figs-activepassive]])

## y7p2
“from one place to another place”

# 33:3
## ak5s
See [[NUM-ak5s]]
## na6v
Here “first” is the ordinal number one and “fifteenth” is the ordinal number fifteen. This is the first month of the Hebrew calendar. The fifteenth day is near the beginning of April on Western calendars. (See: [[translate-hebrewmonths]] and [[translate-ordinal]])

## gaw7
“the Israelites left in plain view of the Egyptians”

# 33:4
## gt7n
This refers to the firstborn sons. Alternate translation: “their firstborn sons” (See: [[figs-explicit]])

## nq9p
Yahweh proving that he is more powerful than all of the false gods that the Egyptians worshiped is spoken of as if Yahweh punished those false gods. Alternate translation: “he also proved that he is greater than their gods” (See: [[figs-metaphor]])

# 33:5
## wdj9
See [[NUM-wdj9]]
## tm1p
“departed from”

# 33:6
## y8bu
“on the border of the wilderness”

# 33:8
## bu1s
See [[NUM-bu1s]]
## j48d
This refers to when Yahweh divided the Red Sea so that the Israelites could escape from the Egyptian army.

# 33:9
## ii9y
“12 springs … 70 palm trees” (See: [[translate-numbers]])

# 33:11
## x491
See [[NUM-x491]]
# 33:14
## f1vp
This can be stated in active form. Alternate translation: “where the people could not find water to drink” (See: [[figs-activepassive]])

# 33:15
## u8kr
See [[NUM-u8kr]]
# 33:19
## mm4x
See [[NUM-mm4x]]
# 33:23
## q827
See [[NUM-q827]]
# 33:27
## ii4p
See [[NUM-ii4p]]
# 33:31
## gpz3
See [[NUM-gpz3]]
# 33:35
## uzs2
See [[NUM-uzs2]]
# 33:38
## sp6v
Here “fortieth” is the ordinal number for forty. Alternate translation: “40 years after” (See: [[translate-ordinal]])

## lpa5
This “fifth” is the ordinal number for five. This “first” is the ordinal number for one. This is the fifth month of the Hebrew calendar. The first day is near the middle of July on Western calendars. (See: [[translate-hebrewmonths]] and [[translate-ordinal]])

# 33:39
## sx7z
“one hundred and twenty-three years old” (See: [[translate-numbers]])

# 33:40
## b5x6
“The Canaanite king of Arad”

## fa11
This was the name of a Canaanite city. (See: [[translate-names]])

## tp5h
“heard that the people of Israel were coming”

# 33:41
## ug4w
See [[NUM-ug4w]]
# 33:44
## b2kj
See [[NUM-b2kj]]
# 33:47
## ilj5
See [[NUM-ilj5]]
# 33:48
## hc7z
a large area of flat land

# 33:52
## ua9d
“destroy all of their high places”

# 33:53
## wt1a
See [[NUM-wt1a]]
# 33:54
## q2gz
The Israelites claiming the land as their permanent possession is spoken of as if they were inheriting the land. (See: [[figs-metaphor]])

## m66j
“Each clan will receive the land according to how the lot falls”

# 33:55
## ebs2
See [[NUM-ebs2]]
## l4n8
Just like a small object in a person’s eye or a small thorn that sticks into a person skin can cause great irritation, so even a small portion of the Canaanites, if left in the land, would cause great trouble for the Israelites. (See: [[figs-simile]])

# 34:intro
## z166
See [[NUM-z166]]
# 34:3
## c7ax
See how you translated this phrase in [Numbers 33:12](../33/12.md).

# 34:4
## i8yz
See [[NUM-i8yz]]
# 34:6
## aj34
See [[NUM-aj34]]
# 34:7
## pzt2
See [[NUM-pzt2]]
## ucc8
See how you translated this name in [Numbers 20:22](../20/22.md).

# 34:10
## zu3a
See [[NUM-zu3a]]
# 34:13
## v8m7
This means the remaining tribes of Israel who will live on the west side of the Jordan River in the land of Canaan. The tribes of Reuben and Gad and the half tribe of Manasseh had already received their land on the east side of the Jordan River.

# 34:14
## t2jx
“according to how Yahweh assigned the property to their ancestor’s tribe”

# 34:15
## e78v
“The tribes of Reuben and Gad, and half of the tribe of Manasseh”

# 34:17
## dt2u
Here “your” is plural and refers to the people of Israel. These men will cast lots to divide the land. Then they will distribute it to the tribes. (See: [[figs-you]])

# 34:19
## d75w
See [[NUM-d75w]]
# 34:21
## ddd5
See [[NUM-ddd5]]
# 34:24
## jyl2
See [[NUM-jyl2]]
# 34:27
## hsm6
See [[NUM-hsm6]]
# 35:intro
## rg3i
See [[NUM-rg3i]]
# 35:1
## z6sc
a large area of flat land

# 35:2
## ww25
Yahweh did not give the Levites their own land, so they had to live in cities that belonged to other tribes.

## hlb8
an area of land where animals feed on grass

# 35:4
## fb2e
“1,000 cubits.” If it is necessary to use modern distance units, here is a way of doing it. Alternate translation: “457 meters” (See: [[translate-numbers]] and [[translate-bdistance]])

# 35:5
## vih1
See [[NUM-vih1]]
## cr3z
“2,000 cubits.” A cubit is 46 centimeters. (See: [[translate-bdistance]] and [[translate-numbers]])

# 35:6
## g8wz
This refers to people who have killed someone, but it had not yet been determined whether they killed the person intentionally or accidentally.

## q5lc
“42” (See: [[translate-numbers]])

# 35:7
## jnp2
“48” (See: [[translate-numbers]])

# 35:8
## jeg5
See [[NUM-jeg5]]
# 35:11
## fy84
accidentally or without wanting to or trying to

# 35:12
## vp5m
This refers to a close relative that seeks vengeance by killing the accused man.

## le4k
This can be stated in active form. Alternate translation: “so that no one will kill the accused man before the community is able to judge him in court” (See: [[figs-activepassive]])

# 35:14
## s5n6
See [[NUM-s5n6]]
# 35:16
## zkm4
See [[NUM-zkm4]]
## z14e
This can be stated in active form. Alternate translation: “You must certainly execute him” (See: [[figs-activepassive]] and [[figs-idiom]])

# 35:19
## wx13
Here the word “blood” is a metonym for the murder. Alternate translation: “The one who avenges the murder” or “The relative seeking vengeance” (See: [[figs-metonymy]])

# 35:21
## b1cz
This can be stated in active form. Alternate translation: “the relative must certainly execute the accused man” or “the accused man must die” (See: [[figs-activepassive]] and [[figs-idiom]])

# 35:22
## umg8
“without planning it out of hate ahead of time”

## p8t8
Someone intentionally seeking a way to harm another person is spoken of as if someone were hiding in order to ambush that other person. Alternate translation: “without intentionally having tried to harm the victim” (See: [[figs-metaphor]])

# 35:24
## gs31
Here the word “blood” is a metonym for the murder. See how you translated this phrase in [Numbers 35:19](../35/19.md). Alternate translation: “the one who avenges the murder” or “the relative seeking vengeance” (See: [[figs-metonymy]])

# 35:25
## nz1w
This means if the community judges that the death was accidental then they must save the accused man from the relative who wants to kill him. If the community judges that the death was not accidental, then the relative must execute the accused man. (See: [[figs-explicit]])

## f819
This can be stated in active form. Alternate translation: “the one you anointed with holy oil” (See: [[figs-activepassive]])

# 35:27
## db74
Here the word “blood” is a metonym for the murder. See how you translated these words in [Numbers 35:19](../35/19.md). Alternate translation: “the one who avenges the murder” or “the relative seeking vengeance” (See: [[figs-metonymy]])

# 35:29
## zfc7
See [[NUM-zfc7]]
## b5jp
“and all of your descendants who will live after you”

# 35:30
## l81w
This can be stated in active form. Alternate translation: “someone must execute the murderer” (See: [[figs-activepassive]])

## e5vq
This can be stated in active form. Alternate translation: “according to the testimony of witnesses” or “as witnesses testify to the murder” (See: [[figs-activepassive]])

## y1ik
The testimony of one witness is not enough to execute a person for murder. This can be stated in active form. Alternate translation: “But the word of only one witness is not enough for you to execute a person” (See: [[figs-activepassive]])

# 35:31
## th5f
This can be stated in active form. Alternate translation: “You must execute him” (See: [[figs-activepassive]] and [[figs-idiom]])

# 35:32
## pv6j
This implied that the man would have left the city of refuge and returned home. Alternate translation: “You must not … allow him to leave the city of refuge and return home to live on his own property” (See: [[figs-explicit]])

## a9qa
“by accepting a ransom”

# 35:33
## gzd5
Making the land unacceptable to Yahweh is spoken of as if it were physically polluting the land. Alternate translation: “Do not make the land where you live unacceptable to me in this way, because blood from murder makes the land unacceptable to me” (See: [[figs-metaphor]])

## df8z
This means by disobeying the laws concerning a person who kills someone.

## pl2f
This refers to when a person intentionally kills another person. This can be stated in active form. Alternate translation: “When someone has shed blood in the land, only the execution of the murderer can make atonement for the land” (See: [[figs-activepassive]])

# 36:intro
## ej9v
See [[NUM-ej9v]]
# 36:1
## if4m
This is the name of a man. See how you translated this man’s name in [Numbers 26:29](../26/29.md). (See: [[translate-names]])

# 36:2
## gt4r
This can be stated in active form. Alternate translation: “Yahweh commanded you” (See: [[figs-activepassive]])

## wj3z
This is the name of a man. See how you translated this man’s name in [Numbers 26:33](../26/33.md). (See: [[translate-names]])

# 36:3
## lt8u
This can be stated in active form. Alternate translation: “will no longer belong to our ancestor’s share” (See: [[figs-activepassive]])

## x8b6
This can be stated in active form. Alternate translation: “It will belong to” (See: [[figs-activepassive]])

## p8s2
This can be stated in active form. Alternate translation: “it will no longer be a part of our inheritance” (See: [[figs-activepassive]])

# 36:4
## rfa6
This refers to a celebration which happens once every fifty years. In this celebration, all land that someone sold or traded must return to the original owner. (See: [[figs-explicit]])

## mw2i
This can be stated in active form. Alternate translation: “their share will belong” (See: [[figs-activepassive]])

## zr9r
This can be stated in active form. Alternate translation: “they will take our tribe’s share of the land” (See: [[figs-activepassive]])

# 36:5
## z3fi
“according to what Yahweh said”

# 36:6
## f822
This can be stated in active form. Alternate translation: “Let them marry whom they want” (See: [[figs-activepassive]])

## lcf4
This can be stated in active form. Alternate translation: “but they may only marry someone from their father’s tribe” (See: [[figs-activepassive]])

# 36:7
## ysn3
The word “share” represents the portion of land that each tribe received as an inheritance. Alternate translation: “No portion of the land” (See: [[figs-metonymy]])

# 36:8
## aed4
“who owns a share of land in her tribe”

## q4e7
The land that each clan possesses is spoken of as if it were an inheritance that they received. (See: [[figs-metaphor]])

# 36:9
## enm8
Transferring ownership from one tribe to another is spoken of as if the property passed from one person’s hands to another person’s hands. Alternate translation: “No one may transfer the ownership of any share of land from one tribe to another” (See: [[figs-metaphor]])

# 36:11
## y95h
See how you translated these women’s names in [Numbers 26:33](../26/33.md). (See: [[translate-names]])

# 36:12
## i8zd
The land that each of Zelophehad’s daughters possessed is spoken of as if it were an inheritance that they received. Alternate translation: “the lands that they received as an inheritance” (See: [[figs-metaphor]])

# 36:13
## z8ke
a large area of flat land

repository: mandolyte/uw-obsidian

repo_name: mandolyte/uw-obsidian


text:
# **Traffic Sign Recognition**

[![Udacity - Self-Driving Car NanoDegree](https://s3.amazonaws.com/udacity-sdc/github/shield-carnd.svg)](http://www.udacity.com/drive)

## Objectives

---

**Build a Traffic Sign Recognition Project**

The goals / steps of this project are the following:
* Load the data set (see below for links to the project data set)
* Explore, summarize and visualize the data set
* Design, train and test a model architecture
* Use the model to make predictions on new images
* Analyze the softmax probabilities of the new images
* Summarize the results with a written report

More details on the instructions for this project [can be found here.](./instructions.md)

[//]: # (Image References)

[image1]: ./outputs/dataset_class_distributions.png "Class Distribution"
[image2]: ./outputs/signs.png "Sample of 10 signs"
[image3]: ./outputs/signs-pre.png "Sample of 10 Preprocessed Signs"
[image4]: ./new_signs/Crossing.jpg "Traffic Sign 1"
[image5]: ./new_signs/NoSpeed.png "Traffic Sign 2"
[image6]: ./new_signs/Stop.jpg "Traffic Sign 3"
[image7]: ./new_signs/Snow.jpg "Traffic Sign 4"
[image8]: ./new_signs/120Speed.jpg "Traffic Sign 5"

## Rubric Points
### The sections below will dicsuss the details of my implementation of each requirement in the [rubric points](https://review.udacity.com/#!/rubrics/481/view).

---
### Writeup / README

#### 1. Provide a Writeup / README that includes all the rubric points and how you addressed each one. You can submit your writeup as markdown or pdf. You can use this template as a guide for writing the report. The submission includes the project code.

You're reading it! and here is a link to my [project code](https://github.com/cseHdz/CarND-TrafficSignClassifier/blob/master/Traffic_Sign_Classifier.ipynb)

### Data Set Summary & Exploration

#### 1. Provide a basic summary of the data set. In the code, the analysis should be done using python, numpy and/or pandas methods rather than hardcoding results manually.

I used the numpy built-in functions to calculate summary statistics of the traffic signs data set:

* Number of training examples = 34799
* Number of testing examples = 12630
* Number of validation examples = 4410
* Image data shape = (32, 32, 3)
* Number of classes = 43

#### 2. Include an exploratory visualization of the dataset.

The first step in analyzing the data is to determine whether the train, validation and test sets have a similar distribution of samples across all classes. Below is a histogram normalized to 100% to reflect the composition of each set.

![alt text][image1]

Then, to obtain a better idea as to the types of signs, I plotted several signs at random first. Then observed at least 2 pictures per sign to assess general similarity between to random pictures of the same type.

![alt text][image2]

### Design and Test a Model Architecture

#### 1. Describe how you preprocessed the image data. What techniques were chosen and why did you choose these techniques? Consider including images showing the output of each preprocessing technique. Pre-processing refers to techniques such as converting to grayscale, normalization, etc.

As a first step, I decided to convert the images to grayscale because it provides an average across the 3 RGB channels.

Furthermore, I normalized the grayscale image to bound image values between -1 and 1. This makes it for the optimizer in a neural network to reach a minimum.

Below is a sample of signs after grayscaling and normalization.

![alt text][image3]

Finally, since I implemented the model in Keras as well, the labels for each dataset had to be one-hot-encoded.

#### 2. Describe what your final model architecture looks like including model type, layers, layer sizes, connectivity, etc.) Consider including a diagram and/or table describing the final model.

In terms of architecture, I implemented LeNet using both Tensorflow and Keras. Personally, I find Keras to be much more efficient based on the version of Tensorflow required for this project.

My final model consisted of the following layers:

|Layer (type)           |     Output Shape            |   Param #    |
|:---------------------:|:----------------------------|-------------:|
| conv2d_1 (Conv2D)            |(None, 28, 28, 6)     |    156       |
| max_pooling2d_1 (MaxPooling2 |(None, 14, 14, 6)     |    0         |
| conv2d_2 (Conv2D)            |(None, 10, 10, 16)    |    2416      |
| max_pooling2d_2 (MaxPooling2 |(None, 5, 5, 16)      |    0         |
| flatten_1 (Flatten)          |(None, 400)           |    0         |
| dropout_1 (Dropout)          |(None, 400)           |    0         |
| dense_1 (Dense)              |(None, 120)           |    48120     |
| dense_2 (Dense)              |(None, 84)            |    10164     |
| dropout_2 (Dropout)          |(None, 84)            |    0         |
| dense_3 (Dense)              |(None, 43)            |    3655      |
_________________________________________________________________

Total params: 64,511
Trainable params: 64,511
Non-trainable params: 0
_________________________________________________________________

#### 3. Describe how you trained your model. The discussion can include the type of optimizer, the batch size, number of epochs and any hyperparameters such as learning rate.

To train the model, I used the following configuration:

* Optimizer: ADAM
* Loss Function: categorical_crossentropy
* Metrics: Accuracy
* Number of epochs: 10
* Batch Size: 64
* Shuffle: True (Shuffle between Epochs)

#### 4. Describe the approach taken for finding a solution and getting the validation set accuracy to be at least 0.93. Include in the discussion the results on the training, validation and test sets and where in the code these were calculated. Your approach may have been an iterative process, in which case, outline the steps you took to get to the final solution and why you chose those steps. Perhaps your solution involved an already well known implementation or architecture. In this case, discuss why you think the architecture is suitable for the current problem.

My final model results were:
* training set accuracy of 91.8%
* validation set accuracy of 95.5%
* test set accuracy of 93.5%

Architecture Iterations:
* First, I started with a Tensorflow implementaion of LeNet as per the class lectures
* Given, how long it took to train, I implemented the same model in Keras
* In both models, I noticed great performance in the training set, but mild performance in the validation set.
* Since this is a sign of overfitting, I decided to add two dropout layers after flattening from the Convolutional layers and after the Dense layers.
* The model performance decrease a little for the training set, but vastly improved on the validation set.

### Test a Model on New Images

#### 1. Choose five German traffic signs found on the web and provide them in the report. For each image, discuss what quality or qualities might be difficult to classify.

Here are five German traffic signs that I found on the web:

![alt text][image4] ![alt text][image5] ![alt text][image6]
![alt text][image7] ![alt text][image8]

The first image might be difficult to classify because of the half-light/half-dark background, which will influence the grayscale component of the image.

The second image will be very simple to classify as it very similar to a the output of a preprocessed image.

The third image will be very simple to classify as it a very standard picture of a stop sign.

The fourth image will be easier to classify versus image 1. The background contrasts very sharply with the sign is of a consistent pattern.

The fifth image will be mildly difficult to classify given the high saturation of the image.

#### 2. Discuss the model's predictions on these new traffic signs and compare the results to predicting on the test set. At a minimum, discuss what the predictions were, the accuracy on these new predictions, and compare the accuracy to the accuracy on the test set
Here are the results of the prediction:

| Image			        |     Prediction	        					|
|:---------------------:|:---------------------------------------------:|
| Children crossing	    | Right-of-way at the next intersection 		|
| End of all speed and passing limits| End of all speed and passing limits|
| Stop					| Stop											|
| Beware of ice/snow	| Beware of ice/snow			 				|
| 120 km/h	      		| Bicycles Crossing    							|

The model was able to correctly guess 3 of the 5 traffic signs, which gives an accuracy of 60%. This compares unfavourable to the accuracy on the test set of 93%

#### 3. Describe how certain the model is when predicting on each of the five new images by looking at the softmax probabilities for each prediction. Provide the top 5 softmax probabilities for each image along with the sign type of each probability.

Image 0 -
-----
The model is very unsure as to the classification of this image - the top class is marginally better than flipping a coin. It must be noted that the second class with a probability of 21% is the correct classification.

* Label: Children crossing(28)
* Class: Right-of-way at the next intersection(11) - P= 0.52
* Class: Children crossing(28) - P= 0.21
* Class: Pedestrians(27) - P= 0.13
* Class: Roundabout mandatory(40) - P= 0.04
* Class: Ahead only(35) - P= 0.04

Image 1
----
The model has a high degree of certainty for this sign - with a 98% probability allocated to the right label

* Label: End of all speed and passing limits(32)
* Class: End of all speed and passing limits(32) - P= 0.98
* Class: End of no passing(41) - P= 0.02
* Class: End of speed limit (80km/h)(6) - P= 0.00
* Class: Priority road(12) - P= 0.00
* Class: Go straight or right(36) - P= 0.00

Image 2
-----
The model has a high degree of certainty for this sign - with a 88% probability allocated to the right label

* Label: Stop(14)
* Class: Stop(14) - P= 0.88
* Class: Yield(13) - P= 0.08
* Class: Keep left(39) - P= 0.04
* Class: No vehicles(15) - P= 0.00
* Class: Turn right ahead(33) - P= 0.00

Image 3
----
The model is 100% certain of the classification of this sign

* Label: Beware of ice/snow(30)
* Class: Beware of ice/snow(30) - P= 1.00
* Class: Slippery road(23) - P= 0.00
* Class: Bicycles crossing(29) - P= 0.00
* Class: Right-of-way at the next intersection(11) - P= 0.00
* Class: Children crossing(28) - P= 0.00

Image 4
----
The model is very unsure as to the classification of this image - the top class is marginally better than flipping a coin. The correct classification only has an 11% probability allocated to it.

* Label: Speed limit (120km/h)(8)
* Class: Bicycles crossing(29) - P= 0.51
* Class: Children crossing(28) - P= 0.27
* Class: Speed limit (120km/h)(8) - P= 0.11
* Class: Bumpy road(22) - P= 0.08
* Class: No vehicles(15) - P= 0.01

license: MIT

repository: cseHdz/CarND-TrafficSignClassifier

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: cseHdz/CarND-TrafficSignClassifier


text:
---
scapolite:
    class: rule
    version: '0.51'
id: file_permissions_home_dirs
id_namespace: org.ssgproject.RHEL-8
title: |
    Ensure that User Home Directories are not Group-Writable or
    World-Readable
rule: <see below>
rationale: <see below>
description: <see below>
applicability:
  - system: org.scapolite.xccdf.applicability
checks:
  - relative_id: '01'
    automations:
      - system: http://oval.mitre.org/XMLSchema/oval-definitions-5
        idref: oval:ssg-file_permissions_home_dirs:def:1
        href: file_permissions_home_dirs.oval.xml
  - relative_id: '02'
    automations:
      - system: http://scap.nist.gov/schema/ocil/2
        idref: ocil:ssg-file_permissions_home_dirs_ocil:questionnaire:1
        href: file_permissions_home_dirs.ocil.xml
crossrefs:
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '12'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '13'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '14'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '15'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '16'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '18'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '3'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '5'
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: APO01.06
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: DSS05.04
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: DSS05.07
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: DSS06.02
    relation: ''
  - system: http://iase.disa.mil/stigs/cci/Pages/index.aspx
    idref: CCI-000225
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116731
    idref: <IP_ADDRESS>.3
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116785
    idref: SR 2.1
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116785
    idref: SR 5.2
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.10.1.1
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.11.1.4
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.11.1.5
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.11.2.1
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.13.1.1
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.13.1.3
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.13.2.1
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.13.2.3
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.13.2.4
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.14.1.2
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.14.1.3
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.6.1.2
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.7.1.1
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.7.1.2
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.7.3.1
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.8.2.2
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.8.2.3
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.9.1.1
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.9.1.2
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.9.2.3
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.9.4.1
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.9.4.4
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.9.4.5
    relation: ''
  - system: http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf
    idref: AC-6(7)
    relation: ''
  - system: https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.04162018.pdf
    idref: PR.AC-4
    relation: ''
  - system: https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.04162018.pdf
    idref: PR.DS-5
    relation: ''
---

## /rule

Ensure that User Home Directories are not Group-Writable or
World-Readable

## /rationale

User
home directories contain many configuration files which affect the
behavior of a user\'s account. No user should ever have write permission
to another user\'s home directory. Group shared directories can be
configured in sub-directories or elsewhere in the filesystem if they are
needed. Typically, user home directories should not be world-readable,
as it would disclose file names to other users. If a subset of users
need read access to one another\'s home directories, this can be
provided using groups or ACLs.

## /description

For
each human user of the system, view the permissions of the user\'s home
directory:

```
# ls -ld /home/USER
```

Ensure that the directory is not group-writable and that it is not
world-readable. If necessary, repair the permissions:

```
# chmod g-w /home/USER
# chmod o-rwx /home/USER
```


text:
Logging GPS data to a SD card. Additional button press stores current location in a separate file as a point of interest (POI). GPS data is stored as a NMEA sentence.

| Component | Purpose |
| -------- |-------------|
| ESP32 - Wroom32 | Main controller. Reads GPS data from UART and writes the position to a SD card. Handles button pushes to store additional POIs. |
| GPS NEO-7M-C | GPS device |
| SD card read/write SPI module | Writes position to a SD card. |
| Momentary button with LED | Button when pressed initiates saving the current position to the SD card. Button contains a LED ring which is used to display the status of the system. |

TBD: Fritzing

## Pins used on the ESP32 - Wroom32
name, pin on board, pin in main.cpp

## Thirdparty Libraries
| Name | Purpose | URL |
| -------- |-------------| -------------|
| SdFat | Arduino FAT16/FAT32 Library | https://github.com/greiman/SdFat |
| EasyButton | Arduino library for debouncing momentary contact switches | https://github.com/evert-arias/EasyButton |
| MicroNMEA | A compact Arduino library to parse NMEA sentences | https://github.com/stevemarple/MicroNMEA |

## Decoding stack trace after crash
https://github.com/littleyoda/EspStackTraceDecoder
```
java -jar EspStackTraceDecoder.jar C:\Users\<USER>\Documents\Arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\bin\xtensa-esp32-elf-addr2line.exe C:\Users\<USER>\Documents\GitHub\ESP32-GPS-Logger\.pio\build\nodemcu-32s\firmware.elf dump3.txt
```

© 2020


text:
# Peritrichospora lacera Linder, 1944 SPECIES

#### Status
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Farlowia 1(3): 415 (1944)

#### Original name
Peritrichospora lacera Linder, 1944

### Remarks
null

repository: mdoering/backbone

path: /life/Fungi/Ascomycota/Sordariomycetes/Microascales/Halosphaeriaceae/Corollospora/Corollospora lacera/ Syn. Peritrichospora lacera/README.md

repo_name: mdoering/backbone


text:
+++
date = 2020-09-22
title = "Blobs of Text"
tags = ["media"]
draft = true
+++

Welcome to my collection of text blobs! I'm hoping to use this kinda like a blog, but in smaller
blobs. I think most blogs I read -- actually most texts I read -- are a bit too blobby. They sprawl
around, hitting lots of different points that may be related hierarchically or laterally. Sometimes
they have examples, or supporting anecdotes, or rebuttals to counter arguments, meaning most of the
time, it's harder to distill useful information or connections.

I think generally, when I'm "reading" text anyway, I'm usually just skimming through all that stuff
for the useful information in the first place. This was how I was actually taught to read
academic papers. This is also definitely how I browse the internet.

Maybe the problem is just that I'm too _lazy_, but reading all the words then filtering and
structuring the information in my head is just lots of work (especially if the author's done that
work already!). Most of the time, I find myself wishing the author had just published a concise
outline along-side their blobs of text. So, maybe, instead of continuing to write blobs of text we
should try to come up with new, exciting, concise mediums of communication.

Outlines, images, gifs, and videos, are all great kinda-natural media that have developed alongside
technology and give us better ways to communicate information. Now seems to be a great time, though,
to be really intentional about these methods of communication.
[Interactives](https://distill.pub/2020/communicating-with-interactive-articles/) / [explorable
explanations](https://explorabl.es/) are really intriguing ways to understand things like causality
while really leveraging modern tech. More exciting, I think there's still lots of room to discover
new ways of structuring or communicating different kinds of information for different contexts.

All that said, though, I'll still probably be mostly writing text blobs :p, because
blobs of text are almost always easier to write efficiently. (They also have a nice touch of
mirroring thoughts / the thought process more than most methods.)


text:
# expo-reason-starter

### Getting started

1. Install dependencies: `yarn` or `npm install`
2. Build the project in a watch mode: `yarn re:watch`
3. In a separte terminal start the expo project: `yarn start`

Have fun learning and starting with ReasonML ❤

### Useful resources:

- [ReasonML](https://reasonml.github.io/)
- [Reason React Native](https://reason-react-native.github.io/en/docs/)
- [ReasonReact](https://reasonml.github.io/reason-react/)
- [ReScript](https://rescript-lang.org/)
- [Real World OCaml 2](https://dev.realworldocaml.org/)

repository: productbrew/expo-reason-starter

repo_name: productbrew/expo-reason-starter


text:
Juno Model API
=================

Juno's model API is a little different than most other frameworks as
you don't use Python's class keyword, but instead simply call Juno's
model function.  A simple example:

    Person = juno.model('Person', name='string')

Person is now a class that you can use to construct objects, just as if
you had used `class Person:`.  The `name='string'` portion creates an
instance variable called `name` and maps it to a SQLAlchemy column of
type String.

To instantiate a Person object, you must use keyword arguments:

    brian = Person(name='brian')

`brian` now has a `name` variable and an `id` variable (its database
primary key).  It also has the following methods:

    brian.add()         # Adds the object to the current session, but
                        # doesn't commit it.
    brian.save()        # Adds (if necessary) and commits the object.
    brian.__repr__()    # Defaults to '<Person: id = X>'

Adding Other Database Columns
-------------------------------

You can add database columns by using string versions of their SQLAlchemy
column names ('string' for String).  You can also pass in literal Column
objects (see the SQLAlchemy docs for information on those):

    Person = juno.model('Person', name=Column(String))

Adding Custom Functions
-------------------------

You can add custom functions to your model in the model(...) call.  For
example, to add your own `__repr__`, use something like the following:

    Person = juno.model('Person', name='string',
        __repr__=lambda self: '<Person: %s>' %self.name)

You could also define the function beforehand if you needed more than one
statement, or don't like lambdas:

    def my_repr(self): return '<Person: %s>' %self.name

    Person = juno.model('Person', name='string', __repr__=my_repr)

Querying for Objects
----------------------

Juno doesn't have its own query language, and instead just gives you access
to SQLAlchemy's query system.  To use it, use the find function and then
attach whatever SQLAlchemy methods you need:

    people = juno.find(Person).all()

Models also include a find() function:

    people = Person.find().all()

Other Notes
-------------

If you need to use the current session directly, use the session() function,
which returns the SQLAlchemy session object:

    session().add_all([Person(...), Person(...), ...])

Creating a Database Connection
--------------------------------

Juno's default database engine is an in-memory SQLite database.  To specify
something different, use the 'db_type' and 'db_location' settings by calling
init() after importing Juno:

    juno.init({'db_type': 'mysql', 'db_location': 'localhost/foo'})

The database type can be any of the drivers that SQLAlchemy supports, and
the location is the part of the engine URL after the 'driver://' part.
See http://www.sqlalchemy.org/docs/05/dbengine.html#create-engine-url-arguments
for details.

For the Curious: How the Model Function Works
-----------------------------------------------

Juno's model() function is a little strange in that it is a normal function
that returns a class, exactly the same as if you had used the `class` keyword
to define it.  This is possible because of Python's metaclasses - classes
whose instances are classes.  In juno.py, JunoClassConstructor subclasses
'type', a builtin Python metaclass.  This allows model() to return a class
instead of a normal instance.

So how does your class get the variables and methods you want?  model()
takes the parameters you passed in (name='string') and builds a dictionary
that maps variable names ('name') to the database column you specified
(Column('name', String)).  Then it adds any callables you gave it (like the
`__repr__` example above), and then adds the included methods (default `__repr__`,
generic `__init__`, etc.).

This dictionary is passed along with your class name to the class constructor
mentioned above, and your class comes back out, and returned to you.

Reference
-----------

juno.model(class_name, variable_name=column_type, ..., callables)

    > Returns a class with the given variable names and methods.
    > By default includes:
        id       => Integer database column (primary key)
        __init__ => Functions like a normal __init__, and just like a
                    normal class you don't call it directly.
        __repr__ => Returns '<class_name: id = id>'
        add      => Adds instance to current session.
        save     => Adds and commits instance.
        find     => Class method to return a Query object.
    > Column types are all lowercase versions of the standard SQLAlchemy
      types ('string', 'integer', 'unicode', 'text', 'unicodetext', 'date',
      'numeric', 'time', 'float', 'datetime', 'interval', 'binary', 'boolean',
      'pickletype'), or actual Column objects.  See SQLAlchemy reference for
      details.
    > Callables are any lambdas or normal functions you want your class
      to have.  Like normal methods, they must take self as their first
      parameter (see __repr__ example).

juno.find(class or class_name)

    > Returns a SQLAlchemy query object for that model.
    > Takes a single parameter, which can either be a class or a string
      name of one (Person or 'Person').
    > This is the same as Person.find()

repository: abiczo/juno

repo_name: abiczo/juno


text:
Vui

    A lightweight component library for Vue2 Single Page Applications

## Documentation

<https://www.vui-kit.com/>

## Features
- Large set of easy to use Vue Components.
- Download and add to any new or existing project.
- Detailed documentaion.

## Roadmap
- 20 New Components (Spring 2019)
- Vui Admin (Python Flask) (Spring 2019)
- Emmet support for VSCode & Atom (Spring 2019)
- Support for Fontawesome 4 & 5 icons (Spring 2019)
- Vui Studio (Quasar/Electron App) (Summer 2019)

### Vui Admin
Unlike most themes that only provide a static UI, Vui Admin is a quick start application that provides a functional layout with many working features and a richer set of Vui components designed especially for Admin projects. Just drop the package into your Python Flask project folder and your ready to start developing.

### Vui Studio
Design and prototype your project interfaces using this drag and drop editor. Once you have a design, you can then generate
template code to add to your Vue project. Similar to Bootstrap Studio.

## Patreons
In order for me to dedicate time to design and develop these projects, I need to be able to support myself and pay the bills, so if you like the work I am doing and want to see more great projects added to the Vui Kit show your support and
become a pateron. You will get your logo or photo on this README page and also on every page of the Offical Vui-Kit website with a link to your site. [Become a patron.]

repository: webwanging/vui

repo_name: webwanging/vui


text:
# docker-samba-domain-controller

Alpine Linux based dockerized version of Samba configured as Domain Controller with OpenLDAP as backend.

## Configuration

The first time the container is started, it will provision a new domain controller, driven by the following environment variables (required):

- SAMBA_DC_REALM, the qualified name for the Domain Controller (e.g. MYDC.EXAMPLE.COM)
- SAMBA_DC_DOMAIN, the name for the Domain Controller (e.g. EXAMPLE)
- SAMBA_DC_ADMIN_PASSWD, the administrator password (e.g. Ch3ng3Me!)
- SAMBA_DC_DNS_BACKEND, a DNS backend for Samba (e.g. SAMBA_INTERNAL)

These values can be set in the `docker-compose.yml` file and the port mapping can be adjusted accordingly.

The default administrator account is `Administrator`.

## How to run

Simply run the following command:

`docker-compose up -d`

repository: madduci/docker-samba-domain-controller

repo_name: madduci/docker-samba-domain-controller


text:
# SustainableReviewsProject
* Deployment: [Grove](http://obscure-ocean-20287.herokuapp.com/)
* Demo Video: [Grove Demo](https://watch.screencastify.com/v/Nu4Yjppq1zTFrT58XkFc)

# Description
A site where users can post and view reviews on the sustainability of commercial brands.  The site partially operates on a by-user basis, meaning that posting reviews is restricted to only logged-in users.  The rating system is based out of 5 stars, a description is manditory for reviews to ensure that review bombing in either direction isn't as easy.

## Table of Contents
* [Description](#Description)
* [Installation Guidelines](#Installation-Guidelines)
* [Usage Information](#Usage-Information)
* [Contribution Guidelines](#Contribution-Guidelines)
* [License](#License)
* [Questions](#Questions)

# Installation Guidelines
npm i

# Usage Information

* GIVEN a website where users want to review a company
* WHEN the user searches for a company
* THEN the reviews for that company are displayed
* WHEN the user creates an account
* THEN they are able to write their own reviews
* WHEN the user logs out
* THEN their credentials are stored and they can log in any time

# Contribution Guidelines
* Contributions must be reviewed by at least one other contributor before they can be approved and merged.

# License
* [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
* [![License: BSD-2-Clause](https://img.shields.io/badge/License-BSD2Clause-red.svg)](https://opensource.org/licenses/BSD-2-Clause)
* [![License: BSD-3-Clause](https://img.shields.io/badge/License-BSD3Clause-red.svg)](https://opensource.org/licenses/BSD-3-Clause)
# Questions

# Email
Any questions? Please email us at:
*<EMAIL_ADDRESS>*<EMAIL_ADDRESS>*<EMAIL_ADDRESS>*<EMAIL_ADDRESS>
# Github
If you'd like to see more of our work, please visit:
* [kingcrowz](https://github.com/kingcrowz)
* [lapshaffer](https://github.com/lapshaffer)
* [chillaroo](https://github.com/Chillaroo)
* [jeffMullen](https://github.com/jeffMullen)

repository: kingcrowz/SustainableReviewsProject

branch_name: refs/heads/main

repo_name: kingcrowz/SustainableReviewsProject


text:
# Testing

## Karma

To avoid the following issue:

```
ERROR [launcher]: Cannot start Chrome
    Can not find the binary google-chrome
    Please set env variable CHROME_BIN
```

`$ export CHROME_BIN=/usr/bin/chromium-browser`

repository: bugtamer/mario-kart-helper

gha_language: TypeScript

gha_license_id: MIT

repo_name: bugtamer/mario-kart-helper


text:
# WatchAndDo

This simple application provides an easy way to watch files changes and executa some commnad when it happens

## Instalation
1. clone this repo
``` $ git clone github.com/lluz55/WatchAndDo```
2. Enter into clone folder
``` $ cd WatchAndDo```
3. Build
``` $ go build -ldflags="-s -w"```
4. Run
``` $ .\wad.exe```

## Usage
```
  -c string
        Command that will be executed when file changes
  -f string
        Path to file that will be observed
  -i int
        Interval to watch file changes (default 3)
  -w    Wait until file be created when it doesn't exists
```

## Example
```$ wad.exe -f test.txt -c "xcopy test.txt c:\"```

This will copy the ```test.txt``` file from current folder into ```c:\``` drive

## TODO
- [ ] Watches for changes in some folder
- [ ] Allow watch multiple files
- [ ] Be able to run in background

gha_language: Go


text:
In this recipe, we measure the test coverage and report it to the CDash
dashboard, where we will be able to browse the test coverage analysis
line-by-line, in order to identify untested or unused code.

repository: PacktPublishing/CMake-Cookbook

repo_name: PacktPublishing/CMake-Cookbook


text:
# pointilist
[![Build Status](https://travis-ci.org/tickelton/pointilist.svg?branch=master)](https://travis-ci.org/tickelton/pointilist)

**NOTE: Currently this README only acts as a mission statement for what pointilist is supposed to become but does not describe the current state of the project.**

**pointilist** will be a standalone tool that allows you to either draw on your github contribution calendar, or just have it filled automatically with random data.

There are already several tools that do this in one form or another, e.g.:

* [gitfitti](https://github.com/gelstudios/gitfiti)
* [github-contributions](https://github.com/IonicaBizau/github-contributions)
* [Git Draw](https://github.com/ben174/git-draw)
* [Badass](https://github.com/umayr/badass)

And even one from myself:

* [ghdecoy](https://github.com/tickelton/ghdecoy)

While all of these tool work well and fulfill a purpose I encountered certain shortcomings during my work on ghdecoy:

Some of the existing solutions require a multi step process to create the fake repository and push it to github (github-contributions, git-draw).

Others automate this process which leads to very weird constructs (python scripts generating shell scripts executing git commands, ... (gitfiti, ghdecoy)).

And finally all of them require an existing, working, properly configured git installation on the host they are to be run on.

**pointilist** tries to address these issues with the following approach:

* single step process: just run a single command line tool to randomize your graph, or create a custom pattern with the GUI tool and push to github with a single click.
* no external tools necessary: **pointilist** is going to be a pure python tool. No auxiliary scripts or git clients will be required.
* As a side effect this also leads to platform independence. **pointilist** will work on Windows just as well as on Linux (and possibly OSX, if i can get my hands on a system to test it).

If you are interested in the project, just check back here whenever you feel like it. As soon as a working version is available it will be announced here.

Also if you are interested in contributing, feel free to contact me at [tickelton@gmail.com](mailto:tickelton@gmail.com).

repository: tickelton/pointilist

repo_name: tickelton/pointilist


text:
# x-y-z-notification-services
 Sms and Email notification services which help client to subscribe on `basic, silver, or gold for SMS notifications` and `basic or premium subscription for Email notifications`
## Installation guide
```
git clone https://github.com/nahimanajz/x-y-z-notification-services
cd x-y-z-notification-services
composer update
cp .env.example .env
specify database
php artisan migrate
php artisan serve

```
Then use postman to fetch the following enpoints 👇🏾 to test functionalisty
get postman from [here](https://www.postman.com/)
Use `<IP_ADDRESS>:8000` to view swagger documentation
### Test
 - php artisan test
 ### Powerpoint docs
  Click  [here](https://docs.google.com/presentation/d/1pD_4xo780z1cbpACe3s4W89yY-MUdBjExfYo7CBAjsY/edit?usp=sharing) for slides
### List of endpoints
|Method| endpoint |
|------|---------|
|POST|api/signup|
|POST|api/login|
|POST|api/subscribe|
|PUT|/api/change/subscription/{subscription_id}|

### Tools used
- PHP: Laravel Framework
- Mysql Database but it okay you can user Postgress
- Rate limit and throlling are enabled per user and whole system as well

repository: nahimanajz/x-y-z-notification-services

gha_language: PHP

repo_name: nahimanajz/x-y-z-notification-services


text:
---
layout: post
title: Stata, simulations & replacing built-in matrix e(b)
date: 2016-05-23 16:00:00
description: how to replace e(b) matrix in Stata
---

Yesterday I tried to run some simulations in stata. However, what I intended to do turned out to be a stata nightmare:

First, I ran a conditional logit model. Second, based on the parameter estimates I wanted to take 1,000 draws (or more) from the multivariate normal distribution defined by my conditional logit model coefficients and its covariance matrix. After that I planed to calculate 1,000 predicted probabilities for each observation in my dataset. The reason why I wanted to do this was to compare a *factual* scenario existing in my dataset with a *counterfactual* one that I made up by changing some of the variables in the dataset.

Everything went smoothly but for some reason there was no variation whatsoever in my simulations. I first did not realize what the issue was, the code was clean, the loop worked, everything seemed to be fine.

Turned out the issue was that stata does not want users to replace the built-in coefficients matrix e(b). Yet, this was what my idea was all about.

To solve the issue I wrote a wrapper (download: [here]({{ site.baseurl }}/assets/code/emdb.ado)). You will need to unpack the .zip and copy the ado into your stata ado file directory (find a how to do: here). Let's just consider the following very short example:

1. load example data:
```bash
use http://www.stata-press.com/data/r13/clogitid
```
1. check variables:
```bash
list y x1 x2 id in 1/11
```
1. calculate conditonal logit model with id as group parameter:
```bash
clogit y x1 x2, group(id)
```
1. check out the coefficients matrix:
```bash
matrix list e(b)
==== x1 = .65336296 x2 = .0659169
```
1. Let's just say we would like to exchange x1(=0.8) and x2(=1.5)
```bash
generate x1_new = 0.8
generate x2_new = 1.5
```
1. Now we create a matrix from these values: (usually you will build a loop running through all ns.
By that you can exchange the matrix for all the draws you made from the original model.
```bash
mkmat x1_new x2_new if _n==1, matrix(draw)
```
1. check if it worked (PS:ALWAYS CALL THE MATRIX `draw`!!!! emdb is built only for this matrix name):
```bash
matrix list draw
```
1. looks good. Now we can use the wrapper (`emdb`) to exchange the matrix with our draws:
```bash
emdb
```
1. did it work?!?
```bash
matrix list e(b)
====x1 =.80000001 x2 = 1.5
*-> It did, Heureka!
```

The clue to solve the issue is `emdb`. This is the very short wrapper I wrote to force stata to let users replace e(b).

gha_language: JavaScript