Tutorial by Examples: er

Many unbound generic parameters, like those used in a static method, cannot be recovered at runtime (see Other Threads on Erasure). However there is a common strategy employed for accessing the type satisfying a generic parameter on a class at runtime. This allows for generic code that depends on ac...
Here is a quick reference for advanced insertion, formatting, and filtering commands/shortcuts. Command/ShortcutResultg + ? + mPerform rot13 encoding, on movement mn + ctrl + a+n to number under cursorn + ctrl + x-n to number under cursorg + q+ mFormat lines of movement m to fixed width:rce wCenter...
It is common for company to set up it's own nuget server for distribution of packages across different teams. Go to Solution Explorer and click Right Mouse button then choose Manage NuGet Packages for Solution In window that opens click on Settings Click on + in top right corner the...
import pandas as pd import numpy as np import matplotlib.pyplot as plt # I want 7 days of 24 hours with 60 minutes each periods = 7 * 24 * 60 tidx = pd.date_range('2016-07-01', periods=periods, freq='T') # ^ ^ # | ...
Consider the following example: @sky-blue: #87ceeb; @dark-sky-blue: @sky-blue + #333; body { background-color: @dark-sky-blue; } The above example gives you: body { background-color: #baffff; } Here it explains how to declare a variable and also make operations on a particular va...
C++11 The std::is_same<T, T> type relation is used to compare two types. It will evaluate as boolean, true if the types are the same and false if otherwise. e.g. // Prints true on most x86 and x86_64 compilers. std::cout << std::is_same<int, int32_t>::value << "\n&qu...
C++11 Type properties compare the modifiers that can be placed upon different variables. The usefulness of these type traits is not always obvious. Note: The example below would only offer an improvement on a non-optimizing compiler. It is a simple a proof of concept, rather than complex example. ...
aiohttp.ClientSession may be used as a parent for a custom WebSocket class. Python 3.x3.5 import asyncio from aiohttp import ClientSession class EchoWebSocket(ClientSession): URL = "wss://echo.websocket.org" def __init__(self): super().__init__() self....
Apart from types as a template parameter we are allowed to declare values of constant expressions meeting one of the following criteria: integral or enumeration type, pointer to object or pointer to function, lvalue reference to object or lvalue reference to function, pointer to member, st...
By default, npm installs the latest available version of modules according to each dependencies' semantic version. This can be problematic if a module author doesn't adhere to semver and introduces breaking changes in a module update, for example. To lock down each dependencies' version (and the ve...
There have been many releases of Java since the original Java 1.0 release in 1995. (Refer to Java version history for a summary.) However most releases have passed their official End Of Life dates. This means that the vendor (typically Oracle now) has ceased new development for the release, and n...
Input record separator can be specified with -0 switch (zero, not capital O). It takes an octal or hexadecimal number as value. Any value 0400 or above will cause Perl to slurp files, but by convention, the value used for this purpose is 0777. perl -0777 -e 'my $file = <>; print length($file)...
Java release naming is a little confusing. There are actually two systems of naming and numbering, as shown in this table: JDK versionMarketing namejdk-1.0JDK 1.0jdk-1.1JDK 1.1jdk-1.2J2SE 1.2......jdk-1.5J2SE 1.5 rebranded Java SE 5jdk-1.6Java SE 6jdk-1.7Java SE 7jdk-1.8Java SE 8jdk-91Java SE 9 (n...
public string GetCustomerNamesCsv() { List<CustomerData> customerDataRecords = GetCustomerData(); // Returns a large number of records, say, 10000+ StringBuilder customerNamesCsv = new StringBuilder(); foreach (CustomerData record in customerDataRecords) { custom...
With regards to reserved words there is a small distinctions between the "Identifiers" used for the likes of variable or function names and the "Identifier Names" allowed as properties of composite data types. For example the following will result in an illegal syntax error: va...
In order to generate an RSA key, an EVP_PKEY must first be allocated with EVP_PKEY_new: EVP_PKEY *pkey; pkey = EVP_PKEY_new(); An exponent for the key is also needed, which will require allocating a BIGNUM with BN_new and then assigning with BN_set_word: BIGNUM *bn; bn = BN_new(); BN_set_wor...
Basic Text Email <?php $mail = new PHPMailer(); $mail->From = "[email protected]"; $mail->FromName = "Full Name"; $mail->addReplyTo("[email protected]", "Reply Address"); $mail->Subject = "Subject Text"; $mail->Body ...
<?php $mail = new PHPMailer(); $mail->From = "[email protected]"; $mail->FromName = "Full Name"; $mail->addReplyTo("[email protected]", "Reply Address"); $mail->addAddress("[email protected]", "Recepient Name&quot...
<?php $mail = new PHPMailer(); $mail->From = "[email protected]"; $mail->FromName = "Full Name"; $mail->addReplyTo("[email protected]", "Reply Address"); $mail->Subject = "Subject Text"; $mail->Body = "This is...
Since lots of beginners are confused about cloud hosting.I am writing this guide to walk through setting meteor on aws with ubuntu os. If you already have your instance running feel free to skip this step and go straight to installing meteor on aws. Login into AWS Console.Select EC2. Go to EC2 Dash...

Page 205 of 417