Tutorial by Examples

Redis provides the SCAN command to iterate over the keys in the database matching a particular pattern. Redis supports glob style pattern matching in the SCAN command. The SCAN command provides a cursor-based iterator over the Redis keyspace. The iterative call sequence to SCAN starts with the us...
Detailed instructions on getting talend set up or installed.
The redis-py client provides two classes StrictRedis and Redis to establish a basic connection to a Redis database. The Redis class is provided for backwards compatibility and new projects should use the StrictRedis class. One of the recommended ways to establish a connection, is to define the con...
ICalculator.aidl // Declare any non-default types here with import statements interface ICalculator { int add(int x,int y); int sub(int x,int y); } AidlService.java public class AidlService extends Service { private static final String TAG = "AI...
file_unzip = 'filename.zip' unzip = zipfile.ZipFile(file_unzip, 'r') unzip.extractall() unzip.close()
file_untar = 'filename.tar.gz' untar = tarfile.TarFile(file_untar) untar.extractall() untar.close()
Generic type parameters are commonly defined at the class or interface level, but methods and (rarely) constructors also support declaring type parameters bound to the scope of a single method call. class Utility // no generics at the class level { @SafeVarargs public static <T> T ...
The VisibleExp property is a boolean expression, that determines if given tab is visible (when logical expression is TRUE) or hidden. You specify VisibleExp property for PXTab controls in Aspx page: <px:PXTabItem Text="Credit Card Processing Info" BindingContext="form" ...
Unlike the VisibleExp property, defined in Aspx, you manipulate AllowSelect property of a data view though BLC or BLC extension code. The AllowSelect property makes it possible to use more complex boolean expressions (in comparison to the VisibleExp property) and, if necessary, retrieve additional i...
Several commands allow you to work with Strings representing integer values. A user can set the integer value of a key using the command: SET intkey 2 The set command will create the key if necessary or update it if it already exists. The value of an integer key can be updated on the server us...
Note: The output.library and name (in DllPlugin) must be the same. const path = require('path'); const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const extractCSS = new ExtractTextPlugin('vendor.css'); const isDevelopment = process.env.NODE_E...
Note: manifest (in DllReferencePlugin) should reference path (defined in DllPlugin) const webpack = require('webpack'); const path = require('path'); const isDevelopment = process.env.NODE_ENV !== 'production'; const ExtractTextPlugin = require('extract-text-webpack-plugin'); const extractCSS...
Source : MSDN https://technet.microsoft.com/en-us/library/bb933993(v=sql.105).aspx
using Microsoft.AspNetCore.Http; using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Http.Internal; using Microsoft.AspNetCore.Http.Internal; public class LoggerMiddleware { private readonly Reques...
Starting JShell Before trying to start JShell, make sure your JAVA_HOME environment variable points to a JDK 9 installation. To start JShell, run the following command: $ jshell If all goes well, you should see a jshell> prompt. Exiting JShell To exit JShell, run the following command from...
Within JShell, you can evaluate Java expressions, with or without semicolons. These can range from basic expressions and statements to more complex ones: jshell> 4+2 jshell> System.out.printf("I am %d years old.\n", 421) Loops and conditionals are fine, too: jshell> for (int...
You can declare local variables within JShell: jshell> String s = "hi" jshell> int i = s.length Keep in mind that variables can be redeclared with different types; this is perfectly valid in JShell: jshell> String var = "hi" jshell> int var = 3 To see a list...
You can define methods and classes within JShell: jshell> void speak() { ...> System.out.println("hello"); ...> } jshell> class MyClass { ...> void doNothing() {} ...> } No access modifiers are necessary. As with other blocks, semicolons are require...
The DividerItemDecoration is a RecyclerView.ItemDecoration that can be used as a divider between items. DividerItemDecoration mDividerItemDecoration = new DividerItemDecoration(context, mLayoutManager.getOrientation()); recyclerView.addItemDecoration(mDividerItemDecoration); It su...
Here is a simple shortcut that runs the command upper_case when you press ctrl+u. { "keys": ["ctrl+u"], "command": "upper_case" } I've set the content of my keybindings like this, but it doesn't work! It's normal! It's because it has to be ...

Page 1195 of 1336