Rumyhub

The place where stuff Happens

Quick Sort Algorithm

Quicksort is sorting alogrithm which is a divide and conquer sorting algorithms which means that is done by splitting the array by the pivot ideally being in the middle and rearrange so that the right side value are greater than the pivot and the left is less than the pivot.

This is done recursively tghrough the array until only two values are reached and then similar to the Merge sort the array is then automatically sorted. [More]

Client and Server Side Scripting (Part 5)

Server Side Scripting: PHP vs. ASP.NET (Part 2: VBscript)   VBScript Similar to JavaScript , VBScript is very successful although it was even more popular before. VBScript is very widely spread because it was pushed on computers by Microsoft in Internet Explorer. VBScript created in 1996 was intended to compete with JavaScript, It gain popularity but JavaScript was still more successful. VBScript is an acronym for Visual Basic Scripting Edition, as stated in the acronym VBScript is derived from Visual Basic. VBScript 5.8 is the latest release Prerequisites 1.Browser for testing and debugging 2.Text Editor (Text Highlighter like Notepad++ is recommended) 3.Windows Based Server Advantages 1.VBScript can be used with HTML tags, DHTML tags and also CSS scripts. 2.VBScript is supported by a large community and by Microsoft. 3.VBScript can be run offline. 4.It can work easily with VB.net to send to and from the Web Server Disadvantages 1.VBScript can be disabled by the user. 2.VBScript lack from open source libraries such as JQUERU/JSON in Javascript 3.Servers with older version of windows needs older versions of VBScript 4.It should never be available for online application, it mainly used as an offline scripting language 5.Only supported on Internet Explorer, other browsers do not support it.   Bibliography ¬†BIBLIOGRAPHY Bird, M. (n.d.). What is VBScript scripting language? Retrieved January 12, 2012, from http://www.helium.com: http://www.helium.com/items/2072150-what-is-vbscript-scripting-language Flanagan, D. (2011). JavaScript: Names and Versions. In D. Flanagan, JavaScript: The Definitive Guide (p. 2). Sebastopol: O'Reilly Media. MicroSoft. (n.d.). Microsoft Security Bulletin MS10-022 - Important. Retrieved December 28, 2012, from http://technet.microsoft.com: http://technet.microsoft.com/en-us/security/bulletin/MS10-022 MicroSoft. (n.d.). VBScript. Retrieved December 29, 2012, from http://msdn.microsoft.com: http://msdn.microsoft.com/en-us/library/t0aew7h6.aspx O'reilly. (n.d.). JavaScript: How Did We Get Here? Retrieved October 27, 2012, from OriellyNet: http://www.oreillynet.com/pub/a/javascript/2001/04/06/js_history.html UK, X. (n.d.). VBScript History & Information. Retrieved January 8, 2012, from http://www.xmluk.org: http://www.xmluk.org/vbscript-history-information.htm w3schools. (n.d.). VBScript Tutorial. Retrieved January 9, 2012, from http://www.w3schools.com: http://www.w3schools.com/vbscript/default.asp     // //

Client and Server Side Scripting (Part 4)

Client Side Scripting: JavaScript vs. VBScript (Part 1: JavaScript)   JavaScript JavaScript is the most successful client side script available. It is supported by all browsers and offer many functionality especially when include Libraries such JQuery, JSON, Node.js and it is used in AJAX for Asynchronous access to the server without page flickering. LiveScript which was the first version of JavaScript was created by Brendan Eich (Employee of Netscape) in 1995. With was derived from Java hence the name JavaScript. JavaScript 1.8(ECMAscript 5) is the last release of JavaScript. Prerequisites 1.Browser for testing and debugging 2.Text Editor (Text Highlighter like Notepad++ is recommended) 3.Debugger (Firebug is recommended) 4.Third Party Libraries (depending on the needs) Advantages 1.Is supported in all browsers, even from the early versions of IE and Netscape 2. 2.Lots of libraries are created to enhance the usability of JavaScript, such as JQuery which used to enhance the user experience. 3.JavaScript can be used with HTML tags, DHTML tags and also CSS scripts. 4.JavaScript is supported by a large community. 5.JavaScript is also the building block of HTML 5 and CSS 3 which will replace Flash by 2014 6.JavaScript can be run offline. Disadvantages 1.JavaScript is not a secure language and should always be supported by a server side script. 2.JavaScript can be disabled by the user. 3.JavaScript cannot access directly the server (although some Technologies such as AJAX and Rhino can). 4.JavaScript can be a bit hard to debug because off lack IDE’s 5.Libraries need to updated separately. 6.Although JavaScript very supported, older versions of browsers need a separate JS file Bibliography ¬†BIBLIOGRAPHY Bird, M. (n.d.). What is VBScript scripting language? Retrieved January 12, 2012, from http://www.helium.com: http://www.helium.com/items/2072150-what-is-vbscript-scripting-language Flanagan, D. (2011). JavaScript: Names and Versions. In D. Flanagan, JavaScript: The Definitive Guide (p. 2). Sebastopol: O'Reilly Media. MicroSoft. (n.d.). Microsoft Security Bulletin MS10-022 - Important. Retrieved December 28, 2012, from http://technet.microsoft.com: http://technet.microsoft.com/en-us/security/bulletin/MS10-022 MicroSoft. (n.d.). VBScript. Retrieved December 29, 2012, from http://msdn.microsoft.com: http://msdn.microsoft.com/en-us/library/t0aew7h6.aspx O'reilly. (n.d.). JavaScript: How Did We Get Here? Retrieved October 27, 2012, from OriellyNet: http://www.oreillynet.com/pub/a/javascript/2001/04/06/js_history.html UK, X. (n.d.). VBScript History & Information. Retrieved January 8, 2012, from http://www.xmluk.org: http://www.xmluk.org/vbscript-history-information.htm w3schools. (n.d.). VBScript Tutorial. Retrieved January 9, 2012, from http://www.w3schools.com: http://www.w3schools.com/vbscript/default.asp  

