How Do You Choose a User ID or a Group ID in Linux?

Problem scenario
You are configuring UID and GID values in Linux. You want to have some idea of what values to use. What ranges should you target?

Solution
Use an integer between 3000 and 4999 (inclusive) if you have no other requirements. This range is recommended. To learn more about why this range is recommended, see this external posting.

In Object-Oriented Programming What Is an Object’s Operation’s Signature?

Question
You are learning about OOP. You know object’s have operations. You read about operations having signatures. What are signatures?

Answer
An object’s operation’s signature is the composite of these three things:

  1. the operation’s name
  2. the parameter objects the operation accepts
  3. the return value of the operation

(This was paraphrased from page 13 of Design Patterns).

How Do You Troubleshoot Two WordPress Websites when You Expect There to Be Only One?

Problem scenario
You seem to have two versions of a website being hosted. When you log into WordPress and make changes, they aren’t taking effect. You notice that the website you have is duplicated with one older version and one newer version. Both are hosted. You use a VPN or proxy tunnel website and find differences in your website. You want to consolidate these. How do you find out what is going on?

How Do You Troubleshoot “Warning FailedScheduling … default-scheduler no nodes available to schedule pods”?

Problem scenario
You are running EKS in AWS. You get this message “Warning FailedScheduling … default-scheduler no nodes available to schedule pods”. How do you troubleshoot it?

Solution
Verify your nodes are healthy with this command: kubectl get nodes

If you are using EKS, you may need to create nodes. Here is a command to do that (but replace “foo” with the name of the EKS cluster that you have,

How Is a Process Different from a Daemon in Linux?

Question
How is a process different from a daemon in Linux?

Answer
A process subsumes a daemon. A daemon is a process that runs for a long period of time (e.g., the duration the server is on). It may require no interaction with a user. A logging process or a web service like Nginx are examples of daemons.

This answer was paraphrased from page 34 of The Linux Programming Interface.

What Is a Decorator in I.T. or DevOps?

Problem scenario
You have read about decorators in object-oriented programming and in Python. Is there a disambiguation of what a decorator is?

Solution
In object-oriented programming, inheritance allows for an object to change from its class at compile time (according to page 201 of Programming Interviews Exposed). In OOP, the decorator pattern is a structural design pattern (according to the inside of the front cover of Design Patterns) and is a way to modify an object in OOP at run-time (according to page 201 of Programming Interviews Exposed).

How Do You Save All the Emails in Your Gmail Account Locally?

Problem scenario
You want all the emails in your gmail account to be saved. You want the text of the messages searchable, and you want to save the attachments. How do you do this?

Solution

  1. Export your messages to an .mbox format. Refer to the “email” option here: https://support.google.com/accounts/answer/3024190?hl=en
  2. Install Thunderbird.
  3. Install the ImportExportTool NG add-on in Thunderbird.

How Do You Troubleshoot Vagrant when You Receive “The box you’re attempting to add doesn’t support the provider you requested”?

Problem scenario
You run “vagrant up”, but you get one of the following error messages:

The box you’re attempting to add doesn’t support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn’t
simply misspell it.

If you’re adding a box from HashiCorp’s Vagrant Cloud, make sure the box is
released.