AWS

Automating deployment of a static website hosted on Amazon S3

Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually. In this blog I’ll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git. […]

ravi
ravi
Read

Grails

S3 Bucket Permission

Amazon’s Simple Storage Service (S3) allows its customer to maintain full control over who has access to their data with the help of its Identity Access Management (IAM) service and S3 bucket policies. For example, using Bucket Permission, one can give only reading access to one user, whereas using same permission/policy options, he can allow […]

abhishek.tomar
abhishek.tomar
Read

AWS

Deployment through Git on AWS Elastic Beanstalk (PHP Platform)

Elastic Beanstalk is a PaaS service (Platform as a Service) provided by Amazon. Elastic Beanstalk is gaining limelight as it enables you to setup a complete environment based on the framework you would look out for your application. It supports almost all the known frameworks, as: IIS Node.js PHP Python Ruby Tomcat The type of […]

ankush
ankush
Read

AWS

Setup FTP Account on particular folder/directory in AWS Windows instance

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 […]

ankush
ankush
Read

Grails

Groovy multiple classLoaders

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 […]

Amit Jain
Amit Jain
Read

Node.js

Validation with Mongoose

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 […]

Amit Kumar
Amit Kumar
Read

Node.js

Singleton Pattern with JavaScript

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 […]

Amit Kumar
Amit Kumar
Read

Technology

VIM: All you need to know about it

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 […]

Vikash Jha
Vikash Jha
Read

Technology

JavaScript’s return statement gotcha

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 […]