Linux

Dialog Boxes with Python

Dialog boxes are a commonly used GUI element to provide feedback to the user and also to prompt the user for information or to take an action. Some examples of common dialogs are:

  • A simple message: "Press OK to continue"
  • Ask for "OK or cancel"
  • Ask for "Yes, no or cancel"

We will look at several different methods for creating dialog boxes in Python including cross-platform options like tkinter and PyAutoGUI, as well as a couple Windows specific options.

SSH Tips

The ssh application is essential to just about everyone. Are you using it as efficiently as possible? Check out these tips and config settings that will make your life easier, including aliases, specifying identify files, forwarding ports, and using jump hosts.

Docker Basics

Docker is useful for containerizing and managing processes. It is a great tool for developers and devops teams. Docker is good for creating reproducible environments. It is easy to customize images and document how an environment should be configured. We will look at how to:

  • Install Docker
  • Manage images, containers, and volumes
  • Create custom images
  • Pushing images to DockerHub and running custom registry
  • and more!

Get Password in Console with Ruby

In Ruby 2.3, they introduced a getpass method on the IO::console class. There are no dependencies since it part of the standard library, but it's only available in versions higher than 2.3. For older versions, we'll look at an alternative method. The getpass method is similar to gets except it will not echo back what you are typing in. This is good for getting a password without printint it to the screen when you type it in. This will demonstrate how to use the method. See the official documentation for IO::console#getpass for more details. We will also look using $stdin.noecho() to wrap Kernel.gets to get a password.