BLCN532 Lab 1
Set up your development environment
V2.0
Introduction
This course introduces students to blockchain development for enterprise environments. Before you can develop software applications, you need to ensue your development environment is in place. That means you’ll need all the tools and infrastructure installed and configured to support enterprise blockchain software development projects.
In this lab you’ll set up your own Hyperledger Fabric development environment and install the course software from the textbook. When you finish this lab, you’ll have a working development environment and will be ready to start running and modifying blockchain applications.
The instructions in your textbook are for Mac and Linux computers. However, there is no guarantee that your installation of MacOS or Linux is completely compatible with the environment in which the commands from the textbook work properly. For that reason, I STRONGLY SUGGEST that you acquire an Ubuntu 16.04 Virtual Machine (VM) for your labs. Using an Ubuntu 16.04 VM will make the labs far easier to complete.
The instructions in this course’s labs assume that your computer runs the Windows operating system. If you run MacOS or Linux, you can get Vagrant and VirtualBox for those operating systems and follow the gist of the “Initial setup for Windows computers”.
Lab Deliverables:
To complete this lab, you must create a Lab Report file and submit the file in iLearn. The Lab Report file must be a Microsoft Word format (.docx), and have the filename with the following format:
BLCN532_SECTION_STUDENTID_LASTNAME_FIRSTNAME_Lab01.docx
· SECTION is the section number of your current course (2 digits)
· STUDENTID is your student ID number (with leading zeros)
· LASTNAME is your last name, FIRSTNAME is your first name
To get started, create a Microsoft Word document (.docx) with the correct filename for this lab. You’ll be asked to enter text and paste screenshots into the lab report file.
NOTE: All screenshots MUST be readable. Use the Ubuntu Screen Capture utility (see the lab video.) Make sure that you label each screenshot (i.e. Step 2.1.3) and provide screenshots in order. For commands that produce lots of output, I only want to see the last full screen when the command finishes. Provide FULL screenshots, NOT cropped images.
SECTION 1: Initial setup for Windows computers (Chapter 3)
Step 1.1: Install Oracle Virtualbox (Windows, Linux, MacOS)
Oracle Virtualbox is an open source virtualization environment that allows you to run multiple virtual machines and containers on a single personal computer. Virtualbox is free and it is easy to install.
In your favorite web browser, navigate to: https://www.virtualbox.org/ and click the “Download Virtualbox” button. Click the “Windows hosts” link to download the main installation executable. You should also click the “All supported platforms” under the “Extension Pack” heading to download extra software support for devices.
After you download the two files, double click each one to run the install procedure.
Step 1.2: Install Vagrant (Windows, Linux, MacOS)
Vagrant is a free virtual environment management utility. It makes the process of starting, stopping, and managing virtual machines easier. In your web browser, navigate to https://www.vagrantup.com/ then click the “Download” button, and click the version of the Windows executable you’d like to install. (Most of you should select the “64-bit” version.)
Once you download the install program, double-click the file you just downloaded to install Vagrant.
If you want more information on Vagrant and tips on getting the most out of the software, navigate to:
https://www.sitepoint.com/getting-started-vagrant-windows/ .
Step 1.3: Set up your Vagrant project
After installing all the pre-requisite pieces, you need to set up your Vagrant project. A Vagrant project defines your virtual machine environment and helps you organize your collection of VMs into a group that is easy to manage.
We’ll use the Windows PowerShell as our Windows command prompt environment. PowerShell is a very powerful command line interface that is available on all Windows computers.
To launch PowerShell, click the Windows key, type PowerShell, then click the Windows PowerShell menu entry. The figure below shows a portion of the Windows PowerShell command prompt window.
PowerShell uses your user’s home directory as its starting directory. In my case, C:\Users\micha is my home directory. For the rest of the lab, I’ll refer to this a %HOME%. Your %HOME% will be different.
1.3.1: Remove existing Vagrant projects
Follow these steps ONLY if you already have a previous Vagrant project you want to remove: (Assume the project you want to remove is located in the %HOME%\vagrant\Hyperledger directory.)
If you DO NOT have an existing Vagrant project that you need to remove, skip to section 1.3.2.
1. PS %HOME%\vagrant\Hyperledger> vagrant global-status
Note the id of the listed VM(s). You’ll use this id in the next command, in place of xxxxxxx.
2. PS %HOME%\vagrant\\Hyperledger> vagrant destroy xxxxxxx
3. PS %HOME%\vagrant\\Hyperledger> vagrant box remove ubuntu/xenial64
1.3.2: Create a new Vagrant project for Hyperledger
Launch PowerShell and enter the following commands: (Don’t type ‘PS %HOME%>’, that’s just the PowerShell prompt. Just type the characters in bold.)
1. PS %HOME%> mkdir vagrant
2. PS %HOME%> cd vagrant
3. PS %HOME%\vagrant> mkdir Hyperledger
4. PS %HOME%\vagrant> cd Hyperledger
5. PS %HOME%\vagrant\Hyperledger> vagrant init kelly219design/ubuntu-xenial-16.04-gui-desktop-base
Make sure that you enter the line above as ONE LINE at the PowerShell prompt
6. Go to the Blackboard site (ucumberlands.blackcoard.com) and login.
7. Navigate to this course (BLCN532) -> Content for this week, Lab01.
a. Download the Vagrantfile file and copy it to the %HOME%\vagrant\Hyperledger directory. (This will overwrite the Vagrantfile that was already there.)
8. PS %HOME%\vagrant\Hyperledger> vagrant up
NOTE: To stop your VM type vagrant halt in PowerShell
Section 2: Install Pre-requisites (Chapter 3)
Once you have an operating Linux VM, you can start to install the Hyperledger Fabric pre-requisites. In this section you’ll install all the software and configuration pieces necessary to run the class enterprise blockchain application in Hyperledger Fabric.
Step 2.1: Install pre-reqs
2.1.1: Install dev tools
1. If you haven’t started your VM, do the following:
a. Open Windows PowerShell, then navigate to your Hyperledger project directory.
b. PS %HOME%\vagrant\Hyperledger> vagrant up
2. Login to your VM using the username: vagrant and password: vagrant
3. Click “Search your computer” (upper left corner icon), then type terminal.
4. Click on the Terminal icon to launch a terminal with a shell prompt.
You type all the following commands in your Linux VM (at the Terminal command prompt.)
Don’t type the ‘$’ character. That is the prompt character of a regular user to remind you that this is a command you should enter in Linux. When you see a ‘#’ character, that indicates you are in an elevated privilege shell. And the ‘>’ character indicates you’re in PowerShell. Pay attention to the prompt characters – they give you valuable information about your current context.
5. $ sudo apt-get update
6. $ sudo apt-get install libltdl-dev
2.1.2: Install Docker-CE
You can find complete Docker-CE instructions/docs at: https://docs.docker.com/install/linux/docker-ce/ubuntu/
1. $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
2. $ sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”
Make sure that you enter the line above as ONE LINE in Linux
3. $ sudo apt-get update
4. $ sudo apt-get install docker-ce docker-ce-cli containerd.io
2.1.3: Install Docker compose
1. $ sudo curl -L “https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose
2. $ sudo chmod +x /usr/local/bin/docker-compose
3. $ docker-compose version
4. $ date
5. Create a screenshot of the results of steps 1 – 4 and paste it into your Lab Report File.
2.1.4: Install business network pre-reqs
1. $ curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
2. $ chmod u+x prereqs-ubuntu.sh
3. $ ./prereqs-ubuntu.sh
4. $ date
5. Create a screenshot of the results of steps 1 – 4 and paste it into your Lab Report File.
>>> Logout (use the gear icon in the upper right corner) and log back in before continuing.
2.1.5: Install GO language
The next step is to install the GO programming language. You’ll use GO to write and modify source code files for the class blockchain application.
1. $ sudo apt-get update
2. $ wget https://dl.google.com/go/go1.12.1.linux-amd64.tar.gz
3. $ tar xvf go1.12.1.linux-amd64.tar.gz
4. $ nano ~/.profile
5. In the nano editor, add the following 2 lines after the last line in the file:
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
6. Save your file and exit nano
7. $ source .profile
8. $ go version
9. $ date
10. Create a screenshot of the results of steps 1 – 9 and paste it into your Lab Report File.
Step 2.2: Install source code and set up business network
In this step you download and install the class application source code and set up the business network.
2.2.1: Forking and Cloning the trade-finance-logistics repository
1. In a browser (in Windows) go to: https://github.com/HyperledgerHandsOn/trade-finance-logistics
2. Sign up or log in
3. Click Fork
You type all the following commands in your Linux VM (at the command prompt.)
4. $ cd $GOPATH/src
5. $ git clone https://github.com/YOUR_GIT_ID/trade-finance-logistics.git
6. $ cd $GOPATH/src
7. $ mkdir -p github.com/hyperledger
8. $ cd github.com/hyperledger
9. $ git clone https://github.com/hyperledger/fabric.git -b release-1.1
10. $ cd fabric
11. EDIT FILES *****
a. $ nano Makefile
b. Find the line starts with CHAINTOOL_RELEASE (hint: use CTRL W to search)
c. Change the line you just found to this: CHAINTOOL_RELEASE=1.1.3
d. Find the line that starts with CHAINTOOL_URL (hint: use CRTL W to search)
e. Change the line you just found to this: CHAINTOOL_URL ?= https://hyperledger.jfrog.io/hyperledger/fabric-maven/org/hyperledger/fabric-chaintool/$(CHAINTOOL_RELEASE)/fabric-chaintool-$(CHAINTOOL_RELEASE).jar
NOTE: The line above should be on a SINGLE LONG LINE (don’t break up the line into multiple lines)
f. Save the file (hint: use CRTL O to write the file)
g. Exit the nano editor (hint: use CTRL X to exit)
h. $ nano images/javaenv/Dockerfile.in
i. Find the line that starts with && curl -fsSL https://nexus.hyperledger.org
j. Change the line you just found to this: && curl -fsSL https://repo1.maven.org/maven2/org/apache/maven/apache-maven/$MAVEN_VERSION/apache-maven-$MAVEN_VERSION-bin.tar.gz \
NOTE: The line above should be on a SINGLE LONG LINE (don’t break up the line into multiple lines)
k. Save the file (hint: use CRTL O to write the file)
l. Exit the nano editor (hint: use CTRL X to exit)
12. $ make docker
13. $ make configtxgen cryptogen
14. $ git clone https://github.com/hyperledger/fabric-ca.git
15. $ cd fabric-ca
16. $ make docker
17. $ date
18. Create a screenshot of the results of steps 1 – 17 and paste it into your Lab Report File.
2.2.2: Generate network cryptographic material
1. $ cd $GOPATH/src/trade-finance-logistics/network
2. $ nano ~/.profile
change last line to this (all on 1 line, not 2):
export PATH=$PATH:$GOPATH/bin:$GOPATH/src/github.com/hyperledger/fabric/build/bin:$GOPATH/src/github.com/hyperledger/fabric/build/docker/bin
3. Save file and exit nano
4. $ source ~/.profile
5. $ cryptogen generate –config=./crypto-config.yaml
6. $ date
7. Create a screenshot of the results of steps 1 – 6 and paste it into your Lab Report File.
2.2.3: Generate channel artifacts
1. $ cd $GOPATH/src/trade-finance-logistics/network
2. Execute the follow commands OR run the trade.sh script (AFTER step 9)
3. $ mkdir -p channel-artifacts
4. $ configtxgen -profile FourOrgsTradeOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
5. $ configtxgen -profile FourOrgsTradeChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID tradechannel
6. $ configtxgen -profile FourOrgsTradeChannel -outputAnchorPeersUpdate ./channel-artifacts/ExporterOrgMSPanchors.tx -channelID tradechannel -asOrg ExporterOrgMSP
7. $ configtxgen -profile FourOrgsTradeChannel -outputAnchorPeersUpdate ./channel-artifacts/ImporterOrgMSPanchors.tx -channelID tradechannel -asOrg ImporterOrgMSP
8. $ configtxgen -profile FourOrgsTradeChannel -outputAnchorPeersUpdate ./channel-artifacts/CarrierOrgMSPanchors.tx -channelID tradechannel -asOrg CarrierOrgMSP
9. $ configtxgen -profile FourOrgsTradeChannel -outputAnchorPeersUpdate ./channel-artifacts/RegulatorOrgMSPanchors.tx -channelID tradechannel -asOrg RegulatorOrgMSP
OR (Instead of typing the commands above, the author provides a script to do it all)
1. $ ./trade.sh generate -c tradechannel
Troubleshooting help:
· If you encounter problems with your blockchain network in this lab or future labs, the ./trade.sh script may help you resolve them. If you are getting errors when trying to launch or interact with your network, try these commands at the Ubuntu command prompt:
o ./trade.sh down # If your network is up and running
o ./trade.sh clean
o ./trade.sh generate -c tradechannel
o ./trade.sh up
2.2.4: Launch the sample trade network
There are two ways to launch the sample trade network, using the docker-compose command directly, or by using the author-supplied trade.sh shell script. We’ll use the shell script in most of our activities.
1. $ cd $GOPATH/src/trade-finance-logistics/network
2. $ ./trade.sh up
3. $ date
4. Create a screenshot of the results of steps 1 – 3 and paste it into your Lab Report File.
Step 2.3: Verifying your business network
The last step in this lab is to verify that your business network is up and running.
1. Open a new terminal window in your Vagrant Hyperledger VM. Click “Search your computer” (upper left corner icon), then type terminal, then click the Terminal icon.)
2. Enter the following command:
3. $ docker ps -a
4. $ date
5. Create a screenshot of the results of steps 2 – 4 and paste it into your Lab Report File.
6. The first column in the previous output is the “container-ID”. Find the container-ID for the orderer process, and use it for the following command: (Don’t type the “<” or “>” characters)
7. $ docker logs <container-ID>
8. Create a screenshot of the results of step 7 and paste that screenshot into your Lab Report File.
Section 3: Wrapping up
Once you have your network up and running, the only step to complete is to learn how to properly shutdown your business network.
1. Shut down the business network in Linux:
2. $ ./trade.sh down
3. Exit from your Linux Terminal command prompt(s) (i.e. close any open Terminal windows.)
4. $ exit
5. In Windows PowerShell, shut down your Hyperledger virtual machine:
9. PS %HOME%\vagrant\Hyperledger> vagrant halt
10. Create a snapshot (NOT A SCREENSHOT) of your Ubuntu VM in VirtualBox. This allows you to easily restore to this point if you ever need to “undo” subsequent steps and return to a known point.
a. PS %HOME%\vagrant\Hyperledger> vagrant snapshot EndOfLab01
You should have 8 screenshots in your Lab Report File. Save your file and submit it in iLearn as a file attachment for the Lab 1 assignment.
Congratulations! You have complete lab 1.
>Management homework help
UncategorizedAssignment Content
Your first week on the job is filled with learning the ins and outs of Human Resources and the industry. Your manager told you that one of your projects is to assist with a new HR strategy for the company. This strategy is broken down into 3 parts that you’ll work on throughout the course. They are:
>Computer Science homework help
UncategorizedSet up your development environment
V2.0
Introduction
This course introduces students to blockchain development for enterprise environments. Before you can develop software applications, you need to ensue your development environment is in place. That means you’ll need all the tools and infrastructure installed and configured to support enterprise blockchain software development projects.
In this lab you’ll set up your own Hyperledger Fabric development environment and install the course software from the textbook. When you finish this lab, you’ll have a working development environment and will be ready to start running and modifying blockchain applications.
The instructions in your textbook are for Mac and Linux computers. However, there is no guarantee that your installation of MacOS or Linux is completely compatible with the environment in which the commands from the textbook work properly. For that reason, I STRONGLY SUGGEST that you acquire an Ubuntu 16.04 Virtual Machine (VM) for your labs. Using an Ubuntu 16.04 VM will make the labs far easier to complete.
The instructions in this course’s labs assume that your computer runs the Windows operating system. If you run MacOS or Linux, you can get Vagrant and VirtualBox for those operating systems and follow the gist of the “Initial setup for Windows computers”.
Lab Deliverables:
To complete this lab, you must create a Lab Report file and submit the file in iLearn. The Lab Report file must be a Microsoft Word format (.docx), and have the filename with the following format:
BLCN532_SECTION_STUDENTID_LASTNAME_FIRSTNAME_Lab01.docx
· SECTION is the section number of your current course (2 digits)
· STUDENTID is your student ID number (with leading zeros)
· LASTNAME is your last name, FIRSTNAME is your first name
To get started, create a Microsoft Word document (.docx) with the correct filename for this lab. You’ll be asked to enter text and paste screenshots into the lab report file.
NOTE: All screenshots MUST be readable. Use the Ubuntu Screen Capture utility (see the lab video.) Make sure that you label each screenshot (i.e. Step 2.1.3) and provide screenshots in order. For commands that produce lots of output, I only want to see the last full screen when the command finishes. Provide FULL screenshots, NOT cropped images.
SECTION 1: Initial setup for Windows computers (Chapter 3)
Step 1.1: Install Oracle Virtualbox (Windows, Linux, MacOS)
Oracle Virtualbox is an open source virtualization environment that allows you to run multiple virtual machines and containers on a single personal computer. Virtualbox is free and it is easy to install.
In your favorite web browser, navigate to: https://www.virtualbox.org/ and click the “Download Virtualbox” button. Click the “Windows hosts” link to download the main installation executable. You should also click the “All supported platforms” under the “Extension Pack” heading to download extra software support for devices.
After you download the two files, double click each one to run the install procedure.
Step 1.2: Install Vagrant (Windows, Linux, MacOS)
Vagrant is a free virtual environment management utility. It makes the process of starting, stopping, and managing virtual machines easier. In your web browser, navigate to https://www.vagrantup.com/ then click the “Download” button, and click the version of the Windows executable you’d like to install. (Most of you should select the “64-bit” version.)
Once you download the install program, double-click the file you just downloaded to install Vagrant.
If you want more information on Vagrant and tips on getting the most out of the software, navigate to:
https://www.sitepoint.com/getting-started-vagrant-windows/ .
Step 1.3: Set up your Vagrant project
After installing all the pre-requisite pieces, you need to set up your Vagrant project. A Vagrant project defines your virtual machine environment and helps you organize your collection of VMs into a group that is easy to manage.
We’ll use the Windows PowerShell as our Windows command prompt environment. PowerShell is a very powerful command line interface that is available on all Windows computers.
To launch PowerShell, click the Windows key, type PowerShell, then click the Windows PowerShell menu entry. The figure below shows a portion of the Windows PowerShell command prompt window.
PowerShell uses your user’s home directory as its starting directory. In my case, C:\Users\micha is my home directory. For the rest of the lab, I’ll refer to this a %HOME%. Your %HOME% will be different.
1.3.1: Remove existing Vagrant projects
Follow these steps ONLY if you already have a previous Vagrant project you want to remove: (Assume the project you want to remove is located in the %HOME%\vagrant\Hyperledger directory.)
If you DO NOT have an existing Vagrant project that you need to remove, skip to section 1.3.2.
1. PS %HOME%\vagrant\Hyperledger> vagrant global-status
Note the id of the listed VM(s). You’ll use this id in the next command, in place of xxxxxxx.
2. PS %HOME%\vagrant\\Hyperledger> vagrant destroy xxxxxxx
3. PS %HOME%\vagrant\\Hyperledger> vagrant box remove ubuntu/xenial64
1.3.2: Create a new Vagrant project for Hyperledger
Launch PowerShell and enter the following commands: (Don’t type ‘PS %HOME%>’, that’s just the PowerShell prompt. Just type the characters in bold.)
1. PS %HOME%> mkdir vagrant
2. PS %HOME%> cd vagrant
3. PS %HOME%\vagrant> mkdir Hyperledger
4. PS %HOME%\vagrant> cd Hyperledger
5. PS %HOME%\vagrant\Hyperledger> vagrant init kelly219design/ubuntu-xenial-16.04-gui-desktop-base
Make sure that you enter the line above as ONE LINE at the PowerShell prompt
6. Go to the Blackboard site (ucumberlands.blackcoard.com) and login.
7. Navigate to this course (BLCN532) -> Content for this week, Lab01.
a. Download the Vagrantfile file and copy it to the %HOME%\vagrant\Hyperledger directory. (This will overwrite the Vagrantfile that was already there.)
8. PS %HOME%\vagrant\Hyperledger> vagrant up
NOTE: To stop your VM type vagrant halt in PowerShell
Section 2: Install Pre-requisites (Chapter 3)
Once you have an operating Linux VM, you can start to install the Hyperledger Fabric pre-requisites. In this section you’ll install all the software and configuration pieces necessary to run the class enterprise blockchain application in Hyperledger Fabric.
Step 2.1: Install pre-reqs
2.1.1: Install dev tools
1. If you haven’t started your VM, do the following:
a. Open Windows PowerShell, then navigate to your Hyperledger project directory.
b. PS %HOME%\vagrant\Hyperledger> vagrant up
2. Login to your VM using the username: vagrant and password: vagrant
3. Click “Search your computer” (upper left corner icon), then type terminal.
4. Click on the Terminal icon to launch a terminal with a shell prompt.
You type all the following commands in your Linux VM (at the Terminal command prompt.)
Don’t type the ‘$’ character. That is the prompt character of a regular user to remind you that this is a command you should enter in Linux. When you see a ‘#’ character, that indicates you are in an elevated privilege shell. And the ‘>’ character indicates you’re in PowerShell. Pay attention to the prompt characters – they give you valuable information about your current context.
5. $ sudo apt-get update
6. $ sudo apt-get install libltdl-dev
2.1.2: Install Docker-CE
You can find complete Docker-CE instructions/docs at: https://docs.docker.com/install/linux/docker-ce/ubuntu/
1. $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
2. $ sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”
Make sure that you enter the line above as ONE LINE in Linux
3. $ sudo apt-get update
4. $ sudo apt-get install docker-ce docker-ce-cli containerd.io
2.1.3: Install Docker compose
1. $ sudo curl -L “https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose
2. $ sudo chmod +x /usr/local/bin/docker-compose
3. $ docker-compose version
4. $ date
5. Create a screenshot of the results of steps 1 – 4 and paste it into your Lab Report File.
2.1.4: Install business network pre-reqs
1. $ curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
2. $ chmod u+x prereqs-ubuntu.sh
3. $ ./prereqs-ubuntu.sh
4. $ date
5. Create a screenshot of the results of steps 1 – 4 and paste it into your Lab Report File.
>>> Logout (use the gear icon in the upper right corner) and log back in before continuing.
2.1.5: Install GO language
The next step is to install the GO programming language. You’ll use GO to write and modify source code files for the class blockchain application.
1. $ sudo apt-get update
2. $ wget https://dl.google.com/go/go1.12.1.linux-amd64.tar.gz
3. $ tar xvf go1.12.1.linux-amd64.tar.gz
4. $ nano ~/.profile
5. In the nano editor, add the following 2 lines after the last line in the file:
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
6. Save your file and exit nano
7. $ source .profile
8. $ go version
9. $ date
10. Create a screenshot of the results of steps 1 – 9 and paste it into your Lab Report File.
Step 2.2: Install source code and set up business network
In this step you download and install the class application source code and set up the business network.
2.2.1: Forking and Cloning the trade-finance-logistics repository
1. In a browser (in Windows) go to: https://github.com/HyperledgerHandsOn/trade-finance-logistics
2. Sign up or log in
3. Click Fork
You type all the following commands in your Linux VM (at the command prompt.)
4. $ cd $GOPATH/src
5. $ git clone https://github.com/YOUR_GIT_ID/trade-finance-logistics.git
6. $ cd $GOPATH/src
7. $ mkdir -p github.com/hyperledger
8. $ cd github.com/hyperledger
9. $ git clone https://github.com/hyperledger/fabric.git -b release-1.1
10. $ cd fabric
11. EDIT FILES *****
a. $ nano Makefile
b. Find the line starts with CHAINTOOL_RELEASE (hint: use CTRL W to search)
c. Change the line you just found to this: CHAINTOOL_RELEASE=1.1.3
d. Find the line that starts with CHAINTOOL_URL (hint: use CRTL W to search)
e. Change the line you just found to this: CHAINTOOL_URL ?= https://hyperledger.jfrog.io/hyperledger/fabric-maven/org/hyperledger/fabric-chaintool/$(CHAINTOOL_RELEASE)/fabric-chaintool-$(CHAINTOOL_RELEASE).jar
NOTE: The line above should be on a SINGLE LONG LINE (don’t break up the line into multiple lines)
f. Save the file (hint: use CRTL O to write the file)
g. Exit the nano editor (hint: use CTRL X to exit)
h. $ nano images/javaenv/Dockerfile.in
i. Find the line that starts with && curl -fsSL https://nexus.hyperledger.org
j. Change the line you just found to this: && curl -fsSL https://repo1.maven.org/maven2/org/apache/maven/apache-maven/$MAVEN_VERSION/apache-maven-$MAVEN_VERSION-bin.tar.gz \
NOTE: The line above should be on a SINGLE LONG LINE (don’t break up the line into multiple lines)
k. Save the file (hint: use CRTL O to write the file)
l. Exit the nano editor (hint: use CTRL X to exit)
12. $ make docker
13. $ make configtxgen cryptogen
14. $ git clone https://github.com/hyperledger/fabric-ca.git
15. $ cd fabric-ca
16. $ make docker
17. $ date
18. Create a screenshot of the results of steps 1 – 17 and paste it into your Lab Report File.
2.2.2: Generate network cryptographic material
1. $ cd $GOPATH/src/trade-finance-logistics/network
2. $ nano ~/.profile
change last line to this (all on 1 line, not 2):
export PATH=$PATH:$GOPATH/bin:$GOPATH/src/github.com/hyperledger/fabric/build/bin:$GOPATH/src/github.com/hyperledger/fabric/build/docker/bin
3. Save file and exit nano
4. $ source ~/.profile
5. $ cryptogen generate –config=./crypto-config.yaml
6. $ date
7. Create a screenshot of the results of steps 1 – 6 and paste it into your Lab Report File.
2.2.3: Generate channel artifacts
1. $ cd $GOPATH/src/trade-finance-logistics/network
2. Execute the follow commands OR run the trade.sh script (AFTER step 9)
3. $ mkdir -p channel-artifacts
4. $ configtxgen -profile FourOrgsTradeOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
5. $ configtxgen -profile FourOrgsTradeChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID tradechannel
6. $ configtxgen -profile FourOrgsTradeChannel -outputAnchorPeersUpdate ./channel-artifacts/ExporterOrgMSPanchors.tx -channelID tradechannel -asOrg ExporterOrgMSP
7. $ configtxgen -profile FourOrgsTradeChannel -outputAnchorPeersUpdate ./channel-artifacts/ImporterOrgMSPanchors.tx -channelID tradechannel -asOrg ImporterOrgMSP
8. $ configtxgen -profile FourOrgsTradeChannel -outputAnchorPeersUpdate ./channel-artifacts/CarrierOrgMSPanchors.tx -channelID tradechannel -asOrg CarrierOrgMSP
9. $ configtxgen -profile FourOrgsTradeChannel -outputAnchorPeersUpdate ./channel-artifacts/RegulatorOrgMSPanchors.tx -channelID tradechannel -asOrg RegulatorOrgMSP
OR (Instead of typing the commands above, the author provides a script to do it all)
1. $ ./trade.sh generate -c tradechannel
Troubleshooting help:
· If you encounter problems with your blockchain network in this lab or future labs, the ./trade.sh script may help you resolve them. If you are getting errors when trying to launch or interact with your network, try these commands at the Ubuntu command prompt:
o ./trade.sh down # If your network is up and running
o ./trade.sh clean
o ./trade.sh generate -c tradechannel
o ./trade.sh up
2.2.4: Launch the sample trade network
There are two ways to launch the sample trade network, using the docker-compose command directly, or by using the author-supplied trade.sh shell script. We’ll use the shell script in most of our activities.
1. $ cd $GOPATH/src/trade-finance-logistics/network
2. $ ./trade.sh up
3. $ date
4. Create a screenshot of the results of steps 1 – 3 and paste it into your Lab Report File.
Step 2.3: Verifying your business network
The last step in this lab is to verify that your business network is up and running.
1. Open a new terminal window in your Vagrant Hyperledger VM. Click “Search your computer” (upper left corner icon), then type terminal, then click the Terminal icon.)
2. Enter the following command:
3. $ docker ps -a
4. $ date
5. Create a screenshot of the results of steps 2 – 4 and paste it into your Lab Report File.
6. The first column in the previous output is the “container-ID”. Find the container-ID for the orderer process, and use it for the following command: (Don’t type the “<” or “>” characters)
7. $ docker logs <container-ID>
8. Create a screenshot of the results of step 7 and paste that screenshot into your Lab Report File.
Section 3: Wrapping up
Once you have your network up and running, the only step to complete is to learn how to properly shutdown your business network.
1. Shut down the business network in Linux:
2. $ ./trade.sh down
3. Exit from your Linux Terminal command prompt(s) (i.e. close any open Terminal windows.)
4. $ exit
5. In Windows PowerShell, shut down your Hyperledger virtual machine:
9. PS %HOME%\vagrant\Hyperledger> vagrant halt
10. Create a snapshot (NOT A SCREENSHOT) of your Ubuntu VM in VirtualBox. This allows you to easily restore to this point if you ever need to “undo” subsequent steps and return to a known point.
a. PS %HOME%\vagrant\Hyperledger> vagrant snapshot EndOfLab01
You should have 8 screenshots in your Lab Report File. Save your file and submit it in iLearn as a file attachment for the Lab 1 assignment.
Congratulations! You have complete lab 1.
& Stakeholder Relationship Diagram
Nursing HomeworksThe organizational chart is the standard way to depict reporting relationships. The relationship diagram is a helpful way of assessing interactions and relationships in an organization or process. You will be using these tools and other information to describe the organization and identify the stakeholder relationships for a health care organization of your choice.
2. Organizational chart (15%) – Submit the organizational chart for the organization. Note any characteristics that make the organizational structure unique. The organizational chart does not need names, just position titles.
3. Relationship Diagram (15%) – Identify how your organization relates to at least seven (7) of its external stakeholders or customers, including at least two (2) other entities in the broad health care community.
Environmental Factors And Health Promotion:
UncategorizedAccident Prevention And Safety Promotion For Parents And Caregivers Of Infants
The growth, development, and learned behaviors that occur during the first year of infancy have a direct effect on the individual throughout a lifetime. For this assignment, research an environmental factor that poses a threat to the health or safety of infants and develop a health promotion that can be presented to caregivers.
Create a 10-12 slide PowerPoint health promotion, with speaker notes, that outlines a teaching plan. For the presentation of your PowerPoint, use Loom to create a voice over or a video. Include an additional slide for the Loom link at the beginning, and an additional slide for references at the end.
Include the following in your presentation:
Describe the types of ACOs recognized by the Centers for Medicare and Medicaid Services
Nursing HomeworksSelect a type of health care organization that would accept Medicare patients (e.g., family practice, hospital, urgent care, or nursing home).
Write a 700- to 1,050-word executive summary that discusses the purpose of joining an ACO and the funding available through one. Include the following:
Cite 3 reputable references to support your assignment (e.g., trade or industry publications, government or agency websites, scholarly works, or other sources of similar quality).
Format your assignment according to APA guidelines
Evaluating and Sustaining Improvement
UncategorizedThe downfall of many quality improvement initiatives is the inability to sustain improvements. Last week, you considered the use of evidence-based practice models as a method for sustaining practice changes to improve quality. This week’s Discussion builds on those concepts of sustainability. You evaluate measurement mechanisms and explore strategies that leadership and improvement teams can use to sustain improvement efforts.
To prepare:
By tomorrow Wednesday February 7, 2018 by 12 noon, post a minimum of 550 words essay in APA format with at least 2 references from the list below. Include the levels one headings as numbered below:
post a cohesive scholarly response that addresses the following:
1) Evaluate the influence of leadership and improvement teams in sustaining improvement efforts.
2) Present a succinct analysis of three or more strategies leaders and teams can use in your response.
Required Readings
Richardson, A., & Storr, J. (2010). Patient safety: A literative review on the impact of nursing empowerment, leadership and collaboration [corrected] [published erratum appears in INT NURS REV 2010 Mar;57(1):158]. International Nursing Review, 57(1), 12–21. doi:10.1111/j.1466-7657.2009.00757.x
This article analyzes how nurses can improve patient safety. It identifies certain knowledge gaps that inhibit nurses’ ability to improve patient safety that must be addressed before they can effectively make contributions.
Bigelow, L., Wolkowski, C., Baskin, L., & Gorko, M. (2010). Lean Six Sigma: Sustaining the gains in a hospital laboratory. Clinical Leadership & Management Review, 24(3), 1–14.
In this article, a health care organization uses Lean Six Sigma to improve performance, but it does not initially achieve the desired results. It then utilizes an Operational Performance Improvement office from within the organization to receive better training in Lean Six Sigma and it is finally able to improve performance.
Murphree, P., Vath, R. R., & Daigle, L. (2011). Sustaining Lean Six Sigma projects in health care. Physician Executive, 37(1), 44–48.
The authors of this article consider ways to keep Lean Six Sigma projects operating instead of closing them. They distinguish between closing and controlling, the latter being the last phase in Lean Six Sigma. According to the authors, many organizations close Lean Six Sigma projects when they should be controlling them.
Required Media
Laureate Education, Inc. (Executive Producer). (2011). Organizational and systems leadership for quality improvement: Organizational change. Baltimore: Author.
Note: The approximate length of this media piece is 10 minutes.
This video examines factors that enhance and impede organizational change. Dr. Wooden and Dr. Freshman discuss change models that can be used to manage the change process and to assist individuals through the transition period
Trial
UncategorizedPersonality and the Psychoanalytic Perspective Worksheet
Nursing HomeworksPersonality and the Psychoanalytic Perspective Worksheet
Personality and the Psychoanalytic Perspective Worksheet
1. How would you describe personality to a person who has no knowledge of the field of personality psychology?
Personality is an individual’s characteristic style or pattern of thinking, feeling, emotion, and behavior. Personality is something that develops over time. It can be hereditary, such as, my oldest son has my temper and stubbornness, or my daughter has her mother’s attitude. Relationships and building attachments and environmental experiences influence your personality. It is a person’s unique behavioral and mental patterns, a person’s unique consistent pattern of thinking, feeling, and acting.
2. What are some key personality features that define you?
There are so many different personality features or traits that I could use to define myself. But to be specific I would use these personality traits: adventurous, challenging, dedicated, abrasive, hardworking, impatient, introvert, emotionally stable, and open to new experiences. Though there are many different personality traits that can help define why I see myself also as abrasive, and an impatient individual who does not tolerate excuses or believe in giving people more than one chance, I do have a compassionate side when it comes to family and loved ones. Being adventurous is my best feature or trait, I am willing to go where I have never been before and am willing to do things I have never done, even if I do not know how it’s going to turn out, people say life is short, I say life is long, we have so much time to do so many things, it is only short if you do not use it wisely.
3. Are your personality features consistent, or do they change according to the situation?
I think that my personality features are consistent with what is considered a normal situation. With that being said, if I am in a normal situation my personality features can remain consistent, but I do have the ability to adapt to whatever situation I am in, this depends on my comfort level also. Even when I introduce myself into one of these, that I do not deem as normal my personality features can remain consistent. However, when I unknowingly become part of a situation or a change in environment that is not what I consider as normal then some of my personality features may not remain consistent.
4. What are the main tenets of the psychoanalytic perspective of personality? What do all psychoanalytic theories have in common?
The psychoanalytic perspective of personality focuses on the conscious and unconscious. The theory is constructed on the idea that our behaviors and emotions are created by unconscious factors. Both Freud and Jung believed the human mind was divided into three parts. Freud: Id, Ego, and Superego. Jung: Ego, Personal Unconscious, and Collective Unconscious. Both theorists believed in analyzing dreams and symbols to understand problems.
The main principles on which the psychoanalytic theory is based are the Id, Ego, and Super Ego which were Freud’s standing. The unconscious was divided into the ego, the personal unconscious and the collective unconscious, these were according to Jung. The Id is the most primitive structure of personality, in that behaviors are encouraged by feelings. The Id is the unconscious and runs on what an individual inherited at birth. The Ego is talking about our conscious perceptions, memories and thought that help us deal with reality. The superego drives the id through socially acceptable behaviors. Jung stated that the ego is the conscious, the personal unconscious included a person’s memories, and the collective unconscious holds the knowledge that we were born with, or what we have experienced and learned as a species.
Jung believed that most developmental emphasis was on adult hood, while Freud stated it all started in the childhood. This was the big thing that stood out to me, and one of the main reasons Jung started to disagree with Freud, they went from coworkers to enemies.
Reference
Cloninger, S. (2013). Theories of Personality (6th ed.). Upper Saddle River, NJ: Pearson.
Sheet 2
5. How would you describe personality to a person who has no knowledge of the field of personality psychology?
Personality is based off of individual differences and characteristic patterns of thinking, feeling, and behavior. Personality is developed over time and strongly influence personal expectations, perceptions, values, and attitudes. Personality drives individuals to consistently think, feel, and behave a certain way. Personality is what makes each and every one of us unique. Culture and gender are important factors that influence the development of personality. Culture is one of the most important environmental factors that shapes personality. The biological perspective on personality emphasizes the influence of the brain and genetic factors on personality. In psychology, “temperament” refers to the personalities tendencies that we show at birth. After birth, environmental factors and maturation interact with a child’s temperament to shape their personalities.
6. What are some key personality features that define you?
I have so many personality traits that define me, but there are a few specific ones I could point out. I am a conscientiousness person. I’ve noticed over the years I am agreeable, I’m openness, clever, charming, dominating, admirable, daring, adventurous, and discreet. Some of my traits I picked up as I matured and experienced life. I am honest enough to admit that all my traits are not positive. I have quite a few negative personality traits as well. I’m sometimes irritable, aggressive, cold, forgetful, very impatient, shallow, and possessive. My negative traits are not always upfront. They come out depending on my mood or the situation I’m dealing with at the time. I’ve also learned based on you religious beliefs you learn to control your negative traits. I’ve developed an open heart trait, open minded, nonjudgmental approach, and forgiving trait. These traits were developed because of my religion and maturity on life and how I treat others the way I would like to be treated by others. I was raised in a very religious home and it has played a major role on my personality.
7. Are your personality features consistent, or do they change according to the situation?
I would say that my personality is consistent for the most part, but they also change with ever situation. An unfamiliar situation or a rowdy one can cause you to act in different ways. I situation that causes you to get very angry could cause you to act in a negative way if you are not conscious of your actions. Depending on who I’m dealing with or my mood, my personality will treat people accordingly. Sometimes I struggle with trying to keep a positive attitude with any and every situation, but I am not always successful. I would have to say that your personality does change according to the situation. I would not think it is normal for a person to maintain the same personality for every situation they encounter.
8. What are the main tenets of the psychoanalytic perspective of personality? What do all psychoanalytic theories have in common?
The main tenets were conscious, preconscious, and unconscious, Conscious is what we are thinking about or experiencing at any given moment. Preconscious is what we can readily call consciousness like memories and knowledge. Unconscious are thoughts, desires, and impulses of which we’re not aware: this is the largest level of consciousness. Freund and Jung believed the human mind was divided in three parts. Freund believed that it was id, ego, and superego, while Jung believed it was personal unconscious, collective unconscious, and ego. All psychoanalytic theories have in common that unconscious motives and desires, as well as the importance of childhood experiences in shaping personality.
ID the most primitive structure of personality.
Ego is the rational and coping part of personality. It’s the most mature structure.
Superego which most of it is unconscious, but some is conscious.
Cause of behavior: Jung believe that past experiences in addition to future aspiration. Freud believe past experience particularly in childhood.
Nature and purpose of the libido: Freud believed a source of the psychic energy specific to sexual gratification and Jung believed a generalize source of psychic energy motivating range of behaviors.
These were the significant difference between the two theories and what helped cause the two to separate.
References
· Defining Personality – Boundless Open Textbook. (n.d.). Retrieved December 02, 2016, from https://www.boundless.com/psychology/textbooks/boundless-psychology-textbook/personality-16/introduction-to-personality-76/defining-personality-303-12838/
· Genetics, the Brain, and Personality – Boundless Open Textbook. (n.d.). Retrieved December 02, 2016, from https://www.boundless.com/psychology/textbooks/boundless-psychology-textbook/personality-16/introduction-to-personality-76/genetics-the-brain-and-personality-317-12852/
· McLeod, S. (1970). Saul McLeod. Retrieved December 02, 2016, from http://www.simplypsychology.org/carl-jung.htm
What Should You Eat?
Nursing HomeworksYou probably want to live a long and healthy life on this earth. What are you willing to do to make that possible? Here is an assignment that can improve the quality of what you eat, and hence, the quality of your life. Let’s develop the rudiments of a maintenance diet for you—a desirable, workable, realistic, non-faddish maintenance diet—one you follow permanently. You have several reference sources:
– the Bible’s many prescriptive texts regarding nutrition (ignore “descriptive” texts)
– your textbook’s chapter on biomolecules; how they are built and used
– the course Presentation entitled “Biomolecules and Nutrition”
– trustworthy sources such as
– USDA MyPlate: https://www.choosemyplate.gov/MyPlate-Daily-Checklist
– the Mayo Clinic website. http://www.mayoclinic.org/healthy-lifestyle
– Very Well website (David Katz’ site): https://www.verywell.com/
– Web MD: http://www.webmd.com/diet/default.htm
The foods you select will contain the same classes of biomolecules that you read about in your textbook: carbohydrates, lipids, proteins, nucleic acids, vitamins, and minerals. Use the following procedure to build your diet.
For your Thread:
1. Click on the link below. This will give you a Word document “work table” to add your foods to. You may wish to print a copy for research purposes.
What Should I Eat – Work Table.docx
2. Go to the “My Plate Check List Calculator https://www.choosemyplate.gov/MyPlate-Daily-Checklist-input Enter your data to determine how many calories your daily diet should contain. Record this number in your work table.
3. Now go to the USDA MyPlate web site: https://www.choosemyplate.gov/MyPlate-Daily-Checklist In the Table, about the middle of the page click on the box representing your caloric needs. Some serving amount data will pop up allocated into 5 food groups.
4. Record the suggested serving amounts in your work table to give quantitative values to the categories you will build your diet around.
“What Should I Eat?” – Work Table:
Total Calories:
/per day
Food Group:
Biomolecules in this Group in Order of Relative Biomass*
Serving Amount:
My Food Choices:
10 Fruits
Carbs, Proteins, Oils
My first food, my second food, my third food, my fourth food, etc.
12 Vegetables
Carbs, Proteins, Oils
12 Grains
Carbs, Proteins, Oils
9 Proteins
Proteins, Fats, Oils
7 Dairy Items
Depends on the Food
*as a generalization
5. Start to choose foods using the guideline comments given on the webpage. Use other web pages listed above to get commentary on foods you think (!) are healthy for you. Here are two useful ones to give you ideas:
https://www.verywell.com/macronutrients-made-simple-4128991 , https://www.verywell.com/the-basics-of-a-healthy-balanced-diet-2506675
6. Delete the sample foods listed in the “Fruits” category. They are there to show you the format for your own additions. List specific foods that you would eat for each group according the numbers indicated in the first column. The second column of the table will help you with your category accuracy. Do not reuse any food under a second category. You will thus select 50 foods for your diet—not a huge variety, but it’s a start! “Leafy greens” or “seafood” are food categories, not specific foods.
7. “Mouse over the upper left-hand corner of the table to find the tiny navigation box and click on it. This highlights (“selects”) the whole table. Copy it to your computer’s “clipboard”. You can now paste this table into the “Message Box” of your open “Thread” in the discussion board. Along with your table, you may submit up to two prescriptive Bible passages that you feel most constrain your dietary thinking.
Hints:
• Your goal is always to improve your own list. Please include about 70 words for your diet (50 foods, some hyphenated as needed) with space left over for two Bible verses for a total of 120 words. That’s your limit!
• Foods differ in their density of a wide variety of nutrients as compared to just the calories they give you. Which sweet would be better for you: hard candy or a fig bar?
• What is in the food item you’ve selected? Check out: http://ndb.nal.usda.gov/ to find out.
• Suppose Mayo Clinic wisdom and Biblical wisdom seem to conflict. Which source will you defer to and why?
ALTERNAICINTIVE MEDICINE/POPULATION BASE NURSING
Nursing HomeworksALTERNAICINTIVE MEDICINE/POPULATION BASE NURSING