

25
Jun, 14
Whenever i configure a new server i usually end up searching for this problem. How to redirect apache to tomcat ? There are various solutions out there but for now i am going to talk to about the easy one. Here are the steps : Assumption : It is assumed that you have...

22
Jun, 14
Mapping roles without ROLE_ prefix in InterceptUrlMap
Recently, I stumbled upon a scenario where I had to map the roles from legacy database to spring security’s InterceptUrlMap and they did not have the ROLE_ prefix to them. I faced the following error: [php] Field or property 'ADMIN' cannot be found on object of...

22
Jun, 14
Centralized security mapping in Grails (Spring Security)
While creating a new application from scratch it’s a good idea to centralize the security mapping for your application to a single place. By security mapping we mean the functionality to secure your application URL’s against the unwanted access. In Grails,...

22
Jun, 14
Hibernate MEMBER OF operator in action
Hello there, I am again with you to share a solution of a problem that I have faced in a project and I solve that problem using hibernate MEMBER OF operator. Requirement is simple, I have a Post domain which has many users: class Post { String content static hasMany =...

22
Jun, 14
Grails Trick : How to find the i18n error code of the validation error message.
We usually have to Google to find the error code of the validation error message if you are new Grails developer. This blog gives the simplest way to get error code for validation error message. Suppose we have a Domain class User class User { String username String...

21
Jun, 14
Run Geb Test in Chrome on Linux: Ubuntu
Hello, friends I am again with you to share solution of a problem in functional testing using geb in grails. I have faced this problem while I am using chrome browser to run test. This shows an exception that you do not have any driver for chrome but I have already...

19
Jun, 14
Functional Testing with Geb in Grails
Hello, This blog post is for beginner’s who are new to testing. We use Geb(The browser automation tool) with grails to test our application in this blog. First of all what is Geb? Geb is a browser automation tool use web-content and web-browser for automation...

17
Jun, 14
ADuM7642 as voltage translator and digital Isolator between two SPI devices
Introduction: A voltage Translator is used to change the voltage level of signals and an Isolator is a device which isolates one side from another side up to a voltage level . If you want to develop communication between two devices which works on different voltage...

15
Jun, 14
embedded property of grails domain class
In the blog Prashant Gupta demonstrate how to use embedded property in hibernate. We can do the same thing in grails using embedded property of grails domain class. Syntax: static embedded = [‘address’, ‘payment’] Purpose: Supports embedding...

8
Jun, 14
grails failOnError and flush in action
In my previous blog we have seen how to set failOnError and flush globally. In this blog I am providing a use case of failOnError and flush. Lets have a simple domain class class Person { String firstName String lastName String email static constraints = { firstName...

4
Jun, 14
NUVOTON microcontroller(NUC200VE3AN) SPI driver code for ADE7753 IC
Introduction: This blog is written for SPI communication between ADE7753 IC and NUC200VE3AN 32 bit microcontroller. If you want to know more about SPI communication, I would suggest you to read my another blog NUC200VE3AN SPI basic part 1.(link will post very soon)...

4
Jun, 14
NUVOTON NUC200VE3AN SPI driver code for ADE7753 IC
Introduction: This blog is written for SPI communication between ADE7753 IC and Nuvoton NUC200VE3AN 32 bit microcontroller. If you want to know more about SPI communication, I would suggest you to read my another blog NUC200VE3AN SPI basic part 1.(link will post very...

29
May, 14
Using SQLFiddle
Hi Guys, this is my second blog post of this month. The title is “Using SQLFiddle”. In this post I am going to explain about a very useful online tool SQLFiddle which I have been using for a while. As JSFiddle is used to run and test CSS, JQuery etc, using...

27
May, 14
Grails GORM configuration options: failOnError and flush
save() method of domain class accepts two parameters failOnError and flush (both of these parameters are optional). failOnError when it is set to true then save() method will throw ValidationException when validation fails during save. flush when it is set to true...

27
May, 14
Create Web Application using node.js and Locomotive framework
Here I am going to show you that how we can create a Powerful MVC web-application using Node.js. I am going to use locomotive framework to create the web-application. Before starting I would like to give you brief introduction about the locomotive :...

27
May, 14
Setup node.js mongodb Development Environment on Ubuntu
Below are the step to setup the development environment of node.js using Mongodb: Open terminal and add the repo executing follwing command on console [php] sudo add-apt-repository ppa:chris-lea/node.js [/php] 1...

27
May, 14
Node.js Locomotive Framework Directory Structure And It’s Functionality
In our previous blog I explained that how to create node.js web application using locomotive framework. Now I am going to explain the directory structure and it’s work. Below is the directory structure of the node.js web application using locomotive. I...

22
May, 14
How to create MongoDB indexes ?
In simple words “indexes are used to speed up query performance”. Let’s say you have a query which takes around 120ms to execute without indexes i can assure you that with proper indexes you can reduce that time by at least 10 times. Let me show you...

22
May, 14
How to delete MongoDB document ?
In this blog post i am going to explain how to delete MongoDB document. The are few ways which are illustrated below : If we execute remove on collection without any params then it will delete all records [php] db.users.remove({}) // it will delete all documents along...

22
May, 14
How to drop a fieupdatingld from a MongoDb document ?
In this blog post we are going to see how to drop a field from a MongoDb document ? For people coming from RDBMS you must be remembering the alter table command for dropping/adding columns in a table. In MongoDB it is possible to do this operation on some of the...
Recent Comments