Devo – 1 Peter 5:10-11

In April I led a devotion at my work. It covered my life verse 1 Peter 5:10-11, I’m not very good at speaking but I still thought I would share my presentation. Here is the link to the slides and audio.

Visual Diagram of SQL Joins


A diagram on SQL Joins. Showing the difference between inner and outer joins.

Theo’s Message

In the wake of the tragedy of loosing my son I have heard many common saying that are meant to bring comfort and assurance in this painful time. That “it was God’s time…,” “he’s in a better place” that there is “another angel in Heaven.”

These words alone do not answer the question of why Theodore is gone? They do little to dissuade the pain of me not being able to save my son while I tried so hard in my living room to get him to breath. To tell the doctors to stop trying to save him… the pain of telling them to let him go. Why even though I earnestly prayed to God with my eyes full of tears that He would bring him back to us… only to be answered with having to leave my son’s lifeless body on a hospital bed.

I don’t know why Theodore is gone, I don’t know why our family had to go through this. Why we were given Theodore to have him taken from us just after a short time and so abruptly. But I do know he is gone… and that you are here now with me.

I wanted you to know that Theodore is in a “better place,” that Theodore is in Heaven. While the words alone do not help with the pain, the knowledge that my son is in Heaven does. God has prepared a place for him, John 14:2. That in this place that Jesus has prepared, all of his aliments will no longer hinder him. There is no more pain, no more suffering and God will wipe away every tear as stated in Revelation 21:4. So I can be happy that Theodore is beyond happy, there is no better place for him than to be in the presence of God.

So not those words alone but the knowledge and faith that go with them bring my family comfort. Knowing that Theodore is in the best of care and that I will see him again in Heaven. That as King David said in 2 Samuel 12:23 regarding the loss of his own child. That we can not bring our child back but we will go to see him.

Just as we have that faith, I want everyone else here to have that faith and assurance also. So that you know what lies on the other side, that you can know you are going to Heaven. It might be selfish of me, wanting the death of my son to mean something. But all this pain and heart ache to me will be worth it if Theodore’s life and death touches just one person enough to come to faith in Jesus Christ.

Goodbye Theo

2 Samuel 12:16-23:

16 David therefore sought God on behalf of the child. And David fasted and went in and lay all night on the ground. 17 And the elders of his house stood beside him, to raise him from the ground, but he would not, nor did he eat food with them. 18 On the seventh day the child died. And the servants of David were afraid to tell him that the child was dead, for they said, “Behold, while the child was yet alive, we spoke to him, and he did not listen to us. How then can we say to him the child is dead? He may do himself some harm.” 19 But when David saw that his servants were whispering together, David understood that the child was dead. And David said to his servants, “Is the child dead?” They said, “He is dead.” 20 Then David arose from the earth and washed and anointed himself and changed his clothes. And he went into the house of the Lord and worshiped. He then went to his own house. And when he asked, they set food before him, and he ate. 21 Then his servants said to him, “What is this thing that you have done? You fasted and wept for the child while he was alive; but when the child died, you arose and ate food.” 22 He said, “While the child was still alive, I fasted and wept, for I said, ‘Who knows whether the Lord will be gracious to me, that the child may live?’ 23 But now he is dead. Why should I fast? Can I bring him back again? I shall go to him, but he will not return to me.”


My baby boy is gone, he passed away late Sunday night. I am broken and torn, my heart aches. The pain of loosing Theodore Elijah, is great upon me.

We knew this would be a tough road and the thought that I would survive my son was always in the back of my mind. But this was so soon, I selfishly wish that I had more time on this earth with my baby boy.

Theodore, you were true to your name sake, you were God’s gift to us. I find comfort in that Yahweh is my God (Elijah). I pray that I can find the strength that King David did in his own son’s passing. For you will not return to me, but I shall someday go to you.

I will forever love and miss you, my baby boy, Theodore Elijah.


PHP Developer Interview Questions

