Tutorial by Examples

For installation instructions on elixir check here, it describes instructions related to different platforms. Elixir is a programming language that is created using erlang, and uses erlang's BEAM runtime (like JVM for java). We can use elixir in two modes: interactive shell iex or directly running...
The String.Join method will help us to construct a string From array/list of characters or string. This method accepts two parameters. The first one is the delimiter or the separator which will help you to separate each element in the array. And the second parameter is the Array itself. String from...
Usually we are using String.Format method for formatting purpose, the.ToString is usually used for converting other types to string. We can specify the format along with the ToString method while conversion is taking place, So we can avoid an additional Formatting. Let Me Explain how it works with d...
Inner join returns only those records/rows that match/exists in both the tables based on one or more conditions (specified using ON keyword). It is the most common type of join. The general syntax for inner join is: SELECT * FROM table_1 INNER JOIN table_2 ON table_1.column_name = table_2.col...
A cross join is a Cartesian join, meaning a Cartesian product of both the tables. This join does not need any condition to join two tables. Each row in the left table will join to each row of the right table. Syntax for a cross join: SELECT * FROM table_1 CROSS JOIN table_2 Example: /* Sample...
Left Outer Join LEFT JOIN returns all rows from the left table, matched to rows from the right table where the ON clause conditions are met. Rows in which the ON clause is not met have NULL in all of the right table's columns. The syntax of a LEFT JOIN is: SELECT * FROM table_1 AS t1 LEFT JOIN ta...
A Java object may declare a finalize method. This method is called just before Java releases the memory for the object. It will typically look like this: public class MyClass { //Methods for the class @Override protected void finalize() throws Throwable { // Cleanup co...
You can manually trigger the Garbage Collector by calling System.gc(); However, Java does not guarantee that the Garbage Collector has run when the call returns. This method simply "suggests" to the JVM (Java Virtual Machine) that you want it to run the garbage collector, but does not ...
Enums can define abstract methods, which each enum member is required to implement. enum Action { DODGE { public boolean execute(Player player) { return player.isAttacking(); } }, ATTACK { public boolean execute(Player player) { re...
Setting a default value can be done by using Initializers (C#6) public class Name { public string First { get; set; } = "James"; public string Last { get; set; } = "Smith"; } If it is read only you can return values like this: public class Name { pu...
An example that uses Parallel.ForEach loop to ping a given array of website urls. static void Main() { string [] urls = { "www.stackoverflow.com", "www.google.net", "www.facebook.com", "www.twitter.com" ...
An example that uses Parallel.For loop to ping a given array of website urls. static void Main() { string [] urls = { "www.stackoverflow.com", "www.google.net", "www.facebook.com", "www.twitter.com" }; ...
Invoking methods or actions in parallel (Parallel region) static void Main() { string [] urls = { "www.stackoverflow.com", "www.google.net", "www.facebook.com", "www.twitter.com" }; System.Thr...
To start development with Elm, you need to install a set of tools called elm-platform. It includes: elm-make, elm-reactor, elm-repl and elm-package. All of these tools are available through CLI, in other words you can use them from your terminal. Pick one of the following methods to install Elm: ...
This example aims to describe how one can utilize git rebase in interactive mode. It is expected that one has a basic understanding of what git rebase is and what it does. Interactive rebase is initiated using following command: git rebase -i The -i option refers to interactive mode. Using inte...
Working in old browsers (IE >= 8) Automatic margins, paired with values of zero for the left and right or top and bottom offsets, will center an absolutely positioned elements within its parent. View Result HTML <div class="parent"> <img class="center" src=&quo...
Detailed instructions on getting kentico set up or installed.
There are two types of comparison: loose comparison with == and strict comparison with ===. Strict comparison ensures both the type and value of both sides of the operator are the same. // Loose comparisons var_dump(1 == 1); // true var_dump(1 == "1"); // true var_dump(1 == true); // t...
Download and unzip the GWT SDK. This contains the core libraries, compiler, and development server that you need to write web applications. On Windows, extract the files from the compressed folder gwt-2.7.0.zip. On Mac or Linux, you can unpack the package with a command like: unzip gwt-2.7.0.zip ...
Enums have been backported from Python 3.4 to Python 2.4 through Python 3.3. You can get this the enum34 backport from PyPI. pip install enum34 Creation of an enum is identical to how it works in Python 3.4+ from enum import Enum class Color(Enum): red = 1 green = 2 blue = 3 ...

Page 123 of 1336