Client and Server Side Scripting (Part 3)

Server Side Scripting: PHP vs. ASP.NET (Part 2: ASP.NET)    ASP.NET Asp.Net is the successor of Classic ASP which was created in 1998 by Microsoft this was the alternative of PHP at that time. Classic ASP was imported with the .NET Framework about 2001 but only supported Visual Basic but as from ASP.NET 2.0 C# was also used to create dynamic web pages. Some website that uses ASP.NET are Microsoft.com and Bing. The latest release of ASP.NET is ASP.NET 4.5 which is supported on Win Vista and Later. Prerequisites 1.IIS Services 2.Windows Server 3.IDE (recommend MS Visual Studio) 4..Net Framework Installed (some are installed automatically) 5.SQL Server for Databases(MS SQL server recommended) Advantages 1.Support for ASP.Net is quite big, MSDN is a very detailed documentation regarding ASP.NET and other languages 2.Support C# and VB.Net. 3.It is built of the .Net Framework which over s a lot of libraries such as LINQ, ADO.NET 4.It supports all the major SQL servers but MS SQL SERVER is the mostly supported. 5.It is free to obtain (but is closed source) and developer are tending to know ASP.Net Disadvantages  1.Although it is free to get ASP.NET is can only be run on Windows Oss using IIS which might be a little more expensive that Linux servers. 2.There less free ready made Applications available in ASP.Net (although it growing with products such DotNetNuke) 3.Using asp.net controls instead of the normal HTML tags.    Bibliography Group, T. P. (n.d.). PHP:History of PHP. Retrieved October 27, 2012, from PHP: http://www.php.net/manual/en/history.php.php Praveen.V.Nair. (n.d.). PHP and ASP.NET - A Feature List. Retrieved October 27, 2012, from Codeproject: http://www.codeproject.com/Articles/102854/PHP-and-ASP-NET-A-Feature-List W3schools. (n.d.). Asp Introduction. Retrieved October 27, 2012, from W3schools: http://www.w3schools.com/asp/asp_intro.asp   // //

Client and Server Side Scripting (Part 2)

Server Side Scripting: PHP vs. ASP.NET (Part 1: PHP)   PHP  PHP is one of the leading server side scripting language available for free. It was first created in 1994 by Rasmus Lerdorf. Some major website such as Facebook and Wordpress are created using  PHP.  The latest release of PHP is PHP 5 which use the Zend Engine 2.0 similar to the .NET Framework. Prerequisites 1.Apache Server 2.Linux server or Windows server 3.IDE (recommended Zend Studio) 4.Third Party Libraries ( depending on the needs) 5.SQL Server for Databases. (My Sql works Fine) Advantages 1.Main advantage of PHP is that is open source and anyone can use it. 2.It is cross platform therefore it can be run on Linux server using apache, which are generally cheap to lease 3.And uses the HTML tags as the base of the page. 4.Has many free CMS available that are well supported such as Wordpress and Joomla Disadvantages 1.It can be costly because there are fewer developers that are specified in PHP. 2.It need to updated separately it is updated with the os. 3.A bit slower than other languages for big projects 4.As lots of third party libraries that need to maintained separately.   Bibliography Group, T. P. (n.d.). PHP:History of PHP. Retrieved October 27, 2012, from PHP: http://www.php.net/manual/en/history.php.php Praveen.V.Nair. (n.d.). PHP and ASP.NET - A Feature List. Retrieved October 27, 2012, from Codeproject: http://www.codeproject.com/Articles/102854/PHP-and-ASP-NET-A-Feature-List W3schools. (n.d.). Asp Introduction. Retrieved October 27, 2012, from W3schools: http://www.w3schools.com/asp/asp_intro.asp   // //

Client and Server Side Scripting (Part 1)

These will be a serious of 5 posts about Client and Server Side Scripting.A new one will be posted every 2 day. When server side scripting or client side scripting should be used? Server side script is used by the website to interact with the server. For a secure website server side script should always be used. Server Side scripting is the building blocks to make a site dynamic. This should be used to access a database or server resources and can be used to create profile of users accessing the site. Animation should never be made of sever side scripting this should be created by client side script. Client script has access to the client’s resources and does not use the server side sources. Client script is used also for some basic security (but it should always be supported by Server Side Script) to decrease the amount of post backs to the server when using server side script.     // //