Tutorial by Examples: st

Open Visual Studio Select File --> New --> Project menu or push Ctrl + Shift + N buttons Select Outlook VSTO Add-in template Add the following code to the project: private void ThisAddIn_Startup(object sender, System.EventArgs e) { MessageBox.Show("Hel...
Is it possible to iterate over numbers with arbitrary step, not equal to 1? Sure, the step() function will help you for (i in 1..4 step 2) print(i) // prints "13" for (i in 4 downTo 1 step 2) print(i) // prints "42"
By default structures are padded in C. If you want to avoid this behaviour, you have to explicitly request it. Under GCC it's __attribute__((__packed__)). Consider this example on a 64-bit machine: struct foo { char *p; /* 8 bytes */ char c; /* 1 byte */ long x; /* 8 bytes */ ...
This will be a very basic app which will illustrate different ModalpresentationStyle in iOS. According to documentation found here, There are 9 different values for UIModalPresentationStyle which are as follows, fullScreen pageSheet formSheet currentContext custom overFullScreen overCurrent...
import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; public class SetAndListExample { public static void main( String[] args ) { System.out.println("List example ....."); List list = new ArrayList(); list.add("1"); list.a...
Dim rng As New Random() This declares an instance of the Random class called rng. In this case, the current time at the point where the object is created is used to calculate the seed. This is the most common usage, but has its own problems as we shall see later in the remarks Instead of allowin...
The following example declares a new instance of the Random class and then uses the method .Next to generate the next number in the sequence of pseudo-random numbers. Dim rnd As New Random Dim x As Integer x = rnd.Next The last line above will generate the next pseudo-random number and assign ...
MySQL Workbench is available for all major operating systems -Windows, Linux, Mac- You can find the version for you operating system from here. For windows: It uses the msi (Windows installer) to install packages. You only need to right click install and it starts. For Linux: There are multiple ....
Detailed instructions on getting oracle12c set up or installed.
Suppose there is a peak of normally (gaussian) distributed data (mean: 3.0, standard deviation: 0.3) in an exponentially decaying background. This distribution can be fitted with curve_fit within a few steps: 1.) Import the required libraries. 2.) Define the fit function that is to be fitted to th...
The function EventEmitter.eventNames() will return an array containing the names of the events currently subscribed to. const EventEmitter = require("events"); class MyEmitter extends EventEmitter{} var emitter = new MyEmitter(); emitter .on("message", function(){ //list...
Detailed instructions on getting shapeless set up or installed.
To create AR applications on the web, you need to add a new library named AR.js. First you load A-frame followed by AR.js. Newt you must setup you scene using the A-frames a-scene-tag with the artoolkit-attribute added. The sourceType must be your webcam. The font-camera of your smartphone is also ...
##= # The variable $Bit will hold either 64 or 32 depending on system architecture # This is used with ${Register::DLL} and ${UnRegister::DLL} # Use this in the beginning of your code. # This snippet should only be used once. # Var Bit System::Call "kernel32::GetCurrentProcess()i.s&quot...
##= # The variable $Bit will hold either 64 or 32 depending on system architecture # This is used with ${Register::DLL} and ${UnRegister::DLL} # Use this in the beginning of your code. # This snippet should only be used once. # Var Bit System::Call "kernel32::GetCurrentProcess()i.s&quo...
Nested prefabs are not avaible in Unity at the moment. You can drag one prefab to another, and apply that, but any changes on the child prefab will not be applied to nested one. But there is a simple workaround - You have to add to parent prefab a simple script, that will instantiate a child one. ...
Detailed instructions on getting casperjs set up or installed.
Detailed instructions on getting google-project-tango set up or installed.
var casper = require('casper').create(); casper.start('http://casperjs.org/'); casper.then(function() { this.echo('First Page: ' + this.getTitle()); }); casper.thenOpen('http://phantomjs.org', function() { this.echo('Second Page: ' + this.getTitle()); }); casper.run();
In your JS File add this option to your datatable: buttons: [ 'excel', 'pdf', 'copy' ] It will look like: $('#yourTableID').DataTable({ buttons: [ 'excel', 'pdf', 'copy' ] }); Add the necessary css files for the datatable with the buttons: <link rel="stylesheet" type=&quo...

Page 350 of 369