Posts

Login to create Post


Figlet, a beautiful way to print ASCII Arts in Javascript

Wherever you see ASCII Arts they immediately grab your attention. Be it in application consoles while you are booting the application or in the browser consoles. Figlet is a NPM library that helps you creating ASCII Arts in NodeJS applications.

Views: 223

1 month ago by megamind

Enabling CORS for ExpressJS APIs

In the world of serverless & SPAs we can't expect the webapp and the supporting APIs to run under the same domain origin. In those situations we have to enable CORS to make browsers work without CORS blocking issues issues.

Views: 84

1 month ago by megamind

Logging request & response in SpringBoot using Groovy

It will be extreemely usefull to debug issues if you can log request and response objects in your spring boot application. This post shows you how can you achieve that using CommonsRequestLoggingFilter

Views: 86

1 month ago by megamind

Generating UUID using fasterxml UUID generator

fasterxml library has time/location based UUID generation methods. This post shows how to generate UUID/ UUID strings using fasterxml's UUID generator

Views: 68

1 month ago by ffc

Transforming List of Objects to List of Strings in Java

We often need to convert a List of Objects to List of Strings where that String can be a particular element from the Object. For Example List of Names from List of User Objects. This program shows you how to transform in Java using map

Views: 79

1 month ago by ffc

Does file exists utility function in Java

We often check whether or not a given file exists in the filesystem. This Post gives a utility function using which you can check whether or not a given file with path exists?

Views: 95

1 month ago by ffc

Reading File lines easily with Java8 streams

This post shows you how easily we can read file lines into Java8 streams.

Views: 56

1 month ago by ffc

Using javascript fetch in nodejs

Vanilla javascript's native fetch method has a simpler API to make Ajax calls. This post shows how to use it in NodeJS environment.

Views: 66

1 month ago by ffc

SMTP ( Simple Mail Transfer Protocol ) wrapper to send emails in Groovy

SMTP ( Simple Mail Transfer Protocol ) wrapper to send emails in Groovy

Views: 85

1 month ago by d20160501

Displaying human friendly dates in your webapp

Users will like human-friendly date strings like 3 months ago instead of a verbose date string like Thursday, April 11, 2019 4:40:24.494 PM

Views: 56

1 month ago by d20160501

Enabling Gzip compression in SpringBoot applications

Gzip compression is very important if you have a public facing website as the user experience matters a lot based on the size of the responses.

Views: 60

1 month ago by d20160501

Installing Redis in Ubuntu 16.04

Steps to install Redis Server in Ubuntu 16.04 machines

Views: 59

2 months ago by megamind

Adding Host header to curl to make Nginx routing to work properly while testing

This post shows you the command how to add Host header while using it in curl. This way you can make the Nginx to send right data while using with curl and directly hitting the IP Address.

Views: 145

4 months ago by megamind

Reading file content in Java with single line of code

This post shows you, how you can read a Files content into a String using one line of code in Java

Views: 39

4 months ago by ffc

kibana.yml location of brew installed Kibana on MacOS

path of kibana.yml in MacOS if you install the Kibana using Homebrew

Views: 148

4 months ago by megamind

Reverting commits on develop branch including Merge commits

This post shows you how to revert commits on develop branch including the merge commits which out leaving any trace of those merge commits

Views: 95

4 months ago by megamind

Hard resetting the current branch to fix failing pull because of package-lock.json change

package-lock.json may get updated when you do npm install so this may look different from the remote. In those cases when you try to pull you will get the following error error: Your local changes to the following files would be overwritten by merge: package-lock.json

Views: 107

4 months ago by megamind

Docker busybox ls command default output

busybox image let you run most of the basic commands on it. ls shipped by default.

Views: 101

4 months ago by megamind

Docker 'run hello-world' output when you run it for the first time

When you do not have the local image 'hello-world' and you run the image it first download from the Docker Hub and then runs it.

Views: 95

4 months ago by megamind

Finding netchange (inserts, deletes, updates) from two javascript arrays

This post shows you how to find inserts, deleted & updates from two arrays. This is useful when you are performing netchange operations.

Views: 126

4 months ago by megamind