You support an existing application and its servers. It is experiencing slowness as the users are complaining about its performance. What are some potential root causes of this slowness?
- The slowness is caused by the client. A user’s workstation has something wrong with it (e.g., malware, or it is trying to run too many applications at once).
Continue reading “What Can Cause an Application to Run Slowly?”
You have heard about VPCs and subnets. What are the differences between these two?
A subnet is a subdivision of a network. Internal to an enterprise network, you may divide the network into different addresses with gateways, routers, bridges and subnet masks. The subnet mask (in CIDR (classless inter-domain routing) notation may be /28, /24, /10 etc.
A VPC ordinarily has its own NACLs and firewalls associated with it;
Continue reading “What Is The Difference between a VPC and a Subnet?”
You want to avoid importing any modules in Python. You want to have a way to test if a string is a palindrome is four lines of code. What do you do?
return all(a == b for a, b, in zip(
map(str.lower, filter(str.isalnum, s)),
map(str.lower, filter(str.isalnum, reversed(s)))))
# The above four lines of code were taken from page 78 of Elements of Programming Interviews in Python. …
Continue reading “How Do You Write a Python Program without the import Statement That Palindromically Tests a String in Four Lines of Code?”
What are guardrails in the I.T. industry?
A measure, technology or authentication policy in place to prevent problems in an enterprise network or with a application. With guardrails, a server or web application is protected from hackers or accidental misuse. It is a common metaphor based on highway guardrails. To learn more, see this posting:
There is a specific product called GUARDRAILS that detects,
Continue reading “What Are Guardrails in I.T.?”
You want to use Python to get data from BTC transactions. You do not want to use “import requests”. What do you do?
This assumes you have installed the Bitcoin pypi package: pip install bitcoin
If you need assistance installing pip, see this posting for Ubuntu or this posting for a Red Hat derivative.
Continue reading “How Do You Use Python to Retrieve Information about Bitcoin Transactions?”
You want to use the AWS PaaS offering for exposing an API and having it be able to scale and handle lots of users easily. How do you use Amazon API Gateway?
Overview: This is a proof-of-concept. You could use different API types (e.g., web socket APIs for persistent applications like a chat window).
This assumes you have a working Lambda function configured and you know its name.
Continue reading “How Do You Use an Amazon API Gateway?”
You want to use Nomics to retrieve cryptocurrency prices. What do you do?
Get an API key. It is free here: https://p.nomics.com/pricing#free-plan
(You do not need to provided credit card information to obtain one.)
Run this Python program but replace YOUR_KEY_HERE with the key:
resp = requests.get(“https://api.nomics.com/v1/prices?key=YOUR_KEY_HERE&format=json”)
for item in resp.json():
if item[’currency’] in [”BTC”, …
Continue reading “How Do You Use Nomics to a Retrieve Cryptocurrency Prices?”
You want an overview of how SSH works because it seems confusing. You want to know exactly what happens when you run an SSH command like ssh firstname.lastname@example.org. Where can you find a precise explanation on using ssh as well as some background information on SSH?
SSH is named after the secure shell way of remotely connecting to another server using encryption.
Continue reading “How Does an ssh Command Work in Detail?”
You want to find the historic data for a given cryptocurrency using Python. You want to print out the low, high, open and close prices on a specific day. How do you get data for one specific date?
This assumes you have installed pandas: pip install pandas
Run this program:
Usage instructions: Change the “2016-12-25” the value (assigned to “date_to_see”) to the day you want to view. …
Continue reading “How Do You Retrieve Cryptocurrency Data for One Day in the Past Using Python?”