Grails

Searching tweets on Twitter using Twitter4j

Hi, In the previous blog we saw how to fetch tweets posted by a particular user using the Twitter4j,a java wrapper library available for Twitter API calls. In the same grails project, i had the requirement to display the based on some search criteria or words. Twitter4j library provides a cool way to search tweets […]

Vishal Sahu
Vishal Sahu
Read

Grails

Get tweets posted by user using Twitter4j

Hi, In the previous blog we saw how to fetch tweets in which a particular user is mentioned, using the Twitter4j java wrapper library available for Twitter API calls. In the same project, i had the requirement to display the tweets posted by particular user including retweets. I searched for it and found a cool […]

Vishal Sahu
Vishal Sahu
Read

Grails

Fetching twitter user mentions using Twitter4j

Hi, In the last blog, we saw how to retrieve the tweets from user timeline which the user has marked as favorite using Twitter4j java wrapper for making twitter API calls. In the same grails project, i had the requirement to fetch all the tweets in which the current user in mentioned in the tweet […]

Vishal Sahu
Vishal Sahu
Read

Grails

Fetching twitter user ‘Favorite’ tweets using Twitter4j

Hi, In the previous bog, we saw how to fetch the Retweets by any twitter using using Twitter4j Java library for making twitter API calls. I had the requirement to fetch latest tweets from user timeline which user has marked as ‘Favorite’ and show them in our application. So, in this blog we will see […]

Vishal Sahu
Vishal Sahu
Read

Grails

Executing Groovy scripts at runtime

A very useful Groovy class GroovyScriptEngine can be used to execute Groovy scripts at runtime. For understanding purpose, lets start with an example. We have a script named as Area.groovy that calculates the area of circle. [java] // Area.groovy Float r = "${radius}".toFloat() //radius will be passed as an argument to this script. return "Area […]

Divya Setia
Divya Setia
Read

Grails

Few Simple steps for integrating Rabbit MQ with Grails

Rabbit MQ as defined by rabbitmq.com is a robust messaging for applications. We used RabbitMQ to achieve asynchronous communication between two parts of the application. I would like to share the same in a step by step fashion. Here are few simple steps that I followed to make my grails application use rabbitmq: 1.Install rabbitmq […]

Mohd Farid
Mohd Farid
Read

Grails

Redis: Heavyweight Tags – an awesome use-case for caching with Redis

Redis plugin provides a beautiful way to cache the html tags. Using this plugin we can make big savings on the time taken to render the gsp tags. [java] <redis:memoize key="someKey" expire="3600" > //Some heavy weight tags rendering // Lots of db / network operations. </redis:memoize> [/java] I found this tag extremely helpful in rendering […]

Mohd Farid
Mohd Farid
Read

Grails

Redis: Tag Cloud using Redis

I would like to share a simple and efficient way of creating tagclouds that I discovered very recently. A Tag Cloud is a pictorial representation of some tags/text. The size of the tag/text is drirectly proportional to the weightage of that tag/text. A sample tag cloud could be seen on our blogs site. How to […]

Mohd Farid
Mohd Farid
Read

Grails

Retrieving retweets by twitter user using Twitter4j

Hi, In the previous blog we saw how to fetch Twitter user’s Timeline using API calls with the help of Twitter4j library. I had a requirement to display all the retweets by the authenticating user and display them in our application. In this blog we will see how to retrieve the retweets by any twitter […]

Vishal Sahu
Vishal Sahu
Read
Services