A lot of the articles in this series take advantage of a feature of Python which allows us to performance test our code, and I finally wanted to get around to explaining how it works and how to use it. In this article, I cover three main techniques: brute force, timeit, and cProfile. Personally, I performance test my code with ...
Read More »The Controversy Behind The Walrus Operator in Python
If you haven’t heard, Python 3.8 features a rather controversial new operator called the walrus operator. In this article, I’ll share some of my first impressions as well as the views from all sides. Feel free to share some of your thoughts as well in the comments. Understanding the Walrus Operator Recently, I was browsing dev.to, and I found a ...
Read More »How to install Anaconda or Miniconda in Colab
Colab is the Google’s platform for working with Python notebooks and practice Deep Learning using different frameworks. It is a powerful platform, there is availability of GPUs or TPUs, it allows to use your Google Drive space for notebooks and data, has a friendly user interface and lots of useful features, but in order to install/update Python packages, it comes ...
Read More »Flutter App Automation Using Appium Flutter Driver
Flutter has been creating waves in the app development space since its launch. The reason is simple, it solves the problem of creating two different codebases for a single app to run on Android and iOS devices. Some experts say that Flutter which was launched by Google is to counter React Native which is used by Facebook. Nevertheless, this is ...
Read More »Create a Minimal Custom Gutenberg Block in WordPress
I’ve started playing with the new Gutenberg editor in WordPress, and the experience is a lot more modern than the old TinyMCE editor that’s been around for a good 15 years (and I’ve had blogs for almost that long!). Instead of editing all the content of the post at once, the Gutenberg editor works with blocks of content that can ...
Read More »How to Print on the Same Line in Python: Print and Write
As someone who teaches a lot of beginner programming content, I occasionally stumble upon questions like “how do you print on the same line in Python?” Luckily, I have an answer to that! In short, there are two main ways to print on the same line in Python. For Python 2, use the following print syntax: print "Williamson",. For Python ...
Read More »How to Format a String in Python: Interpolation, Concatenation, and More
It’s been awhile since I’ve written one of these “how to” articles, but I’m back at it. This time, I want to talk about string formatting using techniques like interpolation and concatenation. In other words, it’s time to finally learn how to format a string in Python Problem Introduction Whether we’re trying to prompt a user or output a nice ...
Read More »Ruby on Rails Developer Series: Ensuring Security is Covered in Your Application
Welcome to the last and fourth blog post in my Ruby on Rails Developer Series. In this part, our goal is to go over some major security themes to ensure best practices. We will piggyback from the project you have been building in the other parts and use project-specific scenarios that will help secure the application. The series theme is ...
Read More »Ruby on Rails Developer Series: Creating a Docker Container Around Your Application
Welcome to the third post in the Ruby on Rails Developer Series. In this part, our goal is to add a Docker container to our application so we can deploy our packaged application on a server. This will enable us to create a continuous integration process while building our environment in a matter of seconds. We’ll cycle through learning about ...
Read More »