Tutorial by Examples

You can list all of the keys in a Redis database by executing the following commands from redis-cli: KEYS * The parameter to KEYS is a glob-style pattern matching expression. Examples of suppored patterns include: h?llo matches hello, hallo and hxllo h*llo matches hllo and heeeello h[ae]llo ...
Affix is removed from Bootstrap 4. It is recommended to use a position: sticky polyfill instead. If you were using Affix to apply additional, non-position styles, the polyfills might not support your use case. One option for such uses is the third-party ScrollPos-Styler library. According to Boot...
The GEOADD command allows a user to add geospatial information (item name, longitude, latitude) to a particular key. The GEOADD command can be used to add a single item to a key: GEOADD meetup_cities -122.43 37.77 "San Francisco" or multiple items to a key: GEOADD meetup_cities -122....
The following example shows how the master can receive data from multiple slaves. In this example the slave sends two short numbers. The first one is for temperature, and the second one is for moisture. Please notice that the temperature is a float (24.3). In order to use only two bytes and not fo...
Below give solution can be also use in another supported programming languages with some syntax changes To do Scroll down page/section/division in webpage while there is custom scroll bar(Not browser scroll). Click Here For demo and check scroll bar has its independent element. In belo...
In this example we define a package header and a package body wit a function. After that we are calling a function from the package that return a return value. Package header: CREATE OR REPLACE PACKAGE SkyPkg AS FUNCTION GetSkyColour(vPlanet IN VARCHAR2) RETURN VARCHAR2; ...
This examples uses the AES algorithm for encrypting passwords. The salt length can be up to 128 bit. We are using the SecureRandom class to generate a salt, which is combined with the password to generate a secret key. The classes used are already existing in Android packages javax.crypto and java....
image: openjdk:8-jdk before_script: - curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz - mkdir -p /usr/local/gcloud - tar -C /usr/local/gcloud -xvf /tmp/google-cloud-sdk.tar.gz - echo y |/usr/local/gclou...
Detailed instructions on getting service-worker set up or installed.
If you want to loop over a list of tuples for example: collection = [('a', 'b', 'c'), ('x', 'y', 'z'), ('1', '2', '3')] instead of doing something like this: for item in collection: i1 = item[0] i2 = item[1] i3 = item[2] # logic or something like this: for item in collec...
The preprocessor is an important part of the compiler. It edits the source code, cutting some bits out, changing others, and adding other things. In source files, we can include preprocessor directives. These directives tells the preprocessor to perform specific actions. A directive starts with a ...
This is a simple Simulink model where we can easily generate a signal and connect it to the scope. As this example shows anyone without knowledge of programming can easily work with the model, change its parameters and see the effect on the output.
Scala packages should follow the Java package naming conventions. Package names are written in all lower case to avoid conflict with the names of classes or interfaces. Companies use their reversed Internet domain name to begin their package names—for example, io.super.math
Detailed instructions on getting nutch set up or installed.
// How many Items does a Sales Order have... // ... if we're in the context of a Sales Order record var itemCount = nlapiGetLineItemCount("item"); // ... or if we've loaded the Sales Order var order = nlapiLoadRecord("salesorder", 123); var itemCount = order.getLineItemC...
// Working with Sublists in Standard mode ... // ... if the record is in context: // Add item 456 with quantity 10 at the end of the item sublist var nextIndex = nlapiGetLineItemCount("item") + 1; nlapiSetLineItemValue("item", "item", nextIndex, 456); nlapiSetL...
// Adding a line item to the end of a sublist in Dynamic Mode... // ... if the record is in context: nlapiSelectNewLineItem("item"); nlapiSetCurrentLineItemValue("item", "item", 456); nlapiSetCurrentLineItemValue("item", "quantity", 10); nlapi...
// Which line has item 456 on it... // ... if we're in the context of a record var index = nlapiFindLineItemValue("item", "item", 456); if (index > -1) { // we found it... } else { // item 456 is not in the list } // ... or if we have a reference to the rec...
// How many lines in a sublist in SuiteScript 2.0... require(["N/record"], function (r) { var rec = r.load({ "type": r.Type.SALES_ORDER, "id": 123 }); // How many lines are on the Items sublist? var itemCount = rec.getLineCount...
// Working with a sublist in Standard Mode in SuiteScript 2.0... require(["N/record"], function (r) { var rec = r.create({ "type": r.Type.SALES_ORDER, "isDynamic": false }); // Set relevant body fields ... // Add line item 45...

Page 1143 of 1336