Langchain for LLM application development
14-August-2023
5 minutes read
This is a personal notes from the course Langchain for LLM application development. This one of the short courses offered by the Deeplearning.ai. Used Azure OpenAI for the workbooks, instead of OpenAI.
Multi architecture builds of Docker images
26-July-2023
4 minutes read
It is possible to build a docker image for multiple architectures using the same Dockerfile. In this article, will be explaining why you need to do this, how to do it and where to use it.
Huge docker raw file on mac
08-November-2022
3 minutes read
Docker desktop on Mac creates a huge file (`docker.raw`) in it's data folder. I spent some time in unravelling the mystery, so documenting for future me.
My productivity hacks - gitconfig
10-August-2022
5 minutes read
Summarizing some of the configuration that i like and follow in managing my git repositories.
Reflections on building an Enterprise POS
03-June-2022
7 minutes read
I was part of a team that built and rolled out POS machines to around 1000 stores. Sharing some of my key take aways from that engagement.
Experiences with Strangler fig approach using Change Data Capture
01-March-2022
10 minutes read
Summarizing my experiences in one of my re-platforming project. Keeping the monolith application in tact, we had to slice out a new service and keep the data in sync.
What I did to become AWS certified 😎
04-December-2021
4 minutes read
My experiences and learnings when i worked on to get my AWS certification. I recently passed the AWS SAA certification. Penned down my learnings and experiences along the way
Micro-services Patterns. Saga - to music or to dance?
10-June-2021
4 minutes read
Saga pattern is useful to trace a distributed transaction across various micro-services. This post summarizes the 2 patterns of saga and explains a event storming for a sample use-case
Slicing Microservices
02-April-2021
5 minutes read
Some ideas to go about in designing micro-services. How to slice them and some general conventions
Scaling Applications Using Micro-Frontends
22-January-2021
10 minutes read
When starting a project with Micro-Frontends, here are some typical problem that require solving and some possible solutions.
ACE with React
01-August-2020
4 minutes read
Atlassian connect express comes by default with handlebars, this post describes how to make it work with a SPA.
Centralized error handling in Express applications.
10-April-2020
4 minutes read
Handling exceptions in an express application, responding back with standard error response.
Logging in Golang projects
18-October-2019
5 minutes read
A log abstraction in go-lang projects, that can then be used to log common information. This also hides the log library inclusion, making it easier to swap out the library for a different one.
Add Redux custom middleware dynamically
12-April-2018
5 minutes read
Redux provides options to add behaviour through middlewares. Here is an example of dynamically adding middleware to the store.
Start nginx when upstream is unavailable
22-March-2018
4 minutes read
nginx will not start if one of the defined upstreams is not available. Here is a workaround to get through with those situations.
Dealing with SOAP in clojure
16-February-2018
4 minutes read
Dealing with SOAP in clojure is not very straight-forward due to the lack of framework support. This post explains how to perform SOAP call using basic Java libraries.
Asynchronous calls in React component
11-September-2017
2 minutes read
React documentation suggests to use componentDidMount for async calls. Here is the explanation of why you shouldn't do in constructor or in componentWillMount.
Flyway migrations in lein clojure
16-July-2017
3 minutes read
Integrating flyway migrations to compojure apps. Flyway is a popular Java based database migration tool. This post describes about integrating flyway seamlessly with lein compojure ring stack in clojure.
Card slider using CSS Keyframes
26-May-2017
2 minutes read
Slider animation using css keyframes
Storing a function in the Redux store
18-May-2017
2 minutes read
Redux state can be very useful to share data across the application. This post is about storing a function inside the redux store.
Mock toLocaleString in Jest
01-February-2017
2 minutes read
Found an issue while testing toLocaleString and other related JS prototype function. Described here is the way to mock them.
Spring security session timeouts
25-September-2016
2 minutes read
Setup session timeouts in spring security. This will explain how to setup the idle timeout and also the max timeout for separate sessions.
Angular resource and http interceptor
18-July-2016
3 minutes read
This post describe about the use of angular resource library along with http interceptor.
Post browser logs to server in an Angular app
25-June-2016
2 minutes read
This post describes about posting all the browser errors in an angular application to an endpoint. This will be helpful to analyse or debug issues.
Expanding Amazon EBS Volume in a EC2 instance.
04-February-2016
2 minutes read
Even after increasing the size of the EBS volume in the AWS console, the actual size of the EBS wasn't increased. Have to follow the following steps to grow the EBS size.
Set deployed Git revision using Capistrano 3
03-January-2016
2 minutes read
While deploying Rails application using Capistrano 3, recording the current deployed git revision to be used by Rails applicaiton.
UrlGenerationError after upgrading to Rails 4.2
09-December-2015
2 minutes read
On a REST model new action, form_for tag breaks and raises UrlGenerationError after upgrading to Rails 4.2
Integrating CKEditor with Rails asset pipeline.
27-May-2015
3 minutes read
Integrating CKEditor plugin into rails asset pipeline.
Deploying Jekyll site for Github pages through rake script
31-August-2014
3 minutes read
Deploying jekyll blog or site for Github pages using rake script.
Integrating Netflix Hystrix to a Spring Application
15-July-2014
3 minutes read
Hystrix is a latency and fault-tolerance library from Netflix. This post describes how to integrate it with Spring Aspects to make the implementation simpler.
Testing APIary using Dredd.
02-July-2014
2 minutes read
Test API blueprint mardown files by simply hosting them on GitHub and setting up a pipeline in Travis CI.
Making HTTPS call using Apache HttpClient.
27-June-2014
3 minutes read
Perform Https calls from server using Apache HttpClient library.
Gradle, Spring MVC App.
15-June-2014
3 minutes read
A skeleton sample app demostrating gradle set up with Spring MVC along with basic logging and deployment in tomcat environment.
Cross Site HTTP(S) Requests - CORS Issue
02-June-2014
3 minutes read
Some tried out solutions for the cross site request issue. Should be a good place to look out for which solution to be used under a circumstance.
Re running testNG failed times n times.
01-May-2014
3 minutes read
Steps to set up re-runn of testNG failed tests for n number of times, using ant task.
Wiring Jasmine 2.0 with Phantom JS
29-April-2014
3 minutes read
This post describes the steps that are necessary for to wire Jasmine 2.0 test suites with phantomJS.
UTC time in Android device. With NTP server sync.
14-February-2014
4 minutes read
Using NTP time in the anroid application. This involves calling the SNTP server and also converting the time to UTC format.
What's new in Apple Passbook iOS7
07-August-2013
3 minutes read
New features in passbook application in the iOS7.
Setting up Cucumber-jvm
10-July-2013
3 minutes read
Setting up cucumber BDD framework in your Java project.
Link your Sublime Text 2 instances with Dropbox
10-January-2013
3 minutes read
Sublime text has a key mapping file where it stores all the shortcut. Here is a way to share your preferences and key maps across two machines using a dropbox account.
Scribblings on Socket.io
04-December-2012
3 minutes read
When i tried out socket.io for the first time, it was quite an interesting learning of few new paradigms and techniques.
Hamcrest conflict in jUnit.
27-June-2012
2 minutes read
Hamcrest matchers are used in jUnit for assertions. There is a weird problem with the version conflict between Hamcrest and jUnit. The solution is been discussed here.
Handle MaxUpload SizeExceededException in Spring
24-June-2012
2 minutes read
Handling MaxUploadExceedException in Ajax call with Spring controllers. This exception occurs when the file size greate than what is expected is been uploaded by the user.
Make your NTFS drive writable under Mac Lion
27-December-2011
3 minutes read
Make your NTFS drive writabe under mac lion.
Slot machine effect using jQuery
25-September-2011
2 minutes read
A cool widget that looks like a slot machine. Small piece of code and a nice trick to animate the numbers to achieve a slot machine effect.
Writing Custom Tags for JSTLs
11-September-2011
2 minutes read
Writing a custom JSTL tag and integrating with the application. A sample code to do the same.
Reloading an activity in Android
13-July-2011
2 minutes read
Refreshing or reloading activity in Android application. This might be important in the case of refreshing data in the activity.
Configuring Context name for an application
09-July-2011
2 minutes read
Setting up a different context name than the WAR name for the Java application deployed in Tomcat server.
Primary-key @OneToOne mapping in Hibernate
18-May-2011
2 minutes read
Joining two tables using Primary keys in Hibernate.
Age Of Empires (AOE) Fix in Windows 7
28-April-2011
1 minute read
Age of Empires (a popular strategy game) has got some problems with color rendering while played in Window 7. A quick harmless solution for that is here.
Add EditText(s) dynamically and retrieve values - Android
22-March-2011
4 minutes read
Adding multiple edit text boxes to the android application dynamically through code and controlling them.
Test your Controller's ModelAttribute methods.
20-January-2011
2 minutes read
Injecting a ModelAttribute to the controller's method in Unit tests using Spring and jUnit.
Hadoop Version in AWS Map Reduce
15-November-2010
2 minutes read
Performing Map Reduce operation using Amazon AWS interface.
SAX parser characters() method.
07-October-2010
3 minutes read
Implementing `characters()` method for SAX parsing huge files. With a sample code in Java
FTP Client (Ubuntu)
31-August-2010
2 minutes read
Download multiple files from authenticated FTP server in Ubuntu.
Stop halting at Assertions
05-March-2010
2 minutes read
Generally assertions cause the test to halt. But sometimes we need to continue further and evaluate all the asserts and expect a comprehensive report of all the asserts.
Printing multiple divs in a page.
11-February-2010
2 minutes read
When an user tries to print a HTML page, allow multiple divs from the page to appear in the print and not the entire page. Not using media CSS query
Install Inconsolata.ttf in Ubuntu(Jaunty).
11-December-2009
3 minutes read
Inconsolata is dev friendly font used by devs for their code. This post is about installing Inconsolata tru type in Ubuntu - Jaunty.
Test SMTP server
21-October-2009
1 minute read
How can you set up an SMTP server in your local environment for testing purpose.
First Post
29-August-2009
1 minute read
An introductory post to start off my blog.