Tutorial by Examples

A function template can be overloaded under the rules for non-template function overloading (same name, but different parameter types) and in addition to that, the overloading is valid if The return type is different, or The template parameter list is different, except for the naming of paramete...
This code sends a simple text-only email to [email protected] EXEC msdb.dbo.sp_send_dbmail @profile_name = 'The Profile Name', @recipients = '[email protected]', @body = 'This is a simple email sent from SQL Server.', @subject = 'Simple email'
This attaches the results of the query SELECT * FROM Users and sends it to [email protected] EXEC msdb.dbo.sp_send_dbmail @profile_name = 'The Profile Name', @recipients = '[email protected]', @query = 'SELECT * FROM Users', @subject = 'List of users', ...
HTML content must be passed to sp_send_dbmail SQL Server 2012 DECLARE @html VARCHAR(MAX); SET @html = CONCAT ( '<html><body>', '<h1>Some Header Text</h1>', '<p>Some paragraph text</p>', '</body></html>' ) SQL Server 2012 ...
Returns a four-character code (varchar) to evaluate the phonetic similarity of two strings. Parameters: character expression. An alphanumeric expression of character data. The soundex function creates a four-character code that is based on how the character expression would sound when spoken....
Returns an integer (int) value that indicates the difference between the soundex values of two character expressions. Parameters: character expression 1. character expression 2. Both parameters are alphanumeric expressions of character data. The integer returned is the number of chars in th...
SQL Server 2012 Returns a NVARCHAR value formatted with the specified format and culture (if specified). This is primarily used for converting date-time types to strings. Parameters: value. An expression of a supported data type to format. valid types are listed below. format. An NVARCHAR form...
This is a very basic feature selection technique. Its underlying idea is that if a feature is constant (i.e. it has 0 variance), then it cannot be used for finding any interesting patterns and can be removed from the dataset. Consequently, a heuristic approach to feature elimination is to first re...
HTML <canvas id="canvas" width=300 height=100 style="background-color:#808080;"> </canvas> Javascript var canvas = document.getElementById("canvas"); var ctx = canvas.getContext("2d"); ctx.font = "34px serif"; ctx.textAlign = &qu...
auto is used in the syntax for trailing return type: auto main() -> int {} which is equivalent to int main() {} Mostly useful combined with decltype to use parameters instead of std::declval<T>: template <typename T1, typename T2> auto Add(const T1& lhs, const T2& rh...
Whereas inside a Translation Unit, order of initialization of global variables is specified, order of initialization across Translation Units is unspecified. So program with following files foo.cpp #include <iostream> int dummyFoo = ((std::cout << "foo"), 0); b...
A simple EntitySystem that processes a Family of entities not once per frame, but after a given interval. Entity processing logic should be placed in processEntity(Entity). For more info, please see IntervalIteratingSystem In the below code example, the best usage for this is the physics world ...
As far as client-side JavaScript engines are concerned (those running inside a browser), there is no straightforward solution available for requesting content from sources other than the current domain. (By the way, this limitation does not exist in JavaScript-server tools such as Node JS.) However...
Create Dynamic Web project, provide following information's as stated below Project name : DemoSpringMVCProject Target runtime : set as Apache Tomcat v7.0 server Click on finish, successfully we have created dynamic web project. Now we have to setup Spring-MVC framework : Create web.xml...
SoundEffect.Play() plays the sound effect in a "fire-and-forget" fashion. The sound plays once and its lifetime is managed by the framework. You are not able to change the properties (volume, pan, pitch) of the sound during playback, loop it, position it in 3D or pause it. You can hold a ...
Google Sheets is a spreadsheet application that runs on web browser. It doesn't require any installation or setup just a Google account and a modern web browser.
Detailed instructions on getting outlook-addin set up or installed.
The first time a user runs a project's gradlew, it should be realized that it will do two key things: Check to see if the version of the gradle used by the wrapper is already in ~/.gradle/wrapper/dists If not, download the archive of the version from the internet If you're in an environment t...
This is a relatively common mistake: You created an rect element, in a bar chart for instance, and you want to add a text label (let's say, the value of that bar). So, using the same variable that you used to append the rect and define its x and y position, you append your text element. Very logic, ...
TextFX [SourceForge] is plugin for advanced character conversions (escaping characters etc.) and code formatting (HTML or C++ code).

Page 672 of 1336