Tutorial by Examples: f

Just use default DividerItemDecoration class : NavigationView navigationView = (NavigationView) findViewById(R.id.navigation); NavigationMenuView navMenuView = (NavigationMenuView) navigationView.getChildAt(0); navMenuView.addItemDecoration(new DividerItemDecoration(context,DividerItemDecoration....
HTML : <li class="item" ng-repeat="schedule in Schedules | filter:scheduleSearch | limitTo:numberOfItemsToDisplay"> Display some data </li> <ion-infinite-scroll on-infinite="addMoreItem()" ng-if="Schedules.length > numberOfItemsToDisplay&...
Open your jenkins instance script console http://yourJenkins:port/script following is an example for how to get information about a sepcific job. copy the code to the console, change the jobName to the required job and click "Run". /*This script shows how to get basic information about a...
Alfresco is ECM (enterprise content management) system, based on java frameworks and javascript. Alfresco (as a "repository" is the base core of the Alfresco as a product). It provides eg. encrypted content store, specific permissions settings, content types with specific properties (like...
The function takes the argument of the current node index, adjacency list (stored in vector of vectors in this example), and vector of boolean to keep track of which node has been visited. void dfs(int node, vector<vector<int>>* graph, vector<bool>* visited) { // check whethe...
Lets take fb login as testcase,will see how to capture and export as JAVA class Click on the selenium IDE icon on top right corner of your browser Enter the url https://facebook.com Click on Record button , as shown in the screenshot Export the usecase as java file Save the file in you lo...
Installation : Open Firefox browser.click on menu and select Add-ons Search for selenium IDE Install selenium IDE Add-on in firefox. Restart the Firefox. If the selenium IDE is installed successfully then you can see the icon on top of the browser By clicking on thi...
A Facade provides a unified, high-level interface to subsystem interfaces. This allows for simpler, safer access to the more general facilities of a subsystem. The following is an example of a Facade used to set and retrieve objects in UserDefaults. enum Defaults { static func set(_ object:...
Right click in MAIN folder > New > Folder > Assets Folder. Assets folder will be under MAIN folder with the same symbol as RES folder. In this example I put a font file.
public class TabAdapter extends FragmentPagerAdapter { CustomTypefaceSpan fonte; List<Fragment> fragments = new ArrayList<>(4); private String[] icons = {"\ue001","\uE002","\uE003","\uE004"}; public TabAdapter(FragmentManager fm, CustomType...
You can use cell references without row numbers. For instance, the formula =sum(C:C) will add up all the values in column C of the active sheet. This is helpful when you are adding and removing rows but don't want to update your formulas each time. There are some instances when using this whole co...
Why do we need it? Content extension helps us to create custom user interface upon notification expanasion. You use this framework to define an extension that receives the notification data and provides the corresponding visual representation. Your extension can also respond to custom actions asso...
Pack your com.stackoverflow.${whatever} clases on a jar called stackoverflow.jar Create folder com/stackoverflow/main on ${WILDFLY_HOME}/modules Put the jar on the last dir Create a file called module.xml with the following content: <?xml version="1.0" encoding="UTF-8"...
For some reason you develop a new version of com.stackoverflow (say version 1.1), then you should: Create folder com/stackoverflow/1.1 on ${WILDFLY_HOME}/modules Put the new jar on last dir Create file module.xml on last dir with the following content <?xml version="1.0" encodin...
A common mistake is to forget surrounding compound function arguments with parentheses, leading to type errors. # string_of_int 1+1;; Error: This expression has type string but an expression was expected of type int This is because of the precedence. In fact, the above evaluates to # (string...
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()
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" ...
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...

Page 408 of 457