Tutorial by Examples: all

For a C-style function call, e.g. plus(a, b); // Parentheses surrounding only the arguments, comma separated Then the equivalent Haskell code will be (plus a b) -- Parentheses surrounding the function and the arguments, no commas In Haskell, parentheses are not explicitly required for functi...
In the previous example, we didn't end up needing the parentheses, because they did not affect the meaning of the statement. However, they are often necessary in more complex expression, like the one below. In C: plus(a, take(b, c)); In Haskell this becomes: (plus a (take b c)) -- or equivale...
Detailed instructions on getting tastypie set up or installed.
To see all the built-in rules execute: Get-ScriptAnalyzerRule
Object1 := nil; Object2 := nil; try Object1 := TMyObject.Create; Object2 := TMyObject.Create; finally Object1.Free; Object2.Free; end; If you do not initialize the objects with nil outside the try-finally block, if one of them fails to be created an AV will occur on the finally bl...
First, you'll need to install the Kotlin plugin. For Windows: Navigate to File → Settings → Plugins → Install JetBrains plugin For Mac: Navigate to Android Studio → Preferences → Plugins → Install JetBrains plugin And then search for and install Kotlin. You'll need to restart the IDE af...
In windows Platform Step 1: Installation of Ruby If you already have installed ruby in your pc then you can skip this step. Go to rubyinstaller.org's download page and download one of the stable version of ruby corresponding to architecture of your windows platform. Again download development ...
(Beginner level; IDE: CLion) First, install boost from the Cygwin mirror: open the install exe, search for boost, install the packages. After boost is installed: it will be located in /usr/include/boost. This is where everything is. All #include statements will be a path from the boost folder,...
You can install Solr in any system where a suitable Java Runtime Environment (JRE) is available, as detailed below. Currently this includes Linux, OS X, and Microsoft Windows. You will need the Java Runtime Environment (JRE) version 1.8 or higher. At a command line, check your Java version like thi...
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...
Detailed instructions on getting DotNetNuke set up or installed.
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...
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...
Step 1: Installing the Hanami gem. $ gem install hanami Step 2: Generate a new project setting RSpec as testing framework. Open up a command line or terminal. To generate a new hanami application, use hanami new followed by the name of your app and the rspec test param. $ hanami...
One of the best Linux distributions currently for Raspberry Pi (from now on, "RPi") is Arch Linux. This web shows the installation for: RPi2. ARMv7 architecture (32 bits). RPi3. There are two options: ARMv7 architecture (32 bits) or AArch architecture (64 bits). This t...

Page 100 of 113