ASP.NET Web Garden – Optimization

A key thing to note about using Web Garden is that they require the objects to be [ Serializable ] so that they can be stored. They are stored in the database a Binary (VARBINARY).

Further to that, is that by Default on ASP.NET page – every page requires session state to be loaded during page initialization and to be flushed after the page has completed rendering. When using out-of-process session state, this means two round-trips to the state server for each page rendering.

You can set on the three options on the Page to determine what should be done

  1. EnableSessionState=true attribute (is default and cause’s the two round trips)
  2. EnableSessionState=readonly – here you can save a round trip, but only getting session information during initialization
  3. EnableSessionState=false – another save, which will not load or flush to disk when Page processed.

Image:EssentialASPNET10-6.gif

Further Reading (1) (2)

Don't be shellfish...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone

Revelation Chapter 1

1.Quiz: What was the two key points from last week?
a.  Revelation is split into three parts – Revelation 1:19, that which thou hast seen, things which are, and the things which shall be hereafter
b.  Revelation contains a lot of Symbolism which is a stumbling block to many. Our actions in light of “symbols” –
(1)  Check out the “symbol” in OT
(2)  Check out the “symbol” in Revelation itself
(3)  Do nothing
2.Character of God Revealed:  Right through this portion of scripture, we see “emphasis” placed around the “validity” and “integrity” of God’s Word, and not only that but Jesus Christ and His Word, or said differently, by Jesus who is the Word.
  vs. 1 “signified it by his angel”
  vs. 2 “who bare record of the word of God” | also in same verse  “testimony of Jesus Christ”
  vs. 4 “Jesus Christ, who is the faithful witness”
  vs. 6 “I am Alpha and Omega” – “said the Lord”
  vs.9 “for the word of God, and for testimony of Jesus Christ”
  vs. 10 “I am Alpha and Omega”
  vs. 12-17 give a description of a being that can only be thought to be Jesus”
  vs. 16 “out of his mouth went a two-edged sword”
  vs. 17 “fell as his feet dead”
  vs. 18 Jesus agains gives testament to who He is, and the validity and integrity of what is being revealed.
  Again and again through Chapter 1, we see God, Jesus Christ, stamping his “authority” upon these Words in Revelation; and confirming His Deity, and far more emphasizing the “truth” of the words it contains. Jesus Christ is grabbing our attention, by telling us who the letter is from. It’s kind of like receiving a letter addressed to you, but there is no author. And the letter is threatening and requires you take an action; but because there is no authority behind the letter, you just check it. But how about that letter is sent to you again and not it has the stamp and signature of the President.
  Jesus Christ is doing the same thing with this book, write at the start, to stress it’s importance, to stress it’s integrity, and to stress how we need to heed it. 
3.Doctrine Explained:  Why we believe the King James Bible?
(a)  The Source of the Texts (Byzantine) – Alexandria (all the rest) – Origen and corrupt university – where he taught Jesus Christ was “created by God”, as in not God, but a “creation”. In John 1:1, he changes the Bible to say, “the word was a god” (Like Jehovah Witnesses). Explain the How we got our KJV (Byzantine Text Type (95% in agreement) vs Vaticanus (found in vatican library) & Sinaiticus (found in the trash at a monastery) (the 5%)). They are the “oldest manuscripts” – that’s because they were never used, secondly, because if you using something, it’s more likely through the generations to be eradicated.
(b)  The Compilers and Translators (Erasmus (TR), Westcott and Hort (their Text Type).) These 2 men hated the “Textus Receptus” and called it “vile”. They didn’t believe in a literal Genesis Chapter 1-3. One of their particular quotes “I have been persuaded for many years that Mary-worship and Jesus-worship have very much in common”.
(c)  Copyright on all other Bibles (money making on God’s Word)
(d)  Character of God (Preserved Word) – John1:1, 14, 1John 5:7, Rev 19:13
(e)  Comparison of Verses (they attack the Deity of Christ)
1 Tim 3:16 (in bible) – “without controversy” / “God was manifest in the flesh”
NAS – “And by common confession great is the mystery of godliness: He who was revealed in the flesh, Was vindicated in the Spirit, Beheld by angels, Proclaimed among the nations, Believed on in the world, Taken up in glory”.
4.Christ Lifted Up: We know in Revelation, we see three time aspects of Jesus Christ, which speak to His being “God”, His “eternality”, that is, that He liveth, yesterday, today and forever. In verse 1, verse 8, verse 19 we see the three tenses in and around Jesus Christ, “past”, “present” and “future”. And we need to stop and pay attention. Why, because  it reveals Christ in three forms;
– In the “past”, He came a “prophet”, to proclaim a coming Kingdom (but He was rejected)  [ Matthew 21:11 ]
  We know that He was then crucified on a tree; and who descended into the earth, but arose, to ever intercess on our behalf [Hebrews 7:25 ]
  In the future, in the pages of Revelation, we see Jesus coming as judge, to establish His Kingdom, and to Physically Rule and Reign as King (Millennial Rule and Reign) [ Revelation 17:14 ]
  What a Saviour is Jesus our LORD, what a God indeed!
