Tutorial by Examples: l

First-time visitors to any web page has to make several HTTP requests. By using the “Expires” header you make the components of the requests cacheable. This avoids unnecessary HTTP requests on subsequent page views. You want to find the area of the .htaccess file that starts with <IfModulemod_ex...
The model Magento uses to store customer and product data results in longer than average SQL queries and more reads. Enabling the Flat Catalog option for Categories and Products will merge product data into one table, therefore improving performance. Login to your administration area and go to – Sy...
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 ...
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 ...
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...
You can also use this code to setup an LED with a button switch with a pull up resistor, this could preferably be with the next step after setting up the intial LED controller int buttonState = 0; // variable for reading the pushbutton status void setup() { // initialize the LED pin as an ...
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> ...
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...
It's also possible to add multiple object types to a Static Dispatch function. fn mammal_speak<T: Person + Dog>(mammal: &T) { println!("{0}", mammal.speak()); } fn main() { let person = Person {}; let dog = Dog {}; mammal_speak(&person); mammal...
Preface Instead of starting with a formal definition, the goal is to approach these topic via a row of examples, introducing definitions along the way. The remark section Theory will consist of all definitions, theorems and propositions to give you all informations to faster look up specific aspect...

Page 661 of 861