Tutorial by Examples: al

Implement Dispose() method (and declare the containing class as IDisposable) as a means to ensure any memory-heavy resources are freed as soon as the object is no longer used. The "catch" is that there is no strong guarantee the the Dispose() method would ever be invoked (unlike finalizers...
As Dispose() and finalizers are aimed to different purposes, a class managing external memory-heavy resources should implement both of them. The consequence is writing the class so that it handles well two possible scenarios: When only the finalizer is invoked When Dispose() is invoked first and...
Example of how to calculate the output shape and overcome the difficulties of using tf.nn.conv2d_transpose with unknown batch size (when input.get_shape() is (?, H, W, C) or (?, C, H, W)). def upconvolution (input, output_channel_size, filter_size_h, filter_size_w, stride_h, str...
Add the rx-android dependency as well as a current version of rx-java to the build.gradle. Because RxAndroid releases are few and far between, it is recommended you also explicitly depend on RxJava's latest version for bug fixes and new features. Rx1 compile 'io.reactivex:rxandroid:1.2.1' co...
Once you have installed Visual Studio from https://www.visualstudio.com/downloads/, start a new project. Select 'Windows Forms Application' from Visual Basic Tab. You can rename it here if you need to. Once you click 'OK', you will see this window: Click on the 'Toolbo...
Dialog dlg; DialogGroup dGrp; DialogField dfName; dlg = new Dialog("Trivial Dialog"); dGrp = dlg.addGroup("A Group"); dfName = dlg.addField(extendedTypeStr(Name)); if (dlg.run()) { info(dfName.value()); } Extended data types have to be wrapped in a call to ext...
Dialog dlg; DialogGroup dGrp; DialogField dfCustomer; dlg = new Dialog("Simple Dialog"); dGrp = dlg.addGroup("A Group"); dfCustomer = dlg.addField(extendedTypeStr(CustAccount)); if (dlg.run()) { info(dfCustomer.value()); } Because CustAccount is linked to the ...
Dialog dlg; DialogGroup dGrp; DialogField dfGender; dlg = new Dialog("Enum Dialog"); dGrp = dlg.addGroup("A Group"); dfGender = dlg.addField(enumStr(Gender), "Your Gender"); if (dlg.run()) { info(dfGender.value()); } Enums have to be wrapped inside a...
Dialog dlg; DialogGroup dGrp; DialogField dialogField; dlg = new Dialog("Evil Dialog"); dGrp = dlg.addGroup("A Group"); dialogField = dlg.addFieldValue(extendedTypeStr(NoYesId), NoYes::Yes, "I hereby sell my soul"); if (dlg.run()) { info(dialogField.valu...
Analysis in elasticsearch comes into context when you are willing to analyze the data in your index. Analyzers allow us to perform following: Abbreviations Stemming Typo Handling We will be looking at each of them now. Abbreviations: Using analyzers, we can tell elasticsearch how to t...
Detailed instructions on getting DotNetNuke set up or installed.
Elixir allows you to add aliases for your mix commands. Cool thing if you want to save yourself some typing. Open mix.exs in your Elixir project. First, add aliases/0 function to the keyword list that the project function returns. Adding () at the end of the aliases function will prevent compiler...
Detailed instructions on getting sharedpreferences set up or installed.
Detailed instructions on getting uicollectionview set up or installed.
Detailed instructions on getting google-compute-engine set up or installed.
Now that you have a collection of all the shape references in the document. Loop through the collection with a foreach, and through each iteration create a Blip object. Set the Blip object embed value to the picture ID reference you captured earlier from the image part. Also create a Stretch object...
Since you need to sort & rename the fields, the best option will be the Sort Component in the Data Flow task (like you mentioned) . If you only want to rename columns, then use the "Derived Column" component. The Sort component should look as follows: In my example, you can see the ...
Installation of a vmod requires an installed version of Varnish Cache, including the development files. Requirements can be found in the Varnish documentation. Source code is built with autotools: sudo apt-get install libvarnishapi-dev || sudo yum install varnish-libs-devel ./bootstrap # If run...
Taking the previous example, removing the x:Key element of the style applies the style to all buttons in the Application scope. <Style TargetType="{x:Type Button}"> <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/> ...
It is quite easy to install Artery on Linux based systems. You need to have a C++ Compiler with C++11 support as well as Boost and Vanetza libraries for building Artery. Also, you need one of Veins and INET. Of course, OMNeT++ and SUMO are also required. Installing OMNeT++ Download the OMNeT++ 5...

Page 243 of 269