I came across a requirement from one of my clients to setup an FTP account on a particular folder/directory on his Amazon Windows server instance (2008r2). Below are the steps which I followed for setting it up. You need to make changes in the Security group of your Windows instance & add ports in order […]
I never had to worry about whether the classes loaded in our application are in the same class loader or different, until I was stuck with the weird class not found exception. We were using a third party tool (Snowbound’s DocViewer) which provided around 10 jar files, which worked well for except one functionality which […]
In one of our Node.js projects, we used Mongoose module to interact with MongoDB. Mongoose provides us four types of built-in validation on schema as below: 1. Required: We can mark a field as required, which must be provided. 2. Limit: If field is type of Number in Schema, then we can restrict maximum and […]
Many a times, we face a requirement where we need only one object of a class to communicate across the application. Singleton Pattern comes into role in this scenario. Singleton is one of my favorite Design Patterns. Singleton pattern restricts us to initialize more than one object. We implement Singleton by creating a class, having […]
Vim is an extremely practicable text editor which allows efficient text editing. It is considered as one of the most handy tools for programmers, allowing them to edit configure files and sometimes also considered as IDE. Though, it not just limited to editing configuring files, it also allows a user to edit text files and […]
Hi everyone, This blog is about how JavaScript parses your script (source code) when it encounters return statement. We can write code using any one style of following two: Style 1: [sourcecode language=”java”] function func() { return 6; } [/sourcecode] and Style 2: [sourcecode language=”java”] function func() { return 6; } [/sourcecode] And people usually […]
I was working on one of my projects which involved multiple task execution on regular basis. Well, I think that many of us have faced similar issues on their projects which increases our work and making it more time-consuming and increased work. Working in a community where people are actively developing tools to automate tedious […]
AngularJSFront End Development
While using AngularJS, you will usually come across this situation when you want to copy one object to another object. In such case you will have only two solutions: angular.copy() or angular.extend(). Lets see how these solutions work. 1. angular.copy(source, destination) : It creates a deep copy of source object or array and assign it to destination […]
Hi everyone, Some time ago I was trying to debug my Grails application which was running on Grails version 2.3.4. I usually debug using remote debug configuration inside IntelliJ IDEA and issuing a command like “grails-debug run-app”. But strangely grails-debug is no more supported, and your application will run as normal without debugger attached. So […]
In JavaScript, we have Equality (==) and Identity(===) operators for equality comparison between two values/operands. When first time we see Equality (==) and Identity (===) operators, then following questions arise in our mind. 1. What is difference between Equality (==) and Identity (===) ? 2. Is there a performance benefit with Equality (==) or Identity […]
Ok Now, CSS is fine and all but it is a tedious process to cover all the different states and selectors. And if your Stylesheets are un-organized like mine(confession?) then you would know it is painful, any change breaks so many things and when it doesn’t you know you have missed a couple of selectors […]
Many a times we get confused with scope in JavaScript, So here I am going to put some light on scope. There are two types of scope in JavaScript. First one is, function scope which is also called as local scope, and second one is global scope. Function Scope: In JavaScript, variables are defined with […]