Friday, January 11, 2013

Howto: Performance Benchmarks a Webserver



Apache Benchmark


You can benchmark Apache, IIS and other web server with apache benchmarking tool called ab. Recently I was asked to performance benchmarks for different web servers.
It is true that benchmarking a web server is not an easy task. From how to benchmark a web server:
First, benchmarking a web server is not an easy thing. To benchmark a web server the time it will take to give a page is not important: you don't care if a user can have his page in 0.1 ms or in 0.05 ms as nobody can have such delays on the Internet.
What is important is the average time it will take when you have a maximum number of users on your site simultaneously. Another important thing is how much more time it will take when there are 2 times more users: a server that take 2 times more for 2 times more users is better than another that take 4 times more for the same amount of users."
Here are few tips to carry out procedure along with an example:

Apache Benchmark Procedures

  • You need to use same hardware configuration and kernel (OS) for all tests
  • You need to use same network configuration. For example, use 100Mbps port for all tests
  • First record server load using top or uptime command
  • Take at least 3-5 readings and use the best result
  • After each test reboot the server and carry out test on next configuration (web server)
  • Again record server load using top or uptime command
  • Carry on test using static html/php files and dynamic pages
  • It also important to carry out test using the Non-KeepAlive and KeepAlive (the Keep-Alive extension to provide long-lived HTTP sessions, which allow multiple requests to be sent over the same TCP connection) features
  • Also don't forget to carry out test using fast-cgi and/or perl tests


Source : http://www.cyberciti.biz/tips/howto-performance-benchmarks-a-web-server.html#comments

Saturday, October 6, 2012

Writing Object-Oriented JavaScript

Introduction

ASP.NET and Visual Studio 7.0 are making important contributions to the improvement of the web development experience. Unfortunately, there is also a tendency created among developers to limit their interaction with JavaScript. Clearly JavaScript is valuable for adding client-side functionality to web pages. However ASP.NET programming models suggest that developers produce page layout while emitting client-side JavaScript from ASP.NET controls. As a consequence, this model tends to limit JavaScript to procedural adjuncts. This is rather unfortunate because it severely limits the power of an object-oriented scripting language that developers can use to write rich and reusable client-side components.

Source: http://www.codeproject.com/Articles/5608/Writing-Object-Oriented-JavaScript-Part-1 
Another Source: http://mckoss.com/jscript/object.htm

Thursday, September 20, 2012

Date Drop Down Lists

This JQuery plugin converts a textfield with date value into a set of drop down lists for day, month and year.

Demo

When applied, the original textfield is replaced by a set of drop down lists, but it's value can still be referenced by the original ID:

Source: http://www.amdonnelly.co.uk/experiments/date-drop-down-lists.aspx

Friday, September 14, 2012

JQWidgets - Unique toolkit for HTML5 Web development

jQWidgets gives us something new and special. It’s a new and unique library for Web development and unlike others it makes our Apps and Websites look beautiful on desktops, touch devices and mobile phones.
jQWidgets is the ultimate UI toolkit for the next generation of cloud apps development and it is built entirely on open standards and technologies like HTML5, CSS, JavaScript and jQuery.

jQWidgets brings broad platform and device coverage with minimum development cost. It is tested with many browsers and optimized to work well on popular phones and tablet devices as well as on PCs.

Source: http://www.jqwidgets.com/

Tuesday, September 4, 2012

Jquery Tutorial : Dom Manipulation

3. DOM And Attributes Manipulation

  • To provide interaction on a page you want to be able manipulate elements dynamically.
  • In this chapter, you are going to learn how to dynamically:
    • Create elements on the page
    • Insert existing or freshly created elements on the page
    • Move elements to a different location on the page
    • Clone elements
    • Remove elements
    • Replace elements
  • From a selection of elements, you will be able to get and/or set their attribute values.

3.1. DOM Manipulation

Tuesday, July 3, 2012

HybridAuth, open source social sign on php library

HybridAuth, open source social sign on php library

HybridAuth enable developers to easily build social applications to engage websites vistors and customers on a social level by implementing social signin, social sharing, users profiles, friends list, activities stream, status updates and more.
HybridAuth goal is to act as an abstract api between your application and various social apis and identities providers such as Facebook, Twitter, MySpace and Google.

Source: http://hybridauth.sourceforge.net/index.html