[SOLVED] Hangs while Configuring CLASSPATH

Posted by Anantha Narayanan On 11:15 AM

I had created a new app in grails, and my colleague was trying to access this app after copying this folder to his local machine. Our environments were setup as follows: GRAILS Version - 2.4.0 GROOVY Version - 2.3.3 JAVA Version - 1.8 Both of our environments matched. When he created a fresh application, grails created the application, however he was not able to run the application. The same was case with the copied application. After 5 odd minutes the error was thrown into the screen: C:\MyTrainigs\GroovyApp\test123>grailsJava HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=32m;...

Rounding off decimal value in Groovy

Posted by Anantha Narayanan On 9:56 PM

I am new to groovy language, so assume its going to be bare basic. By default you have an object defined in groovy like follows: groovy> def number=12.11  groovy> println number.round(2)  Exception thrown groovy.lang.MissingMethodException: No signature of method: java.math.BigDecimal.round() is applicable for argument types: (java.lang.Integer) values: [2] Possible solutions: round(java.math.MathContext), find(), pow(int), and(java.lang.Number), power(java.lang.Integer), mod(java.lang.Number) I was searching in google for identifying the issue, but could not resolve it....

Playing video files in HTML5

Posted by Anantha Narayanan On 12:53 PM

Section 3: How to play video files in HTML5 The sweetest and simplest way to play video files is HTML5. <video src="videofile.ogg" autoplay poster="posterimage.jpg">   Sorry, your browser doesn't support embedded videos,    but don't worry, you can <a href="videofile.ogg">download    it</a>and watch it with your favorite video player! </video> Arriving upon a video format and a codec is the complex part of playing a video file. Refer the browser compatibility in MDN before you use this. Note: the source you are using in src need not be from...

Recommended Post Slide Out For Blogger