2.Give Overview of Revelation
– John on the Isle of Patmos, and He is has been persecuted and exiled to this tiny island. While there, He is taken up in Spirit (as Paul was). As He stands He hears a voice behind Him like the sound of many waters, and behind Him is one “likened” unto the Son of Man (Jesus Christ), and He is standing in the middle of seven candlesticks, and He has seven stars in His right hand. This is what He is seeing as revealed by God; remembering, that the Author of Revelation is Jesus Christ, John is the writer.
5.Key Verses Explained: 1:20 (Jesus Christ is Eternal, His Word is Eternal)
(a)  Verse 3 – Only book, that does not GIVE, but PROMISES a blessing by the Authority of Jesus Christ, when read, head and obeyed.
(b)  Verse 3 – In verse 1 and end of verse 3, we see emphasis around the timing of this portion of scripture; urgency is impressed. You may sit back and say, but it’s two thousand years later, and Jesus Christ is not here. Why the “urgency” stressed in scripture? Turn with me to 2 Peter 3:18. Spiritually speaking, or heavenly speaking then, its only been 2 days.
(c)  Verse 4 – Bear in mind that John is writing to the 7 Churches in Asia, now there is a common misconception that there are only 7 churches, but that is incorrect – there were more. These 7 Churches were close to one another and near the Agean. Other churches found in and around this area are mentioned in Scripture – Colosse (Col 1:2), Hierapolis (Col 4:13) and Troas (Acts 20:6-7). Another point of interest, that in John, and the 3 Epistles of John, the beloved of Jesus Christ – He writes in the third person; but in Revelation He writes in the first. Third point and one of the key points for tonight, is that each church that is written to, and as mentioned last week, is representation of a the history or ages from the beginning of the church. This is vital to understanding the next three chapters.
(d)  Aside about 7; you may ask why these “Seven Churches”? I don’t know. But we know, 7 is God’s perfect number – on the 7th day He rested. Secondly, there is some repetition of 7 right through Revelation; the judgements come to earth in “sevens” – seven seals, seven trumpets, seven vials, seven candlesticks, seven stars. In scripture itself we see seven feasts, seven parables of Matthew 13.
(e)  Verse 7 – This is not a reference to the rapture. At rapture no one will see Jesus Christ, but this is His Second Coming. We know Christ’s First coming was to this earth as man. The Second Advent as it is called, or the Second Coming of Jesus Christ, comes in two parts. The first part, is the Rapture (Day of Christ) (as found in 1 Thess 4:15-18) [ Phillipians 1:10 ]. The second part is returning to Judge the earth (this is called – The Day of the LORD) [ Jude 14-15, Hebrews 3:10 ]. Secondly, note some differences between the two; at Rapture, God does not come to judge, but to “take-away” His church from the hour of temptation. At the Day of Lord it is judgement. Secondly, He does not come in clouds, but the church is taken up in the clouds. At the Day of the Lord, the Bible says Jesus comes with and in the clouds (Mark 13:26). Thirdly; the people that is being spoken about that “which pierced him” – is not people who crucified him, we know their dead in the grave, but it’s dealing specifically with the Jews. [ Zech 12:10 ]
(f)   Verse 9 – John has been through much tribulation but is the only disciple of Jesus Christ not to have been martyred. Lesson for all of us, if we love Jesus, we will face trial and tribulation. Persecution shall surely come! Perhaps if life is too comfortable, then we not in the battle we think we’re in. Secondly, note the Amen is used three times in this portion of scripture; that is, let it be so; but also “Amen” is the name given to Jesus Christ. Turn to Revelation 3:14 – and why? Because when Jesus says it so, it is so. He is all truth, and as He has desired, it shall surely come to pass.
(g)  Verse 12-16 – “Paps” – on his chest. Brass in the Word of God symbolizes Judgement. His raiment and appearance speaks to His Holiness and purity. His eyes, flame of fire; to look into the depths of your heart, and not just at your outward works. The Power and Purity of our Lord is seen as His countenance, His face, has the strength of the Sun in it’s full glory. Secondly: nice imagery; Jesus is the SUN, the Angels are the stars, and the Churches are the reflectors of light. Our role as candlesticks are to shine in the “darkness” that is when we are most used “powerful”, how are we doing? Are we a light to a darkened world?
(h)  Verse 17 – It was John who was considered “one of the three of Jesus’ beloved”. It was John who put his head on Jesus and asked at the table was he the one that would betray Jesus. This was a man so close to Jesus, so close. He was also the man, that overtook Peter to the sepulchre. The same one who had worshipped the resurrected Christ. The same one who would stand witness to Christ’s ascension. The same man who Jesus on the Cross, had committed his mother too for “care”. Yet here is John, gazing at Jesus; and He falls at his feet as dead. Brother and sister, we may have this closeness with Jesus, but on that day, all the our wildest thoughts, all our grandest perceptions of who IS and will BE, will come to nought, as we gaze on HIM; and we too shall fall in AWE of HIM.
(i)    3 Times in this book; Jesus authenticates Himself, validates Himself as God; there is no dispute. Verse 8; verse 11; v17. There no doubts to Christ’s deity – He is GOD; He is Eternal and He is our Saviour.
6.Two Key Points:
(a)  Key Verse 1:20
(b)  Seven Churches – Asia Minor (representation of Church age)
7.Application:
(a)  Comfort in our King James Bible – that it is PERFECT and PURE.
(b)  Are you ready to meet the LORD?
Don't be shellfish...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone

