Open in app

Sign In

Write

Sign In

Prince Francis
Prince Francis

18 Followers

Home

About

Jun 30

Cost-effective Deployment of Angular Applications on Cloudflare Pages using Bitbucket Pipeline

Why waste money and resources deploying static build files of Angular/React applications to a cluster? Discover a cost-effective solution that allows you to serve static files with minimal billing. In this blog post, we’ll explore how to deploy an Angular application to Cloudflare Pages using Bitbucket Pipeline. Step 1: Build the Project To begin, follow…

Cicd Pipeline

3 min read

Cost-effective Deployment of Angular Applications on Cloudflare Pages using Bitbucket Pipeline
Cost-effective Deployment of Angular Applications on Cloudflare Pages using Bitbucket Pipeline
Cicd Pipeline

3 min read


Nov 12, 2021

Steps to deploy a node application into Kubernetes EKS

In this tutorial We’ll deploy a simple node-express application into EKS Configure nginx-ingress so that we can access via HTTP Configure ssl/tls certificate so that we can access via HTTPS Link to GitHub repository https://github.com/princekf/node-kubernetes-eks-deployment References https://www.youtube.com/watch?v=_jEgzqyUWKE https://github.com/antonputra/tutorials/tree/main/lessons/046 Prerequisites

Eks

5 min read

Steps to deploy a node application into Kubernetes EKS
Steps to deploy a node application into Kubernetes EKS
Eks

5 min read


May 25, 2021

How to split Swagger (OpenAPI) spec into small files ?

To manage and collaborate the API documentations of a large project, we follow the below steps Write details of each endpoints in a separate yaml files. Write each models in separate yaml files so that we can reuse it. Combine all the yaml files using `swagger-cli` Serve the swagger doc…

2 min read

How to split Swagger (OpenAPI) spec into small files ?
How to split Swagger (OpenAPI) spec into small files ?

2 min read


May 17, 2021

AWS S3 — Serverless image upload and thumbnail creation.

Scenario — Our application has a different authentication mechanism for login. Google, Facebook, custom login etc. Customers upload images after login Storing images in Amazon S3 Generating thumbnails for each images to use in the list view Traditional way This approach has some drawbacks Bandwidth usage of application server — Since we upload the…

Image Processing

6 min read

AWS S3 — Serverless image upload and thumbnail creation.
AWS S3 — Serverless image upload and thumbnail creation.
Image Processing

6 min read


Aug 8, 2020

Processing time in c/c++ — solution for year 2038 problem in 32 bit machine

How to find the difference between 2 dates, which are in string format ? The solution was very simple, after execution of below code snippet we will get the required result in the variable dates tm start_parsed = {}; strptime("2020-01-21 05:00", "%Y-%m-%d %H:%M", &start_parsed) tm end_parsed = {}; strptime("2038-12-23 05:00", "%Y-%m-%d %H:%M", &end_parsed) time_t…

Cpp

2 min read

Processing time in c/c++ — solution for year 2038 problem in 32 bit machine
Processing time in c/c++ — solution for year 2038 problem in 32 bit machine
Cpp

2 min read


Jun 13, 2020

How to Setup DialogFlow V2 Authentication Programmatically with java/android

First, you need to download the key json file into your computer from google cloud console. One simple solution is to export the absolute path of key json file as below export GOOGLE_APPLICATION_CREDENTIALS=absolute/path/of/key.json If you are not satisfied with the above solutions, then do it programmatically from java. …

Dialogflow

1 min read

How to Setup DialogFlow V2 Authentication Programmatically with java/android
How to Setup DialogFlow V2 Authentication Programmatically with java/android
Dialogflow

1 min read


Jun 10, 2020

Dialogflow — Detect intent with streaming from mic and output as streaming into speaker — Raspberrypi + Typescript

Checkout the project from github and start using it, if you are familiar with DialogFlow. Create a GCM Project in google console. Go to google console dashboard and create a new Project. I created a project with name `Dialogflow-Test`

Dialogflow

3 min read

Dialogflow — Detect intent with streaming from mic and output as streaming into speaker —…
Dialogflow — Detect intent with streaming from mic and output as streaming into speaker —…
Dialogflow

3 min read


Jun 3, 2020

Multi tenant application using Typescript, Express and MongoDB

Let us create a multiple database application (multi tenant application) Problem : Create an application to manage schools and colleges. Each school/college data should save in separate database. Also students in each years should save in separate collections. I solved these problem by using `mongoose.connection.useDb` …

Typescript

1 min read

Multi tenant application using Typescript, Express and MongoDB
Multi tenant application using Typescript, Express and MongoDB
Typescript

1 min read


Apr 22, 2020

Passing a callback function from Python to C

To communicate between python and C, we have a library `ctypes` Step — 1 : create a c program, in which one function receives another function pointer as parameter. In the below example, the function divide receives another function pointer as first parameter, which receives 2 parameters, quotient and remainder. …

Python3

2 min read

Passing a callback function from Python to C
Passing a callback function from Python to C
Python3

2 min read


Apr 20, 2020

Concatenate large csv files using python

If your csv files are very large say more than 100MB, then it would be very difficult to concatenate the csv files using conventional methods. In Python we can use the library shutil to concatenate multiple large csv files into a single csv file. Sample code is import shutil csv_files = ['source1.csv', 'source2.csv', 'source3.csv', 'source4.csv', 'source5.csv'] target_file_name = 'dest.csv'; shutil.copy(csv_files[0], target_file_name) with open(target_file_name, 'a') as out_file: for source_file in csv_files[1:]: with open(source_file, 'r') as in_file: # if your csv doesn't contains header, then remove the following line. in_file.readline() shutil.copyfileobj(in_file, out_file) in_file.close() out_file.close()

Python

1 min read

Concatenate large csv files using python
Concatenate large csv files using python
Python

1 min read

Prince Francis

Prince Francis

18 Followers

Providing simple solutions for complex problems.

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams