Tutorial by Examples: a

Login to your administration area and go to – System > Cache Management Next, click on the Select All link Finally, make sure the Actions is set to Enable and click submit Disable Error Logging Login to your administration area and go to – System > Configuration > Developer Under ...
The task is to find the length of the longest subsequence in a given array of integers such that all elements of the subsequence are sorted in ascending order. For example, the length of the longest increasing subsequence(LIS) for {15, 27, 14, 38, 26, 55, 46, 65, 85} is 6 and the longest increasing ...
Cards are a great way to display important pieces of content, and are quickly emerging as a core design pattern for apps. They're are a great way to contain and organize information, while also setting up predictable expectations for the user. With so much content to display at once, and often so li...
Controller::renderAjax() method can be used to respond to an Ajax request. This method is similar to renderPartial() except that it will inject into the rendering result with JS/CSS scripts and files which are registered with the view Assume we have login form in a view file: <?php use yii\hel...
Given a string what is the longest palindromic subsequence(LPS) of it? Let's take a string agbdba. The LPS of this string is abdba of length 5. Remember, since we're looking for subsequence, the characters need not to be continuous in the original string. The longest palindromic substring of the seq...
In order to search for packages in the databse, searching both in packages' names and descriptions: pacman -Ss string1 string2 ... To install a single package or list of packages (including dependencies), issue the following command: sudo pacman -S package_name1 package_name2 ... source
This Documentation is a small summary of the offical one Prerequisites Your PC must be running a 64-bit version of Windows 10 Anniversary Update build 14393 or later To find your PC's CPU architecture and Windows version/build number, open Settings>System>About. Look for the OS Build ...
This chapter describes how to set up a Docker Container with Jenkins inside, which is capable of sending Docker commands to the Docker installation (the Docker Daemon) of the Host. Effectively using Docker in Docker. To achieve this, we have to build a custom Docker Image which is based on an arbitr...
Given coins of different denominations and a total, in how many ways can we combine these coins to get the total? Let's say we have coins = {1, 2, 3} and a total = 5, we can get the total in 5 ways: 1 1 1 1 1 1 1 1 2 1 1 3 1 2 2 2 3 The problem is closely related to knapsack problem. The o...
Given coins of different denominations and a total, how many coins do we need to combine to get the total if we use minimum number of coins? Let's say we have coins = {1, 5, 6, 8} and a total = 11, we can get the total using 2 coins which is {5, 6}. This is indeed the minimum number of coins require...
This tag is a duplicate of playframework. Please post any content that you would post here in that tag, with the version set to “2.0”
You can configure Mail by just adding/changing these lines in the app's .ENV file with your email provider login details, for example for using it with gmail you can use: MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 [email protected] MAIL_PASSWORD=yourPassword MAIL_E...
Using the library archive Download the JAR and add it to the classpath for your Java project Using a build tool If you are using a build tool like Maven or Gradle: Maven <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> ...
$a1 = array("red","green"); $a2 = array("blue","yellow"); print_r(array_merge($a1,$a2)); /* Array ( [0] => red [1] => green [2] => blue [3] => yellow ) */ Associative array: $a1=array("a"=>"red","b"=&...
The caching problem arises from the limitation of finite space. Lets assume our cache C has k pages. Now we want to process a sequence of m item requests which must have been placed in the cache before they are processed.Of course if m<=k then we just put all elements in the cache and it will wo...
This is an example of a web-socket client in javascript. It: Connects to a live demo server. Sends a message. Receives message(s). Disconnects after an interval. var mySocket = null; var serverUrl = 'wss://echo.websocket.org'; // wss: is ws: but using SSL. var oWebSocket = window...
We can now write the following HelloJoda program! import org.joda.time.LocalDate; public class HelloJoda { public static void main(String [] args) { LocalDate today = LocalDate.now(); System.out.println("Hello Joda! Today's date is: " + today); } } Whi...
Adding the aurelia-configuration to a cli application sometimes produces a build error. This is caused by a missing dependency so we simply add the dependency to the build bundle. Try the following: npm install deep-extend --save npm install aurelia-configuration --save Now add the followi...
The official site of angular-ui-bootstrap is here. Follow the below instructions in order. The list of files that are to be downloaded is in this link Include all references in this order. angular.js angular-animate.js ui-bootstrap-tpls-2.2.0.js (Reference to UI Bootstrap ) angular-sanitiz...
Two-element tuples (,) is an example of a type that has a Bifunctor instance. instance Bifunctor (,) where bimap f g (x, y) = (f x, g y) bimap takes a pair of functions and applies them to the tuple's respective components. bimap (+ 2) (++ "nie") (3, "john") --> (5,...

Page 850 of 1099