Some very simple and low cost hardware devices, like sensors, use a one-bit communication protocol. A single bi-directional data line connects the device to a kind of micro-controller. It is frequently pulled up by a pull-up resistor. The communicating devices drive the line low for a pre-defined du...
In the File menu, choose the 'Import...' option.
This opens up the Import dialog box, which asks for the type of project/file you want to import. For a basic Java project, choose 'Existing Projects into Workspace' from the 'General' folder.
Next, select the directory where the project(s) is lo...
I won't repeat it all here: "Application Default Credentials provide a simple way to get authorization credentials for use calling Google APIs."
If you can use Application Default Credentials, do.
There is an extra step you will need to perform the before first using Application Default ...
You will need to be able to run Python.
Python is available for Linux, Mac OS X and Windows.
I recommend pip and virtualenv.
Pip is the recommend tool for installing Python packages.
The Google Cloud API Libraries are available as pip packages.
A Virtual Environment (aka "virtualenv")...
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...
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...
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...
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...
Note: These instructions are targeted at .NET Core 1.0.4 & 1.1.1 SDK 1.0.1 and higher.
When using binary archives to install, we recommend the contents be extracted to /opt/dotnet and a symbolic link created for dotnet. If an earlier release of .NET Core is already installed, the directory and ...
An anonymous, inlined function defined with lambda. The parameters of the lambda are defined to the left of the colon. The function body is defined to the right of the colon. The result of running the function body is (implicitly) returned.
s=lambda x:x*x
s(2) =>4
Map takes a function and a collection of items. It makes a new, empty collection, runs the function on each item in the original collection and inserts each return value into the new collection. It returns the new collection.
This is a simple map that takes a list of names and returns a list of the...
Reduce takes a function and a collection of items. It returns a value that is created by combining the items.
This is a simple reduce. It returns the sum of all the items in the collection.
total = reduce(lambda a, x: a + x, [0, 1, 2, 3, 4])
print(total) =>10
Filter takes a function and a collection. It returns a collection of every item for which the function returned True.
arr=[1,2,3,4,5,6]
[i for i in filter(lambda x:x>4,arr)] # outputs[5,6]
Create a new bot in Azure following this documentation
Login into Azure and from Intelligence + Analytics category, select Bot Service and provide required information.
Enter the required details for the bot, they are identical to the required details of an App Service,for example App Name, Subs...