Tutorial by Examples: n

Sitecore Instance Manager is open-source tool which is used for managing the local park of Sitecore instances. You can install, locate, maintain, reinstal or delete Sitecore products. It also helps you install your sitecore instance with any sitecore packages, modules and only thing you need to do i...
You can use Modules to build more complex classes through composition. The include ModuleName directive incorporates a module's methods into a class. module Foo def foo_method puts 'foo_method called!' end end module Bar def bar_method puts 'bar_method called!' end end ...
A link to any text by using typolink object lib.link = TEXT lib.link { value = Here is link text typolink { #You can give page uid or any external url here parameter = http://www.example.com/ #Target of link extTarget = _blank ...
Vectors can be used as a 2D matrix by defining them as a vector of vectors. A matrix with 3 rows and 4 columns with each cell initialised as 0 can be defined as: std::vector<std::vector<int> > matrix(3, std::vector<int>(4)); C++11 The syntax for initializing them using initia...
When creating a UIView subclass, intrinsic content size helps to avoid setting hardcoded height and width constraints a basic glimpse into how a class can utilize this class ImageView: UIView { var image: UIImage { didSet { invalidateIntrinsicContentSize() } ...
CREATE TABLE new_table_name LIKE existing_table_name;
What you need is to get an entitlements file so the app can access your iCloud and write records using CloudKit. Follow the steps to grant access to iCloud from your app: 1- Select the project in the Project Navigator, and then open the General tab. 2- In the Identity section, set your developer ...
All the records create using CloudKit-related code can be previewed, edited and even removed in CloudKit Dashboard. To access CloudKit Dashboard, go here. There are several parts in the dashboard: Record Types (which will be discussed later) Security Roles (which is where you can set databases ...
To save date to CloudKit, we must make: A CKRecordID (the key of your unique record) A CKRecord (which includes data) Making a record key To ensure that every new record identifier is unique, we use the current timestamp, which is unique. We get the timestamp using NSDate's method timeInter...
If static_cast is used to convert a pointer (resp. reference) to base class to a pointer (resp. reference) to derived class, but the operand does not point (resp. refer) to an object of the derived class type, the behavior is undefined. See Base to derived conversion.
c++11 The alignment requirement of a type can be queried using the alignof keyword as a unary operator. The result is a constant expression of type std::size_t, i.e., it can be evaluated at compile time. #include <iostream> int main() { std::cout << "The alignment requiremen...
Check this out: :help holy-grail
If you look for the help section of | or bar : :h bar you can see: bar | To screen column [count] in the current line. exclusive motion. Ceci n'est pas une pipe. This is a reference to the painti...
Search for :h UserGettingBored *UserGettingBored* UserGettingBored When the user presses the same key 42 times. Just kidding! :-)
Instead of looking for the fork help, you can search for the spoon help: :h spoon fork spoon For executing external commands fork()/exec() is used when possible, otherwise system() is used, which is a bit slower. The output of ":version...
Check this out: :Ni! Monty Python and the Holy Grail
if ([[dataObject objectForKey:@"yourVariable"] isEqualToString:"Hello World"]) { return YES; } else { return NO; } You can query values stored using KVC quickly and easily, without needing to retrieve or cast these as local variables.
This method allows a command to be sent to Cmd.exe, and returns the standard output (including standard error) as a string: private static string SendCommand(string command) { var cmdOut = string.Empty; var startInfo = new ProcessStartInfo("cmd", command) { ...
C++14 C++14 allows to use auto in lambda argument auto print = [](const auto& arg) { std::cout << arg << std::endl; }; print(42); print("hello world"); That lambda is mostly equivalent to struct lambda { template <typename T> auto operator ()(const...
Following are the page life cycle events: PreInit - PreInit is the first event in page life cycle. It checks the IsPostBack property and determines whether the page is a postback. It sets the themes and master pages, creates dynamic controls, and gets and sets profile property values. This event ca...

Page 552 of 1088