Struts 2 Introduction

Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. Apache Struts 2 was...

Humour in a corporate culture

Humour in a corporate culture is a serious business, but the leader of our company ‘ jellyfish technologies ‘ have realized that they could use humour as a leverage to succeed in business , and hence they adopted humour in their corporate culture. there...

Initialize groovy list with default value

Hello friends ,In this blog we learn how to create a groovy list with default value. We can create and use withDefault() method to define the value of elements not yet in the list. We use a closure as a argument to this method which returns the default value. We can...

Simple signal translator using Some resistances

Recently, I was working on the serial communication between two devices and I found that these two devices are not working on same voltages. That’s why the signal generated from one device will not be read correctly from the other device. It means we need a voltage...

Setup your own git server using gitolite

In this blog I will going to provide the step to setup your own git server on Ubuntu. For doing the same we have to install the couple of package. Setup Git Using following command we can install Git sudo apt-get install git-core Create new user We can create a new...

Add expression in text field using dynamic jasper

I faced some problem while working in last project. I want to share some tricks which I used in jasper report and in dynamic jasper. 1. Add combination of string and parameter/field value in textfield dynamically. Normally we put in expression either field/parameter...

Time Series Chart in Jasper Reports

Recently, I came around a problem in which I had a line chart with data spanning over few months (yes, it had data in x-axis known as category axis) and the dates on the category axis were overlapping each other so that it had almost become a black strip at the bottom...

Hosting multiple websites on Nginx

This post is an extension to my previous post on Nginx where we learned how to set up SSL on Nginx and forward connections to tomcat which was running on 8080. This time we need to host another website on this same server let’s see how we can get it done. FYI i...

Hide Angular Code While Angular Is Loading

Difference between {{}} and ng-bind {{ }} is the well known and general way to render the data in the html view in angular. Angular come into play after browser load the html page and render it and till then {{…}} is rendered in the view. Loading angular is...

ARM: SIMPLE UART PROGRAMMING ON NUVOTON NUC200

Hello guys, here I am with a very powerful protocol for communication in embedded systems. ARM microcontroller provides you wide range of communication techniques in which the one of the most likely is the UART communication,  it is simply just the fastest means of...

Git Feature : Squash

Hi welcome. This blog is one of the git cool feature “Squash”. Note : Because this is an advance feature of git, I am expecting that you have basic knowledge of git like push, commit, checkout, branching etc. When we shall hear Squash first time, we would get three...

Assign List Entries To Multiple Variables

One of the Groovy’s sexy feature is that we can assign list entries to multiple variables. One of the scenario I faced that my method returns a list and I have to assign that list entries to different variables As: def myMethod(){ ['Abdullah', 'Mohd'] } def...

Configure tomcat to support SSL / https

Hello Everyone, following are the simple steps to configure tomcat to support SSL / https locally. 1. Generate Keystore First, uses “keytool” command to create a self-signed certificate. During the keystore creation process, you need to assign a password and fill in...

Getting Started with LESS

I am back with a new post titled “Getting Started with LESS”. We have often used CSS for designing layout of our web pages but there is a new buzzword in the web designing industry which is LESS. Less is a dynamic stylesheet language which offers various...

PERFORMING HIBERNATE LOCKING

Hibernate provides two strategies of locking for performing secure read/write operations. Hibernate achieves this by database locking mechanism and abstains locking object in memory. So, basically hibernate locking depends on database for there operations. The two...

Date manipulation using SQL query

I have written some useful query. When you need some customization in date format and find some prior date using SQL then below query might be useful for you. Find prior/future date from the current/given date: SELECT now()::date + 2 AS date1, current_date -1 AS date2...

Custom sorting in sql

Order by with a particular value on TOP or Custom sorting in order by clause. ORDER clause can be used to sort the results returned by SELECT statement in SQL Server. It orders the result set by specified column list. When used with character data type columns it...

Command Object And Its Benefits

Today, I am going to explain how to use command object in grails application to validate the client information without using domain class. You will see the benefits of using command object in this blog. The command object’s purpose is to bind the data from web-form...

AC Power Measurement

Introduction A whole house energy monitor measures the energy used by appliances connected to the house mains. To understand how it does this work, it is useful to know something about how appliances interact with the electrical system. Not all appliances interact...