Revelation Overview

* a start of a series going through Revelaiton

a) Verse One: The Revelation of Jesus Christ

  What is “Revelation about?”, simply, it’s found in this verse : ‘The Revelation of Jesus Christ’ Himself.

  Revelation simply means, the “unveiling off”. Usually if something is ‘unveiled’ it is hidden, for example: at Christmas time we get gifts covered in wrapping, and we don’t know what that gift is, until the day we remove the wrapper, and what was given is revealed.

  Revelation, the entire book, across every page – has it’s focus in the “Revelation of Jesus Christ, or said differently in the “unveiling of Jesus Christ?”. Now that sounds a bit odd doesn’t it, why unveil something that has already been unveiled?

  We know that in times gone by, Jesus who was the promised Messiah to the Jews was “unveiled”, and He come to earth to die on our behalf.

  However in that situation He came as a God, but in the form of a man, as a lamb, meek and humble. The Revelation is the Counter to that, it’s God coming, or Jesus coming in ALL HIS GLORY and not to “Save”, but to JUDGE, and once and for all to deal with the SINFUL, those who reject HIM, and those who mock HIM.

  This is the only “prophetical” book in the New Testament, by that I mean, it’s the only book,that tells of the future, and guarantees that it will come to pass.

  So simplistically, Revelation, in a nutshell is all about Jesus Christ – it’s history written in advance.

b)  Approach:

As we go through Revelation, and as I’m sure you been through a few Bible studies, often times you walk away with an overload of information, and barely remembering and that will happen here as well. But the aim, is to offer you two things:

  Some key points to help you remember the book

  Give you the skills to “unravel revelation on your own”. Revelation because of it’s symbolic nature is often twisted and abused by “men” to mean this or that. Today, I want to help you determine how not to do, and just give you the skills to study this book on your own. When I say study, I don’t mean, “study” like you would for an exam; and for some men or women that may apply; but simply, as you read it for enjoyment, or to learn, to spend time with Christ – that you may be able to put together the pieces without the “preacher/teacher”.

  The only way to “learn any book”, is too read it yourself.

  Secondly, at the start of every “session” or “teaching time” I  will start with a SHORT QUIZ, nothing difficult or something written by hand, but something verbal, just to jog your memory, and if you forget no problem – someone else will remember, and it will help you too remember. Cause that’s the real AIM – to allow you to remember!

 

