Tutorial by Examples

If multiple signatures are to be integrated into a PDF, this is done by means of incremental PDF updates (explicitly not by adding multiple SignerInfo structures to a single integrated CMS signature container!): The cryptographic verification of these signatures merely guarantees that the byte ra...
Install PDFTK Server from https://www.pdflabs.com/tools/pdftk-server/ PDFtk Server is a command line tool which can: • Merge PDF Documents or Collate PDF Page Scans • Split PDF Pages into a New Document • Rotate PDF Documents or Pages • Decrypt Input as Necessary (Password Required...
The way Moment uses dates and times is by wrapping the existing Date() object in a moment() object and specifying useful and intuitive methods on this object. Format Dates moment().format('MMMM Do YYYY, h:mm:ss a'); // August 4th 2016, 10:41:45 am moment().format('dddd'); // Th...
Functions are found by first collecting a set of "associated classes" and "associated namespaces" that include one ore more of the following, depending on the argument type T. First, let us show the rules for classes, enumeration and class template specialization names. If T i...
This example demonstrates how you can respond to a button click by performing some work on a worker thread and then update the user interface to indicate completion void MyButton_OnClick(object sender, EventArgs args) { Task.Run(() => // Schedule work using the thread pool { ...
C++11 Motivational example When you have a variadic template pack in the template parameters list, like in the following code snippet: template<typename ...Args> void func(Args &&...args) { //... }; The standard library (prior to C++17) offers no direct way to write enable_if...
psycopg2 is the most popular PostgreSQL database adapter that is both lightweight and efficient. It is the current implementation of the PostgreSQL adapter. Its main features are the complete implementation of the Python DB API 2.0 specification and the thread safety (several threads can share t...
var a = new List<int> { 1, 2 }; var b = new List<int> { 2, 1 }; Assert.That (a, Is.EqualTo(b)); // fails Assert.That (a, Is.EquivalentTo(b)); // succeeds
<Image x:Name="MyImage" /> // Show image from web MyImage.Source = new BitmapImage(new Uri("http://your-image-url.com")) // Show image from solution MyImage.Source = new Uri("ms-appx:///your-image-in-solution", UriKind.Absolute) // Show image from file ...
<TextBlock x:Name="MyControl" Text="Hello, world!" /> var rtb = new RenderTargetBitmap(); await rtb.RenderAsync(MyControl); // Render control to RenderTargetBitmap // Get pixels from RTB IBuffer pixelBuffer = await rtb.GetPixelsAsync(); byte[] pixels = ...
IRandomAccessStreamReference bitmap = GetBitmap(); IRandomAccessStreamWithContentType stream = await bitmap.OpenReadAsync(); BitmapDecoder decoder = await BitmapDecoder.CreateAsync(stream); var pixels = await decoder.GetPixelDataAsync(); var outStream = new InMemoryRandomAccessStream(); // Cr...
The IsNull() function accepts two parameters, and returns the second parameter if the first one is null. Parameters: check expression. Any expression of any data type. replacement value. This is the value that would be returned if the check expression is null. The replacement value must be of a...
Since null is not a value, you can't use comparison operators with nulls. To check if a column or variable holds null, you need to use is null: DECLARE @Date date = '2016-08-03' The following statement will select the value 6, since all comparisons with null values evaluates to false or unknown...
Constant is available both in configuration and run phases. angular.module('app',[]) .constant('endpoint', 'http://some.rest.endpoint') // define .config(function(endpoint) { // do something with endpoint // available in both config- and run phases }) .controller('MainCtrl', ...
Value is available both in configuration and run phases. angular.module('app',[]) .value('endpoint', 'http://some.rest.endpoint') // define .run(function(endpoint) { // do something with endpoint // only available in run phase }) .controller('MainCtrl', function(endpoint) { ...
Factory is available in run phase. The Factory recipe constructs a new service using a function with zero or more arguments (these are dependencies on other services). The return value of this function is the service instance created by this recipe. Factory can create a service of any type, w...
Service is available in run phase. The Service recipe produces a service just like the Value or Factory recipes, but it does so by invoking a constructor with the new operator. The constructor can take zero or more arguments, which represent dependencies needed by the instance of this type. ...
Provider is available both in configuration and run phases. The Provider recipe is syntactically defined as a custom type that implements a $get method. You should use the Provider recipe only when you want to expose an API for application-wide configuration that must be made before the appli...
<Image Source="ms-appx:///Assets/Windows_10_Hero.png"/> Your image is part of the application, in the Assets folder and marked as Content <Image Source="ms-appdata:///local/Windows_10_Hero.png"/> Your image was saved in your application's Local Folder <Imag...
ImageSource result = new BitmapImage(new Uri("ms-appx:///Assets/Windows_10_Hero.png")); Use result to set the Source property of an Image control either though a Binding or code-behind

Page 711 of 1336