Tutorial by Examples: ect

After installing Tomcat with apt-get on Ubuntu xx.xx, Tomcat creates and uses these directories: $cd /etc/tomcat6/ ├── Catalina │   └── localhost │   ├── ROOT.xml │   └── solr.xml -> ../../../solr/solr-tomcat.xml ├── catalina.properties ├── context.xml ├── logging.properties ├── ...
Given the following project structure include\ myHeader.h src\ main.cpp CMakeLists.txt the following line in the CMakeLists.txt file include_directories(${PROJECT_SOURCE_DIR}/include) adds the include directory to the include search path of the compiler for all targets defined in thi...
You need Node Package Manager to install the project dependencies. Download node for your operating system from Nodejs.org. Node Package Manager comes with node. You can also use Node Version Manager to better manage your node and npm versions. It is great for testing your project on different node...
Add the following dependency to your pom.xml file: <dependency> <groupId>com.couchbase.client</groupId> <artifactId>java-client</artifactId> <version>2.3.1</version> </dependency> You can check the maven repository for the latest version....
String bucketName = "default"; String bucketPassword = ""; List<String> nodes = Arrays.asList("127.0.0.1"); // IP or hostname of one or more nodes in the cluster Cluster cluster = CouchbaseCluster.create(nodes); Bucket bucket = cluster.openBucket(bucketName,...
Apache 2.4 provides the following 6 directives via the mod_rewrite module: RewriteBase RewriteCond RewriteEngine RewriteMap RewriteOptions RewriteRule The following directives, available previously in Apache 2.2 have been removed: RewriteLock RewriteLog RewriteLogLevel All the dir...
Select following from Menu : File -> New... -> Other... click on "Next >" Enter Project name required for the project, in following dialog box : click on "Next >" If you want to run the project in standalone mode then, Select "Yes" for "Would ...
The short story Whith VHDL 2008 and if the type of the clock is bit, boolean, ieee.std_logic_1164.std_ulogic or ieee.std_logic_1164.std_logic, a clock edge detection can be coded for rising edge if rising_edge(clock) then if clock'event and clock = '1' then -- type bit, std_ulogic or std_logic ...
from neo4jrestclient.client import GraphDatabase db = GraphDatabase("http://localhost:7474", username="neo4j", password="mypass")
<?php get_template_part( 'dir/foo' ); ?> Includes ../wp-content/themes/your-theme-slug/dir/foo.php
<?php get_template_part( 'dir/foo', 'bar' ); ?> Includes ../wp-content/themes/your-theme-slug/dir/foo-bar.php
CONNECT TO SAMPLEDB; From the command line (db2clp, terminal, db2cmd) you can write: db2 CONNECT TO SAMPLEDB
SELECT 'HELLO WORLD' FROM SYSIBM.SYSDUMMY1; 1 ----------- Hello World 1 record(s) selected. "The SYSIBM.SYSDUMMY1 table contains one row. The table is used for SQL statements in which a table reference is required, but the contents of the table are not important"...
SQLite.NET is an open source library which makes it possible to add local-databases support using SQLite version 3 in a Xamarin.Forms project. The steps below demonstrate how to include this component in a Xamarin.Forms Shared Project: Download the latest version of the SQLite.cs class and add...
If you have a directory with existing source files, you can use qmake with the -project-option to create a project file. Let's assume, the folder MyProgram contains the following files: main.cpp foo.h foo.cpp bar.h bar.cpp subdir/foobar.h subdir/foobar.cpp Then by calling qmake -projec...
Using a Virtual Directory or Nested Application in IIS is a common scenario and most likely one that you'll want to take advantage of when using IISNode. IISNode doesn't provide direct support for Virtual Directories or Nested Applications via configuration so to achieve this we'll need to take adv...
Storage options in Azure provide a "REST" API (or, better, an HTTP API) The Azure SDK offers clients for several languages. Let's see for example how to initialize one of the storage objects (a queue) using the C# client libraries. All access to Azure Storage is done through a storage ac...
To create a new collection "class": var Books = Backbone.Collection.extend({ // books will be sorted by title comparator: "title", initialize: function(models, options) { options = options || {}; // (Optional) you can play with the models her...
We can avoid providing direct access to resource intensive constructors, like for databases. public class DbConnection { private static final int MAX_CONNS = 100; private static int totalConnections = 0; private static Set<DbConnection> availableConnections = new HashSet<DbConnectio...
Say you have the following model: public class foo { [Required] public string Email { get; set; } [Required] public string Password { get; set; } [Required] public string FullName { get; set; } } But you want to exclude FullName from the modelvalidation becaus...

Page 62 of 99