Name the Four Fundamental Principles of OOP?
What is the difference between PUBLIC, PRIVATE AND PROTECTED
  • PUBLIC scope to make that variable/function available from anywhere, other classes and instances of the object.
  • PRIVATE scope when you want your variable/function to be visible in its own class only.
  • PROTECTED scope when you want to make your variable/function visible in all classes that extend current class including the parent class.
  • Manual

Describe the difference from an array and an associative array?
Arrays in PHP are really “maps” not the strict arrays you find in other languages. The main difference is that you define the indexes in the associative array. While when you do not define the indexes are defined by the system starting at 0 and incremented by 1. Manual
Describe the difference between double equals (==) and triple equals (===)
Directly from the manual:
$a == $b Equal TRUE if $a is equal to $b after type juggling.
$a === $b Identical TRUE if $a is equal to $b, and they are of the same type.


//Type comparison (Bool vs Int):
var_dump((false == 0)); //true
var_dump((true === 1)); //false

//Type comparison (String vs Int):
var_dump(("0" == 0)); //true
var_dump(("1" === 1)); //false

//Object comparison
// __toString is not compared
$t1 = new Test();
$t2 = new Test();

var_dump(($t1 == $t2)); //True
var_dump(($t1 === $t2)); //False

$t1->val = "yes";
$t2->val = "yes";

var_dump(($t1 == $t2)); //True
var_dump(($t1 === $t2)); //False

$t1->val = "yes";
$t2->val = "no";

var_dump(($t1 == $t2)); //False
var_dump(($t1 === $t2)); //False
Give an example of using GROUP BY in MySQL
-- Count orders by zip code
SELECT `zip`, COUNT(`zip`)
FROM orders
GROUP BY `zip`;
Explain the difference between WHERE and HAVING in MySQL?
They function similarly, but their uses differ. The WHERE statement is used to filter field values that are in the table. The HAVING statement is used to filter calculated values, like sum().

-- WHERE query
SELECT `order_number`, `state`
FROM orders
WHERE `created_at` > '2014-01-01';
-- Returns all orders created after 2014-01-01

-- HAVING query
SELECT `invoicenumber`, SUM(`amount`) as `total`
FROM invoices
GROUP BY `invoicenumber`
HAVING `total` > 500;
-- Returns all invoices that have a total amount over 500.

Questions About Christianity

I was recently asked what I believe concerning the following questions:

Is salvation by faith alone? By faith alone through Christ alone. Our faith is evident through works. (John 3:16-17, Ephesians 2:8-9)

How do I know I am saved? Faith without works is dead, so your life will represent Christ. You will walk in the Spirit showing the fruit of the Spirit. (James 2:14-24, Galatians 5:16-26)

Can a Christian lose his salvation? Once “saved” you are a new man the old dies away. It is a true transformation. I believe if you truly go through that you’ll not loose your salvation. (2 Corinthians 5:17-21)

Is baptism necessary? Becoming a Christian means you have been baptized by the Spirit. John the baptist said that he baptized with water but the one coming after (Christ) would baptize with fire (the Holy Spirit). Water baptism is not required but is commanded so if you are faithful to Christ you should get baptized. (Mathew 3:11, Mathew 28:16-20, Mark 1:8, Acts 2:38)

Where are the people who have passed on? With God or not. I believe that God exists outside of time, since He created it. Since our souls are eternal, I would say they immediately depart form this world.

Will there be a tribulation and a rapture? Yes and Yes. As for when nobody knows.

What is worship? The prime purpose of man is to glorify God. Obeying God, prayer, singing His praises, studying His word.

Why do we worship on Sunday, isn’t Saturday the Sabbath? I believe it is mainly to remember and celebrate Christ rising form the dead. The Bible has Paul doing things on Sunday (Acts 20:7, 1 Corinthians 16:1-2). I personally believe that everyone should have a weekly day of rest and worship of God, the day itself does not matter as much. (Colossians 2:16-17, Romans 14:5-6)

Are we born into sin, as in Original Sin? Sin enter the world through Adam and through him spread to all. (Romans 5:12)

Is the Bible all that is needed to know God’s will? Basic Instructions Before Leaving Earth. =) The Bible has God’s will for us in it. It has the principles that we should live our life by, primarily love God and your Neighbor. I believe God’s will can be shown through prayer and supplication also.

Can women be pastors? I’d say no according to 1 Timothy 2:11-15.

Are we predestined to be saved or to be lost? I find this one tough as it becomes a paradoxical conversation.

Are spiritual gifts, miraculous gifts, available to us today? I’d say yes as God is all powerful and there are missionaries that have been able to witness in another language without prior knowledge. I’d say the measuring stick is if it gives glory to God.

Once Saved Always Saved?

A forum that I frequent asked this question. I thought I would put my response here also.

I believe that once you are saved you are always saved. Though I am not going to argue for either side, but express what I believe what it means to be a Christian.

If you are truly saved you will strive to obey God and glorify him with your life. Anyone can claim to be Christian… some polls say that the US has 80% or higher reporting to being a Christian. Saying that you are a Christian without faith in Jesus Christ, or just being a good person is not good enough (James 2:19, Matthew 7:21-23).

Being saved, a Christian, is more than just going to Church. It is not inherited from your parents. It is more than living a good life and doing good deeds. Any of these things without faith in Jesus Christ is worth nothing, for everyone has sinned and that sin separates us from God (Isaiah 64:6, Romans 3:10-12 Romans 3:23, Romans 6:23).

Becoming a Christian is easy. It takes faith that Jesus is God, that he came to earth to die on the cross for our sins, that through his death and resurrection he conquered death becoming the perfect eternal sacrifice and payment so that we might be saved (John 3:16, Ephesians 2:8-9, Romans 10:9-13).

Once becoming a Christian, your life should reflect that. Your actions should align with the Bible says is righteous, you should strive to glorify God with your life. Christians are not supposed to live in sin (Romans 6:1-2) but show the results of Christ being in their life (James 2:26, Galatians 5:22-23). One of the main things that Christians are called to do is love (Matthew 22:36-40, John 13:34-35).

So the TL;DR version:

  • Saying you’re a Christian alone doesn’t mean much (James 2:19, Matthew 7:21-23).
  • Your best isn’t good enough, everyone has sinned (Isaiah 64:6, Romans 3:10-12 Romans 3:23, Romans 6:23).
  • Being saved is through Jesus Christ alone (John 3:16, Ephesians 2:8-9, Romans 10:9-13).
  • A Christians’ life should reflect Christ, should not be lived in sin, and show love for one another (Romans 6:1-2, James 2:26, Galatians 5:22-23, Matthew 22:36-40, John 13:34-35)

Isaiah 64:6 – For all of us have become like one who is unclean, And all our righteous deeds are like a filthy garment; And all of us wither like a leaf, And our iniquities, like the wind, take us away.

Matthew 7:21-23 – 21 “Not everyone who says to Me, ‘Lord, Lord,’ will enter the kingdom of heaven, but he who does the will of My Father who is in heaven will enter. 22 Many will say to Me on that day, ‘Lord, Lord, did we not prophesy in Your name, and in Your name cast out demons, and in Your name perform many miracles?’ 23 And then I will declare to them, ‘I never knew you; depart from Me, you who practice lawlessness.’

Matthew 22:36-40 – 36 “Teacher, which is the great commandment in the Law?” 37 And He said to him, “‘You shall love the Lord your God with all your heart, and with all your soul, and with all your mind.’ 38 This is the great and foremost commandment. 39 The second is like it, ‘You shall love your neighbor as yourself.’ 40 On these two commandments depend the whole Law and the Prophets.”

John 3:16 – For God so loved the world, that He gave His only begotten Son, that whoever believes in Him shall not perish, but have eternal life.

John 13:34-35 – 34 A new commandment I give to you, that you love one another, even as I have loved you, that you also love one another. 35 By this all men will know that you are My disciples, if you have love for one another.”

Romans 3:10-12 – 10 as it is written, “There is none righteous, not even one; 11 There is none who understands, There is none who seeks for God; 12 All have turned aside, together they have become useless; There is none who does good, There is not even one.”

Romans 3:23 – for all have sinned and fall short of the glory of God,

Romans 6:1-2 – 1 What shall we say then? Are we to continue in sin so that grace may increase? 2 May it never be! How shall we who died to sin still live in it?

Romans 6:23 – For the wages of sin is death, but the free gift of God is eternal life in Christ Jesus our Lord.

Romans 10:9-13 – 9 that if you confess with your mouth Jesus as Lord, and believe in your heart that God raised Him from the dead, you will be saved; 10 for with the heart a person believes, resulting in righteousness, and with the mouth he confesses, resulting in salvation. 11 For the Scripture says, “Whoever believes in Him will not be disappointed.” 12 For there is no distinction between Jew and Greek; for the same Lord is Lord of all, abounding in riches for all who call on Him; 13 for “Whoever will call on the name of the Lord will be saved.”

Galatians 5:22-23 – 22 But the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, 23 gentleness, self-control; against such things there is no law.

Ephesians 2:8-9 – 8 For by grace you have been saved through faith; and that not of yourselves, it is the gift of God; 9 not as a result of works, so that no one may boast.

James 2:19 – You believe that God is one. You do well; the demons also believe, and shudder.

James 2:26 – For just as the body without the spirit is dead, so also faith without works is dead.

Multiple Galleria Image Galleries on One Page

So I had a client that wanted multiple galleries on one page. The page is created from a database, so there could be any number of galleries. The issue I had was making more then one gallery work in their own modal. Using and their basic instructions, only the first one I would click on would work, the rest gave me an error.

So I wrote this little javascript to run the gallery when the link to open the modal was clicked and it works like a charm:

$(document).ready(function() {
        $("[id^=gallerylink]").each(function() {
                var gallerydiv = '#' + $(this).attr('id');

                $(gallerydiv).click(function() {
              $(gallerydiv).attr('data-target'), {
                                height: 650

How I’m doing…

Today I was asked how I was doing. I did the typical response with good or fine, most people are just being polite and really don’t care how you are actually doing. Honestly though, things have not been going good and I am not fine… not in the least.

Recently I just found out my son who is due in March has SLOS (Smith-Lemli-Opitz Syndrome). Simply put his body is not producing enough cholesterol which is needed for his early development. This can cause a number of things, for my son his chin is not developing correctly, fingers on both hands are fused and he has Hypospadias (Don’t look up that, saw stuff I can’t unsee). Oh and SLOS pretty much guarantees that my son will have brain damage.

On top of that news, which alone is very disheartening, I found out I have Cubital Tunnel Syndrome. Not too big of a deal alone, but it’s just another addition. Seems that it has progressed far enough that I’ll need surgery, as I don’t want to have a claw hand.

I need surgery, my son is going to be deformed and have brain damage. Also because of the way SLOS is transfered if I have any additional children they have a 25% of having SLOS and 50% chance of being a carrier. That leaves only a 25% chance that my child would not be affected by SLOS. So now I don’t even know if I should have more kids.

Yeah I’m doing fine…

Sipgate is closing down, switching to Anveo

So I’ve used Sipgate as my home voip provider for a while now. But they are closing their doors so I had to find a new provider. My search lead me to as the replacement to Sipgate.

Honestly the free service and number from Sipgate was great for me, especially since it came with free incoming calls. Also Sipgate just seems more polished and simpler then Anveo does, but that really is where Sipgate’s advantages stop for me. Anveo doesn’t offer a free number, it’s a dollar a month, but their E911 service is cheaper. Sipgate I paid $1.90 a month for E911, while Anveo is $0.80, add the one dollar for the number a month and you get $1.80. So really it’s a ten cent savings with Anveo.

We don’t make or receive a lot of calls, but it was nice that Sipgate had the free incoming. While that is not something Anveo has, it does offer 40 free minutes a day. This works out well enough and I don’t have to worry about getting charged for making quick calls out. I mentioned before that Sipgate is simpler then Anveo, but Anveo is more powerful, there is much more you can do or add to your service with Anveo.

If you want to try Anveo out here is my referral code: 3182282