How Do You Regain Access to Desktop Running in Oracle VirtualBox?

Problem scenario
You are using Oracle VirtualBox and a CentOS/RHEL/Fedora VM. You stepped away from your VM and now it appears the screen is locked. You do not see the desktop items you had open. You see there may be a new notification and you see the time. You tried to enter Ctrl-Alt-Del, Control-Alt-End, Control-Alt-Insert. None of the key combinations prompted you for your credentials. How do you log back in after the screen saver kicked in on your Red Hat distribution of Linux?

How Do You Build a Flask Application to Return the Price of a Cryptocurrency?

Problem scenario
You want to write a Flask program to display the high and low prices of a given cryptocurrency for a given day. You want the output to include the volume too. How do you do this?

Solution
Prerequisite

This assumes that you have installed Flask and pandas.

Procedures
Run this program. You may want to name it __crypto__.py
Then go to the IP address in a web browser or use curl.

How Do You Keep a Windows 10 Hard Drive Using the Correct Time?

Problem scenario
You have two hard drives in your computer (e.g., desktop or laptop). You boot to each one from time-to-time. One hard drive is a Linux OS and the other is Windows 10. When you switch between the hard drives, your Windows OS has an incorrect time set. What should you do to stop needing to manually reset the time zone each time you boot to Windows?

Solution
1.

How Do You Deal with Forearm, Hand and Wrist Pain from Keyboard Usage?

Problem scenario
You want to prevent hand, wrist or forearm pain from regular computer usage. What should you do to learn more about this and keep your hands/wrists/forearms from hurting?

Possible Solutions
Disclaimer: This is not medical advice. Repetitive motions can cause long-term health problems, and this website is purely for general information. Do not hesitate to consult with a real medical professional for your concerns or pain.

How Do You Use an Ab Roller without Losing Your Grip?

Problem scenario
You have used an abdominal roller but hurt your wrist when you lost your grip. You like how it works your abs, but it feels precarious to use. What should you do?

Possible Root Cause
It could be that you were using a skinny ab roller. We find skinny ones to be more stressful and jerky to use — but not in a way that enhances the workout.

How Do You Troubleshoot a Computer That Will Not Boot to a USB Drive?

Problem scenario
You have a thumb drive with an .iso on it. You want to boot to it to install a hard drive. When you turn your desktop/laptop/PC on, you get “BootDevice Not Found Please Install an operating system on your hard disk. Hard Disk (3F0).” Or you get an error like this “disk error press any key to restart.”

Solution
The USB drive may not be configured to be bootable.

How Do You Troubleshoot the Boto3 Error “AttributeError: ‘ec2.ServiceResource’ object has no attribute ‘terminate_instances'”?

Problem scenario
You are trying to terminate some EC-2 instances. But you see a message like this:

“AttributeError: ‘ec2.ServiceResource’ object has no attribute ‘terminate_instances'”
“AttributeError: ‘ec2.ServiceResource’ object has no attribute ‘destroy_instances'”
“AttributeError: ‘ec2.ServiceResource’ object has no attribute ‘delete_instances'”

What should you do?

Solution
Rewrite the terminate portion to look like this:

ec2.instances.filter(InstanceIds=[’i-0abcd1234′, ‘i-0wxyz9999’]).terminate() …

How Do You Use Boto and CloudFormation to Delete a Stack?

Problem scenario
You want to delete a CloudFormation Stack with Boto. What do you do?

Solution
Run a program like this (but replace “continualstack” with the name of the stack you deployed):

import boto3
cloudf = boto3.client(‘cloudformation’, region_name=’us-west-1′, aws_access_key_id=’AKIAMNOPQRST’, aws_secret_access_key=’FOOBAR1234/ZYXWV987654′)
json_stack=open(‘lampstack.json’, ‘r’).read()
cloudf.delete_stack(StackName=’continualstack’) …