tag:blogger.com,1999:blog-387947022100504122023-06-20T06:34:17.766-07:00Algorithms, etc.Unknownnoreply@blogger.comBlogger9125tag:blogger.com,1999:blog-38794702210050412.post-86197375501325206362012-09-30T00:51:00.001-07:002012-10-01T12:07:59.849-07:00Analyzing the DubLi Xpress Gift Card AuctionGo to <a href="http://dubli.com/">DubLi.com</a> and click on the "Play Video" link for the Xpress auction.<br />
<br />
The video describes a type of reverse auction in which you can buy "Gift Cards". Gift cards are vouchers worth a certain amount ($100, $200, etc.) from many different stores such as: <a href="http://bidauctionwebsite.com/dubli-gift-card-xpress-auctions-recent-history/">Amazon, Disney, Starbucks and Macys</a>.<br />
<br />
It is even possible to purchase a Gift Card from Mastercard or American Express, in which case (I assume) the money is available on your credit card and can be used to purchase anything you like.<br />
<br />
The Gift Cards are guaranteed to be sold at a discount because of the nature of the reverse auction.<br />
<br />
As the video explains, there are a limited number of cards on auction, and potentially thousands of bidders for each card at any one time. You see the type of card being auctioned, for example: $100 Amazon Gift Card, but you do not see the current price when you enter the auction. Instead you have 2 buttons: "Show Price" and "Buy Now!".<br />
<br />
A click on "Show Price" reveals the current price. Each time someone does this, the price goes down 20c. Anyone who is happy with the price can click on "Buy Now!" to purchase the card at the current price (but you must click at least once on "Show Price).<br />
<br />
Each click on "Show Price" costs you one DubLi Credit. DubLi Credits have to be purchased beforehand, and cost 80c each.<br />
<br />
Sound like a good deal? After all, in some cases you can get a 50% reduction for the cost of one credit (80c). Apparently <a href="http://www.medianetgroup.com/dubli-reaches-50000-xpress-gift-card-reverse-auction-sold">thousands of people think so</a>.<br />
<br />
But, as we examine things a bit closer, a different picture arises. The problem is the, so-called, <a href="http://www.blogger.com/%3Ca%20href=%22http://en.wikipedia.org/wiki/Casino_game%22%3E">house advantage</a>, which can be shown to be 75%. Compare this to American Roulette which has a house advantage of 5.26%.<br />
<br />
To understand this, the first thing you have to know is that the Xpress auction is a game of chance. Your bets are the credits you spend, and when you click "Buy Now!", you win if your click is in before any of the other players trying to "win" the card. So, if 1000 people are bidding for a card, your chances of winning are 1 to 1000, assuming everyone uses the optimal strategy (more about this later).<br />
<br />
Now if you have a chance of 1 in 1000 of winning, then to be absolutely fair, the payout should be 1000 to 1 (for betting $1 you should get $1000 if you win). But, this is never the case because then a Casino could never earn anything. The difference in odds to payout is called the house advantage. It means that, in the long run, this is the Casino's "sales margin", and since every Casino has expenses, everyone understands that this is necessary to make gambling a viable business.<br />
<br />
But what about a house advantage of 75%?<br />
<br />
Consider the following:<br />
<br />
You walk into a casino and look over in amazement at the roulette table. Gathered around it are literally thousands of people, all madly placing bets in what looks something like a gold rush! You realize you must be missing some massive winning streak, and run over to join in!<br />
<br />
You are about place a bet, but when you see the Roulette wheel you are shocked. Instead of the usual two green numbers, 0 and 00, the wheel has whopping 108 green numbers on it! The man next to you places a bet on red, and you ask him what the payout is. He looks baffled and says: "Red and black, pays 2 to 1 of course..."<br />
<br />
What you are witnessing is a house advantage of 75%. Now, would you place a bet?<br />
<br />
Well the scene described above is similar to what is happening at DubLi. From the illustration it is clear that a house advantage of 75% is so high that people would normally never place a bet. So the only reason I can think that people are playing is because they cannot see the wheel! <br />
<br />
But how do we get the 75%?<br />
<br />
Firstly, let me explain how to calculate the house advantage. You take the "fair" payout and subtract the actual payout, and then multiply this by the odds.<br />
<br />
For example, in the case of the Roulette wheel with 28 numbers (18 black, 18 red, and 2 green), a fair payout is 38 to 1, because the odds are 1 to 38 (1/38). The actual payout is 36 to 1, so the difference is 2 (38/1 - 36/1). Now we multiply this by the odds and the result is 2/38 which is equal to 5.26%.<br />
<br />
This reflects the fact that there are 2 ways of creating a house advantage: increase the odds with the same payout (which is what is done in roulette, where the odds are increased by adding green numbers but the payout remains the same, i.e. as if the green number were not on the wheel), or you can keep the same odds, and decrease the payout (this is what DubLi does).<br />
<br />
So to figure out the house advantage for DubLi, we need to know the odds, and the actual payout.<br />
<br />
We start by assuming that we have <i>N</i> DubLi members (you have to have a VIP membership subscription to be able to take part in an Xpress Auction) auctioning the same card. Now when calculating the house advantage we always assume that all players use the optimal strategy (if they don't, things just get worse!).<br />
<br />
If all members are using the optimal strategy, then they are also using the <b>same</b> strategy, which in turn means that the odds of any member winning the card are the same as any other. So the odds of any member winning are simply 1 to <i>N</i>, in this case.<br />
<br />
Now let us assume that the number of clicks on the "Show Price" button, before the card is won, is <i>M</i>. This means that the price of the card is reduced by <i>M</i> x 20 (20<i>M</i>) cents before it is purchased. So 20<i>M</i> cents is the amount the winning member actually wins (because he has to pay for the rest of the card).<br />
<br />
Since all members are using the same strategy we can assume that all members will click the "Show Price" button the same number of times, on average, before they press the "Buy Now!" button. This means that each member pressed the "Show Price" button <i>M</i>/<i>N</i> times (<i>M</i> divided by <i>N</i>), including the winner. This means the winner is "in" for <i>M</i>/<i>N</i> x 80 (80<i>M</i>/<i>N</i>) cents. So we now know the payout. On a bet of 80<i>M</i>/<i>N</i> cents, DubLi pays out 20<i>M</i> cents, which means the payout is 20<i>M</i> to 80<i>M</i>/<i>N</i>, or (20<i>M</i>) / (80<i>M</i>/<i>N</i>) to 1 which is <i>N</i>/4 to 1, after simplification.<br />
<br />
So the house advantage is: <i>N</i>/1 (fair payout at odds of 1:<i>N</i>) minus (<i>N</i>/4)/1 (actual payout) multiplied by 1/<i>N</i> (the odds).<br />
<br />
And, (<i>N</i>/1 - (<i>N</i>/4)/1) x 1/<i>N</i> = (4<i>N</i>/4 - <i>N</i>/4)/<i>N</i> = (3<i>N</i>/4)/<i>N</i> = 3/4 = 75% <i>QED</i>!<br />
<br />
Is this the same as a Roulette wheel with 108 green numbers? Lets check:<br />
<br />
A Roulette wheel with 108 green numbers has a total of 144 numbers (18 black, 18 red, and 108 green), so a fair payout is 144 to 1. The actual payout is 36 to 1 so the difference is 144 - 36 = 108. The odds are 1 to 144, which we multiply by the payout difference to get 108/144 = 75%.<br />
<br />
Now if that was all, that would be certainly be bad enough, but it gets worse!<br />
<br />
Imagine a Casino that does not convert your chips to cash at the end of the day, but instead gives you a voucher for Starbucks! And imagine a Casino that does not let you place a bet until you have signed up for a monthly membership fee!<br />
<br />
Well that's <a href="http://us.dubli.com/">DubLi</a> ... enjoy!Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-38794702210050412.post-61927232762039517262011-12-11T14:20:00.000-08:002011-12-11T14:54:11.209-08:00The Search for GodThe search for God has been explained using the following story:<br /><br />A Philosopher, an Atheist, and a Theologian find themselves in a dark room and are told to find the black cat.<br /><br />The Philosopher begins looking for the cat everywhere, stumbling around in the dark as he goes.<br /><br />The Atheist, not being able to see the cat, says "the cat does not exist", and doesn't even start looking.<br /><br />The Theologian simply claims "I have it!", leaving the others to wonder if that is true!<br /><br />This amusing story appears to be a good illustration of the search for God, but it is incomplete, because the Theologian mentioned above could not be a Christian:<br /><br />If a Christian were given the same task, he would simply call the cat and, if it exists, it would come to him!Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-38794702210050412.post-61487058916898878202010-08-25T07:59:00.000-07:002011-12-11T14:43:03.950-08:00A review of "Saving Darwin" by Karl GibersonI bought this book because I was most interested in what would convince a genuine christian that evolution is true.<br /><br />Giberson gives 3 reasons why he believes Intelligent Design (ID) fails:<br /><br /><span style="font-weight: bold;">1. Intelligent Design substitutes God for gaps in Science</span><br /><br />This is a common argument, and goes like this:<br /><ul><li>Our past is full of people claiming God is responsible for this or that (something they don't understand), only to be proven later by advances in Science that there is a natural explanation.</li><li>ID is all about pointing out what the Theory of Evolution cannot explain (i.e. it identifies "gaps" and ascribes them to God).</li><li>But we have seen in the past that Scientific advance will eventually close the gaps, so this makes ID irrelevant.</li></ul>So what is wrong with the reasoning:<br /><br /><span style="font-weight: bold;">It assumes that a negative cannot be proven. </span>In other words, it assumes that we cannot prove that a gap will never be "filled" by a naturalistic explanation.<br /><br />But mathematics and logic show that negatives can be proven (<a href="http://en.wikipedia.org/wiki/Proof_of_impossibility">proof of the impossible</a>). For example, Pythagoras proved that the square-root of 2 cannot be expressed as the ratio of two integers.<br /><br />If we transfer this example to the ID/Evolution debate it would be like this:<br /><br />The ID proponent says: you will never find a ratio of two integers that equal the square-root of 2.<br />The Evolutionist says: but we have not tried all integers yet.<br /><br />The Evolutionist is missing that fact that it is possible to prove that something is impossible, and after this, trying to do so is just a waste of time.<br /><br />Now lets look at a real ID argument:<br /><br />The ID proponent says: you will never find a naturalistic explanation for DNA, because DNA is a code, and a code is a symbolic language that has meaning, and meaning is an abstract notion which requires an intelligent mind to create it.<br /><br />The Evolutionist says (something like): but we have not looked at all possible chemical paths yet.<br /><br />The ID argument above <span style="font-weight: bold;">is true</span> (!), and proves that looking for a naturalist explanation for DNA is a fruitless exercise. Unfortunately it looks like it will take most origin of life researchers many more years of frustration before they see the truth of this.<br /><br />It is due to arguments such as the one above (and there are many), that I have no fear that the gaps identified by ID will be filled by Science sometime in the future.<br /><br /><span style="font-weight: bold;">2. Some things in nature are "cruel and barbaric"</span><br /><br />This argument says that if all things in nature are designed by God, then so too are the cruel and barbaric parts, which in no way fit with a kind and loving God that is followed by ID proponents.<br /><br />So ID supporters have "shot themselves in the foot".<br /><br />This argument stems from the fact that Giberson believes that ID is just Creation Science in a "cheap tuxedo". This is where he is very wrong!<br /><br />So this argument is easily dismissed by simply saying that the intelligence that ID hypothesizes is cruel and vindictive and likes to watch its creation suffer! For example, the Hindus have some Gods that would fit this description quite well.<br /><br />In other words, since ID does not identify the intelligence, this argument is irrelevant!<br /><br /><span style="font-weight: bold;">3. Norene's Knees - Some things in nature are badly designed</span><br /><br />I think this argument is well known enough that I need not explain it any further.<br /><br />The argument from an ID perspective is also easily countered:<br /><br />Something that is badly designed, still needs to be designed. In other words, even for a bad design, intelligence is still required!<br /><br />Nothing more needs to be said about this argument. There is absolutely no reason why the Designer should build things to suite our idea of perfection.<br /><br />The argument is irrelevant, just like the previous one.<br /><br />Of course, as a Christian, arguments 2 and 3 above give pause for thought. However, they do not change the fact that ID has the arguments that prove that some things in nature must have been created by an intelligence.<br /><br />And it really doesn't matter that I cannot square this entirely with my understanding of God, as revealed by scripture. So for better or worse, as a Christian I believe that the intelligence hypothesized by ID is the God of the Bible.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-38794702210050412.post-6080710144935178402010-07-08T06:35:00.001-07:002010-07-08T07:02:55.263-07:00Did Jesus die for our Sickness?<span style="font-weight: bold;">For a correct understanding of healing and Isaiah 53:4-6:</span><br /><br />The belief (referred to as "the belief" below) that God has already healed (in the sense that He has already forgiven our sins), and no longer needs to heal today, is incorrect because of a misunderstand of <span style="font-weight: bold;">Isaiah 53:4-5</span> (see below).<br /><br /><span style="font-weight: bold;">1. Verse 53:4 <span style="font-style: italic;">"he took up our infirmities and carried our sorrow"</span></span><br /><br />According to "the belief" this verse refers to the cross. This is <span style="font-weight: bold;">not</span> correct. The correct understanding of this verse is given to us by Matthew himself in <span style="font-weight: bold;">Matthew 8:16-17</span> (see below)<br /><br />By the context it is clear that Matthew means this verse refers to the actions of Jesus <span style="font-weight: bold;">before</span> the cross!<br /><br />This also indicates how to understand the entire verse 4: the prophet is telling us how we can identify the Messiah. He would heal us and share our grief, but we would nevertheless be considered a false prophet.<br /><br /><span style="font-weight: bold;">2) Verse Isaiah 53:4 <span style="font-style: italic;">"with his stripes we are healed"</span></span><br /><br />Because of a misunderstanding of verse 4 "the belief" holds that this phrase confirms that Jesus died for our sickness. It does not.<br /><br /><span style="font-style: italic;">"with his stripes we are healed"</span> does not refer to sickness. Here are the reasons:<br /><br /><span style="font-weight: bold;">2.1. <span style="font-style: italic;">"stripes"</span> (<a href="http://algorithmsetc.blogspot.com/2010/07/did-jesus-die-for-our-sickness.html#stripes">see Hebrew below</a>)</span><br /><br />Jesus suffered stripes because, according to <span style="font-weight: bold;">Deuteronomy 25:1-3</span> (see below), this is the punishment for sin. So the question is: <span style="font-weight: bold;">is sickness a sin?</span><br /><br />If not, then <span style="font-style: italic;">"with his stripes we are healed"</span> cannot be referring to sickness. Sickness is <span style="font-weight: bold;">not</span> a sin and so phrase does not refer to sickness.<br /><br /><span style="font-weight: bold;">2.2. What does <span style="font-style: italic;">"with his stripes we are healed"</span> refer to?</span><br /><br />This is speaking of being healed from the disease of the soul called sin! In <span style="font-weight: bold;">Mark 2:17</span> (see below) Jesus refers to the sinner as being sick, and being healed by repentance.<br /><br /><span style="font-weight: bold;">3. Verse 53:6 <span style="font-style: italic;">"We all, like sheep, have gone astray"</span></span><br /><br />Both verse 4 and verse 6 provide the context in which we must understand verse 5 (we have already dealt with verse 4).<br /><br />In verse 6 Isaiah explains the <span style="font-weight: bold;">reason for the cross</span>: because the sheep went astray, <span style="font-weight: bold;">not</span> because they were sick! So God laid our sin, not our sickness, on Jesus.<br /><br />So by the above reasoning it is clear that Jesus did not suffer and die to heal our bodies. This was also not necessary. God has been healing since old testament times, and even raised people from the dead before Jesus died on the cross (1 Kings 17:22).<br /><br /><span style="font-weight: bold;">4. Further "common sense" reasons</span><br /><br /><span style="font-weight: bold;">4.1. The belief that God healed us (once and for all) on the cross does not make sense</span><br /><br />Why would God put the healing of our bodies (something that is not eternal) on the same level as the healing of our soul, which is eternal?<br /><br /><span style="font-weight: bold;">4.2. The fact that we are not healed (in body) completely when we become Christians is obvious.</span><br /><br />The belief asks us to suspend disbelief. This is an incorrect understanding of faith which is a trust in the presence of evidence, not blind belief in the face of contradicting facts.<br /><br /><span style="font-weight: bold;">5. But Jesus did die for our sickness!</span><br /><br />Yes, indeed, it is not wrong to say that Jesus died to heal us! Just like one day we will be without sin, we will also be without sickness. This is the result of the cross. Why?<br /><br />Through the fall, both sin and sickness came into the world. But note: the fall was a sin, not a sickness! So sickness came through sin. So the root of the problem is sin.<br /><br />Jesus dealt with the root of the problem with his work on the cross. This makes it possible for God to forgive our sin, and remove all the results of sin, which includes sickness and natural disorder.<br /><span style="font-weight: bold;"></span><br /><span style="font-weight: bold;">REFERENCED VERSES</span><br /><br /><span style="font-weight: bold;">Isaiah 53:4-5 (King James Version)</span><br /><br /><span style="font-weight: bold;">4 </span>Surely he hath borne our griefs, and carried our sorrows: yet we did esteem him stricken, smitten of God, and afflicted.<br /><span style="font-weight: bold;">5 </span>But he was wounded for our transgressions, he was bruised for our iniquities: the chastisement of our peace was upon him; and with his stripes we are healed.<br /><span style="font-weight: bold;">6 </span>All we like sheep have gone astray; we have turned every one to his own way; and the LORD hath laid on him the iniquity of us all.<br /><br /><span style="font-weight: bold;">Isaiah 53:4-5 (New International Version)</span><br /><br /><span style="font-weight: bold;">4 </span>Surely he took up our infirmities and carried our sorrows, yet we considered him stricken by God, smitten by him, and afflicted.<br /><span style="font-weight: bold;">5 </span>But he was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed.<br /><span style="font-weight: bold;">6 </span>We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all.<br /><br /><span style="font-weight: bold;">Matthew 8:16-17 (NIV)</span><br /><br /><span style="font-weight: bold;">16 </span>When evening came, many who were demon-possessed were brought to him, and he drove out the spirits with a word and healed all the sick.<br /><span style="font-weight: bold;">17 </span>This was to fulfill what was spoken through the prophet Isaiah: "He took up our infirmities and carried our diseases."<br /><br /><span style="font-weight: bold;">Deuteronomy 25:1-3 (NIV)</span><br /><br /><span style="font-weight: bold;">1 </span>When men have a dispute, they are to take it to court and the judges will decide the case, acquitting the innocent and condemning the guilty.<br /><span style="font-weight: bold;">2 </span>If the guilty man deserves to be beaten, the judge shall make him lie down and have him flogged in his presence with the number of lashes his crime deserves,<br /><span style="font-weight: bold;">3 </span>but he must not give him more than forty lashes. If he is flogged more than that, your brother will be degraded in your eyes.<br /><br /><span style="font-weight: bold;">Mark 2:17 (NIV)</span><br /><br /><span style="font-weight: bold;">17 </span>On hearing this, Jesus said to them, "It is not the healthy who need a doctor, but the sick. I have not come to call the righteous, but sinners."<br /><br /><span style="font-weight: bold;">NOTES</span><br /><br />This article is largely a summary of <a href="http://www.americaisraelprophecy.com/print-versions/doesgodalwaysheal2.html">the following text</a>.<br /><br /><span style="font-weight: bold;"><a name="stripes" id="stripes"></a>Hebrew meaning of "stripes": </span>In Isaiah 53:4: "And with His stripes," the word used for "stripes," in the Hebrew, is "chaburah," Strong 2250. It is in the singular, and it literally means, "a bruise," the result of a blow on the skin (this was quoted from <a href="http://www.truthforthelastdays.com/byhisstripes/byhisstripes02.html">here</a>).Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-38794702210050412.post-69202177288885268242009-08-12T00:27:00.000-07:002011-12-31T08:06:27.891-08:00The Wise Old Father – A Parable and a PuzzleA wise old father had many children, one of which is you.<br /><br />When the time came for the children to leave the home and make their own way in the world, the father called his children together to speak to them.<br /><br />He said:<br /><br /><span style="font-style: italic;">"My children, because I love you I want to give you my blessing before you go out into the world. With this blessing comes both obligation and privilege. Your privilege will be that you can call on me at any time for help wherever you are, I will be there for you. Your obligation will be to live your lives us I have taught you since you were young".</span><br /><br /><span style="font-style: italic;">"However, although I love you all, not all of you have been chosen to receive this blessing. Tonight while you are sleeping I will place an envelope next to your beds. In the envelope you will find a letter from me, written either on white or black paper. If the letter is written on white paper, then you will know that you are one of the few that I have chosen to receive my blessing. </span><span style="font-style: italic;">It grieves me to say this, </span><span style="font-style: italic;">but those whose letter is written on black paper, will have to leave without my blessing".</span><br /><br />Although the wise old father had already chosen which children he would bless, he added the following:<br /><br /><span style="font-style: italic;">"Now it is time to sleep. Tomorrow, before you leave each of you will pass my workshop door. If you wish to receive my blessing, just knock, and I will invite you in. If you do not wish to receive my blessing then just leave without knocking".</span><br /><br />The next morning each of the children wake up to find an envelope beside their bed. Each of them wonder as they hold the envelope, trembling in their hands, if the letter is written on white or on black paper.<br /><br />Now remember that you are one of the children:<br /><br />Soon it is time to leave and you are standing in the line before your father's workshop, with all your belongings packed to go. As you get closer you can see others as they come to the door. Some just walk straight past and leave without looking back, and some stop and knock.<br /><br />But most stand for a while before the door contemplating, the envelope in their hands. They seem to have difficulty deciding whether to open the envelope first, knock on the door, or just walk out. You notice that whenever someone knocks on the door, it is always opened, and they go inside.<br /><br />But then, with horror you notice something else:<br /><br />Whenever someone opens the envelope as they stand before the door, the letter is always black!<br /><br />Soon enough it is your turn to decide. What do you do? Do you, knock at the workshop door, leave without knocking or open the envelope?<br /><br /><div style="text-align: center;">≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈<br /></div><br /><span style="font-weight: bold;">What does it all mean:</span><br /><br />The wise old father is God (of course).<br /><br />His children are all the people of the world.<br /><br />The blessing that the father wishes to give is eternal life to those who are saved.<br /><br />Those children that leave without the father's blessing are the children that suffer eternal death, always separated from the father.<br /><br />The envelope represents God's election. The doctrine of election teaches us that God chooses those that would be saved before the foundation of the world (Eph 1:4).<br /><br />The door of the workshop is the door of which Jesus says: seek and you will find, knock and the door will be opened (Mat 7:7).<br /><br />The story illustrates the fact that God's election does not take from us the burden of choice.<br /><br />Lets look a bit behind the scenes. We have already seen that whenever a child knocked on the door the door was opened. But what about the letter?<br /><br />When the letter was opened in the father's workshop it was always found to be written on white paper. In a similar manner, all those that walked out without knocking found that their letter was written on black paper.<br /><br />But what of those that opened the letter before knocking or leaving? The paper was always black. What does this mean? I will come back to this shortly.<br /><br />Firstly how does this information help us to make our own personal decision as we stand before the door. We have 3 options: knock at the door, walk out without knocking or open the letter.<br /><br />Well, we know that if we knock, the door will be opened. So if we love the father and want his blessing all we have to do is knock. In this case, the contents of the envelope is irrelevant. Nobody who knocks is rejected!<br /><br />On the other hand, if I do not want the fathers blessing and do not want to following his instructions, then I can just walk out without knocking. Once again, the contents of the envelope is irrelevant. The father cannot and will not stop us from walking out.<br /><br />But what about those that opened the envelope before knocking or leaving? Why were they always rejected by the father? Is that not unfair? This is what it's all about. We are now ready to accuse the father of gross unfairness. How could he choose some, and not the others?<br /><br />But this is the key to the story:<br /><br /><span style="font-weight: bold;">There is no real life equivalent for this situation!</span> It would mean that we could look into the mind of God: which we cannot!<br /><br />So this leaves only 2 possibilities, both of which we have seen that contents of the envelope is irrelevant.<br /><br />In a real sense of the word, we discover Gods election for us in how we make our decision. This fact is illustrated by the story.<br /><br />And at the same time, it does not change that fact that every born again Christian has been specifically elected by God to this position. <span style="font-weight: bold;">And, as hard as it a sounds, it means that others were </span><span style="font-weight: bold;">not</span><span style="font-weight: bold;"> chosen.</span><br /><br />Believe it or not,<span style="font-weight: bold;"> not just anyone can come to God</span>! So, the question is. What about you? Are you one of the chosen ones?<br /><br />If you have any doubt, do not despair, just knock at the door. The Bible tells us, it will always be opened!Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-38794702210050412.post-38599977173633991802008-04-28T02:13:00.000-07:002008-04-28T03:59:58.374-07:00Slow write, fast read lockA "slow write/fast read" lock could be used to lock memory mapped files that need to be exclusive locked sometimes for resizing.<br /><br />The lock works as follows:<br /><br />- All threads have a flag indicating if the have a read lock.<br />- There is a global write lock flag which is protected by a mutex with a condition.<br /><br />Reader thread:<br /><br />- Set the read flag belonging to the caller thread<br />- Check the write flag, if set<br /> * Unset read flag<br /> * Lock mutex and wait for condition to be signaled.<br /> * Unlock mutex<br /> * On signal retry.<br />- Do read operations<br />- Unset read flag<br /><br />Writer thread<br />- Obtain mutex<br />- Set the write flag<br />- Wait for all threads read flags to be unset<br /> (this requires going through all threads once)<br />- Do write operation<br />- Unset write flag<br />- Signal mutex<br />- Unlock mutexUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-38794702210050412.post-32204198865661899482007-11-16T02:27:00.000-08:002007-11-16T03:24:19.287-08:00The Ultimate Boeing 747 Gambit that BackfiresRichard Dawkins is one of the most famous atheists of our time. The Ultimate Boeing 747 Gambit is from his latest book <span style="font-style: italic;">The GOD Delusion</span>.<br /><br />Dawkins introduces the "Ultimate Boeing 747 Gambit" as the "central argument of my book". He quotes Dan Dennett as calling it "an un-rebuttable refutation" of the existence of God, and adds "I have yet to hear a theologian give a convincing answer despite numerous opportunities and invitations".<br /><br />The Boeing 747 allusion is from Fred Hoyle's famous argument against the probability of life spontaneously assembling itself on the primordial earth. According to Hoyle, the probability of life originating on Earth is no greater than the probability that a tornado, sweeping through a junkyard, would assemble a working Boeing 747 airliner. However, Dawkins turns the argument around, and concludes that any designer must be even more improbable:<br /><br />"However statistically improbable the entity you seek to explain by invoking a designer, the designer himself has got to be at least as improbable. God is the Ultimate Boeing 747."<br /><br />I will begin by showing the error in Dawkins' reasoning, and then go on to produce a positive proof of God myself.<br /><br />Dawkins does not present the argument formally, but here it is extracted from the few sentences he actually devotes to the argument. Thanks to Rich Deem of <a href="http://www.godandscience.org/">http://www.godandscience.org</a> for introductory paragraphs and the basis for Argument #1 and #2 below.<br /><br /><span style="font-weight: bold;">Argument #1:</span><br /><br /><span style="font-style: italic;">Premise #1</span>. Every existing entity that shows evidence of design requires a designer superior to itself.<br /><span style="font-style: italic;">Premise #2</span>. If God exists, then God shows evidence of design in himself.<br /><span style="font-style: italic;">Conclusion #1</span>. Hence God requires a designer (another God) superior to himself.<br /><br /><span style="font-weight: bold;">Argument #2:</span><br /><br />Premise #3. Infinite regressions are not possible.<br /><span style="font-style: italic;">Premise #4</span>. <span style="font-style: italic;">Conclusion #1</span> above implies an infinite regression (an infinite number of gods).<br /><span style="font-style: italic;">Conclusion #2</span>. Hence, <span style="font-style: italic;">Conclusion #1</span> is not possible, hence <span style="font-style: italic;">Premise #2</span> is false, so God does not exist.<br /><br />Although Dawkins does not believe that <span style="font-style: italic;">Premise #1</span> is true, he accepts it as such (for the purpose of the argument), assuming that this is a premise all theists would accept as true. Dawkins, on the other hand, believes that the design we see in nature and the universe is an illusion. In other words, these things looked designed but were not.<br /><br />Now, given that theists believe <span style="font-style: italic;">Premise #1</span>, Dawkins has proven that God does not exist. This is Dawkins ultimate proof which puts theists in a loose-loose situation. If they believe that things that look designed are really designed then there is no God, and if the don't believe that things that look designed are really designed (as Dawkins does), then there is no need for God!<br /><br />However, Dawkins' argument hinges on the fact that theists must accept <span style="font-style: italic;">Premise #1</span> as stated.<br /><br /><span style="font-style: italic;">The problem is, we don't!</span><br /><br />Theists believe that <span style="font-style: italic;">Premise #1</span> is only true for <span style="font-style: italic;">contingent</span> entities! In other words, <span style="font-style: italic;">Premise #1</span>, as stated, is <span style="font-weight: bold;">false</span>. Instead it should be formulated as follows:<br /><br /><span style="font-style: italic;">Premise #1</span>. Every existing entity that shows evidence of design requires a designer superior to itself as long as that entity is contingent.<br /><br />Now all entities are either <span style="font-style: italic;">contingent</span> or <span style="font-style: italic;">necessary</span>. A contingent entity is subject to another entity in a cause/effect relationship. A necessary entity is an affect without a cause.<br /><br />It is possible to prove that at least one necessary entity must exist, if we accept that infinite regressions are not possible (<span style="font-style: italic;">Premise #3</span> above). By this argument the universe itself must be necessary because if it is not, then it would have been caused by another entity, which itself must be caused by another entity, leading to an infinite regression.<br /><br />So since we know that the universe exists (by observation!) <span style="font-style: italic;">there must be at least one one necessary entity</span>.<br /><br />This means that the qualification, "as long as that entity is contingent", to <span style="font-style: italic;">Premise #1</span> above is valid. In other words, the distinction between contingent or necessary entities is real!<br /><br />So we can now simply say that God is a necessary entity, and is therefore the argument falls flat because under these circumstances, <span style="font-style: italic;">Premise #1</span> as stated by Dawkins in <span style="font-style: italic;">Argument #1</span> is false, which means <span style="font-style: italic;">Premise #2</span> is free to remain true. In other words, God may exist, and may continue to appear designed (due to His obvious complexity) without vanishing in a <span style="font-style: italic;">poof of logic</span> (as Douglas Adams would say - whom Dawkins so loves to quote!).<br /><br />The concludes the rebuttal of Dawkins' "Ulitimate Boeing 747 Gambit". But we can go one step further and show that the gambit actually backfires.<br /><br />The fact that God is <span style="font-weight: bold;">the</span> necessary entity raises the following question:<br /><br />If there is at least one necessary entity, then why does it have to be God? Why could it not be the universe itself? In affect, we could pick anything, or any number of things to be the necessary entity/entities.<br /><br />Lets look at some of the theories that have been proposed:<br /><br /><span style="font-style: italic;">Proposal #1</span>: The universe is the eternal necessary entity. Space and time have always existed. This is also known as the steady state model of the cosmos.<br /><br /><span style="font-style: italic;">Proposal #2</span>: The universe is ever exploding from a singularity and the crushing back to the singularity in an endless cycle. This is the "oscillating" variation of the steady state model.<br /><br /><span style="font-style: italic;">Proposal #3</span>: The universe came from a singularity that is eternal and necessary. At some point it exploded to become the universe as we know it.<br /><br /><span style="font-style: italic;">Proposal #4</span>: There is a God that has always existed and is the necessary entity. God created the universe, and everything in the universe is contingent, including the universe itself.<br /><br /><span style="font-style: italic;">Proposal #5</span>: God as we know him today is a necessary entity, but arose from a "God-singularity" long ago. The God-singularity was necessary though.<br /><br /><span style="font-style: italic;">Proposal #6</span>: Everything is necessary. For example, everything leapt into existence 10 minutes ago, fully formed, with memories and history perfectly in place. Contingent entities have only appeared in the last 10 minutes.<br /><br /><span style="font-style: italic;">Proposal #7</span>: There are multiple necessary God entities. One or more of them created the universe.<br /><br />We observe that:<br /><br /><span style="font-style: italic;">Proposal #1</span> has been ruled out by the Big Bang theory. With regard to <span style="font-style: italic;">Proposal #2</span>, recent research shows that the universe is expanding faster which indicates that the universe only began once (this point is conceded by Dawkins).<br /><br /><span style="font-style: italic;">Proposal #3</span> seams to be what Richard Dawkins believes.<br /><br /><span style="font-style: italic;">Proposal #4</span> is the Christian theocratic point of view.<br /><br /><span style="font-style: italic;">Proposals #5, #6 and #7 </span>have been included for completeness. If we simple state that there must be at least one necessary entity, then they cannot be ruled out.<br /><br />Now consider the following arguments:<br /><br /><span style="font-style: italic;">Argument #3</span>:<br /><br /><span style="font-style: italic;">Fact #1</span>. Time and space are indivisible. The General Theory of Relativity introduced the idea of the space-time continuum, which basically shows that it is not possible to have the one without the other.<br /><span style="font-style: italic;">Fact #2</span>. The universe has a single beginning. The Big Bang Theory proves that our universe had a definite beginning as a singularity.<br /><span style="font-style: italic;">Conclusion #3</span>. Space and time had a definite beginning, which coincides with the beginning of the universe.<br /><br /><span style="font-style: italic;">Argument #4</span>:<br /><br /><span style="font-style: italic;">Fact #3.</span> All contingency requires time except the beginning of time itself. This is due to the fact that cause and effect must be ordered, a cause must always proceed an effect.<br /><span style="font-style: italic;">Fact #4</span>. Time began with the beginning of the universe (from <span style="font-style: italic;">Conclusion #3</span> above)<br /><span style="font-style: italic;">Conclusion #4</span>. Contingency (except the beginning of time itself) began with the beginning of the universe.<br /><br />This last conclusion allows us to eliminate <span style="font-style: italic;">Proposal #5</span>, because it would require contingency before time began.<br /><br />With regard to <span style="font-style: italic;">Proposal #6</span> consider the following:<br /><br />A necessary entity can either be eternal or it came from nothing. If we accept that something can come from nothing then we must accept that, for all intents and purposes, it is indistinguishable from something that has been around forever. In other words, a necessary entity that came from nothing will look exactly like something that is eternal. At the same time, if we insist that such an entity came out of nothing then one might as well end the discussion immediately. There is no way that this can be contradicted or disproved. The best solution is to consider this an unreasonable point of view, and assume rather that the entity is eternal. Which it just as well could be, because we cannot tell the difference!<br /><br />On this basis, <span style="font-style: italic;">Proposal #6</span>, which suggests that the universe as we know it came from nothing, can be considered unreasonable.<br /><br />A device called <span style="font-style: italic;">Occam's razor</span> shaves away the additional Gods in <span style="font-style: italic;">Proposal #7</span>: since one God is sufficient to create the universe, why hypothesize more than one?<br /><br />This leaves <span style="font-style: italic;">Proposals #3 and #4</span>. The difference between these proposal hinges on the one exception specified in <span style="font-style: italic;">Conclusion #3</span> above. Namely, that contingency began with the beginning of the universe, except for the beginning of time itself.<br /><br />This means quite simply: time, may be contingent, but it may also be necessary.<br /><br /><span style="font-style: italic;">Proposals #3</span> asserts that time is necessary (not contingent). In other words, time, as part of the singularity always existed. Note that this must also mean that the singularity occupied a bit of space (of course this is true, otherwise the singularity would, in fact, be nothing and we would have an unreasonable proposal on our hands, with the consequences as discussed above).<br /><br /><span style="font-style: italic;">Proposals #4</span> means that time itself is contingent. But how can time be contingent when time itself is required for contingency? This is possible because any entity that has a beginning must come "after" an entity that has no beginning. So entities with a beginning can be caused by entities that are eternal. Which means it is quite possible that time is contingent to an eternal God as asserted by this proposal.<br /><br />So <span style="font-style: italic;">Proposals #3 and #4</span> seem to face off in a draw. Both are possible. Or are they? Actually, <span style="font-style: italic;">Proposals #3</span> fails, but the concept is a bit tricky. Let me explain:<br /><br /><span style="font-style: italic;">Proposals #3</span> actually states that time is eternal, and the singularity, of which time was part, was unchanged for an infinitely long time. But, at some point, the singularity changed. It suddenly exploded to become the universe.<br /><br />So what is the problem with that? Well, the problem is, if something remains unchanged for an infinitely long time, then it will <span style="font-weight: bold;">never</span> change at all! This is because any part of infinity is still infinity. So if the part of time before the change was infinite, it still would not have happened today.<br /><br />This is one of the reasons why the Bible says that God is the same yesterday, today and tomorrow. Because God is eternal, he cannot change. Its a package deal.<br /><br />But, you say, how was it then possible for God, to create the universe at all? He has been around for eternity, so there must have been an eternity before he created the universe. So the universe should not ever have been created.<br /><br />This is an attempt to apply the failure of <span style="font-style: italic;">Proposals #3</span> to <span style="font-style: italic;">Proposal #4</span>! This argument, however, is invalid.<br /><br />It assumes that God is subject to time. Only if God is subject to time, can there be an infinite amount of time <span style="font-weight: bold;">before</span> he creates the universe. But time was created along with the universe. God is eternal, but not in the sense of a "heck of a long time"! He is eternal and distinct from both time and space which he created.<br /><br />Without the restriction of time, God is free to bring the universe into being (in fact, there is a sense in which the universe has always existed in God's mind!). Only in the moment that God created the singularity that exploded into the universe as we know it, did time actual take on meaning. But even, then God was/is still not subject to the time in this universe. He remains outside of time and space, able to intervene anywhere at anytime in the history of the universe (that is one reason why God can tell the future).<br /><br /><span style="font-weight: bold;">Finally, in conclusion:</span><br /><br />I have disproved <span style="font-weight: bold;">all</span> alternatives to <span style="font-style: italic;">Proposal #4</span>: There is a God that has always existed and is the necessary entity. God created the universe, and everything in the universe is contingent, including the universe itself.<br /><br />This constitutes a proof for God and shows how Dawkins' original argument provided a basis for this proof.<br /><br />~~~*~*~*~*~~~<br /><br /><span style="font-weight: bold;">P.S. </span>There is only one way the atheist can counter this argument. He will have to say that the singularity that become the universe came from nothing! I have already argued that such a thing is unreasonable and indistinguishable from a singularity that has been around for eternity. The atheist will argue from a quantum physics point of view. In quantum it is actually possible for a particle to appear out of nowhere. The argument is that in a singularity, quantum principles may apply, although this is speculation.<br /><br />The problem with this argument is that the particle is not really appearing out of nowhere. First of all, there is a loss of energy elsewhere that make the appearance of the particle possible (this is required by the laws of conservation of energy). Secondly, the particle is appearing in a pre-existing existing universe. This is really <span style="font-weight: bold;">not</span> the same as appearing from <span style="font-weight: bold; font-style: italic;">nothing</span>!Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-38794702210050412.post-47159623973073616002007-08-19T03:26:00.000-07:002007-08-19T03:34:39.156-07:00MySQL Online BackupMy summary of the <a href="http://forge.mysql.com/worklog/task.php?id=3569">MySQL Online Backup algorithm</a>.<br /><br />There are basically 2 backup methods:<br /><ul><li>"At end" - Point Behind method</li><li>"At begin" - Point Forward method, this is also know as a snapshot backup.<br /></li></ul><ol><li>INITIAL PHASE<br /><ul><li>"At end" - Scan and write all data, and at the same time,</li><li>start writing all changes to a log.</li></ul></li><li>READY TO CREATE A VALIDITY POINT<br />The engine is ready to create a validity point instantly.<br /><ul><li>"At end" - All data has been scanned, continue to write changes to a log.</li></ul></li><li>WAITING PHASE<br />The engine is waiting for all other engines to reach the waiting phase.<br /><ul><li>"At end" - Continue to write changes to log.</li></ul></li><li>CREATE VALIDITY POINT<br />The engine creates the validity point <span style="font-weight: bold;">quickly</span>.<br />Changes after this point do NOT belong in the backup.<br /><ul><li>"At end" - Stop logging changes.</li><li>"At begin" - Create snapshot now!</li></ul></li><li>FINAL PHASE<br /><ul><li>"At end" - Write all changes recorded in the log.</li><li>"At begin" - Write all data in the snapshot.</li></ul></li><li>BACKUP END<br />All engines have finished the final stage. </li></ol>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-38794702210050412.post-83771168240467082172007-07-16T23:47:00.000-07:002007-09-26T02:12:00.557-07:00Atomic flushing without lockingIndex pages have the following attributes:<br /><ul><li><span style="font-style: italic;">dirty</span> - this page has been changed and is not on the disk at all. This page must first be written to the flush log.</li><li><span style="font-style: italic;">in_db</span> - this page is has not been changed, and is in the database. It can be removed from the cache at any time.</li><li><span style="font-style: italic;">flush_index</span> - the location of the page in the flush log (zero if not in the flush log)</li></ul>!<span style="font-style: italic;">dirty</span> && !<span style="font-style: italic;">in_db</span> - this page has been written to the flush log<br /><br /><span style="font-style: italic;">dirty</span> && <span style="font-style: italic;">in_db</span> - not possible<br /><br />All dirty pages are linked together.<br /><br />To change an index:<br /><ol><li>Lock the index</li><li>Remember the flush phase</li><li>Do all changes to index pages</li><li>Unlock the index</li></ol>When a page is changed:<br /><ol><li>If the page is dirty:</li><li> - update the page in the cache</li><li>If the page is not dirty:</li><li> - if the page is in the flush log (flush_index != 0) and flush phase 1 (see below) is in progress:</li><li> * update the cache, and update the flush log</li><li> - else</li><li> * update the cache, set dirty=true, in_database=false.</li><li> * add the page to the dirty list</li></ol><br />In order to flush the index:<br /><br />= flush phase 1<br />- For each page in the dirty list:<br />* Write the page to flush log<br />* Set flush_index to the location of the page in the flush log.<br />* Remove the page from the dirty list<br />- set phase to 2<br />- lock the index.<br />- For each page in the dirty list:<br />* Write the page to flush log<br />* Set flush_index to the location of the page in the flush log.<br />* Remove the page from the dirty list<br />- unlock the index<br />- We now have a snapshot of the index in the flush log.<br /><br />= flush phase 2<br />- for each page in the flush log:<br />* write the page to the database.<br />* if the page in the index is not dirty, set in_database=true<br />- truncate the flush log<br />- flush index is complete<br /><br />Index recovery (on startup)<br />- For each flush log<br />* write the index pages to the database<br /><br />Complete recovery of the database involves first doing index recovery.<br />Then we do record recovery. Recovery of the record involves creating and deleting index entries as necessary.Unknownnoreply@blogger.com0