Thursday, 3 January 2019

History of MySQL


We started out with the intention of using mSQL to connect to our tables using our own fast low-level (ISAM) routines. However, after some testing, we came to the conclusion that mSQL was not fast enough or flexible enough for our needs. This resulted in a new SQL interface to our database but with almost the same API interface as mSQL. This API was designed to allow third-party code that was written for use with mSQL to be ported easily for use with MySQL.
The derivation of the name MySQL is not clear. Our base directory and a large number of our libraries and tools have had the prefix ``my'' for well over 10 years. However, co-founder Monty Widenius's daughter is also named My. Which of the two gave its name to MySQL is still a mystery, even for us.
The name of the MySQL Dolphin (our logo) is ``Sakila,'' which was chosen by the founders of MySQL AB from a huge list of names suggested by users in our ``Name the Dolphin'' contest. The winning name was submitted by Ambrose Twebaze, an Open Source software developer from Swaziland, Africa. According to Ambrose, the name Sakila has its roots in SiSwati, the local language of Swaziland. Sakila is also the name of a town in Arusha, Tanzania, near Ambrose's country of origin, Uganda.

Overview of the MySQL Database Management System


MySQL, the most popular Open Source SQL database management system, is developed, distributed, and supported by MySQL AB. MySQL AB is a commercial company, founded by the MySQL developers. It is a second generation Open Source company that unites Open Source values and methodology with a successful business model.
The MySQL Web site (http://www.mysql.com/) provides the latest information about MySQL software and MySQL AB.
·        MySQL is a database management system.
A database is a structured collection of data. It may be anything from a simple shopping list to a picture gallery or the vast amounts of information in a corporate network. To add, access, and process data stored in a computer database, you need a database management system such as MySQL Server. Since computers are very good at handling large amounts of data, database management systems play a central role in computing, as standalone utilities or as parts of other applications.
·        MySQL is a relational database management system.
A relational database stores data in separate tables rather than putting all the data in one big storeroom. This adds speed and flexibility. The SQL part of ``MySQL'' stands for ``Structured Query Language.'' SQL is the most common standardized language used to access databases and is defined by the ANSI/ISO SQL Standard. The SQL standard has been evolving since 1986 and several versions exist. In this manual, ``SQL-92'' refers to the standard released in 1992, ``SQL:1999'' refers to the standard released in 1999, and ``SQL:2003'' refers to the current version of the standard. We use the phrase ``the SQL standard'' to mean the current version of the SQL Standard at any time.
·        MySQL software is Open Source.
Open Source means that it is possible for anyone to use and modify the software. Anybody can download the MySQL software from the Internet and use it without paying anything. If you wish, you may study the source code and change it to suit your needs. The MySQL software uses the GPL (GNU General Public License), http://www.fsf.org/licenses/, to define what you may and may not do with the software in different situations. If you feel uncomfortable with the GPL or need to embed MySQL code into a commercial application, you can buy a commercially licensed version from us. See the MySQL Licensing Overview for more information (http://www.mysql.com/company/legal/licensing/).
·        The MySQL Database Server is very fast, reliable, and easy to use.
If that is what you are looking for, you should give it a try. MySQL Server also has a practical set of features developed in close cooperation with our users. You can find a performance comparison of MySQL Server with other database managers on our benchmark page. See Section 7.1.4, “The MySQL Benchmark Suite”.
MySQL Server was originally developed to handle large databases much faster than existing solutions and has been successfully used in highly demanding production environments for several years. Although under constant development, MySQL Server today offers a rich and useful set of functions. Its connectivity, speed, and security make MySQL Server highly suited for accessing databases on the Internet.
·        MySQL Server works in client/server or embedded systems.
The MySQL Database Software is a client/server system that consists of a multi-threaded SQL server that supports different backends, several different client programs and libraries, administrative tools, and a wide range of application programming interfaces (APIs).
We also provide MySQL Server as an embedded multi-threaded library that you can link into your application to get a smaller, faster, easier-to-manage product.
·        A large amount of contributed MySQL software is available.
It is very likely that your favorite application or language supports the MySQL Database Server.
The official way to pronounce ``MySQL'' is ``My Ess Que Ell'' (not ``my sequel''), but we don't mind if you pronounce it as ``my sequel'' or in some other localized way.

Windows short cut keys

Press Win+L to switch to the Welcome screen.
-----
Press Win+L to lock your workstation.
-----
You can switch users without going through the Welcome screen:  From Task Manager, go to the Users tab, right-click a user, and select Connect.
-----
Hold down the shift key in the shutdown dialog to change "Stand By" to "Hibernate".  Or just press H to hibernate instantly.  You can even use the Power Control Panel to configure your power button to hibernate.
-----
To disable the password when resuming from standby or hibernation, open the Power Control Panel and uncheck "Prompt for password after returning from standby" on the Advanced tab.
-----
You can rename multiple files all at once: Select a group of files, right-click the first file, and select "Rename". Type in a name for the first file, and the rest will follow.
-----
Hold down the shift key when switching to thumbnail view to hide the file names.  Do it again to bring them back.
-----
When dragging a file in Explorer, you can control the operation that will be performed when you release the mouse button:

Hold the Control key to force a Copy.

Hold the Shift key to force a Move.

Hold the Alt key to force a Create Shortcut.
-----
If you create a file called Folder.jpg, that image will be used as the thumbnail for the folder.  What's more, that image will also be used as the album art in Windows Media Player for all media files in that folder.
-----
From the View Menu, select "Choose Details" to select which file properties should be shown in the Explorer window. To sort by a file property, check its name in the "Choose Details" in order to make that property available in the "Arrange Icons by" menu.
-----
To display the volume control icon in the taskbar, go to the Sounds and Audio Devices Control Panel and select "Place volume icon in the taskbar".
-----
Hold down the shift key when deleting a file to delete it immediately instead of placing it in the Recycle Bin. Files deleted in this way cannot be restored.
-----
If you hold down the shift key while clicking "No" in a Confirm File Operation dialog, the response will be interpreted as "No to All".
-----
To save a document with an extension other than the one a program wants to use, enclose the entire name in quotation marks.  For example, if you run Notepad and save a file under the name


Dr.Z

it will actually be saved under the name Dr.Z.txt.  But if you type

"Dr.Z"

then the document will be saved under the name Dr.Z.  Note that a document so-named cannot be opened via double-clicking since the extension is no longer ".txt".
-----
Put a shortcut to your favorite editor in your Send To folder and it will appear in your "Send To" menu. You can then right-click any file and send it to your editor.
-----
Ctrl+Shift+Escape will launch Task Manager.
-----
To arrange two windows side-by-side, switch to the first window, then hold the Control key while right-clicking the taskbar button of the second window.  Select "Tile Vertically".
-----
To close several windows at once, hold down the Control key while clicking on the taskbar buttons of each window.  Once you have selected all the windows you want to close, right-click the last button you selected and pick "Close Group".
-----
You can turn a folder into a desktop toolbar by dragging the icon of the desired folder to the edge of the screen. You can then turn it into a floating toolbar by dragging it from the edge of the screen into the middle of the screen.  (It helps if you minimize all application windows first.)
-----
You can turn a folder into a taskbar toolbar.

First, unlock your taskbar.

Next, drag the icon of the desired folder to the space between the taskbar buttons and the clock. (Wait for the no-entry cursor to change to an arrow. It's a very tiny space; you will have to hunt for it.)

You can rearrange and resize the taskbar toolbar you just created.

You can even turn the taskbar toolbar into a menu by resizing it until only its name is visible.
-----
In the Address Bar, type "microsoft" and hit Ctrl+Enter.  Internet Explorer automatically inserts the "http://www." and ".com" for you.
-----
To remove an AutoComplete entry from a Web form, highlight the item in the AutoComplete dropdown and press the Delete key.

To remove all Web form AutoComplete entries, go to the Internet Explorer Tools menu, select Internet Options, Content, AutoComplete, then press the "Clear Forms" button.
-----
To organize your Favorites in Explorer instead of using the Organize Favorites dialog, hold the shift key while selecting "Organize Favorites" from the Favorites menu of an Explorer window.
-----
You can organize your Favorites by dragging the items around your Favorites menu.

Alternatively, you can open the Favorites pane and hold the Alt key while pressing the up and down arrows to change the order of your Favorites.
-----
To run Internet Explorer fullscreen, press F11. Do it again to return to normal mode.
-----
If your "Printers and Faxes" folder is empty, you can hide the "Printers and Faxes" icon when viewed from other computers by stopping the Print Spooler service.
-----
To add or remove columns from Details mode, select Choose Details from the View menu, or just right-click the column header bar.
-----
In Internet Explorer, hold the Shift key while turning the mouse wheel to go forwards or backwards.
-----
In Internet Explorer, hold the Shift key while clicking on a link to open the Web page in a new window.
-----
In Internet Explorer, type Ctrl+D to add the current page to your Favorites.

This and many more keyboard shortcuts can be found by going to Internet Explorer, clicking the Help menu, then selecting Contents and Index.  From the table of contents, open Accessibility and click "Using Internet Explorer keyboard shortcuts".
-----
In some applications (such as Internet Explorer), holding the Control key while turning the mouse wheel will change the font size.
-----
To shut down via Remote Desktop, click the Start button, then type Alt+F4.
-----

Friday, 21 December 2018

How To Load Video In Power-Point


How To Load Video In Power-Point


1).Open  Ms-PowerPoint

2).Now Goto View MenuàToolbarsàControl Toolbox

