Streaming OpenAI API Response from NodeJS to browser client running on nginx-proxy

ChatGPT from OpenAI has created a major impact in each of our Lives to increase the Productivity. Majority of the industries has already leveraging the Power of AI in their applications through the API’s. Let’s see how to use streaming api feature in the backend to provide a good experience to the user. As you may noticed that when you ask something to ChatGPT from the official UI, the responses are streamed (text are printed character by character slowly). This is not an animated one but the as soon the data is processed by the AI Server, the responses are streamed back immediately. ...

January 26, 2024 · 3 min · Nirmal

Software related Challenges and Solutions

I am tracking all my software related challenges here and proposed solution in short form. For some challenges i already arrived solution and most of them are based on google apps script. Later this can be used for generating new ideas. Note : 👍 denotes the solution which i have arrived at. Most Creating Content with Regular Work Schedule It’s been a long time challenge for me to create content during the work hours. How to allocate dedicate hours for creating content. ...

October 15, 2023 · 4 min · Nirmal

Hosting a Simple Page without HTTPS for old device

About a decade ago, the majority of websites operated on the HTTP protocol, with only a few financial and banking-related sites utilizing HTTPS. However, starting around 2018, having a non-HTTPS website began to be considered unsafe for visitors, and it would trigger a notification popup. Regrettably, there are still some older devices that may struggle with HTTPS due to expired server certificates or outdated operating systems that lack support for HTTPS. ...

October 6, 2023 · 2 min · Theme PaperMod

API Integration Notes for Poland Health & Medical Service P1 Platform— CSIOZ

The National Centre of Healthcare Information Systems in Poland Proposed a new Electronic Platform named P1 for Collecting, Analysing and Sharing Digital Resources about Medical Events. Accordingly they built a platform named P1 so that healthcare providers can send the data to common platform and it also enables Patient to access their medical data using the official IKP Site. It’s mandatory that all Health Providers in Poland need to integrate their System with the P1 Platform API Service. In this post i would like to share some of the process involved in integrating these API’s. ...

January 16, 2023 · 5 min · Nirmal

Power Automate - Custom Connector Independent Publisher - My Development Workflow

Recently the Power Automate Open Source Team Introduced the Independent Publisher Program. Being working with custom connector for more than a year, i was excited with this announcement and started developing some of the connectors based on my experience with some of the popular API Services like Xero, FreeAgent,Neto (Maropost), ITGlue etc. Here my evelopment Workflow Workflow Expectations : There should be one branch in the forked repository where i can add any number of connectors without any restrictions, purey for the Local Development Purposes. Unlike other repo, these repositories contains different conectors contributed by the community and organized in separate folders. We should not modify/change someone’s connector Once the development is done, we need to submit a PR only for the respective connector where the development is done. Implementation Here the repository which i will be using in this workflow ...

September 30, 2021 · 3 min · Nirmal

Search Light for AWS Elastic Beanstalk

AWS Elastic Beanstalk Platform Provides a simplified approach to provision and scale EC2 Instances on the AWS Cloud. This is the AWS response for the Paas to deploy the codebase without worrying about the Infrastructure. Even the reverse Proxy, Load balancing and Auto Scaling can be configured automatically. If you want any customizations, you can customize them via extensions as per the standard procedures laid out by AWS and this is only for advance use cases and this will also end up with issues if this is not configured properly. In this post i have summarized all my learnings on the EB Environment which will be searchlight for people who struggle with this service. ...

August 15, 2021 · 9 min · Nirmal

Lessons learnt from tinkering with Electric and Electronic Devices

Getting into Electronics I was always fascinated from the early age when i look at the lights, moving toys. As far i remember at the age of 4, my father bought a battery bike toy (wired). It takes a medium size battery with a long wire and it has 2 controls to move forward and backward. The design of the bike is awesome and i was given only few mintes to play with and my father keep them in the locked cupboard. ...

August 10, 2021 · 7 min · Nirmal

Creating a Azure APIM Subscription Programmatically

Introduction I have been searching for a way to create subscrition accounts for Azure APIM programmatically using NodeJS. I hardly find any example as most of them are in Powershell based scripts. In this post i would like share the snippet for the same. Challenge Then i was experimenting with the azure-sdk-for-js and browsed through the library to understand the implementation and tried but it failed due to auth related issues. ...

July 24, 2021 · 2 min · Nirmal

Google Cast and Apple Airplay - Behind the Scene

Casting Audio and Video from Smart Phones/Tablets are no more a feature but it has become a necessity as users have multiple receiving clients (Smart TV, Wifi Speakers etc). In this post would like to share my thoughts on the most popular casting functionality on Android and iOS, the Google Cast and Airplay from Google and Apple respectively. Miracast is also one of the popular technology mostly for Mirroring Video/Displays. But it has gained less traction on the Smart Phone users. I am not going into the details of the components but a high level view of these 2 technologies and how they dominate my usage on a daily basis. ...

May 17, 2021 · 4 min · Nirmal

Decade old Tablet iPad 2 still works great

iPad 2 - The Popular Tablet made by Apple I am typing this post on a decade old Tablet iPad 2 (64 GB) which still works good with some basic features. Apple if popular in making devices obsolete after few years. It's not their fault. As the technology grows at rapid speed it's tough for the developers to develop software to support backward compatibility for these old Hardwares. I bought this tablet from one of my friend on the day before Steve Jobs left this world. What a beauty that this Tablet still works and the standby is great. ...

May 12, 2021 · 2 min · Theme PaperMod