Blog

Coding hacks, notes and cheatsheets for web development, web design, domaining and Linux systems administration.

🙌 Join the weekly newsletter and get the latest tutorials from my blog and around the internet.
No spam, ever. You can unsubscribe anytime.
How to change default Java version on Ubuntu

If you are a Java developer, it is normal to have multiple Java versions installed on your machine to support different build environments.

Read more
Serving Static Resources in Express

To serve static resources such as images, CSS and JavaScript files, Express provides a built-in middleware express.static.

Read more
Making HTTP Requests using Axios

Axios is a popular Promised-based HTTP client for JavaScript which can be used in both browser and Node.js application for making HTTP requests.

Read more
Uploading Files in Node.js and Express

A large number of mobile apps and websites allow users to upload profile pictures and other files. Therefore, handling files upload is often required while building a REST API with Node.js & Express.

Read more
Upgrade Ubuntu 18.10 to 19.04 Disco Dingo

Ubuntu 19.04 Disco Dingo is expected to release next month in April 2019. The key features of new release include GNOME 3.32, Linux kernel 5.0, performance improvements, bug fixes, packages update, and more.

Read more
Upgrade Ubuntu 18.04 to 18.10 Cosmic Cuttlefish

Ubuntu 18.10 Cosmic Cuttlefish was released last year in October. It comes with new GNOME version 3.30, new default theme and icons, faster installation and boot with new compression algorithms, and more.

Read more
Export & Download Data as CSV File in Spring Boot

A Comma-Separated Values (CSV) file is just a simple plain text file that uses a comma as delimiter to separate values. It stores data in tabular format where each row consists of one or more fields and each column represents a specific field.

Read more
Add Deep Anchor Links to Your Blog using JavaScript

Deep anchor links, also known as jump links, are useful for allowing users to share direct links to specific parts of the article. They not only create better user experience but are also good for social media sharing and direct linking to different sections of the document.

Read more
Uploading Files in Spring Boot

Handling uploading and downloading files are very common jobs in most of the web applications. Spring Boot provides MultipartFile interface to handle HTTP multi-part requests for uploading files.

Read more
Parsing XML Response in Spring Boot

While JSON has become a popular choice for asynchronous communication, XML is still used by large number of companies for data exchange in SOAP web services.

Read more
Stripe integration with Spring Boot

Stripe is one of the most popular cloud-based payment services that allows businesses and freelancers to easily collect payments over the internet. Founded in 2011, Stripe has revolutionized the way payments are accepted online.

Read more
Data Type Conversions in Java

Unlike PHP or JavaScript, Java is a strongly typed programming language. It essentially means that each variable must be declared with a pre-defined data type which can not be changed afterwards.

Read more
Spring Boot Console Application

Sometimes, we do not need the web component of Spring Boot in our application. To create such a non-web application, the main class must implement CommandLineRunner interface and override its run() method.

Read more
Processing JSON Data in Spring Boot

JSON is a alternative to XML for interchanging messages between the servers, communicating with RESTful web services, and more.

Read more
Export PostgreSQL Table Data as JSON

JSON is a popular lightweight and human-readable format for interchanging data. There are so many open-source libraries available for almost all modern programming languages for parsing and consuming JSON data.

Read more
Spring Boot Thymeleaf Pagination

Pagination is widely used to split a large number of data entries into discrete pages, allowing users to easily toggle through data entries.

Read more
Sending Emails using Amazon SES in Node.js

Amazon SES (Simple Email Service) is a popular cloud-based service for sending transactional and marketing emails. It integrates well with all popular programming languages.

Read more
7 Ways to Make HTTP Requests in Node.js

HTTP requests are a core part of the most of the modern languages. It can be challenging for new developers to learn how to make HTTP requests to exchange data.

Read more
Upgrade Debian 8 Jessie to Debian 9 Stretch

Debian 9 Stretch comes with a significant amount of new and updated packages as well as a score of packages had been marked obsolete.

Read more
How to fix Tomcat 8 slow start issue

If you have installed Tomcat 8 on your linux server and it is taking forever to (re)start, it is not your fault.

Read more
Setup White-Label Name Servers using AWS Route 53

Each Amazon Route 53 hosted zone is associated with four name servers, known collectively as a delegation set. By default, the name servers have names like ns-2048.awsdns-64.com. If you want the domain name of your name servers to be the same as the domain name of your hosted zone, for example, ns1.example.com, you can configure white-label name servers, also known as vanity name servers or private name servers.

Read more
Serverless Application with Express.js using AWS Lambda and Claudia.js

Express.js has become a go-to HTTP framework for quickly building RESTful web services in Node.js. If you are a Node.js developer or you've built an API in Node.js, it is highly likely that you used Express.js.

Read more
Spring Boot & Intellij IDEA: Auto reload Thymeleaf templates without restart

Spring Boot is fast becoming a popular choice for building standalone, Spring-based & production-ready web applications, from RESTful APIs to enterprise-scale websites. It offers out-of-the-box features to automatically configure Spring and 3rd-party libraries whenever possible.

Read more
Smooth scroll to page section with jQuery

For one page templates and websites, it is a common practice to scroll to a page section when clicking on an anchor link.

Read more
How to use Amazon SES to send transactional emails in Spring Boot

Amazon Simple Email Service (SES) is a cloud-based email sending service that allows you to add email functionality to any application. Using Amazon SES, you send transactional emails, marketing messages, or any other kind of notification emails to your customers.

Read more