An API gateway serves as an intermediary between the client and the backend services by providing a unified entry point for all API calls. It accepts incoming requests from clients, routes them to ...
API gateway
Tooling for image segmentation
This is an attempt to do image segmentation using machine learning and FreeSurfer. The brain tumor segmentation (or BraTS) dataset was used. The model is based on a volume-to-volume Generative Adve...
Data-driven investigation of Java memory issue of an actual application (Part 1)
When developing, we seldom see serious memory thrashing issues. I was fortunate enough to see an issue with an application that was built many years ago. (Note: I was not the developer of the app. ...
Aspects
Aspect-oriented programming (AOP) is a programming paradigm that separates (or decouples) out cross-cutting concerns in our objects. It’s common to see logging messages scattered in various places....
stdc++.h seen in competitive programming posts
If you see #include <bits/stdc++.h>, this is not a standard header. You see this often in competitive programming posts. You may have trouble compiling your code as a result. The solution is...
Survey reliability (round 2)
The original formulation for Cronbach’s alpha takes this form: [\alpha = \frac{N}{N-1}\left(1 - \frac{\sum_{i=1}^{N} \sigma_{y_{i}}^{2}}{\sigma_{T}^{2}}\right)] , where $N$ represents the number ...
Base64 to image
Write base64 image data into a PNG: import cv2 import numpy as np import base64 data = "UklGRpoAAABXRUJQVlA4WAoAAAAQAAAADwAABwAAQUxQSDIAAAARL0AmbZurmr57yyIiqE8oiG0bejIYEQTgqiDA9vqnsUSI6H+oAERp2HZ...
Survey reliability
Surveys are constructed from carefully chosen questions to gather information from some group of people. Quite often, it’s not enough to just ask a single question. Surveys usually consist of multi...
Git "fatal: Out of memory" Error
If you see the below when trying to clone a git repo, then there are a few things to try: remote: Counting objects: 690, done. remote: warning: suboptimal pack - out of memory remote: fatal: Out o...