Working on YouTube is fun! Not only limited to video-sharing, YouTube includes video clips, TV clips, music videos, and other content such as video blogging, short videos, and educational videos. Yes, you do the uploading and sharing of your content, but is that all? How is it that you will market your content for the […]
YouTube being the second-largest search engine, it owns the most videos shared and watched within social networks like Facebook and Twitter. YouTube has over 4 billion videos being viewed every single day and has 60 hours of video being uploaded every minute. When it comes to the video market, YouTube is the biggest giant! […]
Sometimes we need to access details of current logged in user but that will be an additional database query. To save that query we can use principal object of Spring security which provides details of logged in user . But by default principal object have few fields like id, username and password. If we need […]
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 […]
Recently, I used bitwise Anding in my grails project. I am sharing the approach that we followed by means of an example. Suppose we have a domain class Person which can have multiple attributes like Smart, Intelligent, Talkative etc. What sort of relationship comes to our mind when we see this? I believe the obvious […]
Generally in our code, we have lots of debug statements that prints the intricate details of the state of the program. Infact, the debug statements are meant for doing this. Sometimes, these debug statements may contain a call to some other method to evaluate what is to be logged. [java] //Logging statement calling some function […]