AngularJSFront End Development
In this post we will go through an important aspect of AngularJS i.e., Directives. Directives helps us do things in a better and cleaner way. Lets get into the code rather going into theoretical explanations, which will make it more clear what actually directives do. We have written a simple directive below which shows some HTML when […]
In one of my Grails project I need to drop files over ftp server. Using JSch one can easily transfer files over sftp. Just follow the below steps. 1. Add the below dependency to Grails project “grails-app/conf/BuildConfig.groovy” file [sourcecode language=”groovy”] dependencies { compile ‘com.jcraft:jsch:0.1.49’ } [/sourcecode] 2. Create a class for adding ftp credentials information. e.g. “FtpCredentail” […]
MongoDB provides several ways of computing the average value of a group in a collection. One of the simplest ways of determining average is using the method db.collection.group(). The method db.collection.group() bunches the documents of a collection on the basis of the keys mentioned and executes aggregation functions on them. This method can be used […]
Compared to Java we have a lot of ways to represent strings : GString, single quote, double quotes, slashy and dollar slashy. 1.GString: A GString is just like a normal String, except that it evaluates expression that are embedded with in string in the form ${..}. [java] String demo="Brother" String doubleQuotes= "Hello ${demo}" println […]
By default magento sends emails on its certain events like customer registration, order creation etc. Also you can customize or change these email templates from admin > System > Transaction Email. What if you want add your own custom email template or if you want to add email feature in your custom module. This blog […]