No Mutual SSL
In this example, we might use the CA File (ca.pem) that you generated during the "How to configure a ReplicaSet to support TLS/SSL?" section. We will assume that the CA file is located in your current folder.
We will assume that your 3 nodes are running on mongo1:27017, mon...
Basic identifiers consist of letters, underscores and digits and must start with a letter. They are not case sensitive. Reserved words of the language cannot be basic identifiers. Examples of valid VHDL basic identifiers:
A_myId90
a_MYID90
abcDEf100_1
ABCdef100_1
The two first are equivalent ...
Quoting is important for string expansion in bash. With these, you can control how the bash parses and expands your strings.
There are two types of quoting:
Weak: uses double quotes: "
Strong: uses single quotes: '
If you want to bash to expand your argument, you can use Weak Quoting:
...
VHDL extended identifiers are delimited by backslashes (\) and can contain letters, underscores, digits, spaces and other special characters (see the Language Reference Manual for a complete definition of special characters). The sequence of characters between backslashes can be reserved words of th...
There are 2/3 options to connect components together in Talend. You should always try to use OnSubjob connectors. This saves a lot of headaches. You'll see from the examples why.
What happens when you mix the connection types / What is the execution order?
If
OnComponent
OnSubjob
Keep in mi...
Startup.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.E...
View Status:
php indexer.php status
Reindex All
php indexer.php reindexall
Reindex Specific Index
php indexer.php --reindex CODE (see list below)
List of Individual Codes
IndexCodeProduct Attributescatalog_product_attributeProduct Pricescatalog_product_priceCatalog URL Rewritescatalog_u...
using only the for <timeout> clause, it is possible to get an unconditional wait that lasts for a specific duration. This is not synthesizable (no real hardware can perform this behaviour so simply), but is frequently used for scheduling events and generating clocks within a testbench.
This e...
How to: CALL ANGULAR 2 HTML/JS COMPONENT FROM ASP.NET Core CONTROLLER:
We call the HTML instead return View()
return File("~/html/About.html", "text/html");
And load angular component in the html. Here we can decide if we want to work with same or diferent module. Depends o...
Latest Android Studio will create & integrate a Basic Widget to your Application in 2 steps.
Right on your Application ==> New ==> Widget ==> App Widget
.
It will show a Screen like below & fill the fields
Its Done.
It will create & integrate a basic HelloWorld Widget(I...
A single instance of Node.js runs in a single thread. To take advantage of multi-core systems the user will sometimes want to launch a cluster of Node.js processes to handle the load.
var cluster = require('cluster');
var numCPUs = require('os').cpus().length;
if (cluster...
Alfresco Share is one of the one part of the Alfresco as product- it's user interface on the Alfresco repository (platform), by default it is avaiable on <host>:<port>/share.
It is built on the Surf framework. The Surf framework was developed by Alfresco, but in
2009 Alfresco began wor...
Docker has announced following editions:
-Docker-ee (Enterprise Edition) along with Docker-ce(Community Edition) and Docker (Commercial Support)
This document will help you with installation steps of Docker-ee and Docker-ce edition in CentOS
Docker-ce Installation
Following are steps to instal...
Build an app.js with a simple data store:
app.get("/bookstore", function (req, res, next) {
// Your route data
var bookStore = [
{
title: "Templating with Pug",
author: "Winston Smith",
pages: 143,
y...
public function createCustomer($data , $token)//pass form data and token id
{
$customer=Customer::create(array(
"email"=>$data['email'],
"description" => $data['name'],
"source" => $token // obtained with Stripe.js
));
return $cus...
WebDriverException is a base Selenium-WebDriver exception that could be used to catch all other Selenium-WebDriver exceptions
To be able to catch exception it should be imported first:
from selenium.common.exceptions import WebDriverException as WDE
and then:
try:
element = driver.find_el...
all errors and exceptions, both custom and default, are handled by the Handler class in app/Exceptions/Handler.php with the help of two methods.
report()
render()
public function render($request, Exception $e)
{
//check if exception is an instance of ModelNotFoundException.
if ($e in...