Programming

Parsing JSON file with Go

In this tutorial we will learn about parsing JSON file with Go, nothing to worry about as we will try to keep this very simple, basic JSON parsing with Go we could say but we will provide enough information to familiarise yourself with Go structs, functions and a simple way of reading JSON files content. This example will contain two files, a JSON file called appinfo.json and a Golang file as well called main.go, file that will contain our application code. Many of you may find Golang confusing or maybe you are just starting now to code with Go which […]

Category: Golang | Published: 30/05/2019 | Updated: 19/07/2019

Go Date and Time Formatting

Golang Date and Time formatting can be achieved quite easy and can be very handy when for example we need to name a database, database table, table field or maybe even a file. It really doesn’t matter what you need it for but in this particular short tutorial we will explain how to format date and time using Golang, in the end you may combine these as you want in order to achieve the right format for your project. The code used in this tutorial has been tested with Go 1.12.2 but it should work just fine with any other […]

Category: Golang | Published: 07/04/2019 | Updated: 23/04/2019

Send email with Python and smtplib

Send email with Python and smtplib package is just another quick tutorial from Tufora where we will show you in just a few steps how easy is to use Python for sending emails from your applications. This solution uses no more than five lines of code and can be easily implemented within your Python application anytime being defined as a Python module using import statement or simply directly to your main application code. The code below has been tested using Python 3.7 but it can be easily adapted and used on older or newer versions as long the smtplib module […]

Category: Python | Published: 14/11/2018 | Updated: 22/07/2019

List users from multiple AWS accounts using Python

List users from multiple AWS accounts using Python is our next tutorial where we will learn how to access AWS APIs using Boto3 package and also how to use pprint package to list all results in a easy to read format, we heard about the term human readable too but we think is not the right way of saying it, at least not in this particular case. Please rest assured that we won’t talk or debate in this tutorial about what Cloud Hosting provider is the best or not and we will simply resume talking about how to get all […]

Category: Python | Published: 13/11/2018 | Updated: 14/11/2018

Python Try Except Statement

Python Try Except statement can help us to handle possible errors within our code, below we will explain its component and also how to use this Try Except Python statement in your code. Let’s try to understand how to use this Python statement and why is this so important in our day to day Python coding. Statement components The first block called try lets you test a block of code for any errors that may appear in your code. Second block called except will handle basically the error that may exist. The third block named finally it is optional and […]

Category: Python | Published: 12/11/2018 | Updated: 12/11/2018

Multiple DNS lookups with Bash

Multiple DNS lookups with Bash scripting for a predefined list of domain names, more fun but this time using our bash scripting skills. We all know and must agree that Bash is still a very powerful tool when properly used, we can script pretty much anything at the OS level from small tasks like removing files, truncating logs or initiating backups up to more large scale tasks like deploying code locally or even on remote servers. In this really small tutorial we will guide you how to perform multiple DNS lookups by simply scripting this task in Bash. Table of […]

Category: Bash | Published: 07/02/2018 | Updated: 27/11/2018