Once you have node.js installed on your system, just follow the procedure below to get a basic web server running with support for both HTTP and HTTPS!
Step 1 : Build a Certificate Authority
create the folder where you want to store your key & certificate :
mkdir conf
go to tha...
This example uses a separate element to edit bound data to the row-detail template.
Working jsBin
<!DOCTYPE html>
<html>
<head>
<base href="https://polygit.org/polymer+:master/iron-data-table+Saulis+:master/components/">
<link rel="import&q...
Once you have a query, you can do more with it than just iterating the results in a for loop.
Setup:
from datetime import date
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
name = Column(Text, nullable=False)
birthday = Column(Date)
# ...
Octave commands can be saved in a file and evaluated by loading the file using source.
For instance, let hello.m be the text file containing two lines (the first line is a comment)
# my first Octave program
disp('Hello, World!')
If you type source hello.m at an Octave command prompt you will g...
Create a 2x3 matrix. Each row is a comma-separated list of elements. Rows are separated by a semicolon.
A = [1, 2, 3; 4, 5, 6]
# A =
#
# 1 2 3
# 4 5 6
Sum of two matrices
B = [1, 1, 1; 1, 1, 1]
# B =
#
# 1 1 1
# 1 1 1
A+B
# ans =
#
# 2 3 4
# ...
While the JavaScript tracking snippet described above ensures the script will be loaded and executed asynchronously on all browsers, it has the disadvantage of not allowing modern browsers to preload the script.
The alternative async tracking snippet below adds support for preloading, which will pr...
When you add either of these tracking snippets to your website, you send a pageview for each page your users visit. Google Analytics processes this data and can infer a great deal of information including:
The total time a user spends on your site.
The time a user spends on each page and in what o...
The simplest form of wait statement is simply:
wait;
Whenever a process executes this it is suspended forever. The simulation scheduler will never resume it again. Example:
signal end_of_simulation: boolean := false;
...
process
begin
clock <= '0';
wait for 500 ps;
clock <= '1...
A process with a sensitivity list cannot also contain wait statements. It is equivalent to the same process, without a sensitivity list and with one more last statement which is:
wait on <sensitivity_list>;
Example:
process(clock, reset)
begin
if reset = '1' then
q &l...
It is possible to omit the on <sensitivity_list> and the for <timeout> clauses, like in:
wait until CONDITION;
which is equivalent to:
wait on LIST until CONDITION;
where LIST is the list of all signals that appear in CONDITION. It is also equivalent to:
loop
...
AWS Codecommit can be used as storage for private GIT repositories. The setup involves a few steps, assuming you have a valid AWS account already.
Sign up for AWS Codecommit. Currently only region us-east-1 is available.
Create a IAM user who will have access to the repositories, eg codecommit-u...
Atlassian SourceTree is a visual tool for Mac and Windows to manage source code repositories. This can be used with Codecommit as a remote repository but need to add an extra configuration option to the local repository in SourceTree to be able to connect with codecommit.
First, setup Codecommit fo...
DECLARE
-- declare a variable
message varchar2(20);
BEGIN
-- assign value to variable
message := 'HELLO WORLD';
-- print message to screen
DBMS_OUTPUT.PUT_LINE(message);
END;
/
Full instructions can be found here.
Install the JDK.
Set the Java Environment variable.
export JAVA_HOME=/usr/local/java/jdk1.8.0_102
echo $JAVA_HOME
/usr/local/java/jdk1.8.0_102
export PATH=$PATH:$JAVA_HOME/bin/
echo $PATH
...:/usr/local/java/jdk1.8.0_102/bin/
Install Scala....
public static final int PLACE_AUTOCOMPLETE_FROM_PLACE_REQUEST_CODE=1;
public static final int PLACE_AUTOCOMPLETE_TO_PLACE_REQUEST_CODE=2;
fromPlaceEdit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
...
At it's most basic level, acceptance testing is essentially black-box testing, which is fundamentally concerned with testing inputs and outputs of a closed system. As such, there are three essential features to acceptance testing: locating a resource, reading data, and writing data. When it comes to...