How Do You Get a Table in HTML/Javascript to Display Only The First n (or 10) Rows?

Problem scenario
You have a web page with a table. It uses HTML and Javascript. You want only a sub-portion of the rows to be displayed and allow the user from the front-end to click a drop down menu to see more results. What should you do?

Possible Solution #1
Have two blocks in the .html file. Have the top one define a function that accepts a parameter and filters the table results if/when called.

How Do You Install Open Broadcast Studio on Fedora Linux?

Problem scenario
You want to install a feature rich screen capture video software program that can record via a camera too. What do you do?

Solution
Prerequisite
Install snap: sudo dnf install snapd

sudo snap install obs-studio

# If you are using Fedora 32, run this command:
sudo dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-32.noarch.rpm

# If you are using a different version of Fedora, …

How Do You Troubleshoot the Error Message “libQt5svg.so.5 cannot open”?

Problem scenario
You try to run obs (Open Broadcaster Studio Software) on Fedora, but you get a message like this:

/var/lib/snapd/snap/obs-studio/1195/usr/bin/obs: error while loading shared libraries: libQt5Svg.so.5: cannot open shared object file: No such file or directory

What should you do?

Solution
Run this command:

sudo dnf install qt5-qtsvg …

How Do You Troubleshoot a Computer Camera That Is Not Rendering Images?

Problem scenario
The built-in camera of your laptop or desktop is not working. What should you do?

Possible Solutions

  1. Did you slide the cover open on the camera lense?
  2. Is your laptop connected to a KVM or other monitor? Could this KVM or other monitor have a camera of its own with a cover on the camera?

What is a Recommended Practice for Handling Asynchronous Requests with Long-Running Processes with Flask?

Problem scenario
You are designing a Flask application with Python running some long-running processes. You want to handle the requests asynchronously. The individual requests will have a duration of more than one hour. What is the recommended way of handling this?

Solution
Use a task queue like Celery or RQ (Redis Queue).

Sources:
https://stackoverflow.com/questions/42790362/how-to-handle-long-sql-query-in-flask

Flask API app for long running process?

How Do You Use Custom Resource Definitions in Kubernetes?

Problem scenario
You want to extend Kubernetes’ functionality. You want to use CustomResourceDefinitions. You can view API resources by running “kubectl api-resources”. You want to add to the list. How do you use a CRD?

Solution

  1. Create a file called contint.yaml with the following content:

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: contintexamples.continualintegration.com
spec:
group: continualintegration.com
names:
kind: ContintExample
plural: contintexamples
listKind: ContintExampleList
singular: contintexample
scope: Namespaced
versions:
– name: v1
# Each version can be enabled/disabled by Served flag. …

In The Context of Replication Clusters or Synchronization Backups (Either Cold, Warm, or Hot), what is a Sink?

Question
When you have high availability of servers, you have seen diagrams with a “sink” server. What does the word “sink” signify?

Answer
A sink, homophonic with “sync”, is a secondary server in a cluster or replication configuration. That is, there is a primary server that is actively processing transactions of databases or registering changes to files. This primary server may replicate changes over to a secondary or sink server.

How Do You Troubleshoot “ImportError: No module named ‘pandas'”?

Problem scenario
From a Python command line, you get this message:

Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named ‘pandas’

What should you do?

Solution
Prerequisite
You need pip to be installed. If you need assistance, see this posting.

Procedures
Run one of these commands:

pip install pandas

pip3 install pandas …