Sunday, February 26, 2012

religious description of myself

Perhaps I am like the person described here:
"…right now God restrains the madness of man, but once the restraint is taken off in hell itself, what torture must it be to stand upon the parapets of hell screaming your hatred of God for eternity, knowing there is nothing you can do any longer, to in any way hurt God or his creation.  People say “we are going to be partying in hell”.  No. You are going to be alone.  Alone with your hatred and self destruction.
You don’t stop sinning.  That’s why the punishment doesn’t stop.  And I am convinced that if you were to reach into the pit of hell, 10,000 years into eternity, grab a smoking soul, bring it out and sit it down, and say “Here’s your choice: either love the Lord your God with your heart, soul, mind and strength and  worship Him in purity or turn around and walk right back in to where you are” every single one would turn around, spit at you and dive right back into where they were."
Or perhaps I am like Pharoh, who was raised up by God just so God could display His glory by destroying him.
Or I am like Job, but without repentance. 
Or I am like the third servant who will experience weeping and gnashing of teeth as described in Matthew 25:14-30:
 24 “And the one also who had received the one talent came up and said, ‘Master, I knew you to be a hard man, reaping where you did not sow and gathering where you scattered no seed. 25 And I was afraid, and went away and hid your talent in the ground. See, you have what is yours.’   26 “But his master answered and said to him, ‘You wicked, lazy slave, you knew that I reap where I did not sow and gather where I scattered no seed. 27 Then you ought to have put my money [d]in the bank, and on my arrival I would have received my money back with interest. 28 Therefore take away the talent from him, and give it to the one who has the ten talents.’   29 “For to everyone who has, more shall be given, and he will have an abundance; but from the one who does not have, even what he does have shall be taken away. 30 Throw out the worthless slave into the outer darkness; in that place there will be weeping and gnashing of teeth."

Or I am like the guest without wedding clothes in Matthew 22:

 1 Jesus spoke to them again in parables, saying, 2 “The kingdom of heaven may be compared to a king who gave a wedding feast for his son. 3 And he sent out his slaves to call those who had been invited to the wedding feast, and they were unwilling to come. 4 Again he sent out other slaves saying, ‘Tell those who have been invited, “Behold, I have prepared my dinner; my oxen and my fattened livestock are all butchered and everything is ready; come to the wedding feast.”’ 5 But they paid no attention and went their way, one to his own farm, another to his business, 6 and the rest seized his slaves and mistreated them and killed them. 7 But the king was enraged, and he sent his armies and destroyed those murderers and set their city on fire. 8 Then he *said to his slaves, ‘The wedding is ready, but those who were invited were not worthy. 9 Go therefore to the main highways, and as many as you find there, invite to the wedding feast.’ 10 Those slaves went out into the streets and gathered together all they found, both evil and good; and the wedding hall was filled with dinner guests.
   11 “But when the king came in to look over the dinner guests, he saw a man there who was not dressed in wedding clothes, 12 and he *said to him, ‘Friend, how did you come in here without wedding clothes?’ And the man was speechless. 13 Then the king said to the servants, ‘Bind him hand and foot, and throw him into the outer darkness; in that place there will be weeping and gnashing of teeth.’ 14 For many are called, but few are chosen.”

reality check: plumbing

I’m thankful that I was able to help my dad with plumbing today. It showed me that I was spoiled and it made me so thankful that I get to sit in a nice office. Thankful that I don’t have to do physical labor to make a living. Thankful that my parents toiled to get me a good education that resulted in my current job.

I came to this realization because I was too weaksauce. I couldn't even handle the physical labor of helping my dad fix the plumbing. I couldn't handle the squatting. Even though it wasn't aerobic exercising or anything. It was a neither here-nor-there kind of feeling of just squatting or being in a hunched position for several hours, trying to fix a plumbing problem, feeling cramped and uncomfortable, unable to use the most efficient muscles, and unable to position my body to generate the most torque to get the job done because there was no space. It was frustrating.

I’m thankful that my parents forced me to study, even though I hated it when I was younger. Throughout the past few weeks, I had told my parents that I wanted to join the military. They kept trying to tell me not too. I wasn't that serious but had just wanted to tell my parents that it was something I was going to look into. But my parents got so worked up about it that the more they kept trying to persuade me not, the more I kept saying that I wanted to do it.

But after trying to help my dad today with fixing the plumbing and failing, I realized I’m probably not cut out for the military. I’m too much of a wuss.

Saturday, February 25, 2012

basic explanation of LAMP for dummies

for a while i was trying to figure out how the following terms fit with each other: html, xml, javascript, LAMP, ajax, php, front end, back end, ruby on rails.

so far i believe it's like this:

LAMP is about how the server is configured. L=linux, A=apache, M=mysql, P=php. then the client stuff goes on top of that: ajax, javascript, html

a webpage from a website can have html and javascript on the same page. (it needs to have html to be known as a webpage. it doesn't need to have javascript). when you type in the url of a website in your web  browser (eg google chrome), the sever that the website is hosted on sends the index.html webpage over to your web browser (index.html is the main/home webpage) .
the web browser immediately renders the html stuff and displays you something.
javascript on the other hand, needs to be executed by the web browser (the browser sees javascript and starts running what the javascript is saying). javascript has many functions, for example, it can cause a popup window. one of the functions is called XMLHttpRequest, which can call out to run php scripts that reside on the sever (all of ajax is is basically the capability of that function, which allows you to call php scripts).

Well the php scripts reside on the webserver and they usually have within them mysql scripts. Mysql is the language used by the database, and the php scripts call the mysql queries, which gets stuff from the database.

So the php script then gets the data from the database and then reorders that data into xml. I think of xml just as a format of presenting information. just like how you can have a line of english words to make a sentence, you can alternatively have have a column of words, where each row only has one english word, and everyone knows that word 1 is capitalized, or something. So the php script gives the data in xml format to the javascript (rather, the XMLHttpRequest function retrieves that xml data for other javascript functions to use). and since javascript knows the data is in xml format, it also knows that word 1 is capitalized, or something. (remember, the browser is running the javascript, so by now, the xml data is on the browser)

Anyway, then javascript uses that data, prints it as html or something, and that's how your webpage gets updated. or something.

Note that the user (the person sitting in front of the computer) will never see the php scripts. Because php resides on the server.

(stuff that has to do with the web browser is front end, and stuff that has to do with the webserver is backend)

and ruby on rails (RoR) is just a whole other beast that replaces LAMP. i think...

correct me where i'm wrong because i'm just learning this stuff so it's new to me as well.