Posts

Showing posts from September, 2018

APF Firewall Installation For Linux Servers

Image
In this article , we are using a Centos server for the demonstration of APF firewall installation in Linux servers. Login to your server via SSH and make sure that you are the root user. 1. Change current working directory to installation directory Read more .. https://gsmplusinfotech.com/blog/apf-firewall-installation-for-linux-servers/

Multiple Grails applications on a single Tomcat instance

Image
Let us consider this scenario, you are now running a grails application on a Tomcat server. Now you want to host an another application in a Tomcat server, for some reasons such as costs or for easy management, you do not want to deploy another server. We can achieve this by configuring Tomcat to host multiple applications in the same server. This article assumes that you have successfully installed Tomcat and have two or more applications ready to be hosted under a single instance of Tomcat. Installing Tomcat is done the usual way either by installing via the repository or downloading the binary from the official site. Installing via the binary is recommended as we can get a latest/stable version of Tomcat. Tomcat applications are configured to run on port 8080 by default. This can be altered by tweaking the Tomcat’s configuration file (server.xml) which is crucial to run multiple applications under a single Tomcat instance. For every application that you need to run und...

Singleton pattern using enum type

Image
For any application, we need to be highly conscious about creation and deletion of objects, since it takes huge memory which leads to junks and errors. Knowing the complexity of maintaining objects, we can opt for using a Singleton design pattern where the class is instantiated only once. Lets look at how to build such a class and all of its constraints. Now, how to create a singleton class in Java? Singleton is used when we need to design a component that is unique such as a task manager. There are three ways of implementing a singleton class. Implementation  : Using a private constructor and public static member access. Read more.. https://gsmplusinfotech.com/blog/singleton-pattern-using-enum-type/

Exploring the Google Stackdriver Error Reporting API

Image
”  It’s hard enough to find an error in your code when you’re looking for it; it’s even harder when you’ve assumed your code is error-free.  ” – Steve McConnel In previous blog, we have tried to log the front end error’s in Google Analytics, it has supported very good, but the Google Analytics is not solely meant for error capturing and search started for exploring better error reporting system. Then just discovered about Google Stackdriver. Google has acquired cloud monitoring service Stack driver in 2014. Google Stackdriver provides powerful monitoring, logging, and diagnostics. It equips you with insight into the health, performance, and availability of cloud-powered applications, enabling you to find and fix issues faster. It is natively integrated with Google Cloud Platform, Amazon Web Services, and popular open source packages. Stack driver provides a wide variety of metrics, dashboards, alerting, log management, reporting, and tracing capabilities...

Introduction to debugging NodeJS code

Image
In this blog we are going to see, how to use the debugging using node js code. Node JS has inbuilt debugger functionalities. To use that, in the command promt type node debug theNodeJsScript.js. This debugger client is not a full feature one, but simple step and inspection are possible. Lets have a small program as an example for debugging the code, this can be saved in debugging.js file Read more.. https://gsmplusinfotech.com/blog/intro-to-debugging-nodejs-code/

Secure your applications using the powerful Spring Security library quickly and easily with MongoDB

Image
There are some obvious benefits to writing custom code versus using a plugin. When using a plugin you get a lot of things off the shelf rather than writing it yourself. But there is always that risk of adding more bloat to your code base than is needed, debugging and finally bug fixes. Using something as mature as Spring Security has its unique advantages and in my experience a very extensible family of plugins that have got the most love from the Grails community. Integration Steps :- Create New Grails Project Let’s create the new application, go to project folder then create new Grails application. Read more.. https://gsmplusinfotech.com/blog/secure-applications-using-powerful-spring-security-library-quickly-easily-mongodb/

Setting up an Application using Auto Scaling that can scale and load balance dynamically

Image
We have seen a general introduction of Auto Scaling in the previous article. In this article we will learn about setting up an application using Auto Scaling that can scale and load-balance dynamically without any human intervention. Prerequisites: Before going further into the article, you should be able to setup a load balancer, create EC2 instances, creating an AMI, able to Route 53 to configure DNS to point to an elb and working with the AWS management console. Auto Scaling ensures that desired number of instances is always available to handle load on your application. This way auto scaling equips your infrastructure so that your application always has the right amount of capacity to handle stable to varying traffic demands. Also auto scaling makes your application highly available and fault tolerant. As said earlier auto scaling comes with no additional cost and you pay only for the AWS resources that you actually use. We will look at the steps involved in setting up you...

Crashlytics – the most powerful, yet lightest weight crash reporting solution

Image
Crashlytics help spending less time on fixing crashes without looping in to various scenarios. It provides deep, actionable insights and even the exact line of code where the app crashed on. It gives you powerful crash reporting, with one click by enabling real-time analytics that helps to understand what’s happening in the app. Installing Crashlytics via CocoaPods: If you don’t already have a Fabric account, request an invitation from a member of your company’s Fabric organization or sign up and create a new organization. A Fabric account is needed before you can install any of their kits. Add the Kit to Podfile: The Crashlytics Kit can be installed using CocoaPods. Add following to podFile. Read more.. https://gsmplusinfotech.com/blog/crashlytics-powerful-yet-lightest-weight-crash-reporting-solution/