At Qxf2 services, we get to pick and work on any problem area (eg: Onboarding, Training, etc.) based on our interest. The one I take care of is ‘Employee Engagement. As a part of this initiative, I started congratulating employees on their work anniversary in the form of a Work Anniversary Image. Why Work Anniversary Image Skype Bot using AWS […]
Work Anniversary Image – Skype Bot using AWS Lambda
Flask app with a GraphQL API, JWT Authentication and SQLAlchemy
I wrote (and open sourced) a Flask app with a GraphQL API that was implemented using Graphene. The application is similar to the official Graphene example but includes the following: 1. JWT authentication 2. An example of filtering 3. A minimal amount of data for people to tinker with the app This article is suitable for: a) Testers looking to […]
Mocking date using Python freezegun library
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 […]
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 […]