Tutorial by Examples: asp

<%@ Language="VBScript" CodePage = 65001 %> <% Option Explicit Response.Charset = "UTF-8" Response.CodePage = 65001 %> <!doctype html> <html> <head> <title>My First Classic ASP Page</title> </head> <body&gt...
This example adds a new rectangle to the canvas every 1 second (== a 1 second interval) Annotated Code: <!doctype html> <html> <head> <style> body{ background-color:white; } #canvas{border:1px solid red; } </style> <script> window.onload=(functio...
This example animates a clock showing the seconds as a filled wedge Annotated Code: <!doctype html> <html> <head> <style> body{ background-color:white; } #canvas{border:1px solid red; } </style> <script> window.onload=(function(){ // canva...
Asp.net is web application framework developed by Microsoft to build dynamic data-driven Web Application and WebServices. Asp.net is basically a subset of wider .NET framework. A framework is nothing but a collection of classes. In .NET Framework you can build Console application. Web Applicatio...
Introduction Play has several plugins for different IDE-s. The eclipse plugin allows to transform a Play application into a working eclipse project with the command activator eclipse. Eclipse plugin may be set per project or globally per sbt user. It depends on team work, which approach should be u...
This function will take 2 datetime parameters, the DOB, and a date to check the age at CREATE FUNCTION [dbo].[Calc_Age] ( @DOB datetime , @calcDate datetime ) RETURNS int AS BEGIN declare @age int IF (@calcDate < @DOB ) RETURN -1 -- If a DOB is supplied a...
PM> uninstall-Package EntityFramework -Version 6.1.2
This snippet is an helper function to enumerate all files older than a specified age, it's useful - for example - when you have to delete old log files or old cached data. static IEnumerable<string> EnumerateAllFilesOlderThan( TimeSpan maximumAge, ...
With AspNetCore you can develop the application on any platform including Mac,Linux,Window and Docker. Installation and SetUp Install visual Studio Code from here Add C# extesnion Install dot net core sdk. You can install from here Now you have all the tools available. To develop the applic...
You can pass a pointer variable to a method as parameter. The following example illustrates this: using System; namespace UnsafeCodeApplication { class TestPointer { public unsafe void swap(int* p, int *q) { int temp = *p; *p = *q; *q = temp; ...
You can view help for a specific parameter using: Get-Help Get-Content -Parameter Path
This is a screenshot of a video playing. You see a normal 16:9 video like you would expect to see in any modern video solution. This - the aspect ratio that the viewer sees - is what is called the display aspect ratio or DAR. From the illustrated parameters, we see that DAR = 1280:720 = 16:9 = 1....
Internally, all videos are a just series of pictures. Let's take a look at one such picture. That looks odd, right? Indeed. The pictures that make up a video may have an aspect ratio that are different from the DAR, most often for algorithmic reasons (e.g. only sizes that are a multiple of 16 can...
As the picture aspect ratio example indicates, videos are series of pictures that do not necessarily have the same aspect ratio as the final result to be displayed to the user. So how do you get from those stretched pictures to the normally displayed output? You need a stretching factor! This stret...
This is another name for sample aspect ratio and should be avoided, as the natural acronym (PAR) conflicts with picture aspect ratio.
Without replacement With combn, each vector appears in a column: combn(LETTERS, 3) # Showing only first 10. [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] "A" "A" "A" "A" "A" "A" "A" "A" &quo...
Without replacement choose(length(LETTERS), 5) [1] 65780 With replacement length(letters)^5 [1] 11881376
val allowedUsers = users.filter { it.age > MINIMUM_AGE }
This sample demonstrates how to import the worksheet Azure Excel file blob to DB on the Azure SQL Server and how to export it from DB to Azure Excel blob. Prerequisites: Microsoft Visual Studio 2015 version Open XML SDK 2.5 for Microsoft Office An Azure storage account Azure SQL Server Add...
Using the --config flag. $ /bin/mongod --config /etc/mongod.conf $ /bin/mongos --config /etc/mongos.conf Note that -f is the shorter synonym for --config.

Page 4 of 8