Recently, I used freezegun library to mock date for writing unit test for microservices endpoint. This is a fairly new library and I could not find many examples online. So, I wanted to blog about my experience of using this library. Freezegun library allows our Python tests to travel through time by mocking the datetime module. Once the decorator or […]
Mocking date using Python freezegun library
Writing end to end test for microservices based architecture used for posting skype messages
Recently, I have attempted to test microservices based architecture where the AWS Lambda function consumes messages from a microservices endpoint and posts them to the skype channel. I have made an attempt to add most of the validations for the flow. I have included this end-to-end test in the below blog. Background: The above architecture explains, microservices based architecture which […]
Handling set new password prompt with Paramiko
Why this post? I hit an issue at one of our client recently – beginning from the latest version of the application, the remote server will prompt for a new password in the first login attempt, the password that comes out of the box will take you to the set new password prompt where you need to set a new […]
Holiday Reminder Skype Bot
Qxf2 services provides testing services for startups, a majority of our client base is offshore so as to keep them informed about the days Qxf2 is going to be on PTO (public and optional holidays) we follow a practice of notifying them 3 to 7 days in advance. This helps in proper planning and estimating the work. Every year, Qxf2 […]
Optimize running large number of tasks using Dask
I want to share my experience of using Dask tasks and certain best practices/optimizations I implemented. Having some prior understanding about Dask is required to follow along. For implementing parallelism, I used Dask futures, one of the Dask collections. I referred Dask best practices on how to improve performance and incorporated some of them to my project. Hope you find […]
Visualize chess heatmap using Dask and Coiled
I used Dask and Coiled to make some Python code I had written run in parallel. In this blog, I have described the approach used for implementing parallelism using Dask running on a coiled cluster. I had developed a Python program to generate control heatmap images for chess games. A control heatmap (a term I made up!) shows how many […]
Adding a pre-commit hook to make sure the important data do not get leaked.
One of the biggest mistakes by a human being is to expose credentials/important data unknowingly. To avoid that we should be looking for some solution. So in this blog, I am going to share the solution to avoid such mistakes. we can commit other changes we want, without any issues. What is the solution? Pre-commit hook is the solution to […]
Extract message from AWS CloudWatch log record using log record pointer
This post shows you a short example of how to use the CloudWatch log record pointer to extract message from the AWS CloudWatch log record. Background Recently I have written end to end test for skype sender lambda. In the end to end test, I have compared message from AWS SQS queue with AWS CloudWatch logs. I have used log […]
How to conduct ‘Round 2’ interviews at Qxf2
Qxf2 reserves Round 2 of our three-round job interview solely to evaluate if the candidate can learn and apply new concepts quickly. During this round we use one of approximately fifteen exercises. This post goes into great detail on how an interviewer is supposed to conduct Round 2 when using the ‘Fork a repository and fix an error’ exercise. Interviewers […]
Practice your keyboard shortcuts
This blog helps you to use keyboards in your daily routine and how can you improve it. Here, I have created a set of exercises by observing the daily operations testers at Qxf2 perform on vi editor, Git bash and Visual Studio Code. If you are in the habit of using Unix based systems or an IDE. Why this post? […]