TO THE NEW Blog PAGES

Technology

PHP5-FPM Logging

In this blog i will explain how to configure the access, error and slow logs of php-fpm and to modify the format in which the logs are received. Prerequisites: Lets have an application that uses the php5-fpm module, in this case, we will use the WordPress Application running on a LEMP stack. To enable the […]

AWSGrailsTechnology

AWS S3 file upload with progress bar using javascript sdk

You can upload files on AWS S3 using a server side solution, but in case of larger files it is advisable to use a client side solution. You can probably use JavaScript file upload feature of AWS S3. This is simple three step feature as described below: Step 1 : In the head section of your page include javascript sdk […]

Technology

Finding authors of all remote branches in a git repository.

Git is a widely adopted Version Control System known for its branching support. Recently I was required to find out all the remote branches with their author names. Upon browsing over the web I found that command git-for-each-ref can help me. Here is how I combined it with grep to get the desired output: [code] […]

AWS

AWS Elastic Beanstalk ( PHP Application )

In continuation to my previous Blog on Elastic Beanstalk (Grails Application) , I would now tell you how to deploy a PHP application via Elastic Beanstalk. So, again, we will quickly go through what AWS Elastic Beanstalk does. It is deploying your application in the AWS Cloud without worrying about the infrastructure & making your […]

GrailsTesting

Writing test cases for Domain class Using Spock

The agenda of this blog is to demonstrate how to write basic validation test cases for domain class in grails application. Create a domain class User with some basic constraints. [java] package com.ttn.testing class User { String emailId String name static constraints = { emailId nullable: false, blank: false name nullable: true, blank: false, minSize: […]

Sanchit
Sanchit
Read

AWSTechnology

Setting up Mcollective and puppet push from puppetmaster

This blog focusses on setting up Mcollective and puppet push-pull environment in open source puppet, configuration management tool. Puppet has a default behavior that agents pull their respective configurations (catalogs) at regular interval of time. The blog refers to certain use case where you don’t want an agent to make changes at their respective time […]

AWS

Apache Solr 5.1.0

Apache Solr is an open source search platform built upon a Java library called Lucene. Solr is a popular search platform for Web sites because it can index and search multiple sites and return recommendations for related content based on the search query’s taxonomy. Solr is also a popular search platform for enterprise search because […]

AWS

LOG ROTATION USING LINUX COMMAND-LINE UTILITY LOGROTATE

Let us consider a scenario when all the service and custom logs of your ubuntu server gets backed up on S3 on a daily basis after compressing them and the allocated space is freed without using any third party software. We can achieve this task by the use of logrotate utility provided by the ubuntu […]

AngularJSFront End Development

Dependency Annotation in AngularJS

When a function of service or controller invoked via the injector then we have to annotate these functions so that the injector knows what service to inject into the function. In Angular, there are three ways of annotating code with service name – Inline Array Annotation $inject Property Annotation Implicit Annotation Inline Array Annotation This […]

Node.js

Sending iCal invite using Node Js

Sending event invites through an email is a common use case nowadays in applications. In this blog, we will briefly cover the steps to accomplish this using Node.js.

Technology

Video SEO – Key to online video services

With fall in viewership across traditional television channels, video content owners are looking to augment their revenue from digital Over-The-Top (OTT) platforms such as YouTube, Hulu etc. Video content owners who are serious on setting up a sustainable revenue stream from digital platforms, need a clear focused digital strategy. Strategy should imbibe aspects related to video […]

AWS

Logentries – Search and Analysis using RegEx named capture group

Most of us would be using some tools for centralizing logs, their analysis and storage. Logentries is also the one falling into this category. Logentries provides a straightforward way for analysis of logs containing KVPs i.e. Key-Value pairs. But for the cases where KVPs are not present it becomes quite hectic to analyse the logs. […]