b)  Some Guidelines:

  Now I want to give you some guidelines when you deal with the “book” of Revelation. This will help you as I mentioned before not make any mistakes with “interpreting” revelation.

(1)  The Book is primarily dealing with the “Jews” and the Unsaved (so keep that at the back of your mind).

(2)  At this point at which these events occur in Revelation Chapter 4 onwards, has to do when the Church of Jesus Christ has been raptured or taken away

(3)  There is much Symbolism in the Book of Revelation, and I mean much. There is John given tremendous insight into “future events”, and the only way He can relate to what He is saying sometimes is through “imagery” of His own time. By “symbolism”, let me explain. Symbolism, I mean metaphor, simile or allegory. For those of you who didn’t like English in school, it’s when someone tries to explain an object, using something else which is a resemblance or like that object. A great example of is Pilgrims Progress, a wonderful book, written by John Bunyan, where he writes a story about a man named Christian, who is on a road or path to Enter into the Kingdom. This story, falls as a parallel, to us as Christians, as all the challenges we will face, but more so, in our faith in believing Jesus Christ, so we can enter into heaven. it’s a great book, and is great for it’s great resemblance to a Christians salvation and Christian’s walk. Consider, 

            – Read with me, Revelation 1:12-17. Here there is “imagery” or “allegory”. Now that 

                  sounds weird right, one who appears to be a man likened as unto the “Son of God” who is in the middle of “seven candlesticks” and He had in his hand seven stars. Now a mistake we could make it try apply this for ourselves, and come up with what the “seven stars” could be, or what the “seven candlesticks” are; but here is the PRINCIPLE that is so key. When dealing with “Revelation” and it’s symbols, it’s pictures – we either go back to the Old Testament to help understand what is being described or deal with, or we find the answer in Revelation itself, or we do nothing. And by doing nothing, I mean, don’t be smart about trying to over-think that which is not explained, as if God does not provide complete understanding, leave it alone. It’s not a principle I advocate lightly, I believe it’s good to test scripture and to think outside the box about some of the things God says; but in Revelation, in a book of Prophecy where too much license can be taken to the abuse of others, we need to tread carefully, lest we cover up the “horse-prints”.

  In this portion, we don’t need to go any further for understanding this symbolism; read Revelation 1:20. The mystery is explained by scripture itself.

(4)  This leads to the next Principle; the “best” interpreter of scripture, or rather the best understanding of scripture is not found in commentaries, or in men, or in preachers, or in teachers, but in the Bible itself (as we have just seen). Just remember the “principle” in regards to the Symbolism that I mentioned and you will steer clear of error.

(5) Revelation must be first and as with all scripture – be interpreted or understood, literally. That is, if God describe “locusts” coming out the earth with man-like faces, and that’s what was coming out of the earth. We should not try to extend our selves to too much “application”. That is perhaps the “locust” is a representation of men in the future who will have “evolved” to having their own rocket packs etc. First see it for what it is, and then make the application. That is perhaps one of the greatest lessons you can learn, in approaching your King James Bible.

 

e)  Dispensation Alignment:

  (Most Important Thing to Remember Tonight)

  Revelation 1:4, 8, 19 – Revelation is broken down into three parts – The Past, The Present and The Future

  Secondly, what’s important to keep an eye on; is in Revelation; there is a continual switch between events that are occurring in Heaven, and those occurring on Earth.

  REFER TO ‘Diagram’.

b)  General Facts:

(1)  Author: As we know it’s John (John who wrote the Gospel of John, The Epistles of John (1,2,3) and Revelation itself)

(2)  Time: AD 90

(3)  John has been exiled to an Isle of Patmos and it is here He is given the “Revelation of Jesus Christ”.

