Any changes related to an operating system or an application in an EC2 instance may break its connection. You may try to stop, start, or reboot the instance many times but the problem may still persist. In this case, you may need to restore the instance to a previous stable version.
Viruses, malwares or accidental deletion of data may also require a restore of an instance to a previous stable version.
In order to restore an EC2 instance to a previous version you first need to create its backups either manually or automatically.
Manually backup an EC2 instance:
- Click Volumes on the left menu.
- Click a volume, click Actions, click Create Snapshot.
Manually restore an EC2 instance:
- Click Snapshots on the left menu, click a snapshot of an instance.
- Click Actions, click Create Volume.
- Let all default settings intact, click Create Volume.
- Repeat the first 3 steps for all the snapshots of the instance.
- Stop the instance.
- Click the instance, click Storage, scroll down and click on the link of /dev/sda1 device.
- Click Actions, click Detach Volume (or Force Detach Volume if the Detach Volume function does not work).
- Click Volumes on the left menu.
- Click on the volume created from the snapshot.
- Click Actions, click Attach Volume.
- Select the instance, set Device = /dev/sda1, click Attach.
12. Detach and attach the remaining volume to the instance.
13. Start the instance.
Automate backup process for an EC2 instance:
- Go to AWS Backup service.
- Click Backup plans on the left menu.
- Click the Create Backup plan button, select a template (e.g. Daily-35day-Retention), enter a backup plan name (e.g. HuyBien_Backup_Plan).
4. Click Backup plans on the left menu, click on a backup plan name.
5. Scroll down to the Resource assignments section, click the Assign resources button.
6. Enter a resource assignment name (e.g. HuyBien_Instances or HuyBien_Volumes), the scroll down to the Assign resources section.
7. Select Resource ID for Assign by.
8. Select appropriate resources. When you select an EC2 instance, AWS Backup will create backup for all EBS volumes attached to the instance, and then will attach them to an AMI that stores all parameters from the original EC2 instance.
9. Click the Assign resources button.
10. Wait for 1 day, then click on the Backup vaults link on the left menu, click a Backup vault name, scroll down to the Backup section to check for backups of the resources created by the backup plan execution.
Configure backup process time:
- Go to https://www.thetimezoneconverter.com/, and convert your time to UTC, for example 1:00 AM Saint Petersburg = 10:00 PM UTC.
- Go to AWS Backup, click Backup plans, click on a plan name.
- Scroll down to Backup rules, select a rule, click the Edit button.
- Scroll down to Backup window, click Customize backup window and enter your times.
You iPhone can connect to a Wi-Fi router.
The Wi-Fi router does have an Internet connection. Other devices can connect to the Internet using this Wi-Fi router.
However you iPhone cannot connect to Internet.
- Tap on Settings, then tap on Wi-Fi.
- Tap on the Wi-Fi network name.
- Scroll down to IPV4 ADDRESS section.
- Ensure that Configure IP = Automatic, IP Address = 169.X1.X2.X3 (X1, X2, X3 can be any number), Subnet Mask = 255.255.0.0, and Router may be empty.
- Reboot the Router.
- If the problem still persists then please reset your iPhone by tapping on Settings > General > Reset > Reset All Settings.
You are want to install Ubuntu 18.04 and Windows 10 as dual boot for completing some machine learning tasks.
You need to have a 8Gb USB stick.
Step 1: Go to BIOS, select the UEFI option in Boot List Option, disable the Enable Legacy option ROMS option, disable Secure Boot.
Step 2: Install Windows 10 and create a free partition for Ubuntu.
Step 3: Download the Ubuntu desktop 18.04 image.
Note: The Ubuntu server 18.04 image may NOT contain driver for your wireless adapter network card.
Download and use Rufus to create a bootable USB with Ubuntu.
Step 4: Install Ubuntu. Select Something else in Installation type screen. Select the free partition. Click the + sign.
Create an EFI partition and set its size to be 552MB if it does not exist.
Create a Swap partition. Set its size to be twice as your RAM size.
Create a Root partition. Set its size to be all the remaining free space to optimize your space.
You need to quickly capture and analyze requirements for building a prototype or proof of concept for an enterprise system.
- Capture any artifacts related to a business need. They may be some emails, presentation slides, a proposal document, a legacy system, some similar systems, a feature list or an initial requirement specification.
- Define terminologies (terms), build a background and context around the terminologies, expand the terminologies into business roles, business workflows, business components, business entities (objects), and business artifacts as much as possible.
- Identify the main stakeholders (roles) who will interact with the system (e.g. Guest, Admin, Developer, User, etc.) and their corresponding business problems or needs (i.e. their motivation of using the software system), and their current business workflows. Create as many scenarios (real world or domain business workflows) as possible. Create a domain model (a model of real world or domain entities, their properties and their relationships) if necessary.
- If there is an existing or similar system then identify the core components that each stakeholder will interact with (e.g. Accounts, Profiles, Reporting, APIs, Lessons, Videos, etc.) and their corresponding purposes.
- Identify the main tasks that each stakeholder will perform (e.g. Register an Account, Log in System, Create/Edit Profile, Create a Bucket, Generate an API Key, Create/Edit/Delete a Lesson, Create/Edit/Delete a Video, View Bandwidth, etc.).
- Identify the inputs and outputs and create mock-ups (sketches) or capture similar screens for each task. The quickest way to create a mock-up is to find similar existing screens in your system or external systems, and modify them. You can also search for templates of similar features in the Internet, and modify them. You can also brainstorm a new one if you are good at creativity and imagining.
- Build or draw a prototype demonstrating 2 or 3 critical end-to-end workflows (An end-to-end workflow is a sequence of tasks that solves a real world problem completely). Contrast a current business workflow with a selected end-to-end workflow. The quickest way to create a prototype is to find similar existing workflow of of your system or external systems, and modify them. You can also repurpose a business workflow for a prototype. You can also brainstorm a new one if you are good at creativity and imagining.
- Implement a proof of concept related to the selected end-to-end workflow.
- For a complicated system, you may need to implement a proof of concept, build a prototype, and create a work break down structure or product backlog in parallel to ensure that the requirements are technologically and economically feasible.
You have downloaded some M4A audio files.
You want to extract convert them to WAV files to listen to them in other devices that do not support playing M4A files.
- In the Music app on your Mac, choose Music > Preferences, then click Files.
- Copy the path of Music Media folder location. (An example path is Macintosh HD/Users/admin/Music/Music/Media.)
- Click the Import Settings… button.
- In the Import Using pop-up menu, set Import Using = Wav Encoder, then click OK to save the settings.
- Drag M4A files to the Music app.
- Select songs in your library, then click File > Convert > Create WAV Version.
- Go to your library folder (i.e. the Music Media folder location) and copy the WAV files to other devices.
- Delete the M4A files from your library.