3). Now Select the More Option Button

4).In That Select  the Application In   which you Want to load the Video.

5).Now Drag The Cursor Into the Window it will display That Application.

6).Now Give Right-Click on the Object you have drop and select its properties

7).Double Click on “Custom” It Will open      “Window Media Player Properties”

8).Under General Tab àSource àFile Name or URLà”Enter Your Path For Video” by Clicking on Browse  Button.

9).Then Click On OK Button.



Events in the Life Cycle of a Web Application


Events in the Life Cycle of a Web Application
A Web application lives as long as it has active sessions, whereas Web forms live for barely a moment. The life of a Web application begins when a browser requests the start page of the application. (See Figure 2-12.) At that point, the Web server swings into action, starting the assembly (DLL) that responds to that request. The executable creates an instance of the requested Web form, generates the HTML to respond to the request, and posts that response to the browser. It then destroys the instance of the Web form.
When the browser has the generated HTML, the user can type text in boxes, select options, and perform other tasks until triggering a postback event, such as a button click. Postback events cause the browser to send the page’s data (view state) back to the server for event processing. When the server receives the view state, it creates a new instance of the Web form, fills in the data from the view state, and processes any events that occurred. (See Figure 2-13.) As soon as the server has finished, it posts the resulting HTML back to the browser and destroys the instance of the form.


When the user stops using the Web application for a period of time (the default is 20 minutes), the user’s session times out and ends. (See Figure 2-14.) If there are no other sessions from other users, the application ends. This doesn’t always happen right away. The common language runtime (CLR) manages memory using garbage collection rather than reference counting, as OLE did. Garbage collection means that the server periodically traces through the references between objects. When the runtime finds an object that is no longer used, it throws the object away and recovers the memory. This means that you don’t know exactly when an Application_End event will occur.
Because Web forms have very short lifetimes, ASP.NET takes special steps to preserve the data entered in the controls on a Web form, as shown in Figure 2-15. Data entered in controls is sent with each request and restored to controls in Page_Init. The data in these controls is then available in the Page_Load event.


The data that ASP.NET preserves between requests is called the Web form’s view state. By default, a Web form’s view state is available only within that Web form. To make data entered on a Web form available to other Web forms in an application, you need to save the data in a state variable in the Application or Session objects. These objects provide two levels of scope:
  • Application state variables
These are available to all users of an application. You can think of Application state as multiple-user global data. All sessions can read or write these variables.
  • Session state variables
These are available only to a single session (user). Session state is like global data in a standard Windows application. Only the current session has access to its Session state.
Application and Session state variables aren’t declared the way you declare regular variables. Instead, they are created on the fly in code. For example, the following code saves the number of button clicks in Session state:
Visual Basic .NET

Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click
    ' Save the number of clicks in Session state.
    Session("Clicks") = Session("Clicks") + 1
    ' Display the number of clicks.
    Response.Write("Number of clicks: " & Session("Clicks"))
End Sub
Visual C#
// From Global.asax.cs
protected void Session_Start(Object sender, EventArgs e)
{
    // Initialize Clicks Session state variable.
    Session["Clicks"] = 0;
}
 
// From StateNEvents.asax.cs
private void Button1_Click(object sender, System.EventArgs e)
{
    // Increment click count.
    Session["Clicks"] = (int)Session["Clicks"] + 1;
    // Display the number of clicks.
    Response.Write("Number of clicks: " + Session["Clicks"] + "<br>");
}
You can save any type of data in a state variable, from a simple integer to whole objects. Because state variables are global data, you need to develop strategies for working with them in your application. Managing state variables in your code is explained in depth in Chapter 3, “Working with Web Objects.”
IMPORTANT
Application state variables must be initialized in Visual C# before you perform most operations on them. For example, you need to assign a value to the Clicks state variable before performing the cast (int)Session["Clicks"]. Otherwise, you will receive the error “Value null was found where an instance of an object was required” at run time.
Application and Session Events
You can write code to respond to Application and Session events in the Global.asax file. Use Application events to initialize objects and data that you want to make available to all the current sessions of your Web application. Use Session events to initialize data that you want to keep throughout individual sessions, but that you don’t want to share between sessions. Table 2-3 lists each of the Application event handlers and describes when they occur.
Table 2-3. Application Event Handlers
Event handler name
Occurs when
Application_Start
The first user visits a page within your Web application.
Application_End
There are no more users of the application.
Application_BeginRequest
At the beginning of each request to the server. A request happens every time a browser navigates to any of the pages in the application.
Application_EndRequest
At the end of each request to the server.
Session_Start
A new user visits a page within your application.
Session_End
A user stops requesting pages from the Web application and their session times out. Sessions time out after a period specified in the Web.config file.
In Web forms, a session is a unique instance of the browser. A single user can have multiple instances of the browser running on his or her machine. If each instance visits your Web application, each instance has a unique session.
To see how Application and Session events occur, add the following code to the Global.asax file in a Web forms project:
Visual Basic .NET
Sub Application_Start(ByVal Sender As Object, ByVal E As  EventArgs)
    ' Record application start.
    Application("AppCount") = Application("AppCount") +  1
End Sub
 
Sub Session_Start(ByVal Sender As Object, ByVal E As EventArgs)
    ' Count sessions.
    Application("SessCount") = Application("SessCount")  + 1
    ' Display Application count.
    Response.Write("Number of applications: " & _
        Application("AppCount") & "<br>")
    ' Display session count.
    Response.Write("Number of sessions: " & _
        Application("SessCount") & "<br>")
End Sub
 
Sub Session_End(ByVal Sender As Object, ByVal E As EventArgs)
    ' Decrement sessions.
    Application("SessCount") = Application("SessCount")  - 1
End Sub
Visual C#
protected void Application_Start(Object sender, EventArgs e)
{
    // Create Application state variables.
    Application["AppCount"] = 0;
    Application["SessCount"] = 0;
    // Record application start.
    Application["AppCount"] = (int)Application["AppCount"] + 1;
}
 
protected void Session_Start(Object sender, EventArgs e)
{
    // Count sessions.
    Application["SessCount"] = (int)Application["SessCount"] + 1;
    // Display Application count.
    Response.Write("Number of applications: " + 
        Application["AppCount"] + "<br>");
    // Display session count.
    Response.Write("Number of sessions: " +
        Application["SessCount"] + "<br>");
}
 
protected void Session_End(Object sender, EventArgs e)
{
    // Decrement sessions.
    Application["SessCount"] = (int)Application["SessCount"] - 1;
}
To demonstrate the events, run the preceding code, and then start a new instance of the browser and navigate to the address. Each new instance of the browser increments the session count, but the application count stays at 1.
It’s important to realize that intrinsic objects such as Session and Response are not available at Application_Start. To use these objects, you have to wait until their creation event occurs.


Web Form Events
You use Web form events to process and maintain data used on a Web page, to respond to data binding, and to handle exceptions on the Web page. Table 2-4 lists the events that occur on a Web form; the first five events are shown in order of occurrence.
Table 2-4. Web Form Events
Event handler name
Occurs when
Page_Init
The server controls are loaded and initialized from the Web form’s view state. This is the first step in a Web form’s life cycle.
Page_Load
The server controls are loaded in the Page object. View state information is available at this point, so this is where you put code to change control settings or display text on the page.
Page_PreRender
The application is about to render the Page object.
Page_Unload
The page is unloaded from memory.
Page_Disposed
The Page object is released from memory. This is the last event in the life of a Page object.
Page_Error
An unhandled exception occurs.
Page_AbortTransaction
A transaction is aborted.
Page_CommitTransaction
A transaction is accepted.
Page_DataBinding
A server control on the page binds to a data source.
You can couple the Page_Load event with the IsPostback property to initialize data the first time a user visits a Web form. This is similar to a Session_Start event; however, it occurs at the page level rather than the application level. The following code initializes an object and stores it in the Session state the first time a page is viewed:
Visual Basic .NET
' Declare a new object.
Dim FlashCard As New FlashCardClass()
 