(4)  Revelation is “directly” linked to Daniel, that two go hand in hand, so we may make reference to it. Both are tremendous books of Prophecy

(5)  Characters in Revelation:

i.  The Lord Jesus Christ – the Lamb of God, slain from the foundation of the world.

ii.The Great Dragon – the old serpent Satan (whom we saw in Genesis at the fall). Here he makes his last ditch attempt to rebel against God, and he will be supported by two ministers – the Beast and the False Prophet

iii.           The Two Beasts – one religious, and one political

iv.           The Anti-Christ – He will be the false messiah (Read John 5:43) Also known as the False Prophet

v.The Two Witnesses – Who will be used by God to bring about “revival”

vi.           King of the North (Russia)

vii.         King of the South (Egypt)

viii.        Gog – the last dictator of Russia, is also the last actor in this great drama, Gog will head up the great army of the North.

i)    Application:

1. Israel was given the promise of a Messiah (Jesus Christ), and they did not prepare themselves for His coming. Let us not make the same mistake. Secondly, when Jesus Christ comes this time round there will be no “grace”, no “mercy”, when Jesus comes a Second Time, He will come in full Glory, and in full Power, and in Judgement! There will be no time for “repentence”, for calling upon Him – every knee will bow then and recognize Him for who He truly is; as opposed to the first time, when they rejected Him, the King of the Jews, the God.

Don't be shellfish...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone

Setting up a ASP.NET State Server

As you know, given the nature of HTTP, “blocking” takes place in attempting to interact with a website. You click and wait, and cannot do more than just wait for the existing “transaction” to complete.
Ala “Web Gardens” in IIS, which is a means of providing more than one worker thread to allow for multiple concurrent HTTP Transactions.Now for this to work, what is needed is a “STATE” server, where the website is user by more than one customer or end-user. So let’s begin:
Assumptions: (a) Windows 2008 (b) IIS 7

  1. Download SQL Server 2008 from Microsoft (Make sure you get it with the “Tools”) You get both in an EXE
  2. Download Service Pack 1 as well.
  3. During Install at Instance Configuration set you Named Instance Name – ASPState (and instance ID the same)
  4. Set Account Name in Server Configuration (of installation) to SYSTEM and change Startup Type to Automatic on both
  5. Setup Mixed Mode in Database Engine Configuration – add in Password and Current User
  6. Start up Microsoft SQL Server Management Studio and see if you can login (should ensure your DB installed correctly)
  7. Run SQL Server Configuration Manager – go to SQL Server Network Configuration – Enable TCP/IP
  8. Go to it’s Properties – Ip Addresses – Enable on Interface you desire – Set TCP Port on IP all to 1433
  9. Ensure SQL Server is running and SQL Server Browser under SQL Server Services
  10. Restart SQL Server – run netstat -an to ensure the port 1433 is running 
  11. Create the STATE Database – Next run from the Microsoft.NET v4 folder (your latest) – aspnet_regsql.exe -S <servername> -E -ssadd -sstype p
  12. Check Server Management Studio to make sure the Database has been created
  13. Create a DB User with Permissions – Under (Overall not for your database specifically) Security -> New User -> “ASP” (custom name)
  14. Choose SQL Server Authentication – Choose Default Database “ASPState” (whatever you named yours)
  15. Next go into IIS to setup your Configuration
  16. In IIS for your website, change Connection String to Connect to your Database you setup (not sure how necessary this part is, but I did it anyways)
  17. Choose SQL Server and Specify Credentials -> Server = <your hostname> | Database: ASPSTATE
  18. Specify User Name: ASP etc.
  19. Next In the Main Configuration for your Site – Choose Session State (Required)
  20. Click SQL Server – and type in the details mentioned afore – Don’t forget to Apply
  21. Restart Site and Try Hit – should have a working website with State. You can log onto SQL Studio to confirm 
  22. If you are still experiencing problems which you will see through accessing the WebSite it is most likely “DB Permissions”.
  23. I right-clicked on Properties of the Database I created (AsPState) and set the Permissions for the User I created

I’m sure there are easier ways to do this and more secure. But this was my first SQLExpress install and State Server – so it’s good for now.
Cheers

Don't be shellfish...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone