Tutorial by Examples

using System; using System.Security.Cryptography; using System.Text; public class PasswordDerivedBytesExample { public static void Main(String[] args) { // Get a password from the user. Console.WriteLine("Enter a password to produce a key:"); by...
(Note: There are many IDE, toolchain and library which are ready-to-use with STM32. The following setup requires minimal effort to get it work, but it is only one of the many. Feel free to explore others, it is not the purpose of this example to force anyone to use the tools that will be used here.)...
This library allows the usage of RxJava with the new Android M permission model. Add the library to the dependencies: Rxjava dependencies { compile 'com.tbruyelle.rxpermissions:rxpermissions:0.8.0@aar' } Rxjava2 dependencies { compile 'com.tbruyelle.rxpermissions2:rxpermissions:0.8...
In all languages traditionally the first example is printing "Hello World". Probably doing that is easiest in VFP: ? "Hello World"
Registration in AppDelegate import UserNotifications in didFinishLaunchingWithOptions method, UNUserNotificationCenter.current().requestAuthorization(options: [.alert,.sound,.badge]) { (granted, error) in // Here you can check Request is Granted or not. } Create and Schedule notificat...
Firebase provides backend as a service, as applciation developer you do not have an option to have backend code. This example shows how using firebase queue, create backend which will operate on the top of firebase database and serve as a backend for your frontend application. Before getting into ...
Autoload your helper function. if you use many time in your project $autoload['helper'] = array('url', 'form'); Use form helper in view <?php echo form_open('Public/Login/loginAuth'); ?> <?php echo "<div class='row'>"; echo "<label for='inputE...
This is an example of Viz-Charts with line-chart with filters. There are a lot of techniques this is one to solve the filtering issue. Point to be noted is that you need to bind the Dataset of VizFrame by its ID and then apply the filtering on the FlattenedDataset   In the controller: // defining...
The following HTML page illustrates a simple Hello World page using Bootstrap 3. The page contains a full-width navigation bar with example links and a drop-down control. The navigation bar takes advantage of Bootstrap's mobile first capabilities. It starts collapsed in mobile views and become hori...
You can also create your own sidebar file in the theme to call it on different templates. Copy and paste sidebar.php of current theme and change the name (i.e. sidebar-book.php) In the template you can call this sidebar using get_sidebar('book'). Using this you can call different sidebars on diffe...
Class can implement multiple traits. In case if one trait defines method with the same signature like another trait, there is a multiple inheritance problem. In that case the method from last declared trait is used: trait Foo { def hello() {'Foo'} } trait Bar { def hello() {'Bar'} } cla...
Sliding window algorithm is used to perform required operation on specific window size of given large buffer or array. Window starts from the 1st element and keeps shifting right by one element. The objective is to find the minimum k numbers present in each window. This is commonly know as Sliding w...
public class SlidingWindow { public static int[] MaxSlidingWindow(int[] input, int k) { int[] result = new int[input.Length - k + 1]; for (int i = 0; i <= input.Length - k; i++) { var max = input[i]; for (int j = 1; j < k; j++) ...
class Post < ActiveRecord::Base belongs_to :user has_many :comments validates :user, presence: true validates :title, presence: true, length: { in: 6..40 } scope :topic, -> (topic) { joins(:topics).where(topic: topic) } before_save :update_slug after_create :send_wel...
Open a chat with @BotFather in Telegram and click the /start command. After you get a list of commands Select the command /newbot to get this Message: Alright, a new bot. How are we going to call it? Please choose a name for your bot. Enter a name for your bot, which can be anything, and sen...
Numeric operators are the easiest and almost the same as in other languages. +, -, * and /. Addition, subtraction, multiplication and division operators (in VFP there is no integer division, you can convert a result to integer with functions INT(), CEILING() and FLOOR()). % Modulus operator. ^ ...
Logical operators in VFP, in their order of precedence are: OperatorDescription( )Parentheses, groups expressionsNOT, !Logically negate the expression. NOT or ! has no difference.ANDLogically AND the expressionsORLogically OR the expressions<>, !=, #Check for inequality. Thus same as logical ...
Out of the box installations of Jenkins with the Git and SSH plugins will not work when attempting to pull a private repository from GitHub.
The first step to fix this issue I found was to download PSTools and extract the tools to a convenient location on the build server (e.g. c:\Programs\PSTools is there I extracted mine).
First open the Command prompt and "Run as Administrator". Once the command prompt is open navigate to the PSTools directory. From the command prompt we need to run git-bash using PSExec or PSExec64 as the Local Service, which Jenkins is running on the build server as by default. We wi...

Page 1006 of 1336