Private Sub Page_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles MyBase.Load
    ' If this is the first time the page is viewed...
    If Not (Page.IsPostBack) Then
        ' Shuffle the FlashCards.
        FlashCard.Shuffle()
        ' Store the object in a Session variable.
        Session("FlashCard") = FlashCard
    End If
    ' Get the Session FlashCard variable.
    FlashCard = Session("FlashCard")
    RefreshDisplay()
End Sub
Visual C#
// From the Web Form Designer generated code region.
private void InitializeComponent()
{    
    this.Load += new System.EventHandler(this.Page_Load);
}
 
// Declare a new object.
FlashCardClass FlashCard = new FlashCardClass();
 
private void Page_Load(object sender, System.EventArgs e)
{
    if(!IsPostBack)
    {
        // Shuffle the FlashCards.
        FlashCard.Shuffle();
        // Store the object in a Session variable.
        Session["FlashCard"] = FlashCard;
    }
    // Get the Session FlashCard variable.
    FlashCard = (FlashCardClass)Session["FlashCard"];
    RefreshDisplay();
}
The other page events let you customize the appearance of the page and respond to data events. Data binding, transaction processing, and rendering are covered in greater detail in subsequent chapters.
Server Control Events
Server controls, such as a Button, TextBox, and DropDownList, each have their own sets of events that occur in response to user actions. However, not all server control events are created equal. There are three types of server control events:
  • Postback events
These events cause the Web page to be sent back to the server for immediate processing. Postback events affect perceived performance because they trigger a round-trip to the server.
  • Cached events
These events are saved in the page’s view state to be processed when a postback event occurs.
  • Validation events
These events are handled on the page without posting back or caching. The validation server controls use these types of events.
Figure 2-16 shows the sequence of server control events on a Web form. The validations controls are evaluated before the page is posted back to the server. When the page is posted back, the Page_Init and Page_Load events are handled, then cached events are handled, and finally the event that caused the postback is processed. Among cached events, the event order is determined by the order of the controls on the Web form.

The Button, Link Button, and Image Button controls all cause postback events. The TextBox, DropDownList, ListBox, RadioButton, and CheckBox controls provide cached events; however, you can override this behavior by setting the AutoPostBack property to True.
To see how validation, cached, and postback events interact, create a Web form with a TextBox control, a RequiredFieldValidator control, and a Button control. Set the ControlToValidate property of the validator control to TextBox1, and then add the following code to the TextBox and Button event handlers:
Visual Basic .NET
Private Sub Button1_Click(ByVal sender As System.Object,  _
    ByVal e As System.EventArgs) Handles Button1.Click
    Response.Write("Button Clicked!<br>")
End Sub
 
Private Sub TextBox1_TextChanged(ByVal sender As Object,  _
    ByVal e As System.EventArgs) Handles TextBox1.TextChanged
    Response.Write("Text has changed!<br>")
End Sub
Visual C#
private void Button1_Click(object sender, System.EventArgs e)
{
    Response.Write("Button Clicked!<br>");
}
 
private void TextBox1_TextChanged(object sender, System.EventArgs e)
{
    Response.Write("Text has changed!<br>");
}
 
// From the Web Form Designer generated code region.
private void InitializeComponent()
{    
    this.Button1.Click += new System.EventHandler(this.Button1_Click);
    this.TextBox1.TextChanged += new EventHandler(this.TextBox1_TextChanged);
    this.Load += new System.EventHandler(this.Page_Load);
}
If you leave the TextBox control blank and click OK, the RequiredFieldValidator control is displayed—no other events are processed and the page is not posted back to the server. If you type text in the TextBox control and click OK, the page is posted back and the TextChanged event occurs before the Click event.