Tutorial by Examples: st

1. Enable Flat Categories and Products One of the top reasons of Magento speed issues with database read speed. To fasten the read speed of the database you should enable Flat Catalog. This will minify the number of database joins done when showing products and due to that the MySQL query complexit...
Sometimes we need to determine some aspects of the print request. We will call them attribute. Are examples of print request attributes: amount of copies (1, 2 etc), orientation (portrait or landscape) chromacity (monochrome, color) quality (draft, normal, high) sides (one-sided, two-sided e...
The problem statement is like if we are given two string str1 and str2 then how many minimum number of operations can be performed on the str1 that it gets converted to str2. Implementation in Java public class EditDistance { public static void main(String[] args) { // TODO Auto-generated ...
If we are given with the two strings we have to find the longest common sub-sequence present in both of them. Example LCS for input Sequences “ABCDGH” and “AEDFHR” is “ADH” of length 3. LCS for input Sequences “AGGTAB” and “GXTXAYB” is “GTAB” of length 4. Implementation in Java public class LC...
Given 2 string str1 and str2 we have to find the length of the longest common substring between them. Examples Input : X = "abcdxyz", y = "xyzabcd" Output : 4 The longest common substring is "abcd" and is of length 4. Input : X = "zxabcdezy", y = "y...
This example illustrates how Go's type system can be used to implement some unit system. package main import ( "fmt" ) type MetersPerSecond float64 type KilometersPerHour float64 func (mps MetersPerSecond) toKilometersPerHour() KilometersPerHour { return KilometersPer...
The cursor builds on top of and depends on the raycaster component. If we want to customize the raycasting pieces of the cursor, we can do by changing the raycaster component properties. Say we want set a max distance, check for intersections less frequently, and set which objects are clickable: &l...
To fix entities onto the camera such that they stay within view no matter where the user looks, you can attach those entities as a child of the camera. Use cases might be a heads-up display (HUD). <a-entity camera look-controls> <a-entity geometry="primitive: plane; height: 0.2; wi...
A convenient way to package your application is to write the scripts in your packages.json file and run them with the npm run command { "name": "AppName", "productName": "AppName", "version": "0.1.1", "main": ...
Detailed instructions on getting google-cloud-dataflow set up or installed.
##= #= Service::State # # USAGE: # ${Service::State} "NAME" /DISABLEFSR $0 $1 # # ::State = The service's status is returned. # NAME = The Service name # /DISABLEFSR = Disables redirection if x64. Use "" to skip. # $0 = Return after call...
##= #= Service::Start # # USAGE: # ${Service::Start} "NAME" /DISABLEFSR $0 $1 # # ::Start = Start a service. # NAME = The Service name # /DISABLEFSR = Disables redirection if x64. Use "" to skip. # $0 = Return after call # $1 ...
##= #= Service::Stop # # USAGE: # ${Service::Stop} "NAME" /DISABLEFSR $0 $1 # # ::Stop = Sends a STOP control request to a service. # NAME = The Service name # /DISABLEFSR = Disables redirection if x64. Use "" to skip. # $0 = Return aft...
You will need to install node.js - https://nodejs.org/en/ npm install -g @angular/cli - install the CLI by executing this command in the terminal ng new projectname - after executing this command in the terminal, you will create a new sub folder titled projectname in your current folder. cd pro...
Detailed instructions on getting nsurlsession set up or installed.
In this example, we take a sine curve plot and add more features to it; namely the title, axis labels, title, axis ticks, grid and legend. # Plotting tutorials in Python # Enhancing a plot import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2.0*np.pi, 101) y = np.sin(x) ...
Detailed instructions on getting indexeddb set up or installed.
Detailed instructions on getting vector set up or installed.
The problem statement is like if we are given two string str1 and str2 then how many minimum number of operations can be performed on the str1 that it gets converted to str2.The Operations can be: Insert Remove Replace For Example Input: str1 = "geek", str2 = "gesek" Ou...
Installing Typescript and running typescript compiler. To install Typescript Comiler npm install -g typescript To check with the typescript version tsc -v Download Visual Studio Code for Linux/Windows Visual Code Download Link Open Visual Studio Code Open Same Folde where you have in...

Page 352 of 369