Tutorial by Examples: 3

Enable and upgrade setup php bin/magento module:enable YKM_Custom php bin/magento setup:upgrade Disable the Module php bin/magento module:disable YKM_Custom Another One - module uninstall script is executed and whole module gets deleted afterwards. Only modules installed through Composer ca...
// 3. Covariant smart pointer result (automated cleanup). #include <memory> using std::unique_ptr; template< class Type > auto up( Type* p ) { return unique_ptr<Type>( p ); } class Top { private: virtual Top* virtual_clone() const = 0; public: unique_ptr&l...
The summation 1/1 + 1/2 + 1/3 + 1/4 + ... + 1/n is equal to the nth harmonic number, denoted Hn. The nth harmonic number obeys the inequalities ln (n + 1) ≤ Hn ≤ (ln n) + 1 and therefore Hn = Θ(log n). The harmonic numbers often arise in the analysis of algorithms, with randomized quicks...
Downloading the Bundle: The easiest way to download the required GTK Bundle is to search and download it using this link: https://git.gnome.org/browse/gtk+ (GNOME GIT Repository) GNOME GIT Repository provides the bundles for different versions and you can easily find the desired version by scrolli...
Paste this code into an empty HTML file and run it in your browser. <!DOCTYPE html> <body> <script src="https://d3js.org/d3.v4.js"></script> <!-- This downloads d3 library --> <script> //This code will visualize a data set as a simple scatt...
HTML: <div ng-app="myApp" ng-controller="Controller"> <some-chart data="data"></some-chart> </div> Javascript: angular.module('myApp', []) .directive('someChart', function() { return { restrict: 'E', scope: {dat...
Requirements: PHP 5.6.0 or greater mbstring PHP extension (default works in WAMP/XAMPP, if not then enable it) intl PHP extension (Available in WAMP/XAMPP, you have to enable it from php.ini) CakePHP will run on a variety of web servers such as nginx, LightHTTPD, or Microsoft IIS. Befor...
var express = require("express"), bodyParser = require("body-parser"), server = express(); //body parser for parsing request body server.use(bodyParser.json()); server.use(bodyParser.urlencoded({ extended: true })); //temperary store for `item` in memory var it...
In order to send messages to the queue, we will write a C# console application using Visual Studio. Create a console application Launch Visual Studio and create a new Console application. Add the Service Bus NuGet package Right click on the newly created project and select Manage NuGet P...
Configuring a private registry to use an AWS S3 backend is easy. The registry can do this automatically with the right configuration. Here is an example of what should be in your config.yml file: storage: s3: accesskey: AKAAAAAACCCCCCCBBBDA secretkey: rn9rjnNuX44iK+26qpM4cDEo...
let's assume we have three table which can be used for simple website with Tags. Fist table is for Posts. Second for Tags Third for Tags & Post relation fist table "videogame" idtitlereg_dateContent1BioShock Infinite2016-08-08.... "tags" table idname1yennefer2eliza...
twitter-bootstrap-3 has provided four different sizes of buttons Large button btn-lg Default button does not require any btn size Small button btn-sm Extra small button btn-xs <button type="button" class="btn btn-lg">Large button</button> <button type=...
The most common usage of a child theme is to override template parts. For example, a sidebar, if we have a theme with the following file at /themes/template/sidebar.php <?php /** * The sidebar containing the main widget area. * * @link https://developer.wordpress.org/themes/basics/templa...
An AWS-Lambda function can be attached to a certain bucket event. Whenever a file/folder is created or removed, an event can trigger lambda function execution. A simple Lambda function to print the name of an uploaded File This is a one class lambda project to print the name of an uploaded file. ...
In this example code we will create A blank Opengl Window using LWJGL 3.0+, this doesn't contain steps to create the project in your IDE Create a class name WindowManager that will contain all the boiler plate code for creating a opengl context window on screen WindowManager.java impor...
We install OpenCV 3.1.0 on Windows and get started. There are two ways to install OpenCV on windows. One is to download the installer and run it. Other is to build from source. This is the easiest way to install OpenCV and get started. OpenCV gives pre-build binaries to install on Windows here. Aft...
If you have an Ecto.Queryable, named Post, which has a title and an description. You can fetch the Post with title: "hello" and description : "world" by performing : MyRepo.get_by(Post, [title: "hello", description: "world"]) All of this is possible beca...
Go to Catalog > Products and Edit a product. Under the Links tab add the filters which apply to the product (e.g. Color > Blue). Apply to as many products as applicable.
!!! Container should be positioned relatively or absolutely $direction - top, bottom, left, right $margin - margin by the edge in $direction. For top and bottom direction - it's from left to right. For left and right - it's from top to bottom. $colors - first is a border color, second - is a back...
{ "Records": [ { "eventVersion": "2.0", "eventTime": "1970-01-01T00:00:00.000Z", "requestParameters": { "sourceIPAddress": "127.0.0.1" }, "s3": { &qu...

Page 5 of 11