How to handle HTTP error 414 Request-URI Too Long

apache

Typically Web servers set fairly generous limits on length for URL query string e.g. up to 2048 or 4096 characters. While running a web application in Tomcat & HTTP Apache server, we came across a situation where we were asked to handle an extremely long URL query strings. Which was throwing HTTP 414 “Request-URI Too Long” error. For this situation ... Read More »

Install Node.js on an Ubuntu server

Node.js is a Javascript platform for server-side programming that allows users to build network applications quickly. By leveraging Javascript on both the front-end and the back-end, development can be more consistent and be designed within the same system. Install NodeJs We have to use the apt package manager. We should refresh our local package index prior and then install from ... Read More »

MySQL DB import/export through the command line

MySQL is an open source database management software that helps users store, organize, and retrieve data. It is a very powerful program with a lot of flexibility—this tutorial will provide the simplest introduction to MySQL. Moving MySQL database is a frequent necessity. Servers migration/ disk space runs out etc are the main reasons where we need to migrate mysql database. ... Read More »

MySQL Tutorial Install Access Create and Delete Database

MySQL is an open source database management software that helps users store, organize, and retrieve data. It is a very powerful program with a lot of flexibility—this tutorial will provide the simplest introduction to MySQL How to Install MySQL on Ubuntu and CentOS If you don’t have MySQL installed on your droplet, you can quickly download it. Ubuntu: sudo apt-get ... Read More »

Create a New User and Grant Permissions in MySQL

MySQL is an open source database management software that helps users store, organize, and later retrieve data. This tutorial will give a short overview of options to grant specific users nuanced permissions within the tables and databases. How to Create a New User in MySQL Let’s start by making a new user within the MySQL shell: CREATE USER 'newuser'@'localhost' IDENTIFIED ... Read More »

Java HttpServletRequest get current URL in browsers URL bar

j2ee

If your current request is coming from an “inside the app-server” forward or include, the app-server is expected to preserve request information as request attributes. The specific attributes, and what they contain, depends on whether you’re doing a forward or an include. For , the original parent URL will be returned by request.getRequestURL(), and information about the included page will ... Read More »

How MongoDB Journaling Works

Mongo DB

MongoDB uses write ahead logging to an on-disk journal to guarantee write operation durability and to provide crash resiliency. Before applying a change to the data files, MongoDB writes the change operation to the journal. If MongoDB should terminate or encounter an error before it can write the changes from the journal to the data files, MongoDB can re-apply the ... Read More »

Install MongoDB on Ubuntu

Mongo DB

This tutorial helps to install MongoDB on Ubuntu systems. The tutorial uses .deb packages to install. The MongoDB package repository contains five packages: mongodb-org This package is a metapackage that will automatically install the four component packages listed below. mongodb-org-server This package contains the mongod daemon and associated configuration and init scripts. mongodb-org-mongos This package contains the mongos daemon. mongodb-org-shell ... Read More »

Regular Expression in Java

Java

Java provides the java.util.regex package for pattern matching with regular expressions. A regular expression is a special sequence of characters that helps you match or find other strings or sets of strings, using a specialized syntax held in a pattern. They can be used to search or edit or manipulate data. The java.util.regex package primarily consists of the following three ... Read More »