Coding hacks, notes and cheatsheets for web development, web design, domaining and Linux systems administration.
The Document Object Model (DOM) is a programming interface for HTML and XML documents created by the browser once the document is loaded.
A Set is a special type of object in ES6 that lets you create a collection of unique values. Each value appears only once in the set.
Axios is an open source library for making asynchronous HTTP requests to REST endpoints in the browser and Node.js.
Arrow functions, introduced in ES6/ECMAScript 2015, are a syntactically compact alternative to regular ES5 functions.
Needle is a streamable HTTP client for making quick HTTP requests in Node.js application to consume RESTful web services, uploading and downloading streams of data etc.
A regular expression (also called regex or regexp) is a sequence of characters that defines a search pattern. These search patterns are usually used for text search, text search and replace, data extraction, and input validation operations.
An HTTP Cookie (also known as web cookie, browser cookie) is a small piece of information stored by the server in the user's browser. The server sets the cookies while returning the response for a request made by the browser.
If you are a Java developer, it is normal to have multiple Java versions installed on your machine to support different build environments.
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.
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.
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.
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.
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.
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.
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.
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.
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
JSON is a alternative to XML for interchanging messages between the servers, communicating with RESTful web services, and more.
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.
Pagination is widely used to split a large number of data entries to discrete pages, allowing users to easily toggle through data entries.
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.
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.
Debian 9 Stretch comes with a significant amount of new and updated packages as well as a score of packages had been marked obsolete.
If you have installed Tomcat 8 on your linux server and it is taking forever to (re)start, it is not your fault.
Each Amazon Route 53 hosted zone is associated with four name servers, known collectively as 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.
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.
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.
For one page templates and websites, it is a common practice to scroll to a page section when clicking on an anchor link.
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.