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.
>Civil homework help
UncategorizedChoose one of the scenarios below and explain whether you think that the promise made is enforceable. Be sure to think about the concepts of offer, acceptance, consideration, legality, and capacity.
>Nursing homework help
UncategorizedInstructions
Implementation of the Care Plan
In a Microsoft Word document of 2-3 pages formatted in APA style, you will develop a plan to implement your care plan by answering the questions below.
On a separate references page, cite all sources using APA format. Helpful APA guides and resources are available in the South University Online Library. Below are guides that are located in the library and can be accessed and downloaded via the South University Online Citation Resources: APA Style page. The American Psychological Association website also provides detailed guidance on formatting, citations, and references at APA Style.
• APA Citation Helper
• APA Citations Quick Sheet
• APA-Style Formatting Guidelines for a Written Essay
• Basic Essay Template
Please note that the title and reference pages should not be included in the total page count of your paper.
Asthma and Stepwise Management
UncategorizedQuestion Description
APA FORMAT PLEASE ASSIGNMENT, TWO PAGES PLEASE
Assignment:
Asthma and Stepwise Management
Asthma is a respiratory disorder that affects children and adults. Advanced practice nurses often provide treatment to patients with these disorders. Sometimes patients require immediate treatment making it essential that you recognize and distinguish minor asthma symptoms from serious, life-threatening symptoms. Since symptoms and attacks are often induced by a trigger, advanced practice nurses must also help patients identify their triggers and recommend appropriate management options. Like many other disorders, there are various approaches to treating and managing care for asthmatic patients depending on individual patient factors. One method that supports the clinical decision-making of drug therapy plans for asthmatic patients is the stepwise approach, which you explore in this Assignment.
To prepare:
BY DAY 7
Write a 2- page paper that addresses the following:
Week 4: Respiratory System
In the United States, 12 million people suffer from chronic obstructive pulmonary disease (National Heart Lung and Blood Institute, n.d.), and about 25 million people suffer from asthma (CDC, 2011). Since various symptoms are associated with chronic obstructive pulmonary disease, asthma, and other common respiratory disorders, a single patient might be prescribed multiple drugs for treatment. Consider an 8-year-old asthmatic patient who frequently presents with acute asthma exacerbations that are triggered by seasonal allergies. As a result of his disorder, he might be prescribed albuterol to treat asthma attacks and Clarinex to treat allergic reactions. This requires you, as the advanced practice nurse, to be aware of risks of polypharmacy and patient factors that impact the effects of drugs.
This week you examine types of drugs prescribed to patients with respiratory disorders, as well as the impact of patient factors on the effects of drugs. You also explore ways to improve patient treatment plans including suggested drug therapies. Finally, you examine asthma treatment and management.
Learning Objectives
By the end of this week, students will:
Photo Credit: lovleah/iStock/Getty Images Plus/Getty Images
Learning Resources
This page contains the Learning Resources for this week. Be sure to scroll down the page to see all of this week’s assigned Learning Resources. To access select media resources, please use the media player below.
REQUIRED READINGS
Arcangelo, V. P., Peterson, A. M., Wilbur, V., & Reinhold, J. A. (Eds.). (2017). Pharmacotherapeutics for advanced practice: A practical approach (4th ed.). Ambler, PA: Lippincott Williams & Wilkins.
This chapter compares the causes and pathophysiology of two common ear infections—otitis media and otitis externa. It also identifies types of drugs used to treat these ear infections.
This chapter explores the causes, pathophysiology, and diagnostic criteria of two upper respiratory infections—the common cold and sinusitis—as well as drug therapy for both infections. It also covers monitoring patient response and patient education of drug therapy for these infections.
This chapter examines the causes, pathophysiology, pharmacogenomics, and diagnostic criteria of asthma. It also outlines suggested drug therapy plans for asthmatic patients.
This chapter explains the causes and pathophysiology of chronic obstructive pulmonary disease (COPD). It also examines the process of selecting, administering, and managing drug therapy for COPD patients.
This chapter begins by examining the causes, pathophysiology, and diagnostic criteria of acute bronchitis, chronic bronchitis, and community-acquired pneumonia. It then explores the process of selecting, administering, and managing drug therapy for patients with bronchitis and pneumonia.
OPTIONAL RESOURCES
how sociological principles and concepts on deviance operate outside the classroom and in everyday life.
Nursing HomeworksThe purpose of the project is to see how sociological principles and concepts on deviance operate outside the classroom and in everyday life.
You are to interview someone on or off campus about any topic in deviance that most interests you and ask him/her questions about the extent to which they have participated in that form of deviance. If you prefer, you may interview yourself and then reflect on the deviance in which you have participated. If you choose this latter option, you must still do the paper as it is required to be done; it doesn’t change the assignment.
First, frame a set of issues, concerns, and questions you would like to address in the interview. Tape the interview if at all possible and only if the person agrees to it. Transcribe the interview. Analyze the interview for major themes. You will need to turn in a copy of the interview transcript. Please note that the transcription of your interview does not count as part of the final paper; the final paper is meant to be an analysis linking together the findings and patterns from your interview with course materials.
If the person you interview is connected to a particular organization, you may want to ask this person if you can spend any time there or if they will be sponsoring any events or meetings or sessions you can attend.
Draw on course material wherever possible in your project. It is more important that you draw on our course material rather than rely on materials from other classes or from library or Internet research. I trust that you will agree that we have plenty of rich material to work with right here.
A very successful paper will be one that analyzes and makes sense of themes that run through the entire semester. You must fully and sensitively master, think through, and expand on the central concepts and questions of the semester, make use of relevant theoretical concepts, and stay grounded in our course readings, discussions, and films. I am interested in how you demonstrate your own ability to think critically. Avoid using very long quotations and close paraphrasing of the readings. Some quoting is indeed very important though to support your points where applicable. I am most interested in how you discuss and interpret ideas in your own words. When citing any sources, please document these carefully and be consistent throughout.
Your papers must be no more than four pages, double-spaced, with page numbers, in 12 Point Times font, black ink, and with one inch margins.
Policy Analysis Brief
Nursing HomeworksPolicy Analysis Brief
To analyze an issue is to understand the problem and context of the problem. Nurses engage in policy analysis through the creation of policy briefs, which promote awareness of the problem, and provide context of the problem, resolution options and their pros and cons, and a recommended solution. Nurses use policy briefs to communicate issues and solutions to government policy analysts. Policy Analysis Brief.
Read the 2016 National Healthcare Quality and Disparities Report on the Agency for Healthcare Research and Quality website
ORDER A CUSTOM-WRITTEN PAPER NOW
Review the updated data and identify a possible meaningful policy change to improve care, lower costs, and reduce health disparities in your current role and place of practice, or the role you are pursuing. You will use this issue as you complete your policy brief. Policy Analysis Brief.
Search the Internet for the Association of Rehabilitation Nurses Health Policy Tool Kit and explore the toolkit.
Research the policy change further and write 1,400-word paper in which you identify the following:
•Underlying issue
•Stakeholders
•Resolution
•At least 2 specific alternative resolutions
•Positive consequences of each resolution
•Negative consequences of each resolution
•Cost of each resolution
•Financial implications of each resolution
◦Economic. Policy Analysis Brief
◦Resources
◦Quality of care
◦Patient outcomes
•Ethical considerations of each resolution
•Legal and regulation considerations of each resolution
◦Include one legal case as supporting evidence for each resolution.
◦Include one existing regulation as supporting evidence for each resolution. Policy Analysis Brief.
Cite at least three scholarly articles, one of which can be Health Policy and Politics, to support your findings.
Format your paper according to APA guidelines. Policy Analysis Brief
English homework help
UncategorizedYou have been reading about using counterarguments, concessions, and qualifiers as rhetorical tools to “account for positions outside of, or opposed to, their own claims” (258).
Chapter 17 in the CEL offers some helpful strategies for structuring counterarguments in your writing. Read the section on “Counterarguing” in CEL Ch. 17 (p. 524-526) as you prepare to practice making counterarguments for the issue that you have chosen to write about.
Write several short paragraphs explaining how you can use counterarguing to organize your writing for the Unit 3 assignment.
Use the questions below to discover what other perspectives you might want to address through counterargument (adapted from CEL Ch. 12, p. 386):
You might choose to begin with
Or you might instead organize your ideas as
Submit all of your work to this assignment as your response. You do not have to answer each of these questions word for word in a separate paragraph, but your response overall should show that you are considering all of the questions above.
Why does she have bacteria and white blood cell casts in her urine? Include the pathophysiological response of body for your analysis.
Nursing Essay HelpEscherichia coli (E. coli). Based on the above scenario, answer the following questions:
- Why does she have bacteria and white blood cell casts in her urine? Include the pathophysiological response of body for your analysis.
- What are the differences when comparing prerenal acute renal injury, intrarenal acute renal injury, and postrenal acute renal injury? Give examples of each and pathological processes related to each disease process.
]]>>American history homework help
Uncategorized“The critical tests of the imperial Presidency are threefold: the war making power; the secrecy system; and the employment against the American people of emergency authority acquired for use against foreign enemies.” – Arthur Schlesinger
In Unit 1 you read and analyzed the U.S. Constitution. Now, armed with a textual and nuanced understanding of the U.S. Constitution, including Article II, you may come to the conclusion that the founding fathers, leery of tyrannical monarchs, deliberately made vague the powers and responsibility of the president.
That said, many historians argue that the institution of the presidency has grown over time. In 1973, Arthur Schlesinger Jr. published The Imperial Presidency. Whereas the book examines the history of the presidency since inception, the author focuses on the increasingly expansive executive power of the Nixon presidency. Subsequent scholars have used the term “imperial presidency” to argue that since WWII, that expansion of presidential power and the growth of the federal bureaucracies is a dominant feature of the modern era. (Schlesinger, 1973)
Directions: Using the required, academic readings, and supplemental academic research, please address the following while adhering to the Discussion Board Rubric:
References:
The Constitution of the United States. (n.d.). Retrieved from https://www.archives.gov/founding-docs/constitution.
Schlesinger, A. M. (1973). The imperial presidency. Boston: Houghton Mifflin.
>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.
Translating Evidence Into Practice
Nursing HomeworksCourse Project: Part 3—Translating Evidence Into Practice
In Part 3 of the Course Project, you consider how the evidence you gathered during Part 2 can be translated into nursing practice.
Now that you have located available research on your PICOT question, you will examine what the research indicates about nursing practices. Connecting research evidence and findings to actual decisions and tasks that nurses complete in their daily practice is essentially what evidence-based practice is all about. This final component of the Course Project asks you to translate the evidence and data from your literature review into authentic practices that can be adopted to improve health care outcomes. In addition, you will also consider possible methods and strategies for disseminating evidence-based practices to your colleagues and to the broader health care field.
To prepare:
· Consider Parts 1 and 2 of your Course Project. How does the research address your PICOT question?
· With your PICOT question in mind, identify at least one nursing practice that is supported by the evidence in two or more of the articles from your literature review. Consider what the evidence indicates about how this practice contributes to better outcomes.
· Explore possible consequences of failing to adopt the evidence-based practice that you identified.
· Consider how you would disseminate information about this evidence-based practice throughout your organization or practice setting. How would you communicate the importance of the practice?
To complete:
In a 3- to 4-page paper:
· Restate your PICOT question and its significance to nursing practice.
· Summarize the findings from the articles you selected for your literature review. Describe at least one nursing practice that is supported by the evidence in the articles. Justify your response with specific references to at least 2 of the articles.
· Explain how the evidence-based practice that you identified contributes to better outcomes. In addition, identify potential negative outcomes that could result from failing to use the evidence-based practice.
· Outline the strategy for disseminating the evidence-based practice that you identified throughout your practice setting. Explain how you would communicate the importance of the practice to your colleagues. Describe how you would move from disseminating the information to implementing the evidence-based practice within your organization. How would you address concerns and opposition to the change in practice?