Tutorial by Examples

Returns an error from a previous OS-* call represented by an integer. The calls that can return an OS-ERROR are: OS-APPEND OS-COPY OS-CREATE-DIR OS-DELETE OS-RENAME SAVE CACHE Note that OS-COMMAND is missing. You need to handle errors in OS-COMMAND yourself. Error numberDescription0No er...
Feature: Some terse yet descriptive text of what is desired Textual description of the business value of this feature Business rules that govern the scope of the feature Any additional information that will make the feature easier to understand Background: Given some precon...
Generate a random letter between a and z by using the Next() overload for a given range of numbers, then converting the resulting int to a char Random rnd = new Random(); char randomChar = (char)rnd.Next('a','z'); //'a' and 'z' are interpreted as ints for parameters for Next()
Add this text to appsettings.json { "key1": "value1", "key2": 2, "subsectionKey": { "suboption1": "subvalue1" } } Now you can use this configuration in your app, in the way like this public class Program { sta...
Create class like a class below public class MyOptions { public MyOptions() { // Set default value, if you need it. Key1 = "value1_from_ctor"; } public string Key1 { get; set; } public int Key2 { get; set; } } Then you need to add this code ...
This used the flex layout with the sortable to create a grid of responsive boxes that can be moved around by dragging and dropping. HTML <div id="sortable"> <div>1</div> <div>2</div> <div>3</div> <div>4</div> <div&gt...
This example uses a class on the placeholder to turn it into a line and make it take up no room. HTML <div id="sortable"> <div>1</div> <div>2</div> <div>3</div> <div>4</div> </div> JS $("#sortable&q...
The underlying example is just the one given in the official pyspark documentation. Please click here to reach this example. # the first step involves reading the source text file from HDFS text_file = sc.textFile("hdfs://...") # this step involves the actual computation for reading...
public class Program { public static void Main(string[] args) { Console.WriteLine("\nWhat is your name? "); var name = Console.ReadLine(); var date = DateTime.Now; Console.WriteLine("\nHello, {0}, on {1:d} at {1:t}", name, date); ...
Based on a question. The following snippets Does not cache the expected emission and prevents further calls. Instead it re-subscribes to the realSource for every subscription. var state = 5 var realSource = Rx.Observable.create(observer => { console.log("creating expensive HTTP-based emis...
#include <string.h> #include <gst/gst.h> #include <gst/app/gstappsrc.h> /* * an example application of using appsrc in push mode to create a file. * from buffers we push into the pipeline. */ /* S16LE 10ms frame audio */ #define BUFFER_SIZE 160 /* 300 frames =...
Executable C++ program code is usually produced by a compiler. A compiler is a program that translates code from a programming language into another form which is (more) directly executable for a computer. Using a compiler to translate code is called compilation. C++ inherits the form of its compi...
Selection of a Version Control System Of course many organisations or projects already have a preferred or selected version control system if this is the case for you just skip to client installation. There are a number of things to consider when selecting the version control system to use, given ...
/** * NetSuite will loop through each record in your search * and pass the record type and id for deletion * Try / Catch is useful if you wish to handle potential errors */ function MassDelete(record_type, record_id) { try { nlapiDeleteRecord(record_type, record_id...
1. Scrolling to target element ("BROWSE TEMPLATES" button at the bottom of page) with Actions from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains driver = webdriver.Chrome() driver.get('http://www.w3schools.com/') target = driver.find_elem...
RTE { classes { btn-lg { name = Button (large) requires = btn btn-default } btn-default { name = Button (default) requires = btn } } default { buttons.link.properties.class.allowedClas...
The modules used in this example are part of pywin32 (Python for Windows extensions). Depending on how you installed Python, you might need to install this separately. import win32serviceutil import win32service import win32event import servicemanager import socket class AppServerSvc (win3...
A version control system allows a developer or development team access to essentially I time machine. If the source code, settings, etc., that were used to build a program or system are under version control then the developers can step back in time to recover lost functionality, trace how errors we...
You would need to install ruby before you can install rails. Mac already comes with ruby installed based on how recent your macOS is? Depending on what ruby version you want for your development, the best way to install Ruby is to use RVM. In your terminal, type the command below listed in step...
<?php function wpshout_register_widgets() { register_widget( 'Favorite_Song_Widget'); } add_action( 'widgets_init', 'wpshout_register_widgets' ); class Favorite_Song_Widget extends WP_Widget { function Favorite_Song_Widget() { // Instantiate the parent object parent:...

Page 1138 of 1336