Tutorial by Examples: arc

You may wish to update your custom setting's during the execution of your code, to switch off validation or workflow rules. In the below code, I have created a Schedulable Apex Class which will update the Close Date of any Opportunities whose Close Date is less than or equal to 6 days from the curr...
In contrasto to the Singleton, the Monostate is suitable to be inherited to extend its functionalities, as long as member methods are not static. It follows a minimal example in C++: struct Settings { virtual std::size_t width() const noexcept { return width_; } virtual std::size_t heigh...
This is a simple example to search in Google. It containt two parts, Feature File Step Definition File Am not going into much details here as the code itself is self explanatory. Feature File Feature:Google Key word search @mytag Scenario: search Spec Flow in Google search bar Given...
Basic architecture examples on how development for embedded systems works (i.e. IDEs, cross-compiling, downloading, in-line debugging, JTAG,...) and what would be the minimum requirements for starting. It would be worth mentioning different approaches and platforms from begginers-higher level to ad...
Use the tar (tape archive) command to compress your files and folders. It is similar to creating .ZIP files in Windows environment. Syntax: tar -zcvf <output tar file> <source file> Example: tar -zcvf outputfile.tar.gz source file Here’s what those switches actually mean: -c: Cr...
Inbound filter is applied when item is added to the search index and allows to specify whether item is included to the index or not. Examples when inbound filter can be used - do not include standard values and previous versions of the item in the index. Inbound filters are set in configuration: ...
Outbound filter can be used to filter the search results. One of the examples of outbound filter usage is removing items which user doesn't have access to from search results. Outbound filters are set in the configuration: <indexing.filterIndex.outbound> <processor type="Sitecore....
By default, the full indexed document is returned as part of all searches. This is referred to as the source (_source field in the search hits). If we don’t want the entire source document returned, we have the ability to request only a few fields from within source to be returned, or we can set _so...
In order to run Elasticsearch, a Java Runtime Environment (JRE) is required on the machine. Elasticsearch requires Java 7 or higher and recommends Oracle JDK version 1.8.0_73. So, be sure if you have Java in your system. If not, then follow the procedure: # Install wget with yum yum -y install w...
require(['N/search'], function(SEARCHMODULE){ var savedSearchId = 'customsearch_mySavedSearch'; var mySearch = SEARCHMODULE.load(savedSearchId); var resultset = mySearch.run(); var results = resultset.getRange(0, 1000); for(var i in results){ var result = results[i]...
require(['N/search'], function(SEARCHMODULE){ var type = 'transaction'; var columns = []; columns.push(SEARCHMODULE.createColumn({ name: 'internalid' })); columns.push(SEARCHMODULE.createColumn({ name: 'formulanumeric', formula: '{quantity}-{...
While in the sources tab use CTRL+O (⌘+O for Mac) to search by filename.
Insert the following function call within your JavaScript when searching within your website to track how visitors are using your internal search features. In this example, the Event Action filters is a comma-delimited list of search filter name/value pairs, and the Event Label orderedBy is a strin...
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. //Declare the search bar and add it to the header of the table searchBar = new UISearchBar(); searchBar.SizeToFit(); ...
With this line we will install all the necessary packages in one step, and the last update: pacman -Syu apache php php-apache mariadb HTTP Edit /etc/httpd/conf/httpd.conf Change ServerAdmin [email protected] as you need. The folder of the WEB Pages by default is ServerRoot "/etc/httpd&q...
... "angularCompilerOptions": { "genDir": "./ngfactory" } ... This is the output folder of the compiler.
from the root of your project ./node_modules/.bin/ngc -p src where src is where all your angular 2 code lives. This will generate a folder called ngfactory where all your compiled code will live. "node_modules/.bin/ngc" -p src for windows
If you want to setup quickly elasticsearch you can use the searchkick gem : gem 'searchkick' Add searchkick to models you want to search. class Product < ActiveRecord::Base searchkick end Add data to the search index. Product.reindex And to query, use: products = Product.search &...
To create new archive open zipfile with write mode. import zipfile new_arch=zipfile.ZipFile("filename.zip",mode="w") To add files to this archive use write() method. new_arch.write('filename.txt','filename_in_archive.txt') #first parameter is filename and second parameter i...
On Unix-like operating systems, it is possible to use the pkg-config program to find and configure packages that provides a <package>.pc file. In order to use pkg-config, it is necessary to call include(FindPkgConfig) in a CMakeLists.txt. Then, there are 2 possible functions: pkg_search_mo...

Page 8 of 13