Tutorial by Examples

To define your own menu, create an XML file inside your project's res/menu/ directory and build the menu with the following elements: <menu> : Defines a Menu, which holds all the menu items. <item> : Creates a MenuItem, which represents a single item in a menu. We can also create a n...
Drupal console brings scaffolding to the Drupal ecosystem and makes it easy to generate a content entity. In most instances you will find it easier to work with a custom entity within a custom module. Step 1 : Generate a module vendor/bin/drupal generate:module Follow the prompts and create yo...
To list all the packages installed in ubuntu, type below command $ apt list --installed Output will show all the installed packages. Listing... Done accountsservice/trusty-updates,now 0.6.35-0ubuntu7.3 i386 [installed] acl/trusty,now 2.2.52-1 i386 [installed,automatic] acpid/trusty,...

ROM

library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity ROM is port( address : in std_logic_vector(3 downto 0); dout : out std_logic_vector(3 downto 0) ); end entity ROM; architecture RTL of ROM is type MEMORY_16_4 is array (0 to 15) ...
Detailed instructions on getting owin set up or installed.
Last In First Out (Stack) Memory library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity LIFO is generic( WIDTH : natural := 8; DEPTH : natural := 128 ); port( I_DATA : in std_logic_vector(WIDTH - 1 downto 0); --Input Data Line ...
A search request can be executed purely using a URI by providing request parameters. Not all search options are exposed when executing a search using this mode, but it can be handy for quick "curl tests". GET Index/type/_search?q=field:value Another useful feature provided is highlight...
#include <iostream> int main() { int value; std::cout << "Enter a value: " << std::endl; std::cin >> value; std::cout << "The square of entered value is: " << value * value << std::endl; return 0; }
Union find data structures provide the following operations: make_sets(n) initializes a union-find data structure with n singletons find(i) returns a representative for the set of element i union(i,j) merges the sets containing i and j We represent our partition of the elements 0 to n - 1 by...
The most basic implementation of a union-find data structure consists of an array parent storing the a parent element for every element of the structure. Following these parent 'pointers' for an element i leads us to the representative j = find(i) of the set containing i, where parent[j] = j holds....
If we do many merge operations on a union-find data structure, the paths represented by the parent pointers might be quite long. Path compression, as already described in the theory part, is a simple way of mitigating this issue. We might try to do path compression on the whole data structure after...
In our current implementation of merge, we always choose the left set to be the child of the right set, without taking the size of the sets into consideration. Without this restriction, the paths (without path compression) from an element to its representative might be quite long, thus leading to la...
$ sqoop import --connect jdbc:mysql://10.0.0.100/hadooptest --username hadoopuser -P --table table_name --hive-import --hive-table hive_table_name
There are 2 way of enabling internal debugging in log4net: Specify the log4net.Internal.Debug option in the application's config file Enable log4net's internal debug programmatically Specify the log4net.Internal.Debug option in the application's config file This is the preferred method to en...
Some of the log4net appenders are buffered appenders. These appenders will only log when a certain amount of messages are logged. Some samples are the SmtpAppender, RemotingAppender or the AdoNetAppender. These appenders have a setting BufferSize: <bufferSize value="100" /> This ...
If you do not see any logging, you can check if Configure() is called in your application. The easiest way is to add it as an attribute to your assembly: [assembly: log4net.Config.XmlConfigurator(Watch = true)] Then you do not have to add log4net.Config.XmlConfigurator.Configure() anywhere in y...
If you have a file appender, make sure you are writing to a location where the user is allowed to create and update the files. If not the logging will fail. You can check this when you have internal debugging enabled.
This is shortest, easiest and most commonly used method. Unfortunately, it has one major limitation - cannot be used on searches with more than 4000 results (rows). // Assume that 'N/search' module is included as 'search' var s = search.create({ type : search.Type.TRANSACTIO...
In order to use getRange for handling the large number of results, we will have to consider the following: getRange has 2 parameters: start and end. Always positive, always (start < end) start is the inclusive index of the first result to return end is the exclusive index of the last result...
PagedData is an object, returned by the Search.runPaged(options) method. It works exactly as the UI searches do. PagedData object contains 2 important properties, that you can see on the right side of results header in search results page in Netsuite UI: count (the total number of the results) p...

Page 